@livekit/protocol 1.40.0 → 1.42.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 CHANGED
@@ -148,13 +148,27 @@ const EventMetric = /* @__PURE__ */ protobuf.proto3.makeMessageType(
148
148
  }
149
149
  ]
150
150
  );
151
+ const MetricsRecordingHeader = /* @__PURE__ */ protobuf.proto3.makeMessageType(
152
+ "livekit.MetricsRecordingHeader",
153
+ () => [
154
+ {
155
+ no: 1,
156
+ name: "room_id",
157
+ kind: "scalar",
158
+ T: 9
159
+ /* ScalarType.STRING */
160
+ },
161
+ { no: 2, name: "enable_user_data_training", kind: "scalar", T: 8, opt: true }
162
+ ]
163
+ );
151
164
 
152
165
  const AudioCodec = /* @__PURE__ */ protobuf.proto3.makeEnum(
153
166
  "livekit.AudioCodec",
154
167
  [
155
168
  { no: 0, name: "DEFAULT_AC" },
156
169
  { no: 1, name: "OPUS" },
157
- { no: 2, name: "AAC" }
170
+ { no: 2, name: "AAC" },
171
+ { no: 3, name: "AC_MP3" }
158
172
  ]
159
173
  );
160
174
  const VideoCodec = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -296,12 +310,24 @@ const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
296
310
  }
297
311
  ]
298
312
  );
313
+ const TokenPagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
314
+ "livekit.TokenPagination",
315
+ () => [
316
+ {
317
+ no: 1,
318
+ name: "token",
319
+ kind: "scalar",
320
+ T: 9
321
+ /* ScalarType.STRING */
322
+ }
323
+ ]
324
+ );
299
325
  const ListUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
300
326
  "livekit.ListUpdate",
301
327
  () => [
302
328
  { no: 1, name: "set", kind: "scalar", T: 9, repeated: true },
303
329
  { no: 2, name: "add", kind: "scalar", T: 9, repeated: true },
304
- { no: 3, name: "del", kind: "scalar", T: 9, repeated: true },
330
+ { no: 3, name: "remove", kind: "scalar", T: 9, repeated: true },
305
331
  {
306
332
  no: 4,
307
333
  name: "clear",
@@ -811,7 +837,8 @@ const VideoLayer_Mode = /* @__PURE__ */ protobuf.proto3.makeEnum(
811
837
  [
812
838
  { no: 0, name: "MODE_UNUSED" },
813
839
  { no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM" },
814
- { no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM" }
840
+ { no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM" },
841
+ { no: 3, name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR" }
815
842
  ]
816
843
  );
817
844
  const DataPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -838,6 +865,7 @@ const DataPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
838
865
  { no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
839
866
  { no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
840
867
  { no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
868
+ { no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
841
869
  {
842
870
  no: 16,
843
871
  name: "sequence",
@@ -861,6 +889,46 @@ const DataPacket_Kind = /* @__PURE__ */ protobuf.proto3.makeEnum(
861
889
  { no: 1, name: "LOSSY" }
862
890
  ]
863
891
  );
892
+ const EncryptedPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
893
+ "livekit.EncryptedPacket",
894
+ () => [
895
+ { no: 1, name: "encryption_type", kind: "enum", T: protobuf.proto3.getEnumType(Encryption_Type) },
896
+ {
897
+ no: 2,
898
+ name: "iv",
899
+ kind: "scalar",
900
+ T: 12
901
+ /* ScalarType.BYTES */
902
+ },
903
+ {
904
+ no: 3,
905
+ name: "key_index",
906
+ kind: "scalar",
907
+ T: 13
908
+ /* ScalarType.UINT32 */
909
+ },
910
+ {
911
+ no: 4,
912
+ name: "encrypted_value",
913
+ kind: "scalar",
914
+ T: 12
915
+ /* ScalarType.BYTES */
916
+ }
917
+ ]
918
+ );
919
+ const EncryptedPacketPayload = /* @__PURE__ */ protobuf.proto3.makeMessageType(
920
+ "livekit.EncryptedPacketPayload",
921
+ () => [
922
+ { no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
923
+ { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
924
+ { no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
925
+ { no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
926
+ { no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
927
+ { no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
928
+ { no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
929
+ { no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" }
930
+ ]
931
+ );
864
932
  const ActiveSpeakerUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
865
933
  "livekit.ActiveSpeakerUpdate",
866
934
  () => [
@@ -2046,6 +2114,25 @@ const WebhookConfig = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2046
2114
  }
2047
2115
  ]
2048
2116
  );
2117
+ const SubscribedAudioCodec = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2118
+ "livekit.SubscribedAudioCodec",
2119
+ () => [
2120
+ {
2121
+ no: 1,
2122
+ name: "codec",
2123
+ kind: "scalar",
2124
+ T: 9
2125
+ /* ScalarType.STRING */
2126
+ },
2127
+ {
2128
+ no: 2,
2129
+ name: "enabled",
2130
+ kind: "scalar",
2131
+ T: 8
2132
+ /* ScalarType.BOOL */
2133
+ }
2134
+ ]
2135
+ );
2049
2136
 
2050
2137
  const JobType = /* @__PURE__ */ protobuf.proto3.makeEnum(
2051
2138
  "livekit.JobType",
@@ -2567,7 +2654,8 @@ const EncodedFileType = /* @__PURE__ */ protobuf.proto3.makeEnum(
2567
2654
  [
2568
2655
  { no: 0, name: "DEFAULT_FILETYPE" },
2569
2656
  { no: 1, name: "MP4" },
2570
- { no: 2, name: "OGG" }
2657
+ { no: 2, name: "OGG" },
2658
+ { no: 3, name: "MP3" }
2571
2659
  ]
2572
2660
  );
2573
2661
  const SegmentedFileProtocol = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -4575,6 +4663,58 @@ const MoveParticipantResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4575
4663
  "livekit.MoveParticipantResponse",
4576
4664
  []
4577
4665
  );
4666
+ const PerformRpcRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4667
+ "livekit.PerformRpcRequest",
4668
+ () => [
4669
+ {
4670
+ no: 1,
4671
+ name: "room",
4672
+ kind: "scalar",
4673
+ T: 9
4674
+ /* ScalarType.STRING */
4675
+ },
4676
+ {
4677
+ no: 2,
4678
+ name: "destination_identity",
4679
+ kind: "scalar",
4680
+ T: 9
4681
+ /* ScalarType.STRING */
4682
+ },
4683
+ {
4684
+ no: 3,
4685
+ name: "method",
4686
+ kind: "scalar",
4687
+ T: 9
4688
+ /* ScalarType.STRING */
4689
+ },
4690
+ {
4691
+ no: 4,
4692
+ name: "payload",
4693
+ kind: "scalar",
4694
+ T: 9
4695
+ /* ScalarType.STRING */
4696
+ },
4697
+ {
4698
+ no: 5,
4699
+ name: "response_timeout_ms",
4700
+ kind: "scalar",
4701
+ T: 13
4702
+ /* ScalarType.UINT32 */
4703
+ }
4704
+ ]
4705
+ );
4706
+ const PerformRpcResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4707
+ "livekit.PerformRpcResponse",
4708
+ () => [
4709
+ {
4710
+ no: 1,
4711
+ name: "payload",
4712
+ kind: "scalar",
4713
+ T: 9
4714
+ /* ScalarType.STRING */
4715
+ }
4716
+ ]
4717
+ );
4578
4718
 
4579
4719
  const SignalTarget = /* @__PURE__ */ protobuf.proto3.makeEnum(
4580
4720
  "livekit.SignalTarget",
@@ -4645,7 +4785,9 @@ const SignalResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4645
4785
  { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
4646
4786
  { no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
4647
4787
  { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
4648
- { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" }
4788
+ { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
4789
+ { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" },
4790
+ { no: 26, name: "subscribed_audio_codec_update", kind: "message", T: SubscribedAudioCodecUpdate, oneof: "message" }
4649
4791
  ]
4650
4792
  );
4651
4793
  const SimulcastCodec = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5216,6 +5358,19 @@ const SubscribedQualityUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5216
5358
  { no: 3, name: "subscribed_codecs", kind: "message", T: SubscribedCodec, repeated: true }
5217
5359
  ]
5218
5360
  );
5361
+ const SubscribedAudioCodecUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5362
+ "livekit.SubscribedAudioCodecUpdate",
5363
+ () => [
5364
+ {
5365
+ no: 1,
5366
+ name: "track_sid",
5367
+ kind: "scalar",
5368
+ T: 9
5369
+ /* ScalarType.STRING */
5370
+ },
5371
+ { no: 2, name: "subscribed_audio_codecs", kind: "message", T: SubscribedAudioCodec, repeated: true }
5372
+ ]
5373
+ );
5219
5374
  const TrackPermission = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5220
5375
  "livekit.TrackPermission",
5221
5376
  () => [
@@ -5462,7 +5617,13 @@ const RequestResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5462
5617
  kind: "scalar",
5463
5618
  T: 9
5464
5619
  /* ScalarType.STRING */
5465
- }
5620
+ },
5621
+ { no: 4, name: "trickle", kind: "message", T: TrickleRequest, oneof: "request" },
5622
+ { no: 5, name: "add_track", kind: "message", T: AddTrackRequest, oneof: "request" },
5623
+ { no: 6, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "request" },
5624
+ { no: 7, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "request" },
5625
+ { no: 8, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "request" },
5626
+ { no: 9, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "request" }
5466
5627
  ]
5467
5628
  );
5468
5629
  const RequestResponse_Reason = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -5471,7 +5632,10 @@ const RequestResponse_Reason = /* @__PURE__ */ protobuf.proto3.makeEnum(
5471
5632
  { no: 0, name: "OK" },
5472
5633
  { no: 1, name: "NOT_FOUND" },
5473
5634
  { no: 2, name: "NOT_ALLOWED" },
5474
- { no: 3, name: "LIMIT_EXCEEDED" }
5635
+ { no: 3, name: "LIMIT_EXCEEDED" },
5636
+ { no: 4, name: "QUEUED" },
5637
+ { no: 5, name: "UNSUPPORTED_TYPE" },
5638
+ { no: 6, name: "UNCLASSIFIED_ERROR" }
5475
5639
  ]
5476
5640
  );
5477
5641
  const TrackSubscribed = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5570,6 +5734,25 @@ const WrappedJoinRequest_Compression = /* @__PURE__ */ protobuf.proto3.makeEnum(
5570
5734
  { no: 1, name: "GZIP" }
5571
5735
  ]
5572
5736
  );
5737
+ const MediaSectionsRequirement = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5738
+ "livekit.MediaSectionsRequirement",
5739
+ () => [
5740
+ {
5741
+ no: 1,
5742
+ name: "num_audios",
5743
+ kind: "scalar",
5744
+ T: 13
5745
+ /* ScalarType.UINT32 */
5746
+ },
5747
+ {
5748
+ no: 2,
5749
+ name: "num_videos",
5750
+ kind: "scalar",
5751
+ T: 13
5752
+ /* ScalarType.UINT32 */
5753
+ }
5754
+ ]
5755
+ );
5573
5756
 
5574
5757
  const SIPStatusCode = /* @__PURE__ */ protobuf.proto3.makeEnum(
5575
5758
  "livekit.SIPStatusCode",
@@ -6517,7 +6700,8 @@ const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageT
6517
6700
  kind: "scalar",
6518
6701
  T: 8
6519
6702
  /* ScalarType.BOOL */
6520
- }
6703
+ },
6704
+ { no: 21, name: "display_name", kind: "scalar", T: 9, opt: true }
6521
6705
  ]
6522
6706
  );
6523
6707
  const SIPParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6718,7 +6902,15 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6718
6902
  kind: "scalar",
6719
6903
  T: 9
6720
6904
  /* ScalarType.STRING */
6721
- }
6905
+ },
6906
+ {
6907
+ no: 25,
6908
+ name: "pcap_file_link",
6909
+ kind: "scalar",
6910
+ T: 9
6911
+ /* ScalarType.STRING */
6912
+ },
6913
+ { no: 26, name: "call_context", kind: "message", T: protobuf.Any, repeated: true }
6722
6914
  ]
6723
6915
  );
6724
6916
  const SIPTransferInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6805,6 +6997,41 @@ const SIPUri = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6805
6997
  ]
6806
6998
  );
6807
6999
 
7000
+ const TokenSourceRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7001
+ "livekit.TokenSourceRequest",
7002
+ () => [
7003
+ { no: 1, name: "room_name", kind: "scalar", T: 9, opt: true },
7004
+ { no: 2, name: "participant_name", kind: "scalar", T: 9, opt: true },
7005
+ { no: 3, name: "participant_identity", kind: "scalar", T: 9, opt: true },
7006
+ { no: 4, name: "participant_metadata", kind: "scalar", T: 9, opt: true },
7007
+ { no: 5, name: "participant_attributes", kind: "map", K: 9, V: {
7008
+ kind: "scalar",
7009
+ T: 9
7010
+ /* ScalarType.STRING */
7011
+ } },
7012
+ { no: 6, name: "room_config", kind: "message", T: RoomConfiguration, opt: true }
7013
+ ]
7014
+ );
7015
+ const TokenSourceResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7016
+ "livekit.TokenSourceResponse",
7017
+ () => [
7018
+ {
7019
+ no: 1,
7020
+ name: "server_url",
7021
+ kind: "scalar",
7022
+ T: 9
7023
+ /* ScalarType.STRING */
7024
+ },
7025
+ {
7026
+ no: 2,
7027
+ name: "participant_token",
7028
+ kind: "scalar",
7029
+ T: 9
7030
+ /* ScalarType.STRING */
7031
+ }
7032
+ ]
7033
+ );
7034
+
6808
7035
  const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6809
7036
  "livekit.WebhookEvent",
6810
7037
  () => [
@@ -6844,7 +7071,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6844
7071
  ]
6845
7072
  );
6846
7073
 
6847
- const version = "1.40.0";
7074
+ const version = "1.42.0";
6848
7075
 
6849
7076
  exports.protoInt64 = protobuf.protoInt64;
6850
7077
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -6907,6 +7134,8 @@ exports.EncodedFileOutput = EncodedFileOutput;
6907
7134
  exports.EncodedFileType = EncodedFileType;
6908
7135
  exports.EncodingOptions = EncodingOptions;
6909
7136
  exports.EncodingOptionsPreset = EncodingOptionsPreset;
7137
+ exports.EncryptedPacket = EncryptedPacket;
7138
+ exports.EncryptedPacketPayload = EncryptedPacketPayload;
6910
7139
  exports.Encryption = Encryption;
6911
7140
  exports.Encryption_Type = Encryption_Type;
6912
7141
  exports.EventMetric = EventMetric;
@@ -6964,9 +7193,11 @@ exports.ListSIPOutboundTrunkResponse = ListSIPOutboundTrunkResponse;
6964
7193
  exports.ListSIPTrunkRequest = ListSIPTrunkRequest;
6965
7194
  exports.ListSIPTrunkResponse = ListSIPTrunkResponse;
6966
7195
  exports.ListUpdate = ListUpdate;
7196
+ exports.MediaSectionsRequirement = MediaSectionsRequirement;
6967
7197
  exports.MetricLabel = MetricLabel;
6968
7198
  exports.MetricSample = MetricSample;
6969
7199
  exports.MetricsBatch = MetricsBatch;
7200
+ exports.MetricsRecordingHeader = MetricsRecordingHeader;
6970
7201
  exports.MigrateJobRequest = MigrateJobRequest;
6971
7202
  exports.MoveParticipantRequest = MoveParticipantRequest;
6972
7203
  exports.MoveParticipantResponse = MoveParticipantResponse;
@@ -6982,6 +7213,8 @@ exports.ParticipantInfo_State = ParticipantInfo_State;
6982
7213
  exports.ParticipantPermission = ParticipantPermission;
6983
7214
  exports.ParticipantTracks = ParticipantTracks;
6984
7215
  exports.ParticipantUpdate = ParticipantUpdate;
7216
+ exports.PerformRpcRequest = PerformRpcRequest;
7217
+ exports.PerformRpcResponse = PerformRpcResponse;
6985
7218
  exports.Ping = Ping;
6986
7219
  exports.PlayoutDelay = PlayoutDelay;
6987
7220
  exports.Pong = Pong;
@@ -7069,6 +7302,8 @@ exports.StreamProtocol = StreamProtocol;
7069
7302
  exports.StreamState = StreamState;
7070
7303
  exports.StreamStateInfo = StreamStateInfo;
7071
7304
  exports.StreamStateUpdate = StreamStateUpdate;
7305
+ exports.SubscribedAudioCodec = SubscribedAudioCodec;
7306
+ exports.SubscribedAudioCodecUpdate = SubscribedAudioCodecUpdate;
7072
7307
  exports.SubscribedCodec = SubscribedCodec;
7073
7308
  exports.SubscribedQuality = SubscribedQuality;
7074
7309
  exports.SubscribedQualityUpdate = SubscribedQualityUpdate;
@@ -7079,6 +7314,9 @@ exports.SubscriptionResponse = SubscriptionResponse;
7079
7314
  exports.SyncState = SyncState;
7080
7315
  exports.TimeSeriesMetric = TimeSeriesMetric;
7081
7316
  exports.TimedVersion = TimedVersion;
7317
+ exports.TokenPagination = TokenPagination;
7318
+ exports.TokenSourceRequest = TokenSourceRequest;
7319
+ exports.TokenSourceResponse = TokenSourceResponse;
7082
7320
  exports.TrackCompositeEgressRequest = TrackCompositeEgressRequest;
7083
7321
  exports.TrackEgressRequest = TrackEgressRequest;
7084
7322
  exports.TrackInfo = TrackInfo;