@livekit/rtc-node 0.12.1 → 0.13.0

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