@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.
- package/README.md +3 -0
- package/dist/audio_stream.cjs +3 -2
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +10 -2
- package/dist/audio_stream.d.ts +10 -2
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +2 -1
- package/dist/audio_stream.js.map +1 -1
- package/dist/data_streams/index.d.cts +2 -2
- package/dist/data_streams/index.d.ts +2 -2
- package/dist/data_streams/stream_reader.cjs.map +1 -1
- package/dist/data_streams/stream_reader.d.cts +2 -2
- package/dist/data_streams/stream_reader.d.ts +2 -2
- package/dist/data_streams/stream_reader.d.ts.map +1 -1
- package/dist/data_streams/stream_reader.js.map +1 -1
- package/dist/data_streams/stream_writer.cjs.map +1 -1
- package/dist/data_streams/stream_writer.d.cts +2 -2
- package/dist/data_streams/stream_writer.d.ts +2 -2
- package/dist/data_streams/stream_writer.d.ts.map +1 -1
- package/dist/data_streams/stream_writer.js.map +1 -1
- package/dist/data_streams/types.d.cts +2 -2
- package/dist/data_streams/types.d.ts +2 -2
- package/dist/ffi_client.cjs +4 -2
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +4 -1
- package/dist/ffi_client.d.ts +4 -1
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +4 -2
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/participant.cjs +13 -15
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +8 -4
- package/dist/participant.d.ts +8 -4
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +5 -7
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +4 -2
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +8 -0
- package/dist/proto/audio_frame_pb.d.ts +8 -0
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +4 -2
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/data_stream_pb.cjs +1549 -0
- package/dist/proto/data_stream_pb.cjs.map +1 -0
- package/dist/proto/data_stream_pb.d.cts +1358 -0
- package/dist/proto/data_stream_pb.d.ts +1358 -0
- package/dist/proto/data_stream_pb.d.ts.map +1 -0
- package/dist/proto/data_stream_pb.js +1473 -0
- package/dist/proto/data_stream_pb.js.map +1 -0
- package/dist/proto/ffi_pb.cjs +43 -3
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +251 -8
- package/dist/proto/ffi_pb.d.ts +251 -8
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +43 -3
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +5 -1
- package/dist/proto/participant_pb.cjs.map +1 -1
- package/dist/proto/participant_pb.d.cts +9 -1
- package/dist/proto/participant_pb.d.ts +9 -1
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +5 -1
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +99 -2
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +130 -2
- package/dist/proto/room_pb.d.ts +130 -2
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +97 -3
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +27 -1
- package/dist/proto/track_pb.cjs.map +1 -1
- package/dist/proto/track_pb.d.cts +40 -1
- package/dist/proto/track_pb.d.ts +40 -1
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +26 -1
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/room.cjs +79 -3
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +59 -8
- package/dist/room.d.ts +59 -8
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +77 -1
- package/dist/room.js.map +1 -1
- package/dist/{stream_reader-a8_oiaOi.d.cts → stream_reader-Ch2zvjU3.d.cts} +0 -1
- package/dist/{stream_reader-DWUV4eJB.d.ts → stream_reader-DRyR29vo.d.ts} +0 -1
- package/dist/track.cjs +23 -4
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +17 -4
- package/dist/track.d.ts +17 -4
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +23 -4
- package/dist/track.js.map +1 -1
- package/dist/track_publication.d.cts +9 -1
- package/dist/track_publication.d.ts +9 -1
- 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_source.d.cts +11 -2
- package/dist/video_source.d.ts +11 -2
- package/dist/video_stream.cjs +1 -2
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +8 -1
- package/dist/video_stream.d.ts +8 -1
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +0 -1
- package/dist/video_stream.js.map +1 -1
- package/package.json +7 -7
- package/src/audio_stream.ts +5 -1
- package/src/data_streams/stream_reader.ts +0 -1
- package/src/data_streams/stream_writer.ts +0 -1
- package/src/ffi_client.ts +9 -5
- package/src/participant.ts +13 -15
- package/src/proto/audio_frame_pb.ts +12 -0
- package/src/proto/data_stream_pb.ts +2515 -0
- package/src/proto/ffi_pb.ts +283 -1
- package/src/proto/participant_pb.ts +12 -0
- package/src/proto/room_pb.ts +212 -1
- package/src/proto/track_pb.ts +58 -0
- package/src/room.ts +79 -1
- package/src/track.ts +28 -4
- package/src/version.ts +1 -1
- package/src/video_stream.ts +1 -1
package/dist/proto/room_pb.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
-
import { OwnedParticipant, DisconnectReason } from './participant_pb.cjs';
|
|
2
|
+
import { OwnedParticipant, DisconnectReason, ParticipantInfo } from './participant_pb.cjs';
|
|
3
3
|
import { OwnedTrackPublication, OwnedTrack, TrackSource } from './track_pb.cjs';
|
|
4
4
|
import { RtcStats } from './stats_pb.cjs';
|
|
5
5
|
import { VideoCodec } from './video_frame_pb.cjs';
|
|
6
6
|
import { EncryptionState, E2eeOptions } from './e2ee_pb.cjs';
|
|
7
7
|
import { FfiOwnedHandle } from './handle_pb.cjs';
|
|
8
|
+
import { OwnedByteStreamReader, OwnedTextStreamReader } from './data_stream_pb.cjs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @generated from enum livekit.proto.IceTransportType
|
|
@@ -1520,6 +1521,8 @@ declare class RoomEvent extends Message<RoomEvent> {
|
|
|
1520
1521
|
case: "chatMessage";
|
|
1521
1522
|
} | {
|
|
1522
1523
|
/**
|
|
1524
|
+
* Data stream (low level)
|
|
1525
|
+
*
|
|
1523
1526
|
* @generated from field: livekit.proto.DataStreamHeaderReceived stream_header_received = 30;
|
|
1524
1527
|
*/
|
|
1525
1528
|
value: DataStreamHeaderReceived;
|
|
@@ -1542,6 +1545,44 @@ declare class RoomEvent extends Message<RoomEvent> {
|
|
|
1542
1545
|
*/
|
|
1543
1546
|
value: DataChannelBufferedAmountLowThresholdChanged;
|
|
1544
1547
|
case: "dataChannelLowThresholdChanged";
|
|
1548
|
+
} | {
|
|
1549
|
+
/**
|
|
1550
|
+
* Data stream (high level)
|
|
1551
|
+
*
|
|
1552
|
+
* @generated from field: livekit.proto.ByteStreamOpened byte_stream_opened = 34;
|
|
1553
|
+
*/
|
|
1554
|
+
value: ByteStreamOpened;
|
|
1555
|
+
case: "byteStreamOpened";
|
|
1556
|
+
} | {
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: livekit.proto.TextStreamOpened text_stream_opened = 35;
|
|
1559
|
+
*/
|
|
1560
|
+
value: TextStreamOpened;
|
|
1561
|
+
case: "textStreamOpened";
|
|
1562
|
+
} | {
|
|
1563
|
+
/**
|
|
1564
|
+
* Room info updated
|
|
1565
|
+
*
|
|
1566
|
+
* @generated from field: livekit.proto.RoomInfo room_updated = 36;
|
|
1567
|
+
*/
|
|
1568
|
+
value: RoomInfo;
|
|
1569
|
+
case: "roomUpdated";
|
|
1570
|
+
} | {
|
|
1571
|
+
/**
|
|
1572
|
+
* Participant moved to new room
|
|
1573
|
+
*
|
|
1574
|
+
* @generated from field: livekit.proto.RoomInfo moved = 37;
|
|
1575
|
+
*/
|
|
1576
|
+
value: RoomInfo;
|
|
1577
|
+
case: "moved";
|
|
1578
|
+
} | {
|
|
1579
|
+
/**
|
|
1580
|
+
* carry over all participant info updates, including sid
|
|
1581
|
+
*
|
|
1582
|
+
* @generated from field: livekit.proto.ParticipantsUpdated participants_updated = 38;
|
|
1583
|
+
*/
|
|
1584
|
+
value: ParticipantsUpdated;
|
|
1585
|
+
case: "participantsUpdated";
|
|
1545
1586
|
} | {
|
|
1546
1587
|
case: undefined;
|
|
1547
1588
|
value?: undefined;
|
|
@@ -1579,6 +1620,34 @@ declare class RoomInfo extends Message<RoomInfo> {
|
|
|
1579
1620
|
* @generated from field: required uint64 reliable_dc_buffered_amount_low_threshold = 5;
|
|
1580
1621
|
*/
|
|
1581
1622
|
reliableDcBufferedAmountLowThreshold?: bigint;
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from field: required uint32 empty_timeout = 6;
|
|
1625
|
+
*/
|
|
1626
|
+
emptyTimeout?: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: required uint32 departure_timeout = 7;
|
|
1629
|
+
*/
|
|
1630
|
+
departureTimeout?: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from field: required uint32 max_participants = 8;
|
|
1633
|
+
*/
|
|
1634
|
+
maxParticipants?: number;
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from field: required int64 creation_time = 9;
|
|
1637
|
+
*/
|
|
1638
|
+
creationTime?: bigint;
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from field: required uint32 num_participants = 10;
|
|
1641
|
+
*/
|
|
1642
|
+
numParticipants?: number;
|
|
1643
|
+
/**
|
|
1644
|
+
* @generated from field: required uint32 num_publishers = 11;
|
|
1645
|
+
*/
|
|
1646
|
+
numPublishers?: number;
|
|
1647
|
+
/**
|
|
1648
|
+
* @generated from field: required bool active_recording = 12;
|
|
1649
|
+
*/
|
|
1650
|
+
activeRecording?: boolean;
|
|
1582
1651
|
constructor(data?: PartialMessage<RoomInfo>);
|
|
1583
1652
|
static readonly runtime: typeof proto2;
|
|
1584
1653
|
static readonly typeName = "livekit.proto.RoomInfo";
|
|
@@ -1609,6 +1678,23 @@ declare class OwnedRoom extends Message<OwnedRoom> {
|
|
|
1609
1678
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedRoom;
|
|
1610
1679
|
static equals(a: OwnedRoom | PlainMessage<OwnedRoom> | undefined, b: OwnedRoom | PlainMessage<OwnedRoom> | undefined): boolean;
|
|
1611
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* @generated from message livekit.proto.ParticipantsUpdated
|
|
1683
|
+
*/
|
|
1684
|
+
declare class ParticipantsUpdated extends Message<ParticipantsUpdated> {
|
|
1685
|
+
/**
|
|
1686
|
+
* @generated from field: repeated livekit.proto.ParticipantInfo participants = 1;
|
|
1687
|
+
*/
|
|
1688
|
+
participants: ParticipantInfo[];
|
|
1689
|
+
constructor(data?: PartialMessage<ParticipantsUpdated>);
|
|
1690
|
+
static readonly runtime: typeof proto2;
|
|
1691
|
+
static readonly typeName = "livekit.proto.ParticipantsUpdated";
|
|
1692
|
+
static readonly fields: FieldList;
|
|
1693
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantsUpdated;
|
|
1694
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantsUpdated;
|
|
1695
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantsUpdated;
|
|
1696
|
+
static equals(a: ParticipantsUpdated | PlainMessage<ParticipantsUpdated> | undefined, b: ParticipantsUpdated | PlainMessage<ParticipantsUpdated> | undefined): boolean;
|
|
1697
|
+
}
|
|
1612
1698
|
/**
|
|
1613
1699
|
* @generated from message livekit.proto.ParticipantConnected
|
|
1614
1700
|
*/
|
|
@@ -2837,5 +2923,47 @@ declare class DataChannelBufferedAmountLowThresholdChanged extends Message<DataC
|
|
|
2837
2923
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelBufferedAmountLowThresholdChanged;
|
|
2838
2924
|
static equals(a: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined, b: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined): boolean;
|
|
2839
2925
|
}
|
|
2926
|
+
/**
|
|
2927
|
+
* @generated from message livekit.proto.ByteStreamOpened
|
|
2928
|
+
*/
|
|
2929
|
+
declare class ByteStreamOpened extends Message<ByteStreamOpened> {
|
|
2930
|
+
/**
|
|
2931
|
+
* @generated from field: required livekit.proto.OwnedByteStreamReader reader = 1;
|
|
2932
|
+
*/
|
|
2933
|
+
reader?: OwnedByteStreamReader;
|
|
2934
|
+
/**
|
|
2935
|
+
* @generated from field: required string participant_identity = 2;
|
|
2936
|
+
*/
|
|
2937
|
+
participantIdentity?: string;
|
|
2938
|
+
constructor(data?: PartialMessage<ByteStreamOpened>);
|
|
2939
|
+
static readonly runtime: typeof proto2;
|
|
2940
|
+
static readonly typeName = "livekit.proto.ByteStreamOpened";
|
|
2941
|
+
static readonly fields: FieldList;
|
|
2942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ByteStreamOpened;
|
|
2943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ByteStreamOpened;
|
|
2944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ByteStreamOpened;
|
|
2945
|
+
static equals(a: ByteStreamOpened | PlainMessage<ByteStreamOpened> | undefined, b: ByteStreamOpened | PlainMessage<ByteStreamOpened> | undefined): boolean;
|
|
2946
|
+
}
|
|
2947
|
+
/**
|
|
2948
|
+
* @generated from message livekit.proto.TextStreamOpened
|
|
2949
|
+
*/
|
|
2950
|
+
declare class TextStreamOpened extends Message<TextStreamOpened> {
|
|
2951
|
+
/**
|
|
2952
|
+
* @generated from field: required livekit.proto.OwnedTextStreamReader reader = 1;
|
|
2953
|
+
*/
|
|
2954
|
+
reader?: OwnedTextStreamReader;
|
|
2955
|
+
/**
|
|
2956
|
+
* @generated from field: required string participant_identity = 2;
|
|
2957
|
+
*/
|
|
2958
|
+
participantIdentity?: string;
|
|
2959
|
+
constructor(data?: PartialMessage<TextStreamOpened>);
|
|
2960
|
+
static readonly runtime: typeof proto2;
|
|
2961
|
+
static readonly typeName = "livekit.proto.TextStreamOpened";
|
|
2962
|
+
static readonly fields: FieldList;
|
|
2963
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextStreamOpened;
|
|
2964
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextStreamOpened;
|
|
2965
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextStreamOpened;
|
|
2966
|
+
static equals(a: TextStreamOpened | PlainMessage<TextStreamOpened> | undefined, b: TextStreamOpened | PlainMessage<TextStreamOpened> | undefined): boolean;
|
|
2967
|
+
}
|
|
2840
2968
|
|
|
2841
|
-
export { ActiveSpeakersChanged, AttributesEntry, AudioEncoding, BufferInfo, ChatMessage, ChatMessageReceived, ConnectCallback, ConnectCallback_ParticipantWithTracks, ConnectCallback_Result, ConnectRequest, ConnectResponse, Connected, ConnectionQuality, ConnectionQualityChanged, ConnectionState, ConnectionStateChanged, ContinualGatheringPolicy, DataChannelBufferedAmountLowThresholdChanged, DataPacketKind, DataPacketReceived, DataStream, DataStreamChunkReceived, DataStreamHeaderReceived, DataStreamTrailerReceived, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DisconnectCallback, DisconnectRequest, DisconnectResponse, Disconnected, E2eeStateChanged, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsCallback_Result, GetSessionStatsRequest, GetSessionStatsResponse, IceServer, IceTransportType, LocalTrackPublished, LocalTrackSubscribed, LocalTrackUnpublished, OwnedBuffer, OwnedRoom, ParticipantAttributesChanged, ParticipantConnected, ParticipantDisconnected, ParticipantMetadataChanged, ParticipantNameChanged, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, Reconnected, Reconnecting, RoomEOS, RoomEvent, RoomInfo, RoomMetadataChanged, RoomOptions, RoomSidChanged, RtcConfig, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SendStreamChunkCallback, SendStreamChunkRequest, SendStreamChunkResponse, SendStreamHeaderCallback, SendStreamHeaderRequest, SendStreamHeaderResponse, SendStreamTrailerCallback, SendStreamTrailerRequest, SendStreamTrailerResponse, SetDataChannelBufferedAmountLowThresholdRequest, SetDataChannelBufferedAmountLowThresholdResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, SipDTMF, TrackMuted, TrackPublishOptions, TrackPublished, TrackSubscribed, TrackSubscriptionFailed, TrackUnmuted, TrackUnpublished, TrackUnsubscribed, TranscriptionReceived, TranscriptionSegment, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UserPacket, VideoEncoding };
|
|
2969
|
+
export { ActiveSpeakersChanged, AttributesEntry, AudioEncoding, BufferInfo, ByteStreamOpened, ChatMessage, ChatMessageReceived, ConnectCallback, ConnectCallback_ParticipantWithTracks, ConnectCallback_Result, ConnectRequest, ConnectResponse, Connected, ConnectionQuality, ConnectionQualityChanged, ConnectionState, ConnectionStateChanged, ContinualGatheringPolicy, DataChannelBufferedAmountLowThresholdChanged, DataPacketKind, DataPacketReceived, DataStream, DataStreamChunkReceived, DataStreamHeaderReceived, DataStreamTrailerReceived, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DisconnectCallback, DisconnectRequest, DisconnectResponse, Disconnected, E2eeStateChanged, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsCallback_Result, GetSessionStatsRequest, GetSessionStatsResponse, IceServer, IceTransportType, LocalTrackPublished, LocalTrackSubscribed, LocalTrackUnpublished, OwnedBuffer, OwnedRoom, ParticipantAttributesChanged, ParticipantConnected, ParticipantDisconnected, ParticipantMetadataChanged, ParticipantNameChanged, ParticipantsUpdated, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, Reconnected, Reconnecting, RoomEOS, RoomEvent, RoomInfo, RoomMetadataChanged, RoomOptions, RoomSidChanged, RtcConfig, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SendStreamChunkCallback, SendStreamChunkRequest, SendStreamChunkResponse, SendStreamHeaderCallback, SendStreamHeaderRequest, SendStreamHeaderResponse, SendStreamTrailerCallback, SendStreamTrailerRequest, SendStreamTrailerResponse, SetDataChannelBufferedAmountLowThresholdRequest, SetDataChannelBufferedAmountLowThresholdResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, SipDTMF, TextStreamOpened, TrackMuted, TrackPublishOptions, TrackPublished, TrackSubscribed, TrackSubscriptionFailed, TrackUnmuted, TrackUnpublished, TrackUnsubscribed, TranscriptionReceived, TranscriptionSegment, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UserPacket, VideoEncoding };
|
package/dist/proto/room_pb.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
-
import { OwnedParticipant, DisconnectReason } from './participant_pb.js';
|
|
2
|
+
import { OwnedParticipant, DisconnectReason, ParticipantInfo } from './participant_pb.js';
|
|
3
3
|
import { OwnedTrackPublication, OwnedTrack, TrackSource } from './track_pb.js';
|
|
4
4
|
import { RtcStats } from './stats_pb.js';
|
|
5
5
|
import { VideoCodec } from './video_frame_pb.js';
|
|
6
6
|
import { EncryptionState, E2eeOptions } from './e2ee_pb.js';
|
|
7
7
|
import { FfiOwnedHandle } from './handle_pb.js';
|
|
8
|
+
import { OwnedByteStreamReader, OwnedTextStreamReader } from './data_stream_pb.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @generated from enum livekit.proto.IceTransportType
|
|
@@ -1520,6 +1521,8 @@ declare class RoomEvent extends Message<RoomEvent> {
|
|
|
1520
1521
|
case: "chatMessage";
|
|
1521
1522
|
} | {
|
|
1522
1523
|
/**
|
|
1524
|
+
* Data stream (low level)
|
|
1525
|
+
*
|
|
1523
1526
|
* @generated from field: livekit.proto.DataStreamHeaderReceived stream_header_received = 30;
|
|
1524
1527
|
*/
|
|
1525
1528
|
value: DataStreamHeaderReceived;
|
|
@@ -1542,6 +1545,44 @@ declare class RoomEvent extends Message<RoomEvent> {
|
|
|
1542
1545
|
*/
|
|
1543
1546
|
value: DataChannelBufferedAmountLowThresholdChanged;
|
|
1544
1547
|
case: "dataChannelLowThresholdChanged";
|
|
1548
|
+
} | {
|
|
1549
|
+
/**
|
|
1550
|
+
* Data stream (high level)
|
|
1551
|
+
*
|
|
1552
|
+
* @generated from field: livekit.proto.ByteStreamOpened byte_stream_opened = 34;
|
|
1553
|
+
*/
|
|
1554
|
+
value: ByteStreamOpened;
|
|
1555
|
+
case: "byteStreamOpened";
|
|
1556
|
+
} | {
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: livekit.proto.TextStreamOpened text_stream_opened = 35;
|
|
1559
|
+
*/
|
|
1560
|
+
value: TextStreamOpened;
|
|
1561
|
+
case: "textStreamOpened";
|
|
1562
|
+
} | {
|
|
1563
|
+
/**
|
|
1564
|
+
* Room info updated
|
|
1565
|
+
*
|
|
1566
|
+
* @generated from field: livekit.proto.RoomInfo room_updated = 36;
|
|
1567
|
+
*/
|
|
1568
|
+
value: RoomInfo;
|
|
1569
|
+
case: "roomUpdated";
|
|
1570
|
+
} | {
|
|
1571
|
+
/**
|
|
1572
|
+
* Participant moved to new room
|
|
1573
|
+
*
|
|
1574
|
+
* @generated from field: livekit.proto.RoomInfo moved = 37;
|
|
1575
|
+
*/
|
|
1576
|
+
value: RoomInfo;
|
|
1577
|
+
case: "moved";
|
|
1578
|
+
} | {
|
|
1579
|
+
/**
|
|
1580
|
+
* carry over all participant info updates, including sid
|
|
1581
|
+
*
|
|
1582
|
+
* @generated from field: livekit.proto.ParticipantsUpdated participants_updated = 38;
|
|
1583
|
+
*/
|
|
1584
|
+
value: ParticipantsUpdated;
|
|
1585
|
+
case: "participantsUpdated";
|
|
1545
1586
|
} | {
|
|
1546
1587
|
case: undefined;
|
|
1547
1588
|
value?: undefined;
|
|
@@ -1579,6 +1620,34 @@ declare class RoomInfo extends Message<RoomInfo> {
|
|
|
1579
1620
|
* @generated from field: required uint64 reliable_dc_buffered_amount_low_threshold = 5;
|
|
1580
1621
|
*/
|
|
1581
1622
|
reliableDcBufferedAmountLowThreshold?: bigint;
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from field: required uint32 empty_timeout = 6;
|
|
1625
|
+
*/
|
|
1626
|
+
emptyTimeout?: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: required uint32 departure_timeout = 7;
|
|
1629
|
+
*/
|
|
1630
|
+
departureTimeout?: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from field: required uint32 max_participants = 8;
|
|
1633
|
+
*/
|
|
1634
|
+
maxParticipants?: number;
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from field: required int64 creation_time = 9;
|
|
1637
|
+
*/
|
|
1638
|
+
creationTime?: bigint;
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from field: required uint32 num_participants = 10;
|
|
1641
|
+
*/
|
|
1642
|
+
numParticipants?: number;
|
|
1643
|
+
/**
|
|
1644
|
+
* @generated from field: required uint32 num_publishers = 11;
|
|
1645
|
+
*/
|
|
1646
|
+
numPublishers?: number;
|
|
1647
|
+
/**
|
|
1648
|
+
* @generated from field: required bool active_recording = 12;
|
|
1649
|
+
*/
|
|
1650
|
+
activeRecording?: boolean;
|
|
1582
1651
|
constructor(data?: PartialMessage<RoomInfo>);
|
|
1583
1652
|
static readonly runtime: typeof proto2;
|
|
1584
1653
|
static readonly typeName = "livekit.proto.RoomInfo";
|
|
@@ -1609,6 +1678,23 @@ declare class OwnedRoom extends Message<OwnedRoom> {
|
|
|
1609
1678
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedRoom;
|
|
1610
1679
|
static equals(a: OwnedRoom | PlainMessage<OwnedRoom> | undefined, b: OwnedRoom | PlainMessage<OwnedRoom> | undefined): boolean;
|
|
1611
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* @generated from message livekit.proto.ParticipantsUpdated
|
|
1683
|
+
*/
|
|
1684
|
+
declare class ParticipantsUpdated extends Message<ParticipantsUpdated> {
|
|
1685
|
+
/**
|
|
1686
|
+
* @generated from field: repeated livekit.proto.ParticipantInfo participants = 1;
|
|
1687
|
+
*/
|
|
1688
|
+
participants: ParticipantInfo[];
|
|
1689
|
+
constructor(data?: PartialMessage<ParticipantsUpdated>);
|
|
1690
|
+
static readonly runtime: typeof proto2;
|
|
1691
|
+
static readonly typeName = "livekit.proto.ParticipantsUpdated";
|
|
1692
|
+
static readonly fields: FieldList;
|
|
1693
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantsUpdated;
|
|
1694
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantsUpdated;
|
|
1695
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantsUpdated;
|
|
1696
|
+
static equals(a: ParticipantsUpdated | PlainMessage<ParticipantsUpdated> | undefined, b: ParticipantsUpdated | PlainMessage<ParticipantsUpdated> | undefined): boolean;
|
|
1697
|
+
}
|
|
1612
1698
|
/**
|
|
1613
1699
|
* @generated from message livekit.proto.ParticipantConnected
|
|
1614
1700
|
*/
|
|
@@ -2837,5 +2923,47 @@ declare class DataChannelBufferedAmountLowThresholdChanged extends Message<DataC
|
|
|
2837
2923
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelBufferedAmountLowThresholdChanged;
|
|
2838
2924
|
static equals(a: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined, b: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined): boolean;
|
|
2839
2925
|
}
|
|
2926
|
+
/**
|
|
2927
|
+
* @generated from message livekit.proto.ByteStreamOpened
|
|
2928
|
+
*/
|
|
2929
|
+
declare class ByteStreamOpened extends Message<ByteStreamOpened> {
|
|
2930
|
+
/**
|
|
2931
|
+
* @generated from field: required livekit.proto.OwnedByteStreamReader reader = 1;
|
|
2932
|
+
*/
|
|
2933
|
+
reader?: OwnedByteStreamReader;
|
|
2934
|
+
/**
|
|
2935
|
+
* @generated from field: required string participant_identity = 2;
|
|
2936
|
+
*/
|
|
2937
|
+
participantIdentity?: string;
|
|
2938
|
+
constructor(data?: PartialMessage<ByteStreamOpened>);
|
|
2939
|
+
static readonly runtime: typeof proto2;
|
|
2940
|
+
static readonly typeName = "livekit.proto.ByteStreamOpened";
|
|
2941
|
+
static readonly fields: FieldList;
|
|
2942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ByteStreamOpened;
|
|
2943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ByteStreamOpened;
|
|
2944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ByteStreamOpened;
|
|
2945
|
+
static equals(a: ByteStreamOpened | PlainMessage<ByteStreamOpened> | undefined, b: ByteStreamOpened | PlainMessage<ByteStreamOpened> | undefined): boolean;
|
|
2946
|
+
}
|
|
2947
|
+
/**
|
|
2948
|
+
* @generated from message livekit.proto.TextStreamOpened
|
|
2949
|
+
*/
|
|
2950
|
+
declare class TextStreamOpened extends Message<TextStreamOpened> {
|
|
2951
|
+
/**
|
|
2952
|
+
* @generated from field: required livekit.proto.OwnedTextStreamReader reader = 1;
|
|
2953
|
+
*/
|
|
2954
|
+
reader?: OwnedTextStreamReader;
|
|
2955
|
+
/**
|
|
2956
|
+
* @generated from field: required string participant_identity = 2;
|
|
2957
|
+
*/
|
|
2958
|
+
participantIdentity?: string;
|
|
2959
|
+
constructor(data?: PartialMessage<TextStreamOpened>);
|
|
2960
|
+
static readonly runtime: typeof proto2;
|
|
2961
|
+
static readonly typeName = "livekit.proto.TextStreamOpened";
|
|
2962
|
+
static readonly fields: FieldList;
|
|
2963
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextStreamOpened;
|
|
2964
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextStreamOpened;
|
|
2965
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextStreamOpened;
|
|
2966
|
+
static equals(a: TextStreamOpened | PlainMessage<TextStreamOpened> | undefined, b: TextStreamOpened | PlainMessage<TextStreamOpened> | undefined): boolean;
|
|
2967
|
+
}
|
|
2840
2968
|
|
|
2841
|
-
export { ActiveSpeakersChanged, AttributesEntry, AudioEncoding, BufferInfo, ChatMessage, ChatMessageReceived, ConnectCallback, ConnectCallback_ParticipantWithTracks, ConnectCallback_Result, ConnectRequest, ConnectResponse, Connected, ConnectionQuality, ConnectionQualityChanged, ConnectionState, ConnectionStateChanged, ContinualGatheringPolicy, DataChannelBufferedAmountLowThresholdChanged, DataPacketKind, DataPacketReceived, DataStream, DataStreamChunkReceived, DataStreamHeaderReceived, DataStreamTrailerReceived, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DisconnectCallback, DisconnectRequest, DisconnectResponse, Disconnected, E2eeStateChanged, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsCallback_Result, GetSessionStatsRequest, GetSessionStatsResponse, IceServer, IceTransportType, LocalTrackPublished, LocalTrackSubscribed, LocalTrackUnpublished, OwnedBuffer, OwnedRoom, ParticipantAttributesChanged, ParticipantConnected, ParticipantDisconnected, ParticipantMetadataChanged, ParticipantNameChanged, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, Reconnected, Reconnecting, RoomEOS, RoomEvent, RoomInfo, RoomMetadataChanged, RoomOptions, RoomSidChanged, RtcConfig, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SendStreamChunkCallback, SendStreamChunkRequest, SendStreamChunkResponse, SendStreamHeaderCallback, SendStreamHeaderRequest, SendStreamHeaderResponse, SendStreamTrailerCallback, SendStreamTrailerRequest, SendStreamTrailerResponse, SetDataChannelBufferedAmountLowThresholdRequest, SetDataChannelBufferedAmountLowThresholdResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, SipDTMF, TrackMuted, TrackPublishOptions, TrackPublished, TrackSubscribed, TrackSubscriptionFailed, TrackUnmuted, TrackUnpublished, TrackUnsubscribed, TranscriptionReceived, TranscriptionSegment, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UserPacket, VideoEncoding };
|
|
2969
|
+
export { ActiveSpeakersChanged, AttributesEntry, AudioEncoding, BufferInfo, ByteStreamOpened, ChatMessage, ChatMessageReceived, ConnectCallback, ConnectCallback_ParticipantWithTracks, ConnectCallback_Result, ConnectRequest, ConnectResponse, Connected, ConnectionQuality, ConnectionQualityChanged, ConnectionState, ConnectionStateChanged, ContinualGatheringPolicy, DataChannelBufferedAmountLowThresholdChanged, DataPacketKind, DataPacketReceived, DataStream, DataStreamChunkReceived, DataStreamHeaderReceived, DataStreamTrailerReceived, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DisconnectCallback, DisconnectRequest, DisconnectResponse, Disconnected, E2eeStateChanged, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsCallback_Result, GetSessionStatsRequest, GetSessionStatsResponse, IceServer, IceTransportType, LocalTrackPublished, LocalTrackSubscribed, LocalTrackUnpublished, OwnedBuffer, OwnedRoom, ParticipantAttributesChanged, ParticipantConnected, ParticipantDisconnected, ParticipantMetadataChanged, ParticipantNameChanged, ParticipantsUpdated, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, Reconnected, Reconnecting, RoomEOS, RoomEvent, RoomInfo, RoomMetadataChanged, RoomOptions, RoomSidChanged, RtcConfig, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SendStreamChunkCallback, SendStreamChunkRequest, SendStreamChunkResponse, SendStreamHeaderCallback, SendStreamHeaderRequest, SendStreamHeaderResponse, SendStreamTrailerCallback, SendStreamTrailerRequest, SendStreamTrailerResponse, SetDataChannelBufferedAmountLowThresholdRequest, SetDataChannelBufferedAmountLowThresholdResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, SipDTMF, TextStreamOpened, TrackMuted, TrackPublishOptions, TrackPublished, TrackSubscribed, TrackSubscriptionFailed, TrackUnmuted, TrackUnpublished, TrackUnsubscribed, TranscriptionReceived, TranscriptionSegment, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UserPacket, VideoEncoding };
|