@livekit/rtc-node 0.13.13 → 0.13.16

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 (129) hide show
  1. package/README.md +3 -0
  2. package/dist/audio_stream.cjs +3 -2
  3. package/dist/audio_stream.cjs.map +1 -1
  4. package/dist/audio_stream.d.cts +10 -2
  5. package/dist/audio_stream.d.ts +10 -2
  6. package/dist/audio_stream.d.ts.map +1 -1
  7. package/dist/audio_stream.js +2 -1
  8. package/dist/audio_stream.js.map +1 -1
  9. package/dist/data_streams/index.d.cts +2 -2
  10. package/dist/data_streams/index.d.ts +2 -2
  11. package/dist/data_streams/stream_reader.cjs.map +1 -1
  12. package/dist/data_streams/stream_reader.d.cts +2 -2
  13. package/dist/data_streams/stream_reader.d.ts +2 -2
  14. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  15. package/dist/data_streams/stream_reader.js.map +1 -1
  16. package/dist/data_streams/stream_writer.cjs.map +1 -1
  17. package/dist/data_streams/stream_writer.d.cts +2 -2
  18. package/dist/data_streams/stream_writer.d.ts +2 -2
  19. package/dist/data_streams/stream_writer.d.ts.map +1 -1
  20. package/dist/data_streams/stream_writer.js.map +1 -1
  21. package/dist/data_streams/types.d.cts +2 -2
  22. package/dist/data_streams/types.d.ts +2 -2
  23. package/dist/ffi_client.cjs +4 -2
  24. package/dist/ffi_client.cjs.map +1 -1
  25. package/dist/ffi_client.d.cts +4 -1
  26. package/dist/ffi_client.d.ts +4 -1
  27. package/dist/ffi_client.d.ts.map +1 -1
  28. package/dist/ffi_client.js +4 -2
  29. package/dist/ffi_client.js.map +1 -1
  30. package/dist/index.d.cts +11 -8
  31. package/dist/index.d.ts +11 -8
  32. package/dist/participant.cjs +13 -15
  33. package/dist/participant.cjs.map +1 -1
  34. package/dist/participant.d.cts +8 -4
  35. package/dist/participant.d.ts +8 -4
  36. package/dist/participant.d.ts.map +1 -1
  37. package/dist/participant.js +5 -7
  38. package/dist/participant.js.map +1 -1
  39. package/dist/proto/audio_frame_pb.cjs +4 -2
  40. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  41. package/dist/proto/audio_frame_pb.d.cts +8 -0
  42. package/dist/proto/audio_frame_pb.d.ts +8 -0
  43. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  44. package/dist/proto/audio_frame_pb.js +4 -2
  45. package/dist/proto/audio_frame_pb.js.map +1 -1
  46. package/dist/proto/data_stream_pb.cjs +1549 -0
  47. package/dist/proto/data_stream_pb.cjs.map +1 -0
  48. package/dist/proto/data_stream_pb.d.cts +1358 -0
  49. package/dist/proto/data_stream_pb.d.ts +1358 -0
  50. package/dist/proto/data_stream_pb.d.ts.map +1 -0
  51. package/dist/proto/data_stream_pb.js +1473 -0
  52. package/dist/proto/data_stream_pb.js.map +1 -0
  53. package/dist/proto/ffi_pb.cjs +43 -3
  54. package/dist/proto/ffi_pb.cjs.map +1 -1
  55. package/dist/proto/ffi_pb.d.cts +251 -8
  56. package/dist/proto/ffi_pb.d.ts +251 -8
  57. package/dist/proto/ffi_pb.d.ts.map +1 -1
  58. package/dist/proto/ffi_pb.js +43 -3
  59. package/dist/proto/ffi_pb.js.map +1 -1
  60. package/dist/proto/participant_pb.cjs +5 -1
  61. package/dist/proto/participant_pb.cjs.map +1 -1
  62. package/dist/proto/participant_pb.d.cts +9 -1
  63. package/dist/proto/participant_pb.d.ts +9 -1
  64. package/dist/proto/participant_pb.d.ts.map +1 -1
  65. package/dist/proto/participant_pb.js +5 -1
  66. package/dist/proto/participant_pb.js.map +1 -1
  67. package/dist/proto/room_pb.cjs +99 -2
  68. package/dist/proto/room_pb.cjs.map +1 -1
  69. package/dist/proto/room_pb.d.cts +130 -2
  70. package/dist/proto/room_pb.d.ts +130 -2
  71. package/dist/proto/room_pb.d.ts.map +1 -1
  72. package/dist/proto/room_pb.js +97 -3
  73. package/dist/proto/room_pb.js.map +1 -1
  74. package/dist/proto/track_pb.cjs +27 -1
  75. package/dist/proto/track_pb.cjs.map +1 -1
  76. package/dist/proto/track_pb.d.cts +40 -1
  77. package/dist/proto/track_pb.d.ts +40 -1
  78. package/dist/proto/track_pb.d.ts.map +1 -1
  79. package/dist/proto/track_pb.js +26 -1
  80. package/dist/proto/track_pb.js.map +1 -1
  81. package/dist/room.cjs +79 -3
  82. package/dist/room.cjs.map +1 -1
  83. package/dist/room.d.cts +59 -8
  84. package/dist/room.d.ts +59 -8
  85. package/dist/room.d.ts.map +1 -1
  86. package/dist/room.js +77 -1
  87. package/dist/room.js.map +1 -1
  88. package/dist/{stream_reader-a8_oiaOi.d.cts → stream_reader-Ch2zvjU3.d.cts} +0 -1
  89. package/dist/{stream_reader-DWUV4eJB.d.ts → stream_reader-DRyR29vo.d.ts} +0 -1
  90. package/dist/track.cjs +23 -4
  91. package/dist/track.cjs.map +1 -1
  92. package/dist/track.d.cts +17 -4
  93. package/dist/track.d.ts +17 -4
  94. package/dist/track.d.ts.map +1 -1
  95. package/dist/track.js +23 -4
  96. package/dist/track.js.map +1 -1
  97. package/dist/track_publication.d.cts +9 -1
  98. package/dist/track_publication.d.ts +9 -1
  99. package/dist/version.cjs +1 -1
  100. package/dist/version.cjs.map +1 -1
  101. package/dist/version.d.cts +1 -1
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +1 -1
  104. package/dist/version.js.map +1 -1
  105. package/dist/video_source.d.cts +11 -2
  106. package/dist/video_source.d.ts +11 -2
  107. package/dist/video_stream.cjs +1 -2
  108. package/dist/video_stream.cjs.map +1 -1
  109. package/dist/video_stream.d.cts +8 -1
  110. package/dist/video_stream.d.ts +8 -1
  111. package/dist/video_stream.d.ts.map +1 -1
  112. package/dist/video_stream.js +0 -1
  113. package/dist/video_stream.js.map +1 -1
  114. package/package.json +7 -7
  115. package/src/audio_stream.ts +5 -1
  116. package/src/data_streams/stream_reader.ts +0 -1
  117. package/src/data_streams/stream_writer.ts +0 -1
  118. package/src/ffi_client.ts +9 -5
  119. package/src/participant.ts +13 -15
  120. package/src/proto/audio_frame_pb.ts +12 -0
  121. package/src/proto/data_stream_pb.ts +2515 -0
  122. package/src/proto/ffi_pb.ts +283 -1
  123. package/src/proto/participant_pb.ts +12 -0
  124. package/src/proto/room_pb.ts +212 -1
  125. package/src/proto/track_pb.ts +58 -0
  126. package/src/room.ts +79 -1
  127. package/src/track.ts +28 -4
  128. package/src/version.ts +1 -1
  129. package/src/video_stream.ts +1 -1
@@ -20,21 +20,29 @@ import {
20
20
  ParticipantKind,
21
21
  } from './proto/participant_pb.js';
22
22
  import {
23
+ ChatMessage as ChatMessageModel,
23
24
  DataStream_ByteHeader,
24
25
  DataStream_Chunk,
25
26
  DataStream_Header,
26
27
  DataStream_OperationType,
27
28
  DataStream_TextHeader,
28
29
  DataStream_Trailer,
30
+ EditChatMessageRequest,
31
+ TranscriptionSegment as ProtoTranscriptionSegment,
29
32
  type PublishDataCallback,
33
+ PublishDataRequest,
30
34
  type PublishDataResponse,
31
35
  type PublishSipDtmfCallback,
36
+ PublishSipDtmfRequest,
32
37
  type PublishSipDtmfResponse,
33
38
  type PublishTrackCallback,
39
+ PublishTrackRequest,
34
40
  type PublishTrackResponse,
35
41
  type PublishTranscriptionCallback,
42
+ PublishTranscriptionRequest,
36
43
  type PublishTranscriptionResponse,
37
44
  type SendChatMessageCallback,
45
+ SendChatMessageRequest,
38
46
  type SendChatMessageResponse,
39
47
  type SendStreamChunkCallback,
40
48
  SendStreamChunkRequest,
@@ -46,28 +54,18 @@ import {
46
54
  SendStreamTrailerRequest,
47
55
  type SendStreamTrailerResponse,
48
56
  type SetLocalAttributesCallback,
57
+ SetLocalAttributesRequest,
49
58
  type SetLocalAttributesResponse,
50
59
  type SetLocalMetadataCallback,
60
+ SetLocalMetadataRequest,
51
61
  type SetLocalMetadataResponse,
52
62
  type SetLocalNameCallback,
63
+ SetLocalNameRequest,
53
64
  type SetLocalNameResponse,
54
65
  type TrackPublishOptions,
55
66
  type UnpublishTrackCallback,
56
- type UnpublishTrackResponse,
57
- } from './proto/room_pb.js';
58
- import { ChatMessage as ChatMessageModel } from './proto/room_pb.js';
59
- import {
60
- EditChatMessageRequest,
61
- TranscriptionSegment as ProtoTranscriptionSegment,
62
- PublishDataRequest,
63
- PublishSipDtmfRequest,
64
- PublishTrackRequest,
65
- PublishTranscriptionRequest,
66
- SendChatMessageRequest,
67
- SetLocalAttributesRequest,
68
- SetLocalMetadataRequest,
69
- SetLocalNameRequest,
70
67
  UnpublishTrackRequest,
68
+ type UnpublishTrackResponse,
71
69
  } from './proto/room_pb.js';
72
70
  import type {
73
71
  PerformRpcCallback,
@@ -460,7 +458,7 @@ export class LocalParticipant extends Participant {
460
458
  const fileStats = await stat(path);
461
459
  const file = await open(path);
462
460
  try {
463
- const stream: ReadableStream<Uint8Array> = file.readableWebStream({ type: 'bytes' });
461
+ const stream: ReadableStream<Uint8Array> = file.readableWebStream();
464
462
  const streamId = crypto.randomUUID();
465
463
  const destinationIdentities = options?.destinationIdentities;
466
464
 
@@ -211,6 +211,11 @@ export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
211
211
  */
212
212
  audioFilterOptions?: string;
213
213
 
214
+ /**
215
+ * @generated from field: optional uint32 frame_size_ms = 7;
216
+ */
217
+ frameSizeMs?: number;
218
+
214
219
  constructor(data?: PartialMessage<NewAudioStreamRequest>) {
215
220
  super();
216
221
  proto2.util.initPartial(data, this);
@@ -225,6 +230,7 @@ export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
225
230
  { no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
226
231
  { no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
227
232
  { no: 6, name: "audio_filter_options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
233
+ { no: 7, name: "frame_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
228
234
  ]);
229
235
 
230
236
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest {
@@ -320,6 +326,11 @@ export class AudioStreamFromParticipantRequest extends Message<AudioStreamFromPa
320
326
  */
321
327
  audioFilterOptions?: string;
322
328
 
329
+ /**
330
+ * @generated from field: optional uint32 frame_size_ms = 9;
331
+ */
332
+ frameSizeMs?: number;
333
+
323
334
  constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>) {
324
335
  super();
325
336
  proto2.util.initPartial(data, this);
@@ -335,6 +346,7 @@ export class AudioStreamFromParticipantRequest extends Message<AudioStreamFromPa
335
346
  { no: 6, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
336
347
  { no: 7, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
337
348
  { no: 8, name: "audio_filter_options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
349
+ { no: 9, name: "frame_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
338
350
  ]);
339
351
 
340
352
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantRequest {