@livekit/rtc-node 0.13.2 → 0.13.4
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.
- package/dist/data_streams/index.cjs +25 -0
- package/dist/data_streams/index.cjs.map +1 -0
- package/dist/data_streams/index.d.cts +11 -0
- package/dist/data_streams/index.d.ts +11 -0
- package/dist/data_streams/index.d.ts.map +1 -0
- package/dist/data_streams/index.js +3 -0
- package/dist/data_streams/index.js.map +1 -0
- package/dist/data_streams/stream_reader.cjs +145 -0
- package/dist/data_streams/stream_reader.cjs.map +1 -0
- package/dist/data_streams/stream_reader.d.cts +10 -0
- package/dist/data_streams/stream_reader.d.ts +10 -0
- package/dist/data_streams/stream_reader.d.ts.map +1 -0
- package/dist/data_streams/stream_reader.js +120 -0
- package/dist/data_streams/stream_reader.js.map +1 -0
- package/dist/data_streams/stream_writer.cjs +51 -0
- package/dist/data_streams/stream_writer.cjs.map +1 -0
- package/dist/data_streams/stream_writer.d.cts +26 -0
- package/dist/data_streams/stream_writer.d.ts +26 -0
- package/dist/data_streams/stream_writer.d.ts.map +1 -0
- package/dist/data_streams/stream_writer.js +26 -0
- package/dist/data_streams/stream_writer.js.map +1 -0
- package/dist/data_streams/types.cjs +17 -0
- package/dist/data_streams/types.cjs.map +1 -0
- package/dist/data_streams/types.d.cts +10 -0
- package/dist/data_streams/types.d.ts +10 -0
- package/dist/data_streams/types.d.ts.map +1 -0
- package/dist/data_streams/types.js +1 -0
- package/dist/data_streams/types.js.map +1 -0
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/log.cjs +42 -0
- package/dist/log.cjs.map +1 -0
- package/dist/log.d.cts +7 -0
- package/dist/log.d.ts +7 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/log.js +18 -0
- package/dist/log.js.map +1 -0
- package/dist/napi/native.d.cjs.map +1 -1
- package/dist/napi/native.d.ts +5 -5
- package/dist/native.d.ts +5 -5
- package/dist/participant.cjs +260 -16
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +40 -6
- package/dist/participant.d.ts +40 -6
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +263 -5
- package/dist/participant.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +14 -3
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +81 -7
- package/dist/proto/ffi_pb.d.ts +81 -7
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +15 -4
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +488 -30
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +412 -50
- package/dist/proto/room_pb.d.ts +412 -50
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +471 -29
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.cjs.map +1 -1
- package/dist/proto/video_frame_pb.d.cts +3 -0
- package/dist/proto/video_frame_pb.d.ts +3 -0
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.cjs +202 -45
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +21 -3
- package/dist/room.d.ts +21 -3
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +203 -45
- package/dist/room.js.map +1 -1
- package/dist/types-BWsKf9LP.d.cts +93 -0
- package/dist/types-Ca3IVRvo.d.ts +93 -0
- package/dist/utils.cjs +51 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +7 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +25 -0
- package/dist/utils.js.map +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +2 -0
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +2 -0
- package/dist/video_frame.js.map +1 -1
- package/package.json +9 -7
- package/src/data_streams/index.ts +7 -0
- package/src/data_streams/stream_reader.ts +166 -0
- package/src/data_streams/stream_writer.ts +36 -0
- package/src/data_streams/types.ts +61 -0
- package/src/index.ts +1 -0
- package/src/log.ts +25 -0
- package/src/napi/native.d.ts +5 -5
- package/src/participant.ts +351 -29
- package/src/proto/ffi_pb.ts +86 -1
- package/src/proto/room_pb.ts +788 -68
- package/src/proto/video_frame_pb.ts +3 -0
- package/src/room.ts +251 -68
- package/src/utils.ts +33 -0
- package/src/version.ts +1 -1
- package/src/video_frame.ts +2 -0
package/dist/proto/room_pb.js
CHANGED
|
@@ -1505,8 +1505,10 @@ _RoomEvent.fields = proto2.util.newFieldList(() => [
|
|
|
1505
1505
|
{ no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
|
|
1506
1506
|
{ no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
|
|
1507
1507
|
{ no: 29, name: "chat_message", kind: "message", T: ChatMessageReceived, oneof: "message" },
|
|
1508
|
-
{ no: 30, name: "
|
|
1509
|
-
{ no: 31, name: "
|
|
1508
|
+
{ no: 30, name: "stream_header_received", kind: "message", T: DataStreamHeaderReceived, oneof: "message" },
|
|
1509
|
+
{ no: 31, name: "stream_chunk_received", kind: "message", T: DataStreamChunkReceived, oneof: "message" },
|
|
1510
|
+
{ no: 32, name: "stream_trailer_received", kind: "message", T: DataStreamTrailerReceived, oneof: "message" },
|
|
1511
|
+
{ no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" }
|
|
1510
1512
|
]);
|
|
1511
1513
|
let RoomEvent = _RoomEvent;
|
|
1512
1514
|
const _RoomInfo = class _RoomInfo extends Message {
|
|
@@ -1532,7 +1534,9 @@ _RoomInfo.typeName = "livekit.proto.RoomInfo";
|
|
|
1532
1534
|
_RoomInfo.fields = proto2.util.newFieldList(() => [
|
|
1533
1535
|
{ no: 1, name: "sid", kind: "scalar", T: 9, opt: true },
|
|
1534
1536
|
{ no: 2, name: "name", kind: "scalar", T: 9, req: true },
|
|
1535
|
-
{ no: 3, name: "metadata", kind: "scalar", T: 9, req: true }
|
|
1537
|
+
{ no: 3, name: "metadata", kind: "scalar", T: 9, req: true },
|
|
1538
|
+
{ no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true },
|
|
1539
|
+
{ no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true }
|
|
1536
1540
|
]);
|
|
1537
1541
|
let RoomInfo = _RoomInfo;
|
|
1538
1542
|
const _OwnedRoom = class _OwnedRoom extends Message {
|
|
@@ -2430,45 +2434,45 @@ _DataStream_TextHeader.runtime = proto2;
|
|
|
2430
2434
|
_DataStream_TextHeader.typeName = "livekit.proto.DataStream.TextHeader";
|
|
2431
2435
|
_DataStream_TextHeader.fields = proto2.util.newFieldList(() => [
|
|
2432
2436
|
{ no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType), req: true },
|
|
2433
|
-
{ no: 2, name: "version", kind: "scalar", T: 5,
|
|
2434
|
-
{ no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9,
|
|
2437
|
+
{ no: 2, name: "version", kind: "scalar", T: 5, opt: true },
|
|
2438
|
+
{ no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9, opt: true },
|
|
2435
2439
|
{ no: 4, name: "attached_stream_ids", kind: "scalar", T: 9, repeated: true },
|
|
2436
|
-
{ no: 5, name: "generated", kind: "scalar", T: 8,
|
|
2440
|
+
{ no: 5, name: "generated", kind: "scalar", T: 8, opt: true }
|
|
2437
2441
|
]);
|
|
2438
2442
|
let DataStream_TextHeader = _DataStream_TextHeader;
|
|
2439
|
-
const
|
|
2443
|
+
const _DataStream_ByteHeader = class _DataStream_ByteHeader extends Message {
|
|
2440
2444
|
constructor(data) {
|
|
2441
2445
|
super();
|
|
2442
2446
|
proto2.util.initPartial(data, this);
|
|
2443
2447
|
}
|
|
2444
2448
|
static fromBinary(bytes, options) {
|
|
2445
|
-
return new
|
|
2449
|
+
return new _DataStream_ByteHeader().fromBinary(bytes, options);
|
|
2446
2450
|
}
|
|
2447
2451
|
static fromJson(jsonValue, options) {
|
|
2448
|
-
return new
|
|
2452
|
+
return new _DataStream_ByteHeader().fromJson(jsonValue, options);
|
|
2449
2453
|
}
|
|
2450
2454
|
static fromJsonString(jsonString, options) {
|
|
2451
|
-
return new
|
|
2455
|
+
return new _DataStream_ByteHeader().fromJsonString(jsonString, options);
|
|
2452
2456
|
}
|
|
2453
2457
|
static equals(a, b) {
|
|
2454
|
-
return proto2.util.equals(
|
|
2458
|
+
return proto2.util.equals(_DataStream_ByteHeader, a, b);
|
|
2455
2459
|
}
|
|
2456
2460
|
};
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
{ no: 1, name: "
|
|
2461
|
+
_DataStream_ByteHeader.runtime = proto2;
|
|
2462
|
+
_DataStream_ByteHeader.typeName = "livekit.proto.DataStream.ByteHeader";
|
|
2463
|
+
_DataStream_ByteHeader.fields = proto2.util.newFieldList(() => [
|
|
2464
|
+
{ no: 1, name: "name", kind: "scalar", T: 9, req: true }
|
|
2461
2465
|
]);
|
|
2462
|
-
let
|
|
2466
|
+
let DataStream_ByteHeader = _DataStream_ByteHeader;
|
|
2463
2467
|
const _DataStream_Header = class _DataStream_Header extends Message {
|
|
2464
2468
|
constructor(data) {
|
|
2465
2469
|
super();
|
|
2466
2470
|
/**
|
|
2467
|
-
* user defined
|
|
2471
|
+
* user defined attributes map that can carry additional info
|
|
2468
2472
|
*
|
|
2469
|
-
* @generated from field: map<string, string>
|
|
2473
|
+
* @generated from field: map<string, string> attributes = 6;
|
|
2470
2474
|
*/
|
|
2471
|
-
this.
|
|
2475
|
+
this.attributes = {};
|
|
2472
2476
|
/**
|
|
2473
2477
|
* oneof to choose between specific header types
|
|
2474
2478
|
*
|
|
@@ -2495,17 +2499,16 @@ _DataStream_Header.typeName = "livekit.proto.DataStream.Header";
|
|
|
2495
2499
|
_DataStream_Header.fields = proto2.util.newFieldList(() => [
|
|
2496
2500
|
{ no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
|
|
2497
2501
|
{ no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
|
|
2498
|
-
{ no: 3, name: "
|
|
2499
|
-
{ no: 4, name: "
|
|
2502
|
+
{ no: 3, name: "mime_type", kind: "scalar", T: 9, req: true },
|
|
2503
|
+
{ no: 4, name: "topic", kind: "scalar", T: 9, req: true },
|
|
2500
2504
|
{ no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
|
|
2501
|
-
{ no: 6, name: "
|
|
2502
|
-
{ no: 7, name: "extensions", kind: "map", K: 9, V: {
|
|
2505
|
+
{ no: 6, name: "attributes", kind: "map", K: 9, V: {
|
|
2503
2506
|
kind: "scalar",
|
|
2504
2507
|
T: 9
|
|
2505
2508
|
/* ScalarType.STRING */
|
|
2506
2509
|
} },
|
|
2507
|
-
{ no:
|
|
2508
|
-
{ no:
|
|
2510
|
+
{ no: 7, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
|
|
2511
|
+
{ no: 8, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" }
|
|
2509
2512
|
]);
|
|
2510
2513
|
let DataStream_Header = _DataStream_Header;
|
|
2511
2514
|
const _DataStream_Chunk = class _DataStream_Chunk extends Message {
|
|
@@ -2532,11 +2535,434 @@ _DataStream_Chunk.fields = proto2.util.newFieldList(() => [
|
|
|
2532
2535
|
{ no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
|
|
2533
2536
|
{ no: 2, name: "chunk_index", kind: "scalar", T: 4, req: true },
|
|
2534
2537
|
{ no: 3, name: "content", kind: "scalar", T: 12, req: true },
|
|
2535
|
-
{ no: 4, name: "
|
|
2536
|
-
{ no: 5, name: "
|
|
2537
|
-
{ no: 6, name: "iv", kind: "scalar", T: 12, opt: true }
|
|
2538
|
+
{ no: 4, name: "version", kind: "scalar", T: 5, opt: true },
|
|
2539
|
+
{ no: 5, name: "iv", kind: "scalar", T: 12, opt: true }
|
|
2538
2540
|
]);
|
|
2539
2541
|
let DataStream_Chunk = _DataStream_Chunk;
|
|
2542
|
+
const _DataStream_Trailer = class _DataStream_Trailer extends Message {
|
|
2543
|
+
constructor(data) {
|
|
2544
|
+
super();
|
|
2545
|
+
/**
|
|
2546
|
+
* finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
|
|
2547
|
+
*
|
|
2548
|
+
* @generated from field: map<string, string> attributes = 3;
|
|
2549
|
+
*/
|
|
2550
|
+
this.attributes = {};
|
|
2551
|
+
proto2.util.initPartial(data, this);
|
|
2552
|
+
}
|
|
2553
|
+
static fromBinary(bytes, options) {
|
|
2554
|
+
return new _DataStream_Trailer().fromBinary(bytes, options);
|
|
2555
|
+
}
|
|
2556
|
+
static fromJson(jsonValue, options) {
|
|
2557
|
+
return new _DataStream_Trailer().fromJson(jsonValue, options);
|
|
2558
|
+
}
|
|
2559
|
+
static fromJsonString(jsonString, options) {
|
|
2560
|
+
return new _DataStream_Trailer().fromJsonString(jsonString, options);
|
|
2561
|
+
}
|
|
2562
|
+
static equals(a, b) {
|
|
2563
|
+
return proto2.util.equals(_DataStream_Trailer, a, b);
|
|
2564
|
+
}
|
|
2565
|
+
};
|
|
2566
|
+
_DataStream_Trailer.runtime = proto2;
|
|
2567
|
+
_DataStream_Trailer.typeName = "livekit.proto.DataStream.Trailer";
|
|
2568
|
+
_DataStream_Trailer.fields = proto2.util.newFieldList(() => [
|
|
2569
|
+
{ no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
|
|
2570
|
+
{ no: 2, name: "reason", kind: "scalar", T: 9, req: true },
|
|
2571
|
+
{ no: 3, name: "attributes", kind: "map", K: 9, V: {
|
|
2572
|
+
kind: "scalar",
|
|
2573
|
+
T: 9
|
|
2574
|
+
/* ScalarType.STRING */
|
|
2575
|
+
} }
|
|
2576
|
+
]);
|
|
2577
|
+
let DataStream_Trailer = _DataStream_Trailer;
|
|
2578
|
+
const _DataStreamHeaderReceived = class _DataStreamHeaderReceived extends Message {
|
|
2579
|
+
constructor(data) {
|
|
2580
|
+
super();
|
|
2581
|
+
proto2.util.initPartial(data, this);
|
|
2582
|
+
}
|
|
2583
|
+
static fromBinary(bytes, options) {
|
|
2584
|
+
return new _DataStreamHeaderReceived().fromBinary(bytes, options);
|
|
2585
|
+
}
|
|
2586
|
+
static fromJson(jsonValue, options) {
|
|
2587
|
+
return new _DataStreamHeaderReceived().fromJson(jsonValue, options);
|
|
2588
|
+
}
|
|
2589
|
+
static fromJsonString(jsonString, options) {
|
|
2590
|
+
return new _DataStreamHeaderReceived().fromJsonString(jsonString, options);
|
|
2591
|
+
}
|
|
2592
|
+
static equals(a, b) {
|
|
2593
|
+
return proto2.util.equals(_DataStreamHeaderReceived, a, b);
|
|
2594
|
+
}
|
|
2595
|
+
};
|
|
2596
|
+
_DataStreamHeaderReceived.runtime = proto2;
|
|
2597
|
+
_DataStreamHeaderReceived.typeName = "livekit.proto.DataStreamHeaderReceived";
|
|
2598
|
+
_DataStreamHeaderReceived.fields = proto2.util.newFieldList(() => [
|
|
2599
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
|
|
2600
|
+
{ no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }
|
|
2601
|
+
]);
|
|
2602
|
+
let DataStreamHeaderReceived = _DataStreamHeaderReceived;
|
|
2603
|
+
const _DataStreamChunkReceived = class _DataStreamChunkReceived extends Message {
|
|
2604
|
+
constructor(data) {
|
|
2605
|
+
super();
|
|
2606
|
+
proto2.util.initPartial(data, this);
|
|
2607
|
+
}
|
|
2608
|
+
static fromBinary(bytes, options) {
|
|
2609
|
+
return new _DataStreamChunkReceived().fromBinary(bytes, options);
|
|
2610
|
+
}
|
|
2611
|
+
static fromJson(jsonValue, options) {
|
|
2612
|
+
return new _DataStreamChunkReceived().fromJson(jsonValue, options);
|
|
2613
|
+
}
|
|
2614
|
+
static fromJsonString(jsonString, options) {
|
|
2615
|
+
return new _DataStreamChunkReceived().fromJsonString(jsonString, options);
|
|
2616
|
+
}
|
|
2617
|
+
static equals(a, b) {
|
|
2618
|
+
return proto2.util.equals(_DataStreamChunkReceived, a, b);
|
|
2619
|
+
}
|
|
2620
|
+
};
|
|
2621
|
+
_DataStreamChunkReceived.runtime = proto2;
|
|
2622
|
+
_DataStreamChunkReceived.typeName = "livekit.proto.DataStreamChunkReceived";
|
|
2623
|
+
_DataStreamChunkReceived.fields = proto2.util.newFieldList(() => [
|
|
2624
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
|
|
2625
|
+
{ no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }
|
|
2626
|
+
]);
|
|
2627
|
+
let DataStreamChunkReceived = _DataStreamChunkReceived;
|
|
2628
|
+
const _DataStreamTrailerReceived = class _DataStreamTrailerReceived extends Message {
|
|
2629
|
+
constructor(data) {
|
|
2630
|
+
super();
|
|
2631
|
+
proto2.util.initPartial(data, this);
|
|
2632
|
+
}
|
|
2633
|
+
static fromBinary(bytes, options) {
|
|
2634
|
+
return new _DataStreamTrailerReceived().fromBinary(bytes, options);
|
|
2635
|
+
}
|
|
2636
|
+
static fromJson(jsonValue, options) {
|
|
2637
|
+
return new _DataStreamTrailerReceived().fromJson(jsonValue, options);
|
|
2638
|
+
}
|
|
2639
|
+
static fromJsonString(jsonString, options) {
|
|
2640
|
+
return new _DataStreamTrailerReceived().fromJsonString(jsonString, options);
|
|
2641
|
+
}
|
|
2642
|
+
static equals(a, b) {
|
|
2643
|
+
return proto2.util.equals(_DataStreamTrailerReceived, a, b);
|
|
2644
|
+
}
|
|
2645
|
+
};
|
|
2646
|
+
_DataStreamTrailerReceived.runtime = proto2;
|
|
2647
|
+
_DataStreamTrailerReceived.typeName = "livekit.proto.DataStreamTrailerReceived";
|
|
2648
|
+
_DataStreamTrailerReceived.fields = proto2.util.newFieldList(() => [
|
|
2649
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
|
|
2650
|
+
{ no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }
|
|
2651
|
+
]);
|
|
2652
|
+
let DataStreamTrailerReceived = _DataStreamTrailerReceived;
|
|
2653
|
+
const _SendStreamHeaderRequest = class _SendStreamHeaderRequest extends Message {
|
|
2654
|
+
constructor(data) {
|
|
2655
|
+
super();
|
|
2656
|
+
/**
|
|
2657
|
+
* @generated from field: repeated string destination_identities = 3;
|
|
2658
|
+
*/
|
|
2659
|
+
this.destinationIdentities = [];
|
|
2660
|
+
proto2.util.initPartial(data, this);
|
|
2661
|
+
}
|
|
2662
|
+
static fromBinary(bytes, options) {
|
|
2663
|
+
return new _SendStreamHeaderRequest().fromBinary(bytes, options);
|
|
2664
|
+
}
|
|
2665
|
+
static fromJson(jsonValue, options) {
|
|
2666
|
+
return new _SendStreamHeaderRequest().fromJson(jsonValue, options);
|
|
2667
|
+
}
|
|
2668
|
+
static fromJsonString(jsonString, options) {
|
|
2669
|
+
return new _SendStreamHeaderRequest().fromJsonString(jsonString, options);
|
|
2670
|
+
}
|
|
2671
|
+
static equals(a, b) {
|
|
2672
|
+
return proto2.util.equals(_SendStreamHeaderRequest, a, b);
|
|
2673
|
+
}
|
|
2674
|
+
};
|
|
2675
|
+
_SendStreamHeaderRequest.runtime = proto2;
|
|
2676
|
+
_SendStreamHeaderRequest.typeName = "livekit.proto.SendStreamHeaderRequest";
|
|
2677
|
+
_SendStreamHeaderRequest.fields = proto2.util.newFieldList(() => [
|
|
2678
|
+
{ no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
|
|
2679
|
+
{ no: 2, name: "header", kind: "message", T: DataStream_Header, req: true },
|
|
2680
|
+
{ no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
2681
|
+
{ no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
|
|
2682
|
+
]);
|
|
2683
|
+
let SendStreamHeaderRequest = _SendStreamHeaderRequest;
|
|
2684
|
+
const _SendStreamChunkRequest = class _SendStreamChunkRequest extends Message {
|
|
2685
|
+
constructor(data) {
|
|
2686
|
+
super();
|
|
2687
|
+
/**
|
|
2688
|
+
* @generated from field: repeated string destination_identities = 3;
|
|
2689
|
+
*/
|
|
2690
|
+
this.destinationIdentities = [];
|
|
2691
|
+
proto2.util.initPartial(data, this);
|
|
2692
|
+
}
|
|
2693
|
+
static fromBinary(bytes, options) {
|
|
2694
|
+
return new _SendStreamChunkRequest().fromBinary(bytes, options);
|
|
2695
|
+
}
|
|
2696
|
+
static fromJson(jsonValue, options) {
|
|
2697
|
+
return new _SendStreamChunkRequest().fromJson(jsonValue, options);
|
|
2698
|
+
}
|
|
2699
|
+
static fromJsonString(jsonString, options) {
|
|
2700
|
+
return new _SendStreamChunkRequest().fromJsonString(jsonString, options);
|
|
2701
|
+
}
|
|
2702
|
+
static equals(a, b) {
|
|
2703
|
+
return proto2.util.equals(_SendStreamChunkRequest, a, b);
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
_SendStreamChunkRequest.runtime = proto2;
|
|
2707
|
+
_SendStreamChunkRequest.typeName = "livekit.proto.SendStreamChunkRequest";
|
|
2708
|
+
_SendStreamChunkRequest.fields = proto2.util.newFieldList(() => [
|
|
2709
|
+
{ no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
|
|
2710
|
+
{ no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true },
|
|
2711
|
+
{ no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
2712
|
+
{ no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
|
|
2713
|
+
]);
|
|
2714
|
+
let SendStreamChunkRequest = _SendStreamChunkRequest;
|
|
2715
|
+
const _SendStreamTrailerRequest = class _SendStreamTrailerRequest extends Message {
|
|
2716
|
+
constructor(data) {
|
|
2717
|
+
super();
|
|
2718
|
+
/**
|
|
2719
|
+
* @generated from field: repeated string destination_identities = 3;
|
|
2720
|
+
*/
|
|
2721
|
+
this.destinationIdentities = [];
|
|
2722
|
+
proto2.util.initPartial(data, this);
|
|
2723
|
+
}
|
|
2724
|
+
static fromBinary(bytes, options) {
|
|
2725
|
+
return new _SendStreamTrailerRequest().fromBinary(bytes, options);
|
|
2726
|
+
}
|
|
2727
|
+
static fromJson(jsonValue, options) {
|
|
2728
|
+
return new _SendStreamTrailerRequest().fromJson(jsonValue, options);
|
|
2729
|
+
}
|
|
2730
|
+
static fromJsonString(jsonString, options) {
|
|
2731
|
+
return new _SendStreamTrailerRequest().fromJsonString(jsonString, options);
|
|
2732
|
+
}
|
|
2733
|
+
static equals(a, b) {
|
|
2734
|
+
return proto2.util.equals(_SendStreamTrailerRequest, a, b);
|
|
2735
|
+
}
|
|
2736
|
+
};
|
|
2737
|
+
_SendStreamTrailerRequest.runtime = proto2;
|
|
2738
|
+
_SendStreamTrailerRequest.typeName = "livekit.proto.SendStreamTrailerRequest";
|
|
2739
|
+
_SendStreamTrailerRequest.fields = proto2.util.newFieldList(() => [
|
|
2740
|
+
{ no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
|
|
2741
|
+
{ no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true },
|
|
2742
|
+
{ no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
2743
|
+
{ no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
|
|
2744
|
+
]);
|
|
2745
|
+
let SendStreamTrailerRequest = _SendStreamTrailerRequest;
|
|
2746
|
+
const _SendStreamHeaderResponse = class _SendStreamHeaderResponse extends Message {
|
|
2747
|
+
constructor(data) {
|
|
2748
|
+
super();
|
|
2749
|
+
proto2.util.initPartial(data, this);
|
|
2750
|
+
}
|
|
2751
|
+
static fromBinary(bytes, options) {
|
|
2752
|
+
return new _SendStreamHeaderResponse().fromBinary(bytes, options);
|
|
2753
|
+
}
|
|
2754
|
+
static fromJson(jsonValue, options) {
|
|
2755
|
+
return new _SendStreamHeaderResponse().fromJson(jsonValue, options);
|
|
2756
|
+
}
|
|
2757
|
+
static fromJsonString(jsonString, options) {
|
|
2758
|
+
return new _SendStreamHeaderResponse().fromJsonString(jsonString, options);
|
|
2759
|
+
}
|
|
2760
|
+
static equals(a, b) {
|
|
2761
|
+
return proto2.util.equals(_SendStreamHeaderResponse, a, b);
|
|
2762
|
+
}
|
|
2763
|
+
};
|
|
2764
|
+
_SendStreamHeaderResponse.runtime = proto2;
|
|
2765
|
+
_SendStreamHeaderResponse.typeName = "livekit.proto.SendStreamHeaderResponse";
|
|
2766
|
+
_SendStreamHeaderResponse.fields = proto2.util.newFieldList(() => [
|
|
2767
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
|
|
2768
|
+
]);
|
|
2769
|
+
let SendStreamHeaderResponse = _SendStreamHeaderResponse;
|
|
2770
|
+
const _SendStreamChunkResponse = class _SendStreamChunkResponse extends Message {
|
|
2771
|
+
constructor(data) {
|
|
2772
|
+
super();
|
|
2773
|
+
proto2.util.initPartial(data, this);
|
|
2774
|
+
}
|
|
2775
|
+
static fromBinary(bytes, options) {
|
|
2776
|
+
return new _SendStreamChunkResponse().fromBinary(bytes, options);
|
|
2777
|
+
}
|
|
2778
|
+
static fromJson(jsonValue, options) {
|
|
2779
|
+
return new _SendStreamChunkResponse().fromJson(jsonValue, options);
|
|
2780
|
+
}
|
|
2781
|
+
static fromJsonString(jsonString, options) {
|
|
2782
|
+
return new _SendStreamChunkResponse().fromJsonString(jsonString, options);
|
|
2783
|
+
}
|
|
2784
|
+
static equals(a, b) {
|
|
2785
|
+
return proto2.util.equals(_SendStreamChunkResponse, a, b);
|
|
2786
|
+
}
|
|
2787
|
+
};
|
|
2788
|
+
_SendStreamChunkResponse.runtime = proto2;
|
|
2789
|
+
_SendStreamChunkResponse.typeName = "livekit.proto.SendStreamChunkResponse";
|
|
2790
|
+
_SendStreamChunkResponse.fields = proto2.util.newFieldList(() => [
|
|
2791
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
|
|
2792
|
+
]);
|
|
2793
|
+
let SendStreamChunkResponse = _SendStreamChunkResponse;
|
|
2794
|
+
const _SendStreamTrailerResponse = class _SendStreamTrailerResponse extends Message {
|
|
2795
|
+
constructor(data) {
|
|
2796
|
+
super();
|
|
2797
|
+
proto2.util.initPartial(data, this);
|
|
2798
|
+
}
|
|
2799
|
+
static fromBinary(bytes, options) {
|
|
2800
|
+
return new _SendStreamTrailerResponse().fromBinary(bytes, options);
|
|
2801
|
+
}
|
|
2802
|
+
static fromJson(jsonValue, options) {
|
|
2803
|
+
return new _SendStreamTrailerResponse().fromJson(jsonValue, options);
|
|
2804
|
+
}
|
|
2805
|
+
static fromJsonString(jsonString, options) {
|
|
2806
|
+
return new _SendStreamTrailerResponse().fromJsonString(jsonString, options);
|
|
2807
|
+
}
|
|
2808
|
+
static equals(a, b) {
|
|
2809
|
+
return proto2.util.equals(_SendStreamTrailerResponse, a, b);
|
|
2810
|
+
}
|
|
2811
|
+
};
|
|
2812
|
+
_SendStreamTrailerResponse.runtime = proto2;
|
|
2813
|
+
_SendStreamTrailerResponse.typeName = "livekit.proto.SendStreamTrailerResponse";
|
|
2814
|
+
_SendStreamTrailerResponse.fields = proto2.util.newFieldList(() => [
|
|
2815
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
|
|
2816
|
+
]);
|
|
2817
|
+
let SendStreamTrailerResponse = _SendStreamTrailerResponse;
|
|
2818
|
+
const _SendStreamHeaderCallback = class _SendStreamHeaderCallback extends Message {
|
|
2819
|
+
constructor(data) {
|
|
2820
|
+
super();
|
|
2821
|
+
proto2.util.initPartial(data, this);
|
|
2822
|
+
}
|
|
2823
|
+
static fromBinary(bytes, options) {
|
|
2824
|
+
return new _SendStreamHeaderCallback().fromBinary(bytes, options);
|
|
2825
|
+
}
|
|
2826
|
+
static fromJson(jsonValue, options) {
|
|
2827
|
+
return new _SendStreamHeaderCallback().fromJson(jsonValue, options);
|
|
2828
|
+
}
|
|
2829
|
+
static fromJsonString(jsonString, options) {
|
|
2830
|
+
return new _SendStreamHeaderCallback().fromJsonString(jsonString, options);
|
|
2831
|
+
}
|
|
2832
|
+
static equals(a, b) {
|
|
2833
|
+
return proto2.util.equals(_SendStreamHeaderCallback, a, b);
|
|
2834
|
+
}
|
|
2835
|
+
};
|
|
2836
|
+
_SendStreamHeaderCallback.runtime = proto2;
|
|
2837
|
+
_SendStreamHeaderCallback.typeName = "livekit.proto.SendStreamHeaderCallback";
|
|
2838
|
+
_SendStreamHeaderCallback.fields = proto2.util.newFieldList(() => [
|
|
2839
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
|
|
2840
|
+
{ no: 2, name: "error", kind: "scalar", T: 9, opt: true }
|
|
2841
|
+
]);
|
|
2842
|
+
let SendStreamHeaderCallback = _SendStreamHeaderCallback;
|
|
2843
|
+
const _SendStreamChunkCallback = class _SendStreamChunkCallback extends Message {
|
|
2844
|
+
constructor(data) {
|
|
2845
|
+
super();
|
|
2846
|
+
proto2.util.initPartial(data, this);
|
|
2847
|
+
}
|
|
2848
|
+
static fromBinary(bytes, options) {
|
|
2849
|
+
return new _SendStreamChunkCallback().fromBinary(bytes, options);
|
|
2850
|
+
}
|
|
2851
|
+
static fromJson(jsonValue, options) {
|
|
2852
|
+
return new _SendStreamChunkCallback().fromJson(jsonValue, options);
|
|
2853
|
+
}
|
|
2854
|
+
static fromJsonString(jsonString, options) {
|
|
2855
|
+
return new _SendStreamChunkCallback().fromJsonString(jsonString, options);
|
|
2856
|
+
}
|
|
2857
|
+
static equals(a, b) {
|
|
2858
|
+
return proto2.util.equals(_SendStreamChunkCallback, a, b);
|
|
2859
|
+
}
|
|
2860
|
+
};
|
|
2861
|
+
_SendStreamChunkCallback.runtime = proto2;
|
|
2862
|
+
_SendStreamChunkCallback.typeName = "livekit.proto.SendStreamChunkCallback";
|
|
2863
|
+
_SendStreamChunkCallback.fields = proto2.util.newFieldList(() => [
|
|
2864
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
|
|
2865
|
+
{ no: 2, name: "error", kind: "scalar", T: 9, opt: true }
|
|
2866
|
+
]);
|
|
2867
|
+
let SendStreamChunkCallback = _SendStreamChunkCallback;
|
|
2868
|
+
const _SendStreamTrailerCallback = class _SendStreamTrailerCallback extends Message {
|
|
2869
|
+
constructor(data) {
|
|
2870
|
+
super();
|
|
2871
|
+
proto2.util.initPartial(data, this);
|
|
2872
|
+
}
|
|
2873
|
+
static fromBinary(bytes, options) {
|
|
2874
|
+
return new _SendStreamTrailerCallback().fromBinary(bytes, options);
|
|
2875
|
+
}
|
|
2876
|
+
static fromJson(jsonValue, options) {
|
|
2877
|
+
return new _SendStreamTrailerCallback().fromJson(jsonValue, options);
|
|
2878
|
+
}
|
|
2879
|
+
static fromJsonString(jsonString, options) {
|
|
2880
|
+
return new _SendStreamTrailerCallback().fromJsonString(jsonString, options);
|
|
2881
|
+
}
|
|
2882
|
+
static equals(a, b) {
|
|
2883
|
+
return proto2.util.equals(_SendStreamTrailerCallback, a, b);
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
_SendStreamTrailerCallback.runtime = proto2;
|
|
2887
|
+
_SendStreamTrailerCallback.typeName = "livekit.proto.SendStreamTrailerCallback";
|
|
2888
|
+
_SendStreamTrailerCallback.fields = proto2.util.newFieldList(() => [
|
|
2889
|
+
{ no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
|
|
2890
|
+
{ no: 2, name: "error", kind: "scalar", T: 9, opt: true }
|
|
2891
|
+
]);
|
|
2892
|
+
let SendStreamTrailerCallback = _SendStreamTrailerCallback;
|
|
2893
|
+
const _SetDataChannelBufferedAmountLowThresholdRequest = class _SetDataChannelBufferedAmountLowThresholdRequest extends Message {
|
|
2894
|
+
constructor(data) {
|
|
2895
|
+
super();
|
|
2896
|
+
proto2.util.initPartial(data, this);
|
|
2897
|
+
}
|
|
2898
|
+
static fromBinary(bytes, options) {
|
|
2899
|
+
return new _SetDataChannelBufferedAmountLowThresholdRequest().fromBinary(bytes, options);
|
|
2900
|
+
}
|
|
2901
|
+
static fromJson(jsonValue, options) {
|
|
2902
|
+
return new _SetDataChannelBufferedAmountLowThresholdRequest().fromJson(jsonValue, options);
|
|
2903
|
+
}
|
|
2904
|
+
static fromJsonString(jsonString, options) {
|
|
2905
|
+
return new _SetDataChannelBufferedAmountLowThresholdRequest().fromJsonString(jsonString, options);
|
|
2906
|
+
}
|
|
2907
|
+
static equals(a, b) {
|
|
2908
|
+
return proto2.util.equals(_SetDataChannelBufferedAmountLowThresholdRequest, a, b);
|
|
2909
|
+
}
|
|
2910
|
+
};
|
|
2911
|
+
_SetDataChannelBufferedAmountLowThresholdRequest.runtime = proto2;
|
|
2912
|
+
_SetDataChannelBufferedAmountLowThresholdRequest.typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdRequest";
|
|
2913
|
+
_SetDataChannelBufferedAmountLowThresholdRequest.fields = proto2.util.newFieldList(() => [
|
|
2914
|
+
{ no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
|
|
2915
|
+
{ no: 2, name: "threshold", kind: "scalar", T: 4, req: true },
|
|
2916
|
+
{ no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }
|
|
2917
|
+
]);
|
|
2918
|
+
let SetDataChannelBufferedAmountLowThresholdRequest = _SetDataChannelBufferedAmountLowThresholdRequest;
|
|
2919
|
+
const _SetDataChannelBufferedAmountLowThresholdResponse = class _SetDataChannelBufferedAmountLowThresholdResponse extends Message {
|
|
2920
|
+
constructor(data) {
|
|
2921
|
+
super();
|
|
2922
|
+
proto2.util.initPartial(data, this);
|
|
2923
|
+
}
|
|
2924
|
+
static fromBinary(bytes, options) {
|
|
2925
|
+
return new _SetDataChannelBufferedAmountLowThresholdResponse().fromBinary(bytes, options);
|
|
2926
|
+
}
|
|
2927
|
+
static fromJson(jsonValue, options) {
|
|
2928
|
+
return new _SetDataChannelBufferedAmountLowThresholdResponse().fromJson(jsonValue, options);
|
|
2929
|
+
}
|
|
2930
|
+
static fromJsonString(jsonString, options) {
|
|
2931
|
+
return new _SetDataChannelBufferedAmountLowThresholdResponse().fromJsonString(jsonString, options);
|
|
2932
|
+
}
|
|
2933
|
+
static equals(a, b) {
|
|
2934
|
+
return proto2.util.equals(_SetDataChannelBufferedAmountLowThresholdResponse, a, b);
|
|
2935
|
+
}
|
|
2936
|
+
};
|
|
2937
|
+
_SetDataChannelBufferedAmountLowThresholdResponse.runtime = proto2;
|
|
2938
|
+
_SetDataChannelBufferedAmountLowThresholdResponse.typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdResponse";
|
|
2939
|
+
_SetDataChannelBufferedAmountLowThresholdResponse.fields = proto2.util.newFieldList(() => []);
|
|
2940
|
+
let SetDataChannelBufferedAmountLowThresholdResponse = _SetDataChannelBufferedAmountLowThresholdResponse;
|
|
2941
|
+
const _DataChannelBufferedAmountLowThresholdChanged = class _DataChannelBufferedAmountLowThresholdChanged extends Message {
|
|
2942
|
+
constructor(data) {
|
|
2943
|
+
super();
|
|
2944
|
+
proto2.util.initPartial(data, this);
|
|
2945
|
+
}
|
|
2946
|
+
static fromBinary(bytes, options) {
|
|
2947
|
+
return new _DataChannelBufferedAmountLowThresholdChanged().fromBinary(bytes, options);
|
|
2948
|
+
}
|
|
2949
|
+
static fromJson(jsonValue, options) {
|
|
2950
|
+
return new _DataChannelBufferedAmountLowThresholdChanged().fromJson(jsonValue, options);
|
|
2951
|
+
}
|
|
2952
|
+
static fromJsonString(jsonString, options) {
|
|
2953
|
+
return new _DataChannelBufferedAmountLowThresholdChanged().fromJsonString(jsonString, options);
|
|
2954
|
+
}
|
|
2955
|
+
static equals(a, b) {
|
|
2956
|
+
return proto2.util.equals(_DataChannelBufferedAmountLowThresholdChanged, a, b);
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
2959
|
+
_DataChannelBufferedAmountLowThresholdChanged.runtime = proto2;
|
|
2960
|
+
_DataChannelBufferedAmountLowThresholdChanged.typeName = "livekit.proto.DataChannelBufferedAmountLowThresholdChanged";
|
|
2961
|
+
_DataChannelBufferedAmountLowThresholdChanged.fields = proto2.util.newFieldList(() => [
|
|
2962
|
+
{ no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true },
|
|
2963
|
+
{ no: 2, name: "threshold", kind: "scalar", T: 4, req: true }
|
|
2964
|
+
]);
|
|
2965
|
+
let DataChannelBufferedAmountLowThresholdChanged = _DataChannelBufferedAmountLowThresholdChanged;
|
|
2540
2966
|
export {
|
|
2541
2967
|
ActiveSpeakersChanged,
|
|
2542
2968
|
AttributesEntry,
|
|
@@ -2555,14 +2981,19 @@ export {
|
|
|
2555
2981
|
ConnectionState,
|
|
2556
2982
|
ConnectionStateChanged,
|
|
2557
2983
|
ContinualGatheringPolicy,
|
|
2984
|
+
DataChannelBufferedAmountLowThresholdChanged,
|
|
2558
2985
|
DataPacketKind,
|
|
2559
2986
|
DataPacketReceived,
|
|
2560
2987
|
DataStream,
|
|
2988
|
+
DataStreamChunkReceived,
|
|
2989
|
+
DataStreamHeaderReceived,
|
|
2990
|
+
DataStreamTrailerReceived,
|
|
2991
|
+
DataStream_ByteHeader,
|
|
2561
2992
|
DataStream_Chunk,
|
|
2562
|
-
DataStream_FileHeader,
|
|
2563
2993
|
DataStream_Header,
|
|
2564
2994
|
DataStream_OperationType,
|
|
2565
2995
|
DataStream_TextHeader,
|
|
2996
|
+
DataStream_Trailer,
|
|
2566
2997
|
DisconnectCallback,
|
|
2567
2998
|
DisconnectRequest,
|
|
2568
2999
|
DisconnectResponse,
|
|
@@ -2609,6 +3040,17 @@ export {
|
|
|
2609
3040
|
SendChatMessageCallback,
|
|
2610
3041
|
SendChatMessageRequest,
|
|
2611
3042
|
SendChatMessageResponse,
|
|
3043
|
+
SendStreamChunkCallback,
|
|
3044
|
+
SendStreamChunkRequest,
|
|
3045
|
+
SendStreamChunkResponse,
|
|
3046
|
+
SendStreamHeaderCallback,
|
|
3047
|
+
SendStreamHeaderRequest,
|
|
3048
|
+
SendStreamHeaderResponse,
|
|
3049
|
+
SendStreamTrailerCallback,
|
|
3050
|
+
SendStreamTrailerRequest,
|
|
3051
|
+
SendStreamTrailerResponse,
|
|
3052
|
+
SetDataChannelBufferedAmountLowThresholdRequest,
|
|
3053
|
+
SetDataChannelBufferedAmountLowThresholdResponse,
|
|
2612
3054
|
SetLocalAttributesCallback,
|
|
2613
3055
|
SetLocalAttributesRequest,
|
|
2614
3056
|
SetLocalAttributesResponse,
|