@livekit/rtc-node 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/build.rs +4 -0
  2. package/dist/audio_frame.d.ts +1 -1
  3. package/dist/audio_frame.d.ts.map +1 -1
  4. package/dist/audio_frame.js +10 -11
  5. package/dist/audio_frame.js.map +1 -1
  6. package/dist/audio_source.d.ts +3 -3
  7. package/dist/audio_source.d.ts.map +1 -1
  8. package/dist/audio_source.js +14 -15
  9. package/dist/audio_source.js.map +1 -1
  10. package/dist/audio_stream.d.ts +4 -4
  11. package/dist/audio_stream.d.ts.map +1 -1
  12. package/dist/audio_stream.js +17 -21
  13. package/dist/audio_stream.js.map +1 -1
  14. package/dist/e2ee.d.ts +1 -1
  15. package/dist/e2ee.d.ts.map +1 -1
  16. package/dist/e2ee.js +42 -45
  17. package/dist/e2ee.js.map +1 -1
  18. package/dist/ffi_client.d.ts +2 -2
  19. package/dist/ffi_client.d.ts.map +1 -1
  20. package/dist/ffi_client.js +17 -24
  21. package/dist/ffi_client.js.map +1 -1
  22. package/dist/index.d.ts +15 -15
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +18 -70
  25. package/dist/index.js.map +1 -1
  26. package/{src/native.js → dist/napi/native.cjs} +12 -0
  27. package/dist/napi/native.js +15 -0
  28. package/dist/participant.d.ts +24 -9
  29. package/dist/participant.d.ts.map +1 -1
  30. package/dist/participant.js +45 -45
  31. package/dist/participant.js.map +1 -1
  32. package/dist/proto/audio_frame_pb.js +148 -176
  33. package/dist/proto/audio_frame_pb.js.map +1 -1
  34. package/dist/proto/e2ee_pb.js +134 -162
  35. package/dist/proto/e2ee_pb.js.map +1 -1
  36. package/dist/proto/ffi_pb.js +115 -126
  37. package/dist/proto/ffi_pb.js.map +1 -1
  38. package/dist/proto/handle_pb.js +7 -11
  39. package/dist/proto/handle_pb.js.map +1 -1
  40. package/dist/proto/participant_pb.js +13 -18
  41. package/dist/proto/participant_pb.js.map +1 -1
  42. package/dist/proto/room_pb.js +388 -454
  43. package/dist/proto/room_pb.js.map +1 -1
  44. package/dist/proto/stats_pb.js +265 -303
  45. package/dist/proto/stats_pb.js.map +1 -1
  46. package/dist/proto/track_pb.js +87 -102
  47. package/dist/proto/track_pb.js.map +1 -1
  48. package/dist/proto/video_frame_pb.js +184 -215
  49. package/dist/proto/video_frame_pb.js.map +1 -1
  50. package/dist/room.d.ts +10 -9
  51. package/dist/room.d.ts.map +1 -1
  52. package/dist/room.js +74 -77
  53. package/dist/room.js.map +1 -1
  54. package/dist/track.d.ts +4 -4
  55. package/dist/track.d.ts.map +1 -1
  56. package/dist/track.js +15 -20
  57. package/dist/track.js.map +1 -1
  58. package/dist/track_publication.d.ts +4 -4
  59. package/dist/track_publication.d.ts.map +1 -1
  60. package/dist/track_publication.js +12 -15
  61. package/dist/track_publication.js.map +1 -1
  62. package/dist/video_frame.d.ts +1 -1
  63. package/dist/video_frame.d.ts.map +1 -1
  64. package/dist/video_frame.js +57 -71
  65. package/dist/video_frame.js.map +1 -1
  66. package/dist/video_source.d.ts +3 -3
  67. package/dist/video_source.d.ts.map +1 -1
  68. package/dist/video_source.js +12 -13
  69. package/dist/video_source.js.map +1 -1
  70. package/dist/video_stream.d.ts +4 -4
  71. package/dist/video_stream.d.ts.map +1 -1
  72. package/dist/video_stream.js +18 -22
  73. package/dist/video_stream.js.map +1 -1
  74. package/package.json +14 -14
  75. package/src/audio_frame.ts +6 -2
  76. package/src/audio_source.ts +8 -4
  77. package/src/audio_stream.ts +9 -5
  78. package/src/e2ee.ts +6 -2
  79. package/src/ffi_client.ts +6 -2
  80. package/src/index.ts +19 -15
  81. package/src/lib.rs +4 -0
  82. package/src/napi/native.cjs +281 -0
  83. package/src/napi/native.js +15 -0
  84. package/src/nodejs.rs +4 -0
  85. package/src/participant.ts +45 -22
  86. package/src/room.ts +56 -49
  87. package/src/track.ts +8 -4
  88. package/src/track_publication.ts +10 -6
  89. package/src/video_frame.ts +6 -2
  90. package/src/video_source.ts +7 -3
  91. package/src/video_stream.ts +9 -5
  92. package/dist/native.d.ts.map +0 -1
  93. package/dist/native.js +0 -297
  94. package/dist/native.js.map +0 -1
  95. /package/dist/{native.d.ts → napi/native.d.ts} +0 -0
  96. /package/src/{native.d.ts → napi/native.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // Copyright 2023 LiveKit, Inc.
3
2
  //
4
3
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,20 +11,17 @@
12
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
12
  // See the License for the specific language governing permissions and
14
13
  // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TrackSubscribed = exports.TrackUnpublished = exports.TrackPublished = exports.LocalTrackUnpublished = exports.LocalTrackPublished = exports.ParticipantDisconnected = exports.ParticipantConnected = exports.OwnedRoom = exports.RoomInfo = exports.RoomEvent = exports.OwnedBuffer = exports.BufferInfo = exports.RoomOptions = exports.RtcConfig = exports.IceServer = exports.TrackPublishOptions = exports.AudioEncoding = exports.VideoEncoding = exports.GetSessionStatsCallback = exports.GetSessionStatsResponse = exports.GetSessionStatsRequest = exports.SetSubscribedResponse = exports.SetSubscribedRequest = exports.UpdateLocalNameCallback = exports.UpdateLocalNameResponse = exports.UpdateLocalNameRequest = exports.UpdateLocalMetadataCallback = exports.UpdateLocalMetadataResponse = exports.UpdateLocalMetadataRequest = exports.PublishDataCallback = exports.PublishDataResponse = exports.PublishDataRequest = exports.UnpublishTrackCallback = exports.UnpublishTrackResponse = exports.UnpublishTrackRequest = exports.PublishTrackCallback = exports.PublishTrackResponse = exports.PublishTrackRequest = exports.DisconnectCallback = exports.DisconnectResponse = exports.DisconnectRequest = exports.ConnectCallback_ParticipantWithTracks = exports.ConnectCallback = exports.ConnectResponse = exports.ConnectRequest = exports.DataPacketKind = exports.ConnectionState = exports.ConnectionQuality = exports.ContinualGatheringPolicy = exports.IceTransportType = void 0;
17
- exports.RoomEOS = exports.Reconnected = exports.Reconnecting = exports.Disconnected = exports.Connected = exports.ConnectionStateChanged = exports.DataReceived = exports.ConnectionQualityChanged = exports.ParticipantNameChanged = exports.ParticipantMetadataChanged = exports.RoomMetadataChanged = exports.ActiveSpeakersChanged = exports.E2eeStateChanged = exports.TrackUnmuted = exports.TrackMuted = exports.TrackSubscriptionFailed = exports.TrackUnsubscribed = void 0;
18
- const protobuf_1 = require("@bufbuild/protobuf");
19
- const participant_pb_js_1 = require("./participant_pb.js");
20
- const track_pb_js_1 = require("./track_pb.js");
21
- const stats_pb_js_1 = require("./stats_pb.js");
22
- const video_frame_pb_js_1 = require("./video_frame_pb.js");
23
- const e2ee_pb_js_1 = require("./e2ee_pb.js");
24
- const handle_pb_js_1 = require("./handle_pb.js");
14
+ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
15
+ import { OwnedParticipant } from "./participant_pb.js";
16
+ import { OwnedTrack, OwnedTrackPublication, TrackSource } from "./track_pb.js";
17
+ import { RtcStats } from "./stats_pb.js";
18
+ import { VideoCodec } from "./video_frame_pb.js";
19
+ import { E2eeOptions, EncryptionState } from "./e2ee_pb.js";
20
+ import { FfiOwnedHandle } from "./handle_pb.js";
25
21
  /**
26
22
  * @generated from enum livekit.proto.IceTransportType
27
23
  */
28
- var IceTransportType;
24
+ export var IceTransportType;
29
25
  (function (IceTransportType) {
30
26
  /**
31
27
  * @generated from enum value: TRANSPORT_RELAY = 0;
@@ -39,9 +35,9 @@ var IceTransportType;
39
35
  * @generated from enum value: TRANSPORT_ALL = 2;
40
36
  */
41
37
  IceTransportType[IceTransportType["TRANSPORT_ALL"] = 2] = "TRANSPORT_ALL";
42
- })(IceTransportType || (exports.IceTransportType = IceTransportType = {}));
38
+ })(IceTransportType || (IceTransportType = {}));
43
39
  // Retrieve enum metadata with: proto3.getEnumType(IceTransportType)
44
- protobuf_1.proto3.util.setEnumType(IceTransportType, "livekit.proto.IceTransportType", [
40
+ proto3.util.setEnumType(IceTransportType, "livekit.proto.IceTransportType", [
45
41
  { no: 0, name: "TRANSPORT_RELAY" },
46
42
  { no: 1, name: "TRANSPORT_NOHOST" },
47
43
  { no: 2, name: "TRANSPORT_ALL" },
@@ -49,7 +45,7 @@ protobuf_1.proto3.util.setEnumType(IceTransportType, "livekit.proto.IceTransport
49
45
  /**
50
46
  * @generated from enum livekit.proto.ContinualGatheringPolicy
51
47
  */
52
- var ContinualGatheringPolicy;
48
+ export var ContinualGatheringPolicy;
53
49
  (function (ContinualGatheringPolicy) {
54
50
  /**
55
51
  * @generated from enum value: GATHER_ONCE = 0;
@@ -59,16 +55,16 @@ var ContinualGatheringPolicy;
59
55
  * @generated from enum value: GATHER_CONTINUALLY = 1;
60
56
  */
61
57
  ContinualGatheringPolicy[ContinualGatheringPolicy["GATHER_CONTINUALLY"] = 1] = "GATHER_CONTINUALLY";
62
- })(ContinualGatheringPolicy || (exports.ContinualGatheringPolicy = ContinualGatheringPolicy = {}));
58
+ })(ContinualGatheringPolicy || (ContinualGatheringPolicy = {}));
63
59
  // Retrieve enum metadata with: proto3.getEnumType(ContinualGatheringPolicy)
64
- protobuf_1.proto3.util.setEnumType(ContinualGatheringPolicy, "livekit.proto.ContinualGatheringPolicy", [
60
+ proto3.util.setEnumType(ContinualGatheringPolicy, "livekit.proto.ContinualGatheringPolicy", [
65
61
  { no: 0, name: "GATHER_ONCE" },
66
62
  { no: 1, name: "GATHER_CONTINUALLY" },
67
63
  ]);
68
64
  /**
69
65
  * @generated from enum livekit.proto.ConnectionQuality
70
66
  */
71
- var ConnectionQuality;
67
+ export var ConnectionQuality;
72
68
  (function (ConnectionQuality) {
73
69
  /**
74
70
  * @generated from enum value: QUALITY_POOR = 0;
@@ -82,9 +78,9 @@ var ConnectionQuality;
82
78
  * @generated from enum value: QUALITY_EXCELLENT = 2;
83
79
  */
84
80
  ConnectionQuality[ConnectionQuality["QUALITY_EXCELLENT"] = 2] = "QUALITY_EXCELLENT";
85
- })(ConnectionQuality || (exports.ConnectionQuality = ConnectionQuality = {}));
81
+ })(ConnectionQuality || (ConnectionQuality = {}));
86
82
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionQuality)
87
- protobuf_1.proto3.util.setEnumType(ConnectionQuality, "livekit.proto.ConnectionQuality", [
83
+ proto3.util.setEnumType(ConnectionQuality, "livekit.proto.ConnectionQuality", [
88
84
  { no: 0, name: "QUALITY_POOR" },
89
85
  { no: 1, name: "QUALITY_GOOD" },
90
86
  { no: 2, name: "QUALITY_EXCELLENT" },
@@ -92,7 +88,7 @@ protobuf_1.proto3.util.setEnumType(ConnectionQuality, "livekit.proto.ConnectionQ
92
88
  /**
93
89
  * @generated from enum livekit.proto.ConnectionState
94
90
  */
95
- var ConnectionState;
91
+ export var ConnectionState;
96
92
  (function (ConnectionState) {
97
93
  /**
98
94
  * @generated from enum value: CONN_DISCONNECTED = 0;
@@ -106,9 +102,9 @@ var ConnectionState;
106
102
  * @generated from enum value: CONN_RECONNECTING = 2;
107
103
  */
108
104
  ConnectionState[ConnectionState["CONN_RECONNECTING"] = 2] = "CONN_RECONNECTING";
109
- })(ConnectionState || (exports.ConnectionState = ConnectionState = {}));
105
+ })(ConnectionState || (ConnectionState = {}));
110
106
  // Retrieve enum metadata with: proto3.getEnumType(ConnectionState)
111
- protobuf_1.proto3.util.setEnumType(ConnectionState, "livekit.proto.ConnectionState", [
107
+ proto3.util.setEnumType(ConnectionState, "livekit.proto.ConnectionState", [
112
108
  { no: 0, name: "CONN_DISCONNECTED" },
113
109
  { no: 1, name: "CONN_CONNECTED" },
114
110
  { no: 2, name: "CONN_RECONNECTING" },
@@ -116,7 +112,7 @@ protobuf_1.proto3.util.setEnumType(ConnectionState, "livekit.proto.ConnectionSta
116
112
  /**
117
113
  * @generated from enum livekit.proto.DataPacketKind
118
114
  */
119
- var DataPacketKind;
115
+ export var DataPacketKind;
120
116
  (function (DataPacketKind) {
121
117
  /**
122
118
  * @generated from enum value: KIND_LOSSY = 0;
@@ -126,9 +122,9 @@ var DataPacketKind;
126
122
  * @generated from enum value: KIND_RELIABLE = 1;
127
123
  */
128
124
  DataPacketKind[DataPacketKind["KIND_RELIABLE"] = 1] = "KIND_RELIABLE";
129
- })(DataPacketKind || (exports.DataPacketKind = DataPacketKind = {}));
125
+ })(DataPacketKind || (DataPacketKind = {}));
130
126
  // Retrieve enum metadata with: proto3.getEnumType(DataPacketKind)
131
- protobuf_1.proto3.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind", [
127
+ proto3.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind", [
132
128
  { no: 0, name: "KIND_LOSSY" },
133
129
  { no: 1, name: "KIND_RELIABLE" },
134
130
  ]);
@@ -137,7 +133,7 @@ protobuf_1.proto3.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind
137
133
  *
138
134
  * @generated from message livekit.proto.ConnectRequest
139
135
  */
140
- class ConnectRequest extends protobuf_1.Message {
136
+ export class ConnectRequest extends Message {
141
137
  constructor(data) {
142
138
  super();
143
139
  /**
@@ -148,7 +144,7 @@ class ConnectRequest extends protobuf_1.Message {
148
144
  * @generated from field: string token = 2;
149
145
  */
150
146
  this.token = "";
151
- protobuf_1.proto3.util.initPartial(data, this);
147
+ proto3.util.initPartial(data, this);
152
148
  }
153
149
  static fromBinary(bytes, options) {
154
150
  return new ConnectRequest().fromBinary(bytes, options);
@@ -160,13 +156,12 @@ class ConnectRequest extends protobuf_1.Message {
160
156
  return new ConnectRequest().fromJsonString(jsonString, options);
161
157
  }
162
158
  static equals(a, b) {
163
- return protobuf_1.proto3.util.equals(ConnectRequest, a, b);
159
+ return proto3.util.equals(ConnectRequest, a, b);
164
160
  }
165
161
  }
166
- exports.ConnectRequest = ConnectRequest;
167
- ConnectRequest.runtime = protobuf_1.proto3;
162
+ ConnectRequest.runtime = proto3;
168
163
  ConnectRequest.typeName = "livekit.proto.ConnectRequest";
169
- ConnectRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
164
+ ConnectRequest.fields = proto3.util.newFieldList(() => [
170
165
  { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
171
166
  { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
172
167
  { no: 3, name: "options", kind: "message", T: RoomOptions },
@@ -174,14 +169,14 @@ ConnectRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
174
169
  /**
175
170
  * @generated from message livekit.proto.ConnectResponse
176
171
  */
177
- class ConnectResponse extends protobuf_1.Message {
172
+ export class ConnectResponse extends Message {
178
173
  constructor(data) {
179
174
  super();
180
175
  /**
181
176
  * @generated from field: uint64 async_id = 1;
182
177
  */
183
- this.asyncId = protobuf_1.protoInt64.zero;
184
- protobuf_1.proto3.util.initPartial(data, this);
178
+ this.asyncId = protoInt64.zero;
179
+ proto3.util.initPartial(data, this);
185
180
  }
186
181
  static fromBinary(bytes, options) {
187
182
  return new ConnectResponse().fromBinary(bytes, options);
@@ -193,30 +188,29 @@ class ConnectResponse extends protobuf_1.Message {
193
188
  return new ConnectResponse().fromJsonString(jsonString, options);
194
189
  }
195
190
  static equals(a, b) {
196
- return protobuf_1.proto3.util.equals(ConnectResponse, a, b);
191
+ return proto3.util.equals(ConnectResponse, a, b);
197
192
  }
198
193
  }
199
- exports.ConnectResponse = ConnectResponse;
200
- ConnectResponse.runtime = protobuf_1.proto3;
194
+ ConnectResponse.runtime = proto3;
201
195
  ConnectResponse.typeName = "livekit.proto.ConnectResponse";
202
- ConnectResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
196
+ ConnectResponse.fields = proto3.util.newFieldList(() => [
203
197
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
204
198
  ]);
205
199
  /**
206
200
  * @generated from message livekit.proto.ConnectCallback
207
201
  */
208
- class ConnectCallback extends protobuf_1.Message {
202
+ export class ConnectCallback extends Message {
209
203
  constructor(data) {
210
204
  super();
211
205
  /**
212
206
  * @generated from field: uint64 async_id = 1;
213
207
  */
214
- this.asyncId = protobuf_1.protoInt64.zero;
208
+ this.asyncId = protoInt64.zero;
215
209
  /**
216
210
  * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 5;
217
211
  */
218
212
  this.participants = [];
219
- protobuf_1.proto3.util.initPartial(data, this);
213
+ proto3.util.initPartial(data, this);
220
214
  }
221
215
  static fromBinary(bytes, options) {
222
216
  return new ConnectCallback().fromBinary(bytes, options);
@@ -228,23 +222,22 @@ class ConnectCallback extends protobuf_1.Message {
228
222
  return new ConnectCallback().fromJsonString(jsonString, options);
229
223
  }
230
224
  static equals(a, b) {
231
- return protobuf_1.proto3.util.equals(ConnectCallback, a, b);
225
+ return proto3.util.equals(ConnectCallback, a, b);
232
226
  }
233
227
  }
234
- exports.ConnectCallback = ConnectCallback;
235
- ConnectCallback.runtime = protobuf_1.proto3;
228
+ ConnectCallback.runtime = proto3;
236
229
  ConnectCallback.typeName = "livekit.proto.ConnectCallback";
237
- ConnectCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
230
+ ConnectCallback.fields = proto3.util.newFieldList(() => [
238
231
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
239
232
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
240
233
  { no: 3, name: "room", kind: "message", T: OwnedRoom },
241
- { no: 4, name: "local_participant", kind: "message", T: participant_pb_js_1.OwnedParticipant },
234
+ { no: 4, name: "local_participant", kind: "message", T: OwnedParticipant },
242
235
  { no: 5, name: "participants", kind: "message", T: ConnectCallback_ParticipantWithTracks, repeated: true },
243
236
  ]);
244
237
  /**
245
238
  * @generated from message livekit.proto.ConnectCallback.ParticipantWithTracks
246
239
  */
247
- class ConnectCallback_ParticipantWithTracks extends protobuf_1.Message {
240
+ export class ConnectCallback_ParticipantWithTracks extends Message {
248
241
  constructor(data) {
249
242
  super();
250
243
  /**
@@ -254,7 +247,7 @@ class ConnectCallback_ParticipantWithTracks extends protobuf_1.Message {
254
247
  * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
255
248
  */
256
249
  this.publications = [];
257
- protobuf_1.proto3.util.initPartial(data, this);
250
+ proto3.util.initPartial(data, this);
258
251
  }
259
252
  static fromBinary(bytes, options) {
260
253
  return new ConnectCallback_ParticipantWithTracks().fromBinary(bytes, options);
@@ -266,29 +259,28 @@ class ConnectCallback_ParticipantWithTracks extends protobuf_1.Message {
266
259
  return new ConnectCallback_ParticipantWithTracks().fromJsonString(jsonString, options);
267
260
  }
268
261
  static equals(a, b) {
269
- return protobuf_1.proto3.util.equals(ConnectCallback_ParticipantWithTracks, a, b);
262
+ return proto3.util.equals(ConnectCallback_ParticipantWithTracks, a, b);
270
263
  }
271
264
  }
272
- exports.ConnectCallback_ParticipantWithTracks = ConnectCallback_ParticipantWithTracks;
273
- ConnectCallback_ParticipantWithTracks.runtime = protobuf_1.proto3;
265
+ ConnectCallback_ParticipantWithTracks.runtime = proto3;
274
266
  ConnectCallback_ParticipantWithTracks.typeName = "livekit.proto.ConnectCallback.ParticipantWithTracks";
275
- ConnectCallback_ParticipantWithTracks.fields = protobuf_1.proto3.util.newFieldList(() => [
276
- { no: 1, name: "participant", kind: "message", T: participant_pb_js_1.OwnedParticipant },
277
- { no: 2, name: "publications", kind: "message", T: track_pb_js_1.OwnedTrackPublication, repeated: true },
267
+ ConnectCallback_ParticipantWithTracks.fields = proto3.util.newFieldList(() => [
268
+ { no: 1, name: "participant", kind: "message", T: OwnedParticipant },
269
+ { no: 2, name: "publications", kind: "message", T: OwnedTrackPublication, repeated: true },
278
270
  ]);
279
271
  /**
280
272
  * Disconnect from the a room
281
273
  *
282
274
  * @generated from message livekit.proto.DisconnectRequest
283
275
  */
284
- class DisconnectRequest extends protobuf_1.Message {
276
+ export class DisconnectRequest extends Message {
285
277
  constructor(data) {
286
278
  super();
287
279
  /**
288
280
  * @generated from field: uint64 room_handle = 1;
289
281
  */
290
- this.roomHandle = protobuf_1.protoInt64.zero;
291
- protobuf_1.proto3.util.initPartial(data, this);
282
+ this.roomHandle = protoInt64.zero;
283
+ proto3.util.initPartial(data, this);
292
284
  }
293
285
  static fromBinary(bytes, options) {
294
286
  return new DisconnectRequest().fromBinary(bytes, options);
@@ -300,26 +292,25 @@ class DisconnectRequest extends protobuf_1.Message {
300
292
  return new DisconnectRequest().fromJsonString(jsonString, options);
301
293
  }
302
294
  static equals(a, b) {
303
- return protobuf_1.proto3.util.equals(DisconnectRequest, a, b);
295
+ return proto3.util.equals(DisconnectRequest, a, b);
304
296
  }
305
297
  }
306
- exports.DisconnectRequest = DisconnectRequest;
307
- DisconnectRequest.runtime = protobuf_1.proto3;
298
+ DisconnectRequest.runtime = proto3;
308
299
  DisconnectRequest.typeName = "livekit.proto.DisconnectRequest";
309
- DisconnectRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
300
+ DisconnectRequest.fields = proto3.util.newFieldList(() => [
310
301
  { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
311
302
  ]);
312
303
  /**
313
304
  * @generated from message livekit.proto.DisconnectResponse
314
305
  */
315
- class DisconnectResponse extends protobuf_1.Message {
306
+ export class DisconnectResponse extends Message {
316
307
  constructor(data) {
317
308
  super();
318
309
  /**
319
310
  * @generated from field: uint64 async_id = 1;
320
311
  */
321
- this.asyncId = protobuf_1.protoInt64.zero;
322
- protobuf_1.proto3.util.initPartial(data, this);
312
+ this.asyncId = protoInt64.zero;
313
+ proto3.util.initPartial(data, this);
323
314
  }
324
315
  static fromBinary(bytes, options) {
325
316
  return new DisconnectResponse().fromBinary(bytes, options);
@@ -331,26 +322,25 @@ class DisconnectResponse extends protobuf_1.Message {
331
322
  return new DisconnectResponse().fromJsonString(jsonString, options);
332
323
  }
333
324
  static equals(a, b) {
334
- return protobuf_1.proto3.util.equals(DisconnectResponse, a, b);
325
+ return proto3.util.equals(DisconnectResponse, a, b);
335
326
  }
336
327
  }
337
- exports.DisconnectResponse = DisconnectResponse;
338
- DisconnectResponse.runtime = protobuf_1.proto3;
328
+ DisconnectResponse.runtime = proto3;
339
329
  DisconnectResponse.typeName = "livekit.proto.DisconnectResponse";
340
- DisconnectResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
330
+ DisconnectResponse.fields = proto3.util.newFieldList(() => [
341
331
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
342
332
  ]);
343
333
  /**
344
334
  * @generated from message livekit.proto.DisconnectCallback
345
335
  */
346
- class DisconnectCallback extends protobuf_1.Message {
336
+ export class DisconnectCallback extends Message {
347
337
  constructor(data) {
348
338
  super();
349
339
  /**
350
340
  * @generated from field: uint64 async_id = 1;
351
341
  */
352
- this.asyncId = protobuf_1.protoInt64.zero;
353
- protobuf_1.proto3.util.initPartial(data, this);
342
+ this.asyncId = protoInt64.zero;
343
+ proto3.util.initPartial(data, this);
354
344
  }
355
345
  static fromBinary(bytes, options) {
356
346
  return new DisconnectCallback().fromBinary(bytes, options);
@@ -362,13 +352,12 @@ class DisconnectCallback extends protobuf_1.Message {
362
352
  return new DisconnectCallback().fromJsonString(jsonString, options);
363
353
  }
364
354
  static equals(a, b) {
365
- return protobuf_1.proto3.util.equals(DisconnectCallback, a, b);
355
+ return proto3.util.equals(DisconnectCallback, a, b);
366
356
  }
367
357
  }
368
- exports.DisconnectCallback = DisconnectCallback;
369
- DisconnectCallback.runtime = protobuf_1.proto3;
358
+ DisconnectCallback.runtime = proto3;
370
359
  DisconnectCallback.typeName = "livekit.proto.DisconnectCallback";
371
- DisconnectCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
360
+ DisconnectCallback.fields = proto3.util.newFieldList(() => [
372
361
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
373
362
  ]);
374
363
  /**
@@ -376,18 +365,18 @@ DisconnectCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
376
365
  *
377
366
  * @generated from message livekit.proto.PublishTrackRequest
378
367
  */
379
- class PublishTrackRequest extends protobuf_1.Message {
368
+ export class PublishTrackRequest extends Message {
380
369
  constructor(data) {
381
370
  super();
382
371
  /**
383
372
  * @generated from field: uint64 local_participant_handle = 1;
384
373
  */
385
- this.localParticipantHandle = protobuf_1.protoInt64.zero;
374
+ this.localParticipantHandle = protoInt64.zero;
386
375
  /**
387
376
  * @generated from field: uint64 track_handle = 2;
388
377
  */
389
- this.trackHandle = protobuf_1.protoInt64.zero;
390
- protobuf_1.proto3.util.initPartial(data, this);
378
+ this.trackHandle = protoInt64.zero;
379
+ proto3.util.initPartial(data, this);
391
380
  }
392
381
  static fromBinary(bytes, options) {
393
382
  return new PublishTrackRequest().fromBinary(bytes, options);
@@ -399,13 +388,12 @@ class PublishTrackRequest extends protobuf_1.Message {
399
388
  return new PublishTrackRequest().fromJsonString(jsonString, options);
400
389
  }
401
390
  static equals(a, b) {
402
- return protobuf_1.proto3.util.equals(PublishTrackRequest, a, b);
391
+ return proto3.util.equals(PublishTrackRequest, a, b);
403
392
  }
404
393
  }
405
- exports.PublishTrackRequest = PublishTrackRequest;
406
- PublishTrackRequest.runtime = protobuf_1.proto3;
394
+ PublishTrackRequest.runtime = proto3;
407
395
  PublishTrackRequest.typeName = "livekit.proto.PublishTrackRequest";
408
- PublishTrackRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
396
+ PublishTrackRequest.fields = proto3.util.newFieldList(() => [
409
397
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
410
398
  { no: 2, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
411
399
  { no: 3, name: "options", kind: "message", T: TrackPublishOptions },
@@ -413,14 +401,14 @@ PublishTrackRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
413
401
  /**
414
402
  * @generated from message livekit.proto.PublishTrackResponse
415
403
  */
416
- class PublishTrackResponse extends protobuf_1.Message {
404
+ export class PublishTrackResponse extends Message {
417
405
  constructor(data) {
418
406
  super();
419
407
  /**
420
408
  * @generated from field: uint64 async_id = 1;
421
409
  */
422
- this.asyncId = protobuf_1.protoInt64.zero;
423
- protobuf_1.proto3.util.initPartial(data, this);
410
+ this.asyncId = protoInt64.zero;
411
+ proto3.util.initPartial(data, this);
424
412
  }
425
413
  static fromBinary(bytes, options) {
426
414
  return new PublishTrackResponse().fromBinary(bytes, options);
@@ -432,26 +420,25 @@ class PublishTrackResponse extends protobuf_1.Message {
432
420
  return new PublishTrackResponse().fromJsonString(jsonString, options);
433
421
  }
434
422
  static equals(a, b) {
435
- return protobuf_1.proto3.util.equals(PublishTrackResponse, a, b);
423
+ return proto3.util.equals(PublishTrackResponse, a, b);
436
424
  }
437
425
  }
438
- exports.PublishTrackResponse = PublishTrackResponse;
439
- PublishTrackResponse.runtime = protobuf_1.proto3;
426
+ PublishTrackResponse.runtime = proto3;
440
427
  PublishTrackResponse.typeName = "livekit.proto.PublishTrackResponse";
441
- PublishTrackResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
428
+ PublishTrackResponse.fields = proto3.util.newFieldList(() => [
442
429
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
443
430
  ]);
444
431
  /**
445
432
  * @generated from message livekit.proto.PublishTrackCallback
446
433
  */
447
- class PublishTrackCallback extends protobuf_1.Message {
434
+ export class PublishTrackCallback extends Message {
448
435
  constructor(data) {
449
436
  super();
450
437
  /**
451
438
  * @generated from field: uint64 async_id = 1;
452
439
  */
453
- this.asyncId = protobuf_1.protoInt64.zero;
454
- protobuf_1.proto3.util.initPartial(data, this);
440
+ this.asyncId = protoInt64.zero;
441
+ proto3.util.initPartial(data, this);
455
442
  }
456
443
  static fromBinary(bytes, options) {
457
444
  return new PublishTrackCallback().fromBinary(bytes, options);
@@ -463,29 +450,28 @@ class PublishTrackCallback extends protobuf_1.Message {
463
450
  return new PublishTrackCallback().fromJsonString(jsonString, options);
464
451
  }
465
452
  static equals(a, b) {
466
- return protobuf_1.proto3.util.equals(PublishTrackCallback, a, b);
453
+ return proto3.util.equals(PublishTrackCallback, a, b);
467
454
  }
468
455
  }
469
- exports.PublishTrackCallback = PublishTrackCallback;
470
- PublishTrackCallback.runtime = protobuf_1.proto3;
456
+ PublishTrackCallback.runtime = proto3;
471
457
  PublishTrackCallback.typeName = "livekit.proto.PublishTrackCallback";
472
- PublishTrackCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
458
+ PublishTrackCallback.fields = proto3.util.newFieldList(() => [
473
459
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
474
460
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
475
- { no: 3, name: "publication", kind: "message", T: track_pb_js_1.OwnedTrackPublication },
461
+ { no: 3, name: "publication", kind: "message", T: OwnedTrackPublication },
476
462
  ]);
477
463
  /**
478
464
  * Unpublish a track from the room
479
465
  *
480
466
  * @generated from message livekit.proto.UnpublishTrackRequest
481
467
  */
482
- class UnpublishTrackRequest extends protobuf_1.Message {
468
+ export class UnpublishTrackRequest extends Message {
483
469
  constructor(data) {
484
470
  super();
485
471
  /**
486
472
  * @generated from field: uint64 local_participant_handle = 1;
487
473
  */
488
- this.localParticipantHandle = protobuf_1.protoInt64.zero;
474
+ this.localParticipantHandle = protoInt64.zero;
489
475
  /**
490
476
  * @generated from field: string track_sid = 2;
491
477
  */
@@ -494,7 +480,7 @@ class UnpublishTrackRequest extends protobuf_1.Message {
494
480
  * @generated from field: bool stop_on_unpublish = 3;
495
481
  */
496
482
  this.stopOnUnpublish = false;
497
- protobuf_1.proto3.util.initPartial(data, this);
483
+ proto3.util.initPartial(data, this);
498
484
  }
499
485
  static fromBinary(bytes, options) {
500
486
  return new UnpublishTrackRequest().fromBinary(bytes, options);
@@ -506,13 +492,12 @@ class UnpublishTrackRequest extends protobuf_1.Message {
506
492
  return new UnpublishTrackRequest().fromJsonString(jsonString, options);
507
493
  }
508
494
  static equals(a, b) {
509
- return protobuf_1.proto3.util.equals(UnpublishTrackRequest, a, b);
495
+ return proto3.util.equals(UnpublishTrackRequest, a, b);
510
496
  }
511
497
  }
512
- exports.UnpublishTrackRequest = UnpublishTrackRequest;
513
- UnpublishTrackRequest.runtime = protobuf_1.proto3;
498
+ UnpublishTrackRequest.runtime = proto3;
514
499
  UnpublishTrackRequest.typeName = "livekit.proto.UnpublishTrackRequest";
515
- UnpublishTrackRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
500
+ UnpublishTrackRequest.fields = proto3.util.newFieldList(() => [
516
501
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
517
502
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
518
503
  { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
@@ -520,14 +505,14 @@ UnpublishTrackRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
520
505
  /**
521
506
  * @generated from message livekit.proto.UnpublishTrackResponse
522
507
  */
523
- class UnpublishTrackResponse extends protobuf_1.Message {
508
+ export class UnpublishTrackResponse extends Message {
524
509
  constructor(data) {
525
510
  super();
526
511
  /**
527
512
  * @generated from field: uint64 async_id = 1;
528
513
  */
529
- this.asyncId = protobuf_1.protoInt64.zero;
530
- protobuf_1.proto3.util.initPartial(data, this);
514
+ this.asyncId = protoInt64.zero;
515
+ proto3.util.initPartial(data, this);
531
516
  }
532
517
  static fromBinary(bytes, options) {
533
518
  return new UnpublishTrackResponse().fromBinary(bytes, options);
@@ -539,26 +524,25 @@ class UnpublishTrackResponse extends protobuf_1.Message {
539
524
  return new UnpublishTrackResponse().fromJsonString(jsonString, options);
540
525
  }
541
526
  static equals(a, b) {
542
- return protobuf_1.proto3.util.equals(UnpublishTrackResponse, a, b);
527
+ return proto3.util.equals(UnpublishTrackResponse, a, b);
543
528
  }
544
529
  }
545
- exports.UnpublishTrackResponse = UnpublishTrackResponse;
546
- UnpublishTrackResponse.runtime = protobuf_1.proto3;
530
+ UnpublishTrackResponse.runtime = proto3;
547
531
  UnpublishTrackResponse.typeName = "livekit.proto.UnpublishTrackResponse";
548
- UnpublishTrackResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
532
+ UnpublishTrackResponse.fields = proto3.util.newFieldList(() => [
549
533
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
550
534
  ]);
551
535
  /**
552
536
  * @generated from message livekit.proto.UnpublishTrackCallback
553
537
  */
554
- class UnpublishTrackCallback extends protobuf_1.Message {
538
+ export class UnpublishTrackCallback extends Message {
555
539
  constructor(data) {
556
540
  super();
557
541
  /**
558
542
  * @generated from field: uint64 async_id = 1;
559
543
  */
560
- this.asyncId = protobuf_1.protoInt64.zero;
561
- protobuf_1.proto3.util.initPartial(data, this);
544
+ this.asyncId = protoInt64.zero;
545
+ proto3.util.initPartial(data, this);
562
546
  }
563
547
  static fromBinary(bytes, options) {
564
548
  return new UnpublishTrackCallback().fromBinary(bytes, options);
@@ -570,13 +554,12 @@ class UnpublishTrackCallback extends protobuf_1.Message {
570
554
  return new UnpublishTrackCallback().fromJsonString(jsonString, options);
571
555
  }
572
556
  static equals(a, b) {
573
- return protobuf_1.proto3.util.equals(UnpublishTrackCallback, a, b);
557
+ return proto3.util.equals(UnpublishTrackCallback, a, b);
574
558
  }
575
559
  }
576
- exports.UnpublishTrackCallback = UnpublishTrackCallback;
577
- UnpublishTrackCallback.runtime = protobuf_1.proto3;
560
+ UnpublishTrackCallback.runtime = proto3;
578
561
  UnpublishTrackCallback.typeName = "livekit.proto.UnpublishTrackCallback";
579
- UnpublishTrackCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
562
+ UnpublishTrackCallback.fields = proto3.util.newFieldList(() => [
580
563
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
581
564
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
582
565
  ]);
@@ -585,21 +568,21 @@ UnpublishTrackCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
585
568
  *
586
569
  * @generated from message livekit.proto.PublishDataRequest
587
570
  */
588
- class PublishDataRequest extends protobuf_1.Message {
571
+ export class PublishDataRequest extends Message {
589
572
  constructor(data) {
590
573
  super();
591
574
  /**
592
575
  * @generated from field: uint64 local_participant_handle = 1;
593
576
  */
594
- this.localParticipantHandle = protobuf_1.protoInt64.zero;
577
+ this.localParticipantHandle = protoInt64.zero;
595
578
  /**
596
579
  * @generated from field: uint64 data_ptr = 2;
597
580
  */
598
- this.dataPtr = protobuf_1.protoInt64.zero;
581
+ this.dataPtr = protoInt64.zero;
599
582
  /**
600
583
  * @generated from field: uint64 data_len = 3;
601
584
  */
602
- this.dataLen = protobuf_1.protoInt64.zero;
585
+ this.dataLen = protoInt64.zero;
603
586
  /**
604
587
  * @generated from field: livekit.proto.DataPacketKind kind = 4;
605
588
  */
@@ -610,7 +593,7 @@ class PublishDataRequest extends protobuf_1.Message {
610
593
  * @generated from field: repeated string destination_sids = 5;
611
594
  */
612
595
  this.destinationSids = [];
613
- protobuf_1.proto3.util.initPartial(data, this);
596
+ proto3.util.initPartial(data, this);
614
597
  }
615
598
  static fromBinary(bytes, options) {
616
599
  return new PublishDataRequest().fromBinary(bytes, options);
@@ -622,31 +605,30 @@ class PublishDataRequest extends protobuf_1.Message {
622
605
  return new PublishDataRequest().fromJsonString(jsonString, options);
623
606
  }
624
607
  static equals(a, b) {
625
- return protobuf_1.proto3.util.equals(PublishDataRequest, a, b);
608
+ return proto3.util.equals(PublishDataRequest, a, b);
626
609
  }
627
610
  }
628
- exports.PublishDataRequest = PublishDataRequest;
629
- PublishDataRequest.runtime = protobuf_1.proto3;
611
+ PublishDataRequest.runtime = proto3;
630
612
  PublishDataRequest.typeName = "livekit.proto.PublishDataRequest";
631
- PublishDataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
613
+ PublishDataRequest.fields = proto3.util.newFieldList(() => [
632
614
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
633
615
  { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
634
616
  { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
635
- { no: 4, name: "kind", kind: "enum", T: protobuf_1.proto3.getEnumType(DataPacketKind) },
617
+ { no: 4, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
636
618
  { no: 5, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
637
619
  { no: 6, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
638
620
  ]);
639
621
  /**
640
622
  * @generated from message livekit.proto.PublishDataResponse
641
623
  */
642
- class PublishDataResponse extends protobuf_1.Message {
624
+ export class PublishDataResponse extends Message {
643
625
  constructor(data) {
644
626
  super();
645
627
  /**
646
628
  * @generated from field: uint64 async_id = 1;
647
629
  */
648
- this.asyncId = protobuf_1.protoInt64.zero;
649
- protobuf_1.proto3.util.initPartial(data, this);
630
+ this.asyncId = protoInt64.zero;
631
+ proto3.util.initPartial(data, this);
650
632
  }
651
633
  static fromBinary(bytes, options) {
652
634
  return new PublishDataResponse().fromBinary(bytes, options);
@@ -658,26 +640,25 @@ class PublishDataResponse extends protobuf_1.Message {
658
640
  return new PublishDataResponse().fromJsonString(jsonString, options);
659
641
  }
660
642
  static equals(a, b) {
661
- return protobuf_1.proto3.util.equals(PublishDataResponse, a, b);
643
+ return proto3.util.equals(PublishDataResponse, a, b);
662
644
  }
663
645
  }
664
- exports.PublishDataResponse = PublishDataResponse;
665
- PublishDataResponse.runtime = protobuf_1.proto3;
646
+ PublishDataResponse.runtime = proto3;
666
647
  PublishDataResponse.typeName = "livekit.proto.PublishDataResponse";
667
- PublishDataResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
648
+ PublishDataResponse.fields = proto3.util.newFieldList(() => [
668
649
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
669
650
  ]);
670
651
  /**
671
652
  * @generated from message livekit.proto.PublishDataCallback
672
653
  */
673
- class PublishDataCallback extends protobuf_1.Message {
654
+ export class PublishDataCallback extends Message {
674
655
  constructor(data) {
675
656
  super();
676
657
  /**
677
658
  * @generated from field: uint64 async_id = 1;
678
659
  */
679
- this.asyncId = protobuf_1.protoInt64.zero;
680
- protobuf_1.proto3.util.initPartial(data, this);
660
+ this.asyncId = protoInt64.zero;
661
+ proto3.util.initPartial(data, this);
681
662
  }
682
663
  static fromBinary(bytes, options) {
683
664
  return new PublishDataCallback().fromBinary(bytes, options);
@@ -689,13 +670,12 @@ class PublishDataCallback extends protobuf_1.Message {
689
670
  return new PublishDataCallback().fromJsonString(jsonString, options);
690
671
  }
691
672
  static equals(a, b) {
692
- return protobuf_1.proto3.util.equals(PublishDataCallback, a, b);
673
+ return proto3.util.equals(PublishDataCallback, a, b);
693
674
  }
694
675
  }
695
- exports.PublishDataCallback = PublishDataCallback;
696
- PublishDataCallback.runtime = protobuf_1.proto3;
676
+ PublishDataCallback.runtime = proto3;
697
677
  PublishDataCallback.typeName = "livekit.proto.PublishDataCallback";
698
- PublishDataCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
678
+ PublishDataCallback.fields = proto3.util.newFieldList(() => [
699
679
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
700
680
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
701
681
  ]);
@@ -704,18 +684,18 @@ PublishDataCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
704
684
  *
705
685
  * @generated from message livekit.proto.UpdateLocalMetadataRequest
706
686
  */
707
- class UpdateLocalMetadataRequest extends protobuf_1.Message {
687
+ export class UpdateLocalMetadataRequest extends Message {
708
688
  constructor(data) {
709
689
  super();
710
690
  /**
711
691
  * @generated from field: uint64 local_participant_handle = 1;
712
692
  */
713
- this.localParticipantHandle = protobuf_1.protoInt64.zero;
693
+ this.localParticipantHandle = protoInt64.zero;
714
694
  /**
715
695
  * @generated from field: string metadata = 2;
716
696
  */
717
697
  this.metadata = "";
718
- protobuf_1.proto3.util.initPartial(data, this);
698
+ proto3.util.initPartial(data, this);
719
699
  }
720
700
  static fromBinary(bytes, options) {
721
701
  return new UpdateLocalMetadataRequest().fromBinary(bytes, options);
@@ -727,27 +707,26 @@ class UpdateLocalMetadataRequest extends protobuf_1.Message {
727
707
  return new UpdateLocalMetadataRequest().fromJsonString(jsonString, options);
728
708
  }
729
709
  static equals(a, b) {
730
- return protobuf_1.proto3.util.equals(UpdateLocalMetadataRequest, a, b);
710
+ return proto3.util.equals(UpdateLocalMetadataRequest, a, b);
731
711
  }
732
712
  }
733
- exports.UpdateLocalMetadataRequest = UpdateLocalMetadataRequest;
734
- UpdateLocalMetadataRequest.runtime = protobuf_1.proto3;
713
+ UpdateLocalMetadataRequest.runtime = proto3;
735
714
  UpdateLocalMetadataRequest.typeName = "livekit.proto.UpdateLocalMetadataRequest";
736
- UpdateLocalMetadataRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
715
+ UpdateLocalMetadataRequest.fields = proto3.util.newFieldList(() => [
737
716
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
738
717
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
739
718
  ]);
740
719
  /**
741
720
  * @generated from message livekit.proto.UpdateLocalMetadataResponse
742
721
  */
743
- class UpdateLocalMetadataResponse extends protobuf_1.Message {
722
+ export class UpdateLocalMetadataResponse extends Message {
744
723
  constructor(data) {
745
724
  super();
746
725
  /**
747
726
  * @generated from field: uint64 async_id = 1;
748
727
  */
749
- this.asyncId = protobuf_1.protoInt64.zero;
750
- protobuf_1.proto3.util.initPartial(data, this);
728
+ this.asyncId = protoInt64.zero;
729
+ proto3.util.initPartial(data, this);
751
730
  }
752
731
  static fromBinary(bytes, options) {
753
732
  return new UpdateLocalMetadataResponse().fromBinary(bytes, options);
@@ -759,26 +738,25 @@ class UpdateLocalMetadataResponse extends protobuf_1.Message {
759
738
  return new UpdateLocalMetadataResponse().fromJsonString(jsonString, options);
760
739
  }
761
740
  static equals(a, b) {
762
- return protobuf_1.proto3.util.equals(UpdateLocalMetadataResponse, a, b);
741
+ return proto3.util.equals(UpdateLocalMetadataResponse, a, b);
763
742
  }
764
743
  }
765
- exports.UpdateLocalMetadataResponse = UpdateLocalMetadataResponse;
766
- UpdateLocalMetadataResponse.runtime = protobuf_1.proto3;
744
+ UpdateLocalMetadataResponse.runtime = proto3;
767
745
  UpdateLocalMetadataResponse.typeName = "livekit.proto.UpdateLocalMetadataResponse";
768
- UpdateLocalMetadataResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
746
+ UpdateLocalMetadataResponse.fields = proto3.util.newFieldList(() => [
769
747
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
770
748
  ]);
771
749
  /**
772
750
  * @generated from message livekit.proto.UpdateLocalMetadataCallback
773
751
  */
774
- class UpdateLocalMetadataCallback extends protobuf_1.Message {
752
+ export class UpdateLocalMetadataCallback extends Message {
775
753
  constructor(data) {
776
754
  super();
777
755
  /**
778
756
  * @generated from field: uint64 async_id = 1;
779
757
  */
780
- this.asyncId = protobuf_1.protoInt64.zero;
781
- protobuf_1.proto3.util.initPartial(data, this);
758
+ this.asyncId = protoInt64.zero;
759
+ proto3.util.initPartial(data, this);
782
760
  }
783
761
  static fromBinary(bytes, options) {
784
762
  return new UpdateLocalMetadataCallback().fromBinary(bytes, options);
@@ -790,13 +768,12 @@ class UpdateLocalMetadataCallback extends protobuf_1.Message {
790
768
  return new UpdateLocalMetadataCallback().fromJsonString(jsonString, options);
791
769
  }
792
770
  static equals(a, b) {
793
- return protobuf_1.proto3.util.equals(UpdateLocalMetadataCallback, a, b);
771
+ return proto3.util.equals(UpdateLocalMetadataCallback, a, b);
794
772
  }
795
773
  }
796
- exports.UpdateLocalMetadataCallback = UpdateLocalMetadataCallback;
797
- UpdateLocalMetadataCallback.runtime = protobuf_1.proto3;
774
+ UpdateLocalMetadataCallback.runtime = proto3;
798
775
  UpdateLocalMetadataCallback.typeName = "livekit.proto.UpdateLocalMetadataCallback";
799
- UpdateLocalMetadataCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
776
+ UpdateLocalMetadataCallback.fields = proto3.util.newFieldList(() => [
800
777
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
801
778
  ]);
802
779
  /**
@@ -804,18 +781,18 @@ UpdateLocalMetadataCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
804
781
  *
805
782
  * @generated from message livekit.proto.UpdateLocalNameRequest
806
783
  */
807
- class UpdateLocalNameRequest extends protobuf_1.Message {
784
+ export class UpdateLocalNameRequest extends Message {
808
785
  constructor(data) {
809
786
  super();
810
787
  /**
811
788
  * @generated from field: uint64 local_participant_handle = 1;
812
789
  */
813
- this.localParticipantHandle = protobuf_1.protoInt64.zero;
790
+ this.localParticipantHandle = protoInt64.zero;
814
791
  /**
815
792
  * @generated from field: string name = 2;
816
793
  */
817
794
  this.name = "";
818
- protobuf_1.proto3.util.initPartial(data, this);
795
+ proto3.util.initPartial(data, this);
819
796
  }
820
797
  static fromBinary(bytes, options) {
821
798
  return new UpdateLocalNameRequest().fromBinary(bytes, options);
@@ -827,27 +804,26 @@ class UpdateLocalNameRequest extends protobuf_1.Message {
827
804
  return new UpdateLocalNameRequest().fromJsonString(jsonString, options);
828
805
  }
829
806
  static equals(a, b) {
830
- return protobuf_1.proto3.util.equals(UpdateLocalNameRequest, a, b);
807
+ return proto3.util.equals(UpdateLocalNameRequest, a, b);
831
808
  }
832
809
  }
833
- exports.UpdateLocalNameRequest = UpdateLocalNameRequest;
834
- UpdateLocalNameRequest.runtime = protobuf_1.proto3;
810
+ UpdateLocalNameRequest.runtime = proto3;
835
811
  UpdateLocalNameRequest.typeName = "livekit.proto.UpdateLocalNameRequest";
836
- UpdateLocalNameRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
812
+ UpdateLocalNameRequest.fields = proto3.util.newFieldList(() => [
837
813
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
838
814
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
839
815
  ]);
840
816
  /**
841
817
  * @generated from message livekit.proto.UpdateLocalNameResponse
842
818
  */
843
- class UpdateLocalNameResponse extends protobuf_1.Message {
819
+ export class UpdateLocalNameResponse extends Message {
844
820
  constructor(data) {
845
821
  super();
846
822
  /**
847
823
  * @generated from field: uint64 async_id = 1;
848
824
  */
849
- this.asyncId = protobuf_1.protoInt64.zero;
850
- protobuf_1.proto3.util.initPartial(data, this);
825
+ this.asyncId = protoInt64.zero;
826
+ proto3.util.initPartial(data, this);
851
827
  }
852
828
  static fromBinary(bytes, options) {
853
829
  return new UpdateLocalNameResponse().fromBinary(bytes, options);
@@ -859,26 +835,25 @@ class UpdateLocalNameResponse extends protobuf_1.Message {
859
835
  return new UpdateLocalNameResponse().fromJsonString(jsonString, options);
860
836
  }
861
837
  static equals(a, b) {
862
- return protobuf_1.proto3.util.equals(UpdateLocalNameResponse, a, b);
838
+ return proto3.util.equals(UpdateLocalNameResponse, a, b);
863
839
  }
864
840
  }
865
- exports.UpdateLocalNameResponse = UpdateLocalNameResponse;
866
- UpdateLocalNameResponse.runtime = protobuf_1.proto3;
841
+ UpdateLocalNameResponse.runtime = proto3;
867
842
  UpdateLocalNameResponse.typeName = "livekit.proto.UpdateLocalNameResponse";
868
- UpdateLocalNameResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
843
+ UpdateLocalNameResponse.fields = proto3.util.newFieldList(() => [
869
844
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
870
845
  ]);
871
846
  /**
872
847
  * @generated from message livekit.proto.UpdateLocalNameCallback
873
848
  */
874
- class UpdateLocalNameCallback extends protobuf_1.Message {
849
+ export class UpdateLocalNameCallback extends Message {
875
850
  constructor(data) {
876
851
  super();
877
852
  /**
878
853
  * @generated from field: uint64 async_id = 1;
879
854
  */
880
- this.asyncId = protobuf_1.protoInt64.zero;
881
- protobuf_1.proto3.util.initPartial(data, this);
855
+ this.asyncId = protoInt64.zero;
856
+ proto3.util.initPartial(data, this);
882
857
  }
883
858
  static fromBinary(bytes, options) {
884
859
  return new UpdateLocalNameCallback().fromBinary(bytes, options);
@@ -890,13 +865,12 @@ class UpdateLocalNameCallback extends protobuf_1.Message {
890
865
  return new UpdateLocalNameCallback().fromJsonString(jsonString, options);
891
866
  }
892
867
  static equals(a, b) {
893
- return protobuf_1.proto3.util.equals(UpdateLocalNameCallback, a, b);
868
+ return proto3.util.equals(UpdateLocalNameCallback, a, b);
894
869
  }
895
870
  }
896
- exports.UpdateLocalNameCallback = UpdateLocalNameCallback;
897
- UpdateLocalNameCallback.runtime = protobuf_1.proto3;
871
+ UpdateLocalNameCallback.runtime = proto3;
898
872
  UpdateLocalNameCallback.typeName = "livekit.proto.UpdateLocalNameCallback";
899
- UpdateLocalNameCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
873
+ UpdateLocalNameCallback.fields = proto3.util.newFieldList(() => [
900
874
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
901
875
  ]);
902
876
  /**
@@ -904,7 +878,7 @@ UpdateLocalNameCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
904
878
  *
905
879
  * @generated from message livekit.proto.SetSubscribedRequest
906
880
  */
907
- class SetSubscribedRequest extends protobuf_1.Message {
881
+ export class SetSubscribedRequest extends Message {
908
882
  constructor(data) {
909
883
  super();
910
884
  /**
@@ -914,8 +888,8 @@ class SetSubscribedRequest extends protobuf_1.Message {
914
888
  /**
915
889
  * @generated from field: uint64 publication_handle = 2;
916
890
  */
917
- this.publicationHandle = protobuf_1.protoInt64.zero;
918
- protobuf_1.proto3.util.initPartial(data, this);
891
+ this.publicationHandle = protoInt64.zero;
892
+ proto3.util.initPartial(data, this);
919
893
  }
920
894
  static fromBinary(bytes, options) {
921
895
  return new SetSubscribedRequest().fromBinary(bytes, options);
@@ -927,23 +901,22 @@ class SetSubscribedRequest extends protobuf_1.Message {
927
901
  return new SetSubscribedRequest().fromJsonString(jsonString, options);
928
902
  }
929
903
  static equals(a, b) {
930
- return protobuf_1.proto3.util.equals(SetSubscribedRequest, a, b);
904
+ return proto3.util.equals(SetSubscribedRequest, a, b);
931
905
  }
932
906
  }
933
- exports.SetSubscribedRequest = SetSubscribedRequest;
934
- SetSubscribedRequest.runtime = protobuf_1.proto3;
907
+ SetSubscribedRequest.runtime = proto3;
935
908
  SetSubscribedRequest.typeName = "livekit.proto.SetSubscribedRequest";
936
- SetSubscribedRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
909
+ SetSubscribedRequest.fields = proto3.util.newFieldList(() => [
937
910
  { no: 1, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
938
911
  { no: 2, name: "publication_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
939
912
  ]);
940
913
  /**
941
914
  * @generated from message livekit.proto.SetSubscribedResponse
942
915
  */
943
- class SetSubscribedResponse extends protobuf_1.Message {
916
+ export class SetSubscribedResponse extends Message {
944
917
  constructor(data) {
945
918
  super();
946
- protobuf_1.proto3.util.initPartial(data, this);
919
+ proto3.util.initPartial(data, this);
947
920
  }
948
921
  static fromBinary(bytes, options) {
949
922
  return new SetSubscribedResponse().fromBinary(bytes, options);
@@ -955,24 +928,23 @@ class SetSubscribedResponse extends protobuf_1.Message {
955
928
  return new SetSubscribedResponse().fromJsonString(jsonString, options);
956
929
  }
957
930
  static equals(a, b) {
958
- return protobuf_1.proto3.util.equals(SetSubscribedResponse, a, b);
931
+ return proto3.util.equals(SetSubscribedResponse, a, b);
959
932
  }
960
933
  }
961
- exports.SetSubscribedResponse = SetSubscribedResponse;
962
- SetSubscribedResponse.runtime = protobuf_1.proto3;
934
+ SetSubscribedResponse.runtime = proto3;
963
935
  SetSubscribedResponse.typeName = "livekit.proto.SetSubscribedResponse";
964
- SetSubscribedResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
936
+ SetSubscribedResponse.fields = proto3.util.newFieldList(() => []);
965
937
  /**
966
938
  * @generated from message livekit.proto.GetSessionStatsRequest
967
939
  */
968
- class GetSessionStatsRequest extends protobuf_1.Message {
940
+ export class GetSessionStatsRequest extends Message {
969
941
  constructor(data) {
970
942
  super();
971
943
  /**
972
944
  * @generated from field: uint64 room_handle = 1;
973
945
  */
974
- this.roomHandle = protobuf_1.protoInt64.zero;
975
- protobuf_1.proto3.util.initPartial(data, this);
946
+ this.roomHandle = protoInt64.zero;
947
+ proto3.util.initPartial(data, this);
976
948
  }
977
949
  static fromBinary(bytes, options) {
978
950
  return new GetSessionStatsRequest().fromBinary(bytes, options);
@@ -984,26 +956,25 @@ class GetSessionStatsRequest extends protobuf_1.Message {
984
956
  return new GetSessionStatsRequest().fromJsonString(jsonString, options);
985
957
  }
986
958
  static equals(a, b) {
987
- return protobuf_1.proto3.util.equals(GetSessionStatsRequest, a, b);
959
+ return proto3.util.equals(GetSessionStatsRequest, a, b);
988
960
  }
989
961
  }
990
- exports.GetSessionStatsRequest = GetSessionStatsRequest;
991
- GetSessionStatsRequest.runtime = protobuf_1.proto3;
962
+ GetSessionStatsRequest.runtime = proto3;
992
963
  GetSessionStatsRequest.typeName = "livekit.proto.GetSessionStatsRequest";
993
- GetSessionStatsRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
964
+ GetSessionStatsRequest.fields = proto3.util.newFieldList(() => [
994
965
  { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
995
966
  ]);
996
967
  /**
997
968
  * @generated from message livekit.proto.GetSessionStatsResponse
998
969
  */
999
- class GetSessionStatsResponse extends protobuf_1.Message {
970
+ export class GetSessionStatsResponse extends Message {
1000
971
  constructor(data) {
1001
972
  super();
1002
973
  /**
1003
974
  * @generated from field: uint64 async_id = 1;
1004
975
  */
1005
- this.asyncId = protobuf_1.protoInt64.zero;
1006
- protobuf_1.proto3.util.initPartial(data, this);
976
+ this.asyncId = protoInt64.zero;
977
+ proto3.util.initPartial(data, this);
1007
978
  }
1008
979
  static fromBinary(bytes, options) {
1009
980
  return new GetSessionStatsResponse().fromBinary(bytes, options);
@@ -1015,25 +986,24 @@ class GetSessionStatsResponse extends protobuf_1.Message {
1015
986
  return new GetSessionStatsResponse().fromJsonString(jsonString, options);
1016
987
  }
1017
988
  static equals(a, b) {
1018
- return protobuf_1.proto3.util.equals(GetSessionStatsResponse, a, b);
989
+ return proto3.util.equals(GetSessionStatsResponse, a, b);
1019
990
  }
1020
991
  }
1021
- exports.GetSessionStatsResponse = GetSessionStatsResponse;
1022
- GetSessionStatsResponse.runtime = protobuf_1.proto3;
992
+ GetSessionStatsResponse.runtime = proto3;
1023
993
  GetSessionStatsResponse.typeName = "livekit.proto.GetSessionStatsResponse";
1024
- GetSessionStatsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
994
+ GetSessionStatsResponse.fields = proto3.util.newFieldList(() => [
1025
995
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1026
996
  ]);
1027
997
  /**
1028
998
  * @generated from message livekit.proto.GetSessionStatsCallback
1029
999
  */
1030
- class GetSessionStatsCallback extends protobuf_1.Message {
1000
+ export class GetSessionStatsCallback extends Message {
1031
1001
  constructor(data) {
1032
1002
  super();
1033
1003
  /**
1034
1004
  * @generated from field: uint64 async_id = 1;
1035
1005
  */
1036
- this.asyncId = protobuf_1.protoInt64.zero;
1006
+ this.asyncId = protoInt64.zero;
1037
1007
  /**
1038
1008
  * @generated from field: repeated livekit.proto.RtcStats publisher_stats = 3;
1039
1009
  */
@@ -1042,7 +1012,7 @@ class GetSessionStatsCallback extends protobuf_1.Message {
1042
1012
  * @generated from field: repeated livekit.proto.RtcStats subscriber_stats = 4;
1043
1013
  */
1044
1014
  this.subscriberStats = [];
1045
- protobuf_1.proto3.util.initPartial(data, this);
1015
+ proto3.util.initPartial(data, this);
1046
1016
  }
1047
1017
  static fromBinary(bytes, options) {
1048
1018
  return new GetSessionStatsCallback().fromBinary(bytes, options);
@@ -1054,33 +1024,32 @@ class GetSessionStatsCallback extends protobuf_1.Message {
1054
1024
  return new GetSessionStatsCallback().fromJsonString(jsonString, options);
1055
1025
  }
1056
1026
  static equals(a, b) {
1057
- return protobuf_1.proto3.util.equals(GetSessionStatsCallback, a, b);
1027
+ return proto3.util.equals(GetSessionStatsCallback, a, b);
1058
1028
  }
1059
1029
  }
1060
- exports.GetSessionStatsCallback = GetSessionStatsCallback;
1061
- GetSessionStatsCallback.runtime = protobuf_1.proto3;
1030
+ GetSessionStatsCallback.runtime = proto3;
1062
1031
  GetSessionStatsCallback.typeName = "livekit.proto.GetSessionStatsCallback";
1063
- GetSessionStatsCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
1032
+ GetSessionStatsCallback.fields = proto3.util.newFieldList(() => [
1064
1033
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1065
1034
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1066
- { no: 3, name: "publisher_stats", kind: "message", T: stats_pb_js_1.RtcStats, repeated: true },
1067
- { no: 4, name: "subscriber_stats", kind: "message", T: stats_pb_js_1.RtcStats, repeated: true },
1035
+ { no: 3, name: "publisher_stats", kind: "message", T: RtcStats, repeated: true },
1036
+ { no: 4, name: "subscriber_stats", kind: "message", T: RtcStats, repeated: true },
1068
1037
  ]);
1069
1038
  /**
1070
1039
  * @generated from message livekit.proto.VideoEncoding
1071
1040
  */
1072
- class VideoEncoding extends protobuf_1.Message {
1041
+ export class VideoEncoding extends Message {
1073
1042
  constructor(data) {
1074
1043
  super();
1075
1044
  /**
1076
1045
  * @generated from field: uint64 max_bitrate = 1;
1077
1046
  */
1078
- this.maxBitrate = protobuf_1.protoInt64.zero;
1047
+ this.maxBitrate = protoInt64.zero;
1079
1048
  /**
1080
1049
  * @generated from field: double max_framerate = 2;
1081
1050
  */
1082
1051
  this.maxFramerate = 0;
1083
- protobuf_1.proto3.util.initPartial(data, this);
1052
+ proto3.util.initPartial(data, this);
1084
1053
  }
1085
1054
  static fromBinary(bytes, options) {
1086
1055
  return new VideoEncoding().fromBinary(bytes, options);
@@ -1092,27 +1061,26 @@ class VideoEncoding extends protobuf_1.Message {
1092
1061
  return new VideoEncoding().fromJsonString(jsonString, options);
1093
1062
  }
1094
1063
  static equals(a, b) {
1095
- return protobuf_1.proto3.util.equals(VideoEncoding, a, b);
1064
+ return proto3.util.equals(VideoEncoding, a, b);
1096
1065
  }
1097
1066
  }
1098
- exports.VideoEncoding = VideoEncoding;
1099
- VideoEncoding.runtime = protobuf_1.proto3;
1067
+ VideoEncoding.runtime = proto3;
1100
1068
  VideoEncoding.typeName = "livekit.proto.VideoEncoding";
1101
- VideoEncoding.fields = protobuf_1.proto3.util.newFieldList(() => [
1069
+ VideoEncoding.fields = proto3.util.newFieldList(() => [
1102
1070
  { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1103
1071
  { no: 2, name: "max_framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1104
1072
  ]);
1105
1073
  /**
1106
1074
  * @generated from message livekit.proto.AudioEncoding
1107
1075
  */
1108
- class AudioEncoding extends protobuf_1.Message {
1076
+ export class AudioEncoding extends Message {
1109
1077
  constructor(data) {
1110
1078
  super();
1111
1079
  /**
1112
1080
  * @generated from field: uint64 max_bitrate = 1;
1113
1081
  */
1114
- this.maxBitrate = protobuf_1.protoInt64.zero;
1115
- protobuf_1.proto3.util.initPartial(data, this);
1082
+ this.maxBitrate = protoInt64.zero;
1083
+ proto3.util.initPartial(data, this);
1116
1084
  }
1117
1085
  static fromBinary(bytes, options) {
1118
1086
  return new AudioEncoding().fromBinary(bytes, options);
@@ -1124,25 +1092,24 @@ class AudioEncoding extends protobuf_1.Message {
1124
1092
  return new AudioEncoding().fromJsonString(jsonString, options);
1125
1093
  }
1126
1094
  static equals(a, b) {
1127
- return protobuf_1.proto3.util.equals(AudioEncoding, a, b);
1095
+ return proto3.util.equals(AudioEncoding, a, b);
1128
1096
  }
1129
1097
  }
1130
- exports.AudioEncoding = AudioEncoding;
1131
- AudioEncoding.runtime = protobuf_1.proto3;
1098
+ AudioEncoding.runtime = proto3;
1132
1099
  AudioEncoding.typeName = "livekit.proto.AudioEncoding";
1133
- AudioEncoding.fields = protobuf_1.proto3.util.newFieldList(() => [
1100
+ AudioEncoding.fields = proto3.util.newFieldList(() => [
1134
1101
  { no: 1, name: "max_bitrate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1135
1102
  ]);
1136
1103
  /**
1137
1104
  * @generated from message livekit.proto.TrackPublishOptions
1138
1105
  */
1139
- class TrackPublishOptions extends protobuf_1.Message {
1106
+ export class TrackPublishOptions extends Message {
1140
1107
  constructor(data) {
1141
1108
  super();
1142
1109
  /**
1143
1110
  * @generated from field: livekit.proto.VideoCodec video_codec = 3;
1144
1111
  */
1145
- this.videoCodec = video_frame_pb_js_1.VideoCodec.VP8;
1112
+ this.videoCodec = VideoCodec.VP8;
1146
1113
  /**
1147
1114
  * @generated from field: bool dtx = 4;
1148
1115
  */
@@ -1158,8 +1125,8 @@ class TrackPublishOptions extends protobuf_1.Message {
1158
1125
  /**
1159
1126
  * @generated from field: livekit.proto.TrackSource source = 7;
1160
1127
  */
1161
- this.source = track_pb_js_1.TrackSource.SOURCE_UNKNOWN;
1162
- protobuf_1.proto3.util.initPartial(data, this);
1128
+ this.source = TrackSource.SOURCE_UNKNOWN;
1129
+ proto3.util.initPartial(data, this);
1163
1130
  }
1164
1131
  static fromBinary(bytes, options) {
1165
1132
  return new TrackPublishOptions().fromBinary(bytes, options);
@@ -1171,25 +1138,24 @@ class TrackPublishOptions extends protobuf_1.Message {
1171
1138
  return new TrackPublishOptions().fromJsonString(jsonString, options);
1172
1139
  }
1173
1140
  static equals(a, b) {
1174
- return protobuf_1.proto3.util.equals(TrackPublishOptions, a, b);
1141
+ return proto3.util.equals(TrackPublishOptions, a, b);
1175
1142
  }
1176
1143
  }
1177
- exports.TrackPublishOptions = TrackPublishOptions;
1178
- TrackPublishOptions.runtime = protobuf_1.proto3;
1144
+ TrackPublishOptions.runtime = proto3;
1179
1145
  TrackPublishOptions.typeName = "livekit.proto.TrackPublishOptions";
1180
- TrackPublishOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
1146
+ TrackPublishOptions.fields = proto3.util.newFieldList(() => [
1181
1147
  { no: 1, name: "video_encoding", kind: "message", T: VideoEncoding },
1182
1148
  { no: 2, name: "audio_encoding", kind: "message", T: AudioEncoding },
1183
- { no: 3, name: "video_codec", kind: "enum", T: protobuf_1.proto3.getEnumType(video_frame_pb_js_1.VideoCodec) },
1149
+ { no: 3, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) },
1184
1150
  { no: 4, name: "dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1185
1151
  { no: 5, name: "red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1186
1152
  { no: 6, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1187
- { no: 7, name: "source", kind: "enum", T: protobuf_1.proto3.getEnumType(track_pb_js_1.TrackSource) },
1153
+ { no: 7, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
1188
1154
  ]);
1189
1155
  /**
1190
1156
  * @generated from message livekit.proto.IceServer
1191
1157
  */
1192
- class IceServer extends protobuf_1.Message {
1158
+ export class IceServer extends Message {
1193
1159
  constructor(data) {
1194
1160
  super();
1195
1161
  /**
@@ -1204,7 +1170,7 @@ class IceServer extends protobuf_1.Message {
1204
1170
  * @generated from field: string password = 3;
1205
1171
  */
1206
1172
  this.password = "";
1207
- protobuf_1.proto3.util.initPartial(data, this);
1173
+ proto3.util.initPartial(data, this);
1208
1174
  }
1209
1175
  static fromBinary(bytes, options) {
1210
1176
  return new IceServer().fromBinary(bytes, options);
@@ -1216,13 +1182,12 @@ class IceServer extends protobuf_1.Message {
1216
1182
  return new IceServer().fromJsonString(jsonString, options);
1217
1183
  }
1218
1184
  static equals(a, b) {
1219
- return protobuf_1.proto3.util.equals(IceServer, a, b);
1185
+ return proto3.util.equals(IceServer, a, b);
1220
1186
  }
1221
1187
  }
1222
- exports.IceServer = IceServer;
1223
- IceServer.runtime = protobuf_1.proto3;
1188
+ IceServer.runtime = proto3;
1224
1189
  IceServer.typeName = "livekit.proto.IceServer";
1225
- IceServer.fields = protobuf_1.proto3.util.newFieldList(() => [
1190
+ IceServer.fields = proto3.util.newFieldList(() => [
1226
1191
  { no: 1, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1227
1192
  { no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1228
1193
  { no: 3, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1230,7 +1195,7 @@ IceServer.fields = protobuf_1.proto3.util.newFieldList(() => [
1230
1195
  /**
1231
1196
  * @generated from message livekit.proto.RtcConfig
1232
1197
  */
1233
- class RtcConfig extends protobuf_1.Message {
1198
+ export class RtcConfig extends Message {
1234
1199
  constructor(data) {
1235
1200
  super();
1236
1201
  /**
@@ -1239,7 +1204,7 @@ class RtcConfig extends protobuf_1.Message {
1239
1204
  * @generated from field: repeated livekit.proto.IceServer ice_servers = 3;
1240
1205
  */
1241
1206
  this.iceServers = [];
1242
- protobuf_1.proto3.util.initPartial(data, this);
1207
+ proto3.util.initPartial(data, this);
1243
1208
  }
1244
1209
  static fromBinary(bytes, options) {
1245
1210
  return new RtcConfig().fromBinary(bytes, options);
@@ -1251,21 +1216,20 @@ class RtcConfig extends protobuf_1.Message {
1251
1216
  return new RtcConfig().fromJsonString(jsonString, options);
1252
1217
  }
1253
1218
  static equals(a, b) {
1254
- return protobuf_1.proto3.util.equals(RtcConfig, a, b);
1219
+ return proto3.util.equals(RtcConfig, a, b);
1255
1220
  }
1256
1221
  }
1257
- exports.RtcConfig = RtcConfig;
1258
- RtcConfig.runtime = protobuf_1.proto3;
1222
+ RtcConfig.runtime = proto3;
1259
1223
  RtcConfig.typeName = "livekit.proto.RtcConfig";
1260
- RtcConfig.fields = protobuf_1.proto3.util.newFieldList(() => [
1261
- { no: 1, name: "ice_transport_type", kind: "enum", T: protobuf_1.proto3.getEnumType(IceTransportType), opt: true },
1262
- { no: 2, name: "continual_gathering_policy", kind: "enum", T: protobuf_1.proto3.getEnumType(ContinualGatheringPolicy), opt: true },
1224
+ RtcConfig.fields = proto3.util.newFieldList(() => [
1225
+ { no: 1, name: "ice_transport_type", kind: "enum", T: proto3.getEnumType(IceTransportType), opt: true },
1226
+ { no: 2, name: "continual_gathering_policy", kind: "enum", T: proto3.getEnumType(ContinualGatheringPolicy), opt: true },
1263
1227
  { no: 3, name: "ice_servers", kind: "message", T: IceServer, repeated: true },
1264
1228
  ]);
1265
1229
  /**
1266
1230
  * @generated from message livekit.proto.RoomOptions
1267
1231
  */
1268
- class RoomOptions extends protobuf_1.Message {
1232
+ export class RoomOptions extends Message {
1269
1233
  constructor(data) {
1270
1234
  super();
1271
1235
  /**
@@ -1284,7 +1248,7 @@ class RoomOptions extends protobuf_1.Message {
1284
1248
  * @generated from field: uint32 join_retries = 6;
1285
1249
  */
1286
1250
  this.joinRetries = 0;
1287
- protobuf_1.proto3.util.initPartial(data, this);
1251
+ proto3.util.initPartial(data, this);
1288
1252
  }
1289
1253
  static fromBinary(bytes, options) {
1290
1254
  return new RoomOptions().fromBinary(bytes, options);
@@ -1296,35 +1260,34 @@ class RoomOptions extends protobuf_1.Message {
1296
1260
  return new RoomOptions().fromJsonString(jsonString, options);
1297
1261
  }
1298
1262
  static equals(a, b) {
1299
- return protobuf_1.proto3.util.equals(RoomOptions, a, b);
1263
+ return proto3.util.equals(RoomOptions, a, b);
1300
1264
  }
1301
1265
  }
1302
- exports.RoomOptions = RoomOptions;
1303
- RoomOptions.runtime = protobuf_1.proto3;
1266
+ RoomOptions.runtime = proto3;
1304
1267
  RoomOptions.typeName = "livekit.proto.RoomOptions";
1305
- RoomOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
1268
+ RoomOptions.fields = proto3.util.newFieldList(() => [
1306
1269
  { no: 1, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1307
1270
  { no: 2, name: "adaptive_stream", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1308
1271
  { no: 3, name: "dynacast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1309
- { no: 4, name: "e2ee", kind: "message", T: e2ee_pb_js_1.E2eeOptions, opt: true },
1272
+ { no: 4, name: "e2ee", kind: "message", T: E2eeOptions, opt: true },
1310
1273
  { no: 5, name: "rtc_config", kind: "message", T: RtcConfig, opt: true },
1311
1274
  { no: 6, name: "join_retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1312
1275
  ]);
1313
1276
  /**
1314
1277
  * @generated from message livekit.proto.BufferInfo
1315
1278
  */
1316
- class BufferInfo extends protobuf_1.Message {
1279
+ export class BufferInfo extends Message {
1317
1280
  constructor(data) {
1318
1281
  super();
1319
1282
  /**
1320
1283
  * @generated from field: uint64 data_ptr = 1;
1321
1284
  */
1322
- this.dataPtr = protobuf_1.protoInt64.zero;
1285
+ this.dataPtr = protoInt64.zero;
1323
1286
  /**
1324
1287
  * @generated from field: uint64 data_len = 2;
1325
1288
  */
1326
- this.dataLen = protobuf_1.protoInt64.zero;
1327
- protobuf_1.proto3.util.initPartial(data, this);
1289
+ this.dataLen = protoInt64.zero;
1290
+ proto3.util.initPartial(data, this);
1328
1291
  }
1329
1292
  static fromBinary(bytes, options) {
1330
1293
  return new BufferInfo().fromBinary(bytes, options);
@@ -1336,23 +1299,22 @@ class BufferInfo extends protobuf_1.Message {
1336
1299
  return new BufferInfo().fromJsonString(jsonString, options);
1337
1300
  }
1338
1301
  static equals(a, b) {
1339
- return protobuf_1.proto3.util.equals(BufferInfo, a, b);
1302
+ return proto3.util.equals(BufferInfo, a, b);
1340
1303
  }
1341
1304
  }
1342
- exports.BufferInfo = BufferInfo;
1343
- BufferInfo.runtime = protobuf_1.proto3;
1305
+ BufferInfo.runtime = proto3;
1344
1306
  BufferInfo.typeName = "livekit.proto.BufferInfo";
1345
- BufferInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
1307
+ BufferInfo.fields = proto3.util.newFieldList(() => [
1346
1308
  { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1347
1309
  { no: 2, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1348
1310
  ]);
1349
1311
  /**
1350
1312
  * @generated from message livekit.proto.OwnedBuffer
1351
1313
  */
1352
- class OwnedBuffer extends protobuf_1.Message {
1314
+ export class OwnedBuffer extends Message {
1353
1315
  constructor(data) {
1354
1316
  super();
1355
- protobuf_1.proto3.util.initPartial(data, this);
1317
+ proto3.util.initPartial(data, this);
1356
1318
  }
1357
1319
  static fromBinary(bytes, options) {
1358
1320
  return new OwnedBuffer().fromBinary(bytes, options);
@@ -1364,31 +1326,30 @@ class OwnedBuffer extends protobuf_1.Message {
1364
1326
  return new OwnedBuffer().fromJsonString(jsonString, options);
1365
1327
  }
1366
1328
  static equals(a, b) {
1367
- return protobuf_1.proto3.util.equals(OwnedBuffer, a, b);
1329
+ return proto3.util.equals(OwnedBuffer, a, b);
1368
1330
  }
1369
1331
  }
1370
- exports.OwnedBuffer = OwnedBuffer;
1371
- OwnedBuffer.runtime = protobuf_1.proto3;
1332
+ OwnedBuffer.runtime = proto3;
1372
1333
  OwnedBuffer.typeName = "livekit.proto.OwnedBuffer";
1373
- OwnedBuffer.fields = protobuf_1.proto3.util.newFieldList(() => [
1374
- { no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
1334
+ OwnedBuffer.fields = proto3.util.newFieldList(() => [
1335
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
1375
1336
  { no: 2, name: "data", kind: "message", T: BufferInfo },
1376
1337
  ]);
1377
1338
  /**
1378
1339
  * @generated from message livekit.proto.RoomEvent
1379
1340
  */
1380
- class RoomEvent extends protobuf_1.Message {
1341
+ export class RoomEvent extends Message {
1381
1342
  constructor(data) {
1382
1343
  super();
1383
1344
  /**
1384
1345
  * @generated from field: uint64 room_handle = 1;
1385
1346
  */
1386
- this.roomHandle = protobuf_1.protoInt64.zero;
1347
+ this.roomHandle = protoInt64.zero;
1387
1348
  /**
1388
1349
  * @generated from oneof livekit.proto.RoomEvent.message
1389
1350
  */
1390
1351
  this.message = { case: undefined };
1391
- protobuf_1.proto3.util.initPartial(data, this);
1352
+ proto3.util.initPartial(data, this);
1392
1353
  }
1393
1354
  static fromBinary(bytes, options) {
1394
1355
  return new RoomEvent().fromBinary(bytes, options);
@@ -1400,13 +1361,12 @@ class RoomEvent extends protobuf_1.Message {
1400
1361
  return new RoomEvent().fromJsonString(jsonString, options);
1401
1362
  }
1402
1363
  static equals(a, b) {
1403
- return protobuf_1.proto3.util.equals(RoomEvent, a, b);
1364
+ return proto3.util.equals(RoomEvent, a, b);
1404
1365
  }
1405
1366
  }
1406
- exports.RoomEvent = RoomEvent;
1407
- RoomEvent.runtime = protobuf_1.proto3;
1367
+ RoomEvent.runtime = proto3;
1408
1368
  RoomEvent.typeName = "livekit.proto.RoomEvent";
1409
- RoomEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
1369
+ RoomEvent.fields = proto3.util.newFieldList(() => [
1410
1370
  { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1411
1371
  { no: 2, name: "participant_connected", kind: "message", T: ParticipantConnected, oneof: "message" },
1412
1372
  { no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" },
@@ -1435,7 +1395,7 @@ RoomEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
1435
1395
  /**
1436
1396
  * @generated from message livekit.proto.RoomInfo
1437
1397
  */
1438
- class RoomInfo extends protobuf_1.Message {
1398
+ export class RoomInfo extends Message {
1439
1399
  constructor(data) {
1440
1400
  super();
1441
1401
  /**
@@ -1450,7 +1410,7 @@ class RoomInfo extends protobuf_1.Message {
1450
1410
  * @generated from field: string metadata = 3;
1451
1411
  */
1452
1412
  this.metadata = "";
1453
- protobuf_1.proto3.util.initPartial(data, this);
1413
+ proto3.util.initPartial(data, this);
1454
1414
  }
1455
1415
  static fromBinary(bytes, options) {
1456
1416
  return new RoomInfo().fromBinary(bytes, options);
@@ -1462,13 +1422,12 @@ class RoomInfo extends protobuf_1.Message {
1462
1422
  return new RoomInfo().fromJsonString(jsonString, options);
1463
1423
  }
1464
1424
  static equals(a, b) {
1465
- return protobuf_1.proto3.util.equals(RoomInfo, a, b);
1425
+ return proto3.util.equals(RoomInfo, a, b);
1466
1426
  }
1467
1427
  }
1468
- exports.RoomInfo = RoomInfo;
1469
- RoomInfo.runtime = protobuf_1.proto3;
1428
+ RoomInfo.runtime = proto3;
1470
1429
  RoomInfo.typeName = "livekit.proto.RoomInfo";
1471
- RoomInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
1430
+ RoomInfo.fields = proto3.util.newFieldList(() => [
1472
1431
  { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1473
1432
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1474
1433
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1476,10 +1435,10 @@ RoomInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
1476
1435
  /**
1477
1436
  * @generated from message livekit.proto.OwnedRoom
1478
1437
  */
1479
- class OwnedRoom extends protobuf_1.Message {
1438
+ export class OwnedRoom extends Message {
1480
1439
  constructor(data) {
1481
1440
  super();
1482
- protobuf_1.proto3.util.initPartial(data, this);
1441
+ proto3.util.initPartial(data, this);
1483
1442
  }
1484
1443
  static fromBinary(bytes, options) {
1485
1444
  return new OwnedRoom().fromBinary(bytes, options);
@@ -1491,23 +1450,22 @@ class OwnedRoom extends protobuf_1.Message {
1491
1450
  return new OwnedRoom().fromJsonString(jsonString, options);
1492
1451
  }
1493
1452
  static equals(a, b) {
1494
- return protobuf_1.proto3.util.equals(OwnedRoom, a, b);
1453
+ return proto3.util.equals(OwnedRoom, a, b);
1495
1454
  }
1496
1455
  }
1497
- exports.OwnedRoom = OwnedRoom;
1498
- OwnedRoom.runtime = protobuf_1.proto3;
1456
+ OwnedRoom.runtime = proto3;
1499
1457
  OwnedRoom.typeName = "livekit.proto.OwnedRoom";
1500
- OwnedRoom.fields = protobuf_1.proto3.util.newFieldList(() => [
1501
- { no: 1, name: "handle", kind: "message", T: handle_pb_js_1.FfiOwnedHandle },
1458
+ OwnedRoom.fields = proto3.util.newFieldList(() => [
1459
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
1502
1460
  { no: 2, name: "info", kind: "message", T: RoomInfo },
1503
1461
  ]);
1504
1462
  /**
1505
1463
  * @generated from message livekit.proto.ParticipantConnected
1506
1464
  */
1507
- class ParticipantConnected extends protobuf_1.Message {
1465
+ export class ParticipantConnected extends Message {
1508
1466
  constructor(data) {
1509
1467
  super();
1510
- protobuf_1.proto3.util.initPartial(data, this);
1468
+ proto3.util.initPartial(data, this);
1511
1469
  }
1512
1470
  static fromBinary(bytes, options) {
1513
1471
  return new ParticipantConnected().fromBinary(bytes, options);
@@ -1519,26 +1477,25 @@ class ParticipantConnected extends protobuf_1.Message {
1519
1477
  return new ParticipantConnected().fromJsonString(jsonString, options);
1520
1478
  }
1521
1479
  static equals(a, b) {
1522
- return protobuf_1.proto3.util.equals(ParticipantConnected, a, b);
1480
+ return proto3.util.equals(ParticipantConnected, a, b);
1523
1481
  }
1524
1482
  }
1525
- exports.ParticipantConnected = ParticipantConnected;
1526
- ParticipantConnected.runtime = protobuf_1.proto3;
1483
+ ParticipantConnected.runtime = proto3;
1527
1484
  ParticipantConnected.typeName = "livekit.proto.ParticipantConnected";
1528
- ParticipantConnected.fields = protobuf_1.proto3.util.newFieldList(() => [
1529
- { no: 1, name: "info", kind: "message", T: participant_pb_js_1.OwnedParticipant },
1485
+ ParticipantConnected.fields = proto3.util.newFieldList(() => [
1486
+ { no: 1, name: "info", kind: "message", T: OwnedParticipant },
1530
1487
  ]);
1531
1488
  /**
1532
1489
  * @generated from message livekit.proto.ParticipantDisconnected
1533
1490
  */
1534
- class ParticipantDisconnected extends protobuf_1.Message {
1491
+ export class ParticipantDisconnected extends Message {
1535
1492
  constructor(data) {
1536
1493
  super();
1537
1494
  /**
1538
1495
  * @generated from field: string participant_sid = 1;
1539
1496
  */
1540
1497
  this.participantSid = "";
1541
- protobuf_1.proto3.util.initPartial(data, this);
1498
+ proto3.util.initPartial(data, this);
1542
1499
  }
1543
1500
  static fromBinary(bytes, options) {
1544
1501
  return new ParticipantDisconnected().fromBinary(bytes, options);
@@ -1550,19 +1507,18 @@ class ParticipantDisconnected extends protobuf_1.Message {
1550
1507
  return new ParticipantDisconnected().fromJsonString(jsonString, options);
1551
1508
  }
1552
1509
  static equals(a, b) {
1553
- return protobuf_1.proto3.util.equals(ParticipantDisconnected, a, b);
1510
+ return proto3.util.equals(ParticipantDisconnected, a, b);
1554
1511
  }
1555
1512
  }
1556
- exports.ParticipantDisconnected = ParticipantDisconnected;
1557
- ParticipantDisconnected.runtime = protobuf_1.proto3;
1513
+ ParticipantDisconnected.runtime = proto3;
1558
1514
  ParticipantDisconnected.typeName = "livekit.proto.ParticipantDisconnected";
1559
- ParticipantDisconnected.fields = protobuf_1.proto3.util.newFieldList(() => [
1515
+ ParticipantDisconnected.fields = proto3.util.newFieldList(() => [
1560
1516
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1561
1517
  ]);
1562
1518
  /**
1563
1519
  * @generated from message livekit.proto.LocalTrackPublished
1564
1520
  */
1565
- class LocalTrackPublished extends protobuf_1.Message {
1521
+ export class LocalTrackPublished extends Message {
1566
1522
  constructor(data) {
1567
1523
  super();
1568
1524
  /**
@@ -1572,7 +1528,7 @@ class LocalTrackPublished extends protobuf_1.Message {
1572
1528
  * @generated from field: string track_sid = 1;
1573
1529
  */
1574
1530
  this.trackSid = "";
1575
- protobuf_1.proto3.util.initPartial(data, this);
1531
+ proto3.util.initPartial(data, this);
1576
1532
  }
1577
1533
  static fromBinary(bytes, options) {
1578
1534
  return new LocalTrackPublished().fromBinary(bytes, options);
@@ -1584,26 +1540,25 @@ class LocalTrackPublished extends protobuf_1.Message {
1584
1540
  return new LocalTrackPublished().fromJsonString(jsonString, options);
1585
1541
  }
1586
1542
  static equals(a, b) {
1587
- return protobuf_1.proto3.util.equals(LocalTrackPublished, a, b);
1543
+ return proto3.util.equals(LocalTrackPublished, a, b);
1588
1544
  }
1589
1545
  }
1590
- exports.LocalTrackPublished = LocalTrackPublished;
1591
- LocalTrackPublished.runtime = protobuf_1.proto3;
1546
+ LocalTrackPublished.runtime = proto3;
1592
1547
  LocalTrackPublished.typeName = "livekit.proto.LocalTrackPublished";
1593
- LocalTrackPublished.fields = protobuf_1.proto3.util.newFieldList(() => [
1548
+ LocalTrackPublished.fields = proto3.util.newFieldList(() => [
1594
1549
  { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1595
1550
  ]);
1596
1551
  /**
1597
1552
  * @generated from message livekit.proto.LocalTrackUnpublished
1598
1553
  */
1599
- class LocalTrackUnpublished extends protobuf_1.Message {
1554
+ export class LocalTrackUnpublished extends Message {
1600
1555
  constructor(data) {
1601
1556
  super();
1602
1557
  /**
1603
1558
  * @generated from field: string publication_sid = 1;
1604
1559
  */
1605
1560
  this.publicationSid = "";
1606
- protobuf_1.proto3.util.initPartial(data, this);
1561
+ proto3.util.initPartial(data, this);
1607
1562
  }
1608
1563
  static fromBinary(bytes, options) {
1609
1564
  return new LocalTrackUnpublished().fromBinary(bytes, options);
@@ -1615,26 +1570,25 @@ class LocalTrackUnpublished extends protobuf_1.Message {
1615
1570
  return new LocalTrackUnpublished().fromJsonString(jsonString, options);
1616
1571
  }
1617
1572
  static equals(a, b) {
1618
- return protobuf_1.proto3.util.equals(LocalTrackUnpublished, a, b);
1573
+ return proto3.util.equals(LocalTrackUnpublished, a, b);
1619
1574
  }
1620
1575
  }
1621
- exports.LocalTrackUnpublished = LocalTrackUnpublished;
1622
- LocalTrackUnpublished.runtime = protobuf_1.proto3;
1576
+ LocalTrackUnpublished.runtime = proto3;
1623
1577
  LocalTrackUnpublished.typeName = "livekit.proto.LocalTrackUnpublished";
1624
- LocalTrackUnpublished.fields = protobuf_1.proto3.util.newFieldList(() => [
1578
+ LocalTrackUnpublished.fields = proto3.util.newFieldList(() => [
1625
1579
  { no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1626
1580
  ]);
1627
1581
  /**
1628
1582
  * @generated from message livekit.proto.TrackPublished
1629
1583
  */
1630
- class TrackPublished extends protobuf_1.Message {
1584
+ export class TrackPublished extends Message {
1631
1585
  constructor(data) {
1632
1586
  super();
1633
1587
  /**
1634
1588
  * @generated from field: string participant_sid = 1;
1635
1589
  */
1636
1590
  this.participantSid = "";
1637
- protobuf_1.proto3.util.initPartial(data, this);
1591
+ proto3.util.initPartial(data, this);
1638
1592
  }
1639
1593
  static fromBinary(bytes, options) {
1640
1594
  return new TrackPublished().fromBinary(bytes, options);
@@ -1646,20 +1600,19 @@ class TrackPublished extends protobuf_1.Message {
1646
1600
  return new TrackPublished().fromJsonString(jsonString, options);
1647
1601
  }
1648
1602
  static equals(a, b) {
1649
- return protobuf_1.proto3.util.equals(TrackPublished, a, b);
1603
+ return proto3.util.equals(TrackPublished, a, b);
1650
1604
  }
1651
1605
  }
1652
- exports.TrackPublished = TrackPublished;
1653
- TrackPublished.runtime = protobuf_1.proto3;
1606
+ TrackPublished.runtime = proto3;
1654
1607
  TrackPublished.typeName = "livekit.proto.TrackPublished";
1655
- TrackPublished.fields = protobuf_1.proto3.util.newFieldList(() => [
1608
+ TrackPublished.fields = proto3.util.newFieldList(() => [
1656
1609
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1657
- { no: 2, name: "publication", kind: "message", T: track_pb_js_1.OwnedTrackPublication },
1610
+ { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication },
1658
1611
  ]);
1659
1612
  /**
1660
1613
  * @generated from message livekit.proto.TrackUnpublished
1661
1614
  */
1662
- class TrackUnpublished extends protobuf_1.Message {
1615
+ export class TrackUnpublished extends Message {
1663
1616
  constructor(data) {
1664
1617
  super();
1665
1618
  /**
@@ -1670,7 +1623,7 @@ class TrackUnpublished extends protobuf_1.Message {
1670
1623
  * @generated from field: string publication_sid = 2;
1671
1624
  */
1672
1625
  this.publicationSid = "";
1673
- protobuf_1.proto3.util.initPartial(data, this);
1626
+ proto3.util.initPartial(data, this);
1674
1627
  }
1675
1628
  static fromBinary(bytes, options) {
1676
1629
  return new TrackUnpublished().fromBinary(bytes, options);
@@ -1682,13 +1635,12 @@ class TrackUnpublished extends protobuf_1.Message {
1682
1635
  return new TrackUnpublished().fromJsonString(jsonString, options);
1683
1636
  }
1684
1637
  static equals(a, b) {
1685
- return protobuf_1.proto3.util.equals(TrackUnpublished, a, b);
1638
+ return proto3.util.equals(TrackUnpublished, a, b);
1686
1639
  }
1687
1640
  }
1688
- exports.TrackUnpublished = TrackUnpublished;
1689
- TrackUnpublished.runtime = protobuf_1.proto3;
1641
+ TrackUnpublished.runtime = proto3;
1690
1642
  TrackUnpublished.typeName = "livekit.proto.TrackUnpublished";
1691
- TrackUnpublished.fields = protobuf_1.proto3.util.newFieldList(() => [
1643
+ TrackUnpublished.fields = proto3.util.newFieldList(() => [
1692
1644
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1693
1645
  { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1694
1646
  ]);
@@ -1698,14 +1650,14 @@ TrackUnpublished.fields = protobuf_1.proto3.util.newFieldList(() => [
1698
1650
  *
1699
1651
  * @generated from message livekit.proto.TrackSubscribed
1700
1652
  */
1701
- class TrackSubscribed extends protobuf_1.Message {
1653
+ export class TrackSubscribed extends Message {
1702
1654
  constructor(data) {
1703
1655
  super();
1704
1656
  /**
1705
1657
  * @generated from field: string participant_sid = 1;
1706
1658
  */
1707
1659
  this.participantSid = "";
1708
- protobuf_1.proto3.util.initPartial(data, this);
1660
+ proto3.util.initPartial(data, this);
1709
1661
  }
1710
1662
  static fromBinary(bytes, options) {
1711
1663
  return new TrackSubscribed().fromBinary(bytes, options);
@@ -1717,20 +1669,19 @@ class TrackSubscribed extends protobuf_1.Message {
1717
1669
  return new TrackSubscribed().fromJsonString(jsonString, options);
1718
1670
  }
1719
1671
  static equals(a, b) {
1720
- return protobuf_1.proto3.util.equals(TrackSubscribed, a, b);
1672
+ return proto3.util.equals(TrackSubscribed, a, b);
1721
1673
  }
1722
1674
  }
1723
- exports.TrackSubscribed = TrackSubscribed;
1724
- TrackSubscribed.runtime = protobuf_1.proto3;
1675
+ TrackSubscribed.runtime = proto3;
1725
1676
  TrackSubscribed.typeName = "livekit.proto.TrackSubscribed";
1726
- TrackSubscribed.fields = protobuf_1.proto3.util.newFieldList(() => [
1677
+ TrackSubscribed.fields = proto3.util.newFieldList(() => [
1727
1678
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1728
- { no: 2, name: "track", kind: "message", T: track_pb_js_1.OwnedTrack },
1679
+ { no: 2, name: "track", kind: "message", T: OwnedTrack },
1729
1680
  ]);
1730
1681
  /**
1731
1682
  * @generated from message livekit.proto.TrackUnsubscribed
1732
1683
  */
1733
- class TrackUnsubscribed extends protobuf_1.Message {
1684
+ export class TrackUnsubscribed extends Message {
1734
1685
  constructor(data) {
1735
1686
  super();
1736
1687
  /**
@@ -1743,7 +1694,7 @@ class TrackUnsubscribed extends protobuf_1.Message {
1743
1694
  * @generated from field: string track_sid = 2;
1744
1695
  */
1745
1696
  this.trackSid = "";
1746
- protobuf_1.proto3.util.initPartial(data, this);
1697
+ proto3.util.initPartial(data, this);
1747
1698
  }
1748
1699
  static fromBinary(bytes, options) {
1749
1700
  return new TrackUnsubscribed().fromBinary(bytes, options);
@@ -1755,20 +1706,19 @@ class TrackUnsubscribed extends protobuf_1.Message {
1755
1706
  return new TrackUnsubscribed().fromJsonString(jsonString, options);
1756
1707
  }
1757
1708
  static equals(a, b) {
1758
- return protobuf_1.proto3.util.equals(TrackUnsubscribed, a, b);
1709
+ return proto3.util.equals(TrackUnsubscribed, a, b);
1759
1710
  }
1760
1711
  }
1761
- exports.TrackUnsubscribed = TrackUnsubscribed;
1762
- TrackUnsubscribed.runtime = protobuf_1.proto3;
1712
+ TrackUnsubscribed.runtime = proto3;
1763
1713
  TrackUnsubscribed.typeName = "livekit.proto.TrackUnsubscribed";
1764
- TrackUnsubscribed.fields = protobuf_1.proto3.util.newFieldList(() => [
1714
+ TrackUnsubscribed.fields = proto3.util.newFieldList(() => [
1765
1715
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1766
1716
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1767
1717
  ]);
1768
1718
  /**
1769
1719
  * @generated from message livekit.proto.TrackSubscriptionFailed
1770
1720
  */
1771
- class TrackSubscriptionFailed extends protobuf_1.Message {
1721
+ export class TrackSubscriptionFailed extends Message {
1772
1722
  constructor(data) {
1773
1723
  super();
1774
1724
  /**
@@ -1783,7 +1733,7 @@ class TrackSubscriptionFailed extends protobuf_1.Message {
1783
1733
  * @generated from field: string error = 3;
1784
1734
  */
1785
1735
  this.error = "";
1786
- protobuf_1.proto3.util.initPartial(data, this);
1736
+ proto3.util.initPartial(data, this);
1787
1737
  }
1788
1738
  static fromBinary(bytes, options) {
1789
1739
  return new TrackSubscriptionFailed().fromBinary(bytes, options);
@@ -1795,13 +1745,12 @@ class TrackSubscriptionFailed extends protobuf_1.Message {
1795
1745
  return new TrackSubscriptionFailed().fromJsonString(jsonString, options);
1796
1746
  }
1797
1747
  static equals(a, b) {
1798
- return protobuf_1.proto3.util.equals(TrackSubscriptionFailed, a, b);
1748
+ return proto3.util.equals(TrackSubscriptionFailed, a, b);
1799
1749
  }
1800
1750
  }
1801
- exports.TrackSubscriptionFailed = TrackSubscriptionFailed;
1802
- TrackSubscriptionFailed.runtime = protobuf_1.proto3;
1751
+ TrackSubscriptionFailed.runtime = proto3;
1803
1752
  TrackSubscriptionFailed.typeName = "livekit.proto.TrackSubscriptionFailed";
1804
- TrackSubscriptionFailed.fields = protobuf_1.proto3.util.newFieldList(() => [
1753
+ TrackSubscriptionFailed.fields = proto3.util.newFieldList(() => [
1805
1754
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1806
1755
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1807
1756
  { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1809,7 +1758,7 @@ TrackSubscriptionFailed.fields = protobuf_1.proto3.util.newFieldList(() => [
1809
1758
  /**
1810
1759
  * @generated from message livekit.proto.TrackMuted
1811
1760
  */
1812
- class TrackMuted extends protobuf_1.Message {
1761
+ export class TrackMuted extends Message {
1813
1762
  constructor(data) {
1814
1763
  super();
1815
1764
  /**
@@ -1820,7 +1769,7 @@ class TrackMuted extends protobuf_1.Message {
1820
1769
  * @generated from field: string track_sid = 2;
1821
1770
  */
1822
1771
  this.trackSid = "";
1823
- protobuf_1.proto3.util.initPartial(data, this);
1772
+ proto3.util.initPartial(data, this);
1824
1773
  }
1825
1774
  static fromBinary(bytes, options) {
1826
1775
  return new TrackMuted().fromBinary(bytes, options);
@@ -1832,20 +1781,19 @@ class TrackMuted extends protobuf_1.Message {
1832
1781
  return new TrackMuted().fromJsonString(jsonString, options);
1833
1782
  }
1834
1783
  static equals(a, b) {
1835
- return protobuf_1.proto3.util.equals(TrackMuted, a, b);
1784
+ return proto3.util.equals(TrackMuted, a, b);
1836
1785
  }
1837
1786
  }
1838
- exports.TrackMuted = TrackMuted;
1839
- TrackMuted.runtime = protobuf_1.proto3;
1787
+ TrackMuted.runtime = proto3;
1840
1788
  TrackMuted.typeName = "livekit.proto.TrackMuted";
1841
- TrackMuted.fields = protobuf_1.proto3.util.newFieldList(() => [
1789
+ TrackMuted.fields = proto3.util.newFieldList(() => [
1842
1790
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1843
1791
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1844
1792
  ]);
1845
1793
  /**
1846
1794
  * @generated from message livekit.proto.TrackUnmuted
1847
1795
  */
1848
- class TrackUnmuted extends protobuf_1.Message {
1796
+ export class TrackUnmuted extends Message {
1849
1797
  constructor(data) {
1850
1798
  super();
1851
1799
  /**
@@ -1856,7 +1804,7 @@ class TrackUnmuted extends protobuf_1.Message {
1856
1804
  * @generated from field: string track_sid = 2;
1857
1805
  */
1858
1806
  this.trackSid = "";
1859
- protobuf_1.proto3.util.initPartial(data, this);
1807
+ proto3.util.initPartial(data, this);
1860
1808
  }
1861
1809
  static fromBinary(bytes, options) {
1862
1810
  return new TrackUnmuted().fromBinary(bytes, options);
@@ -1868,20 +1816,19 @@ class TrackUnmuted extends protobuf_1.Message {
1868
1816
  return new TrackUnmuted().fromJsonString(jsonString, options);
1869
1817
  }
1870
1818
  static equals(a, b) {
1871
- return protobuf_1.proto3.util.equals(TrackUnmuted, a, b);
1819
+ return proto3.util.equals(TrackUnmuted, a, b);
1872
1820
  }
1873
1821
  }
1874
- exports.TrackUnmuted = TrackUnmuted;
1875
- TrackUnmuted.runtime = protobuf_1.proto3;
1822
+ TrackUnmuted.runtime = proto3;
1876
1823
  TrackUnmuted.typeName = "livekit.proto.TrackUnmuted";
1877
- TrackUnmuted.fields = protobuf_1.proto3.util.newFieldList(() => [
1824
+ TrackUnmuted.fields = proto3.util.newFieldList(() => [
1878
1825
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1879
1826
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1880
1827
  ]);
1881
1828
  /**
1882
1829
  * @generated from message livekit.proto.E2eeStateChanged
1883
1830
  */
1884
- class E2eeStateChanged extends protobuf_1.Message {
1831
+ export class E2eeStateChanged extends Message {
1885
1832
  constructor(data) {
1886
1833
  super();
1887
1834
  /**
@@ -1893,8 +1840,8 @@ class E2eeStateChanged extends protobuf_1.Message {
1893
1840
  /**
1894
1841
  * @generated from field: livekit.proto.EncryptionState state = 2;
1895
1842
  */
1896
- this.state = e2ee_pb_js_1.EncryptionState.NEW;
1897
- protobuf_1.proto3.util.initPartial(data, this);
1843
+ this.state = EncryptionState.NEW;
1844
+ proto3.util.initPartial(data, this);
1898
1845
  }
1899
1846
  static fromBinary(bytes, options) {
1900
1847
  return new E2eeStateChanged().fromBinary(bytes, options);
@@ -1906,27 +1853,26 @@ class E2eeStateChanged extends protobuf_1.Message {
1906
1853
  return new E2eeStateChanged().fromJsonString(jsonString, options);
1907
1854
  }
1908
1855
  static equals(a, b) {
1909
- return protobuf_1.proto3.util.equals(E2eeStateChanged, a, b);
1856
+ return proto3.util.equals(E2eeStateChanged, a, b);
1910
1857
  }
1911
1858
  }
1912
- exports.E2eeStateChanged = E2eeStateChanged;
1913
- E2eeStateChanged.runtime = protobuf_1.proto3;
1859
+ E2eeStateChanged.runtime = proto3;
1914
1860
  E2eeStateChanged.typeName = "livekit.proto.E2eeStateChanged";
1915
- E2eeStateChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
1861
+ E2eeStateChanged.fields = proto3.util.newFieldList(() => [
1916
1862
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1917
- { no: 2, name: "state", kind: "enum", T: protobuf_1.proto3.getEnumType(e2ee_pb_js_1.EncryptionState) },
1863
+ { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(EncryptionState) },
1918
1864
  ]);
1919
1865
  /**
1920
1866
  * @generated from message livekit.proto.ActiveSpeakersChanged
1921
1867
  */
1922
- class ActiveSpeakersChanged extends protobuf_1.Message {
1868
+ export class ActiveSpeakersChanged extends Message {
1923
1869
  constructor(data) {
1924
1870
  super();
1925
1871
  /**
1926
1872
  * @generated from field: repeated string participant_sids = 1;
1927
1873
  */
1928
1874
  this.participantSids = [];
1929
- protobuf_1.proto3.util.initPartial(data, this);
1875
+ proto3.util.initPartial(data, this);
1930
1876
  }
1931
1877
  static fromBinary(bytes, options) {
1932
1878
  return new ActiveSpeakersChanged().fromBinary(bytes, options);
@@ -1938,26 +1884,25 @@ class ActiveSpeakersChanged extends protobuf_1.Message {
1938
1884
  return new ActiveSpeakersChanged().fromJsonString(jsonString, options);
1939
1885
  }
1940
1886
  static equals(a, b) {
1941
- return protobuf_1.proto3.util.equals(ActiveSpeakersChanged, a, b);
1887
+ return proto3.util.equals(ActiveSpeakersChanged, a, b);
1942
1888
  }
1943
1889
  }
1944
- exports.ActiveSpeakersChanged = ActiveSpeakersChanged;
1945
- ActiveSpeakersChanged.runtime = protobuf_1.proto3;
1890
+ ActiveSpeakersChanged.runtime = proto3;
1946
1891
  ActiveSpeakersChanged.typeName = "livekit.proto.ActiveSpeakersChanged";
1947
- ActiveSpeakersChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
1892
+ ActiveSpeakersChanged.fields = proto3.util.newFieldList(() => [
1948
1893
  { no: 1, name: "participant_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1949
1894
  ]);
1950
1895
  /**
1951
1896
  * @generated from message livekit.proto.RoomMetadataChanged
1952
1897
  */
1953
- class RoomMetadataChanged extends protobuf_1.Message {
1898
+ export class RoomMetadataChanged extends Message {
1954
1899
  constructor(data) {
1955
1900
  super();
1956
1901
  /**
1957
1902
  * @generated from field: string metadata = 1;
1958
1903
  */
1959
1904
  this.metadata = "";
1960
- protobuf_1.proto3.util.initPartial(data, this);
1905
+ proto3.util.initPartial(data, this);
1961
1906
  }
1962
1907
  static fromBinary(bytes, options) {
1963
1908
  return new RoomMetadataChanged().fromBinary(bytes, options);
@@ -1969,19 +1914,18 @@ class RoomMetadataChanged extends protobuf_1.Message {
1969
1914
  return new RoomMetadataChanged().fromJsonString(jsonString, options);
1970
1915
  }
1971
1916
  static equals(a, b) {
1972
- return protobuf_1.proto3.util.equals(RoomMetadataChanged, a, b);
1917
+ return proto3.util.equals(RoomMetadataChanged, a, b);
1973
1918
  }
1974
1919
  }
1975
- exports.RoomMetadataChanged = RoomMetadataChanged;
1976
- RoomMetadataChanged.runtime = protobuf_1.proto3;
1920
+ RoomMetadataChanged.runtime = proto3;
1977
1921
  RoomMetadataChanged.typeName = "livekit.proto.RoomMetadataChanged";
1978
- RoomMetadataChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
1922
+ RoomMetadataChanged.fields = proto3.util.newFieldList(() => [
1979
1923
  { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1980
1924
  ]);
1981
1925
  /**
1982
1926
  * @generated from message livekit.proto.ParticipantMetadataChanged
1983
1927
  */
1984
- class ParticipantMetadataChanged extends protobuf_1.Message {
1928
+ export class ParticipantMetadataChanged extends Message {
1985
1929
  constructor(data) {
1986
1930
  super();
1987
1931
  /**
@@ -1992,7 +1936,7 @@ class ParticipantMetadataChanged extends protobuf_1.Message {
1992
1936
  * @generated from field: string metadata = 2;
1993
1937
  */
1994
1938
  this.metadata = "";
1995
- protobuf_1.proto3.util.initPartial(data, this);
1939
+ proto3.util.initPartial(data, this);
1996
1940
  }
1997
1941
  static fromBinary(bytes, options) {
1998
1942
  return new ParticipantMetadataChanged().fromBinary(bytes, options);
@@ -2004,20 +1948,19 @@ class ParticipantMetadataChanged extends protobuf_1.Message {
2004
1948
  return new ParticipantMetadataChanged().fromJsonString(jsonString, options);
2005
1949
  }
2006
1950
  static equals(a, b) {
2007
- return protobuf_1.proto3.util.equals(ParticipantMetadataChanged, a, b);
1951
+ return proto3.util.equals(ParticipantMetadataChanged, a, b);
2008
1952
  }
2009
1953
  }
2010
- exports.ParticipantMetadataChanged = ParticipantMetadataChanged;
2011
- ParticipantMetadataChanged.runtime = protobuf_1.proto3;
1954
+ ParticipantMetadataChanged.runtime = proto3;
2012
1955
  ParticipantMetadataChanged.typeName = "livekit.proto.ParticipantMetadataChanged";
2013
- ParticipantMetadataChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
1956
+ ParticipantMetadataChanged.fields = proto3.util.newFieldList(() => [
2014
1957
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2015
1958
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2016
1959
  ]);
2017
1960
  /**
2018
1961
  * @generated from message livekit.proto.ParticipantNameChanged
2019
1962
  */
2020
- class ParticipantNameChanged extends protobuf_1.Message {
1963
+ export class ParticipantNameChanged extends Message {
2021
1964
  constructor(data) {
2022
1965
  super();
2023
1966
  /**
@@ -2028,7 +1971,7 @@ class ParticipantNameChanged extends protobuf_1.Message {
2028
1971
  * @generated from field: string name = 2;
2029
1972
  */
2030
1973
  this.name = "";
2031
- protobuf_1.proto3.util.initPartial(data, this);
1974
+ proto3.util.initPartial(data, this);
2032
1975
  }
2033
1976
  static fromBinary(bytes, options) {
2034
1977
  return new ParticipantNameChanged().fromBinary(bytes, options);
@@ -2040,20 +1983,19 @@ class ParticipantNameChanged extends protobuf_1.Message {
2040
1983
  return new ParticipantNameChanged().fromJsonString(jsonString, options);
2041
1984
  }
2042
1985
  static equals(a, b) {
2043
- return protobuf_1.proto3.util.equals(ParticipantNameChanged, a, b);
1986
+ return proto3.util.equals(ParticipantNameChanged, a, b);
2044
1987
  }
2045
1988
  }
2046
- exports.ParticipantNameChanged = ParticipantNameChanged;
2047
- ParticipantNameChanged.runtime = protobuf_1.proto3;
1989
+ ParticipantNameChanged.runtime = proto3;
2048
1990
  ParticipantNameChanged.typeName = "livekit.proto.ParticipantNameChanged";
2049
- ParticipantNameChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
1991
+ ParticipantNameChanged.fields = proto3.util.newFieldList(() => [
2050
1992
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2051
1993
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2052
1994
  ]);
2053
1995
  /**
2054
1996
  * @generated from message livekit.proto.ConnectionQualityChanged
2055
1997
  */
2056
- class ConnectionQualityChanged extends protobuf_1.Message {
1998
+ export class ConnectionQualityChanged extends Message {
2057
1999
  constructor(data) {
2058
2000
  super();
2059
2001
  /**
@@ -2064,7 +2006,7 @@ class ConnectionQualityChanged extends protobuf_1.Message {
2064
2006
  * @generated from field: livekit.proto.ConnectionQuality quality = 2;
2065
2007
  */
2066
2008
  this.quality = ConnectionQuality.QUALITY_POOR;
2067
- protobuf_1.proto3.util.initPartial(data, this);
2009
+ proto3.util.initPartial(data, this);
2068
2010
  }
2069
2011
  static fromBinary(bytes, options) {
2070
2012
  return new ConnectionQualityChanged().fromBinary(bytes, options);
@@ -2076,27 +2018,26 @@ class ConnectionQualityChanged extends protobuf_1.Message {
2076
2018
  return new ConnectionQualityChanged().fromJsonString(jsonString, options);
2077
2019
  }
2078
2020
  static equals(a, b) {
2079
- return protobuf_1.proto3.util.equals(ConnectionQualityChanged, a, b);
2021
+ return proto3.util.equals(ConnectionQualityChanged, a, b);
2080
2022
  }
2081
2023
  }
2082
- exports.ConnectionQualityChanged = ConnectionQualityChanged;
2083
- ConnectionQualityChanged.runtime = protobuf_1.proto3;
2024
+ ConnectionQualityChanged.runtime = proto3;
2084
2025
  ConnectionQualityChanged.typeName = "livekit.proto.ConnectionQualityChanged";
2085
- ConnectionQualityChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
2026
+ ConnectionQualityChanged.fields = proto3.util.newFieldList(() => [
2086
2027
  { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2087
- { no: 2, name: "quality", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionQuality) },
2028
+ { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) },
2088
2029
  ]);
2089
2030
  /**
2090
2031
  * @generated from message livekit.proto.DataReceived
2091
2032
  */
2092
- class DataReceived extends protobuf_1.Message {
2033
+ export class DataReceived extends Message {
2093
2034
  constructor(data) {
2094
2035
  super();
2095
2036
  /**
2096
2037
  * @generated from field: livekit.proto.DataPacketKind kind = 3;
2097
2038
  */
2098
2039
  this.kind = DataPacketKind.KIND_LOSSY;
2099
- protobuf_1.proto3.util.initPartial(data, this);
2040
+ proto3.util.initPartial(data, this);
2100
2041
  }
2101
2042
  static fromBinary(bytes, options) {
2102
2043
  return new DataReceived().fromBinary(bytes, options);
@@ -2108,29 +2049,28 @@ class DataReceived extends protobuf_1.Message {
2108
2049
  return new DataReceived().fromJsonString(jsonString, options);
2109
2050
  }
2110
2051
  static equals(a, b) {
2111
- return protobuf_1.proto3.util.equals(DataReceived, a, b);
2052
+ return proto3.util.equals(DataReceived, a, b);
2112
2053
  }
2113
2054
  }
2114
- exports.DataReceived = DataReceived;
2115
- DataReceived.runtime = protobuf_1.proto3;
2055
+ DataReceived.runtime = proto3;
2116
2056
  DataReceived.typeName = "livekit.proto.DataReceived";
2117
- DataReceived.fields = protobuf_1.proto3.util.newFieldList(() => [
2057
+ DataReceived.fields = proto3.util.newFieldList(() => [
2118
2058
  { no: 1, name: "data", kind: "message", T: OwnedBuffer },
2119
2059
  { no: 2, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2120
- { no: 3, name: "kind", kind: "enum", T: protobuf_1.proto3.getEnumType(DataPacketKind) },
2060
+ { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
2121
2061
  { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2122
2062
  ]);
2123
2063
  /**
2124
2064
  * @generated from message livekit.proto.ConnectionStateChanged
2125
2065
  */
2126
- class ConnectionStateChanged extends protobuf_1.Message {
2066
+ export class ConnectionStateChanged extends Message {
2127
2067
  constructor(data) {
2128
2068
  super();
2129
2069
  /**
2130
2070
  * @generated from field: livekit.proto.ConnectionState state = 1;
2131
2071
  */
2132
2072
  this.state = ConnectionState.CONN_DISCONNECTED;
2133
- protobuf_1.proto3.util.initPartial(data, this);
2073
+ proto3.util.initPartial(data, this);
2134
2074
  }
2135
2075
  static fromBinary(bytes, options) {
2136
2076
  return new ConnectionStateChanged().fromBinary(bytes, options);
@@ -2142,22 +2082,21 @@ class ConnectionStateChanged extends protobuf_1.Message {
2142
2082
  return new ConnectionStateChanged().fromJsonString(jsonString, options);
2143
2083
  }
2144
2084
  static equals(a, b) {
2145
- return protobuf_1.proto3.util.equals(ConnectionStateChanged, a, b);
2085
+ return proto3.util.equals(ConnectionStateChanged, a, b);
2146
2086
  }
2147
2087
  }
2148
- exports.ConnectionStateChanged = ConnectionStateChanged;
2149
- ConnectionStateChanged.runtime = protobuf_1.proto3;
2088
+ ConnectionStateChanged.runtime = proto3;
2150
2089
  ConnectionStateChanged.typeName = "livekit.proto.ConnectionStateChanged";
2151
- ConnectionStateChanged.fields = protobuf_1.proto3.util.newFieldList(() => [
2152
- { no: 1, name: "state", kind: "enum", T: protobuf_1.proto3.getEnumType(ConnectionState) },
2090
+ ConnectionStateChanged.fields = proto3.util.newFieldList(() => [
2091
+ { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(ConnectionState) },
2153
2092
  ]);
2154
2093
  /**
2155
2094
  * @generated from message livekit.proto.Connected
2156
2095
  */
2157
- class Connected extends protobuf_1.Message {
2096
+ export class Connected extends Message {
2158
2097
  constructor(data) {
2159
2098
  super();
2160
- protobuf_1.proto3.util.initPartial(data, this);
2099
+ proto3.util.initPartial(data, this);
2161
2100
  }
2162
2101
  static fromBinary(bytes, options) {
2163
2102
  return new Connected().fromBinary(bytes, options);
@@ -2169,20 +2108,19 @@ class Connected extends protobuf_1.Message {
2169
2108
  return new Connected().fromJsonString(jsonString, options);
2170
2109
  }
2171
2110
  static equals(a, b) {
2172
- return protobuf_1.proto3.util.equals(Connected, a, b);
2111
+ return proto3.util.equals(Connected, a, b);
2173
2112
  }
2174
2113
  }
2175
- exports.Connected = Connected;
2176
- Connected.runtime = protobuf_1.proto3;
2114
+ Connected.runtime = proto3;
2177
2115
  Connected.typeName = "livekit.proto.Connected";
2178
- Connected.fields = protobuf_1.proto3.util.newFieldList(() => []);
2116
+ Connected.fields = proto3.util.newFieldList(() => []);
2179
2117
  /**
2180
2118
  * @generated from message livekit.proto.Disconnected
2181
2119
  */
2182
- class Disconnected extends protobuf_1.Message {
2120
+ export class Disconnected extends Message {
2183
2121
  constructor(data) {
2184
2122
  super();
2185
- protobuf_1.proto3.util.initPartial(data, this);
2123
+ proto3.util.initPartial(data, this);
2186
2124
  }
2187
2125
  static fromBinary(bytes, options) {
2188
2126
  return new Disconnected().fromBinary(bytes, options);
@@ -2194,20 +2132,19 @@ class Disconnected extends protobuf_1.Message {
2194
2132
  return new Disconnected().fromJsonString(jsonString, options);
2195
2133
  }
2196
2134
  static equals(a, b) {
2197
- return protobuf_1.proto3.util.equals(Disconnected, a, b);
2135
+ return proto3.util.equals(Disconnected, a, b);
2198
2136
  }
2199
2137
  }
2200
- exports.Disconnected = Disconnected;
2201
- Disconnected.runtime = protobuf_1.proto3;
2138
+ Disconnected.runtime = proto3;
2202
2139
  Disconnected.typeName = "livekit.proto.Disconnected";
2203
- Disconnected.fields = protobuf_1.proto3.util.newFieldList(() => []);
2140
+ Disconnected.fields = proto3.util.newFieldList(() => []);
2204
2141
  /**
2205
2142
  * @generated from message livekit.proto.Reconnecting
2206
2143
  */
2207
- class Reconnecting extends protobuf_1.Message {
2144
+ export class Reconnecting extends Message {
2208
2145
  constructor(data) {
2209
2146
  super();
2210
- protobuf_1.proto3.util.initPartial(data, this);
2147
+ proto3.util.initPartial(data, this);
2211
2148
  }
2212
2149
  static fromBinary(bytes, options) {
2213
2150
  return new Reconnecting().fromBinary(bytes, options);
@@ -2219,20 +2156,19 @@ class Reconnecting extends protobuf_1.Message {
2219
2156
  return new Reconnecting().fromJsonString(jsonString, options);
2220
2157
  }
2221
2158
  static equals(a, b) {
2222
- return protobuf_1.proto3.util.equals(Reconnecting, a, b);
2159
+ return proto3.util.equals(Reconnecting, a, b);
2223
2160
  }
2224
2161
  }
2225
- exports.Reconnecting = Reconnecting;
2226
- Reconnecting.runtime = protobuf_1.proto3;
2162
+ Reconnecting.runtime = proto3;
2227
2163
  Reconnecting.typeName = "livekit.proto.Reconnecting";
2228
- Reconnecting.fields = protobuf_1.proto3.util.newFieldList(() => []);
2164
+ Reconnecting.fields = proto3.util.newFieldList(() => []);
2229
2165
  /**
2230
2166
  * @generated from message livekit.proto.Reconnected
2231
2167
  */
2232
- class Reconnected extends protobuf_1.Message {
2168
+ export class Reconnected extends Message {
2233
2169
  constructor(data) {
2234
2170
  super();
2235
- protobuf_1.proto3.util.initPartial(data, this);
2171
+ proto3.util.initPartial(data, this);
2236
2172
  }
2237
2173
  static fromBinary(bytes, options) {
2238
2174
  return new Reconnected().fromBinary(bytes, options);
@@ -2244,20 +2180,19 @@ class Reconnected extends protobuf_1.Message {
2244
2180
  return new Reconnected().fromJsonString(jsonString, options);
2245
2181
  }
2246
2182
  static equals(a, b) {
2247
- return protobuf_1.proto3.util.equals(Reconnected, a, b);
2183
+ return proto3.util.equals(Reconnected, a, b);
2248
2184
  }
2249
2185
  }
2250
- exports.Reconnected = Reconnected;
2251
- Reconnected.runtime = protobuf_1.proto3;
2186
+ Reconnected.runtime = proto3;
2252
2187
  Reconnected.typeName = "livekit.proto.Reconnected";
2253
- Reconnected.fields = protobuf_1.proto3.util.newFieldList(() => []);
2188
+ Reconnected.fields = proto3.util.newFieldList(() => []);
2254
2189
  /**
2255
2190
  * @generated from message livekit.proto.RoomEOS
2256
2191
  */
2257
- class RoomEOS extends protobuf_1.Message {
2192
+ export class RoomEOS extends Message {
2258
2193
  constructor(data) {
2259
2194
  super();
2260
- protobuf_1.proto3.util.initPartial(data, this);
2195
+ proto3.util.initPartial(data, this);
2261
2196
  }
2262
2197
  static fromBinary(bytes, options) {
2263
2198
  return new RoomEOS().fromBinary(bytes, options);
@@ -2269,11 +2204,10 @@ class RoomEOS extends protobuf_1.Message {
2269
2204
  return new RoomEOS().fromJsonString(jsonString, options);
2270
2205
  }
2271
2206
  static equals(a, b) {
2272
- return protobuf_1.proto3.util.equals(RoomEOS, a, b);
2207
+ return proto3.util.equals(RoomEOS, a, b);
2273
2208
  }
2274
2209
  }
2275
- exports.RoomEOS = RoomEOS;
2276
- RoomEOS.runtime = protobuf_1.proto3;
2210
+ RoomEOS.runtime = proto3;
2277
2211
  RoomEOS.typeName = "livekit.proto.RoomEOS";
2278
- RoomEOS.fields = protobuf_1.proto3.util.newFieldList(() => []);
2212
+ RoomEOS.fields = proto3.util.newFieldList(() => []);
2279
2213
  //# sourceMappingURL=room_pb.js.map