@livekit/protocol 1.31.0 → 1.32.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 +42 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -22
- package/dist/index.d.mts +78 -22
- package/dist/index.d.ts +78 -22
- package/dist/index.mjs +41 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_models_pb.d.ts +57 -21
- package/src/gen/livekit_models_pb.js +21 -9
- package/src/gen/livekit_sip_pb.d.ts +21 -1
- package/src/gen/livekit_sip_pb.js +7 -2
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -392,6 +392,37 @@ export declare enum AudioTrackFeature {
|
|
|
392
392
|
TF_ENHANCED_NOISE_CANCELLATION = 5,
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message livekit.Pagination
|
|
397
|
+
*/
|
|
398
|
+
export declare class Pagination extends Message<Pagination> {
|
|
399
|
+
/**
|
|
400
|
+
* list entities which IDs are greater
|
|
401
|
+
*
|
|
402
|
+
* @generated from field: string after_id = 1;
|
|
403
|
+
*/
|
|
404
|
+
afterId: string;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @generated from field: int32 limit = 2;
|
|
408
|
+
*/
|
|
409
|
+
limit: number;
|
|
410
|
+
|
|
411
|
+
constructor(data?: PartialMessage<Pagination>);
|
|
412
|
+
|
|
413
|
+
static readonly runtime: typeof proto3;
|
|
414
|
+
static readonly typeName = "livekit.Pagination";
|
|
415
|
+
static readonly fields: FieldList;
|
|
416
|
+
|
|
417
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pagination;
|
|
418
|
+
|
|
419
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pagination;
|
|
420
|
+
|
|
421
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pagination;
|
|
422
|
+
|
|
423
|
+
static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
|
|
424
|
+
}
|
|
425
|
+
|
|
395
426
|
/**
|
|
396
427
|
* @generated from message livekit.Room
|
|
397
428
|
*/
|
|
@@ -661,6 +692,13 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
|
|
|
661
692
|
*/
|
|
662
693
|
joinedAt: bigint;
|
|
663
694
|
|
|
695
|
+
/**
|
|
696
|
+
* timestamp when participant joined room, in milliseconds
|
|
697
|
+
*
|
|
698
|
+
* @generated from field: int64 joined_at_ms = 17;
|
|
699
|
+
*/
|
|
700
|
+
joinedAtMs: bigint;
|
|
701
|
+
|
|
664
702
|
/**
|
|
665
703
|
* @generated from field: string name = 9;
|
|
666
704
|
*/
|
|
@@ -2663,31 +2701,29 @@ export declare class DataStream_TextHeader extends Message<DataStream_TextHeader
|
|
|
2663
2701
|
}
|
|
2664
2702
|
|
|
2665
2703
|
/**
|
|
2666
|
-
* header properties specific to
|
|
2704
|
+
* header properties specific to byte or file streams
|
|
2667
2705
|
*
|
|
2668
|
-
* @generated from message livekit.DataStream.
|
|
2706
|
+
* @generated from message livekit.DataStream.ByteHeader
|
|
2669
2707
|
*/
|
|
2670
|
-
export declare class
|
|
2708
|
+
export declare class DataStream_ByteHeader extends Message<DataStream_ByteHeader> {
|
|
2671
2709
|
/**
|
|
2672
|
-
* name
|
|
2673
|
-
*
|
|
2674
|
-
* @generated from field: string file_name = 1;
|
|
2710
|
+
* @generated from field: string name = 1;
|
|
2675
2711
|
*/
|
|
2676
|
-
|
|
2712
|
+
name: string;
|
|
2677
2713
|
|
|
2678
|
-
constructor(data?: PartialMessage<
|
|
2714
|
+
constructor(data?: PartialMessage<DataStream_ByteHeader>);
|
|
2679
2715
|
|
|
2680
2716
|
static readonly runtime: typeof proto3;
|
|
2681
|
-
static readonly typeName = "livekit.DataStream.
|
|
2717
|
+
static readonly typeName = "livekit.DataStream.ByteHeader";
|
|
2682
2718
|
static readonly fields: FieldList;
|
|
2683
2719
|
|
|
2684
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
2720
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_ByteHeader;
|
|
2685
2721
|
|
|
2686
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
2722
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
|
|
2687
2723
|
|
|
2688
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
2724
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
|
|
2689
2725
|
|
|
2690
|
-
static equals(a:
|
|
2726
|
+
static equals(a: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined, b: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined): boolean;
|
|
2691
2727
|
}
|
|
2692
2728
|
|
|
2693
2729
|
/**
|
|
@@ -2735,11 +2771,11 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
|
|
|
2735
2771
|
encryptionType: Encryption_Type;
|
|
2736
2772
|
|
|
2737
2773
|
/**
|
|
2738
|
-
* user defined
|
|
2774
|
+
* user defined attributes map that can carry additional info
|
|
2739
2775
|
*
|
|
2740
|
-
* @generated from field: map<string, string>
|
|
2776
|
+
* @generated from field: map<string, string> attributes = 8;
|
|
2741
2777
|
*/
|
|
2742
|
-
|
|
2778
|
+
attributes: { [key: string]: string };
|
|
2743
2779
|
|
|
2744
2780
|
/**
|
|
2745
2781
|
* oneof to choose between specific header types
|
|
@@ -2754,10 +2790,10 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
|
|
|
2754
2790
|
case: "textHeader";
|
|
2755
2791
|
} | {
|
|
2756
2792
|
/**
|
|
2757
|
-
* @generated from field: livekit.DataStream.
|
|
2793
|
+
* @generated from field: livekit.DataStream.ByteHeader byte_header = 10;
|
|
2758
2794
|
*/
|
|
2759
|
-
value:
|
|
2760
|
-
case: "
|
|
2795
|
+
value: DataStream_ByteHeader;
|
|
2796
|
+
case: "byteHeader";
|
|
2761
2797
|
} | { case: undefined; value?: undefined };
|
|
2762
2798
|
|
|
2763
2799
|
constructor(data?: PartialMessage<DataStream_Header>);
|
|
@@ -2848,9 +2884,9 @@ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
|
|
|
2848
2884
|
/**
|
|
2849
2885
|
* finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
|
|
2850
2886
|
*
|
|
2851
|
-
* @generated from field: map<string, string>
|
|
2887
|
+
* @generated from field: map<string, string> attributes = 3;
|
|
2852
2888
|
*/
|
|
2853
|
-
|
|
2889
|
+
attributes: { [key: string]: string };
|
|
2854
2890
|
|
|
2855
2891
|
constructor(data?: PartialMessage<DataStream_Trailer>);
|
|
2856
2892
|
|
|
@@ -185,6 +185,17 @@ export const AudioTrackFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
|
185
185
|
],
|
|
186
186
|
);
|
|
187
187
|
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message livekit.Pagination
|
|
190
|
+
*/
|
|
191
|
+
export const Pagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
192
|
+
"livekit.Pagination",
|
|
193
|
+
() => [
|
|
194
|
+
{ no: 1, name: "after_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
195
|
+
{ no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
196
|
+
],
|
|
197
|
+
);
|
|
198
|
+
|
|
188
199
|
/**
|
|
189
200
|
* @generated from message livekit.Room
|
|
190
201
|
*/
|
|
@@ -260,6 +271,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
260
271
|
{ no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
|
|
261
272
|
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
262
273
|
{ no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
274
|
+
{ no: 17, name: "joined_at_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
263
275
|
{ no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
264
276
|
{ no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
265
277
|
{ no: 11, name: "permission", kind: "message", T: ParticipantPermission },
|
|
@@ -862,16 +874,16 @@ export const DataStream_TextHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
862
874
|
);
|
|
863
875
|
|
|
864
876
|
/**
|
|
865
|
-
* header properties specific to
|
|
877
|
+
* header properties specific to byte or file streams
|
|
866
878
|
*
|
|
867
|
-
* @generated from message livekit.DataStream.
|
|
879
|
+
* @generated from message livekit.DataStream.ByteHeader
|
|
868
880
|
*/
|
|
869
|
-
export const
|
|
870
|
-
"livekit.DataStream.
|
|
881
|
+
export const DataStream_ByteHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
882
|
+
"livekit.DataStream.ByteHeader",
|
|
871
883
|
() => [
|
|
872
|
-
{ no: 1, name: "
|
|
884
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
885
|
],
|
|
874
|
-
{localName: "
|
|
886
|
+
{localName: "DataStream_ByteHeader"},
|
|
875
887
|
);
|
|
876
888
|
|
|
877
889
|
/**
|
|
@@ -888,9 +900,9 @@ export const DataStream_Header = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
888
900
|
{ no: 4, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
889
901
|
{ no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
890
902
|
{ no: 7, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
891
|
-
{ no: 8, name: "
|
|
903
|
+
{ no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
892
904
|
{ no: 9, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
|
|
893
|
-
{ no: 10, name: "
|
|
905
|
+
{ no: 10, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" },
|
|
894
906
|
],
|
|
895
907
|
{localName: "DataStream_Header"},
|
|
896
908
|
);
|
|
@@ -918,7 +930,7 @@ export const DataStream_Trailer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
918
930
|
() => [
|
|
919
931
|
{ no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
920
932
|
{ no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
921
|
-
{ no: 3, name: "
|
|
933
|
+
{ no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
922
934
|
],
|
|
923
935
|
{localName: "DataStream_Trailer"},
|
|
924
936
|
);
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
+
import type { DisconnectReason, Pagination } from "./livekit_models_pb.js";
|
|
22
23
|
import type { RoomConfiguration } from "./livekit_room_pb.js";
|
|
23
|
-
import type { DisconnectReason } from "./livekit_models_pb.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @generated from enum livekit.SIPTransport
|
|
@@ -799,6 +799,11 @@ export declare class GetSIPOutboundTrunkResponse extends Message<GetSIPOutboundT
|
|
|
799
799
|
* @deprecated
|
|
800
800
|
*/
|
|
801
801
|
export declare class ListSIPTrunkRequest extends Message<ListSIPTrunkRequest> {
|
|
802
|
+
/**
|
|
803
|
+
* @generated from field: livekit.Pagination page = 1;
|
|
804
|
+
*/
|
|
805
|
+
page?: Pagination;
|
|
806
|
+
|
|
802
807
|
constructor(data?: PartialMessage<ListSIPTrunkRequest>);
|
|
803
808
|
|
|
804
809
|
static readonly runtime: typeof proto3;
|
|
@@ -845,6 +850,11 @@ export declare class ListSIPTrunkResponse extends Message<ListSIPTrunkResponse>
|
|
|
845
850
|
* @generated from message livekit.ListSIPInboundTrunkRequest
|
|
846
851
|
*/
|
|
847
852
|
export declare class ListSIPInboundTrunkRequest extends Message<ListSIPInboundTrunkRequest> {
|
|
853
|
+
/**
|
|
854
|
+
* @generated from field: livekit.Pagination page = 3;
|
|
855
|
+
*/
|
|
856
|
+
page?: Pagination;
|
|
857
|
+
|
|
848
858
|
/**
|
|
849
859
|
* Trunk IDs to list. If this option is set, the response will contains trunks in the same order.
|
|
850
860
|
* If any of the trunks is missing, a nil item in that position will be sent in the response.
|
|
@@ -905,6 +915,11 @@ export declare class ListSIPInboundTrunkResponse extends Message<ListSIPInboundT
|
|
|
905
915
|
* @generated from message livekit.ListSIPOutboundTrunkRequest
|
|
906
916
|
*/
|
|
907
917
|
export declare class ListSIPOutboundTrunkRequest extends Message<ListSIPOutboundTrunkRequest> {
|
|
918
|
+
/**
|
|
919
|
+
* @generated from field: livekit.Pagination page = 3;
|
|
920
|
+
*/
|
|
921
|
+
page?: Pagination;
|
|
922
|
+
|
|
908
923
|
/**
|
|
909
924
|
* Trunk IDs to list. If this option is set, the response will contains trunks in the same order.
|
|
910
925
|
* If any of the trunks is missing, a nil item in that position will be sent in the response.
|
|
@@ -1324,6 +1339,11 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
|
|
|
1324
1339
|
* @generated from message livekit.ListSIPDispatchRuleRequest
|
|
1325
1340
|
*/
|
|
1326
1341
|
export declare class ListSIPDispatchRuleRequest extends Message<ListSIPDispatchRuleRequest> {
|
|
1342
|
+
/**
|
|
1343
|
+
* @generated from field: livekit.Pagination page = 3;
|
|
1344
|
+
*/
|
|
1345
|
+
page?: Pagination;
|
|
1346
|
+
|
|
1327
1347
|
/**
|
|
1328
1348
|
* Rule IDs to list. If this option is set, the response will contains rules in the same order.
|
|
1329
1349
|
* If any of the rules is missing, a nil item in that position will be sent in the response.
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { Duration, proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { DisconnectReason, Pagination } from "./livekit_models_pb.js";
|
|
21
22
|
import { RoomConfiguration } from "./livekit_room_pb.js";
|
|
22
|
-
import { DisconnectReason } from "./livekit_models_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SIPTransport
|
|
@@ -265,7 +265,9 @@ export const GetSIPOutboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
265
265
|
*/
|
|
266
266
|
export const ListSIPTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
267
267
|
"livekit.ListSIPTrunkRequest",
|
|
268
|
-
[
|
|
268
|
+
() => [
|
|
269
|
+
{ no: 1, name: "page", kind: "message", T: Pagination },
|
|
270
|
+
],
|
|
269
271
|
);
|
|
270
272
|
|
|
271
273
|
/**
|
|
@@ -287,6 +289,7 @@ export const ListSIPTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
287
289
|
export const ListSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
288
290
|
"livekit.ListSIPInboundTrunkRequest",
|
|
289
291
|
() => [
|
|
292
|
+
{ no: 3, name: "page", kind: "message", T: Pagination },
|
|
290
293
|
{ no: 1, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
291
294
|
{ no: 2, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
292
295
|
],
|
|
@@ -310,6 +313,7 @@ export const ListSIPInboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
310
313
|
export const ListSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
311
314
|
"livekit.ListSIPOutboundTrunkRequest",
|
|
312
315
|
() => [
|
|
316
|
+
{ no: 3, name: "page", kind: "message", T: Pagination },
|
|
313
317
|
{ no: 1, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
314
318
|
{ no: 2, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
315
319
|
],
|
|
@@ -428,6 +432,7 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
428
432
|
export const ListSIPDispatchRuleRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
429
433
|
"livekit.ListSIPDispatchRuleRequest",
|
|
430
434
|
() => [
|
|
435
|
+
{ no: 3, name: "page", kind: "message", T: Pagination },
|
|
431
436
|
{ no: 1, name: "dispatch_rule_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
432
437
|
{ no: 2, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
433
438
|
],
|
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.32.0';
|