@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,13 +1,223 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { Message } from "@bufbuild/protobuf";
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+
3
3
  /**
4
- * Describes the file stats.proto.
4
+ * @generated from enum livekit.proto.DataChannelState
5
+ */
6
+ declare enum DataChannelState {
7
+ /**
8
+ * @generated from enum value: DC_CONNECTING = 0;
9
+ */
10
+ DC_CONNECTING = 0,
11
+ /**
12
+ * @generated from enum value: DC_OPEN = 1;
13
+ */
14
+ DC_OPEN = 1,
15
+ /**
16
+ * @generated from enum value: DC_CLOSING = 2;
17
+ */
18
+ DC_CLOSING = 2,
19
+ /**
20
+ * @generated from enum value: DC_CLOSED = 3;
21
+ */
22
+ DC_CLOSED = 3
23
+ }
24
+ /**
25
+ * @generated from enum livekit.proto.QualityLimitationReason
26
+ */
27
+ declare enum QualityLimitationReason {
28
+ /**
29
+ * @generated from enum value: LIMITATION_NONE = 0;
30
+ */
31
+ LIMITATION_NONE = 0,
32
+ /**
33
+ * @generated from enum value: LIMITATION_CPU = 1;
34
+ */
35
+ LIMITATION_CPU = 1,
36
+ /**
37
+ * @generated from enum value: LIMITATION_BANDWIDTH = 2;
38
+ */
39
+ LIMITATION_BANDWIDTH = 2,
40
+ /**
41
+ * @generated from enum value: LIMITATION_OTHER = 3;
42
+ */
43
+ LIMITATION_OTHER = 3
44
+ }
45
+ /**
46
+ * @generated from enum livekit.proto.IceRole
47
+ */
48
+ declare enum IceRole {
49
+ /**
50
+ * @generated from enum value: ICE_UNKNOWN = 0;
51
+ */
52
+ ICE_UNKNOWN = 0,
53
+ /**
54
+ * @generated from enum value: ICE_CONTROLLING = 1;
55
+ */
56
+ ICE_CONTROLLING = 1,
57
+ /**
58
+ * @generated from enum value: ICE_CONTROLLED = 2;
59
+ */
60
+ ICE_CONTROLLED = 2
61
+ }
62
+ /**
63
+ * @generated from enum livekit.proto.DtlsTransportState
64
+ */
65
+ declare enum DtlsTransportState {
66
+ /**
67
+ * @generated from enum value: DTLS_TRANSPORT_NEW = 0;
68
+ */
69
+ DTLS_TRANSPORT_NEW = 0,
70
+ /**
71
+ * @generated from enum value: DTLS_TRANSPORT_CONNECTING = 1;
72
+ */
73
+ DTLS_TRANSPORT_CONNECTING = 1,
74
+ /**
75
+ * @generated from enum value: DTLS_TRANSPORT_CONNECTED = 2;
76
+ */
77
+ DTLS_TRANSPORT_CONNECTED = 2,
78
+ /**
79
+ * @generated from enum value: DTLS_TRANSPORT_CLOSED = 3;
80
+ */
81
+ DTLS_TRANSPORT_CLOSED = 3,
82
+ /**
83
+ * @generated from enum value: DTLS_TRANSPORT_FAILED = 4;
84
+ */
85
+ DTLS_TRANSPORT_FAILED = 4
86
+ }
87
+ /**
88
+ * @generated from enum livekit.proto.IceTransportState
89
+ */
90
+ declare enum IceTransportState {
91
+ /**
92
+ * @generated from enum value: ICE_TRANSPORT_NEW = 0;
93
+ */
94
+ ICE_TRANSPORT_NEW = 0,
95
+ /**
96
+ * @generated from enum value: ICE_TRANSPORT_CHECKING = 1;
97
+ */
98
+ ICE_TRANSPORT_CHECKING = 1,
99
+ /**
100
+ * @generated from enum value: ICE_TRANSPORT_CONNECTED = 2;
101
+ */
102
+ ICE_TRANSPORT_CONNECTED = 2,
103
+ /**
104
+ * @generated from enum value: ICE_TRANSPORT_COMPLETED = 3;
105
+ */
106
+ ICE_TRANSPORT_COMPLETED = 3,
107
+ /**
108
+ * @generated from enum value: ICE_TRANSPORT_DISCONNECTED = 4;
109
+ */
110
+ ICE_TRANSPORT_DISCONNECTED = 4,
111
+ /**
112
+ * @generated from enum value: ICE_TRANSPORT_FAILED = 5;
113
+ */
114
+ ICE_TRANSPORT_FAILED = 5,
115
+ /**
116
+ * @generated from enum value: ICE_TRANSPORT_CLOSED = 6;
117
+ */
118
+ ICE_TRANSPORT_CLOSED = 6
119
+ }
120
+ /**
121
+ * @generated from enum livekit.proto.DtlsRole
122
+ */
123
+ declare enum DtlsRole {
124
+ /**
125
+ * @generated from enum value: DTLS_CLIENT = 0;
126
+ */
127
+ DTLS_CLIENT = 0,
128
+ /**
129
+ * @generated from enum value: DTLS_SERVER = 1;
130
+ */
131
+ DTLS_SERVER = 1,
132
+ /**
133
+ * @generated from enum value: DTLS_UNKNOWN = 2;
134
+ */
135
+ DTLS_UNKNOWN = 2
136
+ }
137
+ /**
138
+ * @generated from enum livekit.proto.IceCandidatePairState
139
+ */
140
+ declare enum IceCandidatePairState {
141
+ /**
142
+ * @generated from enum value: PAIR_FROZEN = 0;
143
+ */
144
+ PAIR_FROZEN = 0,
145
+ /**
146
+ * @generated from enum value: PAIR_WAITING = 1;
147
+ */
148
+ PAIR_WAITING = 1,
149
+ /**
150
+ * @generated from enum value: PAIR_IN_PROGRESS = 2;
151
+ */
152
+ PAIR_IN_PROGRESS = 2,
153
+ /**
154
+ * @generated from enum value: PAIR_FAILED = 3;
155
+ */
156
+ PAIR_FAILED = 3,
157
+ /**
158
+ * @generated from enum value: PAIR_SUCCEEDED = 4;
159
+ */
160
+ PAIR_SUCCEEDED = 4
161
+ }
162
+ /**
163
+ * @generated from enum livekit.proto.IceCandidateType
164
+ */
165
+ declare enum IceCandidateType {
166
+ /**
167
+ * @generated from enum value: HOST = 0;
168
+ */
169
+ HOST = 0,
170
+ /**
171
+ * @generated from enum value: SRFLX = 1;
172
+ */
173
+ SRFLX = 1,
174
+ /**
175
+ * @generated from enum value: PRFLX = 2;
176
+ */
177
+ PRFLX = 2,
178
+ /**
179
+ * @generated from enum value: RELAY = 3;
180
+ */
181
+ RELAY = 3
182
+ }
183
+ /**
184
+ * @generated from enum livekit.proto.IceServerTransportProtocol
185
+ */
186
+ declare enum IceServerTransportProtocol {
187
+ /**
188
+ * @generated from enum value: TRANSPORT_UDP = 0;
189
+ */
190
+ TRANSPORT_UDP = 0,
191
+ /**
192
+ * @generated from enum value: TRANSPORT_TCP = 1;
193
+ */
194
+ TRANSPORT_TCP = 1,
195
+ /**
196
+ * @generated from enum value: TRANSPORT_TLS = 2;
197
+ */
198
+ TRANSPORT_TLS = 2
199
+ }
200
+ /**
201
+ * @generated from enum livekit.proto.IceTcpCandidateType
5
202
  */
6
- export declare const file_stats: GenFile;
203
+ declare enum IceTcpCandidateType {
204
+ /**
205
+ * @generated from enum value: CANDIDATE_ACTIVE = 0;
206
+ */
207
+ CANDIDATE_ACTIVE = 0,
208
+ /**
209
+ * @generated from enum value: CANDIDATE_PASSIVE = 1;
210
+ */
211
+ CANDIDATE_PASSIVE = 1,
212
+ /**
213
+ * @generated from enum value: CANDIDATE_SO = 2;
214
+ */
215
+ CANDIDATE_SO = 2
216
+ }
7
217
  /**
8
218
  * @generated from message livekit.proto.RtcStats
9
219
  */
10
- export type RtcStats = Message<"livekit.proto.RtcStats"> & {
220
+ declare class RtcStats extends Message<RtcStats> {
11
221
  /**
12
222
  * @generated from oneof livekit.proto.RtcStats.stats
13
223
  */
@@ -97,7 +307,13 @@ export type RtcStats = Message<"livekit.proto.RtcStats"> & {
97
307
  case: "certificate";
98
308
  } | {
99
309
  /**
100
- * @generated from field: livekit.proto.RtcStats.Track track = 17;
310
+ * @generated from field: livekit.proto.RtcStats.Stream stream = 17;
311
+ */
312
+ value: RtcStats_Stream;
313
+ case: "stream";
314
+ } | {
315
+ /**
316
+ * @generated from field: livekit.proto.RtcStats.Track track = 18;
101
317
  */
102
318
  value: RtcStats_Track;
103
319
  case: "track";
@@ -105,16 +321,19 @@ export type RtcStats = Message<"livekit.proto.RtcStats"> & {
105
321
  case: undefined;
106
322
  value?: undefined;
107
323
  };
108
- };
109
- /**
110
- * Describes the message livekit.proto.RtcStats.
111
- * Use `create(RtcStatsSchema)` to create a new message.
112
- */
113
- export declare const RtcStatsSchema: GenMessage<RtcStats>;
324
+ constructor(data?: PartialMessage<RtcStats>);
325
+ static readonly runtime: typeof proto2;
326
+ static readonly typeName = "livekit.proto.RtcStats";
327
+ static readonly fields: FieldList;
328
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats;
329
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats;
330
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats;
331
+ static equals(a: RtcStats | PlainMessage<RtcStats> | undefined, b: RtcStats | PlainMessage<RtcStats> | undefined): boolean;
332
+ }
114
333
  /**
115
334
  * @generated from message livekit.proto.RtcStats.Codec
116
335
  */
117
- export type RtcStats_Codec = Message<"livekit.proto.RtcStats.Codec"> & {
336
+ declare class RtcStats_Codec extends Message<RtcStats_Codec> {
118
337
  /**
119
338
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
120
339
  */
@@ -123,16 +342,19 @@ export type RtcStats_Codec = Message<"livekit.proto.RtcStats.Codec"> & {
123
342
  * @generated from field: required livekit.proto.CodecStats codec = 2;
124
343
  */
125
344
  codec?: CodecStats;
126
- };
127
- /**
128
- * Describes the message livekit.proto.RtcStats.Codec.
129
- * Use `create(RtcStats_CodecSchema)` to create a new message.
130
- */
131
- export declare const RtcStats_CodecSchema: GenMessage<RtcStats_Codec>;
345
+ constructor(data?: PartialMessage<RtcStats_Codec>);
346
+ static readonly runtime: typeof proto2;
347
+ static readonly typeName = "livekit.proto.RtcStats.Codec";
348
+ static readonly fields: FieldList;
349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_Codec;
350
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_Codec;
351
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_Codec;
352
+ static equals(a: RtcStats_Codec | PlainMessage<RtcStats_Codec> | undefined, b: RtcStats_Codec | PlainMessage<RtcStats_Codec> | undefined): boolean;
353
+ }
132
354
  /**
133
355
  * @generated from message livekit.proto.RtcStats.InboundRtp
134
356
  */
135
- export type RtcStats_InboundRtp = Message<"livekit.proto.RtcStats.InboundRtp"> & {
357
+ declare class RtcStats_InboundRtp extends Message<RtcStats_InboundRtp> {
136
358
  /**
137
359
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
138
360
  */
@@ -149,16 +371,19 @@ export type RtcStats_InboundRtp = Message<"livekit.proto.RtcStats.InboundRtp"> &
149
371
  * @generated from field: required livekit.proto.InboundRtpStreamStats inbound = 4;
150
372
  */
151
373
  inbound?: InboundRtpStreamStats;
152
- };
153
- /**
154
- * Describes the message livekit.proto.RtcStats.InboundRtp.
155
- * Use `create(RtcStats_InboundRtpSchema)` to create a new message.
156
- */
157
- export declare const RtcStats_InboundRtpSchema: GenMessage<RtcStats_InboundRtp>;
374
+ constructor(data?: PartialMessage<RtcStats_InboundRtp>);
375
+ static readonly runtime: typeof proto2;
376
+ static readonly typeName = "livekit.proto.RtcStats.InboundRtp";
377
+ static readonly fields: FieldList;
378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_InboundRtp;
379
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_InboundRtp;
380
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_InboundRtp;
381
+ static equals(a: RtcStats_InboundRtp | PlainMessage<RtcStats_InboundRtp> | undefined, b: RtcStats_InboundRtp | PlainMessage<RtcStats_InboundRtp> | undefined): boolean;
382
+ }
158
383
  /**
159
384
  * @generated from message livekit.proto.RtcStats.OutboundRtp
160
385
  */
161
- export type RtcStats_OutboundRtp = Message<"livekit.proto.RtcStats.OutboundRtp"> & {
386
+ declare class RtcStats_OutboundRtp extends Message<RtcStats_OutboundRtp> {
162
387
  /**
163
388
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
164
389
  */
@@ -175,16 +400,19 @@ export type RtcStats_OutboundRtp = Message<"livekit.proto.RtcStats.OutboundRtp">
175
400
  * @generated from field: required livekit.proto.OutboundRtpStreamStats outbound = 4;
176
401
  */
177
402
  outbound?: OutboundRtpStreamStats;
178
- };
179
- /**
180
- * Describes the message livekit.proto.RtcStats.OutboundRtp.
181
- * Use `create(RtcStats_OutboundRtpSchema)` to create a new message.
182
- */
183
- export declare const RtcStats_OutboundRtpSchema: GenMessage<RtcStats_OutboundRtp>;
403
+ constructor(data?: PartialMessage<RtcStats_OutboundRtp>);
404
+ static readonly runtime: typeof proto2;
405
+ static readonly typeName = "livekit.proto.RtcStats.OutboundRtp";
406
+ static readonly fields: FieldList;
407
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_OutboundRtp;
408
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_OutboundRtp;
409
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_OutboundRtp;
410
+ static equals(a: RtcStats_OutboundRtp | PlainMessage<RtcStats_OutboundRtp> | undefined, b: RtcStats_OutboundRtp | PlainMessage<RtcStats_OutboundRtp> | undefined): boolean;
411
+ }
184
412
  /**
185
413
  * @generated from message livekit.proto.RtcStats.RemoteInboundRtp
186
414
  */
187
- export type RtcStats_RemoteInboundRtp = Message<"livekit.proto.RtcStats.RemoteInboundRtp"> & {
415
+ declare class RtcStats_RemoteInboundRtp extends Message<RtcStats_RemoteInboundRtp> {
188
416
  /**
189
417
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
190
418
  */
@@ -201,16 +429,19 @@ export type RtcStats_RemoteInboundRtp = Message<"livekit.proto.RtcStats.RemoteIn
201
429
  * @generated from field: required livekit.proto.RemoteInboundRtpStreamStats remote_inbound = 4;
202
430
  */
203
431
  remoteInbound?: RemoteInboundRtpStreamStats;
204
- };
205
- /**
206
- * Describes the message livekit.proto.RtcStats.RemoteInboundRtp.
207
- * Use `create(RtcStats_RemoteInboundRtpSchema)` to create a new message.
208
- */
209
- export declare const RtcStats_RemoteInboundRtpSchema: GenMessage<RtcStats_RemoteInboundRtp>;
432
+ constructor(data?: PartialMessage<RtcStats_RemoteInboundRtp>);
433
+ static readonly runtime: typeof proto2;
434
+ static readonly typeName = "livekit.proto.RtcStats.RemoteInboundRtp";
435
+ static readonly fields: FieldList;
436
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_RemoteInboundRtp;
437
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_RemoteInboundRtp;
438
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_RemoteInboundRtp;
439
+ static equals(a: RtcStats_RemoteInboundRtp | PlainMessage<RtcStats_RemoteInboundRtp> | undefined, b: RtcStats_RemoteInboundRtp | PlainMessage<RtcStats_RemoteInboundRtp> | undefined): boolean;
440
+ }
210
441
  /**
211
442
  * @generated from message livekit.proto.RtcStats.RemoteOutboundRtp
212
443
  */
213
- export type RtcStats_RemoteOutboundRtp = Message<"livekit.proto.RtcStats.RemoteOutboundRtp"> & {
444
+ declare class RtcStats_RemoteOutboundRtp extends Message<RtcStats_RemoteOutboundRtp> {
214
445
  /**
215
446
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
216
447
  */
@@ -227,16 +458,19 @@ export type RtcStats_RemoteOutboundRtp = Message<"livekit.proto.RtcStats.RemoteO
227
458
  * @generated from field: required livekit.proto.RemoteOutboundRtpStreamStats remote_outbound = 4;
228
459
  */
229
460
  remoteOutbound?: RemoteOutboundRtpStreamStats;
230
- };
231
- /**
232
- * Describes the message livekit.proto.RtcStats.RemoteOutboundRtp.
233
- * Use `create(RtcStats_RemoteOutboundRtpSchema)` to create a new message.
234
- */
235
- export declare const RtcStats_RemoteOutboundRtpSchema: GenMessage<RtcStats_RemoteOutboundRtp>;
461
+ constructor(data?: PartialMessage<RtcStats_RemoteOutboundRtp>);
462
+ static readonly runtime: typeof proto2;
463
+ static readonly typeName = "livekit.proto.RtcStats.RemoteOutboundRtp";
464
+ static readonly fields: FieldList;
465
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_RemoteOutboundRtp;
466
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_RemoteOutboundRtp;
467
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_RemoteOutboundRtp;
468
+ static equals(a: RtcStats_RemoteOutboundRtp | PlainMessage<RtcStats_RemoteOutboundRtp> | undefined, b: RtcStats_RemoteOutboundRtp | PlainMessage<RtcStats_RemoteOutboundRtp> | undefined): boolean;
469
+ }
236
470
  /**
237
471
  * @generated from message livekit.proto.RtcStats.MediaSource
238
472
  */
239
- export type RtcStats_MediaSource = Message<"livekit.proto.RtcStats.MediaSource"> & {
473
+ declare class RtcStats_MediaSource extends Message<RtcStats_MediaSource> {
240
474
  /**
241
475
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
242
476
  */
@@ -253,16 +487,19 @@ export type RtcStats_MediaSource = Message<"livekit.proto.RtcStats.MediaSource">
253
487
  * @generated from field: required livekit.proto.VideoSourceStats video = 4;
254
488
  */
255
489
  video?: VideoSourceStats;
256
- };
257
- /**
258
- * Describes the message livekit.proto.RtcStats.MediaSource.
259
- * Use `create(RtcStats_MediaSourceSchema)` to create a new message.
260
- */
261
- export declare const RtcStats_MediaSourceSchema: GenMessage<RtcStats_MediaSource>;
490
+ constructor(data?: PartialMessage<RtcStats_MediaSource>);
491
+ static readonly runtime: typeof proto2;
492
+ static readonly typeName = "livekit.proto.RtcStats.MediaSource";
493
+ static readonly fields: FieldList;
494
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_MediaSource;
495
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_MediaSource;
496
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_MediaSource;
497
+ static equals(a: RtcStats_MediaSource | PlainMessage<RtcStats_MediaSource> | undefined, b: RtcStats_MediaSource | PlainMessage<RtcStats_MediaSource> | undefined): boolean;
498
+ }
262
499
  /**
263
500
  * @generated from message livekit.proto.RtcStats.MediaPlayout
264
501
  */
265
- export type RtcStats_MediaPlayout = Message<"livekit.proto.RtcStats.MediaPlayout"> & {
502
+ declare class RtcStats_MediaPlayout extends Message<RtcStats_MediaPlayout> {
266
503
  /**
267
504
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
268
505
  */
@@ -271,16 +508,19 @@ export type RtcStats_MediaPlayout = Message<"livekit.proto.RtcStats.MediaPlayout
271
508
  * @generated from field: required livekit.proto.AudioPlayoutStats audio_playout = 2;
272
509
  */
273
510
  audioPlayout?: AudioPlayoutStats;
274
- };
275
- /**
276
- * Describes the message livekit.proto.RtcStats.MediaPlayout.
277
- * Use `create(RtcStats_MediaPlayoutSchema)` to create a new message.
278
- */
279
- export declare const RtcStats_MediaPlayoutSchema: GenMessage<RtcStats_MediaPlayout>;
511
+ constructor(data?: PartialMessage<RtcStats_MediaPlayout>);
512
+ static readonly runtime: typeof proto2;
513
+ static readonly typeName = "livekit.proto.RtcStats.MediaPlayout";
514
+ static readonly fields: FieldList;
515
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_MediaPlayout;
516
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_MediaPlayout;
517
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_MediaPlayout;
518
+ static equals(a: RtcStats_MediaPlayout | PlainMessage<RtcStats_MediaPlayout> | undefined, b: RtcStats_MediaPlayout | PlainMessage<RtcStats_MediaPlayout> | undefined): boolean;
519
+ }
280
520
  /**
281
521
  * @generated from message livekit.proto.RtcStats.PeerConnection
282
522
  */
283
- export type RtcStats_PeerConnection = Message<"livekit.proto.RtcStats.PeerConnection"> & {
523
+ declare class RtcStats_PeerConnection extends Message<RtcStats_PeerConnection> {
284
524
  /**
285
525
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
286
526
  */
@@ -289,16 +529,19 @@ export type RtcStats_PeerConnection = Message<"livekit.proto.RtcStats.PeerConnec
289
529
  * @generated from field: required livekit.proto.PeerConnectionStats pc = 2;
290
530
  */
291
531
  pc?: PeerConnectionStats;
292
- };
293
- /**
294
- * Describes the message livekit.proto.RtcStats.PeerConnection.
295
- * Use `create(RtcStats_PeerConnectionSchema)` to create a new message.
296
- */
297
- export declare const RtcStats_PeerConnectionSchema: GenMessage<RtcStats_PeerConnection>;
532
+ constructor(data?: PartialMessage<RtcStats_PeerConnection>);
533
+ static readonly runtime: typeof proto2;
534
+ static readonly typeName = "livekit.proto.RtcStats.PeerConnection";
535
+ static readonly fields: FieldList;
536
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_PeerConnection;
537
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_PeerConnection;
538
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_PeerConnection;
539
+ static equals(a: RtcStats_PeerConnection | PlainMessage<RtcStats_PeerConnection> | undefined, b: RtcStats_PeerConnection | PlainMessage<RtcStats_PeerConnection> | undefined): boolean;
540
+ }
298
541
  /**
299
542
  * @generated from message livekit.proto.RtcStats.DataChannel
300
543
  */
301
- export type RtcStats_DataChannel = Message<"livekit.proto.RtcStats.DataChannel"> & {
544
+ declare class RtcStats_DataChannel extends Message<RtcStats_DataChannel> {
302
545
  /**
303
546
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
304
547
  */
@@ -307,16 +550,19 @@ export type RtcStats_DataChannel = Message<"livekit.proto.RtcStats.DataChannel">
307
550
  * @generated from field: required livekit.proto.DataChannelStats dc = 2;
308
551
  */
309
552
  dc?: DataChannelStats;
310
- };
311
- /**
312
- * Describes the message livekit.proto.RtcStats.DataChannel.
313
- * Use `create(RtcStats_DataChannelSchema)` to create a new message.
314
- */
315
- export declare const RtcStats_DataChannelSchema: GenMessage<RtcStats_DataChannel>;
553
+ constructor(data?: PartialMessage<RtcStats_DataChannel>);
554
+ static readonly runtime: typeof proto2;
555
+ static readonly typeName = "livekit.proto.RtcStats.DataChannel";
556
+ static readonly fields: FieldList;
557
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_DataChannel;
558
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_DataChannel;
559
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_DataChannel;
560
+ static equals(a: RtcStats_DataChannel | PlainMessage<RtcStats_DataChannel> | undefined, b: RtcStats_DataChannel | PlainMessage<RtcStats_DataChannel> | undefined): boolean;
561
+ }
316
562
  /**
317
563
  * @generated from message livekit.proto.RtcStats.Transport
318
564
  */
319
- export type RtcStats_Transport = Message<"livekit.proto.RtcStats.Transport"> & {
565
+ declare class RtcStats_Transport extends Message<RtcStats_Transport> {
320
566
  /**
321
567
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
322
568
  */
@@ -325,16 +571,19 @@ export type RtcStats_Transport = Message<"livekit.proto.RtcStats.Transport"> & {
325
571
  * @generated from field: required livekit.proto.TransportStats transport = 2;
326
572
  */
327
573
  transport?: TransportStats;
328
- };
329
- /**
330
- * Describes the message livekit.proto.RtcStats.Transport.
331
- * Use `create(RtcStats_TransportSchema)` to create a new message.
332
- */
333
- export declare const RtcStats_TransportSchema: GenMessage<RtcStats_Transport>;
574
+ constructor(data?: PartialMessage<RtcStats_Transport>);
575
+ static readonly runtime: typeof proto2;
576
+ static readonly typeName = "livekit.proto.RtcStats.Transport";
577
+ static readonly fields: FieldList;
578
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_Transport;
579
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_Transport;
580
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_Transport;
581
+ static equals(a: RtcStats_Transport | PlainMessage<RtcStats_Transport> | undefined, b: RtcStats_Transport | PlainMessage<RtcStats_Transport> | undefined): boolean;
582
+ }
334
583
  /**
335
584
  * @generated from message livekit.proto.RtcStats.CandidatePair
336
585
  */
337
- export type RtcStats_CandidatePair = Message<"livekit.proto.RtcStats.CandidatePair"> & {
586
+ declare class RtcStats_CandidatePair extends Message<RtcStats_CandidatePair> {
338
587
  /**
339
588
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
340
589
  */
@@ -343,16 +592,19 @@ export type RtcStats_CandidatePair = Message<"livekit.proto.RtcStats.CandidatePa
343
592
  * @generated from field: required livekit.proto.CandidatePairStats candidate_pair = 2;
344
593
  */
345
594
  candidatePair?: CandidatePairStats;
346
- };
347
- /**
348
- * Describes the message livekit.proto.RtcStats.CandidatePair.
349
- * Use `create(RtcStats_CandidatePairSchema)` to create a new message.
350
- */
351
- export declare const RtcStats_CandidatePairSchema: GenMessage<RtcStats_CandidatePair>;
595
+ constructor(data?: PartialMessage<RtcStats_CandidatePair>);
596
+ static readonly runtime: typeof proto2;
597
+ static readonly typeName = "livekit.proto.RtcStats.CandidatePair";
598
+ static readonly fields: FieldList;
599
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_CandidatePair;
600
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_CandidatePair;
601
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_CandidatePair;
602
+ static equals(a: RtcStats_CandidatePair | PlainMessage<RtcStats_CandidatePair> | undefined, b: RtcStats_CandidatePair | PlainMessage<RtcStats_CandidatePair> | undefined): boolean;
603
+ }
352
604
  /**
353
605
  * @generated from message livekit.proto.RtcStats.LocalCandidate
354
606
  */
355
- export type RtcStats_LocalCandidate = Message<"livekit.proto.RtcStats.LocalCandidate"> & {
607
+ declare class RtcStats_LocalCandidate extends Message<RtcStats_LocalCandidate> {
356
608
  /**
357
609
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
358
610
  */
@@ -361,16 +613,19 @@ export type RtcStats_LocalCandidate = Message<"livekit.proto.RtcStats.LocalCandi
361
613
  * @generated from field: required livekit.proto.IceCandidateStats candidate = 2;
362
614
  */
363
615
  candidate?: IceCandidateStats;
364
- };
365
- /**
366
- * Describes the message livekit.proto.RtcStats.LocalCandidate.
367
- * Use `create(RtcStats_LocalCandidateSchema)` to create a new message.
368
- */
369
- export declare const RtcStats_LocalCandidateSchema: GenMessage<RtcStats_LocalCandidate>;
616
+ constructor(data?: PartialMessage<RtcStats_LocalCandidate>);
617
+ static readonly runtime: typeof proto2;
618
+ static readonly typeName = "livekit.proto.RtcStats.LocalCandidate";
619
+ static readonly fields: FieldList;
620
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_LocalCandidate;
621
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_LocalCandidate;
622
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_LocalCandidate;
623
+ static equals(a: RtcStats_LocalCandidate | PlainMessage<RtcStats_LocalCandidate> | undefined, b: RtcStats_LocalCandidate | PlainMessage<RtcStats_LocalCandidate> | undefined): boolean;
624
+ }
370
625
  /**
371
626
  * @generated from message livekit.proto.RtcStats.RemoteCandidate
372
627
  */
373
- export type RtcStats_RemoteCandidate = Message<"livekit.proto.RtcStats.RemoteCandidate"> & {
628
+ declare class RtcStats_RemoteCandidate extends Message<RtcStats_RemoteCandidate> {
374
629
  /**
375
630
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
376
631
  */
@@ -379,16 +634,19 @@ export type RtcStats_RemoteCandidate = Message<"livekit.proto.RtcStats.RemoteCan
379
634
  * @generated from field: required livekit.proto.IceCandidateStats candidate = 2;
380
635
  */
381
636
  candidate?: IceCandidateStats;
382
- };
383
- /**
384
- * Describes the message livekit.proto.RtcStats.RemoteCandidate.
385
- * Use `create(RtcStats_RemoteCandidateSchema)` to create a new message.
386
- */
387
- export declare const RtcStats_RemoteCandidateSchema: GenMessage<RtcStats_RemoteCandidate>;
637
+ constructor(data?: PartialMessage<RtcStats_RemoteCandidate>);
638
+ static readonly runtime: typeof proto2;
639
+ static readonly typeName = "livekit.proto.RtcStats.RemoteCandidate";
640
+ static readonly fields: FieldList;
641
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_RemoteCandidate;
642
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_RemoteCandidate;
643
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_RemoteCandidate;
644
+ static equals(a: RtcStats_RemoteCandidate | PlainMessage<RtcStats_RemoteCandidate> | undefined, b: RtcStats_RemoteCandidate | PlainMessage<RtcStats_RemoteCandidate> | undefined): boolean;
645
+ }
388
646
  /**
389
647
  * @generated from message livekit.proto.RtcStats.Certificate
390
648
  */
391
- export type RtcStats_Certificate = Message<"livekit.proto.RtcStats.Certificate"> & {
649
+ declare class RtcStats_Certificate extends Message<RtcStats_Certificate> {
392
650
  /**
393
651
  * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
394
652
  */
@@ -397,451 +655,497 @@ export type RtcStats_Certificate = Message<"livekit.proto.RtcStats.Certificate">
397
655
  * @generated from field: required livekit.proto.CertificateStats certificate = 2;
398
656
  */
399
657
  certificate?: CertificateStats;
400
- };
658
+ constructor(data?: PartialMessage<RtcStats_Certificate>);
659
+ static readonly runtime: typeof proto2;
660
+ static readonly typeName = "livekit.proto.RtcStats.Certificate";
661
+ static readonly fields: FieldList;
662
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_Certificate;
663
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_Certificate;
664
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_Certificate;
665
+ static equals(a: RtcStats_Certificate | PlainMessage<RtcStats_Certificate> | undefined, b: RtcStats_Certificate | PlainMessage<RtcStats_Certificate> | undefined): boolean;
666
+ }
401
667
  /**
402
- * Describes the message livekit.proto.RtcStats.Certificate.
403
- * Use `create(RtcStats_CertificateSchema)` to create a new message.
668
+ * @generated from message livekit.proto.RtcStats.Stream
404
669
  */
405
- export declare const RtcStats_CertificateSchema: GenMessage<RtcStats_Certificate>;
670
+ declare class RtcStats_Stream extends Message<RtcStats_Stream> {
671
+ /**
672
+ * @generated from field: required livekit.proto.RtcStatsData rtc = 1;
673
+ */
674
+ rtc?: RtcStatsData;
675
+ /**
676
+ * @generated from field: required livekit.proto.StreamStats stream = 2;
677
+ */
678
+ stream?: StreamStats;
679
+ constructor(data?: PartialMessage<RtcStats_Stream>);
680
+ static readonly runtime: typeof proto2;
681
+ static readonly typeName = "livekit.proto.RtcStats.Stream";
682
+ static readonly fields: FieldList;
683
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_Stream;
684
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_Stream;
685
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_Stream;
686
+ static equals(a: RtcStats_Stream | PlainMessage<RtcStats_Stream> | undefined, b: RtcStats_Stream | PlainMessage<RtcStats_Stream> | undefined): boolean;
687
+ }
406
688
  /**
407
689
  * Deprecated
408
690
  *
409
691
  * @generated from message livekit.proto.RtcStats.Track
410
692
  */
411
- export type RtcStats_Track = Message<"livekit.proto.RtcStats.Track"> & {};
412
- /**
413
- * Describes the message livekit.proto.RtcStats.Track.
414
- * Use `create(RtcStats_TrackSchema)` to create a new message.
415
- */
416
- export declare const RtcStats_TrackSchema: GenMessage<RtcStats_Track>;
693
+ declare class RtcStats_Track extends Message<RtcStats_Track> {
694
+ constructor(data?: PartialMessage<RtcStats_Track>);
695
+ static readonly runtime: typeof proto2;
696
+ static readonly typeName = "livekit.proto.RtcStats.Track";
697
+ static readonly fields: FieldList;
698
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStats_Track;
699
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStats_Track;
700
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStats_Track;
701
+ static equals(a: RtcStats_Track | PlainMessage<RtcStats_Track> | undefined, b: RtcStats_Track | PlainMessage<RtcStats_Track> | undefined): boolean;
702
+ }
417
703
  /**
418
704
  * @generated from message livekit.proto.RtcStatsData
419
705
  */
420
- export type RtcStatsData = Message<"livekit.proto.RtcStatsData"> & {
706
+ declare class RtcStatsData extends Message<RtcStatsData> {
421
707
  /**
422
708
  * @generated from field: required string id = 1;
423
709
  */
424
- id: string;
710
+ id?: string;
425
711
  /**
426
712
  * @generated from field: required int64 timestamp = 2;
427
713
  */
428
- timestamp: bigint;
429
- };
430
- /**
431
- * Describes the message livekit.proto.RtcStatsData.
432
- * Use `create(RtcStatsDataSchema)` to create a new message.
433
- */
434
- export declare const RtcStatsDataSchema: GenMessage<RtcStatsData>;
714
+ timestamp?: bigint;
715
+ constructor(data?: PartialMessage<RtcStatsData>);
716
+ static readonly runtime: typeof proto2;
717
+ static readonly typeName = "livekit.proto.RtcStatsData";
718
+ static readonly fields: FieldList;
719
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcStatsData;
720
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcStatsData;
721
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcStatsData;
722
+ static equals(a: RtcStatsData | PlainMessage<RtcStatsData> | undefined, b: RtcStatsData | PlainMessage<RtcStatsData> | undefined): boolean;
723
+ }
435
724
  /**
436
725
  * @generated from message livekit.proto.CodecStats
437
726
  */
438
- export type CodecStats = Message<"livekit.proto.CodecStats"> & {
727
+ declare class CodecStats extends Message<CodecStats> {
439
728
  /**
440
729
  * @generated from field: required uint32 payload_type = 1;
441
730
  */
442
- payloadType: number;
731
+ payloadType?: number;
443
732
  /**
444
733
  * @generated from field: required string transport_id = 2;
445
734
  */
446
- transportId: string;
735
+ transportId?: string;
447
736
  /**
448
737
  * @generated from field: required string mime_type = 3;
449
738
  */
450
- mimeType: string;
739
+ mimeType?: string;
451
740
  /**
452
741
  * @generated from field: required uint32 clock_rate = 4;
453
742
  */
454
- clockRate: number;
743
+ clockRate?: number;
455
744
  /**
456
745
  * @generated from field: required uint32 channels = 5;
457
746
  */
458
- channels: number;
747
+ channels?: number;
459
748
  /**
460
749
  * @generated from field: required string sdp_fmtp_line = 6;
461
750
  */
462
- sdpFmtpLine: string;
463
- };
464
- /**
465
- * Describes the message livekit.proto.CodecStats.
466
- * Use `create(CodecStatsSchema)` to create a new message.
467
- */
468
- export declare const CodecStatsSchema: GenMessage<CodecStats>;
751
+ sdpFmtpLine?: string;
752
+ constructor(data?: PartialMessage<CodecStats>);
753
+ static readonly runtime: typeof proto2;
754
+ static readonly typeName = "livekit.proto.CodecStats";
755
+ static readonly fields: FieldList;
756
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CodecStats;
757
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CodecStats;
758
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CodecStats;
759
+ static equals(a: CodecStats | PlainMessage<CodecStats> | undefined, b: CodecStats | PlainMessage<CodecStats> | undefined): boolean;
760
+ }
469
761
  /**
470
762
  * @generated from message livekit.proto.RtpStreamStats
471
763
  */
472
- export type RtpStreamStats = Message<"livekit.proto.RtpStreamStats"> & {
764
+ declare class RtpStreamStats extends Message<RtpStreamStats> {
473
765
  /**
474
766
  * @generated from field: required uint32 ssrc = 1;
475
767
  */
476
- ssrc: number;
768
+ ssrc?: number;
477
769
  /**
478
770
  * @generated from field: required string kind = 2;
479
771
  */
480
- kind: string;
772
+ kind?: string;
481
773
  /**
482
774
  * @generated from field: required string transport_id = 3;
483
775
  */
484
- transportId: string;
776
+ transportId?: string;
485
777
  /**
486
778
  * @generated from field: required string codec_id = 4;
487
779
  */
488
- codecId: string;
489
- };
490
- /**
491
- * Describes the message livekit.proto.RtpStreamStats.
492
- * Use `create(RtpStreamStatsSchema)` to create a new message.
493
- */
494
- export declare const RtpStreamStatsSchema: GenMessage<RtpStreamStats>;
780
+ codecId?: string;
781
+ constructor(data?: PartialMessage<RtpStreamStats>);
782
+ static readonly runtime: typeof proto2;
783
+ static readonly typeName = "livekit.proto.RtpStreamStats";
784
+ static readonly fields: FieldList;
785
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtpStreamStats;
786
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtpStreamStats;
787
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtpStreamStats;
788
+ static equals(a: RtpStreamStats | PlainMessage<RtpStreamStats> | undefined, b: RtpStreamStats | PlainMessage<RtpStreamStats> | undefined): boolean;
789
+ }
495
790
  /**
496
791
  * @generated from message livekit.proto.ReceivedRtpStreamStats
497
792
  */
498
- export type ReceivedRtpStreamStats = Message<"livekit.proto.ReceivedRtpStreamStats"> & {
793
+ declare class ReceivedRtpStreamStats extends Message<ReceivedRtpStreamStats> {
499
794
  /**
500
795
  * @generated from field: required uint64 packets_received = 1;
501
796
  */
502
- packetsReceived: bigint;
797
+ packetsReceived?: bigint;
503
798
  /**
504
799
  * @generated from field: required int64 packets_lost = 2;
505
800
  */
506
- packetsLost: bigint;
801
+ packetsLost?: bigint;
507
802
  /**
508
803
  * @generated from field: required double jitter = 3;
509
804
  */
510
- jitter: number;
511
- };
512
- /**
513
- * Describes the message livekit.proto.ReceivedRtpStreamStats.
514
- * Use `create(ReceivedRtpStreamStatsSchema)` to create a new message.
515
- */
516
- export declare const ReceivedRtpStreamStatsSchema: GenMessage<ReceivedRtpStreamStats>;
805
+ jitter?: number;
806
+ constructor(data?: PartialMessage<ReceivedRtpStreamStats>);
807
+ static readonly runtime: typeof proto2;
808
+ static readonly typeName = "livekit.proto.ReceivedRtpStreamStats";
809
+ static readonly fields: FieldList;
810
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReceivedRtpStreamStats;
811
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReceivedRtpStreamStats;
812
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReceivedRtpStreamStats;
813
+ static equals(a: ReceivedRtpStreamStats | PlainMessage<ReceivedRtpStreamStats> | undefined, b: ReceivedRtpStreamStats | PlainMessage<ReceivedRtpStreamStats> | undefined): boolean;
814
+ }
517
815
  /**
518
816
  * @generated from message livekit.proto.InboundRtpStreamStats
519
817
  */
520
- export type InboundRtpStreamStats = Message<"livekit.proto.InboundRtpStreamStats"> & {
818
+ declare class InboundRtpStreamStats extends Message<InboundRtpStreamStats> {
521
819
  /**
522
820
  * @generated from field: required string track_identifier = 1;
523
821
  */
524
- trackIdentifier: string;
822
+ trackIdentifier?: string;
525
823
  /**
526
824
  * @generated from field: required string mid = 2;
527
825
  */
528
- mid: string;
826
+ mid?: string;
529
827
  /**
530
828
  * @generated from field: required string remote_id = 3;
531
829
  */
532
- remoteId: string;
830
+ remoteId?: string;
533
831
  /**
534
832
  * @generated from field: required uint32 frames_decoded = 4;
535
833
  */
536
- framesDecoded: number;
834
+ framesDecoded?: number;
537
835
  /**
538
836
  * @generated from field: required uint32 key_frames_decoded = 5;
539
837
  */
540
- keyFramesDecoded: number;
838
+ keyFramesDecoded?: number;
541
839
  /**
542
840
  * @generated from field: required uint32 frames_rendered = 6;
543
841
  */
544
- framesRendered: number;
842
+ framesRendered?: number;
545
843
  /**
546
844
  * @generated from field: required uint32 frames_dropped = 7;
547
845
  */
548
- framesDropped: number;
846
+ framesDropped?: number;
549
847
  /**
550
848
  * @generated from field: required uint32 frame_width = 8;
551
849
  */
552
- frameWidth: number;
850
+ frameWidth?: number;
553
851
  /**
554
852
  * @generated from field: required uint32 frame_height = 9;
555
853
  */
556
- frameHeight: number;
854
+ frameHeight?: number;
557
855
  /**
558
856
  * @generated from field: required double frames_per_second = 10;
559
857
  */
560
- framesPerSecond: number;
858
+ framesPerSecond?: number;
561
859
  /**
562
860
  * @generated from field: required uint64 qp_sum = 11;
563
861
  */
564
- qpSum: bigint;
862
+ qpSum?: bigint;
565
863
  /**
566
864
  * @generated from field: required double total_decode_time = 12;
567
865
  */
568
- totalDecodeTime: number;
866
+ totalDecodeTime?: number;
569
867
  /**
570
868
  * @generated from field: required double total_inter_frame_delay = 13;
571
869
  */
572
- totalInterFrameDelay: number;
870
+ totalInterFrameDelay?: number;
573
871
  /**
574
872
  * @generated from field: required double total_squared_inter_frame_delay = 14;
575
873
  */
576
- totalSquaredInterFrameDelay: number;
874
+ totalSquaredInterFrameDelay?: number;
577
875
  /**
578
876
  * @generated from field: required uint32 pause_count = 15;
579
877
  */
580
- pauseCount: number;
878
+ pauseCount?: number;
581
879
  /**
582
880
  * @generated from field: required double total_pause_duration = 16;
583
881
  */
584
- totalPauseDuration: number;
882
+ totalPauseDuration?: number;
585
883
  /**
586
884
  * @generated from field: required uint32 freeze_count = 17;
587
885
  */
588
- freezeCount: number;
886
+ freezeCount?: number;
589
887
  /**
590
888
  * @generated from field: required double total_freeze_duration = 18;
591
889
  */
592
- totalFreezeDuration: number;
890
+ totalFreezeDuration?: number;
593
891
  /**
594
892
  * @generated from field: required double last_packet_received_timestamp = 19;
595
893
  */
596
- lastPacketReceivedTimestamp: number;
894
+ lastPacketReceivedTimestamp?: number;
597
895
  /**
598
896
  * @generated from field: required uint64 header_bytes_received = 20;
599
897
  */
600
- headerBytesReceived: bigint;
898
+ headerBytesReceived?: bigint;
601
899
  /**
602
900
  * @generated from field: required uint64 packets_discarded = 21;
603
901
  */
604
- packetsDiscarded: bigint;
902
+ packetsDiscarded?: bigint;
605
903
  /**
606
904
  * @generated from field: required uint64 fec_bytes_received = 22;
607
905
  */
608
- fecBytesReceived: bigint;
906
+ fecBytesReceived?: bigint;
609
907
  /**
610
908
  * @generated from field: required uint64 fec_packets_received = 23;
611
909
  */
612
- fecPacketsReceived: bigint;
910
+ fecPacketsReceived?: bigint;
613
911
  /**
614
912
  * @generated from field: required uint64 fec_packets_discarded = 24;
615
913
  */
616
- fecPacketsDiscarded: bigint;
914
+ fecPacketsDiscarded?: bigint;
617
915
  /**
618
916
  * @generated from field: required uint64 bytes_received = 25;
619
917
  */
620
- bytesReceived: bigint;
918
+ bytesReceived?: bigint;
621
919
  /**
622
920
  * @generated from field: required uint32 nack_count = 26;
623
921
  */
624
- nackCount: number;
922
+ nackCount?: number;
625
923
  /**
626
924
  * @generated from field: required uint32 fir_count = 27;
627
925
  */
628
- firCount: number;
926
+ firCount?: number;
629
927
  /**
630
928
  * @generated from field: required uint32 pli_count = 28;
631
929
  */
632
- pliCount: number;
930
+ pliCount?: number;
633
931
  /**
634
932
  * @generated from field: required double total_processing_delay = 29;
635
933
  */
636
- totalProcessingDelay: number;
934
+ totalProcessingDelay?: number;
637
935
  /**
638
936
  * @generated from field: required double estimated_playout_timestamp = 30;
639
937
  */
640
- estimatedPlayoutTimestamp: number;
938
+ estimatedPlayoutTimestamp?: number;
641
939
  /**
642
940
  * @generated from field: required double jitter_buffer_delay = 31;
643
941
  */
644
- jitterBufferDelay: number;
942
+ jitterBufferDelay?: number;
645
943
  /**
646
944
  * @generated from field: required double jitter_buffer_target_delay = 32;
647
945
  */
648
- jitterBufferTargetDelay: number;
946
+ jitterBufferTargetDelay?: number;
649
947
  /**
650
948
  * @generated from field: required uint64 jitter_buffer_emitted_count = 33;
651
949
  */
652
- jitterBufferEmittedCount: bigint;
950
+ jitterBufferEmittedCount?: bigint;
653
951
  /**
654
952
  * @generated from field: required double jitter_buffer_minimum_delay = 34;
655
953
  */
656
- jitterBufferMinimumDelay: number;
954
+ jitterBufferMinimumDelay?: number;
657
955
  /**
658
956
  * @generated from field: required uint64 total_samples_received = 35;
659
957
  */
660
- totalSamplesReceived: bigint;
958
+ totalSamplesReceived?: bigint;
661
959
  /**
662
960
  * @generated from field: required uint64 concealed_samples = 36;
663
961
  */
664
- concealedSamples: bigint;
962
+ concealedSamples?: bigint;
665
963
  /**
666
964
  * @generated from field: required uint64 silent_concealed_samples = 37;
667
965
  */
668
- silentConcealedSamples: bigint;
966
+ silentConcealedSamples?: bigint;
669
967
  /**
670
968
  * @generated from field: required uint64 concealment_events = 38;
671
969
  */
672
- concealmentEvents: bigint;
970
+ concealmentEvents?: bigint;
673
971
  /**
674
972
  * @generated from field: required uint64 inserted_samples_for_deceleration = 39;
675
973
  */
676
- insertedSamplesForDeceleration: bigint;
974
+ insertedSamplesForDeceleration?: bigint;
677
975
  /**
678
976
  * @generated from field: required uint64 removed_samples_for_acceleration = 40;
679
977
  */
680
- removedSamplesForAcceleration: bigint;
978
+ removedSamplesForAcceleration?: bigint;
681
979
  /**
682
980
  * @generated from field: required double audio_level = 41;
683
981
  */
684
- audioLevel: number;
982
+ audioLevel?: number;
685
983
  /**
686
984
  * @generated from field: required double total_audio_energy = 42;
687
985
  */
688
- totalAudioEnergy: number;
986
+ totalAudioEnergy?: number;
689
987
  /**
690
988
  * @generated from field: required double total_samples_duration = 43;
691
989
  */
692
- totalSamplesDuration: number;
990
+ totalSamplesDuration?: number;
693
991
  /**
694
992
  * @generated from field: required uint64 frames_received = 44;
695
993
  */
696
- framesReceived: bigint;
994
+ framesReceived?: bigint;
697
995
  /**
698
996
  * @generated from field: required string decoder_implementation = 45;
699
997
  */
700
- decoderImplementation: string;
998
+ decoderImplementation?: string;
701
999
  /**
702
1000
  * @generated from field: required string playout_id = 46;
703
1001
  */
704
- playoutId: string;
1002
+ playoutId?: string;
705
1003
  /**
706
1004
  * @generated from field: required bool power_efficient_decoder = 47;
707
1005
  */
708
- powerEfficientDecoder: boolean;
1006
+ powerEfficientDecoder?: boolean;
709
1007
  /**
710
1008
  * @generated from field: required uint64 frames_assembled_from_multiple_packets = 48;
711
1009
  */
712
- framesAssembledFromMultiplePackets: bigint;
1010
+ framesAssembledFromMultiplePackets?: bigint;
713
1011
  /**
714
1012
  * @generated from field: required double total_assembly_time = 49;
715
1013
  */
716
- totalAssemblyTime: number;
1014
+ totalAssemblyTime?: number;
717
1015
  /**
718
1016
  * @generated from field: required uint64 retransmitted_packets_received = 50;
719
1017
  */
720
- retransmittedPacketsReceived: bigint;
1018
+ retransmittedPacketsReceived?: bigint;
721
1019
  /**
722
1020
  * @generated from field: required uint64 retransmitted_bytes_received = 51;
723
1021
  */
724
- retransmittedBytesReceived: bigint;
1022
+ retransmittedBytesReceived?: bigint;
725
1023
  /**
726
1024
  * @generated from field: required uint32 rtx_ssrc = 52;
727
1025
  */
728
- rtxSsrc: number;
1026
+ rtxSsrc?: number;
729
1027
  /**
730
1028
  * @generated from field: required uint32 fec_ssrc = 53;
731
1029
  */
732
- fecSsrc: number;
733
- };
734
- /**
735
- * Describes the message livekit.proto.InboundRtpStreamStats.
736
- * Use `create(InboundRtpStreamStatsSchema)` to create a new message.
737
- */
738
- export declare const InboundRtpStreamStatsSchema: GenMessage<InboundRtpStreamStats>;
1030
+ fecSsrc?: number;
1031
+ constructor(data?: PartialMessage<InboundRtpStreamStats>);
1032
+ static readonly runtime: typeof proto2;
1033
+ static readonly typeName = "livekit.proto.InboundRtpStreamStats";
1034
+ static readonly fields: FieldList;
1035
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InboundRtpStreamStats;
1036
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InboundRtpStreamStats;
1037
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InboundRtpStreamStats;
1038
+ static equals(a: InboundRtpStreamStats | PlainMessage<InboundRtpStreamStats> | undefined, b: InboundRtpStreamStats | PlainMessage<InboundRtpStreamStats> | undefined): boolean;
1039
+ }
739
1040
  /**
740
1041
  * @generated from message livekit.proto.SentRtpStreamStats
741
1042
  */
742
- export type SentRtpStreamStats = Message<"livekit.proto.SentRtpStreamStats"> & {
1043
+ declare class SentRtpStreamStats extends Message<SentRtpStreamStats> {
743
1044
  /**
744
1045
  * @generated from field: required uint64 packets_sent = 1;
745
1046
  */
746
- packetsSent: bigint;
1047
+ packetsSent?: bigint;
747
1048
  /**
748
1049
  * @generated from field: required uint64 bytes_sent = 2;
749
1050
  */
750
- bytesSent: bigint;
751
- };
752
- /**
753
- * Describes the message livekit.proto.SentRtpStreamStats.
754
- * Use `create(SentRtpStreamStatsSchema)` to create a new message.
755
- */
756
- export declare const SentRtpStreamStatsSchema: GenMessage<SentRtpStreamStats>;
1051
+ bytesSent?: bigint;
1052
+ constructor(data?: PartialMessage<SentRtpStreamStats>);
1053
+ static readonly runtime: typeof proto2;
1054
+ static readonly typeName = "livekit.proto.SentRtpStreamStats";
1055
+ static readonly fields: FieldList;
1056
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SentRtpStreamStats;
1057
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SentRtpStreamStats;
1058
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SentRtpStreamStats;
1059
+ static equals(a: SentRtpStreamStats | PlainMessage<SentRtpStreamStats> | undefined, b: SentRtpStreamStats | PlainMessage<SentRtpStreamStats> | undefined): boolean;
1060
+ }
757
1061
  /**
758
1062
  * @generated from message livekit.proto.OutboundRtpStreamStats
759
1063
  */
760
- export type OutboundRtpStreamStats = Message<"livekit.proto.OutboundRtpStreamStats"> & {
1064
+ declare class OutboundRtpStreamStats extends Message<OutboundRtpStreamStats> {
761
1065
  /**
762
1066
  * @generated from field: required string mid = 1;
763
1067
  */
764
- mid: string;
1068
+ mid?: string;
765
1069
  /**
766
1070
  * @generated from field: required string media_source_id = 2;
767
1071
  */
768
- mediaSourceId: string;
1072
+ mediaSourceId?: string;
769
1073
  /**
770
1074
  * @generated from field: required string remote_id = 3;
771
1075
  */
772
- remoteId: string;
1076
+ remoteId?: string;
773
1077
  /**
774
1078
  * @generated from field: required string rid = 4;
775
1079
  */
776
- rid: string;
1080
+ rid?: string;
777
1081
  /**
778
1082
  * @generated from field: required uint64 header_bytes_sent = 5;
779
1083
  */
780
- headerBytesSent: bigint;
1084
+ headerBytesSent?: bigint;
781
1085
  /**
782
1086
  * @generated from field: required uint64 retransmitted_packets_sent = 6;
783
1087
  */
784
- retransmittedPacketsSent: bigint;
1088
+ retransmittedPacketsSent?: bigint;
785
1089
  /**
786
1090
  * @generated from field: required uint64 retransmitted_bytes_sent = 7;
787
1091
  */
788
- retransmittedBytesSent: bigint;
1092
+ retransmittedBytesSent?: bigint;
789
1093
  /**
790
1094
  * @generated from field: required uint32 rtx_ssrc = 8;
791
1095
  */
792
- rtxSsrc: number;
1096
+ rtxSsrc?: number;
793
1097
  /**
794
1098
  * @generated from field: required double target_bitrate = 9;
795
1099
  */
796
- targetBitrate: number;
1100
+ targetBitrate?: number;
797
1101
  /**
798
1102
  * @generated from field: required uint64 total_encoded_bytes_target = 10;
799
1103
  */
800
- totalEncodedBytesTarget: bigint;
1104
+ totalEncodedBytesTarget?: bigint;
801
1105
  /**
802
1106
  * @generated from field: required uint32 frame_width = 11;
803
1107
  */
804
- frameWidth: number;
1108
+ frameWidth?: number;
805
1109
  /**
806
1110
  * @generated from field: required uint32 frame_height = 12;
807
1111
  */
808
- frameHeight: number;
1112
+ frameHeight?: number;
809
1113
  /**
810
1114
  * @generated from field: required double frames_per_second = 13;
811
1115
  */
812
- framesPerSecond: number;
1116
+ framesPerSecond?: number;
813
1117
  /**
814
1118
  * @generated from field: required uint32 frames_sent = 14;
815
1119
  */
816
- framesSent: number;
1120
+ framesSent?: number;
817
1121
  /**
818
1122
  * @generated from field: required uint32 huge_frames_sent = 15;
819
1123
  */
820
- hugeFramesSent: number;
1124
+ hugeFramesSent?: number;
821
1125
  /**
822
1126
  * @generated from field: required uint32 frames_encoded = 16;
823
1127
  */
824
- framesEncoded: number;
1128
+ framesEncoded?: number;
825
1129
  /**
826
1130
  * @generated from field: required uint32 key_frames_encoded = 17;
827
1131
  */
828
- keyFramesEncoded: number;
1132
+ keyFramesEncoded?: number;
829
1133
  /**
830
1134
  * @generated from field: required uint64 qp_sum = 18;
831
1135
  */
832
- qpSum: bigint;
1136
+ qpSum?: bigint;
833
1137
  /**
834
1138
  * @generated from field: required double total_encode_time = 19;
835
1139
  */
836
- totalEncodeTime: number;
1140
+ totalEncodeTime?: number;
837
1141
  /**
838
1142
  * @generated from field: required double total_packet_send_delay = 20;
839
1143
  */
840
- totalPacketSendDelay: number;
1144
+ totalPacketSendDelay?: number;
841
1145
  /**
842
1146
  * @generated from field: required livekit.proto.QualityLimitationReason quality_limitation_reason = 21;
843
1147
  */
844
- qualityLimitationReason: QualityLimitationReason;
1148
+ qualityLimitationReason?: QualityLimitationReason;
845
1149
  /**
846
1150
  * @generated from field: map<string, double> quality_limitation_durations = 22;
847
1151
  */
@@ -851,801 +1155,610 @@ export type OutboundRtpStreamStats = Message<"livekit.proto.OutboundRtpStreamSta
851
1155
  /**
852
1156
  * @generated from field: required uint32 quality_limitation_resolution_changes = 23;
853
1157
  */
854
- qualityLimitationResolutionChanges: number;
1158
+ qualityLimitationResolutionChanges?: number;
855
1159
  /**
856
1160
  * @generated from field: required uint32 nack_count = 24;
857
1161
  */
858
- nackCount: number;
1162
+ nackCount?: number;
859
1163
  /**
860
1164
  * @generated from field: required uint32 fir_count = 25;
861
1165
  */
862
- firCount: number;
1166
+ firCount?: number;
863
1167
  /**
864
1168
  * @generated from field: required uint32 pli_count = 26;
865
1169
  */
866
- pliCount: number;
1170
+ pliCount?: number;
867
1171
  /**
868
1172
  * @generated from field: required string encoder_implementation = 27;
869
1173
  */
870
- encoderImplementation: string;
1174
+ encoderImplementation?: string;
871
1175
  /**
872
1176
  * @generated from field: required bool power_efficient_encoder = 28;
873
1177
  */
874
- powerEfficientEncoder: boolean;
1178
+ powerEfficientEncoder?: boolean;
875
1179
  /**
876
1180
  * @generated from field: required bool active = 29;
877
1181
  */
878
- active: boolean;
1182
+ active?: boolean;
879
1183
  /**
880
1184
  * @generated from field: required string scalability_mode = 30;
881
- */
882
- scalabilityMode: string;
883
- };
884
- /**
885
- * Describes the message livekit.proto.OutboundRtpStreamStats.
886
- * Use `create(OutboundRtpStreamStatsSchema)` to create a new message.
887
- */
888
- export declare const OutboundRtpStreamStatsSchema: GenMessage<OutboundRtpStreamStats>;
1185
+ */
1186
+ scalabilityMode?: string;
1187
+ constructor(data?: PartialMessage<OutboundRtpStreamStats>);
1188
+ static readonly runtime: typeof proto2;
1189
+ static readonly typeName = "livekit.proto.OutboundRtpStreamStats";
1190
+ static readonly fields: FieldList;
1191
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OutboundRtpStreamStats;
1192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OutboundRtpStreamStats;
1193
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OutboundRtpStreamStats;
1194
+ static equals(a: OutboundRtpStreamStats | PlainMessage<OutboundRtpStreamStats> | undefined, b: OutboundRtpStreamStats | PlainMessage<OutboundRtpStreamStats> | undefined): boolean;
1195
+ }
889
1196
  /**
890
1197
  * @generated from message livekit.proto.RemoteInboundRtpStreamStats
891
1198
  */
892
- export type RemoteInboundRtpStreamStats = Message<"livekit.proto.RemoteInboundRtpStreamStats"> & {
1199
+ declare class RemoteInboundRtpStreamStats extends Message<RemoteInboundRtpStreamStats> {
893
1200
  /**
894
1201
  * @generated from field: required string local_id = 1;
895
1202
  */
896
- localId: string;
1203
+ localId?: string;
897
1204
  /**
898
1205
  * @generated from field: required double round_trip_time = 2;
899
1206
  */
900
- roundTripTime: number;
1207
+ roundTripTime?: number;
901
1208
  /**
902
1209
  * @generated from field: required double total_round_trip_time = 3;
903
1210
  */
904
- totalRoundTripTime: number;
1211
+ totalRoundTripTime?: number;
905
1212
  /**
906
1213
  * @generated from field: required double fraction_lost = 4;
907
1214
  */
908
- fractionLost: number;
1215
+ fractionLost?: number;
909
1216
  /**
910
1217
  * @generated from field: required uint64 round_trip_time_measurements = 5;
911
1218
  */
912
- roundTripTimeMeasurements: bigint;
913
- };
914
- /**
915
- * Describes the message livekit.proto.RemoteInboundRtpStreamStats.
916
- * Use `create(RemoteInboundRtpStreamStatsSchema)` to create a new message.
917
- */
918
- export declare const RemoteInboundRtpStreamStatsSchema: GenMessage<RemoteInboundRtpStreamStats>;
1219
+ roundTripTimeMeasurements?: bigint;
1220
+ constructor(data?: PartialMessage<RemoteInboundRtpStreamStats>);
1221
+ static readonly runtime: typeof proto2;
1222
+ static readonly typeName = "livekit.proto.RemoteInboundRtpStreamStats";
1223
+ static readonly fields: FieldList;
1224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoteInboundRtpStreamStats;
1225
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoteInboundRtpStreamStats;
1226
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoteInboundRtpStreamStats;
1227
+ static equals(a: RemoteInboundRtpStreamStats | PlainMessage<RemoteInboundRtpStreamStats> | undefined, b: RemoteInboundRtpStreamStats | PlainMessage<RemoteInboundRtpStreamStats> | undefined): boolean;
1228
+ }
919
1229
  /**
920
1230
  * @generated from message livekit.proto.RemoteOutboundRtpStreamStats
921
1231
  */
922
- export type RemoteOutboundRtpStreamStats = Message<"livekit.proto.RemoteOutboundRtpStreamStats"> & {
1232
+ declare class RemoteOutboundRtpStreamStats extends Message<RemoteOutboundRtpStreamStats> {
923
1233
  /**
924
1234
  * @generated from field: required string local_id = 1;
925
1235
  */
926
- localId: string;
1236
+ localId?: string;
927
1237
  /**
928
1238
  * @generated from field: required double remote_timestamp = 2;
929
1239
  */
930
- remoteTimestamp: number;
1240
+ remoteTimestamp?: number;
931
1241
  /**
932
1242
  * @generated from field: required uint64 reports_sent = 3;
933
1243
  */
934
- reportsSent: bigint;
1244
+ reportsSent?: bigint;
935
1245
  /**
936
1246
  * @generated from field: required double round_trip_time = 4;
937
1247
  */
938
- roundTripTime: number;
1248
+ roundTripTime?: number;
939
1249
  /**
940
1250
  * @generated from field: required double total_round_trip_time = 5;
941
1251
  */
942
- totalRoundTripTime: number;
1252
+ totalRoundTripTime?: number;
943
1253
  /**
944
1254
  * @generated from field: required uint64 round_trip_time_measurements = 6;
945
1255
  */
946
- roundTripTimeMeasurements: bigint;
947
- };
948
- /**
949
- * Describes the message livekit.proto.RemoteOutboundRtpStreamStats.
950
- * Use `create(RemoteOutboundRtpStreamStatsSchema)` to create a new message.
951
- */
952
- export declare const RemoteOutboundRtpStreamStatsSchema: GenMessage<RemoteOutboundRtpStreamStats>;
1256
+ roundTripTimeMeasurements?: bigint;
1257
+ constructor(data?: PartialMessage<RemoteOutboundRtpStreamStats>);
1258
+ static readonly runtime: typeof proto2;
1259
+ static readonly typeName = "livekit.proto.RemoteOutboundRtpStreamStats";
1260
+ static readonly fields: FieldList;
1261
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoteOutboundRtpStreamStats;
1262
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoteOutboundRtpStreamStats;
1263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoteOutboundRtpStreamStats;
1264
+ static equals(a: RemoteOutboundRtpStreamStats | PlainMessage<RemoteOutboundRtpStreamStats> | undefined, b: RemoteOutboundRtpStreamStats | PlainMessage<RemoteOutboundRtpStreamStats> | undefined): boolean;
1265
+ }
953
1266
  /**
954
1267
  * @generated from message livekit.proto.MediaSourceStats
955
1268
  */
956
- export type MediaSourceStats = Message<"livekit.proto.MediaSourceStats"> & {
1269
+ declare class MediaSourceStats extends Message<MediaSourceStats> {
957
1270
  /**
958
1271
  * @generated from field: required string track_identifier = 1;
959
1272
  */
960
- trackIdentifier: string;
1273
+ trackIdentifier?: string;
961
1274
  /**
962
1275
  * @generated from field: required string kind = 2;
963
1276
  */
964
- kind: string;
965
- };
966
- /**
967
- * Describes the message livekit.proto.MediaSourceStats.
968
- * Use `create(MediaSourceStatsSchema)` to create a new message.
969
- */
970
- export declare const MediaSourceStatsSchema: GenMessage<MediaSourceStats>;
1277
+ kind?: string;
1278
+ constructor(data?: PartialMessage<MediaSourceStats>);
1279
+ static readonly runtime: typeof proto2;
1280
+ static readonly typeName = "livekit.proto.MediaSourceStats";
1281
+ static readonly fields: FieldList;
1282
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaSourceStats;
1283
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaSourceStats;
1284
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaSourceStats;
1285
+ static equals(a: MediaSourceStats | PlainMessage<MediaSourceStats> | undefined, b: MediaSourceStats | PlainMessage<MediaSourceStats> | undefined): boolean;
1286
+ }
971
1287
  /**
972
1288
  * @generated from message livekit.proto.AudioSourceStats
973
1289
  */
974
- export type AudioSourceStats = Message<"livekit.proto.AudioSourceStats"> & {
1290
+ declare class AudioSourceStats extends Message<AudioSourceStats> {
975
1291
  /**
976
1292
  * @generated from field: required double audio_level = 1;
977
1293
  */
978
- audioLevel: number;
1294
+ audioLevel?: number;
979
1295
  /**
980
1296
  * @generated from field: required double total_audio_energy = 2;
981
1297
  */
982
- totalAudioEnergy: number;
1298
+ totalAudioEnergy?: number;
983
1299
  /**
984
1300
  * @generated from field: required double total_samples_duration = 3;
985
1301
  */
986
- totalSamplesDuration: number;
1302
+ totalSamplesDuration?: number;
987
1303
  /**
988
1304
  * @generated from field: required double echo_return_loss = 4;
989
1305
  */
990
- echoReturnLoss: number;
1306
+ echoReturnLoss?: number;
991
1307
  /**
992
1308
  * @generated from field: required double echo_return_loss_enhancement = 5;
993
1309
  */
994
- echoReturnLossEnhancement: number;
1310
+ echoReturnLossEnhancement?: number;
995
1311
  /**
996
1312
  * @generated from field: required double dropped_samples_duration = 6;
997
1313
  */
998
- droppedSamplesDuration: number;
1314
+ droppedSamplesDuration?: number;
999
1315
  /**
1000
1316
  * @generated from field: required uint32 dropped_samples_events = 7;
1001
1317
  */
1002
- droppedSamplesEvents: number;
1318
+ droppedSamplesEvents?: number;
1003
1319
  /**
1004
1320
  * @generated from field: required double total_capture_delay = 8;
1005
1321
  */
1006
- totalCaptureDelay: number;
1322
+ totalCaptureDelay?: number;
1007
1323
  /**
1008
1324
  * @generated from field: required uint64 total_samples_captured = 9;
1009
1325
  */
1010
- totalSamplesCaptured: bigint;
1011
- };
1012
- /**
1013
- * Describes the message livekit.proto.AudioSourceStats.
1014
- * Use `create(AudioSourceStatsSchema)` to create a new message.
1015
- */
1016
- export declare const AudioSourceStatsSchema: GenMessage<AudioSourceStats>;
1326
+ totalSamplesCaptured?: bigint;
1327
+ constructor(data?: PartialMessage<AudioSourceStats>);
1328
+ static readonly runtime: typeof proto2;
1329
+ static readonly typeName = "livekit.proto.AudioSourceStats";
1330
+ static readonly fields: FieldList;
1331
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSourceStats;
1332
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioSourceStats;
1333
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioSourceStats;
1334
+ static equals(a: AudioSourceStats | PlainMessage<AudioSourceStats> | undefined, b: AudioSourceStats | PlainMessage<AudioSourceStats> | undefined): boolean;
1335
+ }
1017
1336
  /**
1018
1337
  * @generated from message livekit.proto.VideoSourceStats
1019
1338
  */
1020
- export type VideoSourceStats = Message<"livekit.proto.VideoSourceStats"> & {
1339
+ declare class VideoSourceStats extends Message<VideoSourceStats> {
1021
1340
  /**
1022
1341
  * @generated from field: required uint32 width = 1;
1023
1342
  */
1024
- width: number;
1343
+ width?: number;
1025
1344
  /**
1026
1345
  * @generated from field: required uint32 height = 2;
1027
1346
  */
1028
- height: number;
1347
+ height?: number;
1029
1348
  /**
1030
1349
  * @generated from field: required uint32 frames = 3;
1031
1350
  */
1032
- frames: number;
1351
+ frames?: number;
1033
1352
  /**
1034
1353
  * @generated from field: required double frames_per_second = 4;
1035
1354
  */
1036
- framesPerSecond: number;
1037
- };
1038
- /**
1039
- * Describes the message livekit.proto.VideoSourceStats.
1040
- * Use `create(VideoSourceStatsSchema)` to create a new message.
1041
- */
1042
- export declare const VideoSourceStatsSchema: GenMessage<VideoSourceStats>;
1355
+ framesPerSecond?: number;
1356
+ constructor(data?: PartialMessage<VideoSourceStats>);
1357
+ static readonly runtime: typeof proto2;
1358
+ static readonly typeName = "livekit.proto.VideoSourceStats";
1359
+ static readonly fields: FieldList;
1360
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceStats;
1361
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceStats;
1362
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceStats;
1363
+ static equals(a: VideoSourceStats | PlainMessage<VideoSourceStats> | undefined, b: VideoSourceStats | PlainMessage<VideoSourceStats> | undefined): boolean;
1364
+ }
1043
1365
  /**
1044
1366
  * @generated from message livekit.proto.AudioPlayoutStats
1045
1367
  */
1046
- export type AudioPlayoutStats = Message<"livekit.proto.AudioPlayoutStats"> & {
1368
+ declare class AudioPlayoutStats extends Message<AudioPlayoutStats> {
1047
1369
  /**
1048
1370
  * @generated from field: required string kind = 1;
1049
1371
  */
1050
- kind: string;
1372
+ kind?: string;
1051
1373
  /**
1052
1374
  * @generated from field: required double synthesized_samples_duration = 2;
1053
1375
  */
1054
- synthesizedSamplesDuration: number;
1376
+ synthesizedSamplesDuration?: number;
1055
1377
  /**
1056
1378
  * @generated from field: required uint32 synthesized_samples_events = 3;
1057
1379
  */
1058
- synthesizedSamplesEvents: number;
1380
+ synthesizedSamplesEvents?: number;
1059
1381
  /**
1060
1382
  * @generated from field: required double total_samples_duration = 4;
1061
1383
  */
1062
- totalSamplesDuration: number;
1384
+ totalSamplesDuration?: number;
1063
1385
  /**
1064
1386
  * @generated from field: required double total_playout_delay = 5;
1065
1387
  */
1066
- totalPlayoutDelay: number;
1388
+ totalPlayoutDelay?: number;
1067
1389
  /**
1068
1390
  * @generated from field: required uint64 total_samples_count = 6;
1069
1391
  */
1070
- totalSamplesCount: bigint;
1071
- };
1072
- /**
1073
- * Describes the message livekit.proto.AudioPlayoutStats.
1074
- * Use `create(AudioPlayoutStatsSchema)` to create a new message.
1075
- */
1076
- export declare const AudioPlayoutStatsSchema: GenMessage<AudioPlayoutStats>;
1392
+ totalSamplesCount?: bigint;
1393
+ constructor(data?: PartialMessage<AudioPlayoutStats>);
1394
+ static readonly runtime: typeof proto2;
1395
+ static readonly typeName = "livekit.proto.AudioPlayoutStats";
1396
+ static readonly fields: FieldList;
1397
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioPlayoutStats;
1398
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioPlayoutStats;
1399
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioPlayoutStats;
1400
+ static equals(a: AudioPlayoutStats | PlainMessage<AudioPlayoutStats> | undefined, b: AudioPlayoutStats | PlainMessage<AudioPlayoutStats> | undefined): boolean;
1401
+ }
1077
1402
  /**
1078
1403
  * @generated from message livekit.proto.PeerConnectionStats
1079
1404
  */
1080
- export type PeerConnectionStats = Message<"livekit.proto.PeerConnectionStats"> & {
1405
+ declare class PeerConnectionStats extends Message<PeerConnectionStats> {
1081
1406
  /**
1082
1407
  * @generated from field: required uint32 data_channels_opened = 1;
1083
1408
  */
1084
- dataChannelsOpened: number;
1409
+ dataChannelsOpened?: number;
1085
1410
  /**
1086
1411
  * @generated from field: required uint32 data_channels_closed = 2;
1087
1412
  */
1088
- dataChannelsClosed: number;
1089
- };
1090
- /**
1091
- * Describes the message livekit.proto.PeerConnectionStats.
1092
- * Use `create(PeerConnectionStatsSchema)` to create a new message.
1093
- */
1094
- export declare const PeerConnectionStatsSchema: GenMessage<PeerConnectionStats>;
1413
+ dataChannelsClosed?: number;
1414
+ constructor(data?: PartialMessage<PeerConnectionStats>);
1415
+ static readonly runtime: typeof proto2;
1416
+ static readonly typeName = "livekit.proto.PeerConnectionStats";
1417
+ static readonly fields: FieldList;
1418
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PeerConnectionStats;
1419
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PeerConnectionStats;
1420
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PeerConnectionStats;
1421
+ static equals(a: PeerConnectionStats | PlainMessage<PeerConnectionStats> | undefined, b: PeerConnectionStats | PlainMessage<PeerConnectionStats> | undefined): boolean;
1422
+ }
1095
1423
  /**
1096
1424
  * @generated from message livekit.proto.DataChannelStats
1097
1425
  */
1098
- export type DataChannelStats = Message<"livekit.proto.DataChannelStats"> & {
1426
+ declare class DataChannelStats extends Message<DataChannelStats> {
1099
1427
  /**
1100
1428
  * @generated from field: required string label = 1;
1101
1429
  */
1102
- label: string;
1430
+ label?: string;
1103
1431
  /**
1104
1432
  * @generated from field: required string protocol = 2;
1105
1433
  */
1106
- protocol: string;
1434
+ protocol?: string;
1107
1435
  /**
1108
1436
  * @generated from field: required int32 data_channel_identifier = 3;
1109
1437
  */
1110
- dataChannelIdentifier: number;
1438
+ dataChannelIdentifier?: number;
1111
1439
  /**
1112
1440
  * @generated from field: optional livekit.proto.DataChannelState state = 4;
1113
1441
  */
1114
- state: DataChannelState;
1442
+ state?: DataChannelState;
1115
1443
  /**
1116
1444
  * @generated from field: required uint32 messages_sent = 5;
1117
1445
  */
1118
- messagesSent: number;
1446
+ messagesSent?: number;
1119
1447
  /**
1120
1448
  * @generated from field: required uint64 bytes_sent = 6;
1121
1449
  */
1122
- bytesSent: bigint;
1450
+ bytesSent?: bigint;
1123
1451
  /**
1124
1452
  * @generated from field: required uint32 messages_received = 7;
1125
1453
  */
1126
- messagesReceived: number;
1454
+ messagesReceived?: number;
1127
1455
  /**
1128
1456
  * @generated from field: required uint64 bytes_received = 8;
1129
1457
  */
1130
- bytesReceived: bigint;
1131
- };
1132
- /**
1133
- * Describes the message livekit.proto.DataChannelStats.
1134
- * Use `create(DataChannelStatsSchema)` to create a new message.
1135
- */
1136
- export declare const DataChannelStatsSchema: GenMessage<DataChannelStats>;
1458
+ bytesReceived?: bigint;
1459
+ constructor(data?: PartialMessage<DataChannelStats>);
1460
+ static readonly runtime: typeof proto2;
1461
+ static readonly typeName = "livekit.proto.DataChannelStats";
1462
+ static readonly fields: FieldList;
1463
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelStats;
1464
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelStats;
1465
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelStats;
1466
+ static equals(a: DataChannelStats | PlainMessage<DataChannelStats> | undefined, b: DataChannelStats | PlainMessage<DataChannelStats> | undefined): boolean;
1467
+ }
1137
1468
  /**
1138
1469
  * @generated from message livekit.proto.TransportStats
1139
1470
  */
1140
- export type TransportStats = Message<"livekit.proto.TransportStats"> & {
1471
+ declare class TransportStats extends Message<TransportStats> {
1141
1472
  /**
1142
1473
  * @generated from field: required uint64 packets_sent = 1;
1143
1474
  */
1144
- packetsSent: bigint;
1475
+ packetsSent?: bigint;
1145
1476
  /**
1146
1477
  * @generated from field: required uint64 packets_received = 2;
1147
1478
  */
1148
- packetsReceived: bigint;
1479
+ packetsReceived?: bigint;
1149
1480
  /**
1150
1481
  * @generated from field: required uint64 bytes_sent = 3;
1151
1482
  */
1152
- bytesSent: bigint;
1483
+ bytesSent?: bigint;
1153
1484
  /**
1154
1485
  * @generated from field: required uint64 bytes_received = 4;
1155
1486
  */
1156
- bytesReceived: bigint;
1487
+ bytesReceived?: bigint;
1157
1488
  /**
1158
1489
  * @generated from field: required livekit.proto.IceRole ice_role = 5;
1159
1490
  */
1160
- iceRole: IceRole;
1491
+ iceRole?: IceRole;
1161
1492
  /**
1162
1493
  * @generated from field: required string ice_local_username_fragment = 6;
1163
1494
  */
1164
- iceLocalUsernameFragment: string;
1495
+ iceLocalUsernameFragment?: string;
1165
1496
  /**
1166
1497
  * @generated from field: optional livekit.proto.DtlsTransportState dtls_state = 7;
1167
1498
  */
1168
- dtlsState: DtlsTransportState;
1499
+ dtlsState?: DtlsTransportState;
1169
1500
  /**
1170
1501
  * @generated from field: optional livekit.proto.IceTransportState ice_state = 8;
1171
1502
  */
1172
- iceState: IceTransportState;
1503
+ iceState?: IceTransportState;
1173
1504
  /**
1174
1505
  * @generated from field: required string selected_candidate_pair_id = 9;
1175
1506
  */
1176
- selectedCandidatePairId: string;
1507
+ selectedCandidatePairId?: string;
1177
1508
  /**
1178
1509
  * @generated from field: required string local_certificate_id = 10;
1179
1510
  */
1180
- localCertificateId: string;
1511
+ localCertificateId?: string;
1181
1512
  /**
1182
1513
  * @generated from field: required string remote_certificate_id = 11;
1183
1514
  */
1184
- remoteCertificateId: string;
1515
+ remoteCertificateId?: string;
1185
1516
  /**
1186
1517
  * @generated from field: required string tls_version = 12;
1187
1518
  */
1188
- tlsVersion: string;
1519
+ tlsVersion?: string;
1189
1520
  /**
1190
1521
  * @generated from field: required string dtls_cipher = 13;
1191
1522
  */
1192
- dtlsCipher: string;
1523
+ dtlsCipher?: string;
1193
1524
  /**
1194
1525
  * @generated from field: required livekit.proto.DtlsRole dtls_role = 14;
1195
1526
  */
1196
- dtlsRole: DtlsRole;
1527
+ dtlsRole?: DtlsRole;
1197
1528
  /**
1198
1529
  * @generated from field: required string srtp_cipher = 15;
1199
1530
  */
1200
- srtpCipher: string;
1531
+ srtpCipher?: string;
1201
1532
  /**
1202
1533
  * @generated from field: required uint32 selected_candidate_pair_changes = 16;
1203
1534
  */
1204
- selectedCandidatePairChanges: number;
1205
- };
1206
- /**
1207
- * Describes the message livekit.proto.TransportStats.
1208
- * Use `create(TransportStatsSchema)` to create a new message.
1209
- */
1210
- export declare const TransportStatsSchema: GenMessage<TransportStats>;
1535
+ selectedCandidatePairChanges?: number;
1536
+ constructor(data?: PartialMessage<TransportStats>);
1537
+ static readonly runtime: typeof proto2;
1538
+ static readonly typeName = "livekit.proto.TransportStats";
1539
+ static readonly fields: FieldList;
1540
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransportStats;
1541
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransportStats;
1542
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransportStats;
1543
+ static equals(a: TransportStats | PlainMessage<TransportStats> | undefined, b: TransportStats | PlainMessage<TransportStats> | undefined): boolean;
1544
+ }
1211
1545
  /**
1212
1546
  * @generated from message livekit.proto.CandidatePairStats
1213
1547
  */
1214
- export type CandidatePairStats = Message<"livekit.proto.CandidatePairStats"> & {
1548
+ declare class CandidatePairStats extends Message<CandidatePairStats> {
1215
1549
  /**
1216
1550
  * @generated from field: required string transport_id = 1;
1217
1551
  */
1218
- transportId: string;
1552
+ transportId?: string;
1219
1553
  /**
1220
1554
  * @generated from field: required string local_candidate_id = 2;
1221
1555
  */
1222
- localCandidateId: string;
1556
+ localCandidateId?: string;
1223
1557
  /**
1224
1558
  * @generated from field: required string remote_candidate_id = 3;
1225
1559
  */
1226
- remoteCandidateId: string;
1560
+ remoteCandidateId?: string;
1227
1561
  /**
1228
1562
  * @generated from field: optional livekit.proto.IceCandidatePairState state = 4;
1229
1563
  */
1230
- state: IceCandidatePairState;
1564
+ state?: IceCandidatePairState;
1231
1565
  /**
1232
1566
  * @generated from field: required bool nominated = 5;
1233
1567
  */
1234
- nominated: boolean;
1568
+ nominated?: boolean;
1235
1569
  /**
1236
1570
  * @generated from field: required uint64 packets_sent = 6;
1237
1571
  */
1238
- packetsSent: bigint;
1572
+ packetsSent?: bigint;
1239
1573
  /**
1240
1574
  * @generated from field: required uint64 packets_received = 7;
1241
1575
  */
1242
- packetsReceived: bigint;
1576
+ packetsReceived?: bigint;
1243
1577
  /**
1244
1578
  * @generated from field: required uint64 bytes_sent = 8;
1245
1579
  */
1246
- bytesSent: bigint;
1580
+ bytesSent?: bigint;
1247
1581
  /**
1248
1582
  * @generated from field: required uint64 bytes_received = 9;
1249
1583
  */
1250
- bytesReceived: bigint;
1584
+ bytesReceived?: bigint;
1251
1585
  /**
1252
1586
  * @generated from field: required double last_packet_sent_timestamp = 10;
1253
1587
  */
1254
- lastPacketSentTimestamp: number;
1588
+ lastPacketSentTimestamp?: number;
1255
1589
  /**
1256
1590
  * @generated from field: required double last_packet_received_timestamp = 11;
1257
1591
  */
1258
- lastPacketReceivedTimestamp: number;
1592
+ lastPacketReceivedTimestamp?: number;
1259
1593
  /**
1260
1594
  * @generated from field: required double total_round_trip_time = 12;
1261
1595
  */
1262
- totalRoundTripTime: number;
1596
+ totalRoundTripTime?: number;
1263
1597
  /**
1264
1598
  * @generated from field: required double current_round_trip_time = 13;
1265
1599
  */
1266
- currentRoundTripTime: number;
1600
+ currentRoundTripTime?: number;
1267
1601
  /**
1268
1602
  * @generated from field: required double available_outgoing_bitrate = 14;
1269
1603
  */
1270
- availableOutgoingBitrate: number;
1604
+ availableOutgoingBitrate?: number;
1271
1605
  /**
1272
1606
  * @generated from field: required double available_incoming_bitrate = 15;
1273
1607
  */
1274
- availableIncomingBitrate: number;
1608
+ availableIncomingBitrate?: number;
1275
1609
  /**
1276
1610
  * @generated from field: required uint64 requests_received = 16;
1277
1611
  */
1278
- requestsReceived: bigint;
1612
+ requestsReceived?: bigint;
1279
1613
  /**
1280
1614
  * @generated from field: required uint64 requests_sent = 17;
1281
1615
  */
1282
- requestsSent: bigint;
1616
+ requestsSent?: bigint;
1283
1617
  /**
1284
1618
  * @generated from field: required uint64 responses_received = 18;
1285
1619
  */
1286
- responsesReceived: bigint;
1620
+ responsesReceived?: bigint;
1287
1621
  /**
1288
1622
  * @generated from field: required uint64 responses_sent = 19;
1289
1623
  */
1290
- responsesSent: bigint;
1624
+ responsesSent?: bigint;
1291
1625
  /**
1292
1626
  * @generated from field: required uint64 consent_requests_sent = 20;
1293
1627
  */
1294
- consentRequestsSent: bigint;
1628
+ consentRequestsSent?: bigint;
1295
1629
  /**
1296
1630
  * @generated from field: required uint32 packets_discarded_on_send = 21;
1297
1631
  */
1298
- packetsDiscardedOnSend: number;
1632
+ packetsDiscardedOnSend?: number;
1299
1633
  /**
1300
1634
  * @generated from field: required uint64 bytes_discarded_on_send = 22;
1301
1635
  */
1302
- bytesDiscardedOnSend: bigint;
1303
- };
1304
- /**
1305
- * Describes the message livekit.proto.CandidatePairStats.
1306
- * Use `create(CandidatePairStatsSchema)` to create a new message.
1307
- */
1308
- export declare const CandidatePairStatsSchema: GenMessage<CandidatePairStats>;
1636
+ bytesDiscardedOnSend?: bigint;
1637
+ constructor(data?: PartialMessage<CandidatePairStats>);
1638
+ static readonly runtime: typeof proto2;
1639
+ static readonly typeName = "livekit.proto.CandidatePairStats";
1640
+ static readonly fields: FieldList;
1641
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CandidatePairStats;
1642
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CandidatePairStats;
1643
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CandidatePairStats;
1644
+ static equals(a: CandidatePairStats | PlainMessage<CandidatePairStats> | undefined, b: CandidatePairStats | PlainMessage<CandidatePairStats> | undefined): boolean;
1645
+ }
1309
1646
  /**
1310
1647
  * @generated from message livekit.proto.IceCandidateStats
1311
1648
  */
1312
- export type IceCandidateStats = Message<"livekit.proto.IceCandidateStats"> & {
1649
+ declare class IceCandidateStats extends Message<IceCandidateStats> {
1313
1650
  /**
1314
1651
  * @generated from field: required string transport_id = 1;
1315
1652
  */
1316
- transportId: string;
1653
+ transportId?: string;
1317
1654
  /**
1318
1655
  * @generated from field: required string address = 2;
1319
1656
  */
1320
- address: string;
1657
+ address?: string;
1321
1658
  /**
1322
1659
  * @generated from field: required int32 port = 3;
1323
1660
  */
1324
- port: number;
1661
+ port?: number;
1325
1662
  /**
1326
1663
  * @generated from field: required string protocol = 4;
1327
1664
  */
1328
- protocol: string;
1665
+ protocol?: string;
1329
1666
  /**
1330
1667
  * @generated from field: optional livekit.proto.IceCandidateType candidate_type = 5;
1331
1668
  */
1332
- candidateType: IceCandidateType;
1669
+ candidateType?: IceCandidateType;
1333
1670
  /**
1334
1671
  * @generated from field: required int32 priority = 6;
1335
1672
  */
1336
- priority: number;
1673
+ priority?: number;
1337
1674
  /**
1338
1675
  * @generated from field: required string url = 7;
1339
1676
  */
1340
- url: string;
1677
+ url?: string;
1341
1678
  /**
1342
1679
  * @generated from field: optional livekit.proto.IceServerTransportProtocol relay_protocol = 8;
1343
1680
  */
1344
- relayProtocol: IceServerTransportProtocol;
1681
+ relayProtocol?: IceServerTransportProtocol;
1345
1682
  /**
1346
1683
  * @generated from field: required string foundation = 9;
1347
1684
  */
1348
- foundation: string;
1685
+ foundation?: string;
1349
1686
  /**
1350
1687
  * @generated from field: required string related_address = 10;
1351
1688
  */
1352
- relatedAddress: string;
1689
+ relatedAddress?: string;
1353
1690
  /**
1354
1691
  * @generated from field: required int32 related_port = 11;
1355
1692
  */
1356
- relatedPort: number;
1693
+ relatedPort?: number;
1357
1694
  /**
1358
1695
  * @generated from field: required string username_fragment = 12;
1359
1696
  */
1360
- usernameFragment: string;
1697
+ usernameFragment?: string;
1361
1698
  /**
1362
1699
  * @generated from field: optional livekit.proto.IceTcpCandidateType tcp_type = 13;
1363
1700
  */
1364
- tcpType: IceTcpCandidateType;
1365
- };
1366
- /**
1367
- * Describes the message livekit.proto.IceCandidateStats.
1368
- * Use `create(IceCandidateStatsSchema)` to create a new message.
1369
- */
1370
- export declare const IceCandidateStatsSchema: GenMessage<IceCandidateStats>;
1701
+ tcpType?: IceTcpCandidateType;
1702
+ constructor(data?: PartialMessage<IceCandidateStats>);
1703
+ static readonly runtime: typeof proto2;
1704
+ static readonly typeName = "livekit.proto.IceCandidateStats";
1705
+ static readonly fields: FieldList;
1706
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IceCandidateStats;
1707
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IceCandidateStats;
1708
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IceCandidateStats;
1709
+ static equals(a: IceCandidateStats | PlainMessage<IceCandidateStats> | undefined, b: IceCandidateStats | PlainMessage<IceCandidateStats> | undefined): boolean;
1710
+ }
1371
1711
  /**
1372
1712
  * @generated from message livekit.proto.CertificateStats
1373
1713
  */
1374
- export type CertificateStats = Message<"livekit.proto.CertificateStats"> & {
1714
+ declare class CertificateStats extends Message<CertificateStats> {
1375
1715
  /**
1376
1716
  * @generated from field: required string fingerprint = 1;
1377
1717
  */
1378
- fingerprint: string;
1718
+ fingerprint?: string;
1379
1719
  /**
1380
1720
  * @generated from field: required string fingerprint_algorithm = 2;
1381
1721
  */
1382
- fingerprintAlgorithm: string;
1722
+ fingerprintAlgorithm?: string;
1383
1723
  /**
1384
1724
  * @generated from field: required string base64_certificate = 3;
1385
1725
  */
1386
- base64Certificate: string;
1726
+ base64Certificate?: string;
1387
1727
  /**
1388
1728
  * @generated from field: required string issuer_certificate_id = 4;
1389
1729
  */
1390
- issuerCertificateId: string;
1391
- };
1392
- /**
1393
- * Describes the message livekit.proto.CertificateStats.
1394
- * Use `create(CertificateStatsSchema)` to create a new message.
1395
- */
1396
- export declare const CertificateStatsSchema: GenMessage<CertificateStats>;
1397
- /**
1398
- * @generated from enum livekit.proto.DataChannelState
1399
- */
1400
- export declare enum DataChannelState {
1401
- /**
1402
- * @generated from enum value: DC_CONNECTING = 0;
1403
- */
1404
- DC_CONNECTING = 0,
1405
- /**
1406
- * @generated from enum value: DC_OPEN = 1;
1407
- */
1408
- DC_OPEN = 1,
1409
- /**
1410
- * @generated from enum value: DC_CLOSING = 2;
1411
- */
1412
- DC_CLOSING = 2,
1413
- /**
1414
- * @generated from enum value: DC_CLOSED = 3;
1415
- */
1416
- DC_CLOSED = 3
1417
- }
1418
- /**
1419
- * Describes the enum livekit.proto.DataChannelState.
1420
- */
1421
- export declare const DataChannelStateSchema: GenEnum<DataChannelState>;
1422
- /**
1423
- * @generated from enum livekit.proto.QualityLimitationReason
1424
- */
1425
- export declare enum QualityLimitationReason {
1426
- /**
1427
- * @generated from enum value: LIMITATION_NONE = 0;
1428
- */
1429
- LIMITATION_NONE = 0,
1430
- /**
1431
- * @generated from enum value: LIMITATION_CPU = 1;
1432
- */
1433
- LIMITATION_CPU = 1,
1434
- /**
1435
- * @generated from enum value: LIMITATION_BANDWIDTH = 2;
1436
- */
1437
- LIMITATION_BANDWIDTH = 2,
1438
- /**
1439
- * @generated from enum value: LIMITATION_OTHER = 3;
1440
- */
1441
- LIMITATION_OTHER = 3
1442
- }
1443
- /**
1444
- * Describes the enum livekit.proto.QualityLimitationReason.
1445
- */
1446
- export declare const QualityLimitationReasonSchema: GenEnum<QualityLimitationReason>;
1447
- /**
1448
- * @generated from enum livekit.proto.IceRole
1449
- */
1450
- export declare enum IceRole {
1451
- /**
1452
- * @generated from enum value: ICE_UNKNOWN = 0;
1453
- */
1454
- ICE_UNKNOWN = 0,
1455
- /**
1456
- * @generated from enum value: ICE_CONTROLLING = 1;
1457
- */
1458
- ICE_CONTROLLING = 1,
1459
- /**
1460
- * @generated from enum value: ICE_CONTROLLED = 2;
1461
- */
1462
- ICE_CONTROLLED = 2
1463
- }
1464
- /**
1465
- * Describes the enum livekit.proto.IceRole.
1466
- */
1467
- export declare const IceRoleSchema: GenEnum<IceRole>;
1468
- /**
1469
- * @generated from enum livekit.proto.DtlsTransportState
1470
- */
1471
- export declare enum DtlsTransportState {
1472
- /**
1473
- * @generated from enum value: DTLS_TRANSPORT_NEW = 0;
1474
- */
1475
- DTLS_TRANSPORT_NEW = 0,
1476
- /**
1477
- * @generated from enum value: DTLS_TRANSPORT_CONNECTING = 1;
1478
- */
1479
- DTLS_TRANSPORT_CONNECTING = 1,
1480
- /**
1481
- * @generated from enum value: DTLS_TRANSPORT_CONNECTED = 2;
1482
- */
1483
- DTLS_TRANSPORT_CONNECTED = 2,
1484
- /**
1485
- * @generated from enum value: DTLS_TRANSPORT_CLOSED = 3;
1486
- */
1487
- DTLS_TRANSPORT_CLOSED = 3,
1488
- /**
1489
- * @generated from enum value: DTLS_TRANSPORT_FAILED = 4;
1490
- */
1491
- DTLS_TRANSPORT_FAILED = 4
1492
- }
1493
- /**
1494
- * Describes the enum livekit.proto.DtlsTransportState.
1495
- */
1496
- export declare const DtlsTransportStateSchema: GenEnum<DtlsTransportState>;
1497
- /**
1498
- * @generated from enum livekit.proto.IceTransportState
1499
- */
1500
- export declare enum IceTransportState {
1501
- /**
1502
- * @generated from enum value: ICE_TRANSPORT_NEW = 0;
1503
- */
1504
- ICE_TRANSPORT_NEW = 0,
1505
- /**
1506
- * @generated from enum value: ICE_TRANSPORT_CHECKING = 1;
1507
- */
1508
- ICE_TRANSPORT_CHECKING = 1,
1509
- /**
1510
- * @generated from enum value: ICE_TRANSPORT_CONNECTED = 2;
1511
- */
1512
- ICE_TRANSPORT_CONNECTED = 2,
1513
- /**
1514
- * @generated from enum value: ICE_TRANSPORT_COMPLETED = 3;
1515
- */
1516
- ICE_TRANSPORT_COMPLETED = 3,
1517
- /**
1518
- * @generated from enum value: ICE_TRANSPORT_DISCONNECTED = 4;
1519
- */
1520
- ICE_TRANSPORT_DISCONNECTED = 4,
1521
- /**
1522
- * @generated from enum value: ICE_TRANSPORT_FAILED = 5;
1523
- */
1524
- ICE_TRANSPORT_FAILED = 5,
1525
- /**
1526
- * @generated from enum value: ICE_TRANSPORT_CLOSED = 6;
1527
- */
1528
- ICE_TRANSPORT_CLOSED = 6
1529
- }
1530
- /**
1531
- * Describes the enum livekit.proto.IceTransportState.
1532
- */
1533
- export declare const IceTransportStateSchema: GenEnum<IceTransportState>;
1534
- /**
1535
- * @generated from enum livekit.proto.DtlsRole
1536
- */
1537
- export declare enum DtlsRole {
1538
- /**
1539
- * @generated from enum value: DTLS_CLIENT = 0;
1540
- */
1541
- DTLS_CLIENT = 0,
1542
- /**
1543
- * @generated from enum value: DTLS_SERVER = 1;
1544
- */
1545
- DTLS_SERVER = 1,
1546
- /**
1547
- * @generated from enum value: DTLS_UNKNOWN = 2;
1548
- */
1549
- DTLS_UNKNOWN = 2
1550
- }
1551
- /**
1552
- * Describes the enum livekit.proto.DtlsRole.
1553
- */
1554
- export declare const DtlsRoleSchema: GenEnum<DtlsRole>;
1555
- /**
1556
- * @generated from enum livekit.proto.IceCandidatePairState
1557
- */
1558
- export declare enum IceCandidatePairState {
1559
- /**
1560
- * @generated from enum value: PAIR_FROZEN = 0;
1561
- */
1562
- PAIR_FROZEN = 0,
1563
- /**
1564
- * @generated from enum value: PAIR_WAITING = 1;
1565
- */
1566
- PAIR_WAITING = 1,
1567
- /**
1568
- * @generated from enum value: PAIR_IN_PROGRESS = 2;
1569
- */
1570
- PAIR_IN_PROGRESS = 2,
1571
- /**
1572
- * @generated from enum value: PAIR_FAILED = 3;
1573
- */
1574
- PAIR_FAILED = 3,
1575
- /**
1576
- * @generated from enum value: PAIR_SUCCEEDED = 4;
1577
- */
1578
- PAIR_SUCCEEDED = 4
1579
- }
1580
- /**
1581
- * Describes the enum livekit.proto.IceCandidatePairState.
1582
- */
1583
- export declare const IceCandidatePairStateSchema: GenEnum<IceCandidatePairState>;
1584
- /**
1585
- * @generated from enum livekit.proto.IceCandidateType
1586
- */
1587
- export declare enum IceCandidateType {
1588
- /**
1589
- * @generated from enum value: HOST = 0;
1590
- */
1591
- HOST = 0,
1592
- /**
1593
- * @generated from enum value: SRFLX = 1;
1594
- */
1595
- SRFLX = 1,
1596
- /**
1597
- * @generated from enum value: PRFLX = 2;
1598
- */
1599
- PRFLX = 2,
1600
- /**
1601
- * @generated from enum value: RELAY = 3;
1602
- */
1603
- RELAY = 3
1604
- }
1605
- /**
1606
- * Describes the enum livekit.proto.IceCandidateType.
1607
- */
1608
- export declare const IceCandidateTypeSchema: GenEnum<IceCandidateType>;
1609
- /**
1610
- * @generated from enum livekit.proto.IceServerTransportProtocol
1611
- */
1612
- export declare enum IceServerTransportProtocol {
1613
- /**
1614
- * @generated from enum value: TRANSPORT_UDP = 0;
1615
- */
1616
- TRANSPORT_UDP = 0,
1617
- /**
1618
- * @generated from enum value: TRANSPORT_TCP = 1;
1619
- */
1620
- TRANSPORT_TCP = 1,
1621
- /**
1622
- * @generated from enum value: TRANSPORT_TLS = 2;
1623
- */
1624
- TRANSPORT_TLS = 2
1730
+ issuerCertificateId?: string;
1731
+ constructor(data?: PartialMessage<CertificateStats>);
1732
+ static readonly runtime: typeof proto2;
1733
+ static readonly typeName = "livekit.proto.CertificateStats";
1734
+ static readonly fields: FieldList;
1735
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CertificateStats;
1736
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CertificateStats;
1737
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CertificateStats;
1738
+ static equals(a: CertificateStats | PlainMessage<CertificateStats> | undefined, b: CertificateStats | PlainMessage<CertificateStats> | undefined): boolean;
1625
1739
  }
1626
1740
  /**
1627
- * Describes the enum livekit.proto.IceServerTransportProtocol.
1741
+ * @generated from message livekit.proto.StreamStats
1628
1742
  */
1629
- export declare const IceServerTransportProtocolSchema: GenEnum<IceServerTransportProtocol>;
1630
- /**
1631
- * @generated from enum livekit.proto.IceTcpCandidateType
1632
- */
1633
- export declare enum IceTcpCandidateType {
1634
- /**
1635
- * @generated from enum value: CANDIDATE_ACTIVE = 0;
1636
- */
1637
- CANDIDATE_ACTIVE = 0,
1638
- /**
1639
- * @generated from enum value: CANDIDATE_PASSIVE = 1;
1640
- */
1641
- CANDIDATE_PASSIVE = 1,
1743
+ declare class StreamStats extends Message<StreamStats> {
1642
1744
  /**
1643
- * @generated from enum value: CANDIDATE_SO = 2;
1745
+ * @generated from field: required string id = 1;
1644
1746
  */
1645
- CANDIDATE_SO = 2
1747
+ id?: string;
1748
+ /**
1749
+ * required int64 timestamp = 3;
1750
+ *
1751
+ * @generated from field: required string stream_identifier = 2;
1752
+ */
1753
+ streamIdentifier?: string;
1754
+ constructor(data?: PartialMessage<StreamStats>);
1755
+ static readonly runtime: typeof proto2;
1756
+ static readonly typeName = "livekit.proto.StreamStats";
1757
+ static readonly fields: FieldList;
1758
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStats;
1759
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStats;
1760
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStats;
1761
+ static equals(a: StreamStats | PlainMessage<StreamStats> | undefined, b: StreamStats | PlainMessage<StreamStats> | undefined): boolean;
1646
1762
  }
1647
- /**
1648
- * Describes the enum livekit.proto.IceTcpCandidateType.
1649
- */
1650
- export declare const IceTcpCandidateTypeSchema: GenEnum<IceTcpCandidateType>;
1651
- //# sourceMappingURL=stats_pb.d.ts.map
1763
+
1764
+ export { AudioPlayoutStats, AudioSourceStats, CandidatePairStats, CertificateStats, CodecStats, DataChannelState, DataChannelStats, DtlsRole, DtlsTransportState, IceCandidatePairState, IceCandidateStats, IceCandidateType, IceRole, IceServerTransportProtocol, IceTcpCandidateType, IceTransportState, InboundRtpStreamStats, MediaSourceStats, OutboundRtpStreamStats, PeerConnectionStats, QualityLimitationReason, ReceivedRtpStreamStats, RemoteInboundRtpStreamStats, RemoteOutboundRtpStreamStats, RtcStats, RtcStatsData, RtcStats_CandidatePair, RtcStats_Certificate, RtcStats_Codec, RtcStats_DataChannel, RtcStats_InboundRtp, RtcStats_LocalCandidate, RtcStats_MediaPlayout, RtcStats_MediaSource, RtcStats_OutboundRtp, RtcStats_PeerConnection, RtcStats_RemoteCandidate, RtcStats_RemoteInboundRtp, RtcStats_RemoteOutboundRtp, RtcStats_Stream, RtcStats_Track, RtcStats_Transport, RtpStreamStats, SentRtpStreamStats, StreamStats, TransportStats, VideoSourceStats };