@livekit/rtc-node 0.13.20 → 0.13.22

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 (75) hide show
  1. package/Cargo.toml +6 -3
  2. package/dist/async_queue.cjs +80 -0
  3. package/dist/async_queue.cjs.map +1 -0
  4. package/dist/async_queue.d.cts +30 -0
  5. package/dist/async_queue.d.ts +30 -0
  6. package/dist/async_queue.d.ts.map +1 -0
  7. package/dist/async_queue.js +56 -0
  8. package/dist/async_queue.js.map +1 -0
  9. package/dist/audio_mixer.cjs +281 -0
  10. package/dist/audio_mixer.cjs.map +1 -0
  11. package/dist/audio_mixer.d.cts +121 -0
  12. package/dist/audio_mixer.d.ts +121 -0
  13. package/dist/audio_mixer.d.ts.map +1 -0
  14. package/dist/audio_mixer.js +256 -0
  15. package/dist/audio_mixer.js.map +1 -0
  16. package/dist/index.cjs +3 -0
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +3 -0
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/participant.cjs +43 -32
  24. package/dist/participant.cjs.map +1 -1
  25. package/dist/participant.d.cts +3 -0
  26. package/dist/participant.d.ts +3 -0
  27. package/dist/participant.d.ts.map +1 -1
  28. package/dist/participant.js +43 -32
  29. package/dist/participant.js.map +1 -1
  30. package/dist/proto/data_stream_pb.cjs +91 -2
  31. package/dist/proto/data_stream_pb.cjs.map +1 -1
  32. package/dist/proto/data_stream_pb.d.cts +92 -1
  33. package/dist/proto/data_stream_pb.d.ts +92 -1
  34. package/dist/proto/data_stream_pb.d.ts.map +1 -1
  35. package/dist/proto/data_stream_pb.js +88 -2
  36. package/dist/proto/data_stream_pb.js.map +1 -1
  37. package/dist/proto/ffi_pb.cjs +6 -3
  38. package/dist/proto/ffi_pb.cjs.map +1 -1
  39. package/dist/proto/ffi_pb.d.cts +19 -1
  40. package/dist/proto/ffi_pb.d.ts +19 -1
  41. package/dist/proto/ffi_pb.d.ts.map +1 -1
  42. package/dist/proto/ffi_pb.js +7 -4
  43. package/dist/proto/ffi_pb.js.map +1 -1
  44. package/dist/proto/room_pb.cjs +32 -2
  45. package/dist/proto/room_pb.cjs.map +1 -1
  46. package/dist/proto/room_pb.d.cts +38 -2
  47. package/dist/proto/room_pb.d.ts +38 -2
  48. package/dist/proto/room_pb.d.ts.map +1 -1
  49. package/dist/proto/room_pb.js +31 -2
  50. package/dist/proto/room_pb.js.map +1 -1
  51. package/dist/room.cjs +173 -80
  52. package/dist/room.cjs.map +1 -1
  53. package/dist/room.d.cts +16 -3
  54. package/dist/room.d.ts +16 -3
  55. package/dist/room.d.ts.map +1 -1
  56. package/dist/room.js +174 -81
  57. package/dist/room.js.map +1 -1
  58. package/dist/version.cjs +1 -1
  59. package/dist/version.cjs.map +1 -1
  60. package/dist/version.d.cts +1 -1
  61. package/dist/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/dist/version.js.map +1 -1
  64. package/package.json +9 -8
  65. package/src/async_queue.test.ts +250 -0
  66. package/src/async_queue.ts +80 -0
  67. package/src/audio_mixer.test.ts +167 -0
  68. package/src/audio_mixer.ts +407 -0
  69. package/src/index.ts +1 -0
  70. package/src/participant.ts +48 -30
  71. package/src/proto/data_stream_pb.ts +159 -0
  72. package/src/proto/ffi_pb.ts +22 -1
  73. package/src/proto/room_pb.ts +64 -1
  74. package/src/room.ts +193 -91
  75. package/src/version.ts +1 -1
@@ -1279,7 +1279,8 @@ _TrackPublishOptions.fields = proto2.util.newFieldList(() => [
1279
1279
  { no: 5, name: "red", kind: "scalar", T: 8, opt: true },
1280
1280
  { no: 6, name: "simulcast", kind: "scalar", T: 8, opt: true },
1281
1281
  { no: 7, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true },
1282
- { no: 8, name: "stream", kind: "scalar", T: 9, opt: true }
1282
+ { no: 8, name: "stream", kind: "scalar", T: 9, opt: true },
1283
+ { no: 9, name: "preconnect_buffer", kind: "scalar", T: 8, opt: true }
1283
1284
  ]);
1284
1285
  let TrackPublishOptions = _TrackPublishOptions;
1285
1286
  const _IceServer = class _IceServer extends Message {
@@ -1370,7 +1371,8 @@ _RoomOptions.fields = proto2.util.newFieldList(() => [
1370
1371
  { no: 3, name: "dynacast", kind: "scalar", T: 8, opt: true },
1371
1372
  { no: 4, name: "e2ee", kind: "message", T: E2eeOptions, opt: true },
1372
1373
  { no: 5, name: "rtc_config", kind: "message", T: RtcConfig, opt: true },
1373
- { no: 6, name: "join_retries", kind: "scalar", T: 13, opt: true }
1374
+ { no: 6, name: "join_retries", kind: "scalar", T: 13, opt: true },
1375
+ { no: 7, name: "encryption", kind: "message", T: E2eeOptions, opt: true }
1374
1376
  ]);
1375
1377
  let RoomOptions = _RoomOptions;
1376
1378
  const _TranscriptionSegment = class _TranscriptionSegment extends Message {
@@ -1496,6 +1498,7 @@ _RoomEvent.fields = proto2.util.newFieldList(() => [
1496
1498
  { no: 17, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1497
1499
  { no: 18, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1498
1500
  { no: 19, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
1501
+ { no: 39, name: "participant_encryption_status_changed", kind: "message", T: ParticipantEncryptionStatusChanged, oneof: "message" },
1499
1502
  { no: 20, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1500
1503
  { no: 21, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1501
1504
  { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
@@ -2062,6 +2065,31 @@ _ParticipantAttributesChanged.fields = proto2.util.newFieldList(() => [
2062
2065
  { no: 3, name: "changed_attributes", kind: "message", T: AttributesEntry, repeated: true }
2063
2066
  ]);
2064
2067
  let ParticipantAttributesChanged = _ParticipantAttributesChanged;
2068
+ const _ParticipantEncryptionStatusChanged = class _ParticipantEncryptionStatusChanged extends Message {
2069
+ constructor(data) {
2070
+ super();
2071
+ proto2.util.initPartial(data, this);
2072
+ }
2073
+ static fromBinary(bytes, options) {
2074
+ return new _ParticipantEncryptionStatusChanged().fromBinary(bytes, options);
2075
+ }
2076
+ static fromJson(jsonValue, options) {
2077
+ return new _ParticipantEncryptionStatusChanged().fromJson(jsonValue, options);
2078
+ }
2079
+ static fromJsonString(jsonString, options) {
2080
+ return new _ParticipantEncryptionStatusChanged().fromJsonString(jsonString, options);
2081
+ }
2082
+ static equals(a, b) {
2083
+ return proto2.util.equals(_ParticipantEncryptionStatusChanged, a, b);
2084
+ }
2085
+ };
2086
+ _ParticipantEncryptionStatusChanged.runtime = proto2;
2087
+ _ParticipantEncryptionStatusChanged.typeName = "livekit.proto.ParticipantEncryptionStatusChanged";
2088
+ _ParticipantEncryptionStatusChanged.fields = proto2.util.newFieldList(() => [
2089
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2090
+ { no: 2, name: "is_encrypted", kind: "scalar", T: 8, req: true }
2091
+ ]);
2092
+ let ParticipantEncryptionStatusChanged = _ParticipantEncryptionStatusChanged;
2065
2093
  const _ParticipantNameChanged = class _ParticipantNameChanged extends Message {
2066
2094
  constructor(data) {
2067
2095
  super();
@@ -3107,6 +3135,7 @@ export {
3107
3135
  ParticipantAttributesChanged,
3108
3136
  ParticipantConnected,
3109
3137
  ParticipantDisconnected,
3138
+ ParticipantEncryptionStatusChanged,
3110
3139
  ParticipantMetadataChanged,
3111
3140
  ParticipantNameChanged,
3112
3141
  ParticipantsUpdated,