@livekit/protocol 1.31.0 → 1.32.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -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
  */
@@ -426,6 +457,11 @@ export declare class Room extends Message<Room> {
426
457
  */
427
458
  creationTime: bigint;
428
459
 
460
+ /**
461
+ * @generated from field: int64 creation_time_ms = 15;
462
+ */
463
+ creationTimeMs: bigint;
464
+
429
465
  /**
430
466
  * @generated from field: string turn_password = 6;
431
467
  */
@@ -661,6 +697,13 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
661
697
  */
662
698
  joinedAt: bigint;
663
699
 
700
+ /**
701
+ * timestamp when participant joined room, in milliseconds
702
+ *
703
+ * @generated from field: int64 joined_at_ms = 17;
704
+ */
705
+ joinedAtMs: bigint;
706
+
664
707
  /**
665
708
  * @generated from field: string name = 9;
666
709
  */
@@ -1312,6 +1355,13 @@ export declare class UserPacket extends Message<UserPacket> {
1312
1355
  */
1313
1356
  endTime?: bigint;
1314
1357
 
1358
+ /**
1359
+ * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
1360
+ *
1361
+ * @generated from field: bytes nonce = 11;
1362
+ */
1363
+ nonce: Uint8Array;
1364
+
1315
1365
  constructor(data?: PartialMessage<UserPacket>);
1316
1366
 
1317
1367
  static readonly runtime: typeof proto3;
@@ -2663,31 +2713,29 @@ export declare class DataStream_TextHeader extends Message<DataStream_TextHeader
2663
2713
  }
2664
2714
 
2665
2715
  /**
2666
- * header properties specific to file or image streams
2716
+ * header properties specific to byte or file streams
2667
2717
  *
2668
- * @generated from message livekit.DataStream.FileHeader
2718
+ * @generated from message livekit.DataStream.ByteHeader
2669
2719
  */
2670
- export declare class DataStream_FileHeader extends Message<DataStream_FileHeader> {
2720
+ export declare class DataStream_ByteHeader extends Message<DataStream_ByteHeader> {
2671
2721
  /**
2672
- * name of the file
2673
- *
2674
- * @generated from field: string file_name = 1;
2722
+ * @generated from field: string name = 1;
2675
2723
  */
2676
- fileName: string;
2724
+ name: string;
2677
2725
 
2678
- constructor(data?: PartialMessage<DataStream_FileHeader>);
2726
+ constructor(data?: PartialMessage<DataStream_ByteHeader>);
2679
2727
 
2680
2728
  static readonly runtime: typeof proto3;
2681
- static readonly typeName = "livekit.DataStream.FileHeader";
2729
+ static readonly typeName = "livekit.DataStream.ByteHeader";
2682
2730
  static readonly fields: FieldList;
2683
2731
 
2684
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_FileHeader;
2732
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_ByteHeader;
2685
2733
 
2686
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_FileHeader;
2734
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
2687
2735
 
2688
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_FileHeader;
2736
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
2689
2737
 
2690
- static equals(a: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined, b: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined): boolean;
2738
+ static equals(a: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined, b: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined): boolean;
2691
2739
  }
2692
2740
 
2693
2741
  /**
@@ -2735,11 +2783,11 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
2735
2783
  encryptionType: Encryption_Type;
2736
2784
 
2737
2785
  /**
2738
- * user defined extensions map that can carry additional info
2786
+ * user defined attributes map that can carry additional info
2739
2787
  *
2740
- * @generated from field: map<string, string> extensions = 8;
2788
+ * @generated from field: map<string, string> attributes = 8;
2741
2789
  */
2742
- extensions: { [key: string]: string };
2790
+ attributes: { [key: string]: string };
2743
2791
 
2744
2792
  /**
2745
2793
  * oneof to choose between specific header types
@@ -2754,10 +2802,10 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
2754
2802
  case: "textHeader";
2755
2803
  } | {
2756
2804
  /**
2757
- * @generated from field: livekit.DataStream.FileHeader file_header = 10;
2805
+ * @generated from field: livekit.DataStream.ByteHeader byte_header = 10;
2758
2806
  */
2759
- value: DataStream_FileHeader;
2760
- case: "fileHeader";
2807
+ value: DataStream_ByteHeader;
2808
+ case: "byteHeader";
2761
2809
  } | { case: undefined; value?: undefined };
2762
2810
 
2763
2811
  constructor(data?: PartialMessage<DataStream_Header>);
@@ -2848,9 +2896,9 @@ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
2848
2896
  /**
2849
2897
  * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
2850
2898
  *
2851
- * @generated from field: map<string, string> extensions = 3;
2899
+ * @generated from field: map<string, string> attributes = 3;
2852
2900
  */
2853
- extensions: { [key: string]: string };
2901
+ attributes: { [key: string]: string };
2854
2902
 
2855
2903
  constructor(data?: PartialMessage<DataStream_Trailer>);
2856
2904
 
@@ -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
  */
@@ -197,6 +208,7 @@ export const Room = /*@__PURE__*/ proto3.makeMessageType(
197
208
  { no: 14, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
198
209
  { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
199
210
  { no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
211
+ { no: 15, name: "creation_time_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
200
212
  { no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
201
213
  { no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
202
214
  { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -260,6 +272,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
260
272
  { no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
261
273
  { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
262
274
  { no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
275
+ { no: 17, name: "joined_at_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
263
276
  { no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
264
277
  { no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
265
278
  { no: 11, name: "permission", kind: "message", T: ParticipantPermission },
@@ -449,6 +462,7 @@ export const UserPacket = /*@__PURE__*/ proto3.makeMessageType(
449
462
  { no: 8, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
450
463
  { no: 9, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
451
464
  { no: 10, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
465
+ { no: 11, name: "nonce", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
452
466
  ],
453
467
  );
454
468
 
@@ -862,16 +876,16 @@ export const DataStream_TextHeader = /*@__PURE__*/ proto3.makeMessageType(
862
876
  );
863
877
 
864
878
  /**
865
- * header properties specific to file or image streams
879
+ * header properties specific to byte or file streams
866
880
  *
867
- * @generated from message livekit.DataStream.FileHeader
881
+ * @generated from message livekit.DataStream.ByteHeader
868
882
  */
869
- export const DataStream_FileHeader = /*@__PURE__*/ proto3.makeMessageType(
870
- "livekit.DataStream.FileHeader",
883
+ export const DataStream_ByteHeader = /*@__PURE__*/ proto3.makeMessageType(
884
+ "livekit.DataStream.ByteHeader",
871
885
  () => [
872
- { no: 1, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
886
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
873
887
  ],
874
- {localName: "DataStream_FileHeader"},
888
+ {localName: "DataStream_ByteHeader"},
875
889
  );
876
890
 
877
891
  /**
@@ -888,9 +902,9 @@ export const DataStream_Header = /*@__PURE__*/ proto3.makeMessageType(
888
902
  { no: 4, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
889
903
  { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
890
904
  { no: 7, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
891
- { no: 8, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
905
+ { no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
892
906
  { no: 9, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
893
- { no: 10, name: "file_header", kind: "message", T: DataStream_FileHeader, oneof: "content_header" },
907
+ { no: 10, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" },
894
908
  ],
895
909
  {localName: "DataStream_Header"},
896
910
  );
@@ -918,7 +932,7 @@ export const DataStream_Trailer = /*@__PURE__*/ proto3.makeMessageType(
918
932
  () => [
919
933
  { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
920
934
  { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
921
- { no: 3, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
935
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
922
936
  ],
923
937
  {localName: "DataStream_Trailer"},
924
938
  );
@@ -626,6 +626,13 @@ export declare class SendDataRequest extends Message<SendDataRequest> {
626
626
  */
627
627
  topic?: string;
628
628
 
629
+ /**
630
+ * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
631
+ *
632
+ * @generated from field: bytes nonce = 7;
633
+ */
634
+ nonce: Uint8Array;
635
+
629
636
  constructor(data?: PartialMessage<SendDataRequest>);
630
637
 
631
638
  static readonly runtime: typeof proto3;
@@ -217,6 +217,7 @@ export const SendDataRequest = /*@__PURE__*/ proto3.makeMessageType(
217
217
  { no: 4, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
218
218
  { no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
219
219
  { no: 5, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
220
+ { no: 7, name: "nonce", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
220
221
  ],
221
222
  );
222
223
 
@@ -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
  ],
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.31.0';
2
+ export const version = '1.32.1';