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