@livekit/protocol 1.37.0 → 1.38.0
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/index.cjs +55 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -3
- package/dist/index.d.mts +131 -3
- package/dist/index.d.ts +131 -3
- package/dist/index.mjs +53 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_models_pb.d.ts +7 -0
- package/src/gen/livekit_models_pb.js +1 -0
- package/src/gen/livekit_room_pb.d.ts +59 -0
- package/src/gen/livekit_room_pb.js +20 -0
- package/src/gen/livekit_rtc_pb.d.ts +64 -2
- package/src/gen/livekit_rtc_pb.js +15 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -426,6 +426,13 @@ export declare enum AudioTrackFeature {
|
|
|
426
426
|
* @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5;
|
|
427
427
|
*/
|
|
428
428
|
TF_ENHANCED_NOISE_CANCELLATION = 5,
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* client will buffer audio once available and send it to the server via bytes stream once connected
|
|
432
|
+
*
|
|
433
|
+
* @generated from enum value: TF_PRECONNECT_BUFFER = 6;
|
|
434
|
+
*/
|
|
435
|
+
TF_PRECONNECT_BUFFER = 6,
|
|
429
436
|
}
|
|
430
437
|
|
|
431
438
|
/**
|
|
@@ -197,6 +197,7 @@ export const AudioTrackFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
|
197
197
|
{no: 3, name: "TF_ECHO_CANCELLATION"},
|
|
198
198
|
{no: 4, name: "TF_NOISE_SUPPRESSION"},
|
|
199
199
|
{no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION"},
|
|
200
|
+
{no: 6, name: "TF_PRECONNECT_BUFFER"},
|
|
200
201
|
],
|
|
201
202
|
);
|
|
202
203
|
|
|
@@ -838,3 +838,62 @@ export declare class ForwardParticipantResponse extends Message<ForwardParticipa
|
|
|
838
838
|
static equals(a: ForwardParticipantResponse | PlainMessage<ForwardParticipantResponse> | undefined, b: ForwardParticipantResponse | PlainMessage<ForwardParticipantResponse> | undefined): boolean;
|
|
839
839
|
}
|
|
840
840
|
|
|
841
|
+
/**
|
|
842
|
+
* @generated from message livekit.MoveParticipantRequest
|
|
843
|
+
*/
|
|
844
|
+
export declare class MoveParticipantRequest extends Message<MoveParticipantRequest> {
|
|
845
|
+
/**
|
|
846
|
+
* room to move participant from
|
|
847
|
+
*
|
|
848
|
+
* @generated from field: string room = 1;
|
|
849
|
+
*/
|
|
850
|
+
room: string;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* identity of the participant to move to
|
|
854
|
+
*
|
|
855
|
+
* @generated from field: string identity = 2;
|
|
856
|
+
*/
|
|
857
|
+
identity: string;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* room to move participant to
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: string destination_room = 3;
|
|
863
|
+
*/
|
|
864
|
+
destinationRoom: string;
|
|
865
|
+
|
|
866
|
+
constructor(data?: PartialMessage<MoveParticipantRequest>);
|
|
867
|
+
|
|
868
|
+
static readonly runtime: typeof proto3;
|
|
869
|
+
static readonly typeName = "livekit.MoveParticipantRequest";
|
|
870
|
+
static readonly fields: FieldList;
|
|
871
|
+
|
|
872
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveParticipantRequest;
|
|
873
|
+
|
|
874
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveParticipantRequest;
|
|
875
|
+
|
|
876
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveParticipantRequest;
|
|
877
|
+
|
|
878
|
+
static equals(a: MoveParticipantRequest | PlainMessage<MoveParticipantRequest> | undefined, b: MoveParticipantRequest | PlainMessage<MoveParticipantRequest> | undefined): boolean;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* @generated from message livekit.MoveParticipantResponse
|
|
883
|
+
*/
|
|
884
|
+
export declare class MoveParticipantResponse extends Message<MoveParticipantResponse> {
|
|
885
|
+
constructor(data?: PartialMessage<MoveParticipantResponse>);
|
|
886
|
+
|
|
887
|
+
static readonly runtime: typeof proto3;
|
|
888
|
+
static readonly typeName = "livekit.MoveParticipantResponse";
|
|
889
|
+
static readonly fields: FieldList;
|
|
890
|
+
|
|
891
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveParticipantResponse;
|
|
892
|
+
|
|
893
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveParticipantResponse;
|
|
894
|
+
|
|
895
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveParticipantResponse;
|
|
896
|
+
|
|
897
|
+
static equals(a: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined, b: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined): boolean;
|
|
898
|
+
}
|
|
899
|
+
|
|
@@ -278,3 +278,23 @@ export const ForwardParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
278
278
|
[],
|
|
279
279
|
);
|
|
280
280
|
|
|
281
|
+
/**
|
|
282
|
+
* @generated from message livekit.MoveParticipantRequest
|
|
283
|
+
*/
|
|
284
|
+
export const MoveParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
285
|
+
"livekit.MoveParticipantRequest",
|
|
286
|
+
() => [
|
|
287
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
288
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
289
|
+
{ no: 3, name: "destination_room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
290
|
+
],
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @generated from message livekit.MoveParticipantResponse
|
|
295
|
+
*/
|
|
296
|
+
export const MoveParticipantResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
297
|
+
"livekit.MoveParticipantResponse",
|
|
298
|
+
[],
|
|
299
|
+
);
|
|
300
|
+
|
|
@@ -415,6 +415,14 @@ export declare class SignalResponse extends Message<SignalResponse> {
|
|
|
415
415
|
*/
|
|
416
416
|
value: TrackSubscribed;
|
|
417
417
|
case: "trackSubscribed";
|
|
418
|
+
} | {
|
|
419
|
+
/**
|
|
420
|
+
* notify to the participant when they have been moved to a new room
|
|
421
|
+
*
|
|
422
|
+
* @generated from field: livekit.RoomMovedResponse room_moved = 24;
|
|
423
|
+
*/
|
|
424
|
+
value: RoomMovedResponse;
|
|
425
|
+
case: "roomMoved";
|
|
418
426
|
} | { case: undefined; value?: undefined };
|
|
419
427
|
|
|
420
428
|
constructor(data?: PartialMessage<SignalResponse>);
|
|
@@ -504,7 +512,10 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
504
512
|
/**
|
|
505
513
|
* true if DTX (Discontinuous Transmission) is disabled for audio
|
|
506
514
|
*
|
|
507
|
-
*
|
|
515
|
+
* deprecated in favor of audio_features
|
|
516
|
+
*
|
|
517
|
+
* @generated from field: bool disable_dtx = 7 [deprecated = true];
|
|
518
|
+
* @deprecated
|
|
508
519
|
*/
|
|
509
520
|
disableDtx: boolean;
|
|
510
521
|
|
|
@@ -531,7 +542,10 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
531
542
|
sid: string;
|
|
532
543
|
|
|
533
544
|
/**
|
|
534
|
-
*
|
|
545
|
+
* deprecated in favor of audio_features
|
|
546
|
+
*
|
|
547
|
+
* @generated from field: bool stereo = 12 [deprecated = true];
|
|
548
|
+
* @deprecated
|
|
535
549
|
*/
|
|
536
550
|
stereo: boolean;
|
|
537
551
|
|
|
@@ -560,6 +574,11 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
560
574
|
*/
|
|
561
575
|
backupCodecPolicy: BackupCodecPolicy;
|
|
562
576
|
|
|
577
|
+
/**
|
|
578
|
+
* @generated from field: repeated livekit.AudioTrackFeature audio_features = 17;
|
|
579
|
+
*/
|
|
580
|
+
audioFeatures: AudioTrackFeature[];
|
|
581
|
+
|
|
563
582
|
constructor(data?: PartialMessage<AddTrackRequest>);
|
|
564
583
|
|
|
565
584
|
static readonly runtime: typeof proto3;
|
|
@@ -1588,6 +1607,49 @@ export declare class SubscriptionPermissionUpdate extends Message<SubscriptionPe
|
|
|
1588
1607
|
static equals(a: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined, b: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined): boolean;
|
|
1589
1608
|
}
|
|
1590
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from message livekit.RoomMovedResponse
|
|
1612
|
+
*/
|
|
1613
|
+
export declare class RoomMovedResponse extends Message<RoomMovedResponse> {
|
|
1614
|
+
/**
|
|
1615
|
+
* information about the new room
|
|
1616
|
+
*
|
|
1617
|
+
* @generated from field: livekit.Room room = 1;
|
|
1618
|
+
*/
|
|
1619
|
+
room?: Room;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* new reconnect token that can be used to reconnect to the new room
|
|
1623
|
+
*
|
|
1624
|
+
* @generated from field: string token = 2;
|
|
1625
|
+
*/
|
|
1626
|
+
token: string;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* @generated from field: livekit.ParticipantInfo participant = 3;
|
|
1630
|
+
*/
|
|
1631
|
+
participant?: ParticipantInfo;
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* @generated from field: repeated livekit.ParticipantInfo other_participants = 4;
|
|
1635
|
+
*/
|
|
1636
|
+
otherParticipants: ParticipantInfo[];
|
|
1637
|
+
|
|
1638
|
+
constructor(data?: PartialMessage<RoomMovedResponse>);
|
|
1639
|
+
|
|
1640
|
+
static readonly runtime: typeof proto3;
|
|
1641
|
+
static readonly typeName = "livekit.RoomMovedResponse";
|
|
1642
|
+
static readonly fields: FieldList;
|
|
1643
|
+
|
|
1644
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomMovedResponse;
|
|
1645
|
+
|
|
1646
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomMovedResponse;
|
|
1647
|
+
|
|
1648
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomMovedResponse;
|
|
1649
|
+
|
|
1650
|
+
static equals(a: RoomMovedResponse | PlainMessage<RoomMovedResponse> | undefined, b: RoomMovedResponse | PlainMessage<RoomMovedResponse> | undefined): boolean;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1591
1653
|
/**
|
|
1592
1654
|
* @generated from message livekit.SyncState
|
|
1593
1655
|
*/
|
|
@@ -108,6 +108,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
108
108
|
{ no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
|
|
109
109
|
{ no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
|
|
110
110
|
{ no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
|
|
111
|
+
{ no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
|
|
111
112
|
],
|
|
112
113
|
);
|
|
113
114
|
|
|
@@ -144,6 +145,7 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
144
145
|
{ no: 14, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
145
146
|
{ no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
146
147
|
{ no: 16, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
148
|
+
{ no: 17, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
147
149
|
],
|
|
148
150
|
);
|
|
149
151
|
|
|
@@ -498,6 +500,19 @@ export const SubscriptionPermissionUpdate = /*@__PURE__*/ proto3.makeMessageType
|
|
|
498
500
|
],
|
|
499
501
|
);
|
|
500
502
|
|
|
503
|
+
/**
|
|
504
|
+
* @generated from message livekit.RoomMovedResponse
|
|
505
|
+
*/
|
|
506
|
+
export const RoomMovedResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
507
|
+
"livekit.RoomMovedResponse",
|
|
508
|
+
() => [
|
|
509
|
+
{ no: 1, name: "room", kind: "message", T: Room },
|
|
510
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
511
|
+
{ no: 3, name: "participant", kind: "message", T: ParticipantInfo },
|
|
512
|
+
{ no: 4, name: "other_participants", kind: "message", T: ParticipantInfo, repeated: true },
|
|
513
|
+
],
|
|
514
|
+
);
|
|
515
|
+
|
|
501
516
|
/**
|
|
502
517
|
* @generated from message livekit.SyncState
|
|
503
518
|
*/
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.38.0';
|