@livekit/rtc-node 0.13.23 → 0.13.25

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 (290) hide show
  1. package/dist/audio_filter.cjs +2 -2
  2. package/dist/audio_filter.cjs.map +1 -1
  3. package/dist/audio_filter.js +1 -1
  4. package/dist/audio_filter.js.map +1 -1
  5. package/dist/audio_frame.cjs +11 -7
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +3 -8
  8. package/dist/audio_frame.d.ts +3 -8
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +10 -6
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +11 -4
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +1 -6
  15. package/dist/audio_mixer.d.ts +1 -6
  16. package/dist/audio_mixer.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +11 -4
  18. package/dist/audio_mixer.js.map +1 -1
  19. package/dist/audio_resampler.cjs +20 -12
  20. package/dist/audio_resampler.cjs.map +1 -1
  21. package/dist/audio_resampler.d.cts +6 -6
  22. package/dist/audio_resampler.d.ts +6 -6
  23. package/dist/audio_resampler.d.ts.map +1 -1
  24. package/dist/audio_resampler.js +12 -4
  25. package/dist/audio_resampler.js.map +1 -1
  26. package/dist/audio_source.cjs +11 -7
  27. package/dist/audio_source.cjs.map +1 -1
  28. package/dist/audio_source.d.cts +1 -7
  29. package/dist/audio_source.d.ts +1 -7
  30. package/dist/audio_source.d.ts.map +1 -1
  31. package/dist/audio_source.js +8 -3
  32. package/dist/audio_source.js.map +1 -1
  33. package/dist/audio_stream.cjs +17 -5
  34. package/dist/audio_stream.cjs.map +1 -1
  35. package/dist/audio_stream.d.cts +1 -14
  36. package/dist/audio_stream.d.ts +1 -14
  37. package/dist/audio_stream.d.ts.map +1 -1
  38. package/dist/audio_stream.js +16 -4
  39. package/dist/audio_stream.js.map +1 -1
  40. package/dist/data_streams/index.d.cts +2 -10
  41. package/dist/data_streams/index.d.ts +2 -10
  42. package/dist/data_streams/stream_reader.cjs +8 -0
  43. package/dist/data_streams/stream_reader.cjs.map +1 -1
  44. package/dist/data_streams/stream_reader.d.cts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts +2 -10
  46. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  47. package/dist/data_streams/stream_reader.js +8 -0
  48. package/dist/data_streams/stream_reader.js.map +1 -1
  49. package/dist/data_streams/stream_writer.d.cts +2 -10
  50. package/dist/data_streams/stream_writer.d.ts +2 -10
  51. package/dist/data_streams/types.cjs.map +1 -1
  52. package/dist/data_streams/types.d.cts +2 -10
  53. package/dist/data_streams/types.d.ts +2 -10
  54. package/dist/data_streams/types.d.ts.map +1 -1
  55. package/dist/e2ee.cjs +21 -21
  56. package/dist/e2ee.cjs.map +1 -1
  57. package/dist/e2ee.d.cts +1 -2
  58. package/dist/e2ee.d.ts +1 -2
  59. package/dist/e2ee.d.ts.map +1 -1
  60. package/dist/e2ee.js +2 -2
  61. package/dist/e2ee.js.map +1 -1
  62. package/dist/ffi_client.cjs +11 -12
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +3 -16
  65. package/dist/ffi_client.d.ts +3 -16
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +5 -3
  68. package/dist/ffi_client.js.map +1 -1
  69. package/dist/frame_processor.cjs +13 -2
  70. package/dist/frame_processor.cjs.map +1 -1
  71. package/dist/frame_processor.d.cts +5 -8
  72. package/dist/frame_processor.d.ts +5 -8
  73. package/dist/frame_processor.d.ts.map +1 -1
  74. package/dist/frame_processor.js +10 -1
  75. package/dist/frame_processor.js.map +1 -1
  76. package/dist/index.cjs +25 -23
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +3 -16
  79. package/dist/index.d.ts +3 -16
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +9 -7
  82. package/dist/index.js.map +1 -1
  83. package/dist/log.cjs +1 -10
  84. package/dist/log.cjs.map +1 -1
  85. package/dist/log.d.cts +4 -0
  86. package/dist/log.d.ts +4 -0
  87. package/dist/log.d.ts.map +1 -1
  88. package/dist/log.js +1 -10
  89. package/dist/log.js.map +1 -1
  90. package/dist/participant.cjs +38 -38
  91. package/dist/participant.cjs.map +1 -1
  92. package/dist/participant.d.cts +2 -15
  93. package/dist/participant.d.ts +2 -15
  94. package/dist/participant.d.ts.map +1 -1
  95. package/dist/participant.js +12 -12
  96. package/dist/participant.js.map +1 -1
  97. package/dist/room.cjs +48 -30
  98. package/dist/room.cjs.map +1 -1
  99. package/dist/room.d.cts +11 -16
  100. package/dist/room.d.ts +11 -16
  101. package/dist/room.d.ts.map +1 -1
  102. package/dist/room.js +44 -26
  103. package/dist/room.js.map +1 -1
  104. package/dist/rpc.cjs.map +1 -1
  105. package/dist/rpc.d.cts +1 -2
  106. package/dist/rpc.d.ts +1 -2
  107. package/dist/rpc.d.ts.map +1 -1
  108. package/dist/rpc.js.map +1 -1
  109. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  110. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  111. package/dist/track.cjs +3 -3
  112. package/dist/track.cjs.map +1 -1
  113. package/dist/track.d.cts +1 -14
  114. package/dist/track.d.ts +1 -14
  115. package/dist/track.d.ts.map +1 -1
  116. package/dist/track.js +1 -1
  117. package/dist/track.js.map +1 -1
  118. package/dist/track_publication.cjs +4 -4
  119. package/dist/track_publication.cjs.map +1 -1
  120. package/dist/track_publication.d.cts +1 -14
  121. package/dist/track_publication.d.ts +1 -14
  122. package/dist/track_publication.d.ts.map +1 -1
  123. package/dist/track_publication.js +2 -2
  124. package/dist/track_publication.js.map +1 -1
  125. package/dist/version.cjs +1 -1
  126. package/dist/version.cjs.map +1 -1
  127. package/dist/version.d.cts +1 -1
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/dist/version.js.map +1 -1
  131. package/dist/video_frame.cjs +42 -42
  132. package/dist/video_frame.cjs.map +1 -1
  133. package/dist/video_frame.d.cts +1 -6
  134. package/dist/video_frame.d.ts +1 -6
  135. package/dist/video_frame.d.ts.map +1 -1
  136. package/dist/video_frame.js +2 -2
  137. package/dist/video_frame.js.map +1 -1
  138. package/dist/video_source.cjs +5 -5
  139. package/dist/video_source.cjs.map +1 -1
  140. package/dist/video_source.d.cts +1 -14
  141. package/dist/video_source.d.ts +1 -14
  142. package/dist/video_source.d.ts.map +1 -1
  143. package/dist/video_source.js +2 -2
  144. package/dist/video_source.js.map +1 -1
  145. package/dist/video_stream.cjs +12 -4
  146. package/dist/video_stream.cjs.map +1 -1
  147. package/dist/video_stream.d.cts +1 -14
  148. package/dist/video_stream.d.ts +1 -14
  149. package/dist/video_stream.d.ts.map +1 -1
  150. package/dist/video_stream.js +10 -2
  151. package/dist/video_stream.js.map +1 -1
  152. package/package.json +9 -35
  153. package/src/audio_filter.ts +2 -2
  154. package/src/audio_frame.ts +26 -7
  155. package/src/audio_mixer.ts +15 -4
  156. package/src/audio_resampler.ts +14 -4
  157. package/src/audio_source.ts +13 -5
  158. package/src/audio_stream.ts +21 -5
  159. package/src/data_streams/stream_reader.ts +19 -1
  160. package/src/data_streams/types.ts +1 -1
  161. package/src/e2ee.ts +3 -3
  162. package/src/ffi_client.ts +7 -5
  163. package/src/frame_processor.ts +21 -0
  164. package/src/index.ts +6 -5
  165. package/src/log.ts +14 -10
  166. package/src/participant.ts +17 -17
  167. package/src/room.ts +65 -38
  168. package/src/rpc.ts +1 -1
  169. package/src/tests/e2e.test.ts +517 -0
  170. package/src/track.ts +4 -4
  171. package/src/track_publication.ts +6 -6
  172. package/src/version.ts +1 -1
  173. package/src/video_frame.ts +3 -3
  174. package/src/video_source.ts +3 -3
  175. package/src/video_stream.ts +15 -3
  176. package/Cargo.toml +0 -25
  177. package/build.rs +0 -9
  178. package/dist/napi/native.cjs +0 -301
  179. package/dist/napi/native.d.cjs +0 -17
  180. package/dist/napi/native.d.cjs.map +0 -1
  181. package/dist/napi/native.d.d.cts +0 -21
  182. package/dist/napi/native.d.d.ts +0 -21
  183. package/dist/napi/native.d.js +0 -1
  184. package/dist/napi/native.d.js.map +0 -1
  185. package/dist/napi/native.d.ts +0 -19
  186. package/dist/napi/native.js +0 -15
  187. package/dist/native.cjs +0 -301
  188. package/dist/native.d.ts +0 -19
  189. package/dist/native.js +0 -15
  190. package/dist/proto/audio_frame_pb.cjs +0 -1357
  191. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  192. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  193. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  194. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  195. package/dist/proto/audio_frame_pb.js +0 -1283
  196. package/dist/proto/audio_frame_pb.js.map +0 -1
  197. package/dist/proto/data_stream_pb.cjs +0 -1638
  198. package/dist/proto/data_stream_pb.cjs.map +0 -1
  199. package/dist/proto/data_stream_pb.d.cts +0 -1449
  200. package/dist/proto/data_stream_pb.d.ts +0 -1449
  201. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  202. package/dist/proto/data_stream_pb.js +0 -1559
  203. package/dist/proto/data_stream_pb.js.map +0 -1
  204. package/dist/proto/e2ee_pb.cjs +0 -746
  205. package/dist/proto/e2ee_pb.cjs.map +0 -1
  206. package/dist/proto/e2ee_pb.d.cts +0 -653
  207. package/dist/proto/e2ee_pb.d.ts +0 -653
  208. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  209. package/dist/proto/e2ee_pb.js +0 -696
  210. package/dist/proto/e2ee_pb.js.map +0 -1
  211. package/dist/proto/ffi_pb.cjs +0 -477
  212. package/dist/proto/ffi_pb.cjs.map +0 -1
  213. package/dist/proto/ffi_pb.d.cts +0 -1321
  214. package/dist/proto/ffi_pb.d.ts +0 -1321
  215. package/dist/proto/ffi_pb.d.ts.map +0 -1
  216. package/dist/proto/ffi_pb.js +0 -444
  217. package/dist/proto/ffi_pb.js.map +0 -1
  218. package/dist/proto/handle_pb.cjs +0 -53
  219. package/dist/proto/handle_pb.cjs.map +0 -1
  220. package/dist/proto/handle_pb.d.cts +0 -31
  221. package/dist/proto/handle_pb.d.ts +0 -31
  222. package/dist/proto/handle_pb.d.ts.map +0 -1
  223. package/dist/proto/handle_pb.js +0 -29
  224. package/dist/proto/handle_pb.js.map +0 -1
  225. package/dist/proto/participant_pb.cjs +0 -173
  226. package/dist/proto/participant_pb.cjs.map +0 -1
  227. package/dist/proto/participant_pb.d.cts +0 -218
  228. package/dist/proto/participant_pb.d.ts +0 -218
  229. package/dist/proto/participant_pb.d.ts.map +0 -1
  230. package/dist/proto/participant_pb.js +0 -145
  231. package/dist/proto/participant_pb.js.map +0 -1
  232. package/dist/proto/room_pb.cjs +0 -3374
  233. package/dist/proto/room_pb.cjs.map +0 -1
  234. package/dist/proto/room_pb.d.cts +0 -3028
  235. package/dist/proto/room_pb.d.ts +0 -3028
  236. package/dist/proto/room_pb.d.ts.map +0 -1
  237. package/dist/proto/room_pb.js +0 -3232
  238. package/dist/proto/room_pb.js.map +0 -1
  239. package/dist/proto/rpc_pb.cjs +0 -328
  240. package/dist/proto/rpc_pb.cjs.map +0 -1
  241. package/dist/proto/rpc_pb.d.cts +0 -267
  242. package/dist/proto/rpc_pb.d.ts +0 -267
  243. package/dist/proto/rpc_pb.d.ts.map +0 -1
  244. package/dist/proto/rpc_pb.js +0 -294
  245. package/dist/proto/rpc_pb.js.map +0 -1
  246. package/dist/proto/stats_pb.cjs +0 -1370
  247. package/dist/proto/stats_pb.cjs.map +0 -1
  248. package/dist/proto/stats_pb.d.cts +0 -1764
  249. package/dist/proto/stats_pb.d.ts +0 -1764
  250. package/dist/proto/stats_pb.d.ts.map +0 -1
  251. package/dist/proto/stats_pb.js +0 -1300
  252. package/dist/proto/stats_pb.js.map +0 -1
  253. package/dist/proto/track_pb.cjs +0 -630
  254. package/dist/proto/track_pb.cjs.map +0 -1
  255. package/dist/proto/track_pb.d.cts +0 -542
  256. package/dist/proto/track_pb.d.ts +0 -542
  257. package/dist/proto/track_pb.d.ts.map +0 -1
  258. package/dist/proto/track_pb.js +0 -584
  259. package/dist/proto/track_pb.js.map +0 -1
  260. package/dist/proto/track_publication_pb.cjs +0 -194
  261. package/dist/proto/track_publication_pb.cjs.map +0 -1
  262. package/dist/proto/track_publication_pb.d.cts +0 -135
  263. package/dist/proto/track_publication_pb.d.ts +0 -135
  264. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  265. package/dist/proto/track_publication_pb.js +0 -164
  266. package/dist/proto/track_publication_pb.js.map +0 -1
  267. package/dist/proto/video_frame_pb.cjs +0 -723
  268. package/dist/proto/video_frame_pb.cjs.map +0 -1
  269. package/dist/proto/video_frame_pb.d.cts +0 -667
  270. package/dist/proto/video_frame_pb.d.ts +0 -667
  271. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  272. package/dist/proto/video_frame_pb.js +0 -673
  273. package/dist/proto/video_frame_pb.js.map +0 -1
  274. package/src/lib.rs +0 -9
  275. package/src/napi/native.cjs +0 -301
  276. package/src/napi/native.d.ts +0 -19
  277. package/src/napi/native.js +0 -15
  278. package/src/nodejs.rs +0 -134
  279. package/src/proto/audio_frame_pb.ts +0 -2270
  280. package/src/proto/data_stream_pb.ts +0 -2674
  281. package/src/proto/e2ee_pb.ts +0 -1231
  282. package/src/proto/ffi_pb.ts +0 -1700
  283. package/src/proto/handle_pb.ts +0 -69
  284. package/src/proto/participant_pb.ts +0 -351
  285. package/src/proto/room_pb.ts +0 -5661
  286. package/src/proto/rpc_pb.ts +0 -539
  287. package/src/proto/stats_pb.ts +0 -3050
  288. package/src/proto/track_pb.ts +0 -1040
  289. package/src/proto/track_publication_pb.ts +0 -284
  290. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,696 +0,0 @@
1
- import { Message, proto2 } from "@bufbuild/protobuf";
2
- var EncryptionType = /* @__PURE__ */ ((EncryptionType2) => {
3
- EncryptionType2[EncryptionType2["NONE"] = 0] = "NONE";
4
- EncryptionType2[EncryptionType2["GCM"] = 1] = "GCM";
5
- EncryptionType2[EncryptionType2["CUSTOM"] = 2] = "CUSTOM";
6
- return EncryptionType2;
7
- })(EncryptionType || {});
8
- proto2.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
9
- { no: 0, name: "NONE" },
10
- { no: 1, name: "GCM" },
11
- { no: 2, name: "CUSTOM" }
12
- ]);
13
- var EncryptionState = /* @__PURE__ */ ((EncryptionState2) => {
14
- EncryptionState2[EncryptionState2["NEW"] = 0] = "NEW";
15
- EncryptionState2[EncryptionState2["OK"] = 1] = "OK";
16
- EncryptionState2[EncryptionState2["ENCRYPTION_FAILED"] = 2] = "ENCRYPTION_FAILED";
17
- EncryptionState2[EncryptionState2["DECRYPTION_FAILED"] = 3] = "DECRYPTION_FAILED";
18
- EncryptionState2[EncryptionState2["MISSING_KEY"] = 4] = "MISSING_KEY";
19
- EncryptionState2[EncryptionState2["KEY_RATCHETED"] = 5] = "KEY_RATCHETED";
20
- EncryptionState2[EncryptionState2["INTERNAL_ERROR"] = 6] = "INTERNAL_ERROR";
21
- return EncryptionState2;
22
- })(EncryptionState || {});
23
- proto2.util.setEnumType(EncryptionState, "livekit.proto.EncryptionState", [
24
- { no: 0, name: "NEW" },
25
- { no: 1, name: "OK" },
26
- { no: 2, name: "ENCRYPTION_FAILED" },
27
- { no: 3, name: "DECRYPTION_FAILED" },
28
- { no: 4, name: "MISSING_KEY" },
29
- { no: 5, name: "KEY_RATCHETED" },
30
- { no: 6, name: "INTERNAL_ERROR" }
31
- ]);
32
- const _FrameCryptor = class _FrameCryptor extends Message {
33
- constructor(data) {
34
- super();
35
- proto2.util.initPartial(data, this);
36
- }
37
- static fromBinary(bytes, options) {
38
- return new _FrameCryptor().fromBinary(bytes, options);
39
- }
40
- static fromJson(jsonValue, options) {
41
- return new _FrameCryptor().fromJson(jsonValue, options);
42
- }
43
- static fromJsonString(jsonString, options) {
44
- return new _FrameCryptor().fromJsonString(jsonString, options);
45
- }
46
- static equals(a, b) {
47
- return proto2.util.equals(_FrameCryptor, a, b);
48
- }
49
- };
50
- _FrameCryptor.runtime = proto2;
51
- _FrameCryptor.typeName = "livekit.proto.FrameCryptor";
52
- _FrameCryptor.fields = proto2.util.newFieldList(() => [
53
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
54
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
55
- { no: 3, name: "key_index", kind: "scalar", T: 5, req: true },
56
- { no: 4, name: "enabled", kind: "scalar", T: 8, req: true }
57
- ]);
58
- let FrameCryptor = _FrameCryptor;
59
- const _KeyProviderOptions = class _KeyProviderOptions extends Message {
60
- constructor(data) {
61
- super();
62
- proto2.util.initPartial(data, this);
63
- }
64
- static fromBinary(bytes, options) {
65
- return new _KeyProviderOptions().fromBinary(bytes, options);
66
- }
67
- static fromJson(jsonValue, options) {
68
- return new _KeyProviderOptions().fromJson(jsonValue, options);
69
- }
70
- static fromJsonString(jsonString, options) {
71
- return new _KeyProviderOptions().fromJsonString(jsonString, options);
72
- }
73
- static equals(a, b) {
74
- return proto2.util.equals(_KeyProviderOptions, a, b);
75
- }
76
- };
77
- _KeyProviderOptions.runtime = proto2;
78
- _KeyProviderOptions.typeName = "livekit.proto.KeyProviderOptions";
79
- _KeyProviderOptions.fields = proto2.util.newFieldList(() => [
80
- { no: 1, name: "shared_key", kind: "scalar", T: 12, opt: true },
81
- { no: 2, name: "ratchet_window_size", kind: "scalar", T: 5, req: true },
82
- { no: 3, name: "ratchet_salt", kind: "scalar", T: 12, req: true },
83
- { no: 4, name: "failure_tolerance", kind: "scalar", T: 5, req: true }
84
- ]);
85
- let KeyProviderOptions = _KeyProviderOptions;
86
- const _E2eeOptions = class _E2eeOptions extends Message {
87
- constructor(data) {
88
- super();
89
- proto2.util.initPartial(data, this);
90
- }
91
- static fromBinary(bytes, options) {
92
- return new _E2eeOptions().fromBinary(bytes, options);
93
- }
94
- static fromJson(jsonValue, options) {
95
- return new _E2eeOptions().fromJson(jsonValue, options);
96
- }
97
- static fromJsonString(jsonString, options) {
98
- return new _E2eeOptions().fromJsonString(jsonString, options);
99
- }
100
- static equals(a, b) {
101
- return proto2.util.equals(_E2eeOptions, a, b);
102
- }
103
- };
104
- _E2eeOptions.runtime = proto2;
105
- _E2eeOptions.typeName = "livekit.proto.E2eeOptions";
106
- _E2eeOptions.fields = proto2.util.newFieldList(() => [
107
- { no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true },
108
- { no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions, req: true }
109
- ]);
110
- let E2eeOptions = _E2eeOptions;
111
- const _E2eeManagerSetEnabledRequest = class _E2eeManagerSetEnabledRequest extends Message {
112
- constructor(data) {
113
- super();
114
- proto2.util.initPartial(data, this);
115
- }
116
- static fromBinary(bytes, options) {
117
- return new _E2eeManagerSetEnabledRequest().fromBinary(bytes, options);
118
- }
119
- static fromJson(jsonValue, options) {
120
- return new _E2eeManagerSetEnabledRequest().fromJson(jsonValue, options);
121
- }
122
- static fromJsonString(jsonString, options) {
123
- return new _E2eeManagerSetEnabledRequest().fromJsonString(jsonString, options);
124
- }
125
- static equals(a, b) {
126
- return proto2.util.equals(_E2eeManagerSetEnabledRequest, a, b);
127
- }
128
- };
129
- _E2eeManagerSetEnabledRequest.runtime = proto2;
130
- _E2eeManagerSetEnabledRequest.typeName = "livekit.proto.E2eeManagerSetEnabledRequest";
131
- _E2eeManagerSetEnabledRequest.fields = proto2.util.newFieldList(() => [
132
- { no: 1, name: "enabled", kind: "scalar", T: 8, req: true }
133
- ]);
134
- let E2eeManagerSetEnabledRequest = _E2eeManagerSetEnabledRequest;
135
- const _E2eeManagerSetEnabledResponse = class _E2eeManagerSetEnabledResponse extends Message {
136
- constructor(data) {
137
- super();
138
- proto2.util.initPartial(data, this);
139
- }
140
- static fromBinary(bytes, options) {
141
- return new _E2eeManagerSetEnabledResponse().fromBinary(bytes, options);
142
- }
143
- static fromJson(jsonValue, options) {
144
- return new _E2eeManagerSetEnabledResponse().fromJson(jsonValue, options);
145
- }
146
- static fromJsonString(jsonString, options) {
147
- return new _E2eeManagerSetEnabledResponse().fromJsonString(jsonString, options);
148
- }
149
- static equals(a, b) {
150
- return proto2.util.equals(_E2eeManagerSetEnabledResponse, a, b);
151
- }
152
- };
153
- _E2eeManagerSetEnabledResponse.runtime = proto2;
154
- _E2eeManagerSetEnabledResponse.typeName = "livekit.proto.E2eeManagerSetEnabledResponse";
155
- _E2eeManagerSetEnabledResponse.fields = proto2.util.newFieldList(() => []);
156
- let E2eeManagerSetEnabledResponse = _E2eeManagerSetEnabledResponse;
157
- const _E2eeManagerGetFrameCryptorsRequest = class _E2eeManagerGetFrameCryptorsRequest extends Message {
158
- constructor(data) {
159
- super();
160
- proto2.util.initPartial(data, this);
161
- }
162
- static fromBinary(bytes, options) {
163
- return new _E2eeManagerGetFrameCryptorsRequest().fromBinary(bytes, options);
164
- }
165
- static fromJson(jsonValue, options) {
166
- return new _E2eeManagerGetFrameCryptorsRequest().fromJson(jsonValue, options);
167
- }
168
- static fromJsonString(jsonString, options) {
169
- return new _E2eeManagerGetFrameCryptorsRequest().fromJsonString(jsonString, options);
170
- }
171
- static equals(a, b) {
172
- return proto2.util.equals(_E2eeManagerGetFrameCryptorsRequest, a, b);
173
- }
174
- };
175
- _E2eeManagerGetFrameCryptorsRequest.runtime = proto2;
176
- _E2eeManagerGetFrameCryptorsRequest.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsRequest";
177
- _E2eeManagerGetFrameCryptorsRequest.fields = proto2.util.newFieldList(() => []);
178
- let E2eeManagerGetFrameCryptorsRequest = _E2eeManagerGetFrameCryptorsRequest;
179
- const _E2eeManagerGetFrameCryptorsResponse = class _E2eeManagerGetFrameCryptorsResponse extends Message {
180
- constructor(data) {
181
- super();
182
- /**
183
- * @generated from field: repeated livekit.proto.FrameCryptor frame_cryptors = 1;
184
- */
185
- this.frameCryptors = [];
186
- proto2.util.initPartial(data, this);
187
- }
188
- static fromBinary(bytes, options) {
189
- return new _E2eeManagerGetFrameCryptorsResponse().fromBinary(bytes, options);
190
- }
191
- static fromJson(jsonValue, options) {
192
- return new _E2eeManagerGetFrameCryptorsResponse().fromJson(jsonValue, options);
193
- }
194
- static fromJsonString(jsonString, options) {
195
- return new _E2eeManagerGetFrameCryptorsResponse().fromJsonString(jsonString, options);
196
- }
197
- static equals(a, b) {
198
- return proto2.util.equals(_E2eeManagerGetFrameCryptorsResponse, a, b);
199
- }
200
- };
201
- _E2eeManagerGetFrameCryptorsResponse.runtime = proto2;
202
- _E2eeManagerGetFrameCryptorsResponse.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsResponse";
203
- _E2eeManagerGetFrameCryptorsResponse.fields = proto2.util.newFieldList(() => [
204
- { no: 1, name: "frame_cryptors", kind: "message", T: FrameCryptor, repeated: true }
205
- ]);
206
- let E2eeManagerGetFrameCryptorsResponse = _E2eeManagerGetFrameCryptorsResponse;
207
- const _FrameCryptorSetEnabledRequest = class _FrameCryptorSetEnabledRequest extends Message {
208
- constructor(data) {
209
- super();
210
- proto2.util.initPartial(data, this);
211
- }
212
- static fromBinary(bytes, options) {
213
- return new _FrameCryptorSetEnabledRequest().fromBinary(bytes, options);
214
- }
215
- static fromJson(jsonValue, options) {
216
- return new _FrameCryptorSetEnabledRequest().fromJson(jsonValue, options);
217
- }
218
- static fromJsonString(jsonString, options) {
219
- return new _FrameCryptorSetEnabledRequest().fromJsonString(jsonString, options);
220
- }
221
- static equals(a, b) {
222
- return proto2.util.equals(_FrameCryptorSetEnabledRequest, a, b);
223
- }
224
- };
225
- _FrameCryptorSetEnabledRequest.runtime = proto2;
226
- _FrameCryptorSetEnabledRequest.typeName = "livekit.proto.FrameCryptorSetEnabledRequest";
227
- _FrameCryptorSetEnabledRequest.fields = proto2.util.newFieldList(() => [
228
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
229
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
230
- { no: 3, name: "enabled", kind: "scalar", T: 8, req: true }
231
- ]);
232
- let FrameCryptorSetEnabledRequest = _FrameCryptorSetEnabledRequest;
233
- const _FrameCryptorSetEnabledResponse = class _FrameCryptorSetEnabledResponse extends Message {
234
- constructor(data) {
235
- super();
236
- proto2.util.initPartial(data, this);
237
- }
238
- static fromBinary(bytes, options) {
239
- return new _FrameCryptorSetEnabledResponse().fromBinary(bytes, options);
240
- }
241
- static fromJson(jsonValue, options) {
242
- return new _FrameCryptorSetEnabledResponse().fromJson(jsonValue, options);
243
- }
244
- static fromJsonString(jsonString, options) {
245
- return new _FrameCryptorSetEnabledResponse().fromJsonString(jsonString, options);
246
- }
247
- static equals(a, b) {
248
- return proto2.util.equals(_FrameCryptorSetEnabledResponse, a, b);
249
- }
250
- };
251
- _FrameCryptorSetEnabledResponse.runtime = proto2;
252
- _FrameCryptorSetEnabledResponse.typeName = "livekit.proto.FrameCryptorSetEnabledResponse";
253
- _FrameCryptorSetEnabledResponse.fields = proto2.util.newFieldList(() => []);
254
- let FrameCryptorSetEnabledResponse = _FrameCryptorSetEnabledResponse;
255
- const _FrameCryptorSetKeyIndexRequest = class _FrameCryptorSetKeyIndexRequest extends Message {
256
- constructor(data) {
257
- super();
258
- proto2.util.initPartial(data, this);
259
- }
260
- static fromBinary(bytes, options) {
261
- return new _FrameCryptorSetKeyIndexRequest().fromBinary(bytes, options);
262
- }
263
- static fromJson(jsonValue, options) {
264
- return new _FrameCryptorSetKeyIndexRequest().fromJson(jsonValue, options);
265
- }
266
- static fromJsonString(jsonString, options) {
267
- return new _FrameCryptorSetKeyIndexRequest().fromJsonString(jsonString, options);
268
- }
269
- static equals(a, b) {
270
- return proto2.util.equals(_FrameCryptorSetKeyIndexRequest, a, b);
271
- }
272
- };
273
- _FrameCryptorSetKeyIndexRequest.runtime = proto2;
274
- _FrameCryptorSetKeyIndexRequest.typeName = "livekit.proto.FrameCryptorSetKeyIndexRequest";
275
- _FrameCryptorSetKeyIndexRequest.fields = proto2.util.newFieldList(() => [
276
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
277
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
278
- { no: 3, name: "key_index", kind: "scalar", T: 5, req: true }
279
- ]);
280
- let FrameCryptorSetKeyIndexRequest = _FrameCryptorSetKeyIndexRequest;
281
- const _FrameCryptorSetKeyIndexResponse = class _FrameCryptorSetKeyIndexResponse extends Message {
282
- constructor(data) {
283
- super();
284
- proto2.util.initPartial(data, this);
285
- }
286
- static fromBinary(bytes, options) {
287
- return new _FrameCryptorSetKeyIndexResponse().fromBinary(bytes, options);
288
- }
289
- static fromJson(jsonValue, options) {
290
- return new _FrameCryptorSetKeyIndexResponse().fromJson(jsonValue, options);
291
- }
292
- static fromJsonString(jsonString, options) {
293
- return new _FrameCryptorSetKeyIndexResponse().fromJsonString(jsonString, options);
294
- }
295
- static equals(a, b) {
296
- return proto2.util.equals(_FrameCryptorSetKeyIndexResponse, a, b);
297
- }
298
- };
299
- _FrameCryptorSetKeyIndexResponse.runtime = proto2;
300
- _FrameCryptorSetKeyIndexResponse.typeName = "livekit.proto.FrameCryptorSetKeyIndexResponse";
301
- _FrameCryptorSetKeyIndexResponse.fields = proto2.util.newFieldList(() => []);
302
- let FrameCryptorSetKeyIndexResponse = _FrameCryptorSetKeyIndexResponse;
303
- const _SetSharedKeyRequest = class _SetSharedKeyRequest extends Message {
304
- constructor(data) {
305
- super();
306
- proto2.util.initPartial(data, this);
307
- }
308
- static fromBinary(bytes, options) {
309
- return new _SetSharedKeyRequest().fromBinary(bytes, options);
310
- }
311
- static fromJson(jsonValue, options) {
312
- return new _SetSharedKeyRequest().fromJson(jsonValue, options);
313
- }
314
- static fromJsonString(jsonString, options) {
315
- return new _SetSharedKeyRequest().fromJsonString(jsonString, options);
316
- }
317
- static equals(a, b) {
318
- return proto2.util.equals(_SetSharedKeyRequest, a, b);
319
- }
320
- };
321
- _SetSharedKeyRequest.runtime = proto2;
322
- _SetSharedKeyRequest.typeName = "livekit.proto.SetSharedKeyRequest";
323
- _SetSharedKeyRequest.fields = proto2.util.newFieldList(() => [
324
- { no: 1, name: "shared_key", kind: "scalar", T: 12, req: true },
325
- { no: 2, name: "key_index", kind: "scalar", T: 5, req: true }
326
- ]);
327
- let SetSharedKeyRequest = _SetSharedKeyRequest;
328
- const _SetSharedKeyResponse = class _SetSharedKeyResponse extends Message {
329
- constructor(data) {
330
- super();
331
- proto2.util.initPartial(data, this);
332
- }
333
- static fromBinary(bytes, options) {
334
- return new _SetSharedKeyResponse().fromBinary(bytes, options);
335
- }
336
- static fromJson(jsonValue, options) {
337
- return new _SetSharedKeyResponse().fromJson(jsonValue, options);
338
- }
339
- static fromJsonString(jsonString, options) {
340
- return new _SetSharedKeyResponse().fromJsonString(jsonString, options);
341
- }
342
- static equals(a, b) {
343
- return proto2.util.equals(_SetSharedKeyResponse, a, b);
344
- }
345
- };
346
- _SetSharedKeyResponse.runtime = proto2;
347
- _SetSharedKeyResponse.typeName = "livekit.proto.SetSharedKeyResponse";
348
- _SetSharedKeyResponse.fields = proto2.util.newFieldList(() => []);
349
- let SetSharedKeyResponse = _SetSharedKeyResponse;
350
- const _RatchetSharedKeyRequest = class _RatchetSharedKeyRequest extends Message {
351
- constructor(data) {
352
- super();
353
- proto2.util.initPartial(data, this);
354
- }
355
- static fromBinary(bytes, options) {
356
- return new _RatchetSharedKeyRequest().fromBinary(bytes, options);
357
- }
358
- static fromJson(jsonValue, options) {
359
- return new _RatchetSharedKeyRequest().fromJson(jsonValue, options);
360
- }
361
- static fromJsonString(jsonString, options) {
362
- return new _RatchetSharedKeyRequest().fromJsonString(jsonString, options);
363
- }
364
- static equals(a, b) {
365
- return proto2.util.equals(_RatchetSharedKeyRequest, a, b);
366
- }
367
- };
368
- _RatchetSharedKeyRequest.runtime = proto2;
369
- _RatchetSharedKeyRequest.typeName = "livekit.proto.RatchetSharedKeyRequest";
370
- _RatchetSharedKeyRequest.fields = proto2.util.newFieldList(() => [
371
- { no: 1, name: "key_index", kind: "scalar", T: 5, req: true }
372
- ]);
373
- let RatchetSharedKeyRequest = _RatchetSharedKeyRequest;
374
- const _RatchetSharedKeyResponse = class _RatchetSharedKeyResponse extends Message {
375
- constructor(data) {
376
- super();
377
- proto2.util.initPartial(data, this);
378
- }
379
- static fromBinary(bytes, options) {
380
- return new _RatchetSharedKeyResponse().fromBinary(bytes, options);
381
- }
382
- static fromJson(jsonValue, options) {
383
- return new _RatchetSharedKeyResponse().fromJson(jsonValue, options);
384
- }
385
- static fromJsonString(jsonString, options) {
386
- return new _RatchetSharedKeyResponse().fromJsonString(jsonString, options);
387
- }
388
- static equals(a, b) {
389
- return proto2.util.equals(_RatchetSharedKeyResponse, a, b);
390
- }
391
- };
392
- _RatchetSharedKeyResponse.runtime = proto2;
393
- _RatchetSharedKeyResponse.typeName = "livekit.proto.RatchetSharedKeyResponse";
394
- _RatchetSharedKeyResponse.fields = proto2.util.newFieldList(() => [
395
- { no: 1, name: "new_key", kind: "scalar", T: 12, opt: true }
396
- ]);
397
- let RatchetSharedKeyResponse = _RatchetSharedKeyResponse;
398
- const _GetSharedKeyRequest = class _GetSharedKeyRequest extends Message {
399
- constructor(data) {
400
- super();
401
- proto2.util.initPartial(data, this);
402
- }
403
- static fromBinary(bytes, options) {
404
- return new _GetSharedKeyRequest().fromBinary(bytes, options);
405
- }
406
- static fromJson(jsonValue, options) {
407
- return new _GetSharedKeyRequest().fromJson(jsonValue, options);
408
- }
409
- static fromJsonString(jsonString, options) {
410
- return new _GetSharedKeyRequest().fromJsonString(jsonString, options);
411
- }
412
- static equals(a, b) {
413
- return proto2.util.equals(_GetSharedKeyRequest, a, b);
414
- }
415
- };
416
- _GetSharedKeyRequest.runtime = proto2;
417
- _GetSharedKeyRequest.typeName = "livekit.proto.GetSharedKeyRequest";
418
- _GetSharedKeyRequest.fields = proto2.util.newFieldList(() => [
419
- { no: 1, name: "key_index", kind: "scalar", T: 5, req: true }
420
- ]);
421
- let GetSharedKeyRequest = _GetSharedKeyRequest;
422
- const _GetSharedKeyResponse = class _GetSharedKeyResponse extends Message {
423
- constructor(data) {
424
- super();
425
- proto2.util.initPartial(data, this);
426
- }
427
- static fromBinary(bytes, options) {
428
- return new _GetSharedKeyResponse().fromBinary(bytes, options);
429
- }
430
- static fromJson(jsonValue, options) {
431
- return new _GetSharedKeyResponse().fromJson(jsonValue, options);
432
- }
433
- static fromJsonString(jsonString, options) {
434
- return new _GetSharedKeyResponse().fromJsonString(jsonString, options);
435
- }
436
- static equals(a, b) {
437
- return proto2.util.equals(_GetSharedKeyResponse, a, b);
438
- }
439
- };
440
- _GetSharedKeyResponse.runtime = proto2;
441
- _GetSharedKeyResponse.typeName = "livekit.proto.GetSharedKeyResponse";
442
- _GetSharedKeyResponse.fields = proto2.util.newFieldList(() => [
443
- { no: 1, name: "key", kind: "scalar", T: 12, opt: true }
444
- ]);
445
- let GetSharedKeyResponse = _GetSharedKeyResponse;
446
- const _SetKeyRequest = class _SetKeyRequest extends Message {
447
- constructor(data) {
448
- super();
449
- proto2.util.initPartial(data, this);
450
- }
451
- static fromBinary(bytes, options) {
452
- return new _SetKeyRequest().fromBinary(bytes, options);
453
- }
454
- static fromJson(jsonValue, options) {
455
- return new _SetKeyRequest().fromJson(jsonValue, options);
456
- }
457
- static fromJsonString(jsonString, options) {
458
- return new _SetKeyRequest().fromJsonString(jsonString, options);
459
- }
460
- static equals(a, b) {
461
- return proto2.util.equals(_SetKeyRequest, a, b);
462
- }
463
- };
464
- _SetKeyRequest.runtime = proto2;
465
- _SetKeyRequest.typeName = "livekit.proto.SetKeyRequest";
466
- _SetKeyRequest.fields = proto2.util.newFieldList(() => [
467
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
468
- { no: 2, name: "key", kind: "scalar", T: 12, req: true },
469
- { no: 3, name: "key_index", kind: "scalar", T: 5, req: true }
470
- ]);
471
- let SetKeyRequest = _SetKeyRequest;
472
- const _SetKeyResponse = class _SetKeyResponse extends Message {
473
- constructor(data) {
474
- super();
475
- proto2.util.initPartial(data, this);
476
- }
477
- static fromBinary(bytes, options) {
478
- return new _SetKeyResponse().fromBinary(bytes, options);
479
- }
480
- static fromJson(jsonValue, options) {
481
- return new _SetKeyResponse().fromJson(jsonValue, options);
482
- }
483
- static fromJsonString(jsonString, options) {
484
- return new _SetKeyResponse().fromJsonString(jsonString, options);
485
- }
486
- static equals(a, b) {
487
- return proto2.util.equals(_SetKeyResponse, a, b);
488
- }
489
- };
490
- _SetKeyResponse.runtime = proto2;
491
- _SetKeyResponse.typeName = "livekit.proto.SetKeyResponse";
492
- _SetKeyResponse.fields = proto2.util.newFieldList(() => []);
493
- let SetKeyResponse = _SetKeyResponse;
494
- const _RatchetKeyRequest = class _RatchetKeyRequest extends Message {
495
- constructor(data) {
496
- super();
497
- proto2.util.initPartial(data, this);
498
- }
499
- static fromBinary(bytes, options) {
500
- return new _RatchetKeyRequest().fromBinary(bytes, options);
501
- }
502
- static fromJson(jsonValue, options) {
503
- return new _RatchetKeyRequest().fromJson(jsonValue, options);
504
- }
505
- static fromJsonString(jsonString, options) {
506
- return new _RatchetKeyRequest().fromJsonString(jsonString, options);
507
- }
508
- static equals(a, b) {
509
- return proto2.util.equals(_RatchetKeyRequest, a, b);
510
- }
511
- };
512
- _RatchetKeyRequest.runtime = proto2;
513
- _RatchetKeyRequest.typeName = "livekit.proto.RatchetKeyRequest";
514
- _RatchetKeyRequest.fields = proto2.util.newFieldList(() => [
515
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
516
- { no: 2, name: "key_index", kind: "scalar", T: 5, req: true }
517
- ]);
518
- let RatchetKeyRequest = _RatchetKeyRequest;
519
- const _RatchetKeyResponse = class _RatchetKeyResponse extends Message {
520
- constructor(data) {
521
- super();
522
- proto2.util.initPartial(data, this);
523
- }
524
- static fromBinary(bytes, options) {
525
- return new _RatchetKeyResponse().fromBinary(bytes, options);
526
- }
527
- static fromJson(jsonValue, options) {
528
- return new _RatchetKeyResponse().fromJson(jsonValue, options);
529
- }
530
- static fromJsonString(jsonString, options) {
531
- return new _RatchetKeyResponse().fromJsonString(jsonString, options);
532
- }
533
- static equals(a, b) {
534
- return proto2.util.equals(_RatchetKeyResponse, a, b);
535
- }
536
- };
537
- _RatchetKeyResponse.runtime = proto2;
538
- _RatchetKeyResponse.typeName = "livekit.proto.RatchetKeyResponse";
539
- _RatchetKeyResponse.fields = proto2.util.newFieldList(() => [
540
- { no: 1, name: "new_key", kind: "scalar", T: 12, opt: true }
541
- ]);
542
- let RatchetKeyResponse = _RatchetKeyResponse;
543
- const _GetKeyRequest = class _GetKeyRequest extends Message {
544
- constructor(data) {
545
- super();
546
- proto2.util.initPartial(data, this);
547
- }
548
- static fromBinary(bytes, options) {
549
- return new _GetKeyRequest().fromBinary(bytes, options);
550
- }
551
- static fromJson(jsonValue, options) {
552
- return new _GetKeyRequest().fromJson(jsonValue, options);
553
- }
554
- static fromJsonString(jsonString, options) {
555
- return new _GetKeyRequest().fromJsonString(jsonString, options);
556
- }
557
- static equals(a, b) {
558
- return proto2.util.equals(_GetKeyRequest, a, b);
559
- }
560
- };
561
- _GetKeyRequest.runtime = proto2;
562
- _GetKeyRequest.typeName = "livekit.proto.GetKeyRequest";
563
- _GetKeyRequest.fields = proto2.util.newFieldList(() => [
564
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
565
- { no: 2, name: "key_index", kind: "scalar", T: 5, req: true }
566
- ]);
567
- let GetKeyRequest = _GetKeyRequest;
568
- const _GetKeyResponse = class _GetKeyResponse extends Message {
569
- constructor(data) {
570
- super();
571
- proto2.util.initPartial(data, this);
572
- }
573
- static fromBinary(bytes, options) {
574
- return new _GetKeyResponse().fromBinary(bytes, options);
575
- }
576
- static fromJson(jsonValue, options) {
577
- return new _GetKeyResponse().fromJson(jsonValue, options);
578
- }
579
- static fromJsonString(jsonString, options) {
580
- return new _GetKeyResponse().fromJsonString(jsonString, options);
581
- }
582
- static equals(a, b) {
583
- return proto2.util.equals(_GetKeyResponse, a, b);
584
- }
585
- };
586
- _GetKeyResponse.runtime = proto2;
587
- _GetKeyResponse.typeName = "livekit.proto.GetKeyResponse";
588
- _GetKeyResponse.fields = proto2.util.newFieldList(() => [
589
- { no: 1, name: "key", kind: "scalar", T: 12, opt: true }
590
- ]);
591
- let GetKeyResponse = _GetKeyResponse;
592
- const _E2eeRequest = class _E2eeRequest extends Message {
593
- constructor(data) {
594
- super();
595
- /**
596
- * @generated from oneof livekit.proto.E2eeRequest.message
597
- */
598
- this.message = { case: void 0 };
599
- proto2.util.initPartial(data, this);
600
- }
601
- static fromBinary(bytes, options) {
602
- return new _E2eeRequest().fromBinary(bytes, options);
603
- }
604
- static fromJson(jsonValue, options) {
605
- return new _E2eeRequest().fromJson(jsonValue, options);
606
- }
607
- static fromJsonString(jsonString, options) {
608
- return new _E2eeRequest().fromJsonString(jsonString, options);
609
- }
610
- static equals(a, b) {
611
- return proto2.util.equals(_E2eeRequest, a, b);
612
- }
613
- };
614
- _E2eeRequest.runtime = proto2;
615
- _E2eeRequest.typeName = "livekit.proto.E2eeRequest";
616
- _E2eeRequest.fields = proto2.util.newFieldList(() => [
617
- { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true },
618
- { no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" },
619
- { no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" },
620
- { no: 4, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledRequest, oneof: "message" },
621
- { no: 5, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexRequest, oneof: "message" },
622
- { no: 6, name: "set_shared_key", kind: "message", T: SetSharedKeyRequest, oneof: "message" },
623
- { no: 7, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyRequest, oneof: "message" },
624
- { no: 8, name: "get_shared_key", kind: "message", T: GetSharedKeyRequest, oneof: "message" },
625
- { no: 9, name: "set_key", kind: "message", T: SetKeyRequest, oneof: "message" },
626
- { no: 10, name: "ratchet_key", kind: "message", T: RatchetKeyRequest, oneof: "message" },
627
- { no: 11, name: "get_key", kind: "message", T: GetKeyRequest, oneof: "message" }
628
- ]);
629
- let E2eeRequest = _E2eeRequest;
630
- const _E2eeResponse = class _E2eeResponse extends Message {
631
- constructor(data) {
632
- super();
633
- /**
634
- * @generated from oneof livekit.proto.E2eeResponse.message
635
- */
636
- this.message = { case: void 0 };
637
- proto2.util.initPartial(data, this);
638
- }
639
- static fromBinary(bytes, options) {
640
- return new _E2eeResponse().fromBinary(bytes, options);
641
- }
642
- static fromJson(jsonValue, options) {
643
- return new _E2eeResponse().fromJson(jsonValue, options);
644
- }
645
- static fromJsonString(jsonString, options) {
646
- return new _E2eeResponse().fromJsonString(jsonString, options);
647
- }
648
- static equals(a, b) {
649
- return proto2.util.equals(_E2eeResponse, a, b);
650
- }
651
- };
652
- _E2eeResponse.runtime = proto2;
653
- _E2eeResponse.typeName = "livekit.proto.E2eeResponse";
654
- _E2eeResponse.fields = proto2.util.newFieldList(() => [
655
- { no: 1, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledResponse, oneof: "message" },
656
- { no: 2, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsResponse, oneof: "message" },
657
- { no: 3, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledResponse, oneof: "message" },
658
- { no: 4, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexResponse, oneof: "message" },
659
- { no: 5, name: "set_shared_key", kind: "message", T: SetSharedKeyResponse, oneof: "message" },
660
- { no: 6, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyResponse, oneof: "message" },
661
- { no: 7, name: "get_shared_key", kind: "message", T: GetSharedKeyResponse, oneof: "message" },
662
- { no: 8, name: "set_key", kind: "message", T: SetKeyResponse, oneof: "message" },
663
- { no: 9, name: "ratchet_key", kind: "message", T: RatchetKeyResponse, oneof: "message" },
664
- { no: 10, name: "get_key", kind: "message", T: GetKeyResponse, oneof: "message" }
665
- ]);
666
- let E2eeResponse = _E2eeResponse;
667
- export {
668
- E2eeManagerGetFrameCryptorsRequest,
669
- E2eeManagerGetFrameCryptorsResponse,
670
- E2eeManagerSetEnabledRequest,
671
- E2eeManagerSetEnabledResponse,
672
- E2eeOptions,
673
- E2eeRequest,
674
- E2eeResponse,
675
- EncryptionState,
676
- EncryptionType,
677
- FrameCryptor,
678
- FrameCryptorSetEnabledRequest,
679
- FrameCryptorSetEnabledResponse,
680
- FrameCryptorSetKeyIndexRequest,
681
- FrameCryptorSetKeyIndexResponse,
682
- GetKeyRequest,
683
- GetKeyResponse,
684
- GetSharedKeyRequest,
685
- GetSharedKeyResponse,
686
- KeyProviderOptions,
687
- RatchetKeyRequest,
688
- RatchetKeyResponse,
689
- RatchetSharedKeyRequest,
690
- RatchetSharedKeyResponse,
691
- SetKeyRequest,
692
- SetKeyResponse,
693
- SetSharedKeyRequest,
694
- SetSharedKeyResponse
695
- };
696
- //# sourceMappingURL=e2ee_pb.js.map