@livekit/rtc-node 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +31 -0
  4. package/dist/audio_frame.d.ts +11 -5
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +59 -0
  11. package/dist/audio_resampler.d.ts +11 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +37 -0
  18. package/dist/audio_source.d.ts +13 -5
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +37 -0
  25. package/dist/audio_stream.d.ts +16 -5
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +47 -0
  32. package/dist/e2ee.d.ts +11 -8
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +35 -0
  39. package/dist/ffi_client.d.ts +23 -11
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +28 -0
  46. package/dist/index.d.ts +20 -41
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.d.cts +21 -0
  52. package/dist/napi/native.d.d.ts +21 -0
  53. package/dist/napi/native.d.ts +5 -5
  54. package/dist/native.d.ts +5 -5
  55. package/dist/participant.cjs +57 -34
  56. package/dist/participant.cjs.map +1 -1
  57. package/dist/participant.d.cts +126 -0
  58. package/dist/participant.d.ts +34 -20
  59. package/dist/participant.d.ts.map +1 -1
  60. package/dist/participant.js +75 -50
  61. package/dist/participant.js.map +1 -1
  62. package/dist/proto/audio_frame_pb.cjs +977 -125
  63. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  64. package/dist/proto/audio_frame_pb.d.cts +898 -0
  65. package/dist/proto/audio_frame_pb.d.ts +506 -417
  66. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  67. package/dist/proto/audio_frame_pb.js +943 -85
  68. package/dist/proto/audio_frame_pb.js.map +1 -1
  69. package/dist/proto/e2ee_pb.cjs +700 -85
  70. package/dist/proto/e2ee_pb.cjs.map +1 -1
  71. package/dist/proto/e2ee_pb.d.cts +653 -0
  72. package/dist/proto/e2ee_pb.d.ts +333 -263
  73. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  74. package/dist/proto/e2ee_pb.js +675 -57
  75. package/dist/proto/e2ee_pb.js.map +1 -1
  76. package/dist/proto/ffi_pb.cjs +369 -36
  77. package/dist/proto/ffi_pb.cjs.map +1 -1
  78. package/dist/proto/ffi_pb.d.cts +898 -0
  79. package/dist/proto/ffi_pb.d.ts +164 -112
  80. package/dist/proto/ffi_pb.d.ts.map +1 -1
  81. package/dist/proto/ffi_pb.js +364 -29
  82. package/dist/proto/ffi_pb.js.map +1 -1
  83. package/dist/proto/handle_pb.cjs +27 -7
  84. package/dist/proto/handle_pb.cjs.map +1 -1
  85. package/dist/proto/handle_pb.d.cts +31 -0
  86. package/dist/proto/handle_pb.d.ts +15 -15
  87. package/dist/proto/handle_pb.d.ts.map +1 -1
  88. package/dist/proto/handle_pb.js +26 -5
  89. package/dist/proto/handle_pb.js.map +1 -1
  90. package/dist/proto/participant_pb.cjs +112 -15
  91. package/dist/proto/participant_pb.cjs.map +1 -1
  92. package/dist/proto/participant_pb.d.cts +181 -0
  93. package/dist/proto/participant_pb.d.ts +143 -53
  94. package/dist/proto/participant_pb.d.ts.map +1 -1
  95. package/dist/proto/participant_pb.js +109 -11
  96. package/dist/proto/participant_pb.js.map +1 -1
  97. package/dist/proto/room_pb.cjs +2693 -302
  98. package/dist/proto/room_pb.cjs.map +1 -1
  99. package/dist/proto/room_pb.d.cts +2475 -0
  100. package/dist/proto/room_pb.d.ts +1269 -864
  101. package/dist/proto/room_pb.d.ts.map +1 -1
  102. package/dist/proto/room_pb.js +2603 -210
  103. package/dist/proto/room_pb.js.map +1 -1
  104. package/dist/proto/rpc_pb.cjs +302 -37
  105. package/dist/proto/rpc_pb.cjs.map +1 -1
  106. package/dist/proto/rpc_pb.d.cts +267 -0
  107. package/dist/proto/rpc_pb.d.ts +140 -108
  108. package/dist/proto/rpc_pb.d.ts.map +1 -1
  109. package/dist/proto/rpc_pb.js +291 -25
  110. package/dist/proto/rpc_pb.js.map +1 -1
  111. package/dist/proto/stats_pb.cjs +1253 -139
  112. package/dist/proto/stats_pb.cjs.map +1 -1
  113. package/dist/proto/stats_pb.d.cts +1764 -0
  114. package/dist/proto/stats_pb.d.ts +806 -693
  115. package/dist/proto/stats_pb.d.ts.map +1 -1
  116. package/dist/proto/stats_pb.js +1216 -93
  117. package/dist/proto/stats_pb.js.map +1 -1
  118. package/dist/proto/track_pb.cjs +462 -64
  119. package/dist/proto/track_pb.cjs.map +1 -1
  120. package/dist/proto/track_pb.d.cts +434 -0
  121. package/dist/proto/track_pb.d.ts +254 -220
  122. package/dist/proto/track_pb.d.ts.map +1 -1
  123. package/dist/proto/track_pb.js +447 -45
  124. package/dist/proto/track_pb.js.map +1 -1
  125. package/dist/proto/track_publication_pb.cjs +130 -0
  126. package/dist/proto/track_publication_pb.cjs.map +1 -0
  127. package/dist/proto/track_publication_pb.d.cts +80 -0
  128. package/dist/proto/track_publication_pb.d.ts +80 -0
  129. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  130. package/dist/proto/track_publication_pb.js +103 -0
  131. package/dist/proto/track_publication_pb.js.map +1 -0
  132. package/dist/proto/video_frame_pb.cjs +648 -88
  133. package/dist/proto/video_frame_pb.cjs.map +1 -1
  134. package/dist/proto/video_frame_pb.d.cts +660 -0
  135. package/dist/proto/video_frame_pb.d.ts +375 -328
  136. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  137. package/dist/proto/video_frame_pb.js +626 -60
  138. package/dist/proto/video_frame_pb.js.map +1 -1
  139. package/dist/room.cjs +93 -125
  140. package/dist/room.cjs.map +1 -1
  141. package/dist/room.d.cts +123 -0
  142. package/dist/room.d.ts +37 -34
  143. package/dist/room.d.ts.map +1 -1
  144. package/dist/room.js +92 -122
  145. package/dist/room.js.map +1 -1
  146. package/dist/rpc.cjs.map +1 -1
  147. package/dist/rpc.d.cts +81 -0
  148. package/dist/rpc.d.ts +10 -7
  149. package/dist/rpc.js.map +1 -1
  150. package/dist/track.cjs +12 -8
  151. package/dist/track.cjs.map +1 -1
  152. package/dist/track.d.cts +45 -0
  153. package/dist/track.d.ts +30 -20
  154. package/dist/track.d.ts.map +1 -1
  155. package/dist/track.js +13 -9
  156. package/dist/track.js.map +1 -1
  157. package/dist/track_publication.cjs +21 -12
  158. package/dist/track_publication.cjs.map +1 -1
  159. package/dist/track_publication.d.cts +47 -0
  160. package/dist/track_publication.d.ts +30 -19
  161. package/dist/track_publication.d.ts.map +1 -1
  162. package/dist/track_publication.js +22 -13
  163. package/dist/track_publication.js.map +1 -1
  164. package/dist/transcription.d.cts +15 -0
  165. package/dist/transcription.d.ts +4 -3
  166. package/dist/types.d.cts +9 -0
  167. package/dist/types.d.ts +3 -2
  168. package/dist/version.cjs +1 -1
  169. package/dist/version.cjs.map +1 -1
  170. package/dist/version.d.cts +3 -0
  171. package/dist/version.d.ts +3 -2
  172. package/dist/version.js +1 -1
  173. package/dist/version.js.map +1 -1
  174. package/dist/video_frame.cjs +26 -45
  175. package/dist/video_frame.cjs.map +1 -1
  176. package/dist/video_frame.d.cts +24 -0
  177. package/dist/video_frame.d.ts +10 -4
  178. package/dist/video_frame.d.ts.map +1 -1
  179. package/dist/video_frame.js +29 -48
  180. package/dist/video_frame.js.map +1 -1
  181. package/dist/video_source.cjs +7 -4
  182. package/dist/video_source.cjs.map +1 -1
  183. package/dist/video_source.d.cts +22 -0
  184. package/dist/video_source.d.ts +14 -7
  185. package/dist/video_source.d.ts.map +1 -1
  186. package/dist/video_source.js +9 -6
  187. package/dist/video_source.js.map +1 -1
  188. package/dist/video_stream.cjs +16 -5
  189. package/dist/video_stream.cjs.map +1 -1
  190. package/dist/video_stream.d.cts +40 -0
  191. package/dist/video_stream.d.ts +18 -7
  192. package/dist/video_stream.d.ts.map +1 -1
  193. package/dist/video_stream.js +17 -6
  194. package/dist/video_stream.js.map +1 -1
  195. package/package.json +17 -12
  196. package/src/audio_frame.ts +10 -10
  197. package/src/audio_resampler.ts +15 -13
  198. package/src/audio_source.ts +11 -8
  199. package/src/audio_stream.ts +3 -4
  200. package/src/e2ee.ts +36 -37
  201. package/src/ffi_client.ts +8 -16
  202. package/src/index.ts +5 -68
  203. package/src/napi/native.d.ts +5 -5
  204. package/src/participant.ts +100 -72
  205. package/src/proto/audio_frame_pb.ts +1220 -496
  206. package/src/proto/e2ee_pb.ts +858 -337
  207. package/src/proto/ffi_pb.ts +442 -135
  208. package/src/proto/handle_pb.ts +33 -19
  209. package/src/proto/participant_pb.ts +225 -60
  210. package/src/proto/room_pb.ts +3149 -1013
  211. package/src/proto/rpc_pb.ts +358 -129
  212. package/src/proto/stats_pb.ts +1891 -877
  213. package/src/proto/track_pb.ts +587 -253
  214. package/src/proto/track_publication_pb.ts +180 -0
  215. package/src/proto/video_frame_pb.ts +861 -394
  216. package/src/room.ts +143 -188
  217. package/src/rpc.ts +1 -1
  218. package/src/track.ts +16 -17
  219. package/src/track_publication.ts +25 -26
  220. package/src/version.ts +1 -1
  221. package/src/video_frame.ts +48 -72
  222. package/src/video_source.ts +11 -8
  223. package/src/video_stream.ts +18 -8
@@ -1,37 +1,15 @@
1
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
2
- const file_e2ee = /* @__PURE__ */ fileDesc("CgplMmVlLnByb3RvEg1saXZla2l0LnByb3RvImMKDEZyYW1lQ3J5cHRvchIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAIoCRIRCgl0cmFja19zaWQYAiACKAkSEQoJa2V5X2luZGV4GAMgAigFEg8KB2VuYWJsZWQYBCACKAgidgoSS2V5UHJvdmlkZXJPcHRpb25zEhIKCnNoYXJlZF9rZXkYASABKAwSGwoTcmF0Y2hldF93aW5kb3dfc2l6ZRgCIAIoBRIUCgxyYXRjaGV0X3NhbHQYAyACKAwSGQoRZmFpbHVyZV90b2xlcmFuY2UYBCACKAUihgEKC0UyZWVPcHRpb25zEjYKD2VuY3J5cHRpb25fdHlwZRgBIAIoDjIdLmxpdmVraXQucHJvdG8uRW5jcnlwdGlvblR5cGUSPwoUa2V5X3Byb3ZpZGVyX29wdGlvbnMYAiACKAsyIS5saXZla2l0LnByb3RvLktleVByb3ZpZGVyT3B0aW9ucyIvChxFMmVlTWFuYWdlclNldEVuYWJsZWRSZXF1ZXN0Eg8KB2VuYWJsZWQYASACKAgiHwodRTJlZU1hbmFnZXJTZXRFbmFibGVkUmVzcG9uc2UiJAoiRTJlZU1hbmFnZXJHZXRGcmFtZUNy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CgJPSxABEhUKEUVOQ1JZUFRJT05fRkFJTEVEEAISFQoRREVDUllQVElPTl9GQUlMRUQQAxIPCgtNSVNTSU5HX0tFWRAEEhEKDUtFWV9SQVRDSEVURUQQBRISCg5JTlRFUk5BTF9FUlJPUhAGQhCqAg1MaXZlS2l0LlByb3Rv");
3
- const FrameCryptorSchema = /* @__PURE__ */ messageDesc(file_e2ee, 0);
4
- const KeyProviderOptionsSchema = /* @__PURE__ */ messageDesc(file_e2ee, 1);
5
- const E2eeOptionsSchema = /* @__PURE__ */ messageDesc(file_e2ee, 2);
6
- const E2eeManagerSetEnabledRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 3);
7
- const E2eeManagerSetEnabledResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 4);
8
- const E2eeManagerGetFrameCryptorsRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 5);
9
- const E2eeManagerGetFrameCryptorsResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 6);
10
- const FrameCryptorSetEnabledRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 7);
11
- const FrameCryptorSetEnabledResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 8);
12
- const FrameCryptorSetKeyIndexRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 9);
13
- const FrameCryptorSetKeyIndexResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 10);
14
- const SetSharedKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 11);
15
- const SetSharedKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 12);
16
- const RatchetSharedKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 13);
17
- const RatchetSharedKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 14);
18
- const GetSharedKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 15);
19
- const GetSharedKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 16);
20
- const SetKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 17);
21
- const SetKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 18);
22
- const RatchetKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 19);
23
- const RatchetKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 20);
24
- const GetKeyRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 21);
25
- const GetKeyResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 22);
26
- const E2eeRequestSchema = /* @__PURE__ */ messageDesc(file_e2ee, 23);
27
- const E2eeResponseSchema = /* @__PURE__ */ messageDesc(file_e2ee, 24);
1
+ import { Message, proto2 } from "@bufbuild/protobuf";
28
2
  var EncryptionType = /* @__PURE__ */ ((EncryptionType2) => {
29
3
  EncryptionType2[EncryptionType2["NONE"] = 0] = "NONE";
30
4
  EncryptionType2[EncryptionType2["GCM"] = 1] = "GCM";
31
5
  EncryptionType2[EncryptionType2["CUSTOM"] = 2] = "CUSTOM";
32
6
  return EncryptionType2;
33
7
  })(EncryptionType || {});
34
- const EncryptionTypeSchema = /* @__PURE__ */ enumDesc(file_e2ee, 0);
8
+ proto2.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
9
+ { no: 0, name: "NONE" },
10
+ { no: 1, name: "GCM" },
11
+ { no: 2, name: "CUSTOM" }
12
+ ]);
35
13
  var EncryptionState = /* @__PURE__ */ ((EncryptionState2) => {
36
14
  EncryptionState2[EncryptionState2["NEW"] = 0] = "NEW";
37
15
  EncryptionState2[EncryptionState2["OK"] = 1] = "OK";
@@ -42,37 +20,677 @@ var EncryptionState = /* @__PURE__ */ ((EncryptionState2) => {
42
20
  EncryptionState2[EncryptionState2["INTERNAL_ERROR"] = 6] = "INTERNAL_ERROR";
43
21
  return EncryptionState2;
44
22
  })(EncryptionState || {});
45
- const EncryptionStateSchema = /* @__PURE__ */ enumDesc(file_e2ee, 1);
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;
46
667
  export {
47
- E2eeManagerGetFrameCryptorsRequestSchema,
48
- E2eeManagerGetFrameCryptorsResponseSchema,
49
- E2eeManagerSetEnabledRequestSchema,
50
- E2eeManagerSetEnabledResponseSchema,
51
- E2eeOptionsSchema,
52
- E2eeRequestSchema,
53
- E2eeResponseSchema,
668
+ E2eeManagerGetFrameCryptorsRequest,
669
+ E2eeManagerGetFrameCryptorsResponse,
670
+ E2eeManagerSetEnabledRequest,
671
+ E2eeManagerSetEnabledResponse,
672
+ E2eeOptions,
673
+ E2eeRequest,
674
+ E2eeResponse,
54
675
  EncryptionState,
55
- EncryptionStateSchema,
56
676
  EncryptionType,
57
- EncryptionTypeSchema,
58
- FrameCryptorSchema,
59
- FrameCryptorSetEnabledRequestSchema,
60
- FrameCryptorSetEnabledResponseSchema,
61
- FrameCryptorSetKeyIndexRequestSchema,
62
- FrameCryptorSetKeyIndexResponseSchema,
63
- GetKeyRequestSchema,
64
- GetKeyResponseSchema,
65
- GetSharedKeyRequestSchema,
66
- GetSharedKeyResponseSchema,
67
- KeyProviderOptionsSchema,
68
- RatchetKeyRequestSchema,
69
- RatchetKeyResponseSchema,
70
- RatchetSharedKeyRequestSchema,
71
- RatchetSharedKeyResponseSchema,
72
- SetKeyRequestSchema,
73
- SetKeyResponseSchema,
74
- SetSharedKeyRequestSchema,
75
- SetSharedKeyResponseSchema,
76
- file_e2ee
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
77
695
  };
78
696
  //# sourceMappingURL=e2ee_pb.js.map