@livekit/rtc-node 0.12.2 → 0.13.1

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 (217) 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 +2 -3
  4. package/dist/audio_frame.d.ts +2 -3
  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 +2 -3
  11. package/dist/audio_resampler.d.ts +2 -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 +3 -3
  18. package/dist/audio_source.d.ts +3 -3
  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 +2 -3
  25. package/dist/audio_stream.d.ts +2 -3
  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 +5 -6
  32. package/dist/e2ee.d.ts +5 -6
  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 +10 -10
  39. package/dist/ffi_client.d.ts +10 -10
  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 +6 -35
  46. package/dist/index.d.ts +6 -35
  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.ts +5 -5
  52. package/dist/native.d.ts +5 -5
  53. package/dist/participant.cjs +60 -36
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +11 -11
  56. package/dist/participant.d.ts +11 -11
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +78 -52
  59. package/dist/participant.js.map +1 -1
  60. package/dist/proto/audio_frame_pb.cjs +977 -125
  61. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  62. package/dist/proto/audio_frame_pb.d.cts +502 -417
  63. package/dist/proto/audio_frame_pb.d.ts +502 -417
  64. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  65. package/dist/proto/audio_frame_pb.js +943 -85
  66. package/dist/proto/audio_frame_pb.js.map +1 -1
  67. package/dist/proto/e2ee_pb.cjs +700 -85
  68. package/dist/proto/e2ee_pb.cjs.map +1 -1
  69. package/dist/proto/e2ee_pb.d.cts +331 -263
  70. package/dist/proto/e2ee_pb.d.ts +331 -263
  71. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  72. package/dist/proto/e2ee_pb.js +675 -57
  73. package/dist/proto/e2ee_pb.js.map +1 -1
  74. package/dist/proto/ffi_pb.cjs +369 -36
  75. package/dist/proto/ffi_pb.cjs.map +1 -1
  76. package/dist/proto/ffi_pb.d.cts +156 -109
  77. package/dist/proto/ffi_pb.d.ts +156 -109
  78. package/dist/proto/ffi_pb.d.ts.map +1 -1
  79. package/dist/proto/ffi_pb.js +364 -29
  80. package/dist/proto/ffi_pb.js.map +1 -1
  81. package/dist/proto/handle_pb.cjs +27 -7
  82. package/dist/proto/handle_pb.cjs.map +1 -1
  83. package/dist/proto/handle_pb.d.cts +13 -15
  84. package/dist/proto/handle_pb.d.ts +13 -15
  85. package/dist/proto/handle_pb.d.ts.map +1 -1
  86. package/dist/proto/handle_pb.js +26 -5
  87. package/dist/proto/handle_pb.js.map +1 -1
  88. package/dist/proto/participant_pb.cjs +112 -15
  89. package/dist/proto/participant_pb.cjs.map +1 -1
  90. package/dist/proto/participant_pb.d.cts +140 -52
  91. package/dist/proto/participant_pb.d.ts +140 -52
  92. package/dist/proto/participant_pb.d.ts.map +1 -1
  93. package/dist/proto/participant_pb.js +109 -11
  94. package/dist/proto/participant_pb.js.map +1 -1
  95. package/dist/proto/room_pb.cjs +2693 -302
  96. package/dist/proto/room_pb.cjs.map +1 -1
  97. package/dist/proto/room_pb.d.cts +1265 -862
  98. package/dist/proto/room_pb.d.ts +1265 -862
  99. package/dist/proto/room_pb.d.ts.map +1 -1
  100. package/dist/proto/room_pb.js +2603 -210
  101. package/dist/proto/room_pb.js.map +1 -1
  102. package/dist/proto/rpc_pb.cjs +302 -37
  103. package/dist/proto/rpc_pb.cjs.map +1 -1
  104. package/dist/proto/rpc_pb.d.cts +138 -108
  105. package/dist/proto/rpc_pb.d.ts +138 -108
  106. package/dist/proto/rpc_pb.d.ts.map +1 -1
  107. package/dist/proto/rpc_pb.js +291 -25
  108. package/dist/proto/rpc_pb.js.map +1 -1
  109. package/dist/proto/stats_pb.cjs +1253 -139
  110. package/dist/proto/stats_pb.cjs.map +1 -1
  111. package/dist/proto/stats_pb.d.cts +803 -692
  112. package/dist/proto/stats_pb.d.ts +803 -692
  113. package/dist/proto/stats_pb.d.ts.map +1 -1
  114. package/dist/proto/stats_pb.js +1216 -93
  115. package/dist/proto/stats_pb.js.map +1 -1
  116. package/dist/proto/track_pb.cjs +462 -64
  117. package/dist/proto/track_pb.cjs.map +1 -1
  118. package/dist/proto/track_pb.d.cts +250 -218
  119. package/dist/proto/track_pb.d.ts +250 -218
  120. package/dist/proto/track_pb.d.ts.map +1 -1
  121. package/dist/proto/track_pb.js +447 -45
  122. package/dist/proto/track_pb.js.map +1 -1
  123. package/dist/proto/track_publication_pb.cjs +130 -0
  124. package/dist/proto/track_publication_pb.cjs.map +1 -0
  125. package/dist/proto/track_publication_pb.d.cts +80 -0
  126. package/dist/proto/track_publication_pb.d.ts +80 -0
  127. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  128. package/dist/proto/track_publication_pb.js +103 -0
  129. package/dist/proto/track_publication_pb.js.map +1 -0
  130. package/dist/proto/video_frame_pb.cjs +648 -88
  131. package/dist/proto/video_frame_pb.cjs.map +1 -1
  132. package/dist/proto/video_frame_pb.d.cts +371 -328
  133. package/dist/proto/video_frame_pb.d.ts +371 -328
  134. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  135. package/dist/proto/video_frame_pb.js +626 -60
  136. package/dist/proto/video_frame_pb.js.map +1 -1
  137. package/dist/room.cjs +85 -125
  138. package/dist/room.cjs.map +1 -1
  139. package/dist/room.d.cts +6 -17
  140. package/dist/room.d.ts +6 -17
  141. package/dist/room.d.ts.map +1 -1
  142. package/dist/room.js +85 -123
  143. package/dist/room.js.map +1 -1
  144. package/dist/rpc.cjs.map +1 -1
  145. package/dist/rpc.d.cts +0 -1
  146. package/dist/rpc.d.ts +0 -1
  147. package/dist/rpc.js.map +1 -1
  148. package/dist/track.cjs +12 -8
  149. package/dist/track.cjs.map +1 -1
  150. package/dist/track.d.cts +8 -9
  151. package/dist/track.d.ts +8 -9
  152. package/dist/track.d.ts.map +1 -1
  153. package/dist/track.js +13 -9
  154. package/dist/track.js.map +1 -1
  155. package/dist/track_publication.cjs +21 -12
  156. package/dist/track_publication.cjs.map +1 -1
  157. package/dist/track_publication.d.cts +12 -13
  158. package/dist/track_publication.d.ts +12 -13
  159. package/dist/track_publication.d.ts.map +1 -1
  160. package/dist/track_publication.js +22 -13
  161. package/dist/track_publication.js.map +1 -1
  162. package/dist/version.cjs +1 -1
  163. package/dist/version.cjs.map +1 -1
  164. package/dist/version.d.cts +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/dist/version.js.map +1 -1
  168. package/dist/video_frame.cjs +26 -45
  169. package/dist/video_frame.cjs.map +1 -1
  170. package/dist/video_frame.d.cts +2 -3
  171. package/dist/video_frame.d.ts +2 -3
  172. package/dist/video_frame.d.ts.map +1 -1
  173. package/dist/video_frame.js +29 -48
  174. package/dist/video_frame.js.map +1 -1
  175. package/dist/video_source.cjs +7 -4
  176. package/dist/video_source.cjs.map +1 -1
  177. package/dist/video_source.d.cts +4 -4
  178. package/dist/video_source.d.ts +4 -4
  179. package/dist/video_source.d.ts.map +1 -1
  180. package/dist/video_source.js +9 -6
  181. package/dist/video_source.js.map +1 -1
  182. package/dist/video_stream.cjs +16 -5
  183. package/dist/video_stream.cjs.map +1 -1
  184. package/dist/video_stream.d.cts +3 -4
  185. package/dist/video_stream.d.ts +3 -4
  186. package/dist/video_stream.d.ts.map +1 -1
  187. package/dist/video_stream.js +17 -6
  188. package/dist/video_stream.js.map +1 -1
  189. package/package.json +9 -9
  190. package/src/audio_frame.ts +10 -10
  191. package/src/audio_resampler.ts +15 -13
  192. package/src/audio_source.ts +11 -8
  193. package/src/audio_stream.ts +3 -4
  194. package/src/e2ee.ts +41 -42
  195. package/src/ffi_client.ts +8 -16
  196. package/src/index.ts +5 -68
  197. package/src/napi/native.d.ts +5 -5
  198. package/src/participant.ts +102 -73
  199. package/src/proto/audio_frame_pb.ts +1220 -496
  200. package/src/proto/e2ee_pb.ts +858 -337
  201. package/src/proto/ffi_pb.ts +442 -135
  202. package/src/proto/handle_pb.ts +33 -19
  203. package/src/proto/participant_pb.ts +225 -60
  204. package/src/proto/room_pb.ts +3149 -1013
  205. package/src/proto/rpc_pb.ts +358 -129
  206. package/src/proto/stats_pb.ts +1891 -877
  207. package/src/proto/track_pb.ts +587 -253
  208. package/src/proto/track_publication_pb.ts +180 -0
  209. package/src/proto/video_frame_pb.ts +861 -394
  210. package/src/room.ts +137 -189
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -18,72 +18,47 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var e2ee_pb_exports = {};
20
20
  __export(e2ee_pb_exports, {
21
- E2eeManagerGetFrameCryptorsRequestSchema: () => E2eeManagerGetFrameCryptorsRequestSchema,
22
- E2eeManagerGetFrameCryptorsResponseSchema: () => E2eeManagerGetFrameCryptorsResponseSchema,
23
- E2eeManagerSetEnabledRequestSchema: () => E2eeManagerSetEnabledRequestSchema,
24
- E2eeManagerSetEnabledResponseSchema: () => E2eeManagerSetEnabledResponseSchema,
25
- E2eeOptionsSchema: () => E2eeOptionsSchema,
26
- E2eeRequestSchema: () => E2eeRequestSchema,
27
- E2eeResponseSchema: () => E2eeResponseSchema,
21
+ E2eeManagerGetFrameCryptorsRequest: () => E2eeManagerGetFrameCryptorsRequest,
22
+ E2eeManagerGetFrameCryptorsResponse: () => E2eeManagerGetFrameCryptorsResponse,
23
+ E2eeManagerSetEnabledRequest: () => E2eeManagerSetEnabledRequest,
24
+ E2eeManagerSetEnabledResponse: () => E2eeManagerSetEnabledResponse,
25
+ E2eeOptions: () => E2eeOptions,
26
+ E2eeRequest: () => E2eeRequest,
27
+ E2eeResponse: () => E2eeResponse,
28
28
  EncryptionState: () => EncryptionState,
29
- EncryptionStateSchema: () => EncryptionStateSchema,
30
29
  EncryptionType: () => EncryptionType,
31
- EncryptionTypeSchema: () => EncryptionTypeSchema,
32
- FrameCryptorSchema: () => FrameCryptorSchema,
33
- FrameCryptorSetEnabledRequestSchema: () => FrameCryptorSetEnabledRequestSchema,
34
- FrameCryptorSetEnabledResponseSchema: () => FrameCryptorSetEnabledResponseSchema,
35
- FrameCryptorSetKeyIndexRequestSchema: () => FrameCryptorSetKeyIndexRequestSchema,
36
- FrameCryptorSetKeyIndexResponseSchema: () => FrameCryptorSetKeyIndexResponseSchema,
37
- GetKeyRequestSchema: () => GetKeyRequestSchema,
38
- GetKeyResponseSchema: () => GetKeyResponseSchema,
39
- GetSharedKeyRequestSchema: () => GetSharedKeyRequestSchema,
40
- GetSharedKeyResponseSchema: () => GetSharedKeyResponseSchema,
41
- KeyProviderOptionsSchema: () => KeyProviderOptionsSchema,
42
- RatchetKeyRequestSchema: () => RatchetKeyRequestSchema,
43
- RatchetKeyResponseSchema: () => RatchetKeyResponseSchema,
44
- RatchetSharedKeyRequestSchema: () => RatchetSharedKeyRequestSchema,
45
- RatchetSharedKeyResponseSchema: () => RatchetSharedKeyResponseSchema,
46
- SetKeyRequestSchema: () => SetKeyRequestSchema,
47
- SetKeyResponseSchema: () => SetKeyResponseSchema,
48
- SetSharedKeyRequestSchema: () => SetSharedKeyRequestSchema,
49
- SetSharedKeyResponseSchema: () => SetSharedKeyResponseSchema,
50
- file_e2ee: () => file_e2ee
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
51
48
  });
52
49
  module.exports = __toCommonJS(e2ee_pb_exports);
53
- var import_codegenv1 = require("@bufbuild/protobuf/codegenv1");
54
- const file_e2ee = /* @__PURE__ */ (0, import_codegenv1.fileDesc)("CgplMmVlLnByb3RvEg1saXZla2l0LnByb3RvImMKDEZyYW1lQ3J5cHRvchIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAIoCRIRCgl0cmFja19zaWQYAiACKAkSEQoJa2V5X2luZGV4GAMgAigFEg8KB2VuYWJsZWQYBCACKAgidgoSS2V5UHJvdmlkZXJPcHRpb25zEhIKCnNoYXJlZF9rZXkYASABKAwSGwoTcmF0Y2hldF93aW5kb3dfc2l6ZRgCIAIoBRIUCgxyYXRjaGV0X3NhbHQYAyACKAwSGQoRZmFpbHVyZV90b2xlcmFuY2UYBCACKAUihgEKC0UyZWVPcHRpb25zEjYKD2VuY3J5cHRpb25fdHlwZRgBIAIoDjIdLmxpdmVraXQucHJvdG8uRW5jcnlwdGlvblR5cGUSPwoUa2V5X3Byb3ZpZGVyX29wdGlvbnMYAiACKAsyIS5saXZla2l0LnByb3RvLktleVByb3ZpZGVyT3B0aW9ucyIvChxFMmVlTWFuYWdlclNldEVuYWJsZWRSZXF1ZXN0Eg8KB2VuYWJsZWQYASACKAgiHwodRTJlZU1hbmFnZXJTZXRFbmFibGVkUmVzcG9uc2UiJAoiRTJlZU1hbmFnZXJHZXRGcmFtZUNyeXB0b3JzUmVxdWVzdCJaCiNFMmVlTWFuYWdlckdldEZyYW1lQ3J5cHRvcnNSZXNwb25zZRIzCg5mcmFtZV9jcnlwdG9ycxgBIAMoCzIbLmxpdmVraXQucHJvdG8uRnJhbWVDcnlwdG9yImEKH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qAg1MaXZlS2l0LlByb3Rv");
55
- const FrameCryptorSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 0);
56
- const KeyProviderOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 1);
57
- const E2eeOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 2);
58
- const E2eeManagerSetEnabledRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 3);
59
- const E2eeManagerSetEnabledResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 4);
60
- const E2eeManagerGetFrameCryptorsRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 5);
61
- const E2eeManagerGetFrameCryptorsResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 6);
62
- const FrameCryptorSetEnabledRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 7);
63
- const FrameCryptorSetEnabledResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 8);
64
- const FrameCryptorSetKeyIndexRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 9);
65
- const FrameCryptorSetKeyIndexResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 10);
66
- const SetSharedKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 11);
67
- const SetSharedKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 12);
68
- const RatchetSharedKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 13);
69
- const RatchetSharedKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 14);
70
- const GetSharedKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 15);
71
- const GetSharedKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 16);
72
- const SetKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 17);
73
- const SetKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 18);
74
- const RatchetKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 19);
75
- const RatchetKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 20);
76
- const GetKeyRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 21);
77
- const GetKeyResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 22);
78
- const E2eeRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 23);
79
- const E2eeResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_e2ee, 24);
50
+ var import_protobuf = require("@bufbuild/protobuf");
80
51
  var EncryptionType = /* @__PURE__ */ ((EncryptionType2) => {
81
52
  EncryptionType2[EncryptionType2["NONE"] = 0] = "NONE";
82
53
  EncryptionType2[EncryptionType2["GCM"] = 1] = "GCM";
83
54
  EncryptionType2[EncryptionType2["CUSTOM"] = 2] = "CUSTOM";
84
55
  return EncryptionType2;
85
56
  })(EncryptionType || {});
86
- const EncryptionTypeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_e2ee, 0);
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
+ ]);
87
62
  var EncryptionState = /* @__PURE__ */ ((EncryptionState2) => {
88
63
  EncryptionState2[EncryptionState2["NEW"] = 0] = "NEW";
89
64
  EncryptionState2[EncryptionState2["OK"] = 1] = "OK";
@@ -94,38 +69,678 @@ var EncryptionState = /* @__PURE__ */ ((EncryptionState2) => {
94
69
  EncryptionState2[EncryptionState2["INTERNAL_ERROR"] = 6] = "INTERNAL_ERROR";
95
70
  return EncryptionState2;
96
71
  })(EncryptionState || {});
97
- const EncryptionStateSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_e2ee, 1);
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;
98
716
  // Annotate the CommonJS export names for ESM import in node:
99
717
  0 && (module.exports = {
100
- E2eeManagerGetFrameCryptorsRequestSchema,
101
- E2eeManagerGetFrameCryptorsResponseSchema,
102
- E2eeManagerSetEnabledRequestSchema,
103
- E2eeManagerSetEnabledResponseSchema,
104
- E2eeOptionsSchema,
105
- E2eeRequestSchema,
106
- E2eeResponseSchema,
718
+ E2eeManagerGetFrameCryptorsRequest,
719
+ E2eeManagerGetFrameCryptorsResponse,
720
+ E2eeManagerSetEnabledRequest,
721
+ E2eeManagerSetEnabledResponse,
722
+ E2eeOptions,
723
+ E2eeRequest,
724
+ E2eeResponse,
107
725
  EncryptionState,
108
- EncryptionStateSchema,
109
726
  EncryptionType,
110
- EncryptionTypeSchema,
111
- FrameCryptorSchema,
112
- FrameCryptorSetEnabledRequestSchema,
113
- FrameCryptorSetEnabledResponseSchema,
114
- FrameCryptorSetKeyIndexRequestSchema,
115
- FrameCryptorSetKeyIndexResponseSchema,
116
- GetKeyRequestSchema,
117
- GetKeyResponseSchema,
118
- GetSharedKeyRequestSchema,
119
- GetSharedKeyResponseSchema,
120
- KeyProviderOptionsSchema,
121
- RatchetKeyRequestSchema,
122
- RatchetKeyResponseSchema,
123
- RatchetSharedKeyRequestSchema,
124
- RatchetSharedKeyResponseSchema,
125
- SetKeyRequestSchema,
126
- SetKeyResponseSchema,
127
- SetSharedKeyRequestSchema,
128
- SetSharedKeyResponseSchema,
129
- file_e2ee
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
130
745
  });
131
746
  //# sourceMappingURL=e2ee_pb.cjs.map