@livekit/rtc-node 0.13.24 → 0.13.26

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