@livekit/rtc-node 0.0.1 → 0.0.3

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 (74) hide show
  1. package/dist/audio_frame.d.ts +13 -0
  2. package/dist/audio_frame.js +36 -0
  3. package/dist/audio_frame.js.map +1 -0
  4. package/dist/audio_source.d.ts +13 -0
  5. package/dist/audio_source.js +42 -0
  6. package/dist/audio_source.js.map +1 -0
  7. package/dist/audio_stream.d.ts +23 -0
  8. package/dist/audio_stream.js +54 -0
  9. package/dist/audio_stream.js.map +1 -0
  10. package/dist/e2ee.d.ts +43 -0
  11. package/dist/e2ee.js +232 -0
  12. package/dist/e2ee.js.map +1 -0
  13. package/dist/ffi_client.d.ts +22 -0
  14. package/dist/ffi_client.js +57 -0
  15. package/dist/ffi_client.js.map +1 -0
  16. package/dist/index.d.ts +15 -0
  17. package/dist/index.js +71 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/native.d.ts +5 -0
  20. package/dist/native.js +297 -0
  21. package/dist/native.js.map +1 -0
  22. package/dist/participant.d.ts +29 -0
  23. package/dist/participant.js +120 -0
  24. package/dist/participant.js.map +1 -0
  25. package/dist/proto/audio_frame_pb.d.ts +555 -0
  26. package/dist/proto/audio_frame_pb.js +861 -0
  27. package/dist/proto/audio_frame_pb.js.map +1 -0
  28. package/dist/proto/e2ee_pb.d.ts +651 -0
  29. package/dist/proto/e2ee_pb.js +906 -0
  30. package/dist/proto/e2ee_pb.js.map +1 -0
  31. package/dist/proto/ffi_pb.d.ts +671 -0
  32. package/dist/proto/ffi_pb.js +459 -0
  33. package/dist/proto/ffi_pb.js.map +1 -0
  34. package/dist/proto/handle_pb.d.ts +29 -0
  35. package/dist/proto/handle_pb.js +59 -0
  36. package/dist/proto/handle_pb.js.map +1 -0
  37. package/dist/proto/participant_pb.d.ts +53 -0
  38. package/dist/proto/participant_pb.js +93 -0
  39. package/dist/proto/participant_pb.js.map +1 -0
  40. package/dist/proto/room_pb.d.ts +1479 -0
  41. package/dist/proto/room_pb.js +2172 -0
  42. package/dist/proto/room_pb.js.map +1 -0
  43. package/dist/proto/stats_pb.d.ts +1712 -0
  44. package/dist/proto/stats_pb.js +2238 -0
  45. package/dist/proto/stats_pb.js.map +1 -0
  46. package/dist/proto/track_pb.d.ts +352 -0
  47. package/dist/proto/track_pb.js +550 -0
  48. package/dist/proto/track_pb.js.map +1 -0
  49. package/dist/proto/video_frame_pb.d.ts +854 -0
  50. package/dist/proto/video_frame_pb.js +1214 -0
  51. package/dist/proto/video_frame_pb.js.map +1 -0
  52. package/dist/room.d.ts +94 -0
  53. package/dist/room.js +285 -0
  54. package/dist/room.js.map +1 -0
  55. package/dist/track.d.ts +34 -0
  56. package/dist/track.js +72 -0
  57. package/dist/track.js.map +1 -0
  58. package/dist/track_publication.d.ts +30 -0
  59. package/dist/track_publication.js +66 -0
  60. package/dist/track_publication.js.map +1 -0
  61. package/dist/video_frame.d.ts +110 -0
  62. package/dist/video_frame.js +364 -0
  63. package/dist/video_frame.js.map +1 -0
  64. package/dist/video_source.d.ts +13 -0
  65. package/dist/video_source.js +44 -0
  66. package/dist/video_source.js.map +1 -0
  67. package/dist/video_stream.d.ts +23 -0
  68. package/dist/video_stream.js +56 -0
  69. package/dist/video_stream.js.map +1 -0
  70. package/package.json +18 -10
  71. package/src/native.js +25 -0
  72. package/.prettierrc +0 -7
  73. package/generate_proto.sh +0 -34
  74. package/tsconfig.json +0 -14
@@ -0,0 +1,2238 @@
1
+ "use strict";
2
+ // Copyright 2023 LiveKit, Inc.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CertificateStats = exports.IceCandidateStats = exports.CandidatePairStats = exports.TransportStats = exports.DataChannelStats = exports.PeerConnectionStats = exports.AudioPlayoutStats = exports.VideoSourceStats = exports.AudioSourceStats = exports.MediaSourceStats = exports.RemoteOutboundRtpStreamStats = exports.RemoteInboundRtpStreamStats = exports.OutboundRtpStreamStats = exports.SentRtpStreamStats = exports.InboundRtpStreamStats = exports.ReceivedRtpStreamStats = exports.RtpStreamStats = exports.CodecStats = exports.RtcStatsData = exports.RtcStats_Track = exports.RtcStats_Certificate = exports.RtcStats_RemoteCandidate = exports.RtcStats_LocalCandidate = exports.RtcStats_CandidatePair = exports.RtcStats_Transport = exports.RtcStats_DataChannel = exports.RtcStats_PeerConnection = exports.RtcStats_MediaPlayout = exports.RtcStats_MediaSource = exports.RtcStats_RemoteOutboundRtp = exports.RtcStats_RemoteInboundRtp = exports.RtcStats_OutboundRtp = exports.RtcStats_InboundRtp = exports.RtcStats_Codec = exports.RtcStats = exports.IceTcpCandidateType = exports.IceServerTransportProtocol = exports.IceCandidateType = exports.IceCandidatePairState = exports.DtlsRole = exports.IceTransportState = exports.DtlsTransportState = exports.IceRole = exports.QualityLimitationReason = exports.DataChannelState = void 0;
17
+ const protobuf_1 = require("@bufbuild/protobuf");
18
+ /**
19
+ * @generated from enum livekit.proto.DataChannelState
20
+ */
21
+ var DataChannelState;
22
+ (function (DataChannelState) {
23
+ /**
24
+ * @generated from enum value: DC_CONNECTING = 0;
25
+ */
26
+ DataChannelState[DataChannelState["DC_CONNECTING"] = 0] = "DC_CONNECTING";
27
+ /**
28
+ * @generated from enum value: DC_OPEN = 1;
29
+ */
30
+ DataChannelState[DataChannelState["DC_OPEN"] = 1] = "DC_OPEN";
31
+ /**
32
+ * @generated from enum value: DC_CLOSING = 2;
33
+ */
34
+ DataChannelState[DataChannelState["DC_CLOSING"] = 2] = "DC_CLOSING";
35
+ /**
36
+ * @generated from enum value: DC_CLOSED = 3;
37
+ */
38
+ DataChannelState[DataChannelState["DC_CLOSED"] = 3] = "DC_CLOSED";
39
+ })(DataChannelState || (exports.DataChannelState = DataChannelState = {}));
40
+ // Retrieve enum metadata with: proto3.getEnumType(DataChannelState)
41
+ protobuf_1.proto3.util.setEnumType(DataChannelState, "livekit.proto.DataChannelState", [
42
+ { no: 0, name: "DC_CONNECTING" },
43
+ { no: 1, name: "DC_OPEN" },
44
+ { no: 2, name: "DC_CLOSING" },
45
+ { no: 3, name: "DC_CLOSED" },
46
+ ]);
47
+ /**
48
+ * @generated from enum livekit.proto.QualityLimitationReason
49
+ */
50
+ var QualityLimitationReason;
51
+ (function (QualityLimitationReason) {
52
+ /**
53
+ * @generated from enum value: LIMITATION_NONE = 0;
54
+ */
55
+ QualityLimitationReason[QualityLimitationReason["LIMITATION_NONE"] = 0] = "LIMITATION_NONE";
56
+ /**
57
+ * @generated from enum value: LIMITATION_CPU = 1;
58
+ */
59
+ QualityLimitationReason[QualityLimitationReason["LIMITATION_CPU"] = 1] = "LIMITATION_CPU";
60
+ /**
61
+ * @generated from enum value: LIMITATION_BANDWIDTH = 2;
62
+ */
63
+ QualityLimitationReason[QualityLimitationReason["LIMITATION_BANDWIDTH"] = 2] = "LIMITATION_BANDWIDTH";
64
+ /**
65
+ * @generated from enum value: LIMITATION_OTHER = 3;
66
+ */
67
+ QualityLimitationReason[QualityLimitationReason["LIMITATION_OTHER"] = 3] = "LIMITATION_OTHER";
68
+ })(QualityLimitationReason || (exports.QualityLimitationReason = QualityLimitationReason = {}));
69
+ // Retrieve enum metadata with: proto3.getEnumType(QualityLimitationReason)
70
+ protobuf_1.proto3.util.setEnumType(QualityLimitationReason, "livekit.proto.QualityLimitationReason", [
71
+ { no: 0, name: "LIMITATION_NONE" },
72
+ { no: 1, name: "LIMITATION_CPU" },
73
+ { no: 2, name: "LIMITATION_BANDWIDTH" },
74
+ { no: 3, name: "LIMITATION_OTHER" },
75
+ ]);
76
+ /**
77
+ * @generated from enum livekit.proto.IceRole
78
+ */
79
+ var IceRole;
80
+ (function (IceRole) {
81
+ /**
82
+ * @generated from enum value: ICE_UNKNOWN = 0;
83
+ */
84
+ IceRole[IceRole["ICE_UNKNOWN"] = 0] = "ICE_UNKNOWN";
85
+ /**
86
+ * @generated from enum value: ICE_CONTROLLING = 1;
87
+ */
88
+ IceRole[IceRole["ICE_CONTROLLING"] = 1] = "ICE_CONTROLLING";
89
+ /**
90
+ * @generated from enum value: ICE_CONTROLLED = 2;
91
+ */
92
+ IceRole[IceRole["ICE_CONTROLLED"] = 2] = "ICE_CONTROLLED";
93
+ })(IceRole || (exports.IceRole = IceRole = {}));
94
+ // Retrieve enum metadata with: proto3.getEnumType(IceRole)
95
+ protobuf_1.proto3.util.setEnumType(IceRole, "livekit.proto.IceRole", [
96
+ { no: 0, name: "ICE_UNKNOWN" },
97
+ { no: 1, name: "ICE_CONTROLLING" },
98
+ { no: 2, name: "ICE_CONTROLLED" },
99
+ ]);
100
+ /**
101
+ * @generated from enum livekit.proto.DtlsTransportState
102
+ */
103
+ var DtlsTransportState;
104
+ (function (DtlsTransportState) {
105
+ /**
106
+ * @generated from enum value: DTLS_TRANSPORT_NEW = 0;
107
+ */
108
+ DtlsTransportState[DtlsTransportState["DTLS_TRANSPORT_NEW"] = 0] = "DTLS_TRANSPORT_NEW";
109
+ /**
110
+ * @generated from enum value: DTLS_TRANSPORT_CONNECTING = 1;
111
+ */
112
+ DtlsTransportState[DtlsTransportState["DTLS_TRANSPORT_CONNECTING"] = 1] = "DTLS_TRANSPORT_CONNECTING";
113
+ /**
114
+ * @generated from enum value: DTLS_TRANSPORT_CONNECTED = 2;
115
+ */
116
+ DtlsTransportState[DtlsTransportState["DTLS_TRANSPORT_CONNECTED"] = 2] = "DTLS_TRANSPORT_CONNECTED";
117
+ /**
118
+ * @generated from enum value: DTLS_TRANSPORT_CLOSED = 3;
119
+ */
120
+ DtlsTransportState[DtlsTransportState["DTLS_TRANSPORT_CLOSED"] = 3] = "DTLS_TRANSPORT_CLOSED";
121
+ /**
122
+ * @generated from enum value: DTLS_TRANSPORT_FAILED = 4;
123
+ */
124
+ DtlsTransportState[DtlsTransportState["DTLS_TRANSPORT_FAILED"] = 4] = "DTLS_TRANSPORT_FAILED";
125
+ })(DtlsTransportState || (exports.DtlsTransportState = DtlsTransportState = {}));
126
+ // Retrieve enum metadata with: proto3.getEnumType(DtlsTransportState)
127
+ protobuf_1.proto3.util.setEnumType(DtlsTransportState, "livekit.proto.DtlsTransportState", [
128
+ { no: 0, name: "DTLS_TRANSPORT_NEW" },
129
+ { no: 1, name: "DTLS_TRANSPORT_CONNECTING" },
130
+ { no: 2, name: "DTLS_TRANSPORT_CONNECTED" },
131
+ { no: 3, name: "DTLS_TRANSPORT_CLOSED" },
132
+ { no: 4, name: "DTLS_TRANSPORT_FAILED" },
133
+ ]);
134
+ /**
135
+ * @generated from enum livekit.proto.IceTransportState
136
+ */
137
+ var IceTransportState;
138
+ (function (IceTransportState) {
139
+ /**
140
+ * @generated from enum value: ICE_TRANSPORT_NEW = 0;
141
+ */
142
+ IceTransportState[IceTransportState["ICE_TRANSPORT_NEW"] = 0] = "ICE_TRANSPORT_NEW";
143
+ /**
144
+ * @generated from enum value: ICE_TRANSPORT_CHECKING = 1;
145
+ */
146
+ IceTransportState[IceTransportState["ICE_TRANSPORT_CHECKING"] = 1] = "ICE_TRANSPORT_CHECKING";
147
+ /**
148
+ * @generated from enum value: ICE_TRANSPORT_CONNECTED = 2;
149
+ */
150
+ IceTransportState[IceTransportState["ICE_TRANSPORT_CONNECTED"] = 2] = "ICE_TRANSPORT_CONNECTED";
151
+ /**
152
+ * @generated from enum value: ICE_TRANSPORT_COMPLETED = 3;
153
+ */
154
+ IceTransportState[IceTransportState["ICE_TRANSPORT_COMPLETED"] = 3] = "ICE_TRANSPORT_COMPLETED";
155
+ /**
156
+ * @generated from enum value: ICE_TRANSPORT_DISCONNECTED = 4;
157
+ */
158
+ IceTransportState[IceTransportState["ICE_TRANSPORT_DISCONNECTED"] = 4] = "ICE_TRANSPORT_DISCONNECTED";
159
+ /**
160
+ * @generated from enum value: ICE_TRANSPORT_FAILED = 5;
161
+ */
162
+ IceTransportState[IceTransportState["ICE_TRANSPORT_FAILED"] = 5] = "ICE_TRANSPORT_FAILED";
163
+ /**
164
+ * @generated from enum value: ICE_TRANSPORT_CLOSED = 6;
165
+ */
166
+ IceTransportState[IceTransportState["ICE_TRANSPORT_CLOSED"] = 6] = "ICE_TRANSPORT_CLOSED";
167
+ })(IceTransportState || (exports.IceTransportState = IceTransportState = {}));
168
+ // Retrieve enum metadata with: proto3.getEnumType(IceTransportState)
169
+ protobuf_1.proto3.util.setEnumType(IceTransportState, "livekit.proto.IceTransportState", [
170
+ { no: 0, name: "ICE_TRANSPORT_NEW" },
171
+ { no: 1, name: "ICE_TRANSPORT_CHECKING" },
172
+ { no: 2, name: "ICE_TRANSPORT_CONNECTED" },
173
+ { no: 3, name: "ICE_TRANSPORT_COMPLETED" },
174
+ { no: 4, name: "ICE_TRANSPORT_DISCONNECTED" },
175
+ { no: 5, name: "ICE_TRANSPORT_FAILED" },
176
+ { no: 6, name: "ICE_TRANSPORT_CLOSED" },
177
+ ]);
178
+ /**
179
+ * @generated from enum livekit.proto.DtlsRole
180
+ */
181
+ var DtlsRole;
182
+ (function (DtlsRole) {
183
+ /**
184
+ * @generated from enum value: DTLS_CLIENT = 0;
185
+ */
186
+ DtlsRole[DtlsRole["DTLS_CLIENT"] = 0] = "DTLS_CLIENT";
187
+ /**
188
+ * @generated from enum value: DTLS_SERVER = 1;
189
+ */
190
+ DtlsRole[DtlsRole["DTLS_SERVER"] = 1] = "DTLS_SERVER";
191
+ /**
192
+ * @generated from enum value: DTLS_UNKNOWN = 2;
193
+ */
194
+ DtlsRole[DtlsRole["DTLS_UNKNOWN"] = 2] = "DTLS_UNKNOWN";
195
+ })(DtlsRole || (exports.DtlsRole = DtlsRole = {}));
196
+ // Retrieve enum metadata with: proto3.getEnumType(DtlsRole)
197
+ protobuf_1.proto3.util.setEnumType(DtlsRole, "livekit.proto.DtlsRole", [
198
+ { no: 0, name: "DTLS_CLIENT" },
199
+ { no: 1, name: "DTLS_SERVER" },
200
+ { no: 2, name: "DTLS_UNKNOWN" },
201
+ ]);
202
+ /**
203
+ * @generated from enum livekit.proto.IceCandidatePairState
204
+ */
205
+ var IceCandidatePairState;
206
+ (function (IceCandidatePairState) {
207
+ /**
208
+ * @generated from enum value: PAIR_FROZEN = 0;
209
+ */
210
+ IceCandidatePairState[IceCandidatePairState["PAIR_FROZEN"] = 0] = "PAIR_FROZEN";
211
+ /**
212
+ * @generated from enum value: PAIR_WAITING = 1;
213
+ */
214
+ IceCandidatePairState[IceCandidatePairState["PAIR_WAITING"] = 1] = "PAIR_WAITING";
215
+ /**
216
+ * @generated from enum value: PAIR_IN_PROGRESS = 2;
217
+ */
218
+ IceCandidatePairState[IceCandidatePairState["PAIR_IN_PROGRESS"] = 2] = "PAIR_IN_PROGRESS";
219
+ /**
220
+ * @generated from enum value: PAIR_FAILED = 3;
221
+ */
222
+ IceCandidatePairState[IceCandidatePairState["PAIR_FAILED"] = 3] = "PAIR_FAILED";
223
+ /**
224
+ * @generated from enum value: PAIR_SUCCEEDED = 4;
225
+ */
226
+ IceCandidatePairState[IceCandidatePairState["PAIR_SUCCEEDED"] = 4] = "PAIR_SUCCEEDED";
227
+ })(IceCandidatePairState || (exports.IceCandidatePairState = IceCandidatePairState = {}));
228
+ // Retrieve enum metadata with: proto3.getEnumType(IceCandidatePairState)
229
+ protobuf_1.proto3.util.setEnumType(IceCandidatePairState, "livekit.proto.IceCandidatePairState", [
230
+ { no: 0, name: "PAIR_FROZEN" },
231
+ { no: 1, name: "PAIR_WAITING" },
232
+ { no: 2, name: "PAIR_IN_PROGRESS" },
233
+ { no: 3, name: "PAIR_FAILED" },
234
+ { no: 4, name: "PAIR_SUCCEEDED" },
235
+ ]);
236
+ /**
237
+ * @generated from enum livekit.proto.IceCandidateType
238
+ */
239
+ var IceCandidateType;
240
+ (function (IceCandidateType) {
241
+ /**
242
+ * @generated from enum value: HOST = 0;
243
+ */
244
+ IceCandidateType[IceCandidateType["HOST"] = 0] = "HOST";
245
+ /**
246
+ * @generated from enum value: SRFLX = 1;
247
+ */
248
+ IceCandidateType[IceCandidateType["SRFLX"] = 1] = "SRFLX";
249
+ /**
250
+ * @generated from enum value: PRFLX = 2;
251
+ */
252
+ IceCandidateType[IceCandidateType["PRFLX"] = 2] = "PRFLX";
253
+ /**
254
+ * @generated from enum value: RELAY = 3;
255
+ */
256
+ IceCandidateType[IceCandidateType["RELAY"] = 3] = "RELAY";
257
+ })(IceCandidateType || (exports.IceCandidateType = IceCandidateType = {}));
258
+ // Retrieve enum metadata with: proto3.getEnumType(IceCandidateType)
259
+ protobuf_1.proto3.util.setEnumType(IceCandidateType, "livekit.proto.IceCandidateType", [
260
+ { no: 0, name: "HOST" },
261
+ { no: 1, name: "SRFLX" },
262
+ { no: 2, name: "PRFLX" },
263
+ { no: 3, name: "RELAY" },
264
+ ]);
265
+ /**
266
+ * @generated from enum livekit.proto.IceServerTransportProtocol
267
+ */
268
+ var IceServerTransportProtocol;
269
+ (function (IceServerTransportProtocol) {
270
+ /**
271
+ * @generated from enum value: TRANSPORT_UDP = 0;
272
+ */
273
+ IceServerTransportProtocol[IceServerTransportProtocol["TRANSPORT_UDP"] = 0] = "TRANSPORT_UDP";
274
+ /**
275
+ * @generated from enum value: TRANSPORT_TCP = 1;
276
+ */
277
+ IceServerTransportProtocol[IceServerTransportProtocol["TRANSPORT_TCP"] = 1] = "TRANSPORT_TCP";
278
+ /**
279
+ * @generated from enum value: TRANSPORT_TLS = 2;
280
+ */
281
+ IceServerTransportProtocol[IceServerTransportProtocol["TRANSPORT_TLS"] = 2] = "TRANSPORT_TLS";
282
+ })(IceServerTransportProtocol || (exports.IceServerTransportProtocol = IceServerTransportProtocol = {}));
283
+ // Retrieve enum metadata with: proto3.getEnumType(IceServerTransportProtocol)
284
+ protobuf_1.proto3.util.setEnumType(IceServerTransportProtocol, "livekit.proto.IceServerTransportProtocol", [
285
+ { no: 0, name: "TRANSPORT_UDP" },
286
+ { no: 1, name: "TRANSPORT_TCP" },
287
+ { no: 2, name: "TRANSPORT_TLS" },
288
+ ]);
289
+ /**
290
+ * @generated from enum livekit.proto.IceTcpCandidateType
291
+ */
292
+ var IceTcpCandidateType;
293
+ (function (IceTcpCandidateType) {
294
+ /**
295
+ * @generated from enum value: CANDIDATE_ACTIVE = 0;
296
+ */
297
+ IceTcpCandidateType[IceTcpCandidateType["CANDIDATE_ACTIVE"] = 0] = "CANDIDATE_ACTIVE";
298
+ /**
299
+ * @generated from enum value: CANDIDATE_PASSIVE = 1;
300
+ */
301
+ IceTcpCandidateType[IceTcpCandidateType["CANDIDATE_PASSIVE"] = 1] = "CANDIDATE_PASSIVE";
302
+ /**
303
+ * @generated from enum value: CANDIDATE_SO = 2;
304
+ */
305
+ IceTcpCandidateType[IceTcpCandidateType["CANDIDATE_SO"] = 2] = "CANDIDATE_SO";
306
+ })(IceTcpCandidateType || (exports.IceTcpCandidateType = IceTcpCandidateType = {}));
307
+ // Retrieve enum metadata with: proto3.getEnumType(IceTcpCandidateType)
308
+ protobuf_1.proto3.util.setEnumType(IceTcpCandidateType, "livekit.proto.IceTcpCandidateType", [
309
+ { no: 0, name: "CANDIDATE_ACTIVE" },
310
+ { no: 1, name: "CANDIDATE_PASSIVE" },
311
+ { no: 2, name: "CANDIDATE_SO" },
312
+ ]);
313
+ /**
314
+ * @generated from message livekit.proto.RtcStats
315
+ */
316
+ class RtcStats extends protobuf_1.Message {
317
+ constructor(data) {
318
+ super();
319
+ /**
320
+ * @generated from oneof livekit.proto.RtcStats.stats
321
+ */
322
+ this.stats = { case: undefined };
323
+ protobuf_1.proto3.util.initPartial(data, this);
324
+ }
325
+ static fromBinary(bytes, options) {
326
+ return new RtcStats().fromBinary(bytes, options);
327
+ }
328
+ static fromJson(jsonValue, options) {
329
+ return new RtcStats().fromJson(jsonValue, options);
330
+ }
331
+ static fromJsonString(jsonString, options) {
332
+ return new RtcStats().fromJsonString(jsonString, options);
333
+ }
334
+ static equals(a, b) {
335
+ return protobuf_1.proto3.util.equals(RtcStats, a, b);
336
+ }
337
+ }
338
+ exports.RtcStats = RtcStats;
339
+ RtcStats.runtime = protobuf_1.proto3;
340
+ RtcStats.typeName = "livekit.proto.RtcStats";
341
+ RtcStats.fields = protobuf_1.proto3.util.newFieldList(() => [
342
+ { no: 3, name: "codec", kind: "message", T: RtcStats_Codec, oneof: "stats" },
343
+ { no: 4, name: "inbound_rtp", kind: "message", T: RtcStats_InboundRtp, oneof: "stats" },
344
+ { no: 5, name: "outbound_rtp", kind: "message", T: RtcStats_OutboundRtp, oneof: "stats" },
345
+ { no: 6, name: "remote_inbound_rtp", kind: "message", T: RtcStats_RemoteInboundRtp, oneof: "stats" },
346
+ { no: 7, name: "remote_outbound_rtp", kind: "message", T: RtcStats_RemoteOutboundRtp, oneof: "stats" },
347
+ { no: 8, name: "media_source", kind: "message", T: RtcStats_MediaSource, oneof: "stats" },
348
+ { no: 9, name: "media_playout", kind: "message", T: RtcStats_MediaPlayout, oneof: "stats" },
349
+ { no: 10, name: "peer_connection", kind: "message", T: RtcStats_PeerConnection, oneof: "stats" },
350
+ { no: 11, name: "data_channel", kind: "message", T: RtcStats_DataChannel, oneof: "stats" },
351
+ { no: 12, name: "transport", kind: "message", T: RtcStats_Transport, oneof: "stats" },
352
+ { no: 13, name: "candidate_pair", kind: "message", T: RtcStats_CandidatePair, oneof: "stats" },
353
+ { no: 14, name: "local_candidate", kind: "message", T: RtcStats_LocalCandidate, oneof: "stats" },
354
+ { no: 15, name: "remote_candidate", kind: "message", T: RtcStats_RemoteCandidate, oneof: "stats" },
355
+ { no: 16, name: "certificate", kind: "message", T: RtcStats_Certificate, oneof: "stats" },
356
+ { no: 17, name: "track", kind: "message", T: RtcStats_Track, oneof: "stats" },
357
+ ]);
358
+ /**
359
+ * @generated from message livekit.proto.RtcStats.Codec
360
+ */
361
+ class RtcStats_Codec extends protobuf_1.Message {
362
+ constructor(data) {
363
+ super();
364
+ protobuf_1.proto3.util.initPartial(data, this);
365
+ }
366
+ static fromBinary(bytes, options) {
367
+ return new RtcStats_Codec().fromBinary(bytes, options);
368
+ }
369
+ static fromJson(jsonValue, options) {
370
+ return new RtcStats_Codec().fromJson(jsonValue, options);
371
+ }
372
+ static fromJsonString(jsonString, options) {
373
+ return new RtcStats_Codec().fromJsonString(jsonString, options);
374
+ }
375
+ static equals(a, b) {
376
+ return protobuf_1.proto3.util.equals(RtcStats_Codec, a, b);
377
+ }
378
+ }
379
+ exports.RtcStats_Codec = RtcStats_Codec;
380
+ RtcStats_Codec.runtime = protobuf_1.proto3;
381
+ RtcStats_Codec.typeName = "livekit.proto.RtcStats.Codec";
382
+ RtcStats_Codec.fields = protobuf_1.proto3.util.newFieldList(() => [
383
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
384
+ { no: 2, name: "codec", kind: "message", T: CodecStats },
385
+ ]);
386
+ /**
387
+ * @generated from message livekit.proto.RtcStats.InboundRtp
388
+ */
389
+ class RtcStats_InboundRtp extends protobuf_1.Message {
390
+ constructor(data) {
391
+ super();
392
+ protobuf_1.proto3.util.initPartial(data, this);
393
+ }
394
+ static fromBinary(bytes, options) {
395
+ return new RtcStats_InboundRtp().fromBinary(bytes, options);
396
+ }
397
+ static fromJson(jsonValue, options) {
398
+ return new RtcStats_InboundRtp().fromJson(jsonValue, options);
399
+ }
400
+ static fromJsonString(jsonString, options) {
401
+ return new RtcStats_InboundRtp().fromJsonString(jsonString, options);
402
+ }
403
+ static equals(a, b) {
404
+ return protobuf_1.proto3.util.equals(RtcStats_InboundRtp, a, b);
405
+ }
406
+ }
407
+ exports.RtcStats_InboundRtp = RtcStats_InboundRtp;
408
+ RtcStats_InboundRtp.runtime = protobuf_1.proto3;
409
+ RtcStats_InboundRtp.typeName = "livekit.proto.RtcStats.InboundRtp";
410
+ RtcStats_InboundRtp.fields = protobuf_1.proto3.util.newFieldList(() => [
411
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
412
+ { no: 2, name: "stream", kind: "message", T: RtpStreamStats },
413
+ { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats },
414
+ { no: 4, name: "inbound", kind: "message", T: InboundRtpStreamStats },
415
+ ]);
416
+ /**
417
+ * @generated from message livekit.proto.RtcStats.OutboundRtp
418
+ */
419
+ class RtcStats_OutboundRtp extends protobuf_1.Message {
420
+ constructor(data) {
421
+ super();
422
+ protobuf_1.proto3.util.initPartial(data, this);
423
+ }
424
+ static fromBinary(bytes, options) {
425
+ return new RtcStats_OutboundRtp().fromBinary(bytes, options);
426
+ }
427
+ static fromJson(jsonValue, options) {
428
+ return new RtcStats_OutboundRtp().fromJson(jsonValue, options);
429
+ }
430
+ static fromJsonString(jsonString, options) {
431
+ return new RtcStats_OutboundRtp().fromJsonString(jsonString, options);
432
+ }
433
+ static equals(a, b) {
434
+ return protobuf_1.proto3.util.equals(RtcStats_OutboundRtp, a, b);
435
+ }
436
+ }
437
+ exports.RtcStats_OutboundRtp = RtcStats_OutboundRtp;
438
+ RtcStats_OutboundRtp.runtime = protobuf_1.proto3;
439
+ RtcStats_OutboundRtp.typeName = "livekit.proto.RtcStats.OutboundRtp";
440
+ RtcStats_OutboundRtp.fields = protobuf_1.proto3.util.newFieldList(() => [
441
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
442
+ { no: 2, name: "stream", kind: "message", T: RtpStreamStats },
443
+ { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats },
444
+ { no: 4, name: "outbound", kind: "message", T: OutboundRtpStreamStats },
445
+ ]);
446
+ /**
447
+ * @generated from message livekit.proto.RtcStats.RemoteInboundRtp
448
+ */
449
+ class RtcStats_RemoteInboundRtp extends protobuf_1.Message {
450
+ constructor(data) {
451
+ super();
452
+ protobuf_1.proto3.util.initPartial(data, this);
453
+ }
454
+ static fromBinary(bytes, options) {
455
+ return new RtcStats_RemoteInboundRtp().fromBinary(bytes, options);
456
+ }
457
+ static fromJson(jsonValue, options) {
458
+ return new RtcStats_RemoteInboundRtp().fromJson(jsonValue, options);
459
+ }
460
+ static fromJsonString(jsonString, options) {
461
+ return new RtcStats_RemoteInboundRtp().fromJsonString(jsonString, options);
462
+ }
463
+ static equals(a, b) {
464
+ return protobuf_1.proto3.util.equals(RtcStats_RemoteInboundRtp, a, b);
465
+ }
466
+ }
467
+ exports.RtcStats_RemoteInboundRtp = RtcStats_RemoteInboundRtp;
468
+ RtcStats_RemoteInboundRtp.runtime = protobuf_1.proto3;
469
+ RtcStats_RemoteInboundRtp.typeName = "livekit.proto.RtcStats.RemoteInboundRtp";
470
+ RtcStats_RemoteInboundRtp.fields = protobuf_1.proto3.util.newFieldList(() => [
471
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
472
+ { no: 2, name: "stream", kind: "message", T: RtpStreamStats },
473
+ { no: 3, name: "received", kind: "message", T: ReceivedRtpStreamStats },
474
+ { no: 4, name: "remote_inbound", kind: "message", T: RemoteInboundRtpStreamStats },
475
+ ]);
476
+ /**
477
+ * @generated from message livekit.proto.RtcStats.RemoteOutboundRtp
478
+ */
479
+ class RtcStats_RemoteOutboundRtp extends protobuf_1.Message {
480
+ constructor(data) {
481
+ super();
482
+ protobuf_1.proto3.util.initPartial(data, this);
483
+ }
484
+ static fromBinary(bytes, options) {
485
+ return new RtcStats_RemoteOutboundRtp().fromBinary(bytes, options);
486
+ }
487
+ static fromJson(jsonValue, options) {
488
+ return new RtcStats_RemoteOutboundRtp().fromJson(jsonValue, options);
489
+ }
490
+ static fromJsonString(jsonString, options) {
491
+ return new RtcStats_RemoteOutboundRtp().fromJsonString(jsonString, options);
492
+ }
493
+ static equals(a, b) {
494
+ return protobuf_1.proto3.util.equals(RtcStats_RemoteOutboundRtp, a, b);
495
+ }
496
+ }
497
+ exports.RtcStats_RemoteOutboundRtp = RtcStats_RemoteOutboundRtp;
498
+ RtcStats_RemoteOutboundRtp.runtime = protobuf_1.proto3;
499
+ RtcStats_RemoteOutboundRtp.typeName = "livekit.proto.RtcStats.RemoteOutboundRtp";
500
+ RtcStats_RemoteOutboundRtp.fields = protobuf_1.proto3.util.newFieldList(() => [
501
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
502
+ { no: 2, name: "stream", kind: "message", T: RtpStreamStats },
503
+ { no: 3, name: "sent", kind: "message", T: SentRtpStreamStats },
504
+ { no: 4, name: "remote_outbound", kind: "message", T: RemoteOutboundRtpStreamStats },
505
+ ]);
506
+ /**
507
+ * @generated from message livekit.proto.RtcStats.MediaSource
508
+ */
509
+ class RtcStats_MediaSource extends protobuf_1.Message {
510
+ constructor(data) {
511
+ super();
512
+ protobuf_1.proto3.util.initPartial(data, this);
513
+ }
514
+ static fromBinary(bytes, options) {
515
+ return new RtcStats_MediaSource().fromBinary(bytes, options);
516
+ }
517
+ static fromJson(jsonValue, options) {
518
+ return new RtcStats_MediaSource().fromJson(jsonValue, options);
519
+ }
520
+ static fromJsonString(jsonString, options) {
521
+ return new RtcStats_MediaSource().fromJsonString(jsonString, options);
522
+ }
523
+ static equals(a, b) {
524
+ return protobuf_1.proto3.util.equals(RtcStats_MediaSource, a, b);
525
+ }
526
+ }
527
+ exports.RtcStats_MediaSource = RtcStats_MediaSource;
528
+ RtcStats_MediaSource.runtime = protobuf_1.proto3;
529
+ RtcStats_MediaSource.typeName = "livekit.proto.RtcStats.MediaSource";
530
+ RtcStats_MediaSource.fields = protobuf_1.proto3.util.newFieldList(() => [
531
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
532
+ { no: 2, name: "source", kind: "message", T: MediaSourceStats },
533
+ { no: 3, name: "audio", kind: "message", T: AudioSourceStats },
534
+ { no: 4, name: "video", kind: "message", T: VideoSourceStats },
535
+ ]);
536
+ /**
537
+ * @generated from message livekit.proto.RtcStats.MediaPlayout
538
+ */
539
+ class RtcStats_MediaPlayout extends protobuf_1.Message {
540
+ constructor(data) {
541
+ super();
542
+ protobuf_1.proto3.util.initPartial(data, this);
543
+ }
544
+ static fromBinary(bytes, options) {
545
+ return new RtcStats_MediaPlayout().fromBinary(bytes, options);
546
+ }
547
+ static fromJson(jsonValue, options) {
548
+ return new RtcStats_MediaPlayout().fromJson(jsonValue, options);
549
+ }
550
+ static fromJsonString(jsonString, options) {
551
+ return new RtcStats_MediaPlayout().fromJsonString(jsonString, options);
552
+ }
553
+ static equals(a, b) {
554
+ return protobuf_1.proto3.util.equals(RtcStats_MediaPlayout, a, b);
555
+ }
556
+ }
557
+ exports.RtcStats_MediaPlayout = RtcStats_MediaPlayout;
558
+ RtcStats_MediaPlayout.runtime = protobuf_1.proto3;
559
+ RtcStats_MediaPlayout.typeName = "livekit.proto.RtcStats.MediaPlayout";
560
+ RtcStats_MediaPlayout.fields = protobuf_1.proto3.util.newFieldList(() => [
561
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
562
+ { no: 2, name: "audio_playout", kind: "message", T: AudioPlayoutStats },
563
+ ]);
564
+ /**
565
+ * @generated from message livekit.proto.RtcStats.PeerConnection
566
+ */
567
+ class RtcStats_PeerConnection extends protobuf_1.Message {
568
+ constructor(data) {
569
+ super();
570
+ protobuf_1.proto3.util.initPartial(data, this);
571
+ }
572
+ static fromBinary(bytes, options) {
573
+ return new RtcStats_PeerConnection().fromBinary(bytes, options);
574
+ }
575
+ static fromJson(jsonValue, options) {
576
+ return new RtcStats_PeerConnection().fromJson(jsonValue, options);
577
+ }
578
+ static fromJsonString(jsonString, options) {
579
+ return new RtcStats_PeerConnection().fromJsonString(jsonString, options);
580
+ }
581
+ static equals(a, b) {
582
+ return protobuf_1.proto3.util.equals(RtcStats_PeerConnection, a, b);
583
+ }
584
+ }
585
+ exports.RtcStats_PeerConnection = RtcStats_PeerConnection;
586
+ RtcStats_PeerConnection.runtime = protobuf_1.proto3;
587
+ RtcStats_PeerConnection.typeName = "livekit.proto.RtcStats.PeerConnection";
588
+ RtcStats_PeerConnection.fields = protobuf_1.proto3.util.newFieldList(() => [
589
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
590
+ { no: 2, name: "pc", kind: "message", T: PeerConnectionStats },
591
+ ]);
592
+ /**
593
+ * @generated from message livekit.proto.RtcStats.DataChannel
594
+ */
595
+ class RtcStats_DataChannel extends protobuf_1.Message {
596
+ constructor(data) {
597
+ super();
598
+ protobuf_1.proto3.util.initPartial(data, this);
599
+ }
600
+ static fromBinary(bytes, options) {
601
+ return new RtcStats_DataChannel().fromBinary(bytes, options);
602
+ }
603
+ static fromJson(jsonValue, options) {
604
+ return new RtcStats_DataChannel().fromJson(jsonValue, options);
605
+ }
606
+ static fromJsonString(jsonString, options) {
607
+ return new RtcStats_DataChannel().fromJsonString(jsonString, options);
608
+ }
609
+ static equals(a, b) {
610
+ return protobuf_1.proto3.util.equals(RtcStats_DataChannel, a, b);
611
+ }
612
+ }
613
+ exports.RtcStats_DataChannel = RtcStats_DataChannel;
614
+ RtcStats_DataChannel.runtime = protobuf_1.proto3;
615
+ RtcStats_DataChannel.typeName = "livekit.proto.RtcStats.DataChannel";
616
+ RtcStats_DataChannel.fields = protobuf_1.proto3.util.newFieldList(() => [
617
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
618
+ { no: 2, name: "dc", kind: "message", T: DataChannelStats },
619
+ ]);
620
+ /**
621
+ * @generated from message livekit.proto.RtcStats.Transport
622
+ */
623
+ class RtcStats_Transport extends protobuf_1.Message {
624
+ constructor(data) {
625
+ super();
626
+ protobuf_1.proto3.util.initPartial(data, this);
627
+ }
628
+ static fromBinary(bytes, options) {
629
+ return new RtcStats_Transport().fromBinary(bytes, options);
630
+ }
631
+ static fromJson(jsonValue, options) {
632
+ return new RtcStats_Transport().fromJson(jsonValue, options);
633
+ }
634
+ static fromJsonString(jsonString, options) {
635
+ return new RtcStats_Transport().fromJsonString(jsonString, options);
636
+ }
637
+ static equals(a, b) {
638
+ return protobuf_1.proto3.util.equals(RtcStats_Transport, a, b);
639
+ }
640
+ }
641
+ exports.RtcStats_Transport = RtcStats_Transport;
642
+ RtcStats_Transport.runtime = protobuf_1.proto3;
643
+ RtcStats_Transport.typeName = "livekit.proto.RtcStats.Transport";
644
+ RtcStats_Transport.fields = protobuf_1.proto3.util.newFieldList(() => [
645
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
646
+ { no: 2, name: "transport", kind: "message", T: TransportStats },
647
+ ]);
648
+ /**
649
+ * @generated from message livekit.proto.RtcStats.CandidatePair
650
+ */
651
+ class RtcStats_CandidatePair extends protobuf_1.Message {
652
+ constructor(data) {
653
+ super();
654
+ protobuf_1.proto3.util.initPartial(data, this);
655
+ }
656
+ static fromBinary(bytes, options) {
657
+ return new RtcStats_CandidatePair().fromBinary(bytes, options);
658
+ }
659
+ static fromJson(jsonValue, options) {
660
+ return new RtcStats_CandidatePair().fromJson(jsonValue, options);
661
+ }
662
+ static fromJsonString(jsonString, options) {
663
+ return new RtcStats_CandidatePair().fromJsonString(jsonString, options);
664
+ }
665
+ static equals(a, b) {
666
+ return protobuf_1.proto3.util.equals(RtcStats_CandidatePair, a, b);
667
+ }
668
+ }
669
+ exports.RtcStats_CandidatePair = RtcStats_CandidatePair;
670
+ RtcStats_CandidatePair.runtime = protobuf_1.proto3;
671
+ RtcStats_CandidatePair.typeName = "livekit.proto.RtcStats.CandidatePair";
672
+ RtcStats_CandidatePair.fields = protobuf_1.proto3.util.newFieldList(() => [
673
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
674
+ { no: 2, name: "candidate_pair", kind: "message", T: CandidatePairStats },
675
+ ]);
676
+ /**
677
+ * @generated from message livekit.proto.RtcStats.LocalCandidate
678
+ */
679
+ class RtcStats_LocalCandidate extends protobuf_1.Message {
680
+ constructor(data) {
681
+ super();
682
+ protobuf_1.proto3.util.initPartial(data, this);
683
+ }
684
+ static fromBinary(bytes, options) {
685
+ return new RtcStats_LocalCandidate().fromBinary(bytes, options);
686
+ }
687
+ static fromJson(jsonValue, options) {
688
+ return new RtcStats_LocalCandidate().fromJson(jsonValue, options);
689
+ }
690
+ static fromJsonString(jsonString, options) {
691
+ return new RtcStats_LocalCandidate().fromJsonString(jsonString, options);
692
+ }
693
+ static equals(a, b) {
694
+ return protobuf_1.proto3.util.equals(RtcStats_LocalCandidate, a, b);
695
+ }
696
+ }
697
+ exports.RtcStats_LocalCandidate = RtcStats_LocalCandidate;
698
+ RtcStats_LocalCandidate.runtime = protobuf_1.proto3;
699
+ RtcStats_LocalCandidate.typeName = "livekit.proto.RtcStats.LocalCandidate";
700
+ RtcStats_LocalCandidate.fields = protobuf_1.proto3.util.newFieldList(() => [
701
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
702
+ { no: 2, name: "candidate", kind: "message", T: IceCandidateStats },
703
+ ]);
704
+ /**
705
+ * @generated from message livekit.proto.RtcStats.RemoteCandidate
706
+ */
707
+ class RtcStats_RemoteCandidate extends protobuf_1.Message {
708
+ constructor(data) {
709
+ super();
710
+ protobuf_1.proto3.util.initPartial(data, this);
711
+ }
712
+ static fromBinary(bytes, options) {
713
+ return new RtcStats_RemoteCandidate().fromBinary(bytes, options);
714
+ }
715
+ static fromJson(jsonValue, options) {
716
+ return new RtcStats_RemoteCandidate().fromJson(jsonValue, options);
717
+ }
718
+ static fromJsonString(jsonString, options) {
719
+ return new RtcStats_RemoteCandidate().fromJsonString(jsonString, options);
720
+ }
721
+ static equals(a, b) {
722
+ return protobuf_1.proto3.util.equals(RtcStats_RemoteCandidate, a, b);
723
+ }
724
+ }
725
+ exports.RtcStats_RemoteCandidate = RtcStats_RemoteCandidate;
726
+ RtcStats_RemoteCandidate.runtime = protobuf_1.proto3;
727
+ RtcStats_RemoteCandidate.typeName = "livekit.proto.RtcStats.RemoteCandidate";
728
+ RtcStats_RemoteCandidate.fields = protobuf_1.proto3.util.newFieldList(() => [
729
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
730
+ { no: 2, name: "candidate", kind: "message", T: IceCandidateStats },
731
+ ]);
732
+ /**
733
+ * @generated from message livekit.proto.RtcStats.Certificate
734
+ */
735
+ class RtcStats_Certificate extends protobuf_1.Message {
736
+ constructor(data) {
737
+ super();
738
+ protobuf_1.proto3.util.initPartial(data, this);
739
+ }
740
+ static fromBinary(bytes, options) {
741
+ return new RtcStats_Certificate().fromBinary(bytes, options);
742
+ }
743
+ static fromJson(jsonValue, options) {
744
+ return new RtcStats_Certificate().fromJson(jsonValue, options);
745
+ }
746
+ static fromJsonString(jsonString, options) {
747
+ return new RtcStats_Certificate().fromJsonString(jsonString, options);
748
+ }
749
+ static equals(a, b) {
750
+ return protobuf_1.proto3.util.equals(RtcStats_Certificate, a, b);
751
+ }
752
+ }
753
+ exports.RtcStats_Certificate = RtcStats_Certificate;
754
+ RtcStats_Certificate.runtime = protobuf_1.proto3;
755
+ RtcStats_Certificate.typeName = "livekit.proto.RtcStats.Certificate";
756
+ RtcStats_Certificate.fields = protobuf_1.proto3.util.newFieldList(() => [
757
+ { no: 1, name: "rtc", kind: "message", T: RtcStatsData },
758
+ { no: 2, name: "certificate", kind: "message", T: CertificateStats },
759
+ ]);
760
+ /**
761
+ * Deprecated
762
+ *
763
+ * @generated from message livekit.proto.RtcStats.Track
764
+ */
765
+ class RtcStats_Track extends protobuf_1.Message {
766
+ constructor(data) {
767
+ super();
768
+ protobuf_1.proto3.util.initPartial(data, this);
769
+ }
770
+ static fromBinary(bytes, options) {
771
+ return new RtcStats_Track().fromBinary(bytes, options);
772
+ }
773
+ static fromJson(jsonValue, options) {
774
+ return new RtcStats_Track().fromJson(jsonValue, options);
775
+ }
776
+ static fromJsonString(jsonString, options) {
777
+ return new RtcStats_Track().fromJsonString(jsonString, options);
778
+ }
779
+ static equals(a, b) {
780
+ return protobuf_1.proto3.util.equals(RtcStats_Track, a, b);
781
+ }
782
+ }
783
+ exports.RtcStats_Track = RtcStats_Track;
784
+ RtcStats_Track.runtime = protobuf_1.proto3;
785
+ RtcStats_Track.typeName = "livekit.proto.RtcStats.Track";
786
+ RtcStats_Track.fields = protobuf_1.proto3.util.newFieldList(() => []);
787
+ /**
788
+ * @generated from message livekit.proto.RtcStatsData
789
+ */
790
+ class RtcStatsData extends protobuf_1.Message {
791
+ constructor(data) {
792
+ super();
793
+ /**
794
+ * @generated from field: string id = 1;
795
+ */
796
+ this.id = "";
797
+ /**
798
+ * @generated from field: int64 timestamp = 2;
799
+ */
800
+ this.timestamp = protobuf_1.protoInt64.zero;
801
+ protobuf_1.proto3.util.initPartial(data, this);
802
+ }
803
+ static fromBinary(bytes, options) {
804
+ return new RtcStatsData().fromBinary(bytes, options);
805
+ }
806
+ static fromJson(jsonValue, options) {
807
+ return new RtcStatsData().fromJson(jsonValue, options);
808
+ }
809
+ static fromJsonString(jsonString, options) {
810
+ return new RtcStatsData().fromJsonString(jsonString, options);
811
+ }
812
+ static equals(a, b) {
813
+ return protobuf_1.proto3.util.equals(RtcStatsData, a, b);
814
+ }
815
+ }
816
+ exports.RtcStatsData = RtcStatsData;
817
+ RtcStatsData.runtime = protobuf_1.proto3;
818
+ RtcStatsData.typeName = "livekit.proto.RtcStatsData";
819
+ RtcStatsData.fields = protobuf_1.proto3.util.newFieldList(() => [
820
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
821
+ { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
822
+ ]);
823
+ /**
824
+ * @generated from message livekit.proto.CodecStats
825
+ */
826
+ class CodecStats extends protobuf_1.Message {
827
+ constructor(data) {
828
+ super();
829
+ /**
830
+ * @generated from field: uint32 payload_type = 1;
831
+ */
832
+ this.payloadType = 0;
833
+ /**
834
+ * @generated from field: string transport_id = 2;
835
+ */
836
+ this.transportId = "";
837
+ /**
838
+ * @generated from field: string mime_type = 3;
839
+ */
840
+ this.mimeType = "";
841
+ /**
842
+ * @generated from field: uint32 clock_rate = 4;
843
+ */
844
+ this.clockRate = 0;
845
+ /**
846
+ * @generated from field: uint32 channels = 5;
847
+ */
848
+ this.channels = 0;
849
+ /**
850
+ * @generated from field: string sdp_fmtp_line = 6;
851
+ */
852
+ this.sdpFmtpLine = "";
853
+ protobuf_1.proto3.util.initPartial(data, this);
854
+ }
855
+ static fromBinary(bytes, options) {
856
+ return new CodecStats().fromBinary(bytes, options);
857
+ }
858
+ static fromJson(jsonValue, options) {
859
+ return new CodecStats().fromJson(jsonValue, options);
860
+ }
861
+ static fromJsonString(jsonString, options) {
862
+ return new CodecStats().fromJsonString(jsonString, options);
863
+ }
864
+ static equals(a, b) {
865
+ return protobuf_1.proto3.util.equals(CodecStats, a, b);
866
+ }
867
+ }
868
+ exports.CodecStats = CodecStats;
869
+ CodecStats.runtime = protobuf_1.proto3;
870
+ CodecStats.typeName = "livekit.proto.CodecStats";
871
+ CodecStats.fields = protobuf_1.proto3.util.newFieldList(() => [
872
+ { no: 1, name: "payload_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
873
+ { no: 2, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
874
+ { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
875
+ { no: 4, name: "clock_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
876
+ { no: 5, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
877
+ { no: 6, name: "sdp_fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
+ ]);
879
+ /**
880
+ * @generated from message livekit.proto.RtpStreamStats
881
+ */
882
+ class RtpStreamStats extends protobuf_1.Message {
883
+ constructor(data) {
884
+ super();
885
+ /**
886
+ * @generated from field: uint32 ssrc = 1;
887
+ */
888
+ this.ssrc = 0;
889
+ /**
890
+ * @generated from field: string kind = 2;
891
+ */
892
+ this.kind = "";
893
+ /**
894
+ * @generated from field: string transport_id = 3;
895
+ */
896
+ this.transportId = "";
897
+ /**
898
+ * @generated from field: string codec_id = 4;
899
+ */
900
+ this.codecId = "";
901
+ protobuf_1.proto3.util.initPartial(data, this);
902
+ }
903
+ static fromBinary(bytes, options) {
904
+ return new RtpStreamStats().fromBinary(bytes, options);
905
+ }
906
+ static fromJson(jsonValue, options) {
907
+ return new RtpStreamStats().fromJson(jsonValue, options);
908
+ }
909
+ static fromJsonString(jsonString, options) {
910
+ return new RtpStreamStats().fromJsonString(jsonString, options);
911
+ }
912
+ static equals(a, b) {
913
+ return protobuf_1.proto3.util.equals(RtpStreamStats, a, b);
914
+ }
915
+ }
916
+ exports.RtpStreamStats = RtpStreamStats;
917
+ RtpStreamStats.runtime = protobuf_1.proto3;
918
+ RtpStreamStats.typeName = "livekit.proto.RtpStreamStats";
919
+ RtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
920
+ { no: 1, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
921
+ { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
922
+ { no: 3, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
923
+ { no: 4, name: "codec_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
924
+ ]);
925
+ /**
926
+ * @generated from message livekit.proto.ReceivedRtpStreamStats
927
+ */
928
+ class ReceivedRtpStreamStats extends protobuf_1.Message {
929
+ constructor(data) {
930
+ super();
931
+ /**
932
+ * @generated from field: uint64 packets_received = 1;
933
+ */
934
+ this.packetsReceived = protobuf_1.protoInt64.zero;
935
+ /**
936
+ * @generated from field: int64 packets_lost = 2;
937
+ */
938
+ this.packetsLost = protobuf_1.protoInt64.zero;
939
+ /**
940
+ * @generated from field: double jitter = 3;
941
+ */
942
+ this.jitter = 0;
943
+ protobuf_1.proto3.util.initPartial(data, this);
944
+ }
945
+ static fromBinary(bytes, options) {
946
+ return new ReceivedRtpStreamStats().fromBinary(bytes, options);
947
+ }
948
+ static fromJson(jsonValue, options) {
949
+ return new ReceivedRtpStreamStats().fromJson(jsonValue, options);
950
+ }
951
+ static fromJsonString(jsonString, options) {
952
+ return new ReceivedRtpStreamStats().fromJsonString(jsonString, options);
953
+ }
954
+ static equals(a, b) {
955
+ return protobuf_1.proto3.util.equals(ReceivedRtpStreamStats, a, b);
956
+ }
957
+ }
958
+ exports.ReceivedRtpStreamStats = ReceivedRtpStreamStats;
959
+ ReceivedRtpStreamStats.runtime = protobuf_1.proto3;
960
+ ReceivedRtpStreamStats.typeName = "livekit.proto.ReceivedRtpStreamStats";
961
+ ReceivedRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
962
+ { no: 1, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
963
+ { no: 2, name: "packets_lost", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
964
+ { no: 3, name: "jitter", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
965
+ ]);
966
+ /**
967
+ * @generated from message livekit.proto.InboundRtpStreamStats
968
+ */
969
+ class InboundRtpStreamStats extends protobuf_1.Message {
970
+ constructor(data) {
971
+ super();
972
+ /**
973
+ * @generated from field: string track_identifier = 1;
974
+ */
975
+ this.trackIdentifier = "";
976
+ /**
977
+ * @generated from field: string mid = 2;
978
+ */
979
+ this.mid = "";
980
+ /**
981
+ * @generated from field: string remote_id = 3;
982
+ */
983
+ this.remoteId = "";
984
+ /**
985
+ * @generated from field: uint32 frames_decoded = 4;
986
+ */
987
+ this.framesDecoded = 0;
988
+ /**
989
+ * @generated from field: uint32 key_frames_decoded = 5;
990
+ */
991
+ this.keyFramesDecoded = 0;
992
+ /**
993
+ * @generated from field: uint32 frames_rendered = 6;
994
+ */
995
+ this.framesRendered = 0;
996
+ /**
997
+ * @generated from field: uint32 frames_dropped = 7;
998
+ */
999
+ this.framesDropped = 0;
1000
+ /**
1001
+ * @generated from field: uint32 frame_width = 8;
1002
+ */
1003
+ this.frameWidth = 0;
1004
+ /**
1005
+ * @generated from field: uint32 frame_height = 9;
1006
+ */
1007
+ this.frameHeight = 0;
1008
+ /**
1009
+ * @generated from field: double frames_per_second = 10;
1010
+ */
1011
+ this.framesPerSecond = 0;
1012
+ /**
1013
+ * @generated from field: uint64 qp_sum = 11;
1014
+ */
1015
+ this.qpSum = protobuf_1.protoInt64.zero;
1016
+ /**
1017
+ * @generated from field: double total_decode_time = 12;
1018
+ */
1019
+ this.totalDecodeTime = 0;
1020
+ /**
1021
+ * @generated from field: double total_inter_frame_delay = 13;
1022
+ */
1023
+ this.totalInterFrameDelay = 0;
1024
+ /**
1025
+ * @generated from field: double total_squared_inter_frame_delay = 14;
1026
+ */
1027
+ this.totalSquaredInterFrameDelay = 0;
1028
+ /**
1029
+ * @generated from field: uint32 pause_count = 15;
1030
+ */
1031
+ this.pauseCount = 0;
1032
+ /**
1033
+ * @generated from field: double total_pause_duration = 16;
1034
+ */
1035
+ this.totalPauseDuration = 0;
1036
+ /**
1037
+ * @generated from field: uint32 freeze_count = 17;
1038
+ */
1039
+ this.freezeCount = 0;
1040
+ /**
1041
+ * @generated from field: double total_freeze_duration = 18;
1042
+ */
1043
+ this.totalFreezeDuration = 0;
1044
+ /**
1045
+ * @generated from field: double last_packet_received_timestamp = 19;
1046
+ */
1047
+ this.lastPacketReceivedTimestamp = 0;
1048
+ /**
1049
+ * @generated from field: uint64 header_bytes_received = 20;
1050
+ */
1051
+ this.headerBytesReceived = protobuf_1.protoInt64.zero;
1052
+ /**
1053
+ * @generated from field: uint64 packets_discarded = 21;
1054
+ */
1055
+ this.packetsDiscarded = protobuf_1.protoInt64.zero;
1056
+ /**
1057
+ * @generated from field: uint64 fec_bytes_received = 22;
1058
+ */
1059
+ this.fecBytesReceived = protobuf_1.protoInt64.zero;
1060
+ /**
1061
+ * @generated from field: uint64 fec_packets_received = 23;
1062
+ */
1063
+ this.fecPacketsReceived = protobuf_1.protoInt64.zero;
1064
+ /**
1065
+ * @generated from field: uint64 fec_packets_discarded = 24;
1066
+ */
1067
+ this.fecPacketsDiscarded = protobuf_1.protoInt64.zero;
1068
+ /**
1069
+ * @generated from field: uint64 bytes_received = 25;
1070
+ */
1071
+ this.bytesReceived = protobuf_1.protoInt64.zero;
1072
+ /**
1073
+ * @generated from field: uint32 nack_count = 26;
1074
+ */
1075
+ this.nackCount = 0;
1076
+ /**
1077
+ * @generated from field: uint32 fir_count = 27;
1078
+ */
1079
+ this.firCount = 0;
1080
+ /**
1081
+ * @generated from field: uint32 pli_count = 28;
1082
+ */
1083
+ this.pliCount = 0;
1084
+ /**
1085
+ * @generated from field: double total_processing_delay = 29;
1086
+ */
1087
+ this.totalProcessingDelay = 0;
1088
+ /**
1089
+ * @generated from field: double estimated_playout_timestamp = 30;
1090
+ */
1091
+ this.estimatedPlayoutTimestamp = 0;
1092
+ /**
1093
+ * @generated from field: double jitter_buffer_delay = 31;
1094
+ */
1095
+ this.jitterBufferDelay = 0;
1096
+ /**
1097
+ * @generated from field: double jitter_buffer_target_delay = 32;
1098
+ */
1099
+ this.jitterBufferTargetDelay = 0;
1100
+ /**
1101
+ * @generated from field: uint64 jitter_buffer_emitted_count = 33;
1102
+ */
1103
+ this.jitterBufferEmittedCount = protobuf_1.protoInt64.zero;
1104
+ /**
1105
+ * @generated from field: double jitter_buffer_minimum_delay = 34;
1106
+ */
1107
+ this.jitterBufferMinimumDelay = 0;
1108
+ /**
1109
+ * @generated from field: uint64 total_samples_received = 35;
1110
+ */
1111
+ this.totalSamplesReceived = protobuf_1.protoInt64.zero;
1112
+ /**
1113
+ * @generated from field: uint64 concealed_samples = 36;
1114
+ */
1115
+ this.concealedSamples = protobuf_1.protoInt64.zero;
1116
+ /**
1117
+ * @generated from field: uint64 silent_concealed_samples = 37;
1118
+ */
1119
+ this.silentConcealedSamples = protobuf_1.protoInt64.zero;
1120
+ /**
1121
+ * @generated from field: uint64 concealment_events = 38;
1122
+ */
1123
+ this.concealmentEvents = protobuf_1.protoInt64.zero;
1124
+ /**
1125
+ * @generated from field: uint64 inserted_samples_for_deceleration = 39;
1126
+ */
1127
+ this.insertedSamplesForDeceleration = protobuf_1.protoInt64.zero;
1128
+ /**
1129
+ * @generated from field: uint64 removed_samples_for_acceleration = 40;
1130
+ */
1131
+ this.removedSamplesForAcceleration = protobuf_1.protoInt64.zero;
1132
+ /**
1133
+ * @generated from field: double audio_level = 41;
1134
+ */
1135
+ this.audioLevel = 0;
1136
+ /**
1137
+ * @generated from field: double total_audio_energy = 42;
1138
+ */
1139
+ this.totalAudioEnergy = 0;
1140
+ /**
1141
+ * @generated from field: double total_samples_duration = 43;
1142
+ */
1143
+ this.totalSamplesDuration = 0;
1144
+ /**
1145
+ * @generated from field: uint64 frames_received = 44;
1146
+ */
1147
+ this.framesReceived = protobuf_1.protoInt64.zero;
1148
+ /**
1149
+ * @generated from field: string decoder_implementation = 45;
1150
+ */
1151
+ this.decoderImplementation = "";
1152
+ /**
1153
+ * @generated from field: string playout_id = 46;
1154
+ */
1155
+ this.playoutId = "";
1156
+ /**
1157
+ * @generated from field: bool power_efficient_decoder = 47;
1158
+ */
1159
+ this.powerEfficientDecoder = false;
1160
+ /**
1161
+ * @generated from field: uint64 frames_assembled_from_multiple_packets = 48;
1162
+ */
1163
+ this.framesAssembledFromMultiplePackets = protobuf_1.protoInt64.zero;
1164
+ /**
1165
+ * @generated from field: double total_assembly_time = 49;
1166
+ */
1167
+ this.totalAssemblyTime = 0;
1168
+ /**
1169
+ * @generated from field: uint64 retransmitted_packets_received = 50;
1170
+ */
1171
+ this.retransmittedPacketsReceived = protobuf_1.protoInt64.zero;
1172
+ /**
1173
+ * @generated from field: uint64 retransmitted_bytes_received = 51;
1174
+ */
1175
+ this.retransmittedBytesReceived = protobuf_1.protoInt64.zero;
1176
+ /**
1177
+ * @generated from field: uint32 rtx_ssrc = 52;
1178
+ */
1179
+ this.rtxSsrc = 0;
1180
+ /**
1181
+ * @generated from field: uint32 fec_ssrc = 53;
1182
+ */
1183
+ this.fecSsrc = 0;
1184
+ protobuf_1.proto3.util.initPartial(data, this);
1185
+ }
1186
+ static fromBinary(bytes, options) {
1187
+ return new InboundRtpStreamStats().fromBinary(bytes, options);
1188
+ }
1189
+ static fromJson(jsonValue, options) {
1190
+ return new InboundRtpStreamStats().fromJson(jsonValue, options);
1191
+ }
1192
+ static fromJsonString(jsonString, options) {
1193
+ return new InboundRtpStreamStats().fromJsonString(jsonString, options);
1194
+ }
1195
+ static equals(a, b) {
1196
+ return protobuf_1.proto3.util.equals(InboundRtpStreamStats, a, b);
1197
+ }
1198
+ }
1199
+ exports.InboundRtpStreamStats = InboundRtpStreamStats;
1200
+ InboundRtpStreamStats.runtime = protobuf_1.proto3;
1201
+ InboundRtpStreamStats.typeName = "livekit.proto.InboundRtpStreamStats";
1202
+ InboundRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1203
+ { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1204
+ { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1205
+ { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1206
+ { no: 4, name: "frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1207
+ { no: 5, name: "key_frames_decoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1208
+ { no: 6, name: "frames_rendered", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1209
+ { no: 7, name: "frames_dropped", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1210
+ { no: 8, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1211
+ { no: 9, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1212
+ { no: 10, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1213
+ { no: 11, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1214
+ { no: 12, name: "total_decode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1215
+ { no: 13, name: "total_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1216
+ { no: 14, name: "total_squared_inter_frame_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1217
+ { no: 15, name: "pause_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1218
+ { no: 16, name: "total_pause_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1219
+ { no: 17, name: "freeze_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1220
+ { no: 18, name: "total_freeze_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1221
+ { no: 19, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1222
+ { no: 20, name: "header_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1223
+ { no: 21, name: "packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1224
+ { no: 22, name: "fec_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1225
+ { no: 23, name: "fec_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1226
+ { no: 24, name: "fec_packets_discarded", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1227
+ { no: 25, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1228
+ { no: 26, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1229
+ { no: 27, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1230
+ { no: 28, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1231
+ { no: 29, name: "total_processing_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1232
+ { no: 30, name: "estimated_playout_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1233
+ { no: 31, name: "jitter_buffer_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1234
+ { no: 32, name: "jitter_buffer_target_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1235
+ { no: 33, name: "jitter_buffer_emitted_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1236
+ { no: 34, name: "jitter_buffer_minimum_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1237
+ { no: 35, name: "total_samples_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1238
+ { no: 36, name: "concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1239
+ { no: 37, name: "silent_concealed_samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1240
+ { no: 38, name: "concealment_events", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1241
+ { no: 39, name: "inserted_samples_for_deceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1242
+ { no: 40, name: "removed_samples_for_acceleration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1243
+ { no: 41, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1244
+ { no: 42, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1245
+ { no: 43, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1246
+ { no: 44, name: "frames_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1247
+ { no: 45, name: "decoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1248
+ { no: 46, name: "playout_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1249
+ { no: 47, name: "power_efficient_decoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1250
+ { no: 48, name: "frames_assembled_from_multiple_packets", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1251
+ { no: 49, name: "total_assembly_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1252
+ { no: 50, name: "retransmitted_packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1253
+ { no: 51, name: "retransmitted_bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1254
+ { no: 52, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1255
+ { no: 53, name: "fec_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1256
+ ]);
1257
+ /**
1258
+ * @generated from message livekit.proto.SentRtpStreamStats
1259
+ */
1260
+ class SentRtpStreamStats extends protobuf_1.Message {
1261
+ constructor(data) {
1262
+ super();
1263
+ /**
1264
+ * @generated from field: uint64 packets_sent = 1;
1265
+ */
1266
+ this.packetsSent = protobuf_1.protoInt64.zero;
1267
+ /**
1268
+ * @generated from field: uint64 bytes_sent = 2;
1269
+ */
1270
+ this.bytesSent = protobuf_1.protoInt64.zero;
1271
+ protobuf_1.proto3.util.initPartial(data, this);
1272
+ }
1273
+ static fromBinary(bytes, options) {
1274
+ return new SentRtpStreamStats().fromBinary(bytes, options);
1275
+ }
1276
+ static fromJson(jsonValue, options) {
1277
+ return new SentRtpStreamStats().fromJson(jsonValue, options);
1278
+ }
1279
+ static fromJsonString(jsonString, options) {
1280
+ return new SentRtpStreamStats().fromJsonString(jsonString, options);
1281
+ }
1282
+ static equals(a, b) {
1283
+ return protobuf_1.proto3.util.equals(SentRtpStreamStats, a, b);
1284
+ }
1285
+ }
1286
+ exports.SentRtpStreamStats = SentRtpStreamStats;
1287
+ SentRtpStreamStats.runtime = protobuf_1.proto3;
1288
+ SentRtpStreamStats.typeName = "livekit.proto.SentRtpStreamStats";
1289
+ SentRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1290
+ { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1291
+ { no: 2, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1292
+ ]);
1293
+ /**
1294
+ * @generated from message livekit.proto.OutboundRtpStreamStats
1295
+ */
1296
+ class OutboundRtpStreamStats extends protobuf_1.Message {
1297
+ constructor(data) {
1298
+ super();
1299
+ /**
1300
+ * @generated from field: string mid = 1;
1301
+ */
1302
+ this.mid = "";
1303
+ /**
1304
+ * @generated from field: string media_source_id = 2;
1305
+ */
1306
+ this.mediaSourceId = "";
1307
+ /**
1308
+ * @generated from field: string remote_id = 3;
1309
+ */
1310
+ this.remoteId = "";
1311
+ /**
1312
+ * @generated from field: string rid = 4;
1313
+ */
1314
+ this.rid = "";
1315
+ /**
1316
+ * @generated from field: uint64 header_bytes_sent = 5;
1317
+ */
1318
+ this.headerBytesSent = protobuf_1.protoInt64.zero;
1319
+ /**
1320
+ * @generated from field: uint64 retransmitted_packets_sent = 6;
1321
+ */
1322
+ this.retransmittedPacketsSent = protobuf_1.protoInt64.zero;
1323
+ /**
1324
+ * @generated from field: uint64 retransmitted_bytes_sent = 7;
1325
+ */
1326
+ this.retransmittedBytesSent = protobuf_1.protoInt64.zero;
1327
+ /**
1328
+ * @generated from field: uint32 rtx_ssrc = 8;
1329
+ */
1330
+ this.rtxSsrc = 0;
1331
+ /**
1332
+ * @generated from field: double target_bitrate = 9;
1333
+ */
1334
+ this.targetBitrate = 0;
1335
+ /**
1336
+ * @generated from field: uint64 total_encoded_bytes_target = 10;
1337
+ */
1338
+ this.totalEncodedBytesTarget = protobuf_1.protoInt64.zero;
1339
+ /**
1340
+ * @generated from field: uint32 frame_width = 11;
1341
+ */
1342
+ this.frameWidth = 0;
1343
+ /**
1344
+ * @generated from field: uint32 frame_height = 12;
1345
+ */
1346
+ this.frameHeight = 0;
1347
+ /**
1348
+ * @generated from field: double frames_per_second = 13;
1349
+ */
1350
+ this.framesPerSecond = 0;
1351
+ /**
1352
+ * @generated from field: uint32 frames_sent = 14;
1353
+ */
1354
+ this.framesSent = 0;
1355
+ /**
1356
+ * @generated from field: uint32 huge_frames_sent = 15;
1357
+ */
1358
+ this.hugeFramesSent = 0;
1359
+ /**
1360
+ * @generated from field: uint32 frames_encoded = 16;
1361
+ */
1362
+ this.framesEncoded = 0;
1363
+ /**
1364
+ * @generated from field: uint32 key_frames_encoded = 17;
1365
+ */
1366
+ this.keyFramesEncoded = 0;
1367
+ /**
1368
+ * @generated from field: uint64 qp_sum = 18;
1369
+ */
1370
+ this.qpSum = protobuf_1.protoInt64.zero;
1371
+ /**
1372
+ * @generated from field: double total_encode_time = 19;
1373
+ */
1374
+ this.totalEncodeTime = 0;
1375
+ /**
1376
+ * @generated from field: double total_packet_send_delay = 20;
1377
+ */
1378
+ this.totalPacketSendDelay = 0;
1379
+ /**
1380
+ * @generated from field: livekit.proto.QualityLimitationReason quality_limitation_reason = 21;
1381
+ */
1382
+ this.qualityLimitationReason = QualityLimitationReason.LIMITATION_NONE;
1383
+ /**
1384
+ * @generated from field: map<string, double> quality_limitation_durations = 22;
1385
+ */
1386
+ this.qualityLimitationDurations = {};
1387
+ /**
1388
+ * @generated from field: uint32 quality_limitation_resolution_changes = 23;
1389
+ */
1390
+ this.qualityLimitationResolutionChanges = 0;
1391
+ /**
1392
+ * @generated from field: uint32 nack_count = 24;
1393
+ */
1394
+ this.nackCount = 0;
1395
+ /**
1396
+ * @generated from field: uint32 fir_count = 25;
1397
+ */
1398
+ this.firCount = 0;
1399
+ /**
1400
+ * @generated from field: uint32 pli_count = 26;
1401
+ */
1402
+ this.pliCount = 0;
1403
+ /**
1404
+ * @generated from field: string encoder_implementation = 27;
1405
+ */
1406
+ this.encoderImplementation = "";
1407
+ /**
1408
+ * @generated from field: bool power_efficient_encoder = 28;
1409
+ */
1410
+ this.powerEfficientEncoder = false;
1411
+ /**
1412
+ * @generated from field: bool active = 29;
1413
+ */
1414
+ this.active = false;
1415
+ /**
1416
+ * @generated from field: string scalibility_mode = 30;
1417
+ */
1418
+ this.scalibilityMode = "";
1419
+ protobuf_1.proto3.util.initPartial(data, this);
1420
+ }
1421
+ static fromBinary(bytes, options) {
1422
+ return new OutboundRtpStreamStats().fromBinary(bytes, options);
1423
+ }
1424
+ static fromJson(jsonValue, options) {
1425
+ return new OutboundRtpStreamStats().fromJson(jsonValue, options);
1426
+ }
1427
+ static fromJsonString(jsonString, options) {
1428
+ return new OutboundRtpStreamStats().fromJsonString(jsonString, options);
1429
+ }
1430
+ static equals(a, b) {
1431
+ return protobuf_1.proto3.util.equals(OutboundRtpStreamStats, a, b);
1432
+ }
1433
+ }
1434
+ exports.OutboundRtpStreamStats = OutboundRtpStreamStats;
1435
+ OutboundRtpStreamStats.runtime = protobuf_1.proto3;
1436
+ OutboundRtpStreamStats.typeName = "livekit.proto.OutboundRtpStreamStats";
1437
+ OutboundRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1438
+ { no: 1, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1439
+ { no: 2, name: "media_source_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1440
+ { no: 3, name: "remote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1441
+ { no: 4, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1442
+ { no: 5, name: "header_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1443
+ { no: 6, name: "retransmitted_packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1444
+ { no: 7, name: "retransmitted_bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1445
+ { no: 8, name: "rtx_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1446
+ { no: 9, name: "target_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1447
+ { no: 10, name: "total_encoded_bytes_target", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1448
+ { no: 11, name: "frame_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1449
+ { no: 12, name: "frame_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1450
+ { no: 13, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1451
+ { no: 14, name: "frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1452
+ { no: 15, name: "huge_frames_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1453
+ { no: 16, name: "frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1454
+ { no: 17, name: "key_frames_encoded", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1455
+ { no: 18, name: "qp_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1456
+ { no: 19, name: "total_encode_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1457
+ { no: 20, name: "total_packet_send_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1458
+ { no: 21, name: "quality_limitation_reason", kind: "enum", T: protobuf_1.proto3.getEnumType(QualityLimitationReason) },
1459
+ { no: 22, name: "quality_limitation_durations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 1 /* ScalarType.DOUBLE */ } },
1460
+ { no: 23, name: "quality_limitation_resolution_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1461
+ { no: 24, name: "nack_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1462
+ { no: 25, name: "fir_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1463
+ { no: 26, name: "pli_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1464
+ { no: 27, name: "encoder_implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1465
+ { no: 28, name: "power_efficient_encoder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1466
+ { no: 29, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1467
+ { no: 30, name: "scalibility_mode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1468
+ ]);
1469
+ /**
1470
+ * @generated from message livekit.proto.RemoteInboundRtpStreamStats
1471
+ */
1472
+ class RemoteInboundRtpStreamStats extends protobuf_1.Message {
1473
+ constructor(data) {
1474
+ super();
1475
+ /**
1476
+ * @generated from field: string local_id = 1;
1477
+ */
1478
+ this.localId = "";
1479
+ /**
1480
+ * @generated from field: double round_trip_time = 2;
1481
+ */
1482
+ this.roundTripTime = 0;
1483
+ /**
1484
+ * @generated from field: double total_round_trip_time = 3;
1485
+ */
1486
+ this.totalRoundTripTime = 0;
1487
+ /**
1488
+ * @generated from field: double fraction_lost = 4;
1489
+ */
1490
+ this.fractionLost = 0;
1491
+ /**
1492
+ * @generated from field: uint64 round_trip_time_measurements = 5;
1493
+ */
1494
+ this.roundTripTimeMeasurements = protobuf_1.protoInt64.zero;
1495
+ protobuf_1.proto3.util.initPartial(data, this);
1496
+ }
1497
+ static fromBinary(bytes, options) {
1498
+ return new RemoteInboundRtpStreamStats().fromBinary(bytes, options);
1499
+ }
1500
+ static fromJson(jsonValue, options) {
1501
+ return new RemoteInboundRtpStreamStats().fromJson(jsonValue, options);
1502
+ }
1503
+ static fromJsonString(jsonString, options) {
1504
+ return new RemoteInboundRtpStreamStats().fromJsonString(jsonString, options);
1505
+ }
1506
+ static equals(a, b) {
1507
+ return protobuf_1.proto3.util.equals(RemoteInboundRtpStreamStats, a, b);
1508
+ }
1509
+ }
1510
+ exports.RemoteInboundRtpStreamStats = RemoteInboundRtpStreamStats;
1511
+ RemoteInboundRtpStreamStats.runtime = protobuf_1.proto3;
1512
+ RemoteInboundRtpStreamStats.typeName = "livekit.proto.RemoteInboundRtpStreamStats";
1513
+ RemoteInboundRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1514
+ { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1515
+ { no: 2, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1516
+ { no: 3, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1517
+ { no: 4, name: "fraction_lost", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1518
+ { no: 5, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1519
+ ]);
1520
+ /**
1521
+ * @generated from message livekit.proto.RemoteOutboundRtpStreamStats
1522
+ */
1523
+ class RemoteOutboundRtpStreamStats extends protobuf_1.Message {
1524
+ constructor(data) {
1525
+ super();
1526
+ /**
1527
+ * @generated from field: string local_id = 1;
1528
+ */
1529
+ this.localId = "";
1530
+ /**
1531
+ * @generated from field: double remote_timestamp = 2;
1532
+ */
1533
+ this.remoteTimestamp = 0;
1534
+ /**
1535
+ * @generated from field: uint64 reports_sent = 3;
1536
+ */
1537
+ this.reportsSent = protobuf_1.protoInt64.zero;
1538
+ /**
1539
+ * @generated from field: double round_trip_time = 4;
1540
+ */
1541
+ this.roundTripTime = 0;
1542
+ /**
1543
+ * @generated from field: double total_round_trip_time = 5;
1544
+ */
1545
+ this.totalRoundTripTime = 0;
1546
+ /**
1547
+ * @generated from field: uint64 round_trip_time_measurements = 6;
1548
+ */
1549
+ this.roundTripTimeMeasurements = protobuf_1.protoInt64.zero;
1550
+ protobuf_1.proto3.util.initPartial(data, this);
1551
+ }
1552
+ static fromBinary(bytes, options) {
1553
+ return new RemoteOutboundRtpStreamStats().fromBinary(bytes, options);
1554
+ }
1555
+ static fromJson(jsonValue, options) {
1556
+ return new RemoteOutboundRtpStreamStats().fromJson(jsonValue, options);
1557
+ }
1558
+ static fromJsonString(jsonString, options) {
1559
+ return new RemoteOutboundRtpStreamStats().fromJsonString(jsonString, options);
1560
+ }
1561
+ static equals(a, b) {
1562
+ return protobuf_1.proto3.util.equals(RemoteOutboundRtpStreamStats, a, b);
1563
+ }
1564
+ }
1565
+ exports.RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats;
1566
+ RemoteOutboundRtpStreamStats.runtime = protobuf_1.proto3;
1567
+ RemoteOutboundRtpStreamStats.typeName = "livekit.proto.RemoteOutboundRtpStreamStats";
1568
+ RemoteOutboundRtpStreamStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1569
+ { no: 1, name: "local_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1570
+ { no: 2, name: "remote_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1571
+ { no: 3, name: "reports_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1572
+ { no: 4, name: "round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1573
+ { no: 5, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1574
+ { no: 6, name: "round_trip_time_measurements", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1575
+ ]);
1576
+ /**
1577
+ * @generated from message livekit.proto.MediaSourceStats
1578
+ */
1579
+ class MediaSourceStats extends protobuf_1.Message {
1580
+ constructor(data) {
1581
+ super();
1582
+ /**
1583
+ * @generated from field: string track_identifier = 1;
1584
+ */
1585
+ this.trackIdentifier = "";
1586
+ /**
1587
+ * @generated from field: string kind = 2;
1588
+ */
1589
+ this.kind = "";
1590
+ protobuf_1.proto3.util.initPartial(data, this);
1591
+ }
1592
+ static fromBinary(bytes, options) {
1593
+ return new MediaSourceStats().fromBinary(bytes, options);
1594
+ }
1595
+ static fromJson(jsonValue, options) {
1596
+ return new MediaSourceStats().fromJson(jsonValue, options);
1597
+ }
1598
+ static fromJsonString(jsonString, options) {
1599
+ return new MediaSourceStats().fromJsonString(jsonString, options);
1600
+ }
1601
+ static equals(a, b) {
1602
+ return protobuf_1.proto3.util.equals(MediaSourceStats, a, b);
1603
+ }
1604
+ }
1605
+ exports.MediaSourceStats = MediaSourceStats;
1606
+ MediaSourceStats.runtime = protobuf_1.proto3;
1607
+ MediaSourceStats.typeName = "livekit.proto.MediaSourceStats";
1608
+ MediaSourceStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1609
+ { no: 1, name: "track_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1610
+ { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1611
+ ]);
1612
+ /**
1613
+ * @generated from message livekit.proto.AudioSourceStats
1614
+ */
1615
+ class AudioSourceStats extends protobuf_1.Message {
1616
+ constructor(data) {
1617
+ super();
1618
+ /**
1619
+ * @generated from field: double audio_level = 1;
1620
+ */
1621
+ this.audioLevel = 0;
1622
+ /**
1623
+ * @generated from field: double total_audio_energy = 2;
1624
+ */
1625
+ this.totalAudioEnergy = 0;
1626
+ /**
1627
+ * @generated from field: double total_samples_duration = 3;
1628
+ */
1629
+ this.totalSamplesDuration = 0;
1630
+ /**
1631
+ * @generated from field: double echo_return_loss = 4;
1632
+ */
1633
+ this.echoReturnLoss = 0;
1634
+ /**
1635
+ * @generated from field: double echo_return_loss_enhancement = 5;
1636
+ */
1637
+ this.echoReturnLossEnhancement = 0;
1638
+ /**
1639
+ * @generated from field: double dropped_samples_duration = 6;
1640
+ */
1641
+ this.droppedSamplesDuration = 0;
1642
+ /**
1643
+ * @generated from field: uint32 dropped_samples_events = 7;
1644
+ */
1645
+ this.droppedSamplesEvents = 0;
1646
+ /**
1647
+ * @generated from field: double total_capture_delay = 8;
1648
+ */
1649
+ this.totalCaptureDelay = 0;
1650
+ /**
1651
+ * @generated from field: uint64 total_samples_captured = 9;
1652
+ */
1653
+ this.totalSamplesCaptured = protobuf_1.protoInt64.zero;
1654
+ protobuf_1.proto3.util.initPartial(data, this);
1655
+ }
1656
+ static fromBinary(bytes, options) {
1657
+ return new AudioSourceStats().fromBinary(bytes, options);
1658
+ }
1659
+ static fromJson(jsonValue, options) {
1660
+ return new AudioSourceStats().fromJson(jsonValue, options);
1661
+ }
1662
+ static fromJsonString(jsonString, options) {
1663
+ return new AudioSourceStats().fromJsonString(jsonString, options);
1664
+ }
1665
+ static equals(a, b) {
1666
+ return protobuf_1.proto3.util.equals(AudioSourceStats, a, b);
1667
+ }
1668
+ }
1669
+ exports.AudioSourceStats = AudioSourceStats;
1670
+ AudioSourceStats.runtime = protobuf_1.proto3;
1671
+ AudioSourceStats.typeName = "livekit.proto.AudioSourceStats";
1672
+ AudioSourceStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1673
+ { no: 1, name: "audio_level", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1674
+ { no: 2, name: "total_audio_energy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1675
+ { no: 3, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1676
+ { no: 4, name: "echo_return_loss", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1677
+ { no: 5, name: "echo_return_loss_enhancement", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1678
+ { no: 6, name: "dropped_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1679
+ { no: 7, name: "dropped_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1680
+ { no: 8, name: "total_capture_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1681
+ { no: 9, name: "total_samples_captured", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1682
+ ]);
1683
+ /**
1684
+ * @generated from message livekit.proto.VideoSourceStats
1685
+ */
1686
+ class VideoSourceStats extends protobuf_1.Message {
1687
+ constructor(data) {
1688
+ super();
1689
+ /**
1690
+ * @generated from field: uint32 width = 1;
1691
+ */
1692
+ this.width = 0;
1693
+ /**
1694
+ * @generated from field: uint32 height = 2;
1695
+ */
1696
+ this.height = 0;
1697
+ /**
1698
+ * @generated from field: uint32 frames = 3;
1699
+ */
1700
+ this.frames = 0;
1701
+ /**
1702
+ * @generated from field: double frames_per_second = 4;
1703
+ */
1704
+ this.framesPerSecond = 0;
1705
+ protobuf_1.proto3.util.initPartial(data, this);
1706
+ }
1707
+ static fromBinary(bytes, options) {
1708
+ return new VideoSourceStats().fromBinary(bytes, options);
1709
+ }
1710
+ static fromJson(jsonValue, options) {
1711
+ return new VideoSourceStats().fromJson(jsonValue, options);
1712
+ }
1713
+ static fromJsonString(jsonString, options) {
1714
+ return new VideoSourceStats().fromJsonString(jsonString, options);
1715
+ }
1716
+ static equals(a, b) {
1717
+ return protobuf_1.proto3.util.equals(VideoSourceStats, a, b);
1718
+ }
1719
+ }
1720
+ exports.VideoSourceStats = VideoSourceStats;
1721
+ VideoSourceStats.runtime = protobuf_1.proto3;
1722
+ VideoSourceStats.typeName = "livekit.proto.VideoSourceStats";
1723
+ VideoSourceStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1724
+ { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1725
+ { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1726
+ { no: 3, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1727
+ { no: 4, name: "frames_per_second", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1728
+ ]);
1729
+ /**
1730
+ * @generated from message livekit.proto.AudioPlayoutStats
1731
+ */
1732
+ class AudioPlayoutStats extends protobuf_1.Message {
1733
+ constructor(data) {
1734
+ super();
1735
+ /**
1736
+ * @generated from field: string kind = 1;
1737
+ */
1738
+ this.kind = "";
1739
+ /**
1740
+ * @generated from field: double synthesized_samples_duration = 2;
1741
+ */
1742
+ this.synthesizedSamplesDuration = 0;
1743
+ /**
1744
+ * @generated from field: uint32 synthesized_samples_events = 3;
1745
+ */
1746
+ this.synthesizedSamplesEvents = 0;
1747
+ /**
1748
+ * @generated from field: double total_samples_duration = 4;
1749
+ */
1750
+ this.totalSamplesDuration = 0;
1751
+ /**
1752
+ * @generated from field: double total_playout_delay = 5;
1753
+ */
1754
+ this.totalPlayoutDelay = 0;
1755
+ /**
1756
+ * @generated from field: uint64 total_samples_count = 6;
1757
+ */
1758
+ this.totalSamplesCount = protobuf_1.protoInt64.zero;
1759
+ protobuf_1.proto3.util.initPartial(data, this);
1760
+ }
1761
+ static fromBinary(bytes, options) {
1762
+ return new AudioPlayoutStats().fromBinary(bytes, options);
1763
+ }
1764
+ static fromJson(jsonValue, options) {
1765
+ return new AudioPlayoutStats().fromJson(jsonValue, options);
1766
+ }
1767
+ static fromJsonString(jsonString, options) {
1768
+ return new AudioPlayoutStats().fromJsonString(jsonString, options);
1769
+ }
1770
+ static equals(a, b) {
1771
+ return protobuf_1.proto3.util.equals(AudioPlayoutStats, a, b);
1772
+ }
1773
+ }
1774
+ exports.AudioPlayoutStats = AudioPlayoutStats;
1775
+ AudioPlayoutStats.runtime = protobuf_1.proto3;
1776
+ AudioPlayoutStats.typeName = "livekit.proto.AudioPlayoutStats";
1777
+ AudioPlayoutStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1778
+ { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1779
+ { no: 2, name: "synthesized_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1780
+ { no: 3, name: "synthesized_samples_events", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1781
+ { no: 4, name: "total_samples_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1782
+ { no: 5, name: "total_playout_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1783
+ { no: 6, name: "total_samples_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1784
+ ]);
1785
+ /**
1786
+ * @generated from message livekit.proto.PeerConnectionStats
1787
+ */
1788
+ class PeerConnectionStats extends protobuf_1.Message {
1789
+ constructor(data) {
1790
+ super();
1791
+ /**
1792
+ * @generated from field: uint32 data_channels_opened = 1;
1793
+ */
1794
+ this.dataChannelsOpened = 0;
1795
+ /**
1796
+ * @generated from field: uint32 data_channels_closed = 2;
1797
+ */
1798
+ this.dataChannelsClosed = 0;
1799
+ protobuf_1.proto3.util.initPartial(data, this);
1800
+ }
1801
+ static fromBinary(bytes, options) {
1802
+ return new PeerConnectionStats().fromBinary(bytes, options);
1803
+ }
1804
+ static fromJson(jsonValue, options) {
1805
+ return new PeerConnectionStats().fromJson(jsonValue, options);
1806
+ }
1807
+ static fromJsonString(jsonString, options) {
1808
+ return new PeerConnectionStats().fromJsonString(jsonString, options);
1809
+ }
1810
+ static equals(a, b) {
1811
+ return protobuf_1.proto3.util.equals(PeerConnectionStats, a, b);
1812
+ }
1813
+ }
1814
+ exports.PeerConnectionStats = PeerConnectionStats;
1815
+ PeerConnectionStats.runtime = protobuf_1.proto3;
1816
+ PeerConnectionStats.typeName = "livekit.proto.PeerConnectionStats";
1817
+ PeerConnectionStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1818
+ { no: 1, name: "data_channels_opened", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1819
+ { no: 2, name: "data_channels_closed", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1820
+ ]);
1821
+ /**
1822
+ * @generated from message livekit.proto.DataChannelStats
1823
+ */
1824
+ class DataChannelStats extends protobuf_1.Message {
1825
+ constructor(data) {
1826
+ super();
1827
+ /**
1828
+ * @generated from field: string label = 1;
1829
+ */
1830
+ this.label = "";
1831
+ /**
1832
+ * @generated from field: string protocol = 2;
1833
+ */
1834
+ this.protocol = "";
1835
+ /**
1836
+ * @generated from field: int32 data_channel_identifier = 3;
1837
+ */
1838
+ this.dataChannelIdentifier = 0;
1839
+ /**
1840
+ * @generated from field: uint32 messages_sent = 5;
1841
+ */
1842
+ this.messagesSent = 0;
1843
+ /**
1844
+ * @generated from field: uint64 bytes_sent = 6;
1845
+ */
1846
+ this.bytesSent = protobuf_1.protoInt64.zero;
1847
+ /**
1848
+ * @generated from field: uint32 messages_received = 7;
1849
+ */
1850
+ this.messagesReceived = 0;
1851
+ /**
1852
+ * @generated from field: uint64 bytes_received = 8;
1853
+ */
1854
+ this.bytesReceived = protobuf_1.protoInt64.zero;
1855
+ protobuf_1.proto3.util.initPartial(data, this);
1856
+ }
1857
+ static fromBinary(bytes, options) {
1858
+ return new DataChannelStats().fromBinary(bytes, options);
1859
+ }
1860
+ static fromJson(jsonValue, options) {
1861
+ return new DataChannelStats().fromJson(jsonValue, options);
1862
+ }
1863
+ static fromJsonString(jsonString, options) {
1864
+ return new DataChannelStats().fromJsonString(jsonString, options);
1865
+ }
1866
+ static equals(a, b) {
1867
+ return protobuf_1.proto3.util.equals(DataChannelStats, a, b);
1868
+ }
1869
+ }
1870
+ exports.DataChannelStats = DataChannelStats;
1871
+ DataChannelStats.runtime = protobuf_1.proto3;
1872
+ DataChannelStats.typeName = "livekit.proto.DataChannelStats";
1873
+ DataChannelStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1874
+ { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1875
+ { no: 2, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1876
+ { no: 3, name: "data_channel_identifier", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1877
+ { no: 4, name: "state", kind: "enum", T: protobuf_1.proto3.getEnumType(DataChannelState), opt: true },
1878
+ { no: 5, name: "messages_sent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1879
+ { no: 6, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1880
+ { no: 7, name: "messages_received", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1881
+ { no: 8, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1882
+ ]);
1883
+ /**
1884
+ * @generated from message livekit.proto.TransportStats
1885
+ */
1886
+ class TransportStats extends protobuf_1.Message {
1887
+ constructor(data) {
1888
+ super();
1889
+ /**
1890
+ * @generated from field: uint64 packets_sent = 1;
1891
+ */
1892
+ this.packetsSent = protobuf_1.protoInt64.zero;
1893
+ /**
1894
+ * @generated from field: uint64 packets_received = 2;
1895
+ */
1896
+ this.packetsReceived = protobuf_1.protoInt64.zero;
1897
+ /**
1898
+ * @generated from field: uint64 bytes_sent = 3;
1899
+ */
1900
+ this.bytesSent = protobuf_1.protoInt64.zero;
1901
+ /**
1902
+ * @generated from field: uint64 bytes_received = 4;
1903
+ */
1904
+ this.bytesReceived = protobuf_1.protoInt64.zero;
1905
+ /**
1906
+ * @generated from field: livekit.proto.IceRole ice_role = 5;
1907
+ */
1908
+ this.iceRole = IceRole.ICE_UNKNOWN;
1909
+ /**
1910
+ * @generated from field: string ice_local_username_fragment = 6;
1911
+ */
1912
+ this.iceLocalUsernameFragment = "";
1913
+ /**
1914
+ * @generated from field: string selected_candidate_pair_id = 9;
1915
+ */
1916
+ this.selectedCandidatePairId = "";
1917
+ /**
1918
+ * @generated from field: string local_certificate_id = 10;
1919
+ */
1920
+ this.localCertificateId = "";
1921
+ /**
1922
+ * @generated from field: string remote_certificate_id = 11;
1923
+ */
1924
+ this.remoteCertificateId = "";
1925
+ /**
1926
+ * @generated from field: string tls_version = 12;
1927
+ */
1928
+ this.tlsVersion = "";
1929
+ /**
1930
+ * @generated from field: string dtls_cipher = 13;
1931
+ */
1932
+ this.dtlsCipher = "";
1933
+ /**
1934
+ * @generated from field: livekit.proto.DtlsRole dtls_role = 14;
1935
+ */
1936
+ this.dtlsRole = DtlsRole.DTLS_CLIENT;
1937
+ /**
1938
+ * @generated from field: string srtp_cipher = 15;
1939
+ */
1940
+ this.srtpCipher = "";
1941
+ /**
1942
+ * @generated from field: uint32 selected_candidate_pair_changes = 16;
1943
+ */
1944
+ this.selectedCandidatePairChanges = 0;
1945
+ protobuf_1.proto3.util.initPartial(data, this);
1946
+ }
1947
+ static fromBinary(bytes, options) {
1948
+ return new TransportStats().fromBinary(bytes, options);
1949
+ }
1950
+ static fromJson(jsonValue, options) {
1951
+ return new TransportStats().fromJson(jsonValue, options);
1952
+ }
1953
+ static fromJsonString(jsonString, options) {
1954
+ return new TransportStats().fromJsonString(jsonString, options);
1955
+ }
1956
+ static equals(a, b) {
1957
+ return protobuf_1.proto3.util.equals(TransportStats, a, b);
1958
+ }
1959
+ }
1960
+ exports.TransportStats = TransportStats;
1961
+ TransportStats.runtime = protobuf_1.proto3;
1962
+ TransportStats.typeName = "livekit.proto.TransportStats";
1963
+ TransportStats.fields = protobuf_1.proto3.util.newFieldList(() => [
1964
+ { no: 1, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1965
+ { no: 2, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1966
+ { no: 3, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1967
+ { no: 4, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1968
+ { no: 5, name: "ice_role", kind: "enum", T: protobuf_1.proto3.getEnumType(IceRole) },
1969
+ { no: 6, name: "ice_local_username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1970
+ { no: 7, name: "dtls_state", kind: "enum", T: protobuf_1.proto3.getEnumType(DtlsTransportState), opt: true },
1971
+ { no: 8, name: "ice_state", kind: "enum", T: protobuf_1.proto3.getEnumType(IceTransportState), opt: true },
1972
+ { no: 9, name: "selected_candidate_pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1973
+ { no: 10, name: "local_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1974
+ { no: 11, name: "remote_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1975
+ { no: 12, name: "tls_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1976
+ { no: 13, name: "dtls_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1977
+ { no: 14, name: "dtls_role", kind: "enum", T: protobuf_1.proto3.getEnumType(DtlsRole) },
1978
+ { no: 15, name: "srtp_cipher", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1979
+ { no: 16, name: "selected_candidate_pair_changes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1980
+ ]);
1981
+ /**
1982
+ * @generated from message livekit.proto.CandidatePairStats
1983
+ */
1984
+ class CandidatePairStats extends protobuf_1.Message {
1985
+ constructor(data) {
1986
+ super();
1987
+ /**
1988
+ * @generated from field: string transport_id = 1;
1989
+ */
1990
+ this.transportId = "";
1991
+ /**
1992
+ * @generated from field: string local_candidate_id = 2;
1993
+ */
1994
+ this.localCandidateId = "";
1995
+ /**
1996
+ * @generated from field: string remote_candidate_id = 3;
1997
+ */
1998
+ this.remoteCandidateId = "";
1999
+ /**
2000
+ * @generated from field: bool nominated = 5;
2001
+ */
2002
+ this.nominated = false;
2003
+ /**
2004
+ * @generated from field: uint64 packets_sent = 6;
2005
+ */
2006
+ this.packetsSent = protobuf_1.protoInt64.zero;
2007
+ /**
2008
+ * @generated from field: uint64 packets_received = 7;
2009
+ */
2010
+ this.packetsReceived = protobuf_1.protoInt64.zero;
2011
+ /**
2012
+ * @generated from field: uint64 bytes_sent = 8;
2013
+ */
2014
+ this.bytesSent = protobuf_1.protoInt64.zero;
2015
+ /**
2016
+ * @generated from field: uint64 bytes_received = 9;
2017
+ */
2018
+ this.bytesReceived = protobuf_1.protoInt64.zero;
2019
+ /**
2020
+ * @generated from field: double last_packet_sent_timestamp = 10;
2021
+ */
2022
+ this.lastPacketSentTimestamp = 0;
2023
+ /**
2024
+ * @generated from field: double last_packet_received_timestamp = 11;
2025
+ */
2026
+ this.lastPacketReceivedTimestamp = 0;
2027
+ /**
2028
+ * @generated from field: double total_round_trip_time = 12;
2029
+ */
2030
+ this.totalRoundTripTime = 0;
2031
+ /**
2032
+ * @generated from field: double current_round_trip_time = 13;
2033
+ */
2034
+ this.currentRoundTripTime = 0;
2035
+ /**
2036
+ * @generated from field: double available_outgoing_bitrate = 14;
2037
+ */
2038
+ this.availableOutgoingBitrate = 0;
2039
+ /**
2040
+ * @generated from field: double available_incoming_bitrate = 15;
2041
+ */
2042
+ this.availableIncomingBitrate = 0;
2043
+ /**
2044
+ * @generated from field: uint64 requests_received = 16;
2045
+ */
2046
+ this.requestsReceived = protobuf_1.protoInt64.zero;
2047
+ /**
2048
+ * @generated from field: uint64 requests_sent = 17;
2049
+ */
2050
+ this.requestsSent = protobuf_1.protoInt64.zero;
2051
+ /**
2052
+ * @generated from field: uint64 responses_received = 18;
2053
+ */
2054
+ this.responsesReceived = protobuf_1.protoInt64.zero;
2055
+ /**
2056
+ * @generated from field: uint64 responses_sent = 19;
2057
+ */
2058
+ this.responsesSent = protobuf_1.protoInt64.zero;
2059
+ /**
2060
+ * @generated from field: uint64 consent_requests_sent = 20;
2061
+ */
2062
+ this.consentRequestsSent = protobuf_1.protoInt64.zero;
2063
+ /**
2064
+ * @generated from field: uint32 packets_discarded_on_send = 21;
2065
+ */
2066
+ this.packetsDiscardedOnSend = 0;
2067
+ /**
2068
+ * @generated from field: uint64 bytes_discarded_on_send = 22;
2069
+ */
2070
+ this.bytesDiscardedOnSend = protobuf_1.protoInt64.zero;
2071
+ protobuf_1.proto3.util.initPartial(data, this);
2072
+ }
2073
+ static fromBinary(bytes, options) {
2074
+ return new CandidatePairStats().fromBinary(bytes, options);
2075
+ }
2076
+ static fromJson(jsonValue, options) {
2077
+ return new CandidatePairStats().fromJson(jsonValue, options);
2078
+ }
2079
+ static fromJsonString(jsonString, options) {
2080
+ return new CandidatePairStats().fromJsonString(jsonString, options);
2081
+ }
2082
+ static equals(a, b) {
2083
+ return protobuf_1.proto3.util.equals(CandidatePairStats, a, b);
2084
+ }
2085
+ }
2086
+ exports.CandidatePairStats = CandidatePairStats;
2087
+ CandidatePairStats.runtime = protobuf_1.proto3;
2088
+ CandidatePairStats.typeName = "livekit.proto.CandidatePairStats";
2089
+ CandidatePairStats.fields = protobuf_1.proto3.util.newFieldList(() => [
2090
+ { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2091
+ { no: 2, name: "local_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2092
+ { no: 3, name: "remote_candidate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2093
+ { no: 4, name: "state", kind: "enum", T: protobuf_1.proto3.getEnumType(IceCandidatePairState), opt: true },
2094
+ { no: 5, name: "nominated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2095
+ { no: 6, name: "packets_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2096
+ { no: 7, name: "packets_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2097
+ { no: 8, name: "bytes_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2098
+ { no: 9, name: "bytes_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2099
+ { no: 10, name: "last_packet_sent_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2100
+ { no: 11, name: "last_packet_received_timestamp", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2101
+ { no: 12, name: "total_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2102
+ { no: 13, name: "current_round_trip_time", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2103
+ { no: 14, name: "available_outgoing_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2104
+ { no: 15, name: "available_incoming_bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2105
+ { no: 16, name: "requests_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2106
+ { no: 17, name: "requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2107
+ { no: 18, name: "responses_received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2108
+ { no: 19, name: "responses_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2109
+ { no: 20, name: "consent_requests_sent", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2110
+ { no: 21, name: "packets_discarded_on_send", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2111
+ { no: 22, name: "bytes_discarded_on_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2112
+ ]);
2113
+ /**
2114
+ * @generated from message livekit.proto.IceCandidateStats
2115
+ */
2116
+ class IceCandidateStats extends protobuf_1.Message {
2117
+ constructor(data) {
2118
+ super();
2119
+ /**
2120
+ * @generated from field: string transport_id = 1;
2121
+ */
2122
+ this.transportId = "";
2123
+ /**
2124
+ * @generated from field: string address = 2;
2125
+ */
2126
+ this.address = "";
2127
+ /**
2128
+ * @generated from field: int32 port = 3;
2129
+ */
2130
+ this.port = 0;
2131
+ /**
2132
+ * @generated from field: string protocol = 4;
2133
+ */
2134
+ this.protocol = "";
2135
+ /**
2136
+ * @generated from field: int32 priority = 6;
2137
+ */
2138
+ this.priority = 0;
2139
+ /**
2140
+ * @generated from field: string url = 7;
2141
+ */
2142
+ this.url = "";
2143
+ /**
2144
+ * @generated from field: string foundation = 9;
2145
+ */
2146
+ this.foundation = "";
2147
+ /**
2148
+ * @generated from field: string related_address = 10;
2149
+ */
2150
+ this.relatedAddress = "";
2151
+ /**
2152
+ * @generated from field: int32 related_port = 11;
2153
+ */
2154
+ this.relatedPort = 0;
2155
+ /**
2156
+ * @generated from field: string username_fragment = 12;
2157
+ */
2158
+ this.usernameFragment = "";
2159
+ protobuf_1.proto3.util.initPartial(data, this);
2160
+ }
2161
+ static fromBinary(bytes, options) {
2162
+ return new IceCandidateStats().fromBinary(bytes, options);
2163
+ }
2164
+ static fromJson(jsonValue, options) {
2165
+ return new IceCandidateStats().fromJson(jsonValue, options);
2166
+ }
2167
+ static fromJsonString(jsonString, options) {
2168
+ return new IceCandidateStats().fromJsonString(jsonString, options);
2169
+ }
2170
+ static equals(a, b) {
2171
+ return protobuf_1.proto3.util.equals(IceCandidateStats, a, b);
2172
+ }
2173
+ }
2174
+ exports.IceCandidateStats = IceCandidateStats;
2175
+ IceCandidateStats.runtime = protobuf_1.proto3;
2176
+ IceCandidateStats.typeName = "livekit.proto.IceCandidateStats";
2177
+ IceCandidateStats.fields = protobuf_1.proto3.util.newFieldList(() => [
2178
+ { no: 1, name: "transport_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2179
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2180
+ { no: 3, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2181
+ { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2182
+ { no: 5, name: "candidate_type", kind: "enum", T: protobuf_1.proto3.getEnumType(IceCandidateType), opt: true },
2183
+ { no: 6, name: "priority", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2184
+ { no: 7, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2185
+ { no: 8, name: "relay_protocol", kind: "enum", T: protobuf_1.proto3.getEnumType(IceServerTransportProtocol), opt: true },
2186
+ { no: 9, name: "foundation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2187
+ { no: 10, name: "related_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2188
+ { no: 11, name: "related_port", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2189
+ { no: 12, name: "username_fragment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2190
+ { no: 13, name: "tcp_type", kind: "enum", T: protobuf_1.proto3.getEnumType(IceTcpCandidateType), opt: true },
2191
+ ]);
2192
+ /**
2193
+ * @generated from message livekit.proto.CertificateStats
2194
+ */
2195
+ class CertificateStats extends protobuf_1.Message {
2196
+ constructor(data) {
2197
+ super();
2198
+ /**
2199
+ * @generated from field: string fingerprint = 1;
2200
+ */
2201
+ this.fingerprint = "";
2202
+ /**
2203
+ * @generated from field: string fingerprint_algorithm = 2;
2204
+ */
2205
+ this.fingerprintAlgorithm = "";
2206
+ /**
2207
+ * @generated from field: string base64_certificate = 3;
2208
+ */
2209
+ this.base64Certificate = "";
2210
+ /**
2211
+ * @generated from field: string issuer_certificate_id = 4;
2212
+ */
2213
+ this.issuerCertificateId = "";
2214
+ protobuf_1.proto3.util.initPartial(data, this);
2215
+ }
2216
+ static fromBinary(bytes, options) {
2217
+ return new CertificateStats().fromBinary(bytes, options);
2218
+ }
2219
+ static fromJson(jsonValue, options) {
2220
+ return new CertificateStats().fromJson(jsonValue, options);
2221
+ }
2222
+ static fromJsonString(jsonString, options) {
2223
+ return new CertificateStats().fromJsonString(jsonString, options);
2224
+ }
2225
+ static equals(a, b) {
2226
+ return protobuf_1.proto3.util.equals(CertificateStats, a, b);
2227
+ }
2228
+ }
2229
+ exports.CertificateStats = CertificateStats;
2230
+ CertificateStats.runtime = protobuf_1.proto3;
2231
+ CertificateStats.typeName = "livekit.proto.CertificateStats";
2232
+ CertificateStats.fields = protobuf_1.proto3.util.newFieldList(() => [
2233
+ { no: 1, name: "fingerprint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2234
+ { no: 2, name: "fingerprint_algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2235
+ { no: 3, name: "base64_certificate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2236
+ { no: 4, name: "issuer_certificate_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2237
+ ]);
2238
+ //# sourceMappingURL=stats_pb.js.map