@livekit/rtc-node 0.12.2 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +2 -3
  4. package/dist/audio_frame.d.ts +2 -3
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +2 -3
  11. package/dist/audio_resampler.d.ts +2 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +3 -3
  18. package/dist/audio_source.d.ts +3 -3
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +2 -3
  25. package/dist/audio_stream.d.ts +2 -3
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +5 -6
  32. package/dist/e2ee.d.ts +5 -6
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +10 -10
  39. package/dist/ffi_client.d.ts +10 -10
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +6 -35
  46. package/dist/index.d.ts +6 -35
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.ts +5 -5
  52. package/dist/native.d.ts +5 -5
  53. package/dist/participant.cjs +60 -36
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +11 -11
  56. package/dist/participant.d.ts +11 -11
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +78 -52
  59. package/dist/participant.js.map +1 -1
  60. package/dist/proto/audio_frame_pb.cjs +977 -125
  61. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  62. package/dist/proto/audio_frame_pb.d.cts +502 -417
  63. package/dist/proto/audio_frame_pb.d.ts +502 -417
  64. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  65. package/dist/proto/audio_frame_pb.js +943 -85
  66. package/dist/proto/audio_frame_pb.js.map +1 -1
  67. package/dist/proto/e2ee_pb.cjs +700 -85
  68. package/dist/proto/e2ee_pb.cjs.map +1 -1
  69. package/dist/proto/e2ee_pb.d.cts +331 -263
  70. package/dist/proto/e2ee_pb.d.ts +331 -263
  71. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  72. package/dist/proto/e2ee_pb.js +675 -57
  73. package/dist/proto/e2ee_pb.js.map +1 -1
  74. package/dist/proto/ffi_pb.cjs +369 -36
  75. package/dist/proto/ffi_pb.cjs.map +1 -1
  76. package/dist/proto/ffi_pb.d.cts +156 -109
  77. package/dist/proto/ffi_pb.d.ts +156 -109
  78. package/dist/proto/ffi_pb.d.ts.map +1 -1
  79. package/dist/proto/ffi_pb.js +364 -29
  80. package/dist/proto/ffi_pb.js.map +1 -1
  81. package/dist/proto/handle_pb.cjs +27 -7
  82. package/dist/proto/handle_pb.cjs.map +1 -1
  83. package/dist/proto/handle_pb.d.cts +13 -15
  84. package/dist/proto/handle_pb.d.ts +13 -15
  85. package/dist/proto/handle_pb.d.ts.map +1 -1
  86. package/dist/proto/handle_pb.js +26 -5
  87. package/dist/proto/handle_pb.js.map +1 -1
  88. package/dist/proto/participant_pb.cjs +112 -15
  89. package/dist/proto/participant_pb.cjs.map +1 -1
  90. package/dist/proto/participant_pb.d.cts +140 -52
  91. package/dist/proto/participant_pb.d.ts +140 -52
  92. package/dist/proto/participant_pb.d.ts.map +1 -1
  93. package/dist/proto/participant_pb.js +109 -11
  94. package/dist/proto/participant_pb.js.map +1 -1
  95. package/dist/proto/room_pb.cjs +2693 -302
  96. package/dist/proto/room_pb.cjs.map +1 -1
  97. package/dist/proto/room_pb.d.cts +1265 -862
  98. package/dist/proto/room_pb.d.ts +1265 -862
  99. package/dist/proto/room_pb.d.ts.map +1 -1
  100. package/dist/proto/room_pb.js +2603 -210
  101. package/dist/proto/room_pb.js.map +1 -1
  102. package/dist/proto/rpc_pb.cjs +302 -37
  103. package/dist/proto/rpc_pb.cjs.map +1 -1
  104. package/dist/proto/rpc_pb.d.cts +138 -108
  105. package/dist/proto/rpc_pb.d.ts +138 -108
  106. package/dist/proto/rpc_pb.d.ts.map +1 -1
  107. package/dist/proto/rpc_pb.js +291 -25
  108. package/dist/proto/rpc_pb.js.map +1 -1
  109. package/dist/proto/stats_pb.cjs +1253 -139
  110. package/dist/proto/stats_pb.cjs.map +1 -1
  111. package/dist/proto/stats_pb.d.cts +803 -692
  112. package/dist/proto/stats_pb.d.ts +803 -692
  113. package/dist/proto/stats_pb.d.ts.map +1 -1
  114. package/dist/proto/stats_pb.js +1216 -93
  115. package/dist/proto/stats_pb.js.map +1 -1
  116. package/dist/proto/track_pb.cjs +462 -64
  117. package/dist/proto/track_pb.cjs.map +1 -1
  118. package/dist/proto/track_pb.d.cts +250 -218
  119. package/dist/proto/track_pb.d.ts +250 -218
  120. package/dist/proto/track_pb.d.ts.map +1 -1
  121. package/dist/proto/track_pb.js +447 -45
  122. package/dist/proto/track_pb.js.map +1 -1
  123. package/dist/proto/track_publication_pb.cjs +130 -0
  124. package/dist/proto/track_publication_pb.cjs.map +1 -0
  125. package/dist/proto/track_publication_pb.d.cts +80 -0
  126. package/dist/proto/track_publication_pb.d.ts +80 -0
  127. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  128. package/dist/proto/track_publication_pb.js +103 -0
  129. package/dist/proto/track_publication_pb.js.map +1 -0
  130. package/dist/proto/video_frame_pb.cjs +648 -88
  131. package/dist/proto/video_frame_pb.cjs.map +1 -1
  132. package/dist/proto/video_frame_pb.d.cts +371 -328
  133. package/dist/proto/video_frame_pb.d.ts +371 -328
  134. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  135. package/dist/proto/video_frame_pb.js +626 -60
  136. package/dist/proto/video_frame_pb.js.map +1 -1
  137. package/dist/room.cjs +85 -125
  138. package/dist/room.cjs.map +1 -1
  139. package/dist/room.d.cts +6 -17
  140. package/dist/room.d.ts +6 -17
  141. package/dist/room.d.ts.map +1 -1
  142. package/dist/room.js +85 -123
  143. package/dist/room.js.map +1 -1
  144. package/dist/rpc.cjs.map +1 -1
  145. package/dist/rpc.d.cts +0 -1
  146. package/dist/rpc.d.ts +0 -1
  147. package/dist/rpc.js.map +1 -1
  148. package/dist/track.cjs +12 -8
  149. package/dist/track.cjs.map +1 -1
  150. package/dist/track.d.cts +8 -9
  151. package/dist/track.d.ts +8 -9
  152. package/dist/track.d.ts.map +1 -1
  153. package/dist/track.js +13 -9
  154. package/dist/track.js.map +1 -1
  155. package/dist/track_publication.cjs +21 -12
  156. package/dist/track_publication.cjs.map +1 -1
  157. package/dist/track_publication.d.cts +12 -13
  158. package/dist/track_publication.d.ts +12 -13
  159. package/dist/track_publication.d.ts.map +1 -1
  160. package/dist/track_publication.js +22 -13
  161. package/dist/track_publication.js.map +1 -1
  162. package/dist/version.cjs +1 -1
  163. package/dist/version.cjs.map +1 -1
  164. package/dist/version.d.cts +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/dist/version.js.map +1 -1
  168. package/dist/video_frame.cjs +26 -45
  169. package/dist/video_frame.cjs.map +1 -1
  170. package/dist/video_frame.d.cts +2 -3
  171. package/dist/video_frame.d.ts +2 -3
  172. package/dist/video_frame.d.ts.map +1 -1
  173. package/dist/video_frame.js +29 -48
  174. package/dist/video_frame.js.map +1 -1
  175. package/dist/video_source.cjs +7 -4
  176. package/dist/video_source.cjs.map +1 -1
  177. package/dist/video_source.d.cts +4 -4
  178. package/dist/video_source.d.ts +4 -4
  179. package/dist/video_source.d.ts.map +1 -1
  180. package/dist/video_source.js +9 -6
  181. package/dist/video_source.js.map +1 -1
  182. package/dist/video_stream.cjs +16 -5
  183. package/dist/video_stream.cjs.map +1 -1
  184. package/dist/video_stream.d.cts +3 -4
  185. package/dist/video_stream.d.ts +3 -4
  186. package/dist/video_stream.d.ts.map +1 -1
  187. package/dist/video_stream.js +17 -6
  188. package/dist/video_stream.js.map +1 -1
  189. package/package.json +9 -9
  190. package/src/audio_frame.ts +10 -10
  191. package/src/audio_resampler.ts +15 -13
  192. package/src/audio_source.ts +11 -8
  193. package/src/audio_stream.ts +3 -4
  194. package/src/e2ee.ts +41 -42
  195. package/src/ffi_client.ts +8 -16
  196. package/src/index.ts +5 -68
  197. package/src/napi/native.d.ts +5 -5
  198. package/src/participant.ts +102 -73
  199. package/src/proto/audio_frame_pb.ts +1220 -496
  200. package/src/proto/e2ee_pb.ts +858 -337
  201. package/src/proto/ffi_pb.ts +442 -135
  202. package/src/proto/handle_pb.ts +33 -19
  203. package/src/proto/participant_pb.ts +225 -60
  204. package/src/proto/room_pb.ts +3149 -1013
  205. package/src/proto/rpc_pb.ts +358 -129
  206. package/src/proto/stats_pb.ts +1891 -877
  207. package/src/proto/track_pb.ts +587 -253
  208. package/src/proto/track_publication_pb.ts +180 -0
  209. package/src/proto/video_frame_pb.ts +861 -394
  210. package/src/room.ts +137 -189
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -1,111 +1,221 @@
1
- import { GenFile, GenMessage, GenEnum } from '@bufbuild/protobuf/codegenv1';
2
- import { FfiOwnedHandle } from './handle_pb.cjs';
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
3
2
  import { TrackSource } from './track_pb.cjs';
4
- import { Message } from '@bufbuild/protobuf';
5
- import './e2ee_pb.cjs';
3
+ import { FfiOwnedHandle } from './handle_pb.cjs';
6
4
  import './stats_pb.cjs';
5
+ import './e2ee_pb.cjs';
7
6
 
8
7
  /**
9
- * Describes the file audio_frame.proto.
8
+ * @generated from enum livekit.proto.SoxResamplerDataType
10
9
  */
11
- declare const file_audio_frame: GenFile;
10
+ declare enum SoxResamplerDataType {
11
+ /**
12
+ * TODO(theomonnom): support other datatypes (shouldn't really be needed)
13
+ *
14
+ * @generated from enum value: SOXR_DATATYPE_INT16I = 0;
15
+ */
16
+ SOXR_DATATYPE_INT16I = 0,
17
+ /**
18
+ * @generated from enum value: SOXR_DATATYPE_INT16S = 1;
19
+ */
20
+ SOXR_DATATYPE_INT16S = 1
21
+ }
22
+ /**
23
+ * @generated from enum livekit.proto.SoxQualityRecipe
24
+ */
25
+ declare enum SoxQualityRecipe {
26
+ /**
27
+ * @generated from enum value: SOXR_QUALITY_QUICK = 0;
28
+ */
29
+ SOXR_QUALITY_QUICK = 0,
30
+ /**
31
+ * @generated from enum value: SOXR_QUALITY_LOW = 1;
32
+ */
33
+ SOXR_QUALITY_LOW = 1,
34
+ /**
35
+ * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;
36
+ */
37
+ SOXR_QUALITY_MEDIUM = 2,
38
+ /**
39
+ * @generated from enum value: SOXR_QUALITY_HIGH = 3;
40
+ */
41
+ SOXR_QUALITY_HIGH = 3,
42
+ /**
43
+ * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;
44
+ */
45
+ SOXR_QUALITY_VERYHIGH = 4
46
+ }
47
+ /**
48
+ * @generated from enum livekit.proto.SoxFlagBits
49
+ */
50
+ declare enum SoxFlagBits {
51
+ /**
52
+ * 1 << 0
53
+ *
54
+ * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;
55
+ */
56
+ SOXR_ROLLOFF_SMALL = 0,
57
+ /**
58
+ * 1 << 1
59
+ *
60
+ * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;
61
+ */
62
+ SOXR_ROLLOFF_MEDIUM = 1,
63
+ /**
64
+ * 1 << 2
65
+ *
66
+ * @generated from enum value: SOXR_ROLLOFF_NONE = 2;
67
+ */
68
+ SOXR_ROLLOFF_NONE = 2,
69
+ /**
70
+ * 1 << 3
71
+ *
72
+ * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;
73
+ */
74
+ SOXR_HIGH_PREC_CLOCK = 3,
75
+ /**
76
+ * 1 << 4
77
+ *
78
+ * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;
79
+ */
80
+ SOXR_DOUBLE_PRECISION = 4,
81
+ /**
82
+ * 1 << 5
83
+ *
84
+ * @generated from enum value: SOXR_VR = 5;
85
+ */
86
+ SOXR_VR = 5
87
+ }
88
+ /**
89
+ * @generated from enum livekit.proto.AudioStreamType
90
+ */
91
+ declare enum AudioStreamType {
92
+ /**
93
+ * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
94
+ */
95
+ AUDIO_STREAM_NATIVE = 0,
96
+ /**
97
+ * @generated from enum value: AUDIO_STREAM_HTML = 1;
98
+ */
99
+ AUDIO_STREAM_HTML = 1
100
+ }
101
+ /**
102
+ * @generated from enum livekit.proto.AudioSourceType
103
+ */
104
+ declare enum AudioSourceType {
105
+ /**
106
+ * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
107
+ */
108
+ AUDIO_SOURCE_NATIVE = 0
109
+ }
12
110
  /**
13
111
  * Create a new AudioStream
14
112
  * AudioStream is used to receive audio frames from a track
15
113
  *
16
114
  * @generated from message livekit.proto.NewAudioStreamRequest
17
115
  */
18
- type NewAudioStreamRequest = Message<"livekit.proto.NewAudioStreamRequest"> & {
116
+ declare class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
19
117
  /**
20
118
  * @generated from field: required uint64 track_handle = 1;
21
119
  */
22
- trackHandle: bigint;
120
+ trackHandle?: bigint;
23
121
  /**
24
122
  * @generated from field: required livekit.proto.AudioStreamType type = 2;
25
123
  */
26
- type: AudioStreamType;
124
+ type?: AudioStreamType;
27
125
  /**
28
126
  * @generated from field: optional uint32 sample_rate = 3;
29
127
  */
30
- sampleRate: number;
128
+ sampleRate?: number;
31
129
  /**
32
130
  * @generated from field: optional uint32 num_channels = 4;
33
131
  */
34
- numChannels: number;
35
- };
36
- /**
37
- * Describes the message livekit.proto.NewAudioStreamRequest.
38
- * Use `create(NewAudioStreamRequestSchema)` to create a new message.
39
- */
40
- declare const NewAudioStreamRequestSchema: GenMessage<NewAudioStreamRequest>;
132
+ numChannels?: number;
133
+ constructor(data?: PartialMessage<NewAudioStreamRequest>);
134
+ static readonly runtime: typeof proto2;
135
+ static readonly typeName = "livekit.proto.NewAudioStreamRequest";
136
+ static readonly fields: FieldList;
137
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest;
138
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamRequest;
140
+ static equals(a: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined, b: NewAudioStreamRequest | PlainMessage<NewAudioStreamRequest> | undefined): boolean;
141
+ }
41
142
  /**
42
143
  * @generated from message livekit.proto.NewAudioStreamResponse
43
144
  */
44
- type NewAudioStreamResponse = Message<"livekit.proto.NewAudioStreamResponse"> & {
145
+ declare class NewAudioStreamResponse extends Message<NewAudioStreamResponse> {
45
146
  /**
46
147
  * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
47
148
  */
48
149
  stream?: OwnedAudioStream;
49
- };
50
- /**
51
- * Describes the message livekit.proto.NewAudioStreamResponse.
52
- * Use `create(NewAudioStreamResponseSchema)` to create a new message.
53
- */
54
- declare const NewAudioStreamResponseSchema: GenMessage<NewAudioStreamResponse>;
150
+ constructor(data?: PartialMessage<NewAudioStreamResponse>);
151
+ static readonly runtime: typeof proto2;
152
+ static readonly typeName = "livekit.proto.NewAudioStreamResponse";
153
+ static readonly fields: FieldList;
154
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamResponse;
155
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
156
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioStreamResponse;
157
+ static equals(a: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined, b: NewAudioStreamResponse | PlainMessage<NewAudioStreamResponse> | undefined): boolean;
158
+ }
55
159
  /**
56
160
  * @generated from message livekit.proto.AudioStreamFromParticipantRequest
57
161
  */
58
- type AudioStreamFromParticipantRequest = Message<"livekit.proto.AudioStreamFromParticipantRequest"> & {
162
+ declare class AudioStreamFromParticipantRequest extends Message<AudioStreamFromParticipantRequest> {
59
163
  /**
60
164
  * @generated from field: required uint64 participant_handle = 1;
61
165
  */
62
- participantHandle: bigint;
166
+ participantHandle?: bigint;
63
167
  /**
64
168
  * @generated from field: required livekit.proto.AudioStreamType type = 2;
65
169
  */
66
- type: AudioStreamType;
170
+ type?: AudioStreamType;
67
171
  /**
68
172
  * @generated from field: optional livekit.proto.TrackSource track_source = 3;
69
173
  */
70
- trackSource: TrackSource;
174
+ trackSource?: TrackSource;
71
175
  /**
72
176
  * @generated from field: optional uint32 sample_rate = 5;
73
177
  */
74
- sampleRate: number;
178
+ sampleRate?: number;
75
179
  /**
76
180
  * @generated from field: optional uint32 num_channels = 6;
77
181
  */
78
- numChannels: number;
79
- };
80
- /**
81
- * Describes the message livekit.proto.AudioStreamFromParticipantRequest.
82
- * Use `create(AudioStreamFromParticipantRequestSchema)` to create a new message.
83
- */
84
- declare const AudioStreamFromParticipantRequestSchema: GenMessage<AudioStreamFromParticipantRequest>;
182
+ numChannels?: number;
183
+ constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>);
184
+ static readonly runtime: typeof proto2;
185
+ static readonly typeName = "livekit.proto.AudioStreamFromParticipantRequest";
186
+ static readonly fields: FieldList;
187
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantRequest;
188
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest;
189
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantRequest;
190
+ static equals(a: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined, b: AudioStreamFromParticipantRequest | PlainMessage<AudioStreamFromParticipantRequest> | undefined): boolean;
191
+ }
85
192
  /**
86
193
  * @generated from message livekit.proto.AudioStreamFromParticipantResponse
87
194
  */
88
- type AudioStreamFromParticipantResponse = Message<"livekit.proto.AudioStreamFromParticipantResponse"> & {
195
+ declare class AudioStreamFromParticipantResponse extends Message<AudioStreamFromParticipantResponse> {
89
196
  /**
90
197
  * @generated from field: required livekit.proto.OwnedAudioStream stream = 1;
91
198
  */
92
199
  stream?: OwnedAudioStream;
93
- };
94
- /**
95
- * Describes the message livekit.proto.AudioStreamFromParticipantResponse.
96
- * Use `create(AudioStreamFromParticipantResponseSchema)` to create a new message.
97
- */
98
- declare const AudioStreamFromParticipantResponseSchema: GenMessage<AudioStreamFromParticipantResponse>;
200
+ constructor(data?: PartialMessage<AudioStreamFromParticipantResponse>);
201
+ static readonly runtime: typeof proto2;
202
+ static readonly typeName = "livekit.proto.AudioStreamFromParticipantResponse";
203
+ static readonly fields: FieldList;
204
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantResponse;
205
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse;
206
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamFromParticipantResponse;
207
+ static equals(a: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined, b: AudioStreamFromParticipantResponse | PlainMessage<AudioStreamFromParticipantResponse> | undefined): boolean;
208
+ }
99
209
  /**
100
210
  * Create a new AudioSource
101
211
  *
102
212
  * @generated from message livekit.proto.NewAudioSourceRequest
103
213
  */
104
- type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest"> & {
214
+ declare class NewAudioSourceRequest extends Message<NewAudioSourceRequest> {
105
215
  /**
106
216
  * @generated from field: required livekit.proto.AudioSourceType type = 1;
107
217
  */
108
- type: AudioSourceType;
218
+ type?: AudioSourceType;
109
219
  /**
110
220
  * @generated from field: optional livekit.proto.AudioSourceOptions options = 2;
111
221
  */
@@ -113,146 +223,175 @@ type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest"> & {
113
223
  /**
114
224
  * @generated from field: required uint32 sample_rate = 3;
115
225
  */
116
- sampleRate: number;
226
+ sampleRate?: number;
117
227
  /**
118
228
  * @generated from field: required uint32 num_channels = 4;
119
229
  */
120
- numChannels: number;
230
+ numChannels?: number;
121
231
  /**
122
232
  * @generated from field: optional uint32 queue_size_ms = 5;
123
233
  */
124
- queueSizeMs: number;
125
- };
126
- /**
127
- * Describes the message livekit.proto.NewAudioSourceRequest.
128
- * Use `create(NewAudioSourceRequestSchema)` to create a new message.
129
- */
130
- declare const NewAudioSourceRequestSchema: GenMessage<NewAudioSourceRequest>;
234
+ queueSizeMs?: number;
235
+ constructor(data?: PartialMessage<NewAudioSourceRequest>);
236
+ static readonly runtime: typeof proto2;
237
+ static readonly typeName = "livekit.proto.NewAudioSourceRequest";
238
+ static readonly fields: FieldList;
239
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceRequest;
240
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
241
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceRequest;
242
+ static equals(a: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined, b: NewAudioSourceRequest | PlainMessage<NewAudioSourceRequest> | undefined): boolean;
243
+ }
131
244
  /**
132
245
  * @generated from message livekit.proto.NewAudioSourceResponse
133
246
  */
134
- type NewAudioSourceResponse = Message<"livekit.proto.NewAudioSourceResponse"> & {
247
+ declare class NewAudioSourceResponse extends Message<NewAudioSourceResponse> {
135
248
  /**
136
249
  * @generated from field: required livekit.proto.OwnedAudioSource source = 1;
137
250
  */
138
251
  source?: OwnedAudioSource;
139
- };
140
- /**
141
- * Describes the message livekit.proto.NewAudioSourceResponse.
142
- * Use `create(NewAudioSourceResponseSchema)` to create a new message.
143
- */
144
- declare const NewAudioSourceResponseSchema: GenMessage<NewAudioSourceResponse>;
252
+ constructor(data?: PartialMessage<NewAudioSourceResponse>);
253
+ static readonly runtime: typeof proto2;
254
+ static readonly typeName = "livekit.proto.NewAudioSourceResponse";
255
+ static readonly fields: FieldList;
256
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioSourceResponse;
257
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
258
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioSourceResponse;
259
+ static equals(a: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined, b: NewAudioSourceResponse | PlainMessage<NewAudioSourceResponse> | undefined): boolean;
260
+ }
145
261
  /**
146
262
  * Push a frame to an AudioSource
147
263
  * The data provided must be available as long as the client receive the callback.
148
264
  *
149
265
  * @generated from message livekit.proto.CaptureAudioFrameRequest
150
266
  */
151
- type CaptureAudioFrameRequest = Message<"livekit.proto.CaptureAudioFrameRequest"> & {
267
+ declare class CaptureAudioFrameRequest extends Message<CaptureAudioFrameRequest> {
152
268
  /**
153
269
  * @generated from field: required uint64 source_handle = 1;
154
270
  */
155
- sourceHandle: bigint;
271
+ sourceHandle?: bigint;
156
272
  /**
157
273
  * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
158
274
  */
159
275
  buffer?: AudioFrameBufferInfo;
160
- };
161
- /**
162
- * Describes the message livekit.proto.CaptureAudioFrameRequest.
163
- * Use `create(CaptureAudioFrameRequestSchema)` to create a new message.
164
- */
165
- declare const CaptureAudioFrameRequestSchema: GenMessage<CaptureAudioFrameRequest>;
276
+ constructor(data?: PartialMessage<CaptureAudioFrameRequest>);
277
+ static readonly runtime: typeof proto2;
278
+ static readonly typeName = "livekit.proto.CaptureAudioFrameRequest";
279
+ static readonly fields: FieldList;
280
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameRequest;
281
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
282
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameRequest;
283
+ static equals(a: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined, b: CaptureAudioFrameRequest | PlainMessage<CaptureAudioFrameRequest> | undefined): boolean;
284
+ }
166
285
  /**
167
286
  * @generated from message livekit.proto.CaptureAudioFrameResponse
168
287
  */
169
- type CaptureAudioFrameResponse = Message<"livekit.proto.CaptureAudioFrameResponse"> & {
288
+ declare class CaptureAudioFrameResponse extends Message<CaptureAudioFrameResponse> {
170
289
  /**
171
290
  * @generated from field: required uint64 async_id = 1;
172
291
  */
173
- asyncId: bigint;
174
- };
175
- /**
176
- * Describes the message livekit.proto.CaptureAudioFrameResponse.
177
- * Use `create(CaptureAudioFrameResponseSchema)` to create a new message.
178
- */
179
- declare const CaptureAudioFrameResponseSchema: GenMessage<CaptureAudioFrameResponse>;
292
+ asyncId?: bigint;
293
+ constructor(data?: PartialMessage<CaptureAudioFrameResponse>);
294
+ static readonly runtime: typeof proto2;
295
+ static readonly typeName = "livekit.proto.CaptureAudioFrameResponse";
296
+ static readonly fields: FieldList;
297
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameResponse;
298
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
299
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameResponse;
300
+ static equals(a: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined, b: CaptureAudioFrameResponse | PlainMessage<CaptureAudioFrameResponse> | undefined): boolean;
301
+ }
180
302
  /**
181
303
  * @generated from message livekit.proto.CaptureAudioFrameCallback
182
304
  */
183
- type CaptureAudioFrameCallback = Message<"livekit.proto.CaptureAudioFrameCallback"> & {
305
+ declare class CaptureAudioFrameCallback extends Message<CaptureAudioFrameCallback> {
184
306
  /**
185
307
  * @generated from field: required uint64 async_id = 1;
186
308
  */
187
- asyncId: bigint;
309
+ asyncId?: bigint;
188
310
  /**
189
311
  * @generated from field: optional string error = 2;
190
312
  */
191
- error: string;
192
- };
193
- /**
194
- * Describes the message livekit.proto.CaptureAudioFrameCallback.
195
- * Use `create(CaptureAudioFrameCallbackSchema)` to create a new message.
196
- */
197
- declare const CaptureAudioFrameCallbackSchema: GenMessage<CaptureAudioFrameCallback>;
313
+ error?: string;
314
+ constructor(data?: PartialMessage<CaptureAudioFrameCallback>);
315
+ static readonly runtime: typeof proto2;
316
+ static readonly typeName = "livekit.proto.CaptureAudioFrameCallback";
317
+ static readonly fields: FieldList;
318
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureAudioFrameCallback;
319
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureAudioFrameCallback;
321
+ static equals(a: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined, b: CaptureAudioFrameCallback | PlainMessage<CaptureAudioFrameCallback> | undefined): boolean;
322
+ }
198
323
  /**
199
324
  * @generated from message livekit.proto.ClearAudioBufferRequest
200
325
  */
201
- type ClearAudioBufferRequest = Message<"livekit.proto.ClearAudioBufferRequest"> & {
326
+ declare class ClearAudioBufferRequest extends Message<ClearAudioBufferRequest> {
202
327
  /**
203
328
  * @generated from field: required uint64 source_handle = 1;
204
329
  */
205
- sourceHandle: bigint;
206
- };
207
- /**
208
- * Describes the message livekit.proto.ClearAudioBufferRequest.
209
- * Use `create(ClearAudioBufferRequestSchema)` to create a new message.
210
- */
211
- declare const ClearAudioBufferRequestSchema: GenMessage<ClearAudioBufferRequest>;
330
+ sourceHandle?: bigint;
331
+ constructor(data?: PartialMessage<ClearAudioBufferRequest>);
332
+ static readonly runtime: typeof proto2;
333
+ static readonly typeName = "livekit.proto.ClearAudioBufferRequest";
334
+ static readonly fields: FieldList;
335
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferRequest;
336
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest;
337
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferRequest;
338
+ static equals(a: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined, b: ClearAudioBufferRequest | PlainMessage<ClearAudioBufferRequest> | undefined): boolean;
339
+ }
212
340
  /**
213
341
  * @generated from message livekit.proto.ClearAudioBufferResponse
214
342
  */
215
- type ClearAudioBufferResponse = Message<"livekit.proto.ClearAudioBufferResponse"> & {};
216
- /**
217
- * Describes the message livekit.proto.ClearAudioBufferResponse.
218
- * Use `create(ClearAudioBufferResponseSchema)` to create a new message.
219
- */
220
- declare const ClearAudioBufferResponseSchema: GenMessage<ClearAudioBufferResponse>;
343
+ declare class ClearAudioBufferResponse extends Message<ClearAudioBufferResponse> {
344
+ constructor(data?: PartialMessage<ClearAudioBufferResponse>);
345
+ static readonly runtime: typeof proto2;
346
+ static readonly typeName = "livekit.proto.ClearAudioBufferResponse";
347
+ static readonly fields: FieldList;
348
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearAudioBufferResponse;
349
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse;
350
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearAudioBufferResponse;
351
+ static equals(a: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined, b: ClearAudioBufferResponse | PlainMessage<ClearAudioBufferResponse> | undefined): boolean;
352
+ }
221
353
  /**
222
354
  * Create a new AudioResampler
223
355
  *
224
356
  * @generated from message livekit.proto.NewAudioResamplerRequest
225
357
  */
226
- type NewAudioResamplerRequest = Message<"livekit.proto.NewAudioResamplerRequest"> & {};
227
- /**
228
- * Describes the message livekit.proto.NewAudioResamplerRequest.
229
- * Use `create(NewAudioResamplerRequestSchema)` to create a new message.
230
- */
231
- declare const NewAudioResamplerRequestSchema: GenMessage<NewAudioResamplerRequest>;
358
+ declare class NewAudioResamplerRequest extends Message<NewAudioResamplerRequest> {
359
+ constructor(data?: PartialMessage<NewAudioResamplerRequest>);
360
+ static readonly runtime: typeof proto2;
361
+ static readonly typeName = "livekit.proto.NewAudioResamplerRequest";
362
+ static readonly fields: FieldList;
363
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerRequest;
364
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
365
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerRequest;
366
+ static equals(a: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined, b: NewAudioResamplerRequest | PlainMessage<NewAudioResamplerRequest> | undefined): boolean;
367
+ }
232
368
  /**
233
369
  * @generated from message livekit.proto.NewAudioResamplerResponse
234
370
  */
235
- type NewAudioResamplerResponse = Message<"livekit.proto.NewAudioResamplerResponse"> & {
371
+ declare class NewAudioResamplerResponse extends Message<NewAudioResamplerResponse> {
236
372
  /**
237
373
  * @generated from field: required livekit.proto.OwnedAudioResampler resampler = 1;
238
374
  */
239
375
  resampler?: OwnedAudioResampler;
240
- };
241
- /**
242
- * Describes the message livekit.proto.NewAudioResamplerResponse.
243
- * Use `create(NewAudioResamplerResponseSchema)` to create a new message.
244
- */
245
- declare const NewAudioResamplerResponseSchema: GenMessage<NewAudioResamplerResponse>;
376
+ constructor(data?: PartialMessage<NewAudioResamplerResponse>);
377
+ static readonly runtime: typeof proto2;
378
+ static readonly typeName = "livekit.proto.NewAudioResamplerResponse";
379
+ static readonly fields: FieldList;
380
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioResamplerResponse;
381
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
382
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewAudioResamplerResponse;
383
+ static equals(a: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined, b: NewAudioResamplerResponse | PlainMessage<NewAudioResamplerResponse> | undefined): boolean;
384
+ }
246
385
  /**
247
386
  * Remix and resample an audio frame
248
387
  *
249
388
  * @generated from message livekit.proto.RemixAndResampleRequest
250
389
  */
251
- type RemixAndResampleRequest = Message<"livekit.proto.RemixAndResampleRequest"> & {
390
+ declare class RemixAndResampleRequest extends Message<RemixAndResampleRequest> {
252
391
  /**
253
392
  * @generated from field: required uint64 resampler_handle = 1;
254
393
  */
255
- resamplerHandle: bigint;
394
+ resamplerHandle?: bigint;
256
395
  /**
257
396
  * @generated from field: required livekit.proto.AudioFrameBufferInfo buffer = 2;
258
397
  */
@@ -260,73 +399,82 @@ type RemixAndResampleRequest = Message<"livekit.proto.RemixAndResampleRequest">
260
399
  /**
261
400
  * @generated from field: required uint32 num_channels = 3;
262
401
  */
263
- numChannels: number;
402
+ numChannels?: number;
264
403
  /**
265
404
  * @generated from field: required uint32 sample_rate = 4;
266
405
  */
267
- sampleRate: number;
268
- };
269
- /**
270
- * Describes the message livekit.proto.RemixAndResampleRequest.
271
- * Use `create(RemixAndResampleRequestSchema)` to create a new message.
272
- */
273
- declare const RemixAndResampleRequestSchema: GenMessage<RemixAndResampleRequest>;
406
+ sampleRate?: number;
407
+ constructor(data?: PartialMessage<RemixAndResampleRequest>);
408
+ static readonly runtime: typeof proto2;
409
+ static readonly typeName = "livekit.proto.RemixAndResampleRequest";
410
+ static readonly fields: FieldList;
411
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleRequest;
412
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
413
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleRequest;
414
+ static equals(a: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined, b: RemixAndResampleRequest | PlainMessage<RemixAndResampleRequest> | undefined): boolean;
415
+ }
274
416
  /**
275
417
  * @generated from message livekit.proto.RemixAndResampleResponse
276
418
  */
277
- type RemixAndResampleResponse = Message<"livekit.proto.RemixAndResampleResponse"> & {
419
+ declare class RemixAndResampleResponse extends Message<RemixAndResampleResponse> {
278
420
  /**
279
421
  * @generated from field: required livekit.proto.OwnedAudioFrameBuffer buffer = 1;
280
422
  */
281
423
  buffer?: OwnedAudioFrameBuffer;
282
- };
283
- /**
284
- * Describes the message livekit.proto.RemixAndResampleResponse.
285
- * Use `create(RemixAndResampleResponseSchema)` to create a new message.
286
- */
287
- declare const RemixAndResampleResponseSchema: GenMessage<RemixAndResampleResponse>;
424
+ constructor(data?: PartialMessage<RemixAndResampleResponse>);
425
+ static readonly runtime: typeof proto2;
426
+ static readonly typeName = "livekit.proto.RemixAndResampleResponse";
427
+ static readonly fields: FieldList;
428
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemixAndResampleResponse;
429
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
430
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemixAndResampleResponse;
431
+ static equals(a: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined, b: RemixAndResampleResponse | PlainMessage<RemixAndResampleResponse> | undefined): boolean;
432
+ }
288
433
  /**
289
434
  * @generated from message livekit.proto.NewSoxResamplerRequest
290
435
  */
291
- type NewSoxResamplerRequest = Message<"livekit.proto.NewSoxResamplerRequest"> & {
436
+ declare class NewSoxResamplerRequest extends Message<NewSoxResamplerRequest> {
292
437
  /**
293
438
  * @generated from field: required double input_rate = 1;
294
439
  */
295
- inputRate: number;
440
+ inputRate?: number;
296
441
  /**
297
442
  * @generated from field: required double output_rate = 2;
298
443
  */
299
- outputRate: number;
444
+ outputRate?: number;
300
445
  /**
301
446
  * @generated from field: required uint32 num_channels = 3;
302
447
  */
303
- numChannels: number;
448
+ numChannels?: number;
304
449
  /**
305
450
  * @generated from field: required livekit.proto.SoxResamplerDataType input_data_type = 4;
306
451
  */
307
- inputDataType: SoxResamplerDataType;
452
+ inputDataType?: SoxResamplerDataType;
308
453
  /**
309
454
  * @generated from field: required livekit.proto.SoxResamplerDataType output_data_type = 5;
310
455
  */
311
- outputDataType: SoxResamplerDataType;
456
+ outputDataType?: SoxResamplerDataType;
312
457
  /**
313
458
  * @generated from field: required livekit.proto.SoxQualityRecipe quality_recipe = 6;
314
459
  */
315
- qualityRecipe: SoxQualityRecipe;
460
+ qualityRecipe?: SoxQualityRecipe;
316
461
  /**
317
462
  * @generated from field: optional uint32 flags = 7;
318
463
  */
319
- flags: number;
320
- };
321
- /**
322
- * Describes the message livekit.proto.NewSoxResamplerRequest.
323
- * Use `create(NewSoxResamplerRequestSchema)` to create a new message.
324
- */
325
- declare const NewSoxResamplerRequestSchema: GenMessage<NewSoxResamplerRequest>;
464
+ flags?: number;
465
+ constructor(data?: PartialMessage<NewSoxResamplerRequest>);
466
+ static readonly runtime: typeof proto2;
467
+ static readonly typeName = "livekit.proto.NewSoxResamplerRequest";
468
+ static readonly fields: FieldList;
469
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerRequest;
470
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest;
471
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerRequest;
472
+ static equals(a: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined, b: NewSoxResamplerRequest | PlainMessage<NewSoxResamplerRequest> | undefined): boolean;
473
+ }
326
474
  /**
327
475
  * @generated from message livekit.proto.NewSoxResamplerResponse
328
476
  */
329
- type NewSoxResamplerResponse = Message<"livekit.proto.NewSoxResamplerResponse"> & {
477
+ declare class NewSoxResamplerResponse extends Message<NewSoxResamplerResponse> {
330
478
  /**
331
479
  * @generated from oneof livekit.proto.NewSoxResamplerResponse.message
332
480
  */
@@ -346,136 +494,154 @@ type NewSoxResamplerResponse = Message<"livekit.proto.NewSoxResamplerResponse">
346
494
  case: undefined;
347
495
  value?: undefined;
348
496
  };
349
- };
350
- /**
351
- * Describes the message livekit.proto.NewSoxResamplerResponse.
352
- * Use `create(NewSoxResamplerResponseSchema)` to create a new message.
353
- */
354
- declare const NewSoxResamplerResponseSchema: GenMessage<NewSoxResamplerResponse>;
497
+ constructor(data?: PartialMessage<NewSoxResamplerResponse>);
498
+ static readonly runtime: typeof proto2;
499
+ static readonly typeName = "livekit.proto.NewSoxResamplerResponse";
500
+ static readonly fields: FieldList;
501
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewSoxResamplerResponse;
502
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse;
503
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewSoxResamplerResponse;
504
+ static equals(a: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined, b: NewSoxResamplerResponse | PlainMessage<NewSoxResamplerResponse> | undefined): boolean;
505
+ }
355
506
  /**
356
507
  * @generated from message livekit.proto.PushSoxResamplerRequest
357
508
  */
358
- type PushSoxResamplerRequest = Message<"livekit.proto.PushSoxResamplerRequest"> & {
509
+ declare class PushSoxResamplerRequest extends Message<PushSoxResamplerRequest> {
359
510
  /**
360
511
  * @generated from field: required uint64 resampler_handle = 1;
361
512
  */
362
- resamplerHandle: bigint;
513
+ resamplerHandle?: bigint;
363
514
  /**
364
515
  * *const i16
365
516
  *
366
517
  * @generated from field: required uint64 data_ptr = 2;
367
518
  */
368
- dataPtr: bigint;
519
+ dataPtr?: bigint;
369
520
  /**
370
521
  * in bytes
371
522
  *
372
523
  * @generated from field: required uint32 size = 3;
373
524
  */
374
- size: number;
375
- };
376
- /**
377
- * Describes the message livekit.proto.PushSoxResamplerRequest.
378
- * Use `create(PushSoxResamplerRequestSchema)` to create a new message.
379
- */
380
- declare const PushSoxResamplerRequestSchema: GenMessage<PushSoxResamplerRequest>;
525
+ size?: number;
526
+ constructor(data?: PartialMessage<PushSoxResamplerRequest>);
527
+ static readonly runtime: typeof proto2;
528
+ static readonly typeName = "livekit.proto.PushSoxResamplerRequest";
529
+ static readonly fields: FieldList;
530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerRequest;
531
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest;
532
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerRequest;
533
+ static equals(a: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined, b: PushSoxResamplerRequest | PlainMessage<PushSoxResamplerRequest> | undefined): boolean;
534
+ }
381
535
  /**
382
536
  * @generated from message livekit.proto.PushSoxResamplerResponse
383
537
  */
384
- type PushSoxResamplerResponse = Message<"livekit.proto.PushSoxResamplerResponse"> & {
538
+ declare class PushSoxResamplerResponse extends Message<PushSoxResamplerResponse> {
385
539
  /**
386
540
  * *const i16 (could be null)
387
541
  *
388
542
  * @generated from field: required uint64 output_ptr = 1;
389
543
  */
390
- outputPtr: bigint;
544
+ outputPtr?: bigint;
391
545
  /**
392
546
  * in bytes
393
547
  *
394
548
  * @generated from field: required uint32 size = 2;
395
549
  */
396
- size: number;
550
+ size?: number;
397
551
  /**
398
552
  * @generated from field: optional string error = 3;
399
553
  */
400
- error: string;
401
- };
402
- /**
403
- * Describes the message livekit.proto.PushSoxResamplerResponse.
404
- * Use `create(PushSoxResamplerResponseSchema)` to create a new message.
405
- */
406
- declare const PushSoxResamplerResponseSchema: GenMessage<PushSoxResamplerResponse>;
554
+ error?: string;
555
+ constructor(data?: PartialMessage<PushSoxResamplerResponse>);
556
+ static readonly runtime: typeof proto2;
557
+ static readonly typeName = "livekit.proto.PushSoxResamplerResponse";
558
+ static readonly fields: FieldList;
559
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushSoxResamplerResponse;
560
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse;
561
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushSoxResamplerResponse;
562
+ static equals(a: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined, b: PushSoxResamplerResponse | PlainMessage<PushSoxResamplerResponse> | undefined): boolean;
563
+ }
407
564
  /**
408
565
  * @generated from message livekit.proto.FlushSoxResamplerRequest
409
566
  */
410
- type FlushSoxResamplerRequest = Message<"livekit.proto.FlushSoxResamplerRequest"> & {
567
+ declare class FlushSoxResamplerRequest extends Message<FlushSoxResamplerRequest> {
411
568
  /**
412
569
  * @generated from field: required uint64 resampler_handle = 1;
413
570
  */
414
- resamplerHandle: bigint;
415
- };
416
- /**
417
- * Describes the message livekit.proto.FlushSoxResamplerRequest.
418
- * Use `create(FlushSoxResamplerRequestSchema)` to create a new message.
419
- */
420
- declare const FlushSoxResamplerRequestSchema: GenMessage<FlushSoxResamplerRequest>;
571
+ resamplerHandle?: bigint;
572
+ constructor(data?: PartialMessage<FlushSoxResamplerRequest>);
573
+ static readonly runtime: typeof proto2;
574
+ static readonly typeName = "livekit.proto.FlushSoxResamplerRequest";
575
+ static readonly fields: FieldList;
576
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerRequest;
577
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest;
578
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerRequest;
579
+ static equals(a: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined, b: FlushSoxResamplerRequest | PlainMessage<FlushSoxResamplerRequest> | undefined): boolean;
580
+ }
421
581
  /**
422
582
  * @generated from message livekit.proto.FlushSoxResamplerResponse
423
583
  */
424
- type FlushSoxResamplerResponse = Message<"livekit.proto.FlushSoxResamplerResponse"> & {
584
+ declare class FlushSoxResamplerResponse extends Message<FlushSoxResamplerResponse> {
425
585
  /**
426
586
  * *const i16 (could be null)
427
587
  *
428
588
  * @generated from field: required uint64 output_ptr = 1;
429
589
  */
430
- outputPtr: bigint;
590
+ outputPtr?: bigint;
431
591
  /**
432
592
  * in bytes
433
593
  *
434
594
  * @generated from field: required uint32 size = 2;
435
595
  */
436
- size: number;
596
+ size?: number;
437
597
  /**
438
598
  * @generated from field: optional string error = 3;
439
599
  */
440
- error: string;
441
- };
442
- /**
443
- * Describes the message livekit.proto.FlushSoxResamplerResponse.
444
- * Use `create(FlushSoxResamplerResponseSchema)` to create a new message.
445
- */
446
- declare const FlushSoxResamplerResponseSchema: GenMessage<FlushSoxResamplerResponse>;
600
+ error?: string;
601
+ constructor(data?: PartialMessage<FlushSoxResamplerResponse>);
602
+ static readonly runtime: typeof proto2;
603
+ static readonly typeName = "livekit.proto.FlushSoxResamplerResponse";
604
+ static readonly fields: FieldList;
605
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FlushSoxResamplerResponse;
606
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse;
607
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FlushSoxResamplerResponse;
608
+ static equals(a: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined, b: FlushSoxResamplerResponse | PlainMessage<FlushSoxResamplerResponse> | undefined): boolean;
609
+ }
447
610
  /**
448
611
  * @generated from message livekit.proto.AudioFrameBufferInfo
449
612
  */
450
- type AudioFrameBufferInfo = Message<"livekit.proto.AudioFrameBufferInfo"> & {
613
+ declare class AudioFrameBufferInfo extends Message<AudioFrameBufferInfo> {
451
614
  /**
452
615
  * *const i16
453
616
  *
454
617
  * @generated from field: required uint64 data_ptr = 1;
455
618
  */
456
- dataPtr: bigint;
619
+ dataPtr?: bigint;
457
620
  /**
458
621
  * @generated from field: required uint32 num_channels = 2;
459
622
  */
460
- numChannels: number;
623
+ numChannels?: number;
461
624
  /**
462
625
  * @generated from field: required uint32 sample_rate = 3;
463
626
  */
464
- sampleRate: number;
627
+ sampleRate?: number;
465
628
  /**
466
629
  * @generated from field: required uint32 samples_per_channel = 4;
467
630
  */
468
- samplesPerChannel: number;
469
- };
470
- /**
471
- * Describes the message livekit.proto.AudioFrameBufferInfo.
472
- * Use `create(AudioFrameBufferInfoSchema)` to create a new message.
473
- */
474
- declare const AudioFrameBufferInfoSchema: GenMessage<AudioFrameBufferInfo>;
631
+ samplesPerChannel?: number;
632
+ constructor(data?: PartialMessage<AudioFrameBufferInfo>);
633
+ static readonly runtime: typeof proto2;
634
+ static readonly typeName = "livekit.proto.AudioFrameBufferInfo";
635
+ static readonly fields: FieldList;
636
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameBufferInfo;
637
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
638
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameBufferInfo;
639
+ static equals(a: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined, b: AudioFrameBufferInfo | PlainMessage<AudioFrameBufferInfo> | undefined): boolean;
640
+ }
475
641
  /**
476
642
  * @generated from message livekit.proto.OwnedAudioFrameBuffer
477
643
  */
478
- type OwnedAudioFrameBuffer = Message<"livekit.proto.OwnedAudioFrameBuffer"> & {
644
+ declare class OwnedAudioFrameBuffer extends Message<OwnedAudioFrameBuffer> {
479
645
  /**
480
646
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
481
647
  */
@@ -484,30 +650,36 @@ type OwnedAudioFrameBuffer = Message<"livekit.proto.OwnedAudioFrameBuffer"> & {
484
650
  * @generated from field: required livekit.proto.AudioFrameBufferInfo info = 2;
485
651
  */
486
652
  info?: AudioFrameBufferInfo;
487
- };
488
- /**
489
- * Describes the message livekit.proto.OwnedAudioFrameBuffer.
490
- * Use `create(OwnedAudioFrameBufferSchema)` to create a new message.
491
- */
492
- declare const OwnedAudioFrameBufferSchema: GenMessage<OwnedAudioFrameBuffer>;
653
+ constructor(data?: PartialMessage<OwnedAudioFrameBuffer>);
654
+ static readonly runtime: typeof proto2;
655
+ static readonly typeName = "livekit.proto.OwnedAudioFrameBuffer";
656
+ static readonly fields: FieldList;
657
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioFrameBuffer;
658
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
659
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioFrameBuffer;
660
+ static equals(a: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined, b: OwnedAudioFrameBuffer | PlainMessage<OwnedAudioFrameBuffer> | undefined): boolean;
661
+ }
493
662
  /**
494
663
  * @generated from message livekit.proto.AudioStreamInfo
495
664
  */
496
- type AudioStreamInfo = Message<"livekit.proto.AudioStreamInfo"> & {
665
+ declare class AudioStreamInfo extends Message<AudioStreamInfo> {
497
666
  /**
498
667
  * @generated from field: required livekit.proto.AudioStreamType type = 1;
499
668
  */
500
- type: AudioStreamType;
501
- };
502
- /**
503
- * Describes the message livekit.proto.AudioStreamInfo.
504
- * Use `create(AudioStreamInfoSchema)` to create a new message.
505
- */
506
- declare const AudioStreamInfoSchema: GenMessage<AudioStreamInfo>;
669
+ type?: AudioStreamType;
670
+ constructor(data?: PartialMessage<AudioStreamInfo>);
671
+ static readonly runtime: typeof proto2;
672
+ static readonly typeName = "livekit.proto.AudioStreamInfo";
673
+ static readonly fields: FieldList;
674
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamInfo;
675
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamInfo;
676
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamInfo;
677
+ static equals(a: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined, b: AudioStreamInfo | PlainMessage<AudioStreamInfo> | undefined): boolean;
678
+ }
507
679
  /**
508
680
  * @generated from message livekit.proto.OwnedAudioStream
509
681
  */
510
- type OwnedAudioStream = Message<"livekit.proto.OwnedAudioStream"> & {
682
+ declare class OwnedAudioStream extends Message<OwnedAudioStream> {
511
683
  /**
512
684
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
513
685
  */
@@ -516,20 +688,23 @@ type OwnedAudioStream = Message<"livekit.proto.OwnedAudioStream"> & {
516
688
  * @generated from field: required livekit.proto.AudioStreamInfo info = 2;
517
689
  */
518
690
  info?: AudioStreamInfo;
519
- };
520
- /**
521
- * Describes the message livekit.proto.OwnedAudioStream.
522
- * Use `create(OwnedAudioStreamSchema)` to create a new message.
523
- */
524
- declare const OwnedAudioStreamSchema: GenMessage<OwnedAudioStream>;
691
+ constructor(data?: PartialMessage<OwnedAudioStream>);
692
+ static readonly runtime: typeof proto2;
693
+ static readonly typeName = "livekit.proto.OwnedAudioStream";
694
+ static readonly fields: FieldList;
695
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioStream;
696
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioStream;
697
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioStream;
698
+ static equals(a: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined, b: OwnedAudioStream | PlainMessage<OwnedAudioStream> | undefined): boolean;
699
+ }
525
700
  /**
526
701
  * @generated from message livekit.proto.AudioStreamEvent
527
702
  */
528
- type AudioStreamEvent = Message<"livekit.proto.AudioStreamEvent"> & {
703
+ declare class AudioStreamEvent extends Message<AudioStreamEvent> {
529
704
  /**
530
705
  * @generated from field: required uint64 stream_handle = 1;
531
706
  */
532
- streamHandle: bigint;
707
+ streamHandle?: bigint;
533
708
  /**
534
709
  * @generated from oneof livekit.proto.AudioStreamEvent.message
535
710
  */
@@ -549,75 +724,91 @@ type AudioStreamEvent = Message<"livekit.proto.AudioStreamEvent"> & {
549
724
  case: undefined;
550
725
  value?: undefined;
551
726
  };
552
- };
553
- /**
554
- * Describes the message livekit.proto.AudioStreamEvent.
555
- * Use `create(AudioStreamEventSchema)` to create a new message.
556
- */
557
- declare const AudioStreamEventSchema: GenMessage<AudioStreamEvent>;
727
+ constructor(data?: PartialMessage<AudioStreamEvent>);
728
+ static readonly runtime: typeof proto2;
729
+ static readonly typeName = "livekit.proto.AudioStreamEvent";
730
+ static readonly fields: FieldList;
731
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEvent;
732
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEvent;
733
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEvent;
734
+ static equals(a: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined, b: AudioStreamEvent | PlainMessage<AudioStreamEvent> | undefined): boolean;
735
+ }
558
736
  /**
559
737
  * @generated from message livekit.proto.AudioFrameReceived
560
738
  */
561
- type AudioFrameReceived = Message<"livekit.proto.AudioFrameReceived"> & {
739
+ declare class AudioFrameReceived extends Message<AudioFrameReceived> {
562
740
  /**
563
741
  * @generated from field: required livekit.proto.OwnedAudioFrameBuffer frame = 1;
564
742
  */
565
743
  frame?: OwnedAudioFrameBuffer;
566
- };
567
- /**
568
- * Describes the message livekit.proto.AudioFrameReceived.
569
- * Use `create(AudioFrameReceivedSchema)` to create a new message.
570
- */
571
- declare const AudioFrameReceivedSchema: GenMessage<AudioFrameReceived>;
744
+ constructor(data?: PartialMessage<AudioFrameReceived>);
745
+ static readonly runtime: typeof proto2;
746
+ static readonly typeName = "livekit.proto.AudioFrameReceived";
747
+ static readonly fields: FieldList;
748
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioFrameReceived;
749
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioFrameReceived;
750
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioFrameReceived;
751
+ static equals(a: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined, b: AudioFrameReceived | PlainMessage<AudioFrameReceived> | undefined): boolean;
752
+ }
572
753
  /**
573
754
  * @generated from message livekit.proto.AudioStreamEOS
574
755
  */
575
- type AudioStreamEOS = Message<"livekit.proto.AudioStreamEOS"> & {};
576
- /**
577
- * Describes the message livekit.proto.AudioStreamEOS.
578
- * Use `create(AudioStreamEOSSchema)` to create a new message.
579
- */
580
- declare const AudioStreamEOSSchema: GenMessage<AudioStreamEOS>;
756
+ declare class AudioStreamEOS extends Message<AudioStreamEOS> {
757
+ constructor(data?: PartialMessage<AudioStreamEOS>);
758
+ static readonly runtime: typeof proto2;
759
+ static readonly typeName = "livekit.proto.AudioStreamEOS";
760
+ static readonly fields: FieldList;
761
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamEOS;
762
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioStreamEOS;
763
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioStreamEOS;
764
+ static equals(a: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined, b: AudioStreamEOS | PlainMessage<AudioStreamEOS> | undefined): boolean;
765
+ }
581
766
  /**
582
767
  * @generated from message livekit.proto.AudioSourceOptions
583
768
  */
584
- type AudioSourceOptions = Message<"livekit.proto.AudioSourceOptions"> & {
769
+ declare class AudioSourceOptions extends Message<AudioSourceOptions> {
585
770
  /**
586
771
  * @generated from field: required bool echo_cancellation = 1;
587
772
  */
588
- echoCancellation: boolean;
773
+ echoCancellation?: boolean;
589
774
  /**
590
775
  * @generated from field: required bool noise_suppression = 2;
591
776
  */
592
- noiseSuppression: boolean;
777
+ noiseSuppression?: boolean;
593
778
  /**
594
779
  * @generated from field: required bool auto_gain_control = 3;
595
780
  */
596
- autoGainControl: boolean;
597
- };
598
- /**
599
- * Describes the message livekit.proto.AudioSourceOptions.
600
- * Use `create(AudioSourceOptionsSchema)` to create a new message.
601
- */
602
- declare const AudioSourceOptionsSchema: GenMessage<AudioSourceOptions>;
781
+ autoGainControl?: boolean;
782
+ constructor(data?: PartialMessage<AudioSourceOptions>);
783
+ static readonly runtime: typeof proto2;
784
+ static readonly typeName = "livekit.proto.AudioSourceOptions";
785
+ static readonly fields: FieldList;
786
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceOptions;
787
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceOptions;
788
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceOptions;
789
+ static equals(a: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined, b: AudioSourceOptions | PlainMessage<AudioSourceOptions> | undefined): boolean;
790
+ }
603
791
  /**
604
792
  * @generated from message livekit.proto.AudioSourceInfo
605
793
  */
606
- type AudioSourceInfo = Message<"livekit.proto.AudioSourceInfo"> & {
794
+ declare class AudioSourceInfo extends Message<AudioSourceInfo> {
607
795
  /**
608
796
  * @generated from field: required livekit.proto.AudioSourceType type = 2;
609
797
  */
610
- type: AudioSourceType;
611
- };
612
- /**
613
- * Describes the message livekit.proto.AudioSourceInfo.
614
- * Use `create(AudioSourceInfoSchema)` to create a new message.
615
- */
616
- declare const AudioSourceInfoSchema: GenMessage<AudioSourceInfo>;
798
+ type?: AudioSourceType;
799
+ constructor(data?: PartialMessage<AudioSourceInfo>);
800
+ static readonly runtime: typeof proto2;
801
+ static readonly typeName = "livekit.proto.AudioSourceInfo";
802
+ static readonly fields: FieldList;
803
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceInfo;
804
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceInfo;
805
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceInfo;
806
+ static equals(a: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined, b: AudioSourceInfo | PlainMessage<AudioSourceInfo> | undefined): boolean;
807
+ }
617
808
  /**
618
809
  * @generated from message livekit.proto.OwnedAudioSource
619
810
  */
620
- type OwnedAudioSource = Message<"livekit.proto.OwnedAudioSource"> & {
811
+ declare class OwnedAudioSource extends Message<OwnedAudioSource> {
621
812
  /**
622
813
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
623
814
  */
@@ -626,25 +817,32 @@ type OwnedAudioSource = Message<"livekit.proto.OwnedAudioSource"> & {
626
817
  * @generated from field: required livekit.proto.AudioSourceInfo info = 2;
627
818
  */
628
819
  info?: AudioSourceInfo;
629
- };
630
- /**
631
- * Describes the message livekit.proto.OwnedAudioSource.
632
- * Use `create(OwnedAudioSourceSchema)` to create a new message.
633
- */
634
- declare const OwnedAudioSourceSchema: GenMessage<OwnedAudioSource>;
820
+ constructor(data?: PartialMessage<OwnedAudioSource>);
821
+ static readonly runtime: typeof proto2;
822
+ static readonly typeName = "livekit.proto.OwnedAudioSource";
823
+ static readonly fields: FieldList;
824
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioSource;
825
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioSource;
826
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioSource;
827
+ static equals(a: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined, b: OwnedAudioSource | PlainMessage<OwnedAudioSource> | undefined): boolean;
828
+ }
635
829
  /**
636
830
  * @generated from message livekit.proto.AudioResamplerInfo
637
831
  */
638
- type AudioResamplerInfo = Message<"livekit.proto.AudioResamplerInfo"> & {};
639
- /**
640
- * Describes the message livekit.proto.AudioResamplerInfo.
641
- * Use `create(AudioResamplerInfoSchema)` to create a new message.
642
- */
643
- declare const AudioResamplerInfoSchema: GenMessage<AudioResamplerInfo>;
832
+ declare class AudioResamplerInfo extends Message<AudioResamplerInfo> {
833
+ constructor(data?: PartialMessage<AudioResamplerInfo>);
834
+ static readonly runtime: typeof proto2;
835
+ static readonly typeName = "livekit.proto.AudioResamplerInfo";
836
+ static readonly fields: FieldList;
837
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioResamplerInfo;
838
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
839
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioResamplerInfo;
840
+ static equals(a: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined, b: AudioResamplerInfo | PlainMessage<AudioResamplerInfo> | undefined): boolean;
841
+ }
644
842
  /**
645
843
  * @generated from message livekit.proto.OwnedAudioResampler
646
844
  */
647
- type OwnedAudioResampler = Message<"livekit.proto.OwnedAudioResampler"> & {
845
+ declare class OwnedAudioResampler extends Message<OwnedAudioResampler> {
648
846
  /**
649
847
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
650
848
  */
@@ -653,25 +851,32 @@ type OwnedAudioResampler = Message<"livekit.proto.OwnedAudioResampler"> & {
653
851
  * @generated from field: required livekit.proto.AudioResamplerInfo info = 2;
654
852
  */
655
853
  info?: AudioResamplerInfo;
656
- };
657
- /**
658
- * Describes the message livekit.proto.OwnedAudioResampler.
659
- * Use `create(OwnedAudioResamplerSchema)` to create a new message.
660
- */
661
- declare const OwnedAudioResamplerSchema: GenMessage<OwnedAudioResampler>;
854
+ constructor(data?: PartialMessage<OwnedAudioResampler>);
855
+ static readonly runtime: typeof proto2;
856
+ static readonly typeName = "livekit.proto.OwnedAudioResampler";
857
+ static readonly fields: FieldList;
858
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedAudioResampler;
859
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
860
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedAudioResampler;
861
+ static equals(a: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined, b: OwnedAudioResampler | PlainMessage<OwnedAudioResampler> | undefined): boolean;
862
+ }
662
863
  /**
663
864
  * @generated from message livekit.proto.SoxResamplerInfo
664
865
  */
665
- type SoxResamplerInfo = Message<"livekit.proto.SoxResamplerInfo"> & {};
666
- /**
667
- * Describes the message livekit.proto.SoxResamplerInfo.
668
- * Use `create(SoxResamplerInfoSchema)` to create a new message.
669
- */
670
- declare const SoxResamplerInfoSchema: GenMessage<SoxResamplerInfo>;
866
+ declare class SoxResamplerInfo extends Message<SoxResamplerInfo> {
867
+ constructor(data?: PartialMessage<SoxResamplerInfo>);
868
+ static readonly runtime: typeof proto2;
869
+ static readonly typeName = "livekit.proto.SoxResamplerInfo";
870
+ static readonly fields: FieldList;
871
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SoxResamplerInfo;
872
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SoxResamplerInfo;
873
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SoxResamplerInfo;
874
+ static equals(a: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined, b: SoxResamplerInfo | PlainMessage<SoxResamplerInfo> | undefined): boolean;
875
+ }
671
876
  /**
672
877
  * @generated from message livekit.proto.OwnedSoxResampler
673
878
  */
674
- type OwnedSoxResampler = Message<"livekit.proto.OwnedSoxResampler"> & {
879
+ declare class OwnedSoxResampler extends Message<OwnedSoxResampler> {
675
880
  /**
676
881
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
677
882
  */
@@ -680,134 +885,14 @@ type OwnedSoxResampler = Message<"livekit.proto.OwnedSoxResampler"> & {
680
885
  * @generated from field: required livekit.proto.SoxResamplerInfo info = 2;
681
886
  */
682
887
  info?: SoxResamplerInfo;
683
- };
684
- /**
685
- * Describes the message livekit.proto.OwnedSoxResampler.
686
- * Use `create(OwnedSoxResamplerSchema)` to create a new message.
687
- */
688
- declare const OwnedSoxResamplerSchema: GenMessage<OwnedSoxResampler>;
689
- /**
690
- * @generated from enum livekit.proto.SoxResamplerDataType
691
- */
692
- declare enum SoxResamplerDataType {
693
- /**
694
- * TODO(theomonnom): support other datatypes (shouldn't really be needed)
695
- *
696
- * @generated from enum value: SOXR_DATATYPE_INT16I = 0;
697
- */
698
- SOXR_DATATYPE_INT16I = 0,
699
- /**
700
- * @generated from enum value: SOXR_DATATYPE_INT16S = 1;
701
- */
702
- SOXR_DATATYPE_INT16S = 1
703
- }
704
- /**
705
- * Describes the enum livekit.proto.SoxResamplerDataType.
706
- */
707
- declare const SoxResamplerDataTypeSchema: GenEnum<SoxResamplerDataType>;
708
- /**
709
- * @generated from enum livekit.proto.SoxQualityRecipe
710
- */
711
- declare enum SoxQualityRecipe {
712
- /**
713
- * @generated from enum value: SOXR_QUALITY_QUICK = 0;
714
- */
715
- SOXR_QUALITY_QUICK = 0,
716
- /**
717
- * @generated from enum value: SOXR_QUALITY_LOW = 1;
718
- */
719
- SOXR_QUALITY_LOW = 1,
720
- /**
721
- * @generated from enum value: SOXR_QUALITY_MEDIUM = 2;
722
- */
723
- SOXR_QUALITY_MEDIUM = 2,
724
- /**
725
- * @generated from enum value: SOXR_QUALITY_HIGH = 3;
726
- */
727
- SOXR_QUALITY_HIGH = 3,
728
- /**
729
- * @generated from enum value: SOXR_QUALITY_VERYHIGH = 4;
730
- */
731
- SOXR_QUALITY_VERYHIGH = 4
732
- }
733
- /**
734
- * Describes the enum livekit.proto.SoxQualityRecipe.
735
- */
736
- declare const SoxQualityRecipeSchema: GenEnum<SoxQualityRecipe>;
737
- /**
738
- * @generated from enum livekit.proto.SoxFlagBits
739
- */
740
- declare enum SoxFlagBits {
741
- /**
742
- * 1 << 0
743
- *
744
- * @generated from enum value: SOXR_ROLLOFF_SMALL = 0;
745
- */
746
- SOXR_ROLLOFF_SMALL = 0,
747
- /**
748
- * 1 << 1
749
- *
750
- * @generated from enum value: SOXR_ROLLOFF_MEDIUM = 1;
751
- */
752
- SOXR_ROLLOFF_MEDIUM = 1,
753
- /**
754
- * 1 << 2
755
- *
756
- * @generated from enum value: SOXR_ROLLOFF_NONE = 2;
757
- */
758
- SOXR_ROLLOFF_NONE = 2,
759
- /**
760
- * 1 << 3
761
- *
762
- * @generated from enum value: SOXR_HIGH_PREC_CLOCK = 3;
763
- */
764
- SOXR_HIGH_PREC_CLOCK = 3,
765
- /**
766
- * 1 << 4
767
- *
768
- * @generated from enum value: SOXR_DOUBLE_PRECISION = 4;
769
- */
770
- SOXR_DOUBLE_PRECISION = 4,
771
- /**
772
- * 1 << 5
773
- *
774
- * @generated from enum value: SOXR_VR = 5;
775
- */
776
- SOXR_VR = 5
777
- }
778
- /**
779
- * Describes the enum livekit.proto.SoxFlagBits.
780
- */
781
- declare const SoxFlagBitsSchema: GenEnum<SoxFlagBits>;
782
- /**
783
- * @generated from enum livekit.proto.AudioStreamType
784
- */
785
- declare enum AudioStreamType {
786
- /**
787
- * @generated from enum value: AUDIO_STREAM_NATIVE = 0;
788
- */
789
- AUDIO_STREAM_NATIVE = 0,
790
- /**
791
- * @generated from enum value: AUDIO_STREAM_HTML = 1;
792
- */
793
- AUDIO_STREAM_HTML = 1
794
- }
795
- /**
796
- * Describes the enum livekit.proto.AudioStreamType.
797
- */
798
- declare const AudioStreamTypeSchema: GenEnum<AudioStreamType>;
799
- /**
800
- * @generated from enum livekit.proto.AudioSourceType
801
- */
802
- declare enum AudioSourceType {
803
- /**
804
- * @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
805
- */
806
- AUDIO_SOURCE_NATIVE = 0
888
+ constructor(data?: PartialMessage<OwnedSoxResampler>);
889
+ static readonly runtime: typeof proto2;
890
+ static readonly typeName = "livekit.proto.OwnedSoxResampler";
891
+ static readonly fields: FieldList;
892
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedSoxResampler;
893
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
894
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedSoxResampler;
895
+ static equals(a: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined, b: OwnedSoxResampler | PlainMessage<OwnedSoxResampler> | undefined): boolean;
807
896
  }
808
- /**
809
- * Describes the enum livekit.proto.AudioSourceType.
810
- */
811
- declare const AudioSourceTypeSchema: GenEnum<AudioSourceType>;
812
897
 
813
- export { type AudioFrameBufferInfo, AudioFrameBufferInfoSchema, type AudioFrameReceived, AudioFrameReceivedSchema, type AudioResamplerInfo, AudioResamplerInfoSchema, type AudioSourceInfo, AudioSourceInfoSchema, type AudioSourceOptions, AudioSourceOptionsSchema, AudioSourceType, AudioSourceTypeSchema, type AudioStreamEOS, AudioStreamEOSSchema, type AudioStreamEvent, AudioStreamEventSchema, type AudioStreamFromParticipantRequest, AudioStreamFromParticipantRequestSchema, type AudioStreamFromParticipantResponse, AudioStreamFromParticipantResponseSchema, type AudioStreamInfo, AudioStreamInfoSchema, AudioStreamType, AudioStreamTypeSchema, type CaptureAudioFrameCallback, CaptureAudioFrameCallbackSchema, type CaptureAudioFrameRequest, CaptureAudioFrameRequestSchema, type CaptureAudioFrameResponse, CaptureAudioFrameResponseSchema, type ClearAudioBufferRequest, ClearAudioBufferRequestSchema, type ClearAudioBufferResponse, ClearAudioBufferResponseSchema, type FlushSoxResamplerRequest, FlushSoxResamplerRequestSchema, type FlushSoxResamplerResponse, FlushSoxResamplerResponseSchema, type NewAudioResamplerRequest, NewAudioResamplerRequestSchema, type NewAudioResamplerResponse, NewAudioResamplerResponseSchema, type NewAudioSourceRequest, NewAudioSourceRequestSchema, type NewAudioSourceResponse, NewAudioSourceResponseSchema, type NewAudioStreamRequest, NewAudioStreamRequestSchema, type NewAudioStreamResponse, NewAudioStreamResponseSchema, type NewSoxResamplerRequest, NewSoxResamplerRequestSchema, type NewSoxResamplerResponse, NewSoxResamplerResponseSchema, type OwnedAudioFrameBuffer, OwnedAudioFrameBufferSchema, type OwnedAudioResampler, OwnedAudioResamplerSchema, type OwnedAudioSource, OwnedAudioSourceSchema, type OwnedAudioStream, OwnedAudioStreamSchema, type OwnedSoxResampler, OwnedSoxResamplerSchema, type PushSoxResamplerRequest, PushSoxResamplerRequestSchema, type PushSoxResamplerResponse, PushSoxResamplerResponseSchema, type RemixAndResampleRequest, RemixAndResampleRequestSchema, type RemixAndResampleResponse, RemixAndResampleResponseSchema, SoxFlagBits, SoxFlagBitsSchema, SoxQualityRecipe, SoxQualityRecipeSchema, SoxResamplerDataType, SoxResamplerDataTypeSchema, type SoxResamplerInfo, SoxResamplerInfoSchema, file_audio_frame };
898
+ export { AudioFrameBufferInfo, AudioFrameReceived, AudioResamplerInfo, AudioSourceInfo, AudioSourceOptions, AudioSourceType, AudioStreamEOS, AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, AudioStreamInfo, AudioStreamType, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, OwnedAudioFrameBuffer, OwnedAudioResampler, OwnedAudioSource, OwnedAudioStream, OwnedSoxResampler, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse, SoxFlagBits, SoxQualityRecipe, SoxResamplerDataType, SoxResamplerInfo };