From 15a4cf525f9ae621aa3e7d3584de0ee5fb80b4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 10 Jun 2025 17:54:26 +0200 Subject: [PATCH 1/8] wip --- packages/livekit-rtc/src/audio_stream.ts | 8 +- .../livekit-rtc/src/proto/audio_frame_pb.ts | 154 +++--- packages/livekit-rtc/src/proto/e2ee_pb.ts | 58 +-- packages/livekit-rtc/src/proto/ffi_pb.ts | 298 ++++++++++- packages/livekit-rtc/src/proto/handle_pb.ts | 4 +- .../livekit-rtc/src/proto/participant_pb.ts | 24 +- packages/livekit-rtc/src/proto/room_pb.ts | 431 ++++++++++------ packages/livekit-rtc/src/proto/rpc_pb.ts | 44 +- packages/livekit-rtc/src/proto/stats_pb.ts | 464 +++++++++--------- packages/livekit-rtc/src/proto/track_pb.ts | 138 ++++-- .../src/proto/track_publication_pb.ts | 12 +- .../livekit-rtc/src/proto/video_frame_pb.ts | 82 ++-- 12 files changed, 1085 insertions(+), 632 deletions(-) diff --git a/packages/livekit-rtc/src/audio_stream.ts b/packages/livekit-rtc/src/audio_stream.ts index be0d2483..a7ecfe0d 100644 --- a/packages/livekit-rtc/src/audio_stream.ts +++ b/packages/livekit-rtc/src/audio_stream.ts @@ -31,6 +31,7 @@ class AudioStreamSource implements UnderlyingSource { track: Track, sampleRateOrOptions?: number | AudioStreamOptions, numChannels?: number, + frameSizeMs?: number, ) { if (sampleRateOrOptions !== undefined && typeof sampleRateOrOptions !== 'number') { this.sampleRate = sampleRateOrOptions.sampleRate ?? 48000; @@ -46,11 +47,12 @@ class AudioStreamSource implements UnderlyingSource { trackHandle: track.ffi_handle.handle, sampleRate: this.sampleRate, numChannels: this.numChannels, + frameSizeMs: frameSizeMs, ...(this.ncOptions ? { - audioFilterModuleId: this.ncOptions.moduleId, - audioFilterOptions: JSON.stringify(this.ncOptions.options), - } + audioFilterModuleId: this.ncOptions.moduleId, + audioFilterOptions: JSON.stringify(this.ncOptions.options), + } : {}), }); diff --git a/packages/livekit-rtc/src/proto/audio_frame_pb.ts b/packages/livekit-rtc/src/proto/audio_frame_pb.ts index 56423a6c..ca243604 100644 --- a/packages/livekit-rtc/src/proto/audio_frame_pb.ts +++ b/packages/livekit-rtc/src/proto/audio_frame_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file audio_frame.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -219,8 +219,8 @@ export class NewAudioStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, @@ -261,7 +261,7 @@ export class NewAudioStreamResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioStreamResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }, + { no: 1, name: "stream", kind: "message", T: OwnedAudioStream }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioStreamResponse { @@ -328,8 +328,8 @@ export class AudioStreamFromParticipantRequest extends Message [ - { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, + { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true }, { no: 5, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 6, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, @@ -371,7 +371,7 @@ export class AudioStreamFromParticipantResponse extends Message [ - { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }, + { no: 1, name: "stream", kind: "message", T: OwnedAudioStream }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamFromParticipantResponse { @@ -430,10 +430,10 @@ export class NewAudioSourceRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioSourceRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType) }, { no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true }, - { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 5, name: "queue_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -471,7 +471,7 @@ export class NewAudioSourceResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioSourceResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: OwnedAudioSource, req: true }, + { no: 1, name: "source", kind: "message", T: OwnedAudioSource }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioSourceResponse { @@ -516,8 +516,8 @@ export class CaptureAudioFrameRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CaptureAudioFrameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameRequest { @@ -554,7 +554,7 @@ export class CaptureAudioFrameResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameResponse { @@ -596,7 +596,7 @@ export class CaptureAudioFrameCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -634,7 +634,7 @@ export class ClearAudioBufferRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ClearAudioBufferRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearAudioBufferRequest { @@ -735,7 +735,7 @@ export class NewAudioResamplerResponse extends Message [ - { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler, req: true }, + { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioResamplerResponse { @@ -789,10 +789,10 @@ export class RemixAndResampleRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RemixAndResampleRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }, - { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo }, + { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleRequest { @@ -829,7 +829,7 @@ export class RemixAndResampleResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RemixAndResampleResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true }, + { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleResponse { @@ -881,10 +881,10 @@ export class NewApmRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewApmRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewApmRequest { @@ -921,7 +921,7 @@ export class NewApmResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewApmResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm", kind: "message", T: OwnedApm, req: true }, + { no: 1, name: "apm", kind: "message", T: OwnedApm }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewApmResponse { @@ -982,11 +982,11 @@ export class ApmProcessStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ApmProcessStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessStreamRequest { @@ -1084,11 +1084,11 @@ export class ApmProcessReverseStreamRequest extends Message [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessReverseStreamRequest { @@ -1167,8 +1167,8 @@ export class ApmSetStreamDelayRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "delay_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "delay_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmSetStreamDelayRequest { @@ -1272,12 +1272,12 @@ export class NewSoxResamplerRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "input_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 2, name: "output_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true }, - { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true }, - { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe), req: true }, + { no: 1, name: "input_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 2, name: "output_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType) }, + { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType) }, + { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe) }, { no: 7, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -1379,9 +1379,9 @@ export class PushSoxResamplerRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PushSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PushSoxResamplerRequest { @@ -1432,8 +1432,8 @@ export class PushSoxResamplerResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PushSoxResamplerResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1471,7 +1471,7 @@ export class FlushSoxResamplerRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FlushSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FlushSoxResamplerRequest { @@ -1522,8 +1522,8 @@ export class FlushSoxResamplerResponse extends Message [ - { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1578,10 +1578,10 @@ export class AudioFrameBufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioFrameBufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameBufferInfo { @@ -1623,8 +1623,8 @@ export class OwnedAudioFrameBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioFrameBuffer { @@ -1661,7 +1661,7 @@ export class AudioStreamInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioStreamInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamInfo { @@ -1703,8 +1703,8 @@ export class OwnedAudioStream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioStream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: AudioStreamInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: AudioStreamInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioStream { @@ -1758,7 +1758,7 @@ export class AudioStreamEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioStreamEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" }, { no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" }, ]); @@ -1797,7 +1797,7 @@ export class AudioFrameReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioFrameReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer, req: true }, + { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameReceived { @@ -1875,9 +1875,9 @@ export class AudioSourceOptions extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceOptions { @@ -1914,7 +1914,7 @@ export class AudioSourceInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceInfo { @@ -1956,8 +1956,8 @@ export class OwnedAudioSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: AudioSourceInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: AudioSourceInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioSource { @@ -2030,8 +2030,8 @@ export class OwnedAudioResampler extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioResampler"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: AudioResamplerInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioResampler { @@ -2068,7 +2068,7 @@ export class OwnedApm extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedApm"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedApm { @@ -2141,8 +2141,8 @@ export class OwnedSoxResampler extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedSoxResampler"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: SoxResamplerInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedSoxResampler { @@ -2197,9 +2197,9 @@ export class LoadAudioFilterPluginRequest extends Message [ - { no: 1, name: "plugin_path", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "plugin_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "dependencies", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "module_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LoadAudioFilterPluginRequest { diff --git a/packages/livekit-rtc/src/proto/e2ee_pb.ts b/packages/livekit-rtc/src/proto/e2ee_pb.ts index b44276ce..f7aa7991 100644 --- a/packages/livekit-rtc/src/proto/e2ee_pb.ts +++ b/packages/livekit-rtc/src/proto/e2ee_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file e2ee.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -128,10 +128,10 @@ export class FrameCryptor extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FrameCryptor"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, - { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptor { @@ -188,9 +188,9 @@ export class KeyProviderOptions extends Message { static readonly typeName = "livekit.proto.KeyProviderOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true }, - { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, - { no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, - { no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): KeyProviderOptions { @@ -232,8 +232,8 @@ export class E2eeOptions extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }, - { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions, req: true }, + { no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType) }, + { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeOptions { @@ -270,7 +270,7 @@ export class E2eeManagerSetEnabledRequest extends Message [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeManagerSetEnabledRequest { @@ -416,9 +416,9 @@ export class FrameCryptorSetEnabledRequest extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptorSetEnabledRequest { @@ -496,9 +496,9 @@ export class FrameCryptorSetKeyIndexRequest extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptorSetKeyIndexRequest { @@ -571,8 +571,8 @@ export class SetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetSharedKeyRequest { @@ -640,7 +640,7 @@ export class RatchetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RatchetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RatchetSharedKeyRequest { @@ -714,7 +714,7 @@ export class GetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSharedKeyRequest { @@ -798,9 +798,9 @@ export class SetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetKeyRequest { @@ -873,8 +873,8 @@ export class RatchetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RatchetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RatchetKeyRequest { @@ -953,8 +953,8 @@ export class GetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyRequest { @@ -1093,7 +1093,7 @@ export class E2eeRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" }, { no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" }, { no: 4, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledRequest, oneof: "message" }, diff --git a/packages/livekit-rtc/src/proto/ffi_pb.ts b/packages/livekit-rtc/src/proto/ffi_pb.ts index b28669ea..9333e83e 100644 --- a/packages/livekit-rtc/src/proto/ffi_pb.ts +++ b/packages/livekit-rtc/src/proto/ffi_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file ffi.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -26,6 +26,7 @@ import { ApmProcessReverseStreamRequest, ApmProcessReverseStreamResponse, ApmPro import { E2eeRequest, E2eeResponse } from "./e2ee_pb.js"; import { PerformRpcCallback, PerformRpcRequest, PerformRpcResponse, RegisterRpcMethodRequest, RegisterRpcMethodResponse, RpcMethodInvocationEvent, RpcMethodInvocationResponseRequest, RpcMethodInvocationResponseResponse, UnregisterRpcMethodRequest, UnregisterRpcMethodResponse } from "./rpc_pb.js"; import { EnableRemoteTrackPublicationRequest, EnableRemoteTrackPublicationResponse, UpdateRemoteTrackPublicationDimensionRequest, UpdateRemoteTrackPublicationDimensionResponse } from "./track_publication_pb.js"; +import { ByteStreamOpenCallback, ByteStreamOpenRequest, ByteStreamOpenResponse, ByteStreamReaderEvent, ByteStreamReaderReadAllCallback, ByteStreamReaderReadAllRequest, ByteStreamReaderReadAllResponse, ByteStreamReaderReadIncrementalRequest, ByteStreamReaderReadIncrementalResponse, ByteStreamReaderWriteToFileCallback, ByteStreamReaderWriteToFileRequest, ByteStreamReaderWriteToFileResponse, ByteStreamWriterCloseCallback, ByteStreamWriterCloseRequest, ByteStreamWriterCloseResponse, ByteStreamWriterWriteCallback, ByteStreamWriterWriteRequest, ByteStreamWriterWriteResponse, StreamSendFileCallback, StreamSendFileRequest, StreamSendFileResponse, StreamSendTextCallback, StreamSendTextRequest, StreamSendTextResponse, TextStreamOpenCallback, TextStreamOpenRequest, TextStreamOpenResponse, TextStreamReaderEvent, TextStreamReaderReadAllCallback, TextStreamReaderReadAllRequest, TextStreamReaderReadAllResponse, TextStreamReaderReadIncrementalRequest, TextStreamReaderReadIncrementalResponse, TextStreamWriterCloseCallback, TextStreamWriterCloseRequest, TextStreamWriterCloseResponse, TextStreamWriterWriteCallback, TextStreamWriterWriteRequest, TextStreamWriterWriteResponse } from "./data_stream_pb.js"; /** * @generated from enum livekit.proto.LogLevel @@ -347,7 +348,7 @@ export class FfiRequest extends Message { case: "updateRemoteTrackPublicationDimension"; } | { /** - * Data Streams + * Data Streams (low level) * * @generated from field: livekit.proto.SendStreamHeaderRequest send_stream_header = 44; */ @@ -405,6 +406,86 @@ export class FfiRequest extends Message { */ value: ApmSetStreamDelayRequest; case: "apmSetStreamDelay"; + } | { + /** + * Data Streams (high level) + * + * @generated from field: livekit.proto.ByteStreamReaderReadIncrementalRequest byte_read_incremental = 54; + */ + value: ByteStreamReaderReadIncrementalRequest; + case: "byteReadIncremental"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderReadAllRequest byte_read_all = 55; + */ + value: ByteStreamReaderReadAllRequest; + case: "byteReadAll"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderWriteToFileRequest byte_write_to_file = 56; + */ + value: ByteStreamReaderWriteToFileRequest; + case: "byteWriteToFile"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderReadIncrementalRequest text_read_incremental = 57; + */ + value: TextStreamReaderReadIncrementalRequest; + case: "textReadIncremental"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderReadAllRequest text_read_all = 58; + */ + value: TextStreamReaderReadAllRequest; + case: "textReadAll"; + } | { + /** + * @generated from field: livekit.proto.StreamSendFileRequest send_file = 59; + */ + value: StreamSendFileRequest; + case: "sendFile"; + } | { + /** + * @generated from field: livekit.proto.StreamSendTextRequest send_text = 60; + */ + value: StreamSendTextRequest; + case: "sendText"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamOpenRequest byte_stream_open = 61; + */ + value: ByteStreamOpenRequest; + case: "byteStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterWriteRequest byte_stream_write = 62; + */ + value: ByteStreamWriterWriteRequest; + case: "byteStreamWrite"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterCloseRequest byte_stream_close = 63; + */ + value: ByteStreamWriterCloseRequest; + case: "byteStreamClose"; + } | { + /** + * @generated from field: livekit.proto.TextStreamOpenRequest text_stream_open = 64; + */ + value: TextStreamOpenRequest; + case: "textStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterWriteRequest text_stream_write = 65; + */ + value: TextStreamWriterWriteRequest; + case: "textStreamWrite"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterCloseRequest text_stream_close = 66; + */ + value: TextStreamWriterCloseRequest; + case: "textStreamClose"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -467,6 +548,19 @@ export class FfiRequest extends Message { { no: 51, name: "apm_process_stream", kind: "message", T: ApmProcessStreamRequest, oneof: "message" }, { no: 52, name: "apm_process_reverse_stream", kind: "message", T: ApmProcessReverseStreamRequest, oneof: "message" }, { no: 53, name: "apm_set_stream_delay", kind: "message", T: ApmSetStreamDelayRequest, oneof: "message" }, + { no: 54, name: "byte_read_incremental", kind: "message", T: ByteStreamReaderReadIncrementalRequest, oneof: "message" }, + { no: 55, name: "byte_read_all", kind: "message", T: ByteStreamReaderReadAllRequest, oneof: "message" }, + { no: 56, name: "byte_write_to_file", kind: "message", T: ByteStreamReaderWriteToFileRequest, oneof: "message" }, + { no: 57, name: "text_read_incremental", kind: "message", T: TextStreamReaderReadIncrementalRequest, oneof: "message" }, + { no: 58, name: "text_read_all", kind: "message", T: TextStreamReaderReadAllRequest, oneof: "message" }, + { no: 59, name: "send_file", kind: "message", T: StreamSendFileRequest, oneof: "message" }, + { no: 60, name: "send_text", kind: "message", T: StreamSendTextRequest, oneof: "message" }, + { no: 61, name: "byte_stream_open", kind: "message", T: ByteStreamOpenRequest, oneof: "message" }, + { no: 62, name: "byte_stream_write", kind: "message", T: ByteStreamWriterWriteRequest, oneof: "message" }, + { no: 63, name: "byte_stream_close", kind: "message", T: ByteStreamWriterCloseRequest, oneof: "message" }, + { no: 64, name: "text_stream_open", kind: "message", T: TextStreamOpenRequest, oneof: "message" }, + { no: 65, name: "text_stream_write", kind: "message", T: TextStreamWriterWriteRequest, oneof: "message" }, + { no: 66, name: "text_stream_close", kind: "message", T: TextStreamWriterCloseRequest, oneof: "message" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FfiRequest { @@ -819,6 +913,86 @@ export class FfiResponse extends Message { */ value: ApmSetStreamDelayResponse; case: "apmSetStreamDelay"; + } | { + /** + * Data Streams (high level) + * + * @generated from field: livekit.proto.ByteStreamReaderReadIncrementalResponse byte_read_incremental = 53; + */ + value: ByteStreamReaderReadIncrementalResponse; + case: "byteReadIncremental"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderReadAllResponse byte_read_all = 54; + */ + value: ByteStreamReaderReadAllResponse; + case: "byteReadAll"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderWriteToFileResponse byte_write_to_file = 55; + */ + value: ByteStreamReaderWriteToFileResponse; + case: "byteWriteToFile"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderReadIncrementalResponse text_read_incremental = 56; + */ + value: TextStreamReaderReadIncrementalResponse; + case: "textReadIncremental"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderReadAllResponse text_read_all = 57; + */ + value: TextStreamReaderReadAllResponse; + case: "textReadAll"; + } | { + /** + * @generated from field: livekit.proto.StreamSendFileResponse send_file = 58; + */ + value: StreamSendFileResponse; + case: "sendFile"; + } | { + /** + * @generated from field: livekit.proto.StreamSendTextResponse send_text = 59; + */ + value: StreamSendTextResponse; + case: "sendText"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamOpenResponse byte_stream_open = 60; + */ + value: ByteStreamOpenResponse; + case: "byteStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterWriteResponse byte_stream_write = 61; + */ + value: ByteStreamWriterWriteResponse; + case: "byteStreamWrite"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterCloseResponse byte_stream_close = 62; + */ + value: ByteStreamWriterCloseResponse; + case: "byteStreamClose"; + } | { + /** + * @generated from field: livekit.proto.TextStreamOpenResponse text_stream_open = 63; + */ + value: TextStreamOpenResponse; + case: "textStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterWriteResponse text_stream_write = 64; + */ + value: TextStreamWriterWriteResponse; + case: "textStreamWrite"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterCloseResponse text_stream_close = 65; + */ + value: TextStreamWriterCloseResponse; + case: "textStreamClose"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -880,6 +1054,19 @@ export class FfiResponse extends Message { { no: 50, name: "apm_process_stream", kind: "message", T: ApmProcessStreamResponse, oneof: "message" }, { no: 51, name: "apm_process_reverse_stream", kind: "message", T: ApmProcessReverseStreamResponse, oneof: "message" }, { no: 52, name: "apm_set_stream_delay", kind: "message", T: ApmSetStreamDelayResponse, oneof: "message" }, + { no: 53, name: "byte_read_incremental", kind: "message", T: ByteStreamReaderReadIncrementalResponse, oneof: "message" }, + { no: 54, name: "byte_read_all", kind: "message", T: ByteStreamReaderReadAllResponse, oneof: "message" }, + { no: 55, name: "byte_write_to_file", kind: "message", T: ByteStreamReaderWriteToFileResponse, oneof: "message" }, + { no: 56, name: "text_read_incremental", kind: "message", T: TextStreamReaderReadIncrementalResponse, oneof: "message" }, + { no: 57, name: "text_read_all", kind: "message", T: TextStreamReaderReadAllResponse, oneof: "message" }, + { no: 58, name: "send_file", kind: "message", T: StreamSendFileResponse, oneof: "message" }, + { no: 59, name: "send_text", kind: "message", T: StreamSendTextResponse, oneof: "message" }, + { no: 60, name: "byte_stream_open", kind: "message", T: ByteStreamOpenResponse, oneof: "message" }, + { no: 61, name: "byte_stream_write", kind: "message", T: ByteStreamWriterWriteResponse, oneof: "message" }, + { no: 62, name: "byte_stream_close", kind: "message", T: ByteStreamWriterCloseResponse, oneof: "message" }, + { no: 63, name: "text_stream_open", kind: "message", T: TextStreamOpenResponse, oneof: "message" }, + { no: 64, name: "text_stream_write", kind: "message", T: TextStreamWriterWriteResponse, oneof: "message" }, + { no: 65, name: "text_stream_close", kind: "message", T: TextStreamWriterCloseResponse, oneof: "message" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FfiResponse { @@ -1050,6 +1237,8 @@ export class FfiEvent extends Message { case: "rpcMethodInvocation"; } | { /** + * Data Streams (low level) + * * @generated from field: livekit.proto.SendStreamHeaderCallback send_stream_header = 25; */ value: SendStreamHeaderCallback; @@ -1066,6 +1255,86 @@ export class FfiEvent extends Message { */ value: SendStreamTrailerCallback; case: "sendStreamTrailer"; + } | { + /** + * Data Streams (high level) + * + * @generated from field: livekit.proto.ByteStreamReaderEvent byte_stream_reader_event = 28; + */ + value: ByteStreamReaderEvent; + case: "byteStreamReaderEvent"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderReadAllCallback byte_stream_reader_read_all = 29; + */ + value: ByteStreamReaderReadAllCallback; + case: "byteStreamReaderReadAll"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderWriteToFileCallback byte_stream_reader_write_to_file = 30; + */ + value: ByteStreamReaderWriteToFileCallback; + case: "byteStreamReaderWriteToFile"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamOpenCallback byte_stream_open = 31; + */ + value: ByteStreamOpenCallback; + case: "byteStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterWriteCallback byte_stream_writer_write = 32; + */ + value: ByteStreamWriterWriteCallback; + case: "byteStreamWriterWrite"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamWriterCloseCallback byte_stream_writer_close = 33; + */ + value: ByteStreamWriterCloseCallback; + case: "byteStreamWriterClose"; + } | { + /** + * @generated from field: livekit.proto.StreamSendFileCallback send_file = 34; + */ + value: StreamSendFileCallback; + case: "sendFile"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderEvent text_stream_reader_event = 35; + */ + value: TextStreamReaderEvent; + case: "textStreamReaderEvent"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderReadAllCallback text_stream_reader_read_all = 36; + */ + value: TextStreamReaderReadAllCallback; + case: "textStreamReaderReadAll"; + } | { + /** + * @generated from field: livekit.proto.TextStreamOpenCallback text_stream_open = 37; + */ + value: TextStreamOpenCallback; + case: "textStreamOpen"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterWriteCallback text_stream_writer_write = 38; + */ + value: TextStreamWriterWriteCallback; + case: "textStreamWriterWrite"; + } | { + /** + * @generated from field: livekit.proto.TextStreamWriterCloseCallback text_stream_writer_close = 39; + */ + value: TextStreamWriterCloseCallback; + case: "textStreamWriterClose"; + } | { + /** + * @generated from field: livekit.proto.StreamSendTextCallback send_text = 40; + */ + value: StreamSendTextCallback; + case: "sendText"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -1102,6 +1371,19 @@ export class FfiEvent extends Message { { no: 25, name: "send_stream_header", kind: "message", T: SendStreamHeaderCallback, oneof: "message" }, { no: 26, name: "send_stream_chunk", kind: "message", T: SendStreamChunkCallback, oneof: "message" }, { no: 27, name: "send_stream_trailer", kind: "message", T: SendStreamTrailerCallback, oneof: "message" }, + { no: 28, name: "byte_stream_reader_event", kind: "message", T: ByteStreamReaderEvent, oneof: "message" }, + { no: 29, name: "byte_stream_reader_read_all", kind: "message", T: ByteStreamReaderReadAllCallback, oneof: "message" }, + { no: 30, name: "byte_stream_reader_write_to_file", kind: "message", T: ByteStreamReaderWriteToFileCallback, oneof: "message" }, + { no: 31, name: "byte_stream_open", kind: "message", T: ByteStreamOpenCallback, oneof: "message" }, + { no: 32, name: "byte_stream_writer_write", kind: "message", T: ByteStreamWriterWriteCallback, oneof: "message" }, + { no: 33, name: "byte_stream_writer_close", kind: "message", T: ByteStreamWriterCloseCallback, oneof: "message" }, + { no: 34, name: "send_file", kind: "message", T: StreamSendFileCallback, oneof: "message" }, + { no: 35, name: "text_stream_reader_event", kind: "message", T: TextStreamReaderEvent, oneof: "message" }, + { no: 36, name: "text_stream_reader_read_all", kind: "message", T: TextStreamReaderReadAllCallback, oneof: "message" }, + { no: 37, name: "text_stream_open", kind: "message", T: TextStreamOpenCallback, oneof: "message" }, + { no: 38, name: "text_stream_writer_write", kind: "message", T: TextStreamWriterWriteCallback, oneof: "message" }, + { no: 39, name: "text_stream_writer_close", kind: "message", T: TextStreamWriterCloseCallback, oneof: "message" }, + { no: 40, name: "send_text", kind: "message", T: StreamSendTextCallback, oneof: "message" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FfiEvent { @@ -1142,7 +1424,7 @@ export class DisposeRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisposeRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "async", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisposeRequest { @@ -1218,7 +1500,7 @@ export class DisposeCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisposeCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisposeCallback { @@ -1282,12 +1564,12 @@ export class LogRecord extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LogRecord"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "level", kind: "enum", T: proto2.getEnumType(LogLevel), req: true }, - { no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "level", kind: "enum", T: proto2.getEnumType(LogLevel) }, + { no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "module_path", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 5, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LogRecord { @@ -1361,7 +1643,7 @@ export class Panic extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.Panic"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Panic { diff --git a/packages/livekit-rtc/src/proto/handle_pb.ts b/packages/livekit-rtc/src/proto/handle_pb.ts index ad84d440..a338b121 100644 --- a/packages/livekit-rtc/src/proto/handle_pb.ts +++ b/packages/livekit-rtc/src/proto/handle_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file handle.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -47,7 +47,7 @@ export class FfiOwnedHandle extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FfiOwnedHandle"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FfiOwnedHandle { diff --git a/packages/livekit-rtc/src/proto/participant_pb.ts b/packages/livekit-rtc/src/proto/participant_pb.ts index fa48904f..546f0c18 100644 --- a/packages/livekit-rtc/src/proto/participant_pb.ts +++ b/packages/livekit-rtc/src/proto/participant_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file participant.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -158,6 +158,11 @@ export enum DisconnectReason { * @generated from enum value: SIP_TRUNK_FAILURE = 13; */ SIP_TRUNK_FAILURE = 13, + + /** + * @generated from enum value: CONNECTION_TIMEOUT = 14; + */ + CONNECTION_TIMEOUT = 14, } // Retrieve enum metadata with: proto2.getEnumType(DisconnectReason) proto2.util.setEnumType(DisconnectReason, "livekit.proto.DisconnectReason", [ @@ -175,6 +180,7 @@ proto2.util.setEnumType(DisconnectReason, "livekit.proto.DisconnectReason", [ { no: 11, name: "USER_UNAVAILABLE" }, { no: 12, name: "USER_REJECTED" }, { no: 13, name: "SIP_TRUNK_FAILURE" }, + { no: 14, name: "CONNECTION_TIMEOUT" }, ]); /** @@ -224,13 +230,13 @@ export class ParticipantInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind), req: true }, - { no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, + { no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind) }, + { no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantInfo { @@ -272,8 +278,8 @@ export class OwnedParticipant extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedParticipant"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: ParticipantInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: ParticipantInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedParticipant { diff --git a/packages/livekit-rtc/src/proto/room_pb.ts b/packages/livekit-rtc/src/proto/room_pb.ts index d0bf0147..fcaab00e 100644 --- a/packages/livekit-rtc/src/proto/room_pb.ts +++ b/packages/livekit-rtc/src/proto/room_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file room.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -25,6 +25,7 @@ import { RtcStats } from "./stats_pb.js"; import { VideoCodec } from "./video_frame_pb.js"; import { E2eeOptions, EncryptionState } from "./e2ee_pb.js"; import { FfiOwnedHandle } from "./handle_pb.js"; +import { OwnedByteStreamReader, OwnedTextStreamReader } from "./data_stream_pb.js"; /** * @generated from enum livekit.proto.IceTransportType @@ -179,9 +180,9 @@ export class ConnectRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "options", kind: "message", T: RoomOptions, req: true }, + { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "options", kind: "message", T: RoomOptions }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectRequest { @@ -218,7 +219,7 @@ export class ConnectResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectResponse { @@ -272,7 +273,7 @@ export class ConnectCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "result", kind: "message", T: ConnectCallback_Result, oneof: "message" }, ]); @@ -319,7 +320,7 @@ export class ConnectCallback_ParticipantWithTracks extends Message [ - { no: 1, name: "participant", kind: "message", T: OwnedParticipant, req: true }, + { no: 1, name: "participant", kind: "message", T: OwnedParticipant }, { no: 2, name: "publications", kind: "message", T: OwnedTrackPublication, repeated: true }, ]); @@ -367,8 +368,8 @@ export class ConnectCallback_Result extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectCallback.Result"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room", kind: "message", T: OwnedRoom, req: true }, - { no: 2, name: "local_participant", kind: "message", T: OwnedParticipant, req: true }, + { no: 1, name: "room", kind: "message", T: OwnedRoom }, + { no: 2, name: "local_participant", kind: "message", T: OwnedParticipant }, { no: 3, name: "participants", kind: "message", T: ConnectCallback_ParticipantWithTracks, repeated: true }, ]); @@ -408,7 +409,7 @@ export class DisconnectRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectRequest { @@ -445,7 +446,7 @@ export class DisconnectResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectResponse { @@ -482,7 +483,7 @@ export class DisconnectCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectCallback { @@ -531,9 +532,9 @@ export class PublishTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "options", kind: "message", T: TrackPublishOptions, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "options", kind: "message", T: TrackPublishOptions }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTrackRequest { @@ -570,7 +571,7 @@ export class PublishTrackResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTrackResponse { @@ -624,7 +625,7 @@ export class PublishTrackCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "publication", kind: "message", T: OwnedTrackPublication, oneof: "message" }, ]); @@ -675,9 +676,9 @@ export class UnpublishTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnpublishTrackRequest { @@ -714,7 +715,7 @@ export class UnpublishTrackResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnpublishTrackResponse { @@ -756,7 +757,7 @@ export class UnpublishTrackCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -827,10 +828,10 @@ export class PublishDataRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 7, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, @@ -870,7 +871,7 @@ export class PublishDataResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataResponse { @@ -912,7 +913,7 @@ export class PublishDataCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -967,9 +968,9 @@ export class PublishTranscriptionRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }, ]); @@ -1007,7 +1008,7 @@ export class PublishTranscriptionResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTranscriptionResponse { @@ -1049,7 +1050,7 @@ export class PublishTranscriptionCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1104,9 +1105,9 @@ export class PublishSipDtmfRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); @@ -1144,7 +1145,7 @@ export class PublishSipDtmfResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishSipDtmfResponse { @@ -1186,7 +1187,7 @@ export class PublishSipDtmfCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1231,8 +1232,8 @@ export class SetLocalMetadataRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalMetadataRequest { @@ -1269,7 +1270,7 @@ export class SetLocalMetadataResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalMetadataResponse { @@ -1311,7 +1312,7 @@ export class SetLocalMetadataCallback extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1364,8 +1365,8 @@ export class SendChatMessageRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1424,9 +1425,9 @@ export class EditChatMessageRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.EditChatMessageRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "edit_text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "original_message", kind: "message", T: ChatMessage, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "edit_text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "original_message", kind: "message", T: ChatMessage }, { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1465,7 +1466,7 @@ export class SendChatMessageResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendChatMessageResponse { @@ -1519,7 +1520,7 @@ export class SendChatMessageCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "message" }, ]); @@ -1565,7 +1566,7 @@ export class SetLocalAttributesRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }, ]); @@ -1608,8 +1609,8 @@ export class AttributesEntry extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AttributesEntry"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AttributesEntry { @@ -1646,7 +1647,7 @@ export class SetLocalAttributesResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalAttributesResponse { @@ -1688,7 +1689,7 @@ export class SetLocalAttributesCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1733,8 +1734,8 @@ export class SetLocalNameRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalNameRequest { @@ -1771,7 +1772,7 @@ export class SetLocalNameResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalNameResponse { @@ -1813,7 +1814,7 @@ export class SetLocalNameCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1858,8 +1859,8 @@ export class SetSubscribedRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetSubscribedRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 2, name: "publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetSubscribedRequest { @@ -1927,7 +1928,7 @@ export class GetSessionStatsRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSessionStatsRequest { @@ -1964,7 +1965,7 @@ export class GetSessionStatsResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSessionStatsResponse { @@ -2018,7 +2019,7 @@ export class GetSessionStatsCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "result", kind: "message", T: GetSessionStatsCallback_Result, oneof: "message" }, ]); @@ -2105,8 +2106,8 @@ export class VideoEncoding extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoEncoding"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "max_framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "max_framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoEncoding { @@ -2143,7 +2144,7 @@ export class AudioEncoding extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioEncoding"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioEncoding { @@ -2455,12 +2456,12 @@ export class TranscriptionSegment extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TranscriptionSegment"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TranscriptionSegment { @@ -2502,8 +2503,8 @@ export class BufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.BufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BufferInfo { @@ -2545,8 +2546,8 @@ export class OwnedBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "data", kind: "message", T: BufferInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "data", kind: "message", T: BufferInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedBuffer { @@ -2752,6 +2753,8 @@ export class RoomEvent extends Message { case: "chatMessage"; } | { /** + * Data stream (low level) + * * @generated from field: livekit.proto.DataStreamHeaderReceived stream_header_received = 30; */ value: DataStreamHeaderReceived; @@ -2774,6 +2777,20 @@ export class RoomEvent extends Message { */ value: DataChannelBufferedAmountLowThresholdChanged; case: "dataChannelLowThresholdChanged"; + } | { + /** + * Data stream (high level) + * + * @generated from field: livekit.proto.ByteStreamOpened byte_stream_opened = 34; + */ + value: ByteStreamOpened; + case: "byteStreamOpened"; + } | { + /** + * @generated from field: livekit.proto.TextStreamOpened text_stream_opened = 35; + */ + value: TextStreamOpened; + case: "textStreamOpened"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -2784,7 +2801,7 @@ export class RoomEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "participant_connected", kind: "message", T: ParticipantConnected, oneof: "message" }, { no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" }, { no: 4, name: "local_track_published", kind: "message", T: LocalTrackPublished, oneof: "message" }, @@ -2817,6 +2834,8 @@ export class RoomEvent extends Message { { no: 31, name: "stream_chunk_received", kind: "message", T: DataStreamChunkReceived, oneof: "message" }, { no: 32, name: "stream_trailer_received", kind: "message", T: DataStreamTrailerReceived, oneof: "message" }, { no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" }, + { no: 34, name: "byte_stream_opened", kind: "message", T: ByteStreamOpened, oneof: "message" }, + { no: 35, name: "text_stream_opened", kind: "message", T: TextStreamOpened, oneof: "message" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomEvent { @@ -2874,10 +2893,10 @@ export class RoomInfo extends Message { static readonly typeName = "livekit.proto.RoomInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomInfo { @@ -2919,8 +2938,8 @@ export class OwnedRoom extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedRoom"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: RoomInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: RoomInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedRoom { @@ -2957,7 +2976,7 @@ export class ParticipantConnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantConnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: OwnedParticipant, req: true }, + { no: 1, name: "info", kind: "message", T: OwnedParticipant }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantConnected { @@ -2999,8 +3018,8 @@ export class ParticipantDisconnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantDisconnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantDisconnected { @@ -3040,7 +3059,7 @@ export class LocalTrackPublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackPublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackPublished { @@ -3077,7 +3096,7 @@ export class LocalTrackUnpublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackUnpublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackUnpublished { @@ -3114,7 +3133,7 @@ export class LocalTrackSubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackSubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackSubscribed { @@ -3156,8 +3175,8 @@ export class TrackPublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackPublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackPublished { @@ -3199,8 +3218,8 @@ export class TrackUnpublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnpublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnpublished { @@ -3245,8 +3264,8 @@ export class TrackSubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackSubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track", kind: "message", T: OwnedTrack, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track", kind: "message", T: OwnedTrack }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackSubscribed { @@ -3290,8 +3309,8 @@ export class TrackUnsubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnsubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnsubscribed { @@ -3338,9 +3357,9 @@ export class TrackSubscriptionFailed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackSubscriptionFailed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackSubscriptionFailed { @@ -3382,8 +3401,8 @@ export class TrackMuted extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackMuted"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackMuted { @@ -3425,8 +3444,8 @@ export class TrackUnmuted extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnmuted"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnmuted { @@ -3470,8 +3489,8 @@ export class E2eeStateChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeStateChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "state", kind: "enum", T: proto2.getEnumType(EncryptionState), req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "state", kind: "enum", T: proto2.getEnumType(EncryptionState) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeStateChanged { @@ -3545,7 +3564,7 @@ export class RoomMetadataChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomMetadataChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomMetadataChanged { @@ -3582,7 +3601,7 @@ export class RoomSidChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomSidChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomSidChanged { @@ -3624,8 +3643,8 @@ export class ParticipantMetadataChanged extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantMetadataChanged { @@ -3672,7 +3691,7 @@ export class ParticipantAttributesChanged extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }, { no: 3, name: "changed_attributes", kind: "message", T: AttributesEntry, repeated: true }, ]); @@ -3716,8 +3735,8 @@ export class ParticipantNameChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantNameChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantNameChanged { @@ -3759,8 +3778,8 @@ export class ConnectionQualityChanged extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectionQualityChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "quality", kind: "enum", T: proto2.getEnumType(ConnectionQuality), req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quality", kind: "enum", T: proto2.getEnumType(ConnectionQuality) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionQualityChanged { @@ -3802,7 +3821,7 @@ export class UserPacket extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UserPacket"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: OwnedBuffer, req: true }, + { no: 1, name: "data", kind: "message", T: OwnedBuffer }, { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -3865,9 +3884,9 @@ export class ChatMessage extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ChatMessage"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, - { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "edit_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 5, name: "deleted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 6, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, @@ -3912,8 +3931,8 @@ export class ChatMessageReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ChatMessageReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "message", kind: "message", T: ChatMessage, req: true }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "message", kind: "message", T: ChatMessage }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChatMessageReceived { @@ -3955,7 +3974,7 @@ export class SipDTMF extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SipDTMF"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 2, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -4017,8 +4036,8 @@ export class DataPacketReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataPacketReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" }, { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" }, ]); @@ -4106,7 +4125,7 @@ export class ConnectionStateChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectionStateChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(ConnectionState), req: true }, + { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(ConnectionState) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionStateChanged { @@ -4174,7 +4193,7 @@ export class Disconnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.Disconnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, + { no: 1, name: "reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Disconnected { @@ -4399,7 +4418,7 @@ export class DataStream_TextHeader extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.TextHeader"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType), req: true }, + { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType) }, { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "attached_stream_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, @@ -4442,7 +4461,7 @@ export class DataStream_ByteHeader extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.ByteHeader"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_ByteHeader { @@ -4533,10 +4552,10 @@ export class DataStream_Header extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Header"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, - { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 7, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" }, @@ -4605,9 +4624,9 @@ export class DataStream_Chunk extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Chunk"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 4, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, { no: 5, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true }, ]); @@ -4662,8 +4681,8 @@ export class DataStream_Trailer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Trailer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, ]); @@ -4706,8 +4725,8 @@ export class DataStreamHeaderReceived extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStreamHeaderReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "header", kind: "message", T: DataStream_Header }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamHeaderReceived { @@ -4749,8 +4768,8 @@ export class DataStreamChunkReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStreamChunkReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamChunkReceived { @@ -4792,8 +4811,8 @@ export class DataStreamTrailerReceived extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamTrailerReceived { @@ -4845,10 +4864,10 @@ export class SendStreamHeaderRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "header", kind: "message", T: DataStream_Header }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamHeaderRequest { @@ -4900,10 +4919,10 @@ export class SendStreamChunkRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamChunkRequest { @@ -4955,10 +4974,10 @@ export class SendStreamTrailerRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamTrailerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamTrailerRequest { @@ -4995,7 +5014,7 @@ export class SendStreamHeaderResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamHeaderResponse { @@ -5032,7 +5051,7 @@ export class SendStreamChunkResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamChunkResponse { @@ -5069,7 +5088,7 @@ export class SendStreamTrailerResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamTrailerResponse { @@ -5111,7 +5130,7 @@ export class SendStreamHeaderCallback extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5154,7 +5173,7 @@ export class SendStreamChunkCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5197,7 +5216,7 @@ export class SendStreamTrailerCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5245,9 +5264,9 @@ export class SetDataChannelBufferedAmountLowThresholdRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetDataChannelBufferedAmountLowThresholdRequest { @@ -5320,8 +5339,8 @@ export class DataChannelBufferedAmountLowThresholdChanged extends Message [ - { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, - { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, + { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataChannelBufferedAmountLowThresholdChanged { @@ -5341,3 +5360,89 @@ export class DataChannelBufferedAmountLowThresholdChanged extends Message { + /** + * @generated from field: required livekit.proto.OwnedByteStreamReader reader = 1; + */ + reader?: OwnedByteStreamReader; + + /** + * @generated from field: required string participant_identity = 2; + */ + participantIdentity?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamOpened"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader", kind: "message", T: OwnedByteStreamReader }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpened { + return new ByteStreamOpened().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpened { + return new ByteStreamOpened().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpened { + return new ByteStreamOpened().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamOpened | PlainMessage | undefined, b: ByteStreamOpened | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamOpened, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamOpened + */ +export class TextStreamOpened extends Message { + /** + * @generated from field: required livekit.proto.OwnedTextStreamReader reader = 1; + */ + reader?: OwnedTextStreamReader; + + /** + * @generated from field: required string participant_identity = 2; + */ + participantIdentity?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamOpened"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader", kind: "message", T: OwnedTextStreamReader }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpened { + return new TextStreamOpened().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpened { + return new TextStreamOpened().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamOpened { + return new TextStreamOpened().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamOpened | PlainMessage | undefined, b: TextStreamOpened | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamOpened, a, b); + } +} + diff --git a/packages/livekit-rtc/src/proto/rpc_pb.ts b/packages/livekit-rtc/src/proto/rpc_pb.ts index eb303614..e7d5950f 100644 --- a/packages/livekit-rtc/src/proto/rpc_pb.ts +++ b/packages/livekit-rtc/src/proto/rpc_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file rpc.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -47,8 +47,8 @@ export class RpcError extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RpcError"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -108,10 +108,10 @@ export class PerformRpcRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -154,8 +154,8 @@ export class RegisterRpcMethodRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RegisterRpcMethodRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RegisterRpcMethodRequest { @@ -197,8 +197,8 @@ export class UnregisterRpcMethodRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterRpcMethodRequest { @@ -250,8 +250,8 @@ export class RpcMethodInvocationResponseRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "error", kind: "message", T: RpcError, opt: true }, ]); @@ -292,7 +292,7 @@ export class PerformRpcResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PerformRpcResponse { @@ -440,7 +440,7 @@ export class PerformRpcCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 3, name: "error", kind: "message", T: RpcError, opt: true }, ]); @@ -511,13 +511,13 @@ export class RpcMethodInvocationEvent extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RpcMethodInvocationEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 5, name: "caller_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 6, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "caller_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RpcMethodInvocationEvent { diff --git a/packages/livekit-rtc/src/proto/stats_pb.ts b/packages/livekit-rtc/src/proto/stats_pb.ts index 7ca4d606..99071b32 100644 --- a/packages/livekit-rtc/src/proto/stats_pb.ts +++ b/packages/livekit-rtc/src/proto/stats_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file stats.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -516,8 +516,8 @@ export class RtcStats_Codec extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Codec"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "codec", kind: "message", T: CodecStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "codec", kind: "message", T: CodecStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Codec { @@ -569,10 +569,10 @@ export class RtcStats_InboundRtp extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.InboundRtp"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, - { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats, req: true }, - { no: 4, name: "inbound", kind: "message", T: InboundRtpStreamStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, + { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats }, + { no: 4, name: "inbound", kind: "message", T: InboundRtpStreamStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_InboundRtp { @@ -624,10 +624,10 @@ export class RtcStats_OutboundRtp extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.OutboundRtp"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, - { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats, req: true }, - { no: 4, name: "outbound", kind: "message", T: OutboundRtpStreamStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, + { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats }, + { no: 4, name: "outbound", kind: "message", T: OutboundRtpStreamStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_OutboundRtp { @@ -679,10 +679,10 @@ export class RtcStats_RemoteInboundRtp extends Message [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, - { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats, req: true }, - { no: 4, name: "remote_inbound", kind: "message", T: RemoteInboundRtpStreamStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, + { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats }, + { no: 4, name: "remote_inbound", kind: "message", T: RemoteInboundRtpStreamStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteInboundRtp { @@ -734,10 +734,10 @@ export class RtcStats_RemoteOutboundRtp extends Message [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, - { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats, req: true }, - { no: 4, name: "remote_outbound", kind: "message", T: RemoteOutboundRtpStreamStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, + { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats }, + { no: 4, name: "remote_outbound", kind: "message", T: RemoteOutboundRtpStreamStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteOutboundRtp { @@ -789,10 +789,10 @@ export class RtcStats_MediaSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.MediaSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "source", kind: "message", T: MediaSourceStats, req: true }, - { no: 3, name: "audio", kind: "message", T: AudioSourceStats, req: true }, - { no: 4, name: "video", kind: "message", T: VideoSourceStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "source", kind: "message", T: MediaSourceStats }, + { no: 3, name: "audio", kind: "message", T: AudioSourceStats }, + { no: 4, name: "video", kind: "message", T: VideoSourceStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_MediaSource { @@ -834,8 +834,8 @@ export class RtcStats_MediaPlayout extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.MediaPlayout"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "audio_playout", kind: "message", T: AudioPlayoutStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "audio_playout", kind: "message", T: AudioPlayoutStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_MediaPlayout { @@ -877,8 +877,8 @@ export class RtcStats_PeerConnection extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.PeerConnection"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "pc", kind: "message", T: PeerConnectionStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "pc", kind: "message", T: PeerConnectionStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_PeerConnection { @@ -920,8 +920,8 @@ export class RtcStats_DataChannel extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.DataChannel"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "dc", kind: "message", T: DataChannelStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "dc", kind: "message", T: DataChannelStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_DataChannel { @@ -963,8 +963,8 @@ export class RtcStats_Transport extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Transport"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "transport", kind: "message", T: TransportStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "transport", kind: "message", T: TransportStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Transport { @@ -1006,8 +1006,8 @@ export class RtcStats_CandidatePair extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.CandidatePair"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "candidate_pair", kind: "message", T: CandidatePairStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "candidate_pair", kind: "message", T: CandidatePairStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_CandidatePair { @@ -1049,8 +1049,8 @@ export class RtcStats_LocalCandidate extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.LocalCandidate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "candidate", kind: "message", T: IceCandidateStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "candidate", kind: "message", T: IceCandidateStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_LocalCandidate { @@ -1092,8 +1092,8 @@ export class RtcStats_RemoteCandidate extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.RemoteCandidate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "candidate", kind: "message", T: IceCandidateStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "candidate", kind: "message", T: IceCandidateStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteCandidate { @@ -1135,8 +1135,8 @@ export class RtcStats_Certificate extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Certificate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "certificate", kind: "message", T: CertificateStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "certificate", kind: "message", T: CertificateStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Certificate { @@ -1178,8 +1178,8 @@ export class RtcStats_Stream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Stream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, - { no: 2, name: "stream", kind: "message", T: StreamStats, req: true }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, + { no: 2, name: "stream", kind: "message", T: StreamStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Stream { @@ -1254,8 +1254,8 @@ export class RtcStatsData extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStatsData"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStatsData { @@ -1317,12 +1317,12 @@ export class CodecStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CodecStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "payload_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "clock_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 5, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 6, name: "sdp_fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "payload_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "clock_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "sdp_fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CodecStats { @@ -1374,10 +1374,10 @@ export class RtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "codec_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "codec_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtpStreamStats { @@ -1424,9 +1424,9 @@ export class ReceivedRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ReceivedRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "packets_lost", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, - { no: 3, name: "jitter", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 1, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "packets_lost", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "jitter", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ReceivedRtpStreamStats { @@ -1723,59 +1723,59 @@ export class InboundRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.InboundRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 5, name: "key_frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 6, name: "frames_rendered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 7, name: "frames_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 8, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 9, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 10, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 11, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 12, name: "total_decode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 13, name: "total_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 14, name: "total_squared_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 15, name: "pause_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 16, name: "total_pause_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 17, name: "freeze_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 18, name: "total_freeze_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 19, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 20, name: "header_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 21, name: "packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 22, name: "fec_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 23, name: "fec_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 24, name: "fec_packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 25, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 26, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 27, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 28, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 29, name: "total_processing_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 30, name: "estimated_playout_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 31, name: "jitter_buffer_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 32, name: "jitter_buffer_target_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 33, name: "jitter_buffer_emitted_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 34, name: "jitter_buffer_minimum_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 35, name: "total_samples_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 36, name: "concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 37, name: "silent_concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 38, name: "concealment_events", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 39, name: "inserted_samples_for_deceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 40, name: "removed_samples_for_acceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 41, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 42, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 43, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 44, name: "frames_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 45, name: "decoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 46, name: "playout_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 47, name: "power_efficient_decoder", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 48, name: "frames_assembled_from_multiple_packets", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 49, name: "total_assembly_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 50, name: "retransmitted_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 51, name: "retransmitted_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 52, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 53, name: "fec_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "key_frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "frames_rendered", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "frames_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 9, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 10, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 11, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "total_decode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 13, name: "total_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 14, name: "total_squared_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 15, name: "pause_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 16, name: "total_pause_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 17, name: "freeze_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 18, name: "total_freeze_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 19, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 20, name: "header_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 21, name: "packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 22, name: "fec_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 23, name: "fec_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 24, name: "fec_packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 25, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 26, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 27, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 28, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 29, name: "total_processing_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 30, name: "estimated_playout_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 31, name: "jitter_buffer_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 32, name: "jitter_buffer_target_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 33, name: "jitter_buffer_emitted_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 34, name: "jitter_buffer_minimum_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 35, name: "total_samples_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 36, name: "concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 37, name: "silent_concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 38, name: "concealment_events", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 39, name: "inserted_samples_for_deceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 40, name: "removed_samples_for_acceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 41, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 42, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 43, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 44, name: "frames_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 45, name: "decoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 46, name: "playout_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 47, name: "power_efficient_decoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 48, name: "frames_assembled_from_multiple_packets", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 49, name: "total_assembly_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 50, name: "retransmitted_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 51, name: "retransmitted_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 52, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 53, name: "fec_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): InboundRtpStreamStats { @@ -1817,8 +1817,8 @@ export class SentRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SentRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SentRtpStreamStats { @@ -2000,36 +2000,36 @@ export class OutboundRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OutboundRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "media_source_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 5, name: "header_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 6, name: "retransmitted_packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 7, name: "retransmitted_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 8, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 9, name: "target_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 10, name: "total_encoded_bytes_target", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 11, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 12, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 13, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 14, name: "frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 15, name: "huge_frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 16, name: "frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 17, name: "key_frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 18, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 19, name: "total_encode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 20, name: "total_packet_send_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 21, name: "quality_limitation_reason", kind: "enum", T: proto2.getEnumType(QualityLimitationReason), req: true }, + { no: 1, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "media_source_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "header_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "retransmitted_packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "retransmitted_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 9, name: "target_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 10, name: "total_encoded_bytes_target", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 12, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 13, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 14, name: "frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "huge_frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 16, name: "frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 17, name: "key_frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 18, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 19, name: "total_encode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 20, name: "total_packet_send_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 21, name: "quality_limitation_reason", kind: "enum", T: proto2.getEnumType(QualityLimitationReason) }, { no: 22, name: "quality_limitation_durations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 1 /* ScalarType.DOUBLE */} }, - { no: 23, name: "quality_limitation_resolution_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 24, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 25, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 26, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 27, name: "encoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 28, name: "power_efficient_encoder", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 29, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 30, name: "scalability_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 23, name: "quality_limitation_resolution_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 24, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 25, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 26, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 27, name: "encoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 28, name: "power_efficient_encoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 29, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 30, name: "scalability_mode", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OutboundRtpStreamStats { @@ -2086,11 +2086,11 @@ export class RemoteInboundRtpStreamStats extends Message [ - { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 3, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 4, name: "fraction_lost", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 5, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 4, name: "fraction_lost", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 5, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemoteInboundRtpStreamStats { @@ -2152,12 +2152,12 @@ export class RemoteOutboundRtpStreamStats extends Message [ - { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "remote_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 3, name: "reports_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 4, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 5, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 6, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "remote_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "reports_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 5, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 6, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemoteOutboundRtpStreamStats { @@ -2199,8 +2199,8 @@ export class MediaSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.MediaSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MediaSourceStats { @@ -2277,15 +2277,15 @@ export class AudioSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 2, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 3, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 4, name: "echo_return_loss", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 5, name: "echo_return_loss_enhancement", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 6, name: "dropped_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 7, name: "dropped_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 8, name: "total_capture_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 9, name: "total_samples_captured", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 2, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 4, name: "echo_return_loss", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 5, name: "echo_return_loss_enhancement", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 6, name: "dropped_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 7, name: "dropped_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "total_capture_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 9, name: "total_samples_captured", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceStats { @@ -2337,10 +2337,10 @@ export class VideoSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceStats { @@ -2402,12 +2402,12 @@ export class AudioPlayoutStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioPlayoutStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "synthesized_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 3, name: "synthesized_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 5, name: "total_playout_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 6, name: "total_samples_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "synthesized_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "synthesized_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 5, name: "total_playout_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 6, name: "total_samples_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioPlayoutStats { @@ -2449,8 +2449,8 @@ export class PeerConnectionStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PeerConnectionStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_channels_opened", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "data_channels_closed", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "data_channels_opened", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "data_channels_closed", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PeerConnectionStats { @@ -2522,14 +2522,14 @@ export class DataChannelStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataChannelStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "data_channel_identifier", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "data_channel_identifier", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "state", kind: "enum", T: proto2.getEnumType(DataChannelState), opt: true }, - { no: 5, name: "messages_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 6, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 7, name: "messages_received", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 8, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 5, name: "messages_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "messages_received", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataChannelStats { @@ -2641,22 +2641,22 @@ export class TransportStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TransportStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 3, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 4, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 5, name: "ice_role", kind: "enum", T: proto2.getEnumType(IceRole), req: true }, - { no: 6, name: "ice_local_username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "ice_role", kind: "enum", T: proto2.getEnumType(IceRole) }, + { no: 6, name: "ice_local_username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "dtls_state", kind: "enum", T: proto2.getEnumType(DtlsTransportState), opt: true }, { no: 8, name: "ice_state", kind: "enum", T: proto2.getEnumType(IceTransportState), opt: true }, - { no: 9, name: "selected_candidate_pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 10, name: "local_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 11, name: "remote_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 12, name: "tls_version", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 13, name: "dtls_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 14, name: "dtls_role", kind: "enum", T: proto2.getEnumType(DtlsRole), req: true }, - { no: 15, name: "srtp_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 16, name: "selected_candidate_pair_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 9, name: "selected_candidate_pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "local_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "remote_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "tls_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "dtls_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "dtls_role", kind: "enum", T: proto2.getEnumType(DtlsRole) }, + { no: 15, name: "srtp_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "selected_candidate_pair_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TransportStats { @@ -2798,28 +2798,28 @@ export class CandidatePairStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CandidatePairStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "local_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "remote_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "local_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "remote_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "state", kind: "enum", T: proto2.getEnumType(IceCandidatePairState), opt: true }, - { no: 5, name: "nominated", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 6, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 7, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 8, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 9, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 10, name: "last_packet_sent_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 11, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 12, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 13, name: "current_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 14, name: "available_outgoing_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 15, name: "available_incoming_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, - { no: 16, name: "requests_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 17, name: "requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 18, name: "responses_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 19, name: "responses_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 20, name: "consent_requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 21, name: "packets_discarded_on_send", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 22, name: "bytes_discarded_on_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 5, name: "nominated", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "last_packet_sent_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 11, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 12, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 13, name: "current_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 14, name: "available_outgoing_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 15, name: "available_incoming_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 16, name: "requests_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 17, name: "requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 18, name: "responses_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 19, name: "responses_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 20, name: "consent_requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 21, name: "packets_discarded_on_send", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 22, name: "bytes_discarded_on_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CandidatePairStats { @@ -2916,18 +2916,18 @@ export class IceCandidateStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.IceCandidateStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, - { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "candidate_type", kind: "enum", T: proto2.getEnumType(IceCandidateType), opt: true }, - { no: 6, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, - { no: 7, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 6, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 7, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "relay_protocol", kind: "enum", T: proto2.getEnumType(IceServerTransportProtocol), opt: true }, - { no: 9, name: "foundation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 10, name: "related_address", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 11, name: "related_port", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, - { no: 12, name: "username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 9, name: "foundation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "related_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "related_port", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 12, name: "username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "tcp_type", kind: "enum", T: proto2.getEnumType(IceTcpCandidateType), opt: true }, ]); @@ -2980,10 +2980,10 @@ export class CertificateStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CertificateStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "fingerprint", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "fingerprint_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "base64_certificate", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 4, name: "issuer_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "fingerprint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "fingerprint_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "base64_certificate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "issuer_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CertificateStats { @@ -3027,8 +3027,8 @@ export class StreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.StreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "stream_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "stream_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StreamStats { diff --git a/packages/livekit-rtc/src/proto/track_pb.ts b/packages/livekit-rtc/src/proto/track_pb.ts index b78dd46f..69ac3ec0 100644 --- a/packages/livekit-rtc/src/proto/track_pb.ts +++ b/packages/livekit-rtc/src/proto/track_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file track.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -113,6 +113,58 @@ proto2.util.setEnumType(StreamState, "livekit.proto.StreamState", [ { no: 2, name: "STATE_PAUSED" }, ]); +/** + * @generated from enum livekit.proto.AudioTrackFeature + */ +export 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, +} +// Retrieve enum metadata with: proto2.getEnumType(AudioTrackFeature) +proto2.util.setEnumType(AudioTrackFeature, "livekit.proto.AudioTrackFeature", [ + { no: 0, name: "TF_STEREO" }, + { no: 1, name: "TF_NO_DTX" }, + { no: 2, name: "TF_AUTO_GAIN_CONTROL" }, + { no: 3, name: "TF_ECHO_CANCELLATION" }, + { no: 4, name: "TF_NOISE_SUPPRESSION" }, + { no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION" }, + { no: 6, name: "TF_PRECONNECT_BUFFER" }, +]); + /** * Create a new VideoTrack from a VideoSource * @@ -137,8 +189,8 @@ export class CreateVideoTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateVideoTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackRequest { @@ -175,7 +227,7 @@ export class CreateVideoTrackResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateVideoTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true }, + { no: 1, name: "track", kind: "message", T: OwnedTrack }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackResponse { @@ -219,8 +271,8 @@ export class CreateAudioTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateAudioTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackRequest { @@ -257,7 +309,7 @@ export class CreateAudioTrackResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateAudioTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true }, + { no: 1, name: "track", kind: "message", T: OwnedTrack }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackResponse { @@ -294,7 +346,7 @@ export class GetStatsRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsRequest { @@ -331,7 +383,7 @@ export class GetStatsResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsResponse { @@ -378,7 +430,7 @@ export class GetStatsCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 3, name: "stats", kind: "message", T: RtcStats, repeated: true }, ]); @@ -490,6 +542,11 @@ export class TrackPublicationInfo extends Message { */ encryptionType?: EncryptionType; + /** + * @generated from field: repeated livekit.proto.AudioTrackFeature audio_features = 12; + */ + audioFeatures: AudioTrackFeature[] = []; + constructor(data?: PartialMessage) { super(); proto2.util.initPartial(data, this); @@ -498,17 +555,18 @@ export class TrackPublicationInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackPublicationInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true }, - { no: 4, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true }, - { no: 5, name: "simulcasted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 6, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 7, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 8, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 9, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 10, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 11, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind) }, + { no: 4, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource) }, + { no: 5, name: "simulcasted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 10, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 11, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType) }, + { no: 12, name: "audio_features", kind: "enum", T: proto2.getEnumType(AudioTrackFeature), repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackPublicationInfo { @@ -550,8 +608,8 @@ export class OwnedTrackPublication extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedTrackPublication"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: TrackPublicationInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: TrackPublicationInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrackPublication { @@ -613,12 +671,12 @@ export class TrackInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true }, - { no: 4, name: "stream_state", kind: "enum", T: proto2.getEnumType(StreamState), req: true }, - { no: 5, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, - { no: 6, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind) }, + { no: 4, name: "stream_state", kind: "enum", T: proto2.getEnumType(StreamState) }, + { no: 5, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackInfo { @@ -660,8 +718,8 @@ export class OwnedTrack extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedTrack"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: TrackInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: TrackInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrack { @@ -705,8 +763,8 @@ export class LocalTrackMuteRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackMuteRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "mute", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "mute", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteRequest { @@ -743,7 +801,7 @@ export class LocalTrackMuteResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackMuteResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteResponse { @@ -787,8 +845,8 @@ export class EnableRemoteTrackRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.EnableRemoteTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackRequest { @@ -825,7 +883,7 @@ export class EnableRemoteTrackResponse extends Message [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackResponse { @@ -872,8 +930,8 @@ export class SetTrackSubscriptionPermissionsRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "all_participants_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "all_participants_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "permissions", kind: "message", T: ParticipantTrackPermission, repeated: true }, ]); @@ -927,7 +985,7 @@ export class ParticipantTrackPermission extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "allow_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 3, name: "allowed_track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); diff --git a/packages/livekit-rtc/src/proto/track_publication_pb.ts b/packages/livekit-rtc/src/proto/track_publication_pb.ts index e30d9d68..1ec2b9ba 100644 --- a/packages/livekit-rtc/src/proto/track_publication_pb.ts +++ b/packages/livekit-rtc/src/proto/track_publication_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file track_publication.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -44,8 +44,8 @@ export class EnableRemoteTrackPublicationRequest extends Message [ - { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackPublicationRequest { @@ -125,9 +125,9 @@ export class UpdateRemoteTrackPublicationDimensionRequest extends Message [ - { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateRemoteTrackPublicationDimensionRequest { diff --git a/packages/livekit-rtc/src/proto/video_frame_pb.ts b/packages/livekit-rtc/src/proto/video_frame_pb.ts index 28696579..bd2f856b 100644 --- a/packages/livekit-rtc/src/proto/video_frame_pb.ts +++ b/packages/livekit-rtc/src/proto/video_frame_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" // @generated from file video_frame.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -242,8 +242,8 @@ export class NewVideoStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, { no: 3, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true }, { no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, ]); @@ -282,7 +282,7 @@ export class NewVideoStreamResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoStreamResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }, + { no: 1, name: "stream", kind: "message", T: OwnedVideoStream }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoStreamResponse { @@ -341,9 +341,9 @@ export class VideoStreamFromParticipantRequest extends Message [ - { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, - { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true }, + { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, + { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource) }, { no: 4, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true }, { no: 5, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, ]); @@ -382,7 +382,7 @@ export class VideoStreamFromParticipantResponse extends Message [ - { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }, + { no: 1, name: "stream", kind: "message", T: OwnedVideoStream }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoStreamFromParticipantResponse { @@ -430,8 +430,8 @@ export class NewVideoSourceRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoSourceRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true }, - { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution, req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType) }, + { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoSourceRequest { @@ -468,7 +468,7 @@ export class NewVideoSourceResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoSourceResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: OwnedVideoSource, req: true }, + { no: 1, name: "source", kind: "message", T: OwnedVideoSource }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoSourceResponse { @@ -524,10 +524,10 @@ export class CaptureVideoFrameRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CaptureVideoFrameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true }, - { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, - { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo }, + { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureVideoFrameRequest { @@ -606,8 +606,8 @@ export class VideoConvertRequest extends Message { static readonly typeName = "livekit.proto.VideoConvertRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true }, - { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true }, + { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo }, + { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoConvertRequest { @@ -704,9 +704,9 @@ export class VideoResolution extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoResolution"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoResolution { @@ -770,10 +770,10 @@ export class VideoBufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoBufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true }, - { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType) }, + { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true }, ]); @@ -822,9 +822,9 @@ export class VideoBufferInfo_ComponentInfo extends Message [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, - { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoBufferInfo_ComponentInfo { @@ -866,8 +866,8 @@ export class OwnedVideoBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: VideoBufferInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: VideoBufferInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoBuffer { @@ -904,7 +904,7 @@ export class VideoStreamInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoStreamInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoStreamInfo { @@ -946,8 +946,8 @@ export class OwnedVideoStream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoStream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: VideoStreamInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: VideoStreamInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoStream { @@ -1001,7 +1001,7 @@ export class VideoStreamEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoStreamEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" }, { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" }, ]); @@ -1052,9 +1052,9 @@ export class VideoFrameReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoFrameReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer, req: true }, - { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, - { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }, + { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer }, + { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoFrameReceived { @@ -1127,8 +1127,8 @@ export class VideoSourceResolution extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceResolution"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceResolution { @@ -1165,7 +1165,7 @@ export class VideoSourceInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceInfo { @@ -1207,8 +1207,8 @@ export class OwnedVideoSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, - { no: 2, name: "info", kind: "message", T: VideoSourceInfo, req: true }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 2, name: "info", kind: "message", T: VideoSourceInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoSource { From 762ba76c440da1c2c7c72f1781ca692ef8fed042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 10 Jun 2025 17:55:17 +0200 Subject: [PATCH 2/8] Update audio_stream.ts --- packages/livekit-rtc/src/audio_stream.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/livekit-rtc/src/audio_stream.ts b/packages/livekit-rtc/src/audio_stream.ts index a7ecfe0d..aee8b333 100644 --- a/packages/livekit-rtc/src/audio_stream.ts +++ b/packages/livekit-rtc/src/audio_stream.ts @@ -50,9 +50,9 @@ class AudioStreamSource implements UnderlyingSource { frameSizeMs: frameSizeMs, ...(this.ncOptions ? { - audioFilterModuleId: this.ncOptions.moduleId, - audioFilterOptions: JSON.stringify(this.ncOptions.options), - } + audioFilterModuleId: this.ncOptions.moduleId, + audioFilterOptions: JSON.stringify(this.ncOptions.options), + } : {}), }); From 27300ed5999d4ade38863b7c67f3a104c036f9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 10 Jun 2025 17:56:27 +0200 Subject: [PATCH 3/8] Update rust-sdks --- packages/livekit-rtc/rust-sdks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/livekit-rtc/rust-sdks b/packages/livekit-rtc/rust-sdks index 696ea4a1..754e68b9 160000 --- a/packages/livekit-rtc/rust-sdks +++ b/packages/livekit-rtc/rust-sdks @@ -1 +1 @@ -Subproject commit 696ea4a1e98fcd81b43ffba7d07484ae0a2fae82 +Subproject commit 754e68b973ab02f034b41cef0594e87f68eedc71 From 23ab41e0b03d829b791c1dc23055e20dee882d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 10 Jun 2025 17:58:55 +0200 Subject: [PATCH 4/8] Update audio_stream.ts --- packages/livekit-rtc/src/audio_stream.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/livekit-rtc/src/audio_stream.ts b/packages/livekit-rtc/src/audio_stream.ts index aee8b333..bafdddb2 100644 --- a/packages/livekit-rtc/src/audio_stream.ts +++ b/packages/livekit-rtc/src/audio_stream.ts @@ -13,6 +13,7 @@ export interface AudioStreamOptions { noiseCancellation?: NoiseCancellationOptions; sampleRate?: number; numChannels?: number; + frameSizeMs?: number; } export interface NoiseCancellationOptions { @@ -26,17 +27,18 @@ class AudioStreamSource implements UnderlyingSource { private sampleRate: number; private numChannels: number; private ncOptions?: NoiseCancellationOptions; + private frameSizeMs?: number; constructor( track: Track, sampleRateOrOptions?: number | AudioStreamOptions, numChannels?: number, - frameSizeMs?: number, ) { if (sampleRateOrOptions !== undefined && typeof sampleRateOrOptions !== 'number') { this.sampleRate = sampleRateOrOptions.sampleRate ?? 48000; this.numChannels = sampleRateOrOptions.numChannels ?? 1; this.ncOptions = sampleRateOrOptions.noiseCancellation; + this.frameSizeMs = sampleRateOrOptions.frameSizeMs; } else { this.sampleRate = (sampleRateOrOptions as number) ?? 48000; this.numChannels = numChannels ?? 1; @@ -47,7 +49,7 @@ class AudioStreamSource implements UnderlyingSource { trackHandle: track.ffi_handle.handle, sampleRate: this.sampleRate, numChannels: this.numChannels, - frameSizeMs: frameSizeMs, + frameSizeMs: this.frameSizeMs, ...(this.ncOptions ? { audioFilterModuleId: this.ncOptions.moduleId, From 5eb89b7c4b6d90d84f81d1f9254d0ba1c40002ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Jun 2025 17:06:31 +0200 Subject: [PATCH 5/8] wip --- packages/livekit-rtc/rust-sdks | 2 +- packages/livekit-rtc/src/audio_stream.ts | 6 +++--- packages/livekit-rtc/src/proto/audio_frame_pb.ts | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/livekit-rtc/rust-sdks b/packages/livekit-rtc/rust-sdks index 754e68b9..fd7866cc 160000 --- a/packages/livekit-rtc/rust-sdks +++ b/packages/livekit-rtc/rust-sdks @@ -1 +1 @@ -Subproject commit 754e68b973ab02f034b41cef0594e87f68eedc71 +Subproject commit fd7866cc4823f31282d34f00231b5b527a2878e8 diff --git a/packages/livekit-rtc/src/audio_stream.ts b/packages/livekit-rtc/src/audio_stream.ts index bafdddb2..8f65217f 100644 --- a/packages/livekit-rtc/src/audio_stream.ts +++ b/packages/livekit-rtc/src/audio_stream.ts @@ -52,9 +52,9 @@ class AudioStreamSource implements UnderlyingSource { frameSizeMs: this.frameSizeMs, ...(this.ncOptions ? { - audioFilterModuleId: this.ncOptions.moduleId, - audioFilterOptions: JSON.stringify(this.ncOptions.options), - } + audioFilterModuleId: this.ncOptions.moduleId, + audioFilterOptions: JSON.stringify(this.ncOptions.options), + } : {}), }); diff --git a/packages/livekit-rtc/src/proto/audio_frame_pb.ts b/packages/livekit-rtc/src/proto/audio_frame_pb.ts index ca243604..2cb56c0f 100644 --- a/packages/livekit-rtc/src/proto/audio_frame_pb.ts +++ b/packages/livekit-rtc/src/proto/audio_frame_pb.ts @@ -211,6 +211,11 @@ export class NewAudioStreamRequest extends Message { */ audioFilterOptions?: string; + /** + * @generated from field: optional uint32 frame_size_ms = 7; + */ + frameSizeMs?: number; + constructor(data?: PartialMessage) { super(); proto2.util.initPartial(data, this); @@ -225,6 +230,7 @@ export class NewAudioStreamRequest extends Message { { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 6, name: "audio_filter_options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 7, name: "frame_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioStreamRequest { @@ -320,6 +326,11 @@ export class AudioStreamFromParticipantRequest extends Message) { super(); proto2.util.initPartial(data, this); @@ -335,6 +346,7 @@ export class AudioStreamFromParticipantRequest extends Message): AudioStreamFromParticipantRequest { From bd35b22da978677a4c2ffdb024edce442746d78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Jun 2025 17:06:57 +0200 Subject: [PATCH 6/8] pretty --- packages/livekit-rtc/src/audio_stream.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/livekit-rtc/src/audio_stream.ts b/packages/livekit-rtc/src/audio_stream.ts index 8f65217f..bafdddb2 100644 --- a/packages/livekit-rtc/src/audio_stream.ts +++ b/packages/livekit-rtc/src/audio_stream.ts @@ -52,9 +52,9 @@ class AudioStreamSource implements UnderlyingSource { frameSizeMs: this.frameSizeMs, ...(this.ncOptions ? { - audioFilterModuleId: this.ncOptions.moduleId, - audioFilterOptions: JSON.stringify(this.ncOptions.options), - } + audioFilterModuleId: this.ncOptions.moduleId, + audioFilterOptions: JSON.stringify(this.ncOptions.options), + } : {}), }); From c56023d1d0f24674b4c3a0ccb920f8c4be4289a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Jun 2025 17:14:13 +0200 Subject: [PATCH 7/8] fix version of proto --- .../livekit-rtc/src/proto/audio_frame_pb.ts | 154 +++--- packages/livekit-rtc/src/proto/e2ee_pb.ts | 58 +-- packages/livekit-rtc/src/proto/ffi_pb.ts | 14 +- packages/livekit-rtc/src/proto/handle_pb.ts | 4 +- .../livekit-rtc/src/proto/participant_pb.ts | 18 +- packages/livekit-rtc/src/proto/room_pb.ts | 334 ++++++------- packages/livekit-rtc/src/proto/rpc_pb.ts | 44 +- packages/livekit-rtc/src/proto/stats_pb.ts | 464 +++++++++--------- packages/livekit-rtc/src/proto/track_pb.ts | 80 +-- .../src/proto/track_publication_pb.ts | 12 +- .../livekit-rtc/src/proto/video_frame_pb.ts | 82 ++-- 11 files changed, 632 insertions(+), 632 deletions(-) diff --git a/packages/livekit-rtc/src/proto/audio_frame_pb.ts b/packages/livekit-rtc/src/proto/audio_frame_pb.ts index 2cb56c0f..42075eb9 100644 --- a/packages/livekit-rtc/src/proto/audio_frame_pb.ts +++ b/packages/livekit-rtc/src/proto/audio_frame_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file audio_frame.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -224,8 +224,8 @@ export class NewAudioStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, @@ -267,7 +267,7 @@ export class NewAudioStreamResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioStreamResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream", kind: "message", T: OwnedAudioStream }, + { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioStreamResponse { @@ -339,8 +339,8 @@ export class AudioStreamFromParticipantRequest extends Message [ - { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, + { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true }, { no: 5, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 6, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, @@ -383,7 +383,7 @@ export class AudioStreamFromParticipantResponse extends Message [ - { no: 1, name: "stream", kind: "message", T: OwnedAudioStream }, + { no: 1, name: "stream", kind: "message", T: OwnedAudioStream, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamFromParticipantResponse { @@ -442,10 +442,10 @@ export class NewAudioSourceRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioSourceRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType) }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true }, { no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true }, - { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, { no: 5, name: "queue_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -483,7 +483,7 @@ export class NewAudioSourceResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewAudioSourceResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: OwnedAudioSource }, + { no: 1, name: "source", kind: "message", T: OwnedAudioSource, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioSourceResponse { @@ -528,8 +528,8 @@ export class CaptureAudioFrameRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CaptureAudioFrameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameRequest { @@ -566,7 +566,7 @@ export class CaptureAudioFrameResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureAudioFrameResponse { @@ -608,7 +608,7 @@ export class CaptureAudioFrameCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -646,7 +646,7 @@ export class ClearAudioBufferRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ClearAudioBufferRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearAudioBufferRequest { @@ -747,7 +747,7 @@ export class NewAudioResamplerResponse extends Message [ - { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler }, + { no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewAudioResamplerResponse { @@ -801,10 +801,10 @@ export class RemixAndResampleRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RemixAndResampleRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo }, - { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo, req: true }, + { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleRequest { @@ -841,7 +841,7 @@ export class RemixAndResampleResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RemixAndResampleResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer }, + { no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemixAndResampleResponse { @@ -893,10 +893,10 @@ export class NewApmRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewApmRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "echo_canceller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 2, name: "gain_controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 3, name: "high_pass_filter_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 4, name: "noise_suppression_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewApmRequest { @@ -933,7 +933,7 @@ export class NewApmResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewApmResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm", kind: "message", T: OwnedApm }, + { no: 1, name: "apm", kind: "message", T: OwnedApm, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewApmResponse { @@ -994,11 +994,11 @@ export class ApmProcessStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ApmProcessStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessStreamRequest { @@ -1096,11 +1096,11 @@ export class ApmProcessReverseStreamRequest extends Message [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 5, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmProcessReverseStreamRequest { @@ -1179,8 +1179,8 @@ export class ApmSetStreamDelayRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ApmSetStreamDelayRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "delay_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "apm_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "delay_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ApmSetStreamDelayRequest { @@ -1284,12 +1284,12 @@ export class NewSoxResamplerRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "input_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 2, name: "output_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType) }, - { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType) }, - { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe) }, + { no: 1, name: "input_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 2, name: "output_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "input_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true }, + { no: 5, name: "output_data_type", kind: "enum", T: proto2.getEnumType(SoxResamplerDataType), req: true }, + { no: 6, name: "quality_recipe", kind: "enum", T: proto2.getEnumType(SoxQualityRecipe), req: true }, { no: 7, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -1391,9 +1391,9 @@ export class PushSoxResamplerRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PushSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PushSoxResamplerRequest { @@ -1444,8 +1444,8 @@ export class PushSoxResamplerResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PushSoxResamplerResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1483,7 +1483,7 @@ export class FlushSoxResamplerRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FlushSoxResamplerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FlushSoxResamplerRequest { @@ -1534,8 +1534,8 @@ export class FlushSoxResamplerResponse extends Message [ - { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "output_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1590,10 +1590,10 @@ export class AudioFrameBufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioFrameBufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameBufferInfo { @@ -1635,8 +1635,8 @@ export class OwnedAudioFrameBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioFrameBuffer { @@ -1673,7 +1673,7 @@ export class AudioStreamInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioStreamInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType) }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(AudioStreamType), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioStreamInfo { @@ -1715,8 +1715,8 @@ export class OwnedAudioStream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioStream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: AudioStreamInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: AudioStreamInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioStream { @@ -1770,7 +1770,7 @@ export class AudioStreamEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioStreamEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" }, { no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" }, ]); @@ -1809,7 +1809,7 @@ export class AudioFrameReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioFrameReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer }, + { no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioFrameReceived { @@ -1887,9 +1887,9 @@ export class AudioSourceOptions extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceOptions { @@ -1926,7 +1926,7 @@ export class AudioSourceInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType) }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(AudioSourceType), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceInfo { @@ -1968,8 +1968,8 @@ export class OwnedAudioSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: AudioSourceInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: AudioSourceInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioSource { @@ -2042,8 +2042,8 @@ export class OwnedAudioResampler extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedAudioResampler"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: AudioResamplerInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: AudioResamplerInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedAudioResampler { @@ -2080,7 +2080,7 @@ export class OwnedApm extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedApm"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedApm { @@ -2153,8 +2153,8 @@ export class OwnedSoxResampler extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedSoxResampler"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: SoxResamplerInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: SoxResamplerInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedSoxResampler { @@ -2209,9 +2209,9 @@ export class LoadAudioFilterPluginRequest extends Message [ - { no: 1, name: "plugin_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "plugin_path", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 2, name: "dependencies", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "module_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LoadAudioFilterPluginRequest { diff --git a/packages/livekit-rtc/src/proto/e2ee_pb.ts b/packages/livekit-rtc/src/proto/e2ee_pb.ts index f7aa7991..b44276ce 100644 --- a/packages/livekit-rtc/src/proto/e2ee_pb.ts +++ b/packages/livekit-rtc/src/proto/e2ee_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file e2ee.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -128,10 +128,10 @@ export class FrameCryptor extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FrameCryptor"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptor { @@ -188,9 +188,9 @@ export class KeyProviderOptions extends Message { static readonly typeName = "livekit.proto.KeyProviderOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true }, - { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + { no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): KeyProviderOptions { @@ -232,8 +232,8 @@ export class E2eeOptions extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeOptions"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType) }, - { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions }, + { no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }, + { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeOptions { @@ -270,7 +270,7 @@ export class E2eeManagerSetEnabledRequest extends Message [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeManagerSetEnabledRequest { @@ -416,9 +416,9 @@ export class FrameCryptorSetEnabledRequest extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptorSetEnabledRequest { @@ -496,9 +496,9 @@ export class FrameCryptorSetKeyIndexRequest extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FrameCryptorSetKeyIndexRequest { @@ -571,8 +571,8 @@ export class SetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetSharedKeyRequest { @@ -640,7 +640,7 @@ export class RatchetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RatchetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RatchetSharedKeyRequest { @@ -714,7 +714,7 @@ export class GetSharedKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSharedKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSharedKeyRequest { @@ -798,9 +798,9 @@ export class SetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetKeyRequest { @@ -873,8 +873,8 @@ export class RatchetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RatchetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RatchetKeyRequest { @@ -953,8 +953,8 @@ export class GetKeyRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetKeyRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyRequest { @@ -1093,7 +1093,7 @@ export class E2eeRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" }, { no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" }, { no: 4, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledRequest, oneof: "message" }, diff --git a/packages/livekit-rtc/src/proto/ffi_pb.ts b/packages/livekit-rtc/src/proto/ffi_pb.ts index 9333e83e..3836996e 100644 --- a/packages/livekit-rtc/src/proto/ffi_pb.ts +++ b/packages/livekit-rtc/src/proto/ffi_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file ffi.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -1424,7 +1424,7 @@ export class DisposeRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisposeRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "async", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisposeRequest { @@ -1500,7 +1500,7 @@ export class DisposeCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisposeCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisposeCallback { @@ -1564,12 +1564,12 @@ export class LogRecord extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LogRecord"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "level", kind: "enum", T: proto2.getEnumType(LogLevel) }, - { no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "level", kind: "enum", T: proto2.getEnumType(LogLevel), req: true }, + { no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 3, name: "module_path", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 5, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LogRecord { @@ -1643,7 +1643,7 @@ export class Panic extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.Panic"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Panic { diff --git a/packages/livekit-rtc/src/proto/handle_pb.ts b/packages/livekit-rtc/src/proto/handle_pb.ts index a338b121..ad84d440 100644 --- a/packages/livekit-rtc/src/proto/handle_pb.ts +++ b/packages/livekit-rtc/src/proto/handle_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file handle.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -47,7 +47,7 @@ export class FfiOwnedHandle extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.FfiOwnedHandle"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FfiOwnedHandle { diff --git a/packages/livekit-rtc/src/proto/participant_pb.ts b/packages/livekit-rtc/src/proto/participant_pb.ts index 546f0c18..9d15ce3c 100644 --- a/packages/livekit-rtc/src/proto/participant_pb.ts +++ b/packages/livekit-rtc/src/proto/participant_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file participant.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -230,13 +230,13 @@ export class ParticipantInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind) }, - { no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, + { no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind), req: true }, + { no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantInfo { @@ -278,8 +278,8 @@ export class OwnedParticipant extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedParticipant"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: ParticipantInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: ParticipantInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedParticipant { diff --git a/packages/livekit-rtc/src/proto/room_pb.ts b/packages/livekit-rtc/src/proto/room_pb.ts index fcaab00e..b6eba2a4 100644 --- a/packages/livekit-rtc/src/proto/room_pb.ts +++ b/packages/livekit-rtc/src/proto/room_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file room.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -180,9 +180,9 @@ export class ConnectRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "options", kind: "message", T: RoomOptions }, + { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "options", kind: "message", T: RoomOptions, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectRequest { @@ -219,7 +219,7 @@ export class ConnectResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectResponse { @@ -273,7 +273,7 @@ export class ConnectCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "result", kind: "message", T: ConnectCallback_Result, oneof: "message" }, ]); @@ -320,7 +320,7 @@ export class ConnectCallback_ParticipantWithTracks extends Message [ - { no: 1, name: "participant", kind: "message", T: OwnedParticipant }, + { no: 1, name: "participant", kind: "message", T: OwnedParticipant, req: true }, { no: 2, name: "publications", kind: "message", T: OwnedTrackPublication, repeated: true }, ]); @@ -368,8 +368,8 @@ export class ConnectCallback_Result extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectCallback.Result"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room", kind: "message", T: OwnedRoom }, - { no: 2, name: "local_participant", kind: "message", T: OwnedParticipant }, + { no: 1, name: "room", kind: "message", T: OwnedRoom, req: true }, + { no: 2, name: "local_participant", kind: "message", T: OwnedParticipant, req: true }, { no: 3, name: "participants", kind: "message", T: ConnectCallback_ParticipantWithTracks, repeated: true }, ]); @@ -409,7 +409,7 @@ export class DisconnectRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectRequest { @@ -446,7 +446,7 @@ export class DisconnectResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectResponse { @@ -483,7 +483,7 @@ export class DisconnectCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DisconnectCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectCallback { @@ -532,9 +532,9 @@ export class PublishTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "options", kind: "message", T: TrackPublishOptions }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "options", kind: "message", T: TrackPublishOptions, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTrackRequest { @@ -571,7 +571,7 @@ export class PublishTrackResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTrackResponse { @@ -625,7 +625,7 @@ export class PublishTrackCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishTrackCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "publication", kind: "message", T: OwnedTrackPublication, oneof: "message" }, ]); @@ -676,9 +676,9 @@ export class UnpublishTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnpublishTrackRequest { @@ -715,7 +715,7 @@ export class UnpublishTrackResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnpublishTrackResponse { @@ -757,7 +757,7 @@ export class UnpublishTrackCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UnpublishTrackCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -828,10 +828,10 @@ export class PublishDataRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, { no: 5, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 7, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, @@ -871,7 +871,7 @@ export class PublishDataResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishDataResponse { @@ -913,7 +913,7 @@ export class PublishDataCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishDataCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -968,9 +968,9 @@ export class PublishTranscriptionRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }, ]); @@ -1008,7 +1008,7 @@ export class PublishTranscriptionResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishTranscriptionResponse { @@ -1050,7 +1050,7 @@ export class PublishTranscriptionCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1105,9 +1105,9 @@ export class PublishSipDtmfRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); @@ -1145,7 +1145,7 @@ export class PublishSipDtmfResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PublishSipDtmfResponse { @@ -1187,7 +1187,7 @@ export class PublishSipDtmfCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PublishSipDtmfCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1232,8 +1232,8 @@ export class SetLocalMetadataRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalMetadataRequest { @@ -1270,7 +1270,7 @@ export class SetLocalMetadataResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalMetadataResponse { @@ -1312,7 +1312,7 @@ export class SetLocalMetadataCallback extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalMetadataCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1365,8 +1365,8 @@ export class SendChatMessageRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1425,9 +1425,9 @@ export class EditChatMessageRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.EditChatMessageRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "edit_text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "original_message", kind: "message", T: ChatMessage }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "edit_text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "original_message", kind: "message", T: ChatMessage, req: true }, { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1466,7 +1466,7 @@ export class SendChatMessageResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendChatMessageResponse { @@ -1520,7 +1520,7 @@ export class SendChatMessageCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendChatMessageCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "message" }, ]); @@ -1566,7 +1566,7 @@ export class SetLocalAttributesRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }, ]); @@ -1609,8 +1609,8 @@ export class AttributesEntry extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AttributesEntry"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AttributesEntry { @@ -1647,7 +1647,7 @@ export class SetLocalAttributesResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalAttributesResponse { @@ -1689,7 +1689,7 @@ export class SetLocalAttributesCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1734,8 +1734,8 @@ export class SetLocalNameRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalNameRequest { @@ -1772,7 +1772,7 @@ export class SetLocalNameResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLocalNameResponse { @@ -1814,7 +1814,7 @@ export class SetLocalNameCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetLocalNameCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -1859,8 +1859,8 @@ export class SetSubscribedRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SetSubscribedRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 2, name: "publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetSubscribedRequest { @@ -1928,7 +1928,7 @@ export class GetSessionStatsRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSessionStatsRequest { @@ -1965,7 +1965,7 @@ export class GetSessionStatsResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSessionStatsResponse { @@ -2019,7 +2019,7 @@ export class GetSessionStatsCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetSessionStatsCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, { no: 3, name: "result", kind: "message", T: GetSessionStatsCallback_Result, oneof: "message" }, ]); @@ -2106,8 +2106,8 @@ export class VideoEncoding extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoEncoding"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "max_framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "max_framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoEncoding { @@ -2144,7 +2144,7 @@ export class AudioEncoding extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioEncoding"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioEncoding { @@ -2456,12 +2456,12 @@ export class TranscriptionSegment extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TranscriptionSegment"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TranscriptionSegment { @@ -2503,8 +2503,8 @@ export class BufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.BufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BufferInfo { @@ -2546,8 +2546,8 @@ export class OwnedBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "data", kind: "message", T: BufferInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "data", kind: "message", T: BufferInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedBuffer { @@ -2801,7 +2801,7 @@ export class RoomEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "participant_connected", kind: "message", T: ParticipantConnected, oneof: "message" }, { no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" }, { no: 4, name: "local_track_published", kind: "message", T: LocalTrackPublished, oneof: "message" }, @@ -2893,10 +2893,10 @@ export class RoomInfo extends Message { static readonly typeName = "livekit.proto.RoomInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomInfo { @@ -2938,8 +2938,8 @@ export class OwnedRoom extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedRoom"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: RoomInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: RoomInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedRoom { @@ -2976,7 +2976,7 @@ export class ParticipantConnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantConnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: OwnedParticipant }, + { no: 1, name: "info", kind: "message", T: OwnedParticipant, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantConnected { @@ -3018,8 +3018,8 @@ export class ParticipantDisconnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantDisconnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantDisconnected { @@ -3059,7 +3059,7 @@ export class LocalTrackPublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackPublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackPublished { @@ -3096,7 +3096,7 @@ export class LocalTrackUnpublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackUnpublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackUnpublished { @@ -3133,7 +3133,7 @@ export class LocalTrackSubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackSubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackSubscribed { @@ -3175,8 +3175,8 @@ export class TrackPublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackPublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackPublished { @@ -3218,8 +3218,8 @@ export class TrackUnpublished extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnpublished"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnpublished { @@ -3264,8 +3264,8 @@ export class TrackSubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackSubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track", kind: "message", T: OwnedTrack }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track", kind: "message", T: OwnedTrack, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackSubscribed { @@ -3309,8 +3309,8 @@ export class TrackUnsubscribed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnsubscribed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnsubscribed { @@ -3357,9 +3357,9 @@ export class TrackSubscriptionFailed extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackSubscriptionFailed"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackSubscriptionFailed { @@ -3401,8 +3401,8 @@ export class TrackMuted extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackMuted"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackMuted { @@ -3444,8 +3444,8 @@ export class TrackUnmuted extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackUnmuted"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnmuted { @@ -3489,8 +3489,8 @@ export class E2eeStateChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.E2eeStateChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "state", kind: "enum", T: proto2.getEnumType(EncryptionState) }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "state", kind: "enum", T: proto2.getEnumType(EncryptionState), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): E2eeStateChanged { @@ -3564,7 +3564,7 @@ export class RoomMetadataChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomMetadataChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomMetadataChanged { @@ -3601,7 +3601,7 @@ export class RoomSidChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RoomSidChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RoomSidChanged { @@ -3643,8 +3643,8 @@ export class ParticipantMetadataChanged extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantMetadataChanged { @@ -3691,7 +3691,7 @@ export class ParticipantAttributesChanged extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }, { no: 3, name: "changed_attributes", kind: "message", T: AttributesEntry, repeated: true }, ]); @@ -3735,8 +3735,8 @@ export class ParticipantNameChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ParticipantNameChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantNameChanged { @@ -3778,8 +3778,8 @@ export class ConnectionQualityChanged extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectionQualityChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "quality", kind: "enum", T: proto2.getEnumType(ConnectionQuality) }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "quality", kind: "enum", T: proto2.getEnumType(ConnectionQuality), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionQualityChanged { @@ -3821,7 +3821,7 @@ export class UserPacket extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.UserPacket"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: OwnedBuffer }, + { no: 1, name: "data", kind: "message", T: OwnedBuffer, req: true }, { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -3884,9 +3884,9 @@ export class ChatMessage extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ChatMessage"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 4, name: "edit_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 5, name: "deleted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 6, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, @@ -3931,8 +3931,8 @@ export class ChatMessageReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ChatMessageReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "message", kind: "message", T: ChatMessage }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "message", kind: "message", T: ChatMessage, req: true }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChatMessageReceived { @@ -3974,7 +3974,7 @@ export class SipDTMF extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SipDTMF"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, { no: 2, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -4036,8 +4036,8 @@ export class DataPacketReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataPacketReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" }, { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" }, ]); @@ -4125,7 +4125,7 @@ export class ConnectionStateChanged extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ConnectionStateChanged"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(ConnectionState) }, + { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(ConnectionState), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionStateChanged { @@ -4193,7 +4193,7 @@ export class Disconnected extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.Disconnected"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "enum", T: proto2.getEnumType(DisconnectReason) }, + { no: 1, name: "reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Disconnected { @@ -4418,7 +4418,7 @@ export class DataStream_TextHeader extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.TextHeader"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType) }, + { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType), req: true }, { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "attached_stream_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, @@ -4461,7 +4461,7 @@ export class DataStream_ByteHeader extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.ByteHeader"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStream_ByteHeader { @@ -4552,10 +4552,10 @@ export class DataStream_Header extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Header"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 7, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" }, @@ -4624,9 +4624,9 @@ export class DataStream_Chunk extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Chunk"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, { no: 4, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, { no: 5, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true }, ]); @@ -4681,8 +4681,8 @@ export class DataStream_Trailer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStream.Trailer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, ]); @@ -4725,8 +4725,8 @@ export class DataStreamHeaderReceived extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStreamHeaderReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "header", kind: "message", T: DataStream_Header }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamHeaderReceived { @@ -4768,8 +4768,8 @@ export class DataStreamChunkReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataStreamChunkReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamChunkReceived { @@ -4811,8 +4811,8 @@ export class DataStreamTrailerReceived extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataStreamTrailerReceived { @@ -4864,10 +4864,10 @@ export class SendStreamHeaderRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "header", kind: "message", T: DataStream_Header }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamHeaderRequest { @@ -4919,10 +4919,10 @@ export class SendStreamChunkRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamChunkRequest { @@ -4974,10 +4974,10 @@ export class SendStreamTrailerRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamTrailerRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }, { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamTrailerRequest { @@ -5014,7 +5014,7 @@ export class SendStreamHeaderResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamHeaderResponse { @@ -5051,7 +5051,7 @@ export class SendStreamChunkResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamChunkResponse { @@ -5088,7 +5088,7 @@ export class SendStreamTrailerResponse extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SendStreamTrailerResponse { @@ -5130,7 +5130,7 @@ export class SendStreamHeaderCallback extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamHeaderCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5173,7 +5173,7 @@ export class SendStreamChunkCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SendStreamChunkCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5216,7 +5216,7 @@ export class SendStreamTrailerCallback extends Message [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -5264,9 +5264,9 @@ export class SetDataChannelBufferedAmountLowThresholdRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetDataChannelBufferedAmountLowThresholdRequest { @@ -5339,8 +5339,8 @@ export class DataChannelBufferedAmountLowThresholdChanged extends Message [ - { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind) }, - { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }, + { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataChannelBufferedAmountLowThresholdChanged { @@ -5382,8 +5382,8 @@ export class ByteStreamOpened extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ByteStreamOpened"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "reader", kind: "message", T: OwnedByteStreamReader }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "reader", kind: "message", T: OwnedByteStreamReader, req: true }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpened { @@ -5425,8 +5425,8 @@ export class TextStreamOpened extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TextStreamOpened"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "reader", kind: "message", T: OwnedTextStreamReader }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "reader", kind: "message", T: OwnedTextStreamReader, req: true }, + { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpened { diff --git a/packages/livekit-rtc/src/proto/rpc_pb.ts b/packages/livekit-rtc/src/proto/rpc_pb.ts index e7d5950f..eb303614 100644 --- a/packages/livekit-rtc/src/proto/rpc_pb.ts +++ b/packages/livekit-rtc/src/proto/rpc_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file rpc.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -47,8 +47,8 @@ export class RpcError extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RpcError"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); @@ -108,10 +108,10 @@ export class PerformRpcRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 5, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, ]); @@ -154,8 +154,8 @@ export class RegisterRpcMethodRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RegisterRpcMethodRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RegisterRpcMethodRequest { @@ -197,8 +197,8 @@ export class UnregisterRpcMethodRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterRpcMethodRequest { @@ -250,8 +250,8 @@ export class RpcMethodInvocationResponseRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 3, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 4, name: "error", kind: "message", T: RpcError, opt: true }, ]); @@ -292,7 +292,7 @@ export class PerformRpcResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PerformRpcResponse { @@ -440,7 +440,7 @@ export class PerformRpcCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PerformRpcCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 3, name: "error", kind: "message", T: RpcError, opt: true }, ]); @@ -511,13 +511,13 @@ export class RpcMethodInvocationEvent extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RpcMethodInvocationEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "caller_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 5, name: "caller_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 6, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RpcMethodInvocationEvent { diff --git a/packages/livekit-rtc/src/proto/stats_pb.ts b/packages/livekit-rtc/src/proto/stats_pb.ts index 99071b32..7ca4d606 100644 --- a/packages/livekit-rtc/src/proto/stats_pb.ts +++ b/packages/livekit-rtc/src/proto/stats_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file stats.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -516,8 +516,8 @@ export class RtcStats_Codec extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Codec"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "codec", kind: "message", T: CodecStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "codec", kind: "message", T: CodecStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Codec { @@ -569,10 +569,10 @@ export class RtcStats_InboundRtp extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.InboundRtp"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, - { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats }, - { no: 4, name: "inbound", kind: "message", T: InboundRtpStreamStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, + { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats, req: true }, + { no: 4, name: "inbound", kind: "message", T: InboundRtpStreamStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_InboundRtp { @@ -624,10 +624,10 @@ export class RtcStats_OutboundRtp extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.OutboundRtp"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, - { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats }, - { no: 4, name: "outbound", kind: "message", T: OutboundRtpStreamStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, + { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats, req: true }, + { no: 4, name: "outbound", kind: "message", T: OutboundRtpStreamStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_OutboundRtp { @@ -679,10 +679,10 @@ export class RtcStats_RemoteInboundRtp extends Message [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, - { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats }, - { no: 4, name: "remote_inbound", kind: "message", T: RemoteInboundRtpStreamStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, + { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats, req: true }, + { no: 4, name: "remote_inbound", kind: "message", T: RemoteInboundRtpStreamStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteInboundRtp { @@ -734,10 +734,10 @@ export class RtcStats_RemoteOutboundRtp extends Message [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "stream", kind: "message", T: RtpStreamStats }, - { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats }, - { no: 4, name: "remote_outbound", kind: "message", T: RemoteOutboundRtpStreamStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "stream", kind: "message", T: RtpStreamStats, req: true }, + { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats, req: true }, + { no: 4, name: "remote_outbound", kind: "message", T: RemoteOutboundRtpStreamStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteOutboundRtp { @@ -789,10 +789,10 @@ export class RtcStats_MediaSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.MediaSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "source", kind: "message", T: MediaSourceStats }, - { no: 3, name: "audio", kind: "message", T: AudioSourceStats }, - { no: 4, name: "video", kind: "message", T: VideoSourceStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "source", kind: "message", T: MediaSourceStats, req: true }, + { no: 3, name: "audio", kind: "message", T: AudioSourceStats, req: true }, + { no: 4, name: "video", kind: "message", T: VideoSourceStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_MediaSource { @@ -834,8 +834,8 @@ export class RtcStats_MediaPlayout extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.MediaPlayout"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "audio_playout", kind: "message", T: AudioPlayoutStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "audio_playout", kind: "message", T: AudioPlayoutStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_MediaPlayout { @@ -877,8 +877,8 @@ export class RtcStats_PeerConnection extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.PeerConnection"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "pc", kind: "message", T: PeerConnectionStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "pc", kind: "message", T: PeerConnectionStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_PeerConnection { @@ -920,8 +920,8 @@ export class RtcStats_DataChannel extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.DataChannel"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "dc", kind: "message", T: DataChannelStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "dc", kind: "message", T: DataChannelStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_DataChannel { @@ -963,8 +963,8 @@ export class RtcStats_Transport extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Transport"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "transport", kind: "message", T: TransportStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "transport", kind: "message", T: TransportStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Transport { @@ -1006,8 +1006,8 @@ export class RtcStats_CandidatePair extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.CandidatePair"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "candidate_pair", kind: "message", T: CandidatePairStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "candidate_pair", kind: "message", T: CandidatePairStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_CandidatePair { @@ -1049,8 +1049,8 @@ export class RtcStats_LocalCandidate extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.LocalCandidate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "candidate", kind: "message", T: IceCandidateStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "candidate", kind: "message", T: IceCandidateStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_LocalCandidate { @@ -1092,8 +1092,8 @@ export class RtcStats_RemoteCandidate extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.RemoteCandidate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "candidate", kind: "message", T: IceCandidateStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "candidate", kind: "message", T: IceCandidateStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_RemoteCandidate { @@ -1135,8 +1135,8 @@ export class RtcStats_Certificate extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Certificate"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "certificate", kind: "message", T: CertificateStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "certificate", kind: "message", T: CertificateStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Certificate { @@ -1178,8 +1178,8 @@ export class RtcStats_Stream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStats.Stream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "rtc", kind: "message", T: RtcStatsData }, - { no: 2, name: "stream", kind: "message", T: StreamStats }, + { no: 1, name: "rtc", kind: "message", T: RtcStatsData, req: true }, + { no: 2, name: "stream", kind: "message", T: StreamStats, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStats_Stream { @@ -1254,8 +1254,8 @@ export class RtcStatsData extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtcStatsData"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtcStatsData { @@ -1317,12 +1317,12 @@ export class CodecStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CodecStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "payload_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "clock_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "sdp_fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "payload_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "clock_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 5, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 6, name: "sdp_fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CodecStats { @@ -1374,10 +1374,10 @@ export class RtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.RtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "codec_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "codec_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RtpStreamStats { @@ -1424,9 +1424,9 @@ export class ReceivedRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.ReceivedRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "packets_lost", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "jitter", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 1, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "packets_lost", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "jitter", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ReceivedRtpStreamStats { @@ -1723,59 +1723,59 @@ export class InboundRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.InboundRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "key_frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "frames_rendered", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "frames_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 10, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 11, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 12, name: "total_decode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 13, name: "total_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 14, name: "total_squared_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 15, name: "pause_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 16, name: "total_pause_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 17, name: "freeze_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 18, name: "total_freeze_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 19, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 20, name: "header_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 21, name: "packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 22, name: "fec_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 23, name: "fec_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 24, name: "fec_packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 25, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 26, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 27, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 28, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 29, name: "total_processing_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 30, name: "estimated_playout_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 31, name: "jitter_buffer_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 32, name: "jitter_buffer_target_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 33, name: "jitter_buffer_emitted_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 34, name: "jitter_buffer_minimum_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 35, name: "total_samples_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 36, name: "concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 37, name: "silent_concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 38, name: "concealment_events", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 39, name: "inserted_samples_for_deceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 40, name: "removed_samples_for_acceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 41, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 42, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 43, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 44, name: "frames_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 45, name: "decoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 46, name: "playout_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 47, name: "power_efficient_decoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 48, name: "frames_assembled_from_multiple_packets", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 49, name: "total_assembly_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 50, name: "retransmitted_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 51, name: "retransmitted_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 52, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 53, name: "fec_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 5, name: "key_frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 6, name: "frames_rendered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 7, name: "frames_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 8, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 9, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 10, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 11, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 12, name: "total_decode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 13, name: "total_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 14, name: "total_squared_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 15, name: "pause_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 16, name: "total_pause_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 17, name: "freeze_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 18, name: "total_freeze_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 19, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 20, name: "header_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 21, name: "packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 22, name: "fec_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 23, name: "fec_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 24, name: "fec_packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 25, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 26, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 27, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 28, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 29, name: "total_processing_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 30, name: "estimated_playout_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 31, name: "jitter_buffer_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 32, name: "jitter_buffer_target_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 33, name: "jitter_buffer_emitted_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 34, name: "jitter_buffer_minimum_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 35, name: "total_samples_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 36, name: "concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 37, name: "silent_concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 38, name: "concealment_events", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 39, name: "inserted_samples_for_deceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 40, name: "removed_samples_for_acceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 41, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 42, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 43, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 44, name: "frames_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 45, name: "decoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 46, name: "playout_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 47, name: "power_efficient_decoder", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 48, name: "frames_assembled_from_multiple_packets", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 49, name: "total_assembly_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 50, name: "retransmitted_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 51, name: "retransmitted_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 52, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 53, name: "fec_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): InboundRtpStreamStats { @@ -1817,8 +1817,8 @@ export class SentRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.SentRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SentRtpStreamStats { @@ -2000,36 +2000,36 @@ export class OutboundRtpStreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OutboundRtpStreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "media_source_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "header_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "retransmitted_packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "retransmitted_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "target_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 10, name: "total_encoded_bytes_target", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 11, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 12, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 13, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 14, name: "frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 15, name: "huge_frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 16, name: "frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 17, name: "key_frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 18, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 19, name: "total_encode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 20, name: "total_packet_send_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 21, name: "quality_limitation_reason", kind: "enum", T: proto2.getEnumType(QualityLimitationReason) }, + { no: 1, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "media_source_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 5, name: "header_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 6, name: "retransmitted_packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 7, name: "retransmitted_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 8, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 9, name: "target_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 10, name: "total_encoded_bytes_target", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 11, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 12, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 13, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 14, name: "frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 15, name: "huge_frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 16, name: "frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 17, name: "key_frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 18, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 19, name: "total_encode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 20, name: "total_packet_send_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 21, name: "quality_limitation_reason", kind: "enum", T: proto2.getEnumType(QualityLimitationReason), req: true }, { no: 22, name: "quality_limitation_durations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 1 /* ScalarType.DOUBLE */} }, - { no: 23, name: "quality_limitation_resolution_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 24, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 25, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 26, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 27, name: "encoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 28, name: "power_efficient_encoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 29, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 30, name: "scalability_mode", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 23, name: "quality_limitation_resolution_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 24, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 25, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 26, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 27, name: "encoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 28, name: "power_efficient_encoder", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 29, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 30, name: "scalability_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OutboundRtpStreamStats { @@ -2086,11 +2086,11 @@ export class RemoteInboundRtpStreamStats extends Message [ - { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 4, name: "fraction_lost", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 5, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 3, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 4, name: "fraction_lost", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 5, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemoteInboundRtpStreamStats { @@ -2152,12 +2152,12 @@ export class RemoteOutboundRtpStreamStats extends Message [ - { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "remote_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "reports_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 5, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 6, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "remote_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 3, name: "reports_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 4, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 5, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 6, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RemoteOutboundRtpStreamStats { @@ -2199,8 +2199,8 @@ export class MediaSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.MediaSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MediaSourceStats { @@ -2277,15 +2277,15 @@ export class AudioSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 2, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 4, name: "echo_return_loss", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 5, name: "echo_return_loss_enhancement", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 6, name: "dropped_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 7, name: "dropped_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "total_capture_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 9, name: "total_samples_captured", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 2, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 3, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 4, name: "echo_return_loss", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 5, name: "echo_return_loss_enhancement", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 6, name: "dropped_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 7, name: "dropped_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 8, name: "total_capture_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 9, name: "total_samples_captured", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioSourceStats { @@ -2337,10 +2337,10 @@ export class VideoSourceStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceStats { @@ -2402,12 +2402,12 @@ export class AudioPlayoutStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.AudioPlayoutStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "synthesized_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "synthesized_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 5, name: "total_playout_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 6, name: "total_samples_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "synthesized_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 3, name: "synthesized_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 5, name: "total_playout_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 6, name: "total_samples_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AudioPlayoutStats { @@ -2449,8 +2449,8 @@ export class PeerConnectionStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.PeerConnectionStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "data_channels_opened", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "data_channels_closed", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "data_channels_opened", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "data_channels_closed", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PeerConnectionStats { @@ -2522,14 +2522,14 @@ export class DataChannelStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.DataChannelStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "data_channel_identifier", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "data_channel_identifier", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, { no: 4, name: "state", kind: "enum", T: proto2.getEnumType(DataChannelState), opt: true }, - { no: 5, name: "messages_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "messages_received", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "messages_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 6, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 7, name: "messages_received", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 8, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DataChannelStats { @@ -2641,22 +2641,22 @@ export class TransportStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TransportStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "ice_role", kind: "enum", T: proto2.getEnumType(IceRole) }, - { no: 6, name: "ice_local_username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 4, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 5, name: "ice_role", kind: "enum", T: proto2.getEnumType(IceRole), req: true }, + { no: 6, name: "ice_local_username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 7, name: "dtls_state", kind: "enum", T: proto2.getEnumType(DtlsTransportState), opt: true }, { no: 8, name: "ice_state", kind: "enum", T: proto2.getEnumType(IceTransportState), opt: true }, - { no: 9, name: "selected_candidate_pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "local_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "remote_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "tls_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "dtls_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "dtls_role", kind: "enum", T: proto2.getEnumType(DtlsRole) }, - { no: 15, name: "srtp_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "selected_candidate_pair_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 9, name: "selected_candidate_pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 10, name: "local_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 11, name: "remote_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 12, name: "tls_version", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 13, name: "dtls_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 14, name: "dtls_role", kind: "enum", T: proto2.getEnumType(DtlsRole), req: true }, + { no: 15, name: "srtp_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 16, name: "selected_candidate_pair_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TransportStats { @@ -2798,28 +2798,28 @@ export class CandidatePairStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CandidatePairStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "local_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "remote_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "local_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "remote_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 4, name: "state", kind: "enum", T: proto2.getEnumType(IceCandidatePairState), opt: true }, - { no: 5, name: "nominated", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 10, name: "last_packet_sent_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 11, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 12, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 13, name: "current_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 14, name: "available_outgoing_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 15, name: "available_incoming_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 16, name: "requests_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 17, name: "requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 18, name: "responses_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 19, name: "responses_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 20, name: "consent_requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 21, name: "packets_discarded_on_send", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 22, name: "bytes_discarded_on_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "nominated", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 6, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 7, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 8, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 9, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 10, name: "last_packet_sent_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 11, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 12, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 13, name: "current_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 14, name: "available_outgoing_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 15, name: "available_incoming_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, + { no: 16, name: "requests_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 17, name: "requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 18, name: "responses_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 19, name: "responses_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 20, name: "consent_requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 21, name: "packets_discarded_on_send", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 22, name: "bytes_discarded_on_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CandidatePairStats { @@ -2916,18 +2916,18 @@ export class IceCandidateStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.IceCandidateStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 5, name: "candidate_type", kind: "enum", T: proto2.getEnumType(IceCandidateType), opt: true }, - { no: 6, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 7, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 8, name: "relay_protocol", kind: "enum", T: proto2.getEnumType(IceServerTransportProtocol), opt: true }, - { no: 9, name: "foundation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "related_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "related_port", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 12, name: "username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "foundation", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 10, name: "related_address", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 11, name: "related_port", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true }, + { no: 12, name: "username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 13, name: "tcp_type", kind: "enum", T: proto2.getEnumType(IceTcpCandidateType), opt: true }, ]); @@ -2980,10 +2980,10 @@ export class CertificateStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CertificateStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "fingerprint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fingerprint_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "base64_certificate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "issuer_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "fingerprint", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "fingerprint_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "base64_certificate", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "issuer_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CertificateStats { @@ -3027,8 +3027,8 @@ export class StreamStats extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.StreamStats"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "stream_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "stream_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StreamStats { diff --git a/packages/livekit-rtc/src/proto/track_pb.ts b/packages/livekit-rtc/src/proto/track_pb.ts index 69ac3ec0..234560c0 100644 --- a/packages/livekit-rtc/src/proto/track_pb.ts +++ b/packages/livekit-rtc/src/proto/track_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file track.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -189,8 +189,8 @@ export class CreateVideoTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateVideoTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackRequest { @@ -227,7 +227,7 @@ export class CreateVideoTrackResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateVideoTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track", kind: "message", T: OwnedTrack }, + { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateVideoTrackResponse { @@ -271,8 +271,8 @@ export class CreateAudioTrackRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateAudioTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackRequest { @@ -309,7 +309,7 @@ export class CreateAudioTrackResponse extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CreateAudioTrackResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track", kind: "message", T: OwnedTrack }, + { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateAudioTrackResponse { @@ -346,7 +346,7 @@ export class GetStatsRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsRequest { @@ -383,7 +383,7 @@ export class GetStatsResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetStatsResponse { @@ -430,7 +430,7 @@ export class GetStatsCallback extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.GetStatsCallback"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 3, name: "stats", kind: "message", T: RtcStats, repeated: true }, ]); @@ -555,17 +555,17 @@ export class TrackPublicationInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackPublicationInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind) }, - { no: 4, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource) }, - { no: 5, name: "simulcasted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 11, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType) }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true }, + { no: 4, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true }, + { no: 5, name: "simulcasted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 6, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 7, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 8, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 9, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 10, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 11, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }, { no: 12, name: "audio_features", kind: "enum", T: proto2.getEnumType(AudioTrackFeature), repeated: true }, ]); @@ -608,8 +608,8 @@ export class OwnedTrackPublication extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedTrackPublication"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: TrackPublicationInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: TrackPublicationInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrackPublication { @@ -671,12 +671,12 @@ export class TrackInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.TrackInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind) }, - { no: 4, name: "stream_state", kind: "enum", T: proto2.getEnumType(StreamState) }, - { no: 5, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true }, + { no: 4, name: "stream_state", kind: "enum", T: proto2.getEnumType(StreamState), req: true }, + { no: 5, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, + { no: 6, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrackInfo { @@ -718,8 +718,8 @@ export class OwnedTrack extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedTrack"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: TrackInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: TrackInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTrack { @@ -763,8 +763,8 @@ export class LocalTrackMuteRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackMuteRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "mute", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "mute", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteRequest { @@ -801,7 +801,7 @@ export class LocalTrackMuteResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.LocalTrackMuteResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LocalTrackMuteResponse { @@ -845,8 +845,8 @@ export class EnableRemoteTrackRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.EnableRemoteTrackRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackRequest { @@ -883,7 +883,7 @@ export class EnableRemoteTrackResponse extends Message [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackResponse { @@ -930,8 +930,8 @@ export class SetTrackSubscriptionPermissionsRequest extends Message [ - { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "all_participants_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "all_participants_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, { no: 3, name: "permissions", kind: "message", T: ParticipantTrackPermission, repeated: true }, ]); @@ -985,7 +985,7 @@ export class ParticipantTrackPermission extends Message [ - { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, { no: 2, name: "allow_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, { no: 3, name: "allowed_track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); diff --git a/packages/livekit-rtc/src/proto/track_publication_pb.ts b/packages/livekit-rtc/src/proto/track_publication_pb.ts index 1ec2b9ba..e30d9d68 100644 --- a/packages/livekit-rtc/src/proto/track_publication_pb.ts +++ b/packages/livekit-rtc/src/proto/track_publication_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file track_publication.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -44,8 +44,8 @@ export class EnableRemoteTrackPublicationRequest extends Message [ - { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EnableRemoteTrackPublicationRequest { @@ -125,9 +125,9 @@ export class UpdateRemoteTrackPublicationDimensionRequest extends Message [ - { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "track_publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateRemoteTrackPublicationDimensionRequest { diff --git a/packages/livekit-rtc/src/proto/video_frame_pb.ts b/packages/livekit-rtc/src/proto/video_frame_pb.ts index bd2f856b..28696579 100644 --- a/packages/livekit-rtc/src/proto/video_frame_pb.ts +++ b/packages/livekit-rtc/src/proto/video_frame_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v1.4.2 with parameter "target=ts,import_extension=.js" +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" // @generated from file video_frame.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck @@ -242,8 +242,8 @@ export class NewVideoStreamRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoStreamRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, + { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, { no: 3, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true }, { no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, ]); @@ -282,7 +282,7 @@ export class NewVideoStreamResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoStreamResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream", kind: "message", T: OwnedVideoStream }, + { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoStreamResponse { @@ -341,9 +341,9 @@ export class VideoStreamFromParticipantRequest extends Message [ - { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, - { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource) }, + { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, + { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true }, { no: 4, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true }, { no: 5, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, ]); @@ -382,7 +382,7 @@ export class VideoStreamFromParticipantResponse extends Message [ - { no: 1, name: "stream", kind: "message", T: OwnedVideoStream }, + { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoStreamFromParticipantResponse { @@ -430,8 +430,8 @@ export class NewVideoSourceRequest extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoSourceRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType) }, - { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true }, + { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoSourceRequest { @@ -468,7 +468,7 @@ export class NewVideoSourceResponse extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.NewVideoSourceResponse"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source", kind: "message", T: OwnedVideoSource }, + { no: 1, name: "source", kind: "message", T: OwnedVideoSource, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NewVideoSourceResponse { @@ -524,10 +524,10 @@ export class CaptureVideoFrameRequest extends Message static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.CaptureVideoFrameRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo }, - { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation) }, + { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true }, + { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CaptureVideoFrameRequest { @@ -606,8 +606,8 @@ export class VideoConvertRequest extends Message { static readonly typeName = "livekit.proto.VideoConvertRequest"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ { no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo }, - { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType) }, + { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true }, + { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoConvertRequest { @@ -704,9 +704,9 @@ export class VideoResolution extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoResolution"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoResolution { @@ -770,10 +770,10 @@ export class VideoBufferInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoBufferInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType) }, - { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true }, + { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true }, ]); @@ -822,9 +822,9 @@ export class VideoBufferInfo_ComponentInfo extends Message [ - { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoBufferInfo_ComponentInfo { @@ -866,8 +866,8 @@ export class OwnedVideoBuffer extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoBuffer"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: VideoBufferInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: VideoBufferInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoBuffer { @@ -904,7 +904,7 @@ export class VideoStreamInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoStreamInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType) }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoStreamInfo { @@ -946,8 +946,8 @@ export class OwnedVideoStream extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoStream"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: VideoStreamInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: VideoStreamInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoStream { @@ -1001,7 +1001,7 @@ export class VideoStreamEvent extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoStreamEvent"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" }, { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" }, ]); @@ -1052,9 +1052,9 @@ export class VideoFrameReceived extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoFrameReceived"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer }, - { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation) }, + { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer, req: true }, + { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoFrameReceived { @@ -1127,8 +1127,8 @@ export class VideoSourceResolution extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceResolution"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, + { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceResolution { @@ -1165,7 +1165,7 @@ export class VideoSourceInfo extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.VideoSourceInfo"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType) }, + { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VideoSourceInfo { @@ -1207,8 +1207,8 @@ export class OwnedVideoSource extends Message { static readonly runtime: typeof proto2 = proto2; static readonly typeName = "livekit.proto.OwnedVideoSource"; static readonly fields: FieldList = proto2.util.newFieldList(() => [ - { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle }, - { no: 2, name: "info", kind: "message", T: VideoSourceInfo }, + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: VideoSourceInfo, req: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OwnedVideoSource { From c8d8e68c1d133facc28b4f6766b0e076e0255a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sat, 14 Jun 2025 17:19:29 +0200 Subject: [PATCH 8/8] mmh.. --- packages/livekit-rtc/generate_proto.sh | 3 +- .../livekit-rtc/src/proto/data_stream_pb.ts | 2515 +++++++++++++++++ 2 files changed, 2517 insertions(+), 1 deletion(-) create mode 100644 packages/livekit-rtc/src/proto/data_stream_pb.ts diff --git a/packages/livekit-rtc/generate_proto.sh b/packages/livekit-rtc/generate_proto.sh index de709e9a..8727585e 100755 --- a/packages/livekit-rtc/generate_proto.sh +++ b/packages/livekit-rtc/generate_proto.sh @@ -28,4 +28,5 @@ PATH=$PATH:$(pwd)/node_modules/.bin \ $FFI_PROTOCOL/e2ee.proto \ $FFI_PROTOCOL/stats.proto \ $FFI_PROTOCOL/rpc.proto \ - $FFI_PROTOCOL/track_publication.proto + $FFI_PROTOCOL/track_publication.proto \ + $FFI_PROTOCOL/data_stream.proto diff --git a/packages/livekit-rtc/src/proto/data_stream_pb.ts b/packages/livekit-rtc/src/proto/data_stream_pb.ts new file mode 100644 index 00000000..60ac009f --- /dev/null +++ b/packages/livekit-rtc/src/proto/data_stream_pb.ts @@ -0,0 +1,2515 @@ +// Copyright 2025 LiveKit, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js" +// @generated from file data_stream.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 { FfiOwnedHandle } from "./handle_pb.js"; + +/** + * A reader for an incoming stream. + * + * @generated from message livekit.proto.OwnedTextStreamReader + */ +export class OwnedTextStreamReader extends Message { + /** + * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; + */ + handle?: FfiOwnedHandle; + + /** + * @generated from field: required livekit.proto.TextStreamInfo info = 2; + */ + info?: TextStreamInfo; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.OwnedTextStreamReader"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: TextStreamInfo, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTextStreamReader { + return new OwnedTextStreamReader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTextStreamReader { + return new OwnedTextStreamReader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnedTextStreamReader { + return new OwnedTextStreamReader().fromJsonString(jsonString, options); + } + + static equals(a: OwnedTextStreamReader | PlainMessage | undefined, b: OwnedTextStreamReader | PlainMessage | undefined): boolean { + return proto2.util.equals(OwnedTextStreamReader, a, b); + } +} + +/** + * Reads an incoming text stream incrementally. + * + * @generated from message livekit.proto.TextStreamReaderReadIncrementalRequest + */ +export class TextStreamReaderReadIncrementalRequest extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderReadIncrementalRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadIncrementalRequest { + return new TextStreamReaderReadIncrementalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadIncrementalRequest { + return new TextStreamReaderReadIncrementalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadIncrementalRequest { + return new TextStreamReaderReadIncrementalRequest().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderReadIncrementalRequest | PlainMessage | undefined, b: TextStreamReaderReadIncrementalRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderReadIncrementalRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderReadIncrementalResponse + */ +export class TextStreamReaderReadIncrementalResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderReadIncrementalResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadIncrementalResponse { + return new TextStreamReaderReadIncrementalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadIncrementalResponse { + return new TextStreamReaderReadIncrementalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadIncrementalResponse { + return new TextStreamReaderReadIncrementalResponse().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderReadIncrementalResponse | PlainMessage | undefined, b: TextStreamReaderReadIncrementalResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderReadIncrementalResponse, a, b); + } +} + +/** + * Reads an incoming text stream in its entirety. + * + * @generated from message livekit.proto.TextStreamReaderReadAllRequest + */ +export class TextStreamReaderReadAllRequest extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderReadAllRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllRequest { + return new TextStreamReaderReadAllRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllRequest { + return new TextStreamReaderReadAllRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllRequest { + return new TextStreamReaderReadAllRequest().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderReadAllRequest | PlainMessage | undefined, b: TextStreamReaderReadAllRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderReadAllRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderReadAllResponse + */ +export class TextStreamReaderReadAllResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderReadAllResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllResponse { + return new TextStreamReaderReadAllResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllResponse { + return new TextStreamReaderReadAllResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllResponse { + return new TextStreamReaderReadAllResponse().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderReadAllResponse | PlainMessage | undefined, b: TextStreamReaderReadAllResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderReadAllResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderReadAllCallback + */ +export class TextStreamReaderReadAllCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.TextStreamReaderReadAllCallback.result + */ + result: { + /** + * @generated from field: string content = 2; + */ + value: string; + case: "content"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderReadAllCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllCallback { + return new TextStreamReaderReadAllCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllCallback { + return new TextStreamReaderReadAllCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllCallback { + return new TextStreamReaderReadAllCallback().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderReadAllCallback | PlainMessage | undefined, b: TextStreamReaderReadAllCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderReadAllCallback, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderEvent + */ +export class TextStreamReaderEvent extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + /** + * @generated from oneof livekit.proto.TextStreamReaderEvent.detail + */ + detail: { + /** + * @generated from field: livekit.proto.TextStreamReaderChunkReceived chunk_received = 2; + */ + value: TextStreamReaderChunkReceived; + case: "chunkReceived"; + } | { + /** + * @generated from field: livekit.proto.TextStreamReaderEOS eos = 3; + */ + value: TextStreamReaderEOS; + case: "eos"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderEvent"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "chunk_received", kind: "message", T: TextStreamReaderChunkReceived, oneof: "detail" }, + { no: 3, name: "eos", kind: "message", T: TextStreamReaderEOS, oneof: "detail" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderEvent { + return new TextStreamReaderEvent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderEvent { + return new TextStreamReaderEvent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderEvent { + return new TextStreamReaderEvent().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderEvent | PlainMessage | undefined, b: TextStreamReaderEvent | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderEvent, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderChunkReceived + */ +export class TextStreamReaderChunkReceived extends Message { + /** + * @generated from field: required string content = 1; + */ + content?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderChunkReceived"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderChunkReceived { + return new TextStreamReaderChunkReceived().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderChunkReceived { + return new TextStreamReaderChunkReceived().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderChunkReceived { + return new TextStreamReaderChunkReceived().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderChunkReceived | PlainMessage | undefined, b: TextStreamReaderChunkReceived | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderChunkReceived, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamReaderEOS + */ +export class TextStreamReaderEOS extends Message { + /** + * @generated from field: optional livekit.proto.StreamError error = 1; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamReaderEOS"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderEOS { + return new TextStreamReaderEOS().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderEOS { + return new TextStreamReaderEOS().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderEOS { + return new TextStreamReaderEOS().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamReaderEOS | PlainMessage | undefined, b: TextStreamReaderEOS | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamReaderEOS, a, b); + } +} + +/** + * A reader for an incoming stream. + * + * @generated from message livekit.proto.OwnedByteStreamReader + */ +export class OwnedByteStreamReader extends Message { + /** + * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; + */ + handle?: FfiOwnedHandle; + + /** + * @generated from field: required livekit.proto.ByteStreamInfo info = 2; + */ + info?: ByteStreamInfo; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.OwnedByteStreamReader"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: ByteStreamInfo, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnedByteStreamReader { + return new OwnedByteStreamReader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnedByteStreamReader { + return new OwnedByteStreamReader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnedByteStreamReader { + return new OwnedByteStreamReader().fromJsonString(jsonString, options); + } + + static equals(a: OwnedByteStreamReader | PlainMessage | undefined, b: OwnedByteStreamReader | PlainMessage | undefined): boolean { + return proto2.util.equals(OwnedByteStreamReader, a, b); + } +} + +/** + * Reads an incoming byte stream incrementally. + * + * @generated from message livekit.proto.ByteStreamReaderReadIncrementalRequest + */ +export class ByteStreamReaderReadIncrementalRequest extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderReadIncrementalRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadIncrementalRequest { + return new ByteStreamReaderReadIncrementalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadIncrementalRequest { + return new ByteStreamReaderReadIncrementalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadIncrementalRequest { + return new ByteStreamReaderReadIncrementalRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderReadIncrementalRequest | PlainMessage | undefined, b: ByteStreamReaderReadIncrementalRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderReadIncrementalRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderReadIncrementalResponse + */ +export class ByteStreamReaderReadIncrementalResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderReadIncrementalResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadIncrementalResponse { + return new ByteStreamReaderReadIncrementalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadIncrementalResponse { + return new ByteStreamReaderReadIncrementalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadIncrementalResponse { + return new ByteStreamReaderReadIncrementalResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderReadIncrementalResponse | PlainMessage | undefined, b: ByteStreamReaderReadIncrementalResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderReadIncrementalResponse, a, b); + } +} + +/** + * Reads an incoming byte stream in its entirety. + * + * @generated from message livekit.proto.ByteStreamReaderReadAllRequest + */ +export class ByteStreamReaderReadAllRequest extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderReadAllRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllRequest { + return new ByteStreamReaderReadAllRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllRequest { + return new ByteStreamReaderReadAllRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllRequest { + return new ByteStreamReaderReadAllRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderReadAllRequest | PlainMessage | undefined, b: ByteStreamReaderReadAllRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderReadAllRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderReadAllResponse + */ +export class ByteStreamReaderReadAllResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderReadAllResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllResponse { + return new ByteStreamReaderReadAllResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllResponse { + return new ByteStreamReaderReadAllResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllResponse { + return new ByteStreamReaderReadAllResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderReadAllResponse | PlainMessage | undefined, b: ByteStreamReaderReadAllResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderReadAllResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderReadAllCallback + */ +export class ByteStreamReaderReadAllCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.ByteStreamReaderReadAllCallback.result + */ + result: { + /** + * @generated from field: bytes content = 2; + */ + value: Uint8Array; + case: "content"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderReadAllCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllCallback { + return new ByteStreamReaderReadAllCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllCallback { + return new ByteStreamReaderReadAllCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllCallback { + return new ByteStreamReaderReadAllCallback().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderReadAllCallback | PlainMessage | undefined, b: ByteStreamReaderReadAllCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderReadAllCallback, a, b); + } +} + +/** + * Writes data from an incoming stream to a file as it arrives. + * + * @generated from message livekit.proto.ByteStreamReaderWriteToFileRequest + */ +export class ByteStreamReaderWriteToFileRequest extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + /** + * Directory to write the file in (must be writable by the current process). + * If not provided, the file will be written to the system's temp directory. + * + * @generated from field: optional string directory = 3; + */ + directory?: string; + + /** + * Name to use for the written file. + * If not provided, the file's name and extension will be inferred from + * the stream's info. + * + * @generated from field: optional string name_override = 4; + */ + nameOverride?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 3, name: "directory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 4, name: "name_override", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileRequest { + return new ByteStreamReaderWriteToFileRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileRequest { + return new ByteStreamReaderWriteToFileRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileRequest { + return new ByteStreamReaderWriteToFileRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderWriteToFileRequest | PlainMessage | undefined, b: ByteStreamReaderWriteToFileRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderWriteToFileRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderWriteToFileResponse + */ +export class ByteStreamReaderWriteToFileResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileResponse { + return new ByteStreamReaderWriteToFileResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileResponse { + return new ByteStreamReaderWriteToFileResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileResponse { + return new ByteStreamReaderWriteToFileResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderWriteToFileResponse | PlainMessage | undefined, b: ByteStreamReaderWriteToFileResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderWriteToFileResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderWriteToFileCallback + */ +export class ByteStreamReaderWriteToFileCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.ByteStreamReaderWriteToFileCallback.result + */ + result: { + /** + * Path the file was written to. + * + * @generated from field: string file_path = 2; + */ + value: string; + case: "filePath"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "file_path", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileCallback { + return new ByteStreamReaderWriteToFileCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileCallback { + return new ByteStreamReaderWriteToFileCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileCallback { + return new ByteStreamReaderWriteToFileCallback().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderWriteToFileCallback | PlainMessage | undefined, b: ByteStreamReaderWriteToFileCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderWriteToFileCallback, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderEvent + */ +export class ByteStreamReaderEvent extends Message { + /** + * @generated from field: required uint64 reader_handle = 1; + */ + readerHandle?: bigint; + + /** + * @generated from oneof livekit.proto.ByteStreamReaderEvent.detail + */ + detail: { + /** + * @generated from field: livekit.proto.ByteStreamReaderChunkReceived chunk_received = 2; + */ + value: ByteStreamReaderChunkReceived; + case: "chunkReceived"; + } | { + /** + * @generated from field: livekit.proto.ByteStreamReaderEOS eos = 3; + */ + value: ByteStreamReaderEOS; + case: "eos"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderEvent"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "reader_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "chunk_received", kind: "message", T: ByteStreamReaderChunkReceived, oneof: "detail" }, + { no: 3, name: "eos", kind: "message", T: ByteStreamReaderEOS, oneof: "detail" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderEvent { + return new ByteStreamReaderEvent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderEvent { + return new ByteStreamReaderEvent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderEvent { + return new ByteStreamReaderEvent().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderEvent | PlainMessage | undefined, b: ByteStreamReaderEvent | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderEvent, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderChunkReceived + */ +export class ByteStreamReaderChunkReceived extends Message { + /** + * @generated from field: required bytes content = 1; + */ + content?: Uint8Array; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderChunkReceived"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderChunkReceived { + return new ByteStreamReaderChunkReceived().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderChunkReceived { + return new ByteStreamReaderChunkReceived().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderChunkReceived { + return new ByteStreamReaderChunkReceived().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderChunkReceived | PlainMessage | undefined, b: ByteStreamReaderChunkReceived | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderChunkReceived, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamReaderEOS + */ +export class ByteStreamReaderEOS extends Message { + /** + * @generated from field: optional livekit.proto.StreamError error = 1; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamReaderEOS"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderEOS { + return new ByteStreamReaderEOS().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderEOS { + return new ByteStreamReaderEOS().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderEOS { + return new ByteStreamReaderEOS().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamReaderEOS | PlainMessage | undefined, b: ByteStreamReaderEOS | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamReaderEOS, a, b); + } +} + +/** + * Sends the contents of a file over a data stream. + * + * @generated from message livekit.proto.StreamSendFileRequest + */ +export class StreamSendFileRequest extends Message { + /** + * @generated from field: required uint64 local_participant_handle = 1; + */ + localParticipantHandle?: bigint; + + /** + * @generated from field: required livekit.proto.StreamByteOptions options = 2; + */ + options?: StreamByteOptions; + + /** + * Path of the file to send (must be readable by the current process). + * + * @generated from field: required string file_path = 3; + */ + filePath?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendFileRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "options", kind: "message", T: StreamByteOptions, req: true }, + { no: 3, name: "file_path", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileRequest { + return new StreamSendFileRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileRequest { + return new StreamSendFileRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendFileRequest { + return new StreamSendFileRequest().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendFileRequest | PlainMessage | undefined, b: StreamSendFileRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendFileRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamSendFileResponse + */ +export class StreamSendFileResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendFileResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileResponse { + return new StreamSendFileResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileResponse { + return new StreamSendFileResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendFileResponse { + return new StreamSendFileResponse().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendFileResponse | PlainMessage | undefined, b: StreamSendFileResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendFileResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamSendFileCallback + */ +export class StreamSendFileCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.StreamSendFileCallback.result + */ + result: { + /** + * @generated from field: livekit.proto.ByteStreamInfo info = 2; + */ + value: ByteStreamInfo; + case: "info"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendFileCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "info", kind: "message", T: ByteStreamInfo, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileCallback { + return new StreamSendFileCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileCallback { + return new StreamSendFileCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendFileCallback { + return new StreamSendFileCallback().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendFileCallback | PlainMessage | undefined, b: StreamSendFileCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendFileCallback, a, b); + } +} + +/** + * Sends text over a data stream. + * + * @generated from message livekit.proto.StreamSendTextRequest + */ +export class StreamSendTextRequest extends Message { + /** + * @generated from field: required uint64 local_participant_handle = 1; + */ + localParticipantHandle?: bigint; + + /** + * @generated from field: required livekit.proto.StreamTextOptions options = 2; + */ + options?: StreamTextOptions; + + /** + * Text to send. + * + * @generated from field: required string text = 3; + */ + text?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendTextRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "options", kind: "message", T: StreamTextOptions, req: true }, + { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextRequest { + return new StreamSendTextRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextRequest { + return new StreamSendTextRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendTextRequest { + return new StreamSendTextRequest().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendTextRequest | PlainMessage | undefined, b: StreamSendTextRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendTextRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamSendTextResponse + */ +export class StreamSendTextResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendTextResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextResponse { + return new StreamSendTextResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextResponse { + return new StreamSendTextResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendTextResponse { + return new StreamSendTextResponse().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendTextResponse | PlainMessage | undefined, b: StreamSendTextResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendTextResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamSendTextCallback + */ +export class StreamSendTextCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.StreamSendTextCallback.result + */ + result: { + /** + * @generated from field: livekit.proto.TextStreamInfo info = 2; + */ + value: TextStreamInfo; + case: "info"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamSendTextCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "info", kind: "message", T: TextStreamInfo, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextCallback { + return new StreamSendTextCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextCallback { + return new StreamSendTextCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamSendTextCallback { + return new StreamSendTextCallback().fromJsonString(jsonString, options); + } + + static equals(a: StreamSendTextCallback | PlainMessage | undefined, b: StreamSendTextCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamSendTextCallback, a, b); + } +} + +/** + * @generated from message livekit.proto.OwnedByteStreamWriter + */ +export class OwnedByteStreamWriter extends Message { + /** + * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; + */ + handle?: FfiOwnedHandle; + + /** + * @generated from field: required livekit.proto.ByteStreamInfo info = 2; + */ + info?: ByteStreamInfo; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.OwnedByteStreamWriter"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: ByteStreamInfo, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnedByteStreamWriter { + return new OwnedByteStreamWriter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnedByteStreamWriter { + return new OwnedByteStreamWriter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnedByteStreamWriter { + return new OwnedByteStreamWriter().fromJsonString(jsonString, options); + } + + static equals(a: OwnedByteStreamWriter | PlainMessage | undefined, b: OwnedByteStreamWriter | PlainMessage | undefined): boolean { + return proto2.util.equals(OwnedByteStreamWriter, a, b); + } +} + +/** + * Opens an outgoing stream. + * Call must be balanced with a StreamCloseRequest. + * + * @generated from message livekit.proto.ByteStreamOpenRequest + */ +export class ByteStreamOpenRequest extends Message { + /** + * @generated from field: required uint64 local_participant_handle = 1; + */ + localParticipantHandle?: bigint; + + /** + * Options to use for opening the stream. + * + * @generated from field: required livekit.proto.StreamByteOptions options = 2; + */ + options?: StreamByteOptions; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamOpenRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "options", kind: "message", T: StreamByteOptions, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenRequest { + return new ByteStreamOpenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenRequest { + return new ByteStreamOpenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenRequest { + return new ByteStreamOpenRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamOpenRequest | PlainMessage | undefined, b: ByteStreamOpenRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamOpenRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamOpenResponse + */ +export class ByteStreamOpenResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamOpenResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenResponse { + return new ByteStreamOpenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenResponse { + return new ByteStreamOpenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenResponse { + return new ByteStreamOpenResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamOpenResponse | PlainMessage | undefined, b: ByteStreamOpenResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamOpenResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamOpenCallback + */ +export class ByteStreamOpenCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.ByteStreamOpenCallback.result + */ + result: { + /** + * @generated from field: livekit.proto.OwnedByteStreamWriter writer = 2; + */ + value: OwnedByteStreamWriter; + case: "writer"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamOpenCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "writer", kind: "message", T: OwnedByteStreamWriter, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenCallback { + return new ByteStreamOpenCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenCallback { + return new ByteStreamOpenCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenCallback { + return new ByteStreamOpenCallback().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamOpenCallback | PlainMessage | undefined, b: ByteStreamOpenCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamOpenCallback, a, b); + } +} + +/** + * Writes data to a stream writer. + * + * @generated from message livekit.proto.ByteStreamWriterWriteRequest + */ +export class ByteStreamWriterWriteRequest extends Message { + /** + * @generated from field: required uint64 writer_handle = 1; + */ + writerHandle?: bigint; + + /** + * @generated from field: required bytes bytes = 2; + */ + bytes?: Uint8Array; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterWriteRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "writer_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteRequest { + return new ByteStreamWriterWriteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteRequest { + return new ByteStreamWriterWriteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteRequest { + return new ByteStreamWriterWriteRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterWriteRequest | PlainMessage | undefined, b: ByteStreamWriterWriteRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterWriteRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamWriterWriteResponse + */ +export class ByteStreamWriterWriteResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterWriteResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteResponse { + return new ByteStreamWriterWriteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteResponse { + return new ByteStreamWriterWriteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteResponse { + return new ByteStreamWriterWriteResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterWriteResponse | PlainMessage | undefined, b: ByteStreamWriterWriteResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterWriteResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamWriterWriteCallback + */ +export class ByteStreamWriterWriteCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from field: optional livekit.proto.StreamError error = 2; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterWriteCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteCallback { + return new ByteStreamWriterWriteCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteCallback { + return new ByteStreamWriterWriteCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteCallback { + return new ByteStreamWriterWriteCallback().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterWriteCallback | PlainMessage | undefined, b: ByteStreamWriterWriteCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterWriteCallback, a, b); + } +} + +/** + * Closes a stream writer. + * + * @generated from message livekit.proto.ByteStreamWriterCloseRequest + */ +export class ByteStreamWriterCloseRequest extends Message { + /** + * @generated from field: required uint64 writer_handle = 1; + */ + writerHandle?: bigint; + + /** + * @generated from field: optional string reason = 2; + */ + reason?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterCloseRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "writer_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseRequest { + return new ByteStreamWriterCloseRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseRequest { + return new ByteStreamWriterCloseRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseRequest { + return new ByteStreamWriterCloseRequest().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterCloseRequest | PlainMessage | undefined, b: ByteStreamWriterCloseRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterCloseRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamWriterCloseResponse + */ +export class ByteStreamWriterCloseResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterCloseResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseResponse { + return new ByteStreamWriterCloseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseResponse { + return new ByteStreamWriterCloseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseResponse { + return new ByteStreamWriterCloseResponse().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterCloseResponse | PlainMessage | undefined, b: ByteStreamWriterCloseResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterCloseResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.ByteStreamWriterCloseCallback + */ +export class ByteStreamWriterCloseCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from field: optional livekit.proto.StreamError error = 2; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamWriterCloseCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseCallback { + return new ByteStreamWriterCloseCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseCallback { + return new ByteStreamWriterCloseCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseCallback { + return new ByteStreamWriterCloseCallback().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamWriterCloseCallback | PlainMessage | undefined, b: ByteStreamWriterCloseCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamWriterCloseCallback, a, b); + } +} + +/** + * @generated from message livekit.proto.OwnedTextStreamWriter + */ +export class OwnedTextStreamWriter extends Message { + /** + * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; + */ + handle?: FfiOwnedHandle; + + /** + * @generated from field: required livekit.proto.TextStreamInfo info = 2; + */ + info?: TextStreamInfo; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.OwnedTextStreamWriter"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true }, + { no: 2, name: "info", kind: "message", T: TextStreamInfo, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTextStreamWriter { + return new OwnedTextStreamWriter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTextStreamWriter { + return new OwnedTextStreamWriter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnedTextStreamWriter { + return new OwnedTextStreamWriter().fromJsonString(jsonString, options); + } + + static equals(a: OwnedTextStreamWriter | PlainMessage | undefined, b: OwnedTextStreamWriter | PlainMessage | undefined): boolean { + return proto2.util.equals(OwnedTextStreamWriter, a, b); + } +} + +/** + * Opens an outgoing text stream. + * Call must be balanced with a TextStreamCloseRequest. + * + * @generated from message livekit.proto.TextStreamOpenRequest + */ +export class TextStreamOpenRequest extends Message { + /** + * @generated from field: required uint64 local_participant_handle = 1; + */ + localParticipantHandle?: bigint; + + /** + * Options to use for opening the stream. + * + * @generated from field: required livekit.proto.StreamTextOptions options = 2; + */ + options?: StreamTextOptions; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamOpenRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "options", kind: "message", T: StreamTextOptions, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenRequest { + return new TextStreamOpenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenRequest { + return new TextStreamOpenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenRequest { + return new TextStreamOpenRequest().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamOpenRequest | PlainMessage | undefined, b: TextStreamOpenRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamOpenRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamOpenResponse + */ +export class TextStreamOpenResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamOpenResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenResponse { + return new TextStreamOpenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenResponse { + return new TextStreamOpenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenResponse { + return new TextStreamOpenResponse().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamOpenResponse | PlainMessage | undefined, b: TextStreamOpenResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamOpenResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamOpenCallback + */ +export class TextStreamOpenCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from oneof livekit.proto.TextStreamOpenCallback.result + */ + result: { + /** + * @generated from field: livekit.proto.OwnedTextStreamWriter writer = 2; + */ + value: OwnedTextStreamWriter; + case: "writer"; + } | { + /** + * @generated from field: livekit.proto.StreamError error = 3; + */ + value: StreamError; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamOpenCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "writer", kind: "message", T: OwnedTextStreamWriter, oneof: "result" }, + { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenCallback { + return new TextStreamOpenCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenCallback { + return new TextStreamOpenCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenCallback { + return new TextStreamOpenCallback().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamOpenCallback | PlainMessage | undefined, b: TextStreamOpenCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamOpenCallback, a, b); + } +} + +/** + * Writes text to a text stream writer. + * + * @generated from message livekit.proto.TextStreamWriterWriteRequest + */ +export class TextStreamWriterWriteRequest extends Message { + /** + * @generated from field: required uint64 writer_handle = 1; + */ + writerHandle?: bigint; + + /** + * @generated from field: required string text = 2; + */ + text?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterWriteRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "writer_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteRequest { + return new TextStreamWriterWriteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteRequest { + return new TextStreamWriterWriteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteRequest { + return new TextStreamWriterWriteRequest().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterWriteRequest | PlainMessage | undefined, b: TextStreamWriterWriteRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterWriteRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamWriterWriteResponse + */ +export class TextStreamWriterWriteResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterWriteResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteResponse { + return new TextStreamWriterWriteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteResponse { + return new TextStreamWriterWriteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteResponse { + return new TextStreamWriterWriteResponse().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterWriteResponse | PlainMessage | undefined, b: TextStreamWriterWriteResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterWriteResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamWriterWriteCallback + */ +export class TextStreamWriterWriteCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from field: optional livekit.proto.StreamError error = 2; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterWriteCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteCallback { + return new TextStreamWriterWriteCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteCallback { + return new TextStreamWriterWriteCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteCallback { + return new TextStreamWriterWriteCallback().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterWriteCallback | PlainMessage | undefined, b: TextStreamWriterWriteCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterWriteCallback, a, b); + } +} + +/** + * Closes a text stream writer. + * + * @generated from message livekit.proto.TextStreamWriterCloseRequest + */ +export class TextStreamWriterCloseRequest extends Message { + /** + * @generated from field: required uint64 writer_handle = 1; + */ + writerHandle?: bigint; + + /** + * @generated from field: optional string reason = 2; + */ + reason?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterCloseRequest"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "writer_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseRequest { + return new TextStreamWriterCloseRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseRequest { + return new TextStreamWriterCloseRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseRequest { + return new TextStreamWriterCloseRequest().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterCloseRequest | PlainMessage | undefined, b: TextStreamWriterCloseRequest | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterCloseRequest, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamWriterCloseResponse + */ +export class TextStreamWriterCloseResponse extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterCloseResponse"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseResponse { + return new TextStreamWriterCloseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseResponse { + return new TextStreamWriterCloseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseResponse { + return new TextStreamWriterCloseResponse().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterCloseResponse | PlainMessage | undefined, b: TextStreamWriterCloseResponse | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterCloseResponse, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamWriterCloseCallback + */ +export class TextStreamWriterCloseCallback extends Message { + /** + * @generated from field: required uint64 async_id = 1; + */ + asyncId?: bigint; + + /** + * @generated from field: optional livekit.proto.StreamError error = 2; + */ + error?: StreamError; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamWriterCloseCallback"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true }, + { no: 2, name: "error", kind: "message", T: StreamError, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseCallback { + return new TextStreamWriterCloseCallback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseCallback { + return new TextStreamWriterCloseCallback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseCallback { + return new TextStreamWriterCloseCallback().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamWriterCloseCallback | PlainMessage | undefined, b: TextStreamWriterCloseCallback | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamWriterCloseCallback, a, b); + } +} + +/** + * @generated from message livekit.proto.TextStreamInfo + */ +export class TextStreamInfo extends Message { + /** + * unique identifier for this data stream + * + * @generated from field: required string stream_id = 1; + */ + streamId?: string; + + /** + * using int64 for Unix timestamp + * + * @generated from field: required int64 timestamp = 2; + */ + timestamp?: bigint; + + /** + * @generated from field: required string mime_type = 3; + */ + mimeType?: string; + + /** + * @generated from field: required string topic = 4; + */ + topic?: 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; + + /** + * user defined attributes map that can carry additional info + * + * @generated from field: map attributes = 6; + */ + attributes: { [key: string]: string } = {}; + + /** + * @generated from field: required livekit.proto.TextStreamInfo.OperationType operation_type = 7; + */ + operationType?: TextStreamInfo_OperationType; + + /** + * Optional: Version for updates/edits + * + * @generated from field: optional int32 version = 8; + */ + version?: number; + + /** + * Optional: Reply to specific message + * + * @generated from field: optional string reply_to_stream_id = 9; + */ + replyToStreamId?: string; + + /** + * file attachments for text streams + * + * @generated from field: repeated string attached_stream_ids = 10; + */ + attachedStreamIds: string[] = []; + + /** + * true if the text has been generated by an agent from a participant's audio transcription + * + * @generated from field: optional bool generated = 11; + */ + generated?: boolean; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.TextStreamInfo"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 7, name: "operation_type", kind: "enum", T: proto2.getEnumType(TextStreamInfo_OperationType), req: true }, + { no: 8, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, + { no: 9, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 10, name: "attached_stream_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 11, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamInfo { + return new TextStreamInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamInfo { + return new TextStreamInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextStreamInfo { + return new TextStreamInfo().fromJsonString(jsonString, options); + } + + static equals(a: TextStreamInfo | PlainMessage | undefined, b: TextStreamInfo | PlainMessage | undefined): boolean { + return proto2.util.equals(TextStreamInfo, a, b); + } +} + +/** + * @generated from enum livekit.proto.TextStreamInfo.OperationType + */ +export enum TextStreamInfo_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, +} +// Retrieve enum metadata with: proto2.getEnumType(TextStreamInfo_OperationType) +proto2.util.setEnumType(TextStreamInfo_OperationType, "livekit.proto.TextStreamInfo.OperationType", [ + { no: 0, name: "CREATE" }, + { no: 1, name: "UPDATE" }, + { no: 2, name: "DELETE" }, + { no: 3, name: "REACTION" }, +]); + +/** + * @generated from message livekit.proto.ByteStreamInfo + */ +export class ByteStreamInfo extends Message { + /** + * unique identifier for this data stream + * + * @generated from field: required string stream_id = 1; + */ + streamId?: string; + + /** + * using int64 for Unix timestamp + * + * @generated from field: required int64 timestamp = 2; + */ + timestamp?: bigint; + + /** + * @generated from field: required string mime_type = 3; + */ + mimeType?: string; + + /** + * @generated from field: required string topic = 4; + */ + topic?: 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; + + /** + * user defined attributes map that can carry additional info + * + * @generated from field: map attributes = 6; + */ + attributes: { [key: string]: string } = {}; + + /** + * @generated from field: required string name = 7; + */ + name?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.ByteStreamInfo"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true }, + { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 7, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamInfo { + return new ByteStreamInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamInfo { + return new ByteStreamInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ByteStreamInfo { + return new ByteStreamInfo().fromJsonString(jsonString, options); + } + + static equals(a: ByteStreamInfo | PlainMessage | undefined, b: ByteStreamInfo | PlainMessage | undefined): boolean { + return proto2.util.equals(ByteStreamInfo, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamTextOptions + */ +export class StreamTextOptions extends Message { + /** + * @generated from field: required string topic = 1; + */ + topic?: string; + + /** + * @generated from field: map attributes = 2; + */ + attributes: { [key: string]: string } = {}; + + /** + * @generated from field: repeated string destination_identities = 3; + */ + destinationIdentities: string[] = []; + + /** + * @generated from field: optional string id = 4; + */ + id?: string; + + /** + * @generated from field: optional livekit.proto.TextStreamInfo.OperationType operation_type = 5; + */ + operationType?: TextStreamInfo_OperationType; + + /** + * @generated from field: optional int32 version = 6; + */ + version?: number; + + /** + * @generated from field: optional string reply_to_stream_id = 7; + */ + replyToStreamId?: string; + + /** + * @generated from field: repeated string attached_stream_ids = 8; + */ + attachedStreamIds: string[] = []; + + /** + * @generated from field: optional bool generated = 9; + */ + generated?: boolean; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamTextOptions"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 5, name: "operation_type", kind: "enum", T: proto2.getEnumType(TextStreamInfo_OperationType), opt: true }, + { no: 6, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, + { no: 7, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 8, name: "attached_stream_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamTextOptions { + return new StreamTextOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamTextOptions { + return new StreamTextOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamTextOptions { + return new StreamTextOptions().fromJsonString(jsonString, options); + } + + static equals(a: StreamTextOptions | PlainMessage | undefined, b: StreamTextOptions | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamTextOptions, a, b); + } +} + +/** + * @generated from message livekit.proto.StreamByteOptions + */ +export class StreamByteOptions extends Message { + /** + * @generated from field: required string topic = 1; + */ + topic?: string; + + /** + * @generated from field: map attributes = 2; + */ + attributes: { [key: string]: string } = {}; + + /** + * @generated from field: repeated string destination_identities = 3; + */ + destinationIdentities: string[] = []; + + /** + * @generated from field: optional string id = 4; + */ + id?: string; + + /** + * @generated from field: optional string name = 5; + */ + name?: string; + + /** + * @generated from field: optional string mime_type = 6; + */ + mimeType?: string; + + /** + * @generated from field: optional uint64 total_length = 7; + */ + totalLength?: bigint; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamByteOptions"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 6, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 7, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamByteOptions { + return new StreamByteOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamByteOptions { + return new StreamByteOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamByteOptions { + return new StreamByteOptions().fromJsonString(jsonString, options); + } + + static equals(a: StreamByteOptions | PlainMessage | undefined, b: StreamByteOptions | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamByteOptions, a, b); + } +} + +/** + * Error pertaining to a stream. + * + * @generated from message livekit.proto.StreamError + */ +export class StreamError extends Message { + /** + * TODO(ladvoc): make this an enum. + * + * @generated from field: required string description = 1; + */ + description?: string; + + constructor(data?: PartialMessage) { + super(); + proto2.util.initPartial(data, this); + } + + static readonly runtime: typeof proto2 = proto2; + static readonly typeName = "livekit.proto.StreamError"; + static readonly fields: FieldList = proto2.util.newFieldList(() => [ + { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamError { + return new StreamError().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamError { + return new StreamError().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamError { + return new StreamError().fromJsonString(jsonString, options); + } + + static equals(a: StreamError | PlainMessage | undefined, b: StreamError | PlainMessage | undefined): boolean { + return proto2.util.equals(StreamError, a, b); + } +} +