@livekit/protocol 1.32.0 → 1.33.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@bufbuild/protoc-gen-es": "^1.10.0",
30
30
  "genversion": "^3.2.0",
31
- "typescript": "5.5.4",
31
+ "typescript": "5.7.3",
32
32
  "unbuild": "^2.0.0"
33
33
  },
34
34
  "dependencies": {
@@ -232,6 +232,11 @@ export declare enum AnalyticsEventType {
232
232
  * @generated from enum value: SIP_CALL_ENDED = 39;
233
233
  */
234
234
  SIP_CALL_ENDED = 39,
235
+
236
+ /**
237
+ * @generated from enum value: REPORT = 40;
238
+ */
239
+ REPORT = 40,
235
240
  }
236
241
 
237
242
  /**
@@ -721,6 +726,11 @@ export declare class AnalyticsEvent extends Message<AnalyticsEvent> {
721
726
  */
722
727
  sipDispatchRule?: SIPDispatchRuleInfo;
723
728
 
729
+ /**
730
+ * @generated from field: livekit.ReportInfo report = 33;
731
+ */
732
+ report?: ReportInfo;
733
+
724
734
  constructor(data?: PartialMessage<AnalyticsEvent>);
725
735
 
726
736
  static readonly runtime: typeof proto3;
@@ -887,3 +897,140 @@ export declare class AnalyticsNodeRooms extends Message<AnalyticsNodeRooms> {
887
897
  static equals(a: AnalyticsNodeRooms | PlainMessage<AnalyticsNodeRooms> | undefined, b: AnalyticsNodeRooms | PlainMessage<AnalyticsNodeRooms> | undefined): boolean;
888
898
  }
889
899
 
900
+ /**
901
+ * @generated from message livekit.ReportInfo
902
+ */
903
+ export declare class ReportInfo extends Message<ReportInfo> {
904
+ /**
905
+ * @generated from oneof livekit.ReportInfo.message
906
+ */
907
+ message: {
908
+ /**
909
+ * @generated from field: livekit.FeatureUsageInfo feature_usage = 1;
910
+ */
911
+ value: FeatureUsageInfo;
912
+ case: "featureUsage";
913
+ } | { case: undefined; value?: undefined };
914
+
915
+ constructor(data?: PartialMessage<ReportInfo>);
916
+
917
+ static readonly runtime: typeof proto3;
918
+ static readonly typeName = "livekit.ReportInfo";
919
+ static readonly fields: FieldList;
920
+
921
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportInfo;
922
+
923
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportInfo;
924
+
925
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportInfo;
926
+
927
+ static equals(a: ReportInfo | PlainMessage<ReportInfo> | undefined, b: ReportInfo | PlainMessage<ReportInfo> | undefined): boolean;
928
+ }
929
+
930
+ /**
931
+ * @generated from message livekit.TimeRange
932
+ */
933
+ export declare class TimeRange extends Message<TimeRange> {
934
+ /**
935
+ * @generated from field: google.protobuf.Timestamp started_at = 1;
936
+ */
937
+ startedAt?: Timestamp;
938
+
939
+ /**
940
+ * @generated from field: google.protobuf.Timestamp ended_at = 2;
941
+ */
942
+ endedAt?: Timestamp;
943
+
944
+ constructor(data?: PartialMessage<TimeRange>);
945
+
946
+ static readonly runtime: typeof proto3;
947
+ static readonly typeName = "livekit.TimeRange";
948
+ static readonly fields: FieldList;
949
+
950
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeRange;
951
+
952
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeRange;
953
+
954
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeRange;
955
+
956
+ static equals(a: TimeRange | PlainMessage<TimeRange> | undefined, b: TimeRange | PlainMessage<TimeRange> | undefined): boolean;
957
+ }
958
+
959
+ /**
960
+ * @generated from message livekit.FeatureUsageInfo
961
+ */
962
+ export declare class FeatureUsageInfo extends Message<FeatureUsageInfo> {
963
+ /**
964
+ * @generated from field: livekit.FeatureUsageInfo.Feature feature = 1;
965
+ */
966
+ feature: FeatureUsageInfo_Feature;
967
+
968
+ /**
969
+ * @generated from field: string project_id = 2;
970
+ */
971
+ projectId: string;
972
+
973
+ /**
974
+ * @generated from field: string room_name = 3;
975
+ */
976
+ roomName: string;
977
+
978
+ /**
979
+ * @generated from field: string room_id = 4;
980
+ */
981
+ roomId: string;
982
+
983
+ /**
984
+ * @generated from field: string participant_identity = 5;
985
+ */
986
+ participantIdentity: string;
987
+
988
+ /**
989
+ * @generated from field: string participant_id = 6;
990
+ */
991
+ participantId: string;
992
+
993
+ /**
994
+ * @generated from field: string track_id = 7;
995
+ */
996
+ trackId: string;
997
+
998
+ /**
999
+ * time ranges during which the feature was enabled.
1000
+ * for e. g., noise cancellation may not be applied when a media track is paused/muted,
1001
+ * this allows reporting only periods during which a feature is avtive.
1002
+ *
1003
+ * @generated from field: repeated livekit.TimeRange time_ranges = 8;
1004
+ */
1005
+ timeRanges: TimeRange[];
1006
+
1007
+ constructor(data?: PartialMessage<FeatureUsageInfo>);
1008
+
1009
+ static readonly runtime: typeof proto3;
1010
+ static readonly typeName = "livekit.FeatureUsageInfo";
1011
+ static readonly fields: FieldList;
1012
+
1013
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureUsageInfo;
1014
+
1015
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureUsageInfo;
1016
+
1017
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureUsageInfo;
1018
+
1019
+ static equals(a: FeatureUsageInfo | PlainMessage<FeatureUsageInfo> | undefined, b: FeatureUsageInfo | PlainMessage<FeatureUsageInfo> | undefined): boolean;
1020
+ }
1021
+
1022
+ /**
1023
+ * @generated from enum livekit.FeatureUsageInfo.Feature
1024
+ */
1025
+ export declare enum FeatureUsageInfo_Feature {
1026
+ /**
1027
+ * @generated from enum value: KRISP_NOISE_CANCELLATION = 0;
1028
+ */
1029
+ KRISP_NOISE_CANCELLATION = 0,
1030
+
1031
+ /**
1032
+ * @generated from enum value: KRISP_BACKGROUND_VOICE_CANCELLATION = 1;
1033
+ */
1034
+ KRISP_BACKGROUND_VOICE_CANCELLATION = 1,
1035
+ }
1036
+
@@ -78,6 +78,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
78
78
  {no: 37, name: "SIP_CALL_INCOMING"},
79
79
  {no: 38, name: "SIP_CALL_STARTED"},
80
80
  {no: 39, name: "SIP_CALL_ENDED"},
81
+ {no: 40, name: "REPORT"},
81
82
  ],
82
83
  );
83
84
 
@@ -208,6 +209,7 @@ export const AnalyticsEvent = /*@__PURE__*/ proto3.makeMessageType(
208
209
  { no: 30, name: "sip_outbound_trunk", kind: "message", T: SIPOutboundTrunkInfo },
209
210
  { no: 31, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
211
  { no: 32, name: "sip_dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
212
+ { no: 33, name: "report", kind: "message", T: ReportInfo },
211
213
  ],
212
214
  );
213
215
 
@@ -262,3 +264,52 @@ export const AnalyticsNodeRooms = /*@__PURE__*/ proto3.makeMessageType(
262
264
  ],
263
265
  );
264
266
 
267
+ /**
268
+ * @generated from message livekit.ReportInfo
269
+ */
270
+ export const ReportInfo = /*@__PURE__*/ proto3.makeMessageType(
271
+ "livekit.ReportInfo",
272
+ () => [
273
+ { no: 1, name: "feature_usage", kind: "message", T: FeatureUsageInfo, oneof: "message" },
274
+ ],
275
+ );
276
+
277
+ /**
278
+ * @generated from message livekit.TimeRange
279
+ */
280
+ export const TimeRange = /*@__PURE__*/ proto3.makeMessageType(
281
+ "livekit.TimeRange",
282
+ () => [
283
+ { no: 1, name: "started_at", kind: "message", T: Timestamp },
284
+ { no: 2, name: "ended_at", kind: "message", T: Timestamp },
285
+ ],
286
+ );
287
+
288
+ /**
289
+ * @generated from message livekit.FeatureUsageInfo
290
+ */
291
+ export const FeatureUsageInfo = /*@__PURE__*/ proto3.makeMessageType(
292
+ "livekit.FeatureUsageInfo",
293
+ () => [
294
+ { no: 1, name: "feature", kind: "enum", T: proto3.getEnumType(FeatureUsageInfo_Feature) },
295
+ { no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
296
+ { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
+ { no: 4, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
298
+ { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
299
+ { no: 6, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
300
+ { no: 7, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
301
+ { no: 8, name: "time_ranges", kind: "message", T: TimeRange, repeated: true },
302
+ ],
303
+ );
304
+
305
+ /**
306
+ * @generated from enum livekit.FeatureUsageInfo.Feature
307
+ */
308
+ export const FeatureUsageInfo_Feature = /*@__PURE__*/ proto3.makeEnum(
309
+ "livekit.FeatureUsageInfo.Feature",
310
+ [
311
+ {no: 0, name: "KRISP_NOISE_CANCELLATION"},
312
+ {no: 1, name: "KRISP_BACKGROUND_VOICE_CANCELLATION"},
313
+ ],
314
+ );
315
+
@@ -86,6 +86,27 @@ export declare enum ImageCodec {
86
86
  IC_JPEG = 1,
87
87
  }
88
88
 
89
+ /**
90
+ * Policy for publisher to handle subscribers that are unable to support the primary codec of a track
91
+ *
92
+ * @generated from enum livekit.BackupCodecPolicy
93
+ */
94
+ export declare enum BackupCodecPolicy {
95
+ /**
96
+ * default behavior, regress to backup codec and all subscribers will receive the backup codec
97
+ *
98
+ * @generated from enum value: REGRESSION = 0;
99
+ */
100
+ REGRESSION = 0,
101
+
102
+ /**
103
+ * encoding/send the primary and backup codec simultaneously
104
+ *
105
+ * @generated from enum value: SIMULCAST = 1;
106
+ */
107
+ SIMULCAST = 1,
108
+ }
109
+
89
110
  /**
90
111
  * @generated from enum livekit.TrackType
91
112
  */
@@ -457,6 +478,11 @@ export declare class Room extends Message<Room> {
457
478
  */
458
479
  creationTime: bigint;
459
480
 
481
+ /**
482
+ * @generated from field: int64 creation_time_ms = 15;
483
+ */
484
+ creationTimeMs: bigint;
485
+
460
486
  /**
461
487
  * @generated from field: string turn_password = 6;
462
488
  */
@@ -1022,6 +1048,11 @@ export declare class TrackInfo extends Message<TrackInfo> {
1022
1048
  */
1023
1049
  audioFeatures: AudioTrackFeature[];
1024
1050
 
1051
+ /**
1052
+ * @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 20;
1053
+ */
1054
+ backupCodecPolicy: BackupCodecPolicy;
1055
+
1025
1056
  constructor(data?: PartialMessage<TrackInfo>);
1026
1057
 
1027
1058
  static readonly runtime: typeof proto3;
@@ -1350,6 +1381,13 @@ export declare class UserPacket extends Message<UserPacket> {
1350
1381
  */
1351
1382
  endTime?: bigint;
1352
1383
 
1384
+ /**
1385
+ * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
1386
+ *
1387
+ * @generated from field: bytes nonce = 11;
1388
+ */
1389
+ nonce: Uint8Array;
1390
+
1353
1391
  constructor(data?: PartialMessage<UserPacket>);
1354
1392
 
1355
1393
  static readonly runtime: typeof proto3;
@@ -57,6 +57,19 @@ export const ImageCodec = /*@__PURE__*/ proto3.makeEnum(
57
57
  ],
58
58
  );
59
59
 
60
+ /**
61
+ * Policy for publisher to handle subscribers that are unable to support the primary codec of a track
62
+ *
63
+ * @generated from enum livekit.BackupCodecPolicy
64
+ */
65
+ export const BackupCodecPolicy = /*@__PURE__*/ proto3.makeEnum(
66
+ "livekit.BackupCodecPolicy",
67
+ [
68
+ {no: 0, name: "REGRESSION"},
69
+ {no: 1, name: "SIMULCAST"},
70
+ ],
71
+ );
72
+
60
73
  /**
61
74
  * @generated from enum livekit.TrackType
62
75
  */
@@ -208,6 +221,7 @@ export const Room = /*@__PURE__*/ proto3.makeMessageType(
208
221
  { no: 14, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
209
222
  { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
210
223
  { no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
224
+ { no: 15, name: "creation_time_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
211
225
  { no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
212
226
  { no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
213
227
  { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -368,6 +382,7 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
368
382
  { no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
369
383
  { no: 18, name: "version", kind: "message", T: TimedVersion },
370
384
  { no: 19, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
385
+ { no: 20, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
371
386
  ],
372
387
  );
373
388
 
@@ -461,6 +476,7 @@ export const UserPacket = /*@__PURE__*/ proto3.makeMessageType(
461
476
  { no: 8, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
462
477
  { no: 9, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
463
478
  { no: 10, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
479
+ { no: 11, name: "nonce", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
464
480
  ],
465
481
  );
466
482
 
@@ -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,7 +19,7 @@
19
19
 
20
20
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { AudioTrackFeature, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
22
+ import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
23
23
 
24
24
  /**
25
25
  * @generated from enum livekit.SignalTarget
@@ -555,6 +555,11 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
555
555
  */
556
556
  stream: string;
557
557
 
558
+ /**
559
+ * @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 16;
560
+ */
561
+ backupCodecPolicy: BackupCodecPolicy;
562
+
558
563
  constructor(data?: PartialMessage<AddTrackRequest>);
559
564
 
560
565
  static readonly runtime: typeof proto3;
@@ -18,7 +18,7 @@
18
18
  // @ts-nocheck
19
19
 
20
20
  import { proto3 } from "@bufbuild/protobuf";
21
- import { AudioTrackFeature, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
21
+ import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
22
22
 
23
23
  /**
24
24
  * @generated from enum livekit.SignalTarget
@@ -143,6 +143,7 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
143
143
  { no: 13, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
144
144
  { no: 14, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
145
145
  { no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
+ { no: 16, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
146
147
  ],
147
148
  );
148
149