@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,13 +11,11 @@
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.E2eeResponse = exports.E2eeRequest = exports.GetKeyResponse = exports.GetKeyRequest = exports.RatchetKeyResponse = exports.RatchetKeyRequest = exports.SetKeyResponse = exports.SetKeyRequest = exports.GetSharedKeyResponse = exports.GetSharedKeyRequest = exports.RatchetSharedKeyResponse = exports.RatchetSharedKeyRequest = exports.SetSharedKeyResponse = exports.SetSharedKeyRequest = exports.FrameCryptorSetKeyIndexResponse = exports.FrameCryptorSetKeyIndexRequest = exports.FrameCryptorSetEnabledResponse = exports.FrameCryptorSetEnabledRequest = exports.E2eeManagerGetFrameCryptorsResponse = exports.E2eeManagerGetFrameCryptorsRequest = exports.E2eeManagerSetEnabledResponse = exports.E2eeManagerSetEnabledRequest = exports.E2eeOptions = exports.KeyProviderOptions = exports.FrameCryptor = exports.EncryptionState = exports.EncryptionType = void 0;
17
- const protobuf_1 = require("@bufbuild/protobuf");
14
+ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
18
15
  /**
19
16
  * @generated from enum livekit.proto.EncryptionType
20
17
  */
21
- var EncryptionType;
18
+ export var EncryptionType;
22
19
  (function (EncryptionType) {
23
20
  /**
24
21
  * @generated from enum value: NONE = 0;
@@ -32,9 +29,9 @@ var EncryptionType;
32
29
  * @generated from enum value: CUSTOM = 2;
33
30
  */
34
31
  EncryptionType[EncryptionType["CUSTOM"] = 2] = "CUSTOM";
35
- })(EncryptionType || (exports.EncryptionType = EncryptionType = {}));
32
+ })(EncryptionType || (EncryptionType = {}));
36
33
  // Retrieve enum metadata with: proto3.getEnumType(EncryptionType)
37
- protobuf_1.proto3.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
34
+ proto3.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
38
35
  { no: 0, name: "NONE" },
39
36
  { no: 1, name: "GCM" },
40
37
  { no: 2, name: "CUSTOM" },
@@ -42,7 +39,7 @@ protobuf_1.proto3.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType
42
39
  /**
43
40
  * @generated from enum livekit.proto.EncryptionState
44
41
  */
45
- var EncryptionState;
42
+ export var EncryptionState;
46
43
  (function (EncryptionState) {
47
44
  /**
48
45
  * @generated from enum value: NEW = 0;
@@ -72,9 +69,9 @@ var EncryptionState;
72
69
  * @generated from enum value: INTERNAL_ERROR = 6;
73
70
  */
74
71
  EncryptionState[EncryptionState["INTERNAL_ERROR"] = 6] = "INTERNAL_ERROR";
75
- })(EncryptionState || (exports.EncryptionState = EncryptionState = {}));
72
+ })(EncryptionState || (EncryptionState = {}));
76
73
  // Retrieve enum metadata with: proto3.getEnumType(EncryptionState)
77
- protobuf_1.proto3.util.setEnumType(EncryptionState, "livekit.proto.EncryptionState", [
74
+ proto3.util.setEnumType(EncryptionState, "livekit.proto.EncryptionState", [
78
75
  { no: 0, name: "NEW" },
79
76
  { no: 1, name: "OK" },
80
77
  { no: 2, name: "ENCRYPTION_FAILED" },
@@ -86,7 +83,7 @@ protobuf_1.proto3.util.setEnumType(EncryptionState, "livekit.proto.EncryptionSta
86
83
  /**
87
84
  * @generated from message livekit.proto.FrameCryptor
88
85
  */
89
- class FrameCryptor extends protobuf_1.Message {
86
+ export class FrameCryptor extends Message {
90
87
  constructor(data) {
91
88
  super();
92
89
  /**
@@ -105,7 +102,7 @@ class FrameCryptor extends protobuf_1.Message {
105
102
  * @generated from field: bool enabled = 4;
106
103
  */
107
104
  this.enabled = false;
108
- protobuf_1.proto3.util.initPartial(data, this);
105
+ proto3.util.initPartial(data, this);
109
106
  }
110
107
  static fromBinary(bytes, options) {
111
108
  return new FrameCryptor().fromBinary(bytes, options);
@@ -117,13 +114,12 @@ class FrameCryptor extends protobuf_1.Message {
117
114
  return new FrameCryptor().fromJsonString(jsonString, options);
118
115
  }
119
116
  static equals(a, b) {
120
- return protobuf_1.proto3.util.equals(FrameCryptor, a, b);
117
+ return proto3.util.equals(FrameCryptor, a, b);
121
118
  }
122
119
  }
123
- exports.FrameCryptor = FrameCryptor;
124
- FrameCryptor.runtime = protobuf_1.proto3;
120
+ FrameCryptor.runtime = proto3;
125
121
  FrameCryptor.typeName = "livekit.proto.FrameCryptor";
126
- FrameCryptor.fields = protobuf_1.proto3.util.newFieldList(() => [
122
+ FrameCryptor.fields = proto3.util.newFieldList(() => [
127
123
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
128
124
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
125
  { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -132,7 +128,7 @@ FrameCryptor.fields = protobuf_1.proto3.util.newFieldList(() => [
132
128
  /**
133
129
  * @generated from message livekit.proto.KeyProviderOptions
134
130
  */
135
- class KeyProviderOptions extends protobuf_1.Message {
131
+ export class KeyProviderOptions extends Message {
136
132
  constructor(data) {
137
133
  super();
138
134
  /**
@@ -149,7 +145,7 @@ class KeyProviderOptions extends protobuf_1.Message {
149
145
  * @generated from field: int32 failure_tolerance = 4;
150
146
  */
151
147
  this.failureTolerance = 0;
152
- protobuf_1.proto3.util.initPartial(data, this);
148
+ proto3.util.initPartial(data, this);
153
149
  }
154
150
  static fromBinary(bytes, options) {
155
151
  return new KeyProviderOptions().fromBinary(bytes, options);
@@ -161,13 +157,12 @@ class KeyProviderOptions extends protobuf_1.Message {
161
157
  return new KeyProviderOptions().fromJsonString(jsonString, options);
162
158
  }
163
159
  static equals(a, b) {
164
- return protobuf_1.proto3.util.equals(KeyProviderOptions, a, b);
160
+ return proto3.util.equals(KeyProviderOptions, a, b);
165
161
  }
166
162
  }
167
- exports.KeyProviderOptions = KeyProviderOptions;
168
- KeyProviderOptions.runtime = protobuf_1.proto3;
163
+ KeyProviderOptions.runtime = proto3;
169
164
  KeyProviderOptions.typeName = "livekit.proto.KeyProviderOptions";
170
- KeyProviderOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
165
+ KeyProviderOptions.fields = proto3.util.newFieldList(() => [
171
166
  { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
172
167
  { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
173
168
  { no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
@@ -176,14 +171,14 @@ KeyProviderOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
176
171
  /**
177
172
  * @generated from message livekit.proto.E2eeOptions
178
173
  */
179
- class E2eeOptions extends protobuf_1.Message {
174
+ export class E2eeOptions extends Message {
180
175
  constructor(data) {
181
176
  super();
182
177
  /**
183
178
  * @generated from field: livekit.proto.EncryptionType encryption_type = 1;
184
179
  */
185
180
  this.encryptionType = EncryptionType.NONE;
186
- protobuf_1.proto3.util.initPartial(data, this);
181
+ proto3.util.initPartial(data, this);
187
182
  }
188
183
  static fromBinary(bytes, options) {
189
184
  return new E2eeOptions().fromBinary(bytes, options);
@@ -195,27 +190,26 @@ class E2eeOptions extends protobuf_1.Message {
195
190
  return new E2eeOptions().fromJsonString(jsonString, options);
196
191
  }
197
192
  static equals(a, b) {
198
- return protobuf_1.proto3.util.equals(E2eeOptions, a, b);
193
+ return proto3.util.equals(E2eeOptions, a, b);
199
194
  }
200
195
  }
201
- exports.E2eeOptions = E2eeOptions;
202
- E2eeOptions.runtime = protobuf_1.proto3;
196
+ E2eeOptions.runtime = proto3;
203
197
  E2eeOptions.typeName = "livekit.proto.E2eeOptions";
204
- E2eeOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
205
- { no: 1, name: "encryption_type", kind: "enum", T: protobuf_1.proto3.getEnumType(EncryptionType) },
198
+ E2eeOptions.fields = proto3.util.newFieldList(() => [
199
+ { no: 1, name: "encryption_type", kind: "enum", T: proto3.getEnumType(EncryptionType) },
206
200
  { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions },
207
201
  ]);
208
202
  /**
209
203
  * @generated from message livekit.proto.E2eeManagerSetEnabledRequest
210
204
  */
211
- class E2eeManagerSetEnabledRequest extends protobuf_1.Message {
205
+ export class E2eeManagerSetEnabledRequest extends Message {
212
206
  constructor(data) {
213
207
  super();
214
208
  /**
215
209
  * @generated from field: bool enabled = 1;
216
210
  */
217
211
  this.enabled = false;
218
- protobuf_1.proto3.util.initPartial(data, this);
212
+ proto3.util.initPartial(data, this);
219
213
  }
220
214
  static fromBinary(bytes, options) {
221
215
  return new E2eeManagerSetEnabledRequest().fromBinary(bytes, options);
@@ -227,22 +221,21 @@ class E2eeManagerSetEnabledRequest extends protobuf_1.Message {
227
221
  return new E2eeManagerSetEnabledRequest().fromJsonString(jsonString, options);
228
222
  }
229
223
  static equals(a, b) {
230
- return protobuf_1.proto3.util.equals(E2eeManagerSetEnabledRequest, a, b);
224
+ return proto3.util.equals(E2eeManagerSetEnabledRequest, a, b);
231
225
  }
232
226
  }
233
- exports.E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest;
234
- E2eeManagerSetEnabledRequest.runtime = protobuf_1.proto3;
227
+ E2eeManagerSetEnabledRequest.runtime = proto3;
235
228
  E2eeManagerSetEnabledRequest.typeName = "livekit.proto.E2eeManagerSetEnabledRequest";
236
- E2eeManagerSetEnabledRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
229
+ E2eeManagerSetEnabledRequest.fields = proto3.util.newFieldList(() => [
237
230
  { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
238
231
  ]);
239
232
  /**
240
233
  * @generated from message livekit.proto.E2eeManagerSetEnabledResponse
241
234
  */
242
- class E2eeManagerSetEnabledResponse extends protobuf_1.Message {
235
+ export class E2eeManagerSetEnabledResponse extends Message {
243
236
  constructor(data) {
244
237
  super();
245
- protobuf_1.proto3.util.initPartial(data, this);
238
+ proto3.util.initPartial(data, this);
246
239
  }
247
240
  static fromBinary(bytes, options) {
248
241
  return new E2eeManagerSetEnabledResponse().fromBinary(bytes, options);
@@ -254,20 +247,19 @@ class E2eeManagerSetEnabledResponse extends protobuf_1.Message {
254
247
  return new E2eeManagerSetEnabledResponse().fromJsonString(jsonString, options);
255
248
  }
256
249
  static equals(a, b) {
257
- return protobuf_1.proto3.util.equals(E2eeManagerSetEnabledResponse, a, b);
250
+ return proto3.util.equals(E2eeManagerSetEnabledResponse, a, b);
258
251
  }
259
252
  }
260
- exports.E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse;
261
- E2eeManagerSetEnabledResponse.runtime = protobuf_1.proto3;
253
+ E2eeManagerSetEnabledResponse.runtime = proto3;
262
254
  E2eeManagerSetEnabledResponse.typeName = "livekit.proto.E2eeManagerSetEnabledResponse";
263
- E2eeManagerSetEnabledResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
255
+ E2eeManagerSetEnabledResponse.fields = proto3.util.newFieldList(() => []);
264
256
  /**
265
257
  * @generated from message livekit.proto.E2eeManagerGetFrameCryptorsRequest
266
258
  */
267
- class E2eeManagerGetFrameCryptorsRequest extends protobuf_1.Message {
259
+ export class E2eeManagerGetFrameCryptorsRequest extends Message {
268
260
  constructor(data) {
269
261
  super();
270
- protobuf_1.proto3.util.initPartial(data, this);
262
+ proto3.util.initPartial(data, this);
271
263
  }
272
264
  static fromBinary(bytes, options) {
273
265
  return new E2eeManagerGetFrameCryptorsRequest().fromBinary(bytes, options);
@@ -279,24 +271,23 @@ class E2eeManagerGetFrameCryptorsRequest extends protobuf_1.Message {
279
271
  return new E2eeManagerGetFrameCryptorsRequest().fromJsonString(jsonString, options);
280
272
  }
281
273
  static equals(a, b) {
282
- return protobuf_1.proto3.util.equals(E2eeManagerGetFrameCryptorsRequest, a, b);
274
+ return proto3.util.equals(E2eeManagerGetFrameCryptorsRequest, a, b);
283
275
  }
284
276
  }
285
- exports.E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest;
286
- E2eeManagerGetFrameCryptorsRequest.runtime = protobuf_1.proto3;
277
+ E2eeManagerGetFrameCryptorsRequest.runtime = proto3;
287
278
  E2eeManagerGetFrameCryptorsRequest.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsRequest";
288
- E2eeManagerGetFrameCryptorsRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
279
+ E2eeManagerGetFrameCryptorsRequest.fields = proto3.util.newFieldList(() => []);
289
280
  /**
290
281
  * @generated from message livekit.proto.E2eeManagerGetFrameCryptorsResponse
291
282
  */
292
- class E2eeManagerGetFrameCryptorsResponse extends protobuf_1.Message {
283
+ export class E2eeManagerGetFrameCryptorsResponse extends Message {
293
284
  constructor(data) {
294
285
  super();
295
286
  /**
296
287
  * @generated from field: repeated livekit.proto.FrameCryptor frame_cryptors = 1;
297
288
  */
298
289
  this.frameCryptors = [];
299
- protobuf_1.proto3.util.initPartial(data, this);
290
+ proto3.util.initPartial(data, this);
300
291
  }
301
292
  static fromBinary(bytes, options) {
302
293
  return new E2eeManagerGetFrameCryptorsResponse().fromBinary(bytes, options);
@@ -308,19 +299,18 @@ class E2eeManagerGetFrameCryptorsResponse extends protobuf_1.Message {
308
299
  return new E2eeManagerGetFrameCryptorsResponse().fromJsonString(jsonString, options);
309
300
  }
310
301
  static equals(a, b) {
311
- return protobuf_1.proto3.util.equals(E2eeManagerGetFrameCryptorsResponse, a, b);
302
+ return proto3.util.equals(E2eeManagerGetFrameCryptorsResponse, a, b);
312
303
  }
313
304
  }
314
- exports.E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse;
315
- E2eeManagerGetFrameCryptorsResponse.runtime = protobuf_1.proto3;
305
+ E2eeManagerGetFrameCryptorsResponse.runtime = proto3;
316
306
  E2eeManagerGetFrameCryptorsResponse.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsResponse";
317
- E2eeManagerGetFrameCryptorsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
307
+ E2eeManagerGetFrameCryptorsResponse.fields = proto3.util.newFieldList(() => [
318
308
  { no: 1, name: "frame_cryptors", kind: "message", T: FrameCryptor, repeated: true },
319
309
  ]);
320
310
  /**
321
311
  * @generated from message livekit.proto.FrameCryptorSetEnabledRequest
322
312
  */
323
- class FrameCryptorSetEnabledRequest extends protobuf_1.Message {
313
+ export class FrameCryptorSetEnabledRequest extends Message {
324
314
  constructor(data) {
325
315
  super();
326
316
  /**
@@ -335,7 +325,7 @@ class FrameCryptorSetEnabledRequest extends protobuf_1.Message {
335
325
  * @generated from field: bool enabled = 3;
336
326
  */
337
327
  this.enabled = false;
338
- protobuf_1.proto3.util.initPartial(data, this);
328
+ proto3.util.initPartial(data, this);
339
329
  }
340
330
  static fromBinary(bytes, options) {
341
331
  return new FrameCryptorSetEnabledRequest().fromBinary(bytes, options);
@@ -347,13 +337,12 @@ class FrameCryptorSetEnabledRequest extends protobuf_1.Message {
347
337
  return new FrameCryptorSetEnabledRequest().fromJsonString(jsonString, options);
348
338
  }
349
339
  static equals(a, b) {
350
- return protobuf_1.proto3.util.equals(FrameCryptorSetEnabledRequest, a, b);
340
+ return proto3.util.equals(FrameCryptorSetEnabledRequest, a, b);
351
341
  }
352
342
  }
353
- exports.FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest;
354
- FrameCryptorSetEnabledRequest.runtime = protobuf_1.proto3;
343
+ FrameCryptorSetEnabledRequest.runtime = proto3;
355
344
  FrameCryptorSetEnabledRequest.typeName = "livekit.proto.FrameCryptorSetEnabledRequest";
356
- FrameCryptorSetEnabledRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
345
+ FrameCryptorSetEnabledRequest.fields = proto3.util.newFieldList(() => [
357
346
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
358
347
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
359
348
  { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
@@ -361,10 +350,10 @@ FrameCryptorSetEnabledRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
361
350
  /**
362
351
  * @generated from message livekit.proto.FrameCryptorSetEnabledResponse
363
352
  */
364
- class FrameCryptorSetEnabledResponse extends protobuf_1.Message {
353
+ export class FrameCryptorSetEnabledResponse extends Message {
365
354
  constructor(data) {
366
355
  super();
367
- protobuf_1.proto3.util.initPartial(data, this);
356
+ proto3.util.initPartial(data, this);
368
357
  }
369
358
  static fromBinary(bytes, options) {
370
359
  return new FrameCryptorSetEnabledResponse().fromBinary(bytes, options);
@@ -376,17 +365,16 @@ class FrameCryptorSetEnabledResponse extends protobuf_1.Message {
376
365
  return new FrameCryptorSetEnabledResponse().fromJsonString(jsonString, options);
377
366
  }
378
367
  static equals(a, b) {
379
- return protobuf_1.proto3.util.equals(FrameCryptorSetEnabledResponse, a, b);
368
+ return proto3.util.equals(FrameCryptorSetEnabledResponse, a, b);
380
369
  }
381
370
  }
382
- exports.FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse;
383
- FrameCryptorSetEnabledResponse.runtime = protobuf_1.proto3;
371
+ FrameCryptorSetEnabledResponse.runtime = proto3;
384
372
  FrameCryptorSetEnabledResponse.typeName = "livekit.proto.FrameCryptorSetEnabledResponse";
385
- FrameCryptorSetEnabledResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
373
+ FrameCryptorSetEnabledResponse.fields = proto3.util.newFieldList(() => []);
386
374
  /**
387
375
  * @generated from message livekit.proto.FrameCryptorSetKeyIndexRequest
388
376
  */
389
- class FrameCryptorSetKeyIndexRequest extends protobuf_1.Message {
377
+ export class FrameCryptorSetKeyIndexRequest extends Message {
390
378
  constructor(data) {
391
379
  super();
392
380
  /**
@@ -401,7 +389,7 @@ class FrameCryptorSetKeyIndexRequest extends protobuf_1.Message {
401
389
  * @generated from field: int32 key_index = 3;
402
390
  */
403
391
  this.keyIndex = 0;
404
- protobuf_1.proto3.util.initPartial(data, this);
392
+ proto3.util.initPartial(data, this);
405
393
  }
406
394
  static fromBinary(bytes, options) {
407
395
  return new FrameCryptorSetKeyIndexRequest().fromBinary(bytes, options);
@@ -413,13 +401,12 @@ class FrameCryptorSetKeyIndexRequest extends protobuf_1.Message {
413
401
  return new FrameCryptorSetKeyIndexRequest().fromJsonString(jsonString, options);
414
402
  }
415
403
  static equals(a, b) {
416
- return protobuf_1.proto3.util.equals(FrameCryptorSetKeyIndexRequest, a, b);
404
+ return proto3.util.equals(FrameCryptorSetKeyIndexRequest, a, b);
417
405
  }
418
406
  }
419
- exports.FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest;
420
- FrameCryptorSetKeyIndexRequest.runtime = protobuf_1.proto3;
407
+ FrameCryptorSetKeyIndexRequest.runtime = proto3;
421
408
  FrameCryptorSetKeyIndexRequest.typeName = "livekit.proto.FrameCryptorSetKeyIndexRequest";
422
- FrameCryptorSetKeyIndexRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
409
+ FrameCryptorSetKeyIndexRequest.fields = proto3.util.newFieldList(() => [
423
410
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
424
411
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
425
412
  { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -427,10 +414,10 @@ FrameCryptorSetKeyIndexRequest.fields = protobuf_1.proto3.util.newFieldList(() =
427
414
  /**
428
415
  * @generated from message livekit.proto.FrameCryptorSetKeyIndexResponse
429
416
  */
430
- class FrameCryptorSetKeyIndexResponse extends protobuf_1.Message {
417
+ export class FrameCryptorSetKeyIndexResponse extends Message {
431
418
  constructor(data) {
432
419
  super();
433
- protobuf_1.proto3.util.initPartial(data, this);
420
+ proto3.util.initPartial(data, this);
434
421
  }
435
422
  static fromBinary(bytes, options) {
436
423
  return new FrameCryptorSetKeyIndexResponse().fromBinary(bytes, options);
@@ -442,17 +429,16 @@ class FrameCryptorSetKeyIndexResponse extends protobuf_1.Message {
442
429
  return new FrameCryptorSetKeyIndexResponse().fromJsonString(jsonString, options);
443
430
  }
444
431
  static equals(a, b) {
445
- return protobuf_1.proto3.util.equals(FrameCryptorSetKeyIndexResponse, a, b);
432
+ return proto3.util.equals(FrameCryptorSetKeyIndexResponse, a, b);
446
433
  }
447
434
  }
448
- exports.FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse;
449
- FrameCryptorSetKeyIndexResponse.runtime = protobuf_1.proto3;
435
+ FrameCryptorSetKeyIndexResponse.runtime = proto3;
450
436
  FrameCryptorSetKeyIndexResponse.typeName = "livekit.proto.FrameCryptorSetKeyIndexResponse";
451
- FrameCryptorSetKeyIndexResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
437
+ FrameCryptorSetKeyIndexResponse.fields = proto3.util.newFieldList(() => []);
452
438
  /**
453
439
  * @generated from message livekit.proto.SetSharedKeyRequest
454
440
  */
455
- class SetSharedKeyRequest extends protobuf_1.Message {
441
+ export class SetSharedKeyRequest extends Message {
456
442
  constructor(data) {
457
443
  super();
458
444
  /**
@@ -463,7 +449,7 @@ class SetSharedKeyRequest extends protobuf_1.Message {
463
449
  * @generated from field: int32 key_index = 2;
464
450
  */
465
451
  this.keyIndex = 0;
466
- protobuf_1.proto3.util.initPartial(data, this);
452
+ proto3.util.initPartial(data, this);
467
453
  }
468
454
  static fromBinary(bytes, options) {
469
455
  return new SetSharedKeyRequest().fromBinary(bytes, options);
@@ -475,23 +461,22 @@ class SetSharedKeyRequest extends protobuf_1.Message {
475
461
  return new SetSharedKeyRequest().fromJsonString(jsonString, options);
476
462
  }
477
463
  static equals(a, b) {
478
- return protobuf_1.proto3.util.equals(SetSharedKeyRequest, a, b);
464
+ return proto3.util.equals(SetSharedKeyRequest, a, b);
479
465
  }
480
466
  }
481
- exports.SetSharedKeyRequest = SetSharedKeyRequest;
482
- SetSharedKeyRequest.runtime = protobuf_1.proto3;
467
+ SetSharedKeyRequest.runtime = proto3;
483
468
  SetSharedKeyRequest.typeName = "livekit.proto.SetSharedKeyRequest";
484
- SetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
469
+ SetSharedKeyRequest.fields = proto3.util.newFieldList(() => [
485
470
  { no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
486
471
  { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
487
472
  ]);
488
473
  /**
489
474
  * @generated from message livekit.proto.SetSharedKeyResponse
490
475
  */
491
- class SetSharedKeyResponse extends protobuf_1.Message {
476
+ export class SetSharedKeyResponse extends Message {
492
477
  constructor(data) {
493
478
  super();
494
- protobuf_1.proto3.util.initPartial(data, this);
479
+ proto3.util.initPartial(data, this);
495
480
  }
496
481
  static fromBinary(bytes, options) {
497
482
  return new SetSharedKeyResponse().fromBinary(bytes, options);
@@ -503,24 +488,23 @@ class SetSharedKeyResponse extends protobuf_1.Message {
503
488
  return new SetSharedKeyResponse().fromJsonString(jsonString, options);
504
489
  }
505
490
  static equals(a, b) {
506
- return protobuf_1.proto3.util.equals(SetSharedKeyResponse, a, b);
491
+ return proto3.util.equals(SetSharedKeyResponse, a, b);
507
492
  }
508
493
  }
509
- exports.SetSharedKeyResponse = SetSharedKeyResponse;
510
- SetSharedKeyResponse.runtime = protobuf_1.proto3;
494
+ SetSharedKeyResponse.runtime = proto3;
511
495
  SetSharedKeyResponse.typeName = "livekit.proto.SetSharedKeyResponse";
512
- SetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
496
+ SetSharedKeyResponse.fields = proto3.util.newFieldList(() => []);
513
497
  /**
514
498
  * @generated from message livekit.proto.RatchetSharedKeyRequest
515
499
  */
516
- class RatchetSharedKeyRequest extends protobuf_1.Message {
500
+ export class RatchetSharedKeyRequest extends Message {
517
501
  constructor(data) {
518
502
  super();
519
503
  /**
520
504
  * @generated from field: int32 key_index = 1;
521
505
  */
522
506
  this.keyIndex = 0;
523
- protobuf_1.proto3.util.initPartial(data, this);
507
+ proto3.util.initPartial(data, this);
524
508
  }
525
509
  static fromBinary(bytes, options) {
526
510
  return new RatchetSharedKeyRequest().fromBinary(bytes, options);
@@ -532,22 +516,21 @@ class RatchetSharedKeyRequest extends protobuf_1.Message {
532
516
  return new RatchetSharedKeyRequest().fromJsonString(jsonString, options);
533
517
  }
534
518
  static equals(a, b) {
535
- return protobuf_1.proto3.util.equals(RatchetSharedKeyRequest, a, b);
519
+ return proto3.util.equals(RatchetSharedKeyRequest, a, b);
536
520
  }
537
521
  }
538
- exports.RatchetSharedKeyRequest = RatchetSharedKeyRequest;
539
- RatchetSharedKeyRequest.runtime = protobuf_1.proto3;
522
+ RatchetSharedKeyRequest.runtime = proto3;
540
523
  RatchetSharedKeyRequest.typeName = "livekit.proto.RatchetSharedKeyRequest";
541
- RatchetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
524
+ RatchetSharedKeyRequest.fields = proto3.util.newFieldList(() => [
542
525
  { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
543
526
  ]);
544
527
  /**
545
528
  * @generated from message livekit.proto.RatchetSharedKeyResponse
546
529
  */
547
- class RatchetSharedKeyResponse extends protobuf_1.Message {
530
+ export class RatchetSharedKeyResponse extends Message {
548
531
  constructor(data) {
549
532
  super();
550
- protobuf_1.proto3.util.initPartial(data, this);
533
+ proto3.util.initPartial(data, this);
551
534
  }
552
535
  static fromBinary(bytes, options) {
553
536
  return new RatchetSharedKeyResponse().fromBinary(bytes, options);
@@ -559,26 +542,25 @@ class RatchetSharedKeyResponse extends protobuf_1.Message {
559
542
  return new RatchetSharedKeyResponse().fromJsonString(jsonString, options);
560
543
  }
561
544
  static equals(a, b) {
562
- return protobuf_1.proto3.util.equals(RatchetSharedKeyResponse, a, b);
545
+ return proto3.util.equals(RatchetSharedKeyResponse, a, b);
563
546
  }
564
547
  }
565
- exports.RatchetSharedKeyResponse = RatchetSharedKeyResponse;
566
- RatchetSharedKeyResponse.runtime = protobuf_1.proto3;
548
+ RatchetSharedKeyResponse.runtime = proto3;
567
549
  RatchetSharedKeyResponse.typeName = "livekit.proto.RatchetSharedKeyResponse";
568
- RatchetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
550
+ RatchetSharedKeyResponse.fields = proto3.util.newFieldList(() => [
569
551
  { no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
570
552
  ]);
571
553
  /**
572
554
  * @generated from message livekit.proto.GetSharedKeyRequest
573
555
  */
574
- class GetSharedKeyRequest extends protobuf_1.Message {
556
+ export class GetSharedKeyRequest extends Message {
575
557
  constructor(data) {
576
558
  super();
577
559
  /**
578
560
  * @generated from field: int32 key_index = 1;
579
561
  */
580
562
  this.keyIndex = 0;
581
- protobuf_1.proto3.util.initPartial(data, this);
563
+ proto3.util.initPartial(data, this);
582
564
  }
583
565
  static fromBinary(bytes, options) {
584
566
  return new GetSharedKeyRequest().fromBinary(bytes, options);
@@ -590,22 +572,21 @@ class GetSharedKeyRequest extends protobuf_1.Message {
590
572
  return new GetSharedKeyRequest().fromJsonString(jsonString, options);
591
573
  }
592
574
  static equals(a, b) {
593
- return protobuf_1.proto3.util.equals(GetSharedKeyRequest, a, b);
575
+ return proto3.util.equals(GetSharedKeyRequest, a, b);
594
576
  }
595
577
  }
596
- exports.GetSharedKeyRequest = GetSharedKeyRequest;
597
- GetSharedKeyRequest.runtime = protobuf_1.proto3;
578
+ GetSharedKeyRequest.runtime = proto3;
598
579
  GetSharedKeyRequest.typeName = "livekit.proto.GetSharedKeyRequest";
599
- GetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
580
+ GetSharedKeyRequest.fields = proto3.util.newFieldList(() => [
600
581
  { no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
601
582
  ]);
602
583
  /**
603
584
  * @generated from message livekit.proto.GetSharedKeyResponse
604
585
  */
605
- class GetSharedKeyResponse extends protobuf_1.Message {
586
+ export class GetSharedKeyResponse extends Message {
606
587
  constructor(data) {
607
588
  super();
608
- protobuf_1.proto3.util.initPartial(data, this);
589
+ proto3.util.initPartial(data, this);
609
590
  }
610
591
  static fromBinary(bytes, options) {
611
592
  return new GetSharedKeyResponse().fromBinary(bytes, options);
@@ -617,19 +598,18 @@ class GetSharedKeyResponse extends protobuf_1.Message {
617
598
  return new GetSharedKeyResponse().fromJsonString(jsonString, options);
618
599
  }
619
600
  static equals(a, b) {
620
- return protobuf_1.proto3.util.equals(GetSharedKeyResponse, a, b);
601
+ return proto3.util.equals(GetSharedKeyResponse, a, b);
621
602
  }
622
603
  }
623
- exports.GetSharedKeyResponse = GetSharedKeyResponse;
624
- GetSharedKeyResponse.runtime = protobuf_1.proto3;
604
+ GetSharedKeyResponse.runtime = proto3;
625
605
  GetSharedKeyResponse.typeName = "livekit.proto.GetSharedKeyResponse";
626
- GetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
606
+ GetSharedKeyResponse.fields = proto3.util.newFieldList(() => [
627
607
  { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
628
608
  ]);
629
609
  /**
630
610
  * @generated from message livekit.proto.SetKeyRequest
631
611
  */
632
- class SetKeyRequest extends protobuf_1.Message {
612
+ export class SetKeyRequest extends Message {
633
613
  constructor(data) {
634
614
  super();
635
615
  /**
@@ -644,7 +624,7 @@ class SetKeyRequest extends protobuf_1.Message {
644
624
  * @generated from field: int32 key_index = 3;
645
625
  */
646
626
  this.keyIndex = 0;
647
- protobuf_1.proto3.util.initPartial(data, this);
627
+ proto3.util.initPartial(data, this);
648
628
  }
649
629
  static fromBinary(bytes, options) {
650
630
  return new SetKeyRequest().fromBinary(bytes, options);
@@ -656,13 +636,12 @@ class SetKeyRequest extends protobuf_1.Message {
656
636
  return new SetKeyRequest().fromJsonString(jsonString, options);
657
637
  }
658
638
  static equals(a, b) {
659
- return protobuf_1.proto3.util.equals(SetKeyRequest, a, b);
639
+ return proto3.util.equals(SetKeyRequest, a, b);
660
640
  }
661
641
  }
662
- exports.SetKeyRequest = SetKeyRequest;
663
- SetKeyRequest.runtime = protobuf_1.proto3;
642
+ SetKeyRequest.runtime = proto3;
664
643
  SetKeyRequest.typeName = "livekit.proto.SetKeyRequest";
665
- SetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
644
+ SetKeyRequest.fields = proto3.util.newFieldList(() => [
666
645
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
667
646
  { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
668
647
  { no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -670,10 +649,10 @@ SetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
670
649
  /**
671
650
  * @generated from message livekit.proto.SetKeyResponse
672
651
  */
673
- class SetKeyResponse extends protobuf_1.Message {
652
+ export class SetKeyResponse extends Message {
674
653
  constructor(data) {
675
654
  super();
676
- protobuf_1.proto3.util.initPartial(data, this);
655
+ proto3.util.initPartial(data, this);
677
656
  }
678
657
  static fromBinary(bytes, options) {
679
658
  return new SetKeyResponse().fromBinary(bytes, options);
@@ -685,17 +664,16 @@ class SetKeyResponse extends protobuf_1.Message {
685
664
  return new SetKeyResponse().fromJsonString(jsonString, options);
686
665
  }
687
666
  static equals(a, b) {
688
- return protobuf_1.proto3.util.equals(SetKeyResponse, a, b);
667
+ return proto3.util.equals(SetKeyResponse, a, b);
689
668
  }
690
669
  }
691
- exports.SetKeyResponse = SetKeyResponse;
692
- SetKeyResponse.runtime = protobuf_1.proto3;
670
+ SetKeyResponse.runtime = proto3;
693
671
  SetKeyResponse.typeName = "livekit.proto.SetKeyResponse";
694
- SetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
672
+ SetKeyResponse.fields = proto3.util.newFieldList(() => []);
695
673
  /**
696
674
  * @generated from message livekit.proto.RatchetKeyRequest
697
675
  */
698
- class RatchetKeyRequest extends protobuf_1.Message {
676
+ export class RatchetKeyRequest extends Message {
699
677
  constructor(data) {
700
678
  super();
701
679
  /**
@@ -706,7 +684,7 @@ class RatchetKeyRequest extends protobuf_1.Message {
706
684
  * @generated from field: int32 key_index = 2;
707
685
  */
708
686
  this.keyIndex = 0;
709
- protobuf_1.proto3.util.initPartial(data, this);
687
+ proto3.util.initPartial(data, this);
710
688
  }
711
689
  static fromBinary(bytes, options) {
712
690
  return new RatchetKeyRequest().fromBinary(bytes, options);
@@ -718,23 +696,22 @@ class RatchetKeyRequest extends protobuf_1.Message {
718
696
  return new RatchetKeyRequest().fromJsonString(jsonString, options);
719
697
  }
720
698
  static equals(a, b) {
721
- return protobuf_1.proto3.util.equals(RatchetKeyRequest, a, b);
699
+ return proto3.util.equals(RatchetKeyRequest, a, b);
722
700
  }
723
701
  }
724
- exports.RatchetKeyRequest = RatchetKeyRequest;
725
- RatchetKeyRequest.runtime = protobuf_1.proto3;
702
+ RatchetKeyRequest.runtime = proto3;
726
703
  RatchetKeyRequest.typeName = "livekit.proto.RatchetKeyRequest";
727
- RatchetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
704
+ RatchetKeyRequest.fields = proto3.util.newFieldList(() => [
728
705
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
729
706
  { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
730
707
  ]);
731
708
  /**
732
709
  * @generated from message livekit.proto.RatchetKeyResponse
733
710
  */
734
- class RatchetKeyResponse extends protobuf_1.Message {
711
+ export class RatchetKeyResponse extends Message {
735
712
  constructor(data) {
736
713
  super();
737
- protobuf_1.proto3.util.initPartial(data, this);
714
+ proto3.util.initPartial(data, this);
738
715
  }
739
716
  static fromBinary(bytes, options) {
740
717
  return new RatchetKeyResponse().fromBinary(bytes, options);
@@ -746,19 +723,18 @@ class RatchetKeyResponse extends protobuf_1.Message {
746
723
  return new RatchetKeyResponse().fromJsonString(jsonString, options);
747
724
  }
748
725
  static equals(a, b) {
749
- return protobuf_1.proto3.util.equals(RatchetKeyResponse, a, b);
726
+ return proto3.util.equals(RatchetKeyResponse, a, b);
750
727
  }
751
728
  }
752
- exports.RatchetKeyResponse = RatchetKeyResponse;
753
- RatchetKeyResponse.runtime = protobuf_1.proto3;
729
+ RatchetKeyResponse.runtime = proto3;
754
730
  RatchetKeyResponse.typeName = "livekit.proto.RatchetKeyResponse";
755
- RatchetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
731
+ RatchetKeyResponse.fields = proto3.util.newFieldList(() => [
756
732
  { no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
757
733
  ]);
758
734
  /**
759
735
  * @generated from message livekit.proto.GetKeyRequest
760
736
  */
761
- class GetKeyRequest extends protobuf_1.Message {
737
+ export class GetKeyRequest extends Message {
762
738
  constructor(data) {
763
739
  super();
764
740
  /**
@@ -769,7 +745,7 @@ class GetKeyRequest extends protobuf_1.Message {
769
745
  * @generated from field: int32 key_index = 2;
770
746
  */
771
747
  this.keyIndex = 0;
772
- protobuf_1.proto3.util.initPartial(data, this);
748
+ proto3.util.initPartial(data, this);
773
749
  }
774
750
  static fromBinary(bytes, options) {
775
751
  return new GetKeyRequest().fromBinary(bytes, options);
@@ -781,23 +757,22 @@ class GetKeyRequest extends protobuf_1.Message {
781
757
  return new GetKeyRequest().fromJsonString(jsonString, options);
782
758
  }
783
759
  static equals(a, b) {
784
- return protobuf_1.proto3.util.equals(GetKeyRequest, a, b);
760
+ return proto3.util.equals(GetKeyRequest, a, b);
785
761
  }
786
762
  }
787
- exports.GetKeyRequest = GetKeyRequest;
788
- GetKeyRequest.runtime = protobuf_1.proto3;
763
+ GetKeyRequest.runtime = proto3;
789
764
  GetKeyRequest.typeName = "livekit.proto.GetKeyRequest";
790
- GetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
765
+ GetKeyRequest.fields = proto3.util.newFieldList(() => [
791
766
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
792
767
  { no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
793
768
  ]);
794
769
  /**
795
770
  * @generated from message livekit.proto.GetKeyResponse
796
771
  */
797
- class GetKeyResponse extends protobuf_1.Message {
772
+ export class GetKeyResponse extends Message {
798
773
  constructor(data) {
799
774
  super();
800
- protobuf_1.proto3.util.initPartial(data, this);
775
+ proto3.util.initPartial(data, this);
801
776
  }
802
777
  static fromBinary(bytes, options) {
803
778
  return new GetKeyResponse().fromBinary(bytes, options);
@@ -809,30 +784,29 @@ class GetKeyResponse extends protobuf_1.Message {
809
784
  return new GetKeyResponse().fromJsonString(jsonString, options);
810
785
  }
811
786
  static equals(a, b) {
812
- return protobuf_1.proto3.util.equals(GetKeyResponse, a, b);
787
+ return proto3.util.equals(GetKeyResponse, a, b);
813
788
  }
814
789
  }
815
- exports.GetKeyResponse = GetKeyResponse;
816
- GetKeyResponse.runtime = protobuf_1.proto3;
790
+ GetKeyResponse.runtime = proto3;
817
791
  GetKeyResponse.typeName = "livekit.proto.GetKeyResponse";
818
- GetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
792
+ GetKeyResponse.fields = proto3.util.newFieldList(() => [
819
793
  { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
820
794
  ]);
821
795
  /**
822
796
  * @generated from message livekit.proto.E2eeRequest
823
797
  */
824
- class E2eeRequest extends protobuf_1.Message {
798
+ export class E2eeRequest extends Message {
825
799
  constructor(data) {
826
800
  super();
827
801
  /**
828
802
  * @generated from field: uint64 room_handle = 1;
829
803
  */
830
- this.roomHandle = protobuf_1.protoInt64.zero;
804
+ this.roomHandle = protoInt64.zero;
831
805
  /**
832
806
  * @generated from oneof livekit.proto.E2eeRequest.message
833
807
  */
834
808
  this.message = { case: undefined };
835
- protobuf_1.proto3.util.initPartial(data, this);
809
+ proto3.util.initPartial(data, this);
836
810
  }
837
811
  static fromBinary(bytes, options) {
838
812
  return new E2eeRequest().fromBinary(bytes, options);
@@ -844,13 +818,12 @@ class E2eeRequest extends protobuf_1.Message {
844
818
  return new E2eeRequest().fromJsonString(jsonString, options);
845
819
  }
846
820
  static equals(a, b) {
847
- return protobuf_1.proto3.util.equals(E2eeRequest, a, b);
821
+ return proto3.util.equals(E2eeRequest, a, b);
848
822
  }
849
823
  }
850
- exports.E2eeRequest = E2eeRequest;
851
- E2eeRequest.runtime = protobuf_1.proto3;
824
+ E2eeRequest.runtime = proto3;
852
825
  E2eeRequest.typeName = "livekit.proto.E2eeRequest";
853
- E2eeRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
826
+ E2eeRequest.fields = proto3.util.newFieldList(() => [
854
827
  { no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
855
828
  { no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" },
856
829
  { no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" },
@@ -866,14 +839,14 @@ E2eeRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
866
839
  /**
867
840
  * @generated from message livekit.proto.E2eeResponse
868
841
  */
869
- class E2eeResponse extends protobuf_1.Message {
842
+ export class E2eeResponse extends Message {
870
843
  constructor(data) {
871
844
  super();
872
845
  /**
873
846
  * @generated from oneof livekit.proto.E2eeResponse.message
874
847
  */
875
848
  this.message = { case: undefined };
876
- protobuf_1.proto3.util.initPartial(data, this);
849
+ proto3.util.initPartial(data, this);
877
850
  }
878
851
  static fromBinary(bytes, options) {
879
852
  return new E2eeResponse().fromBinary(bytes, options);
@@ -885,13 +858,12 @@ class E2eeResponse extends protobuf_1.Message {
885
858
  return new E2eeResponse().fromJsonString(jsonString, options);
886
859
  }
887
860
  static equals(a, b) {
888
- return protobuf_1.proto3.util.equals(E2eeResponse, a, b);
861
+ return proto3.util.equals(E2eeResponse, a, b);
889
862
  }
890
863
  }
891
- exports.E2eeResponse = E2eeResponse;
892
- E2eeResponse.runtime = protobuf_1.proto3;
864
+ E2eeResponse.runtime = proto3;
893
865
  E2eeResponse.typeName = "livekit.proto.E2eeResponse";
894
- E2eeResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
866
+ E2eeResponse.fields = proto3.util.newFieldList(() => [
895
867
  { no: 1, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledResponse, oneof: "message" },
896
868
  { no: 2, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsResponse, oneof: "message" },
897
869
  { no: 3, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledResponse, oneof: "message" },