@livekit/protocol 1.41.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(
@@ -313,7 +327,7 @@ const ListUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
313
327
  () => [
314
328
  { no: 1, name: "set", kind: "scalar", T: 9, repeated: true },
315
329
  { no: 2, name: "add", kind: "scalar", T: 9, repeated: true },
316
- { no: 3, name: "del", kind: "scalar", T: 9, repeated: true },
330
+ { no: 3, name: "remove", kind: "scalar", T: 9, repeated: true },
317
331
  {
318
332
  no: 4,
319
333
  name: "clear",
@@ -823,7 +837,8 @@ const VideoLayer_Mode = /* @__PURE__ */ protobuf.proto3.makeEnum(
823
837
  [
824
838
  { no: 0, name: "MODE_UNUSED" },
825
839
  { no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM" },
826
- { 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" }
827
842
  ]
828
843
  );
829
844
  const DataPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -2099,6 +2114,25 @@ const WebhookConfig = /* @__PURE__ */ protobuf.proto3.makeMessageType(
2099
2114
  }
2100
2115
  ]
2101
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
+ );
2102
2136
 
2103
2137
  const JobType = /* @__PURE__ */ protobuf.proto3.makeEnum(
2104
2138
  "livekit.JobType",
@@ -2620,7 +2654,8 @@ const EncodedFileType = /* @__PURE__ */ protobuf.proto3.makeEnum(
2620
2654
  [
2621
2655
  { no: 0, name: "DEFAULT_FILETYPE" },
2622
2656
  { no: 1, name: "MP4" },
2623
- { no: 2, name: "OGG" }
2657
+ { no: 2, name: "OGG" },
2658
+ { no: 3, name: "MP3" }
2624
2659
  ]
2625
2660
  );
2626
2661
  const SegmentedFileProtocol = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -4628,6 +4663,58 @@ const MoveParticipantResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4628
4663
  "livekit.MoveParticipantResponse",
4629
4664
  []
4630
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
+ );
4631
4718
 
4632
4719
  const SignalTarget = /* @__PURE__ */ protobuf.proto3.makeEnum(
4633
4720
  "livekit.SignalTarget",
@@ -4699,7 +4786,8 @@ const SignalResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4699
4786
  { no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
4700
4787
  { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
4701
4788
  { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
4702
- { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, 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" }
4703
4791
  ]
4704
4792
  );
4705
4793
  const SimulcastCodec = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5270,6 +5358,19 @@ const SubscribedQualityUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5270
5358
  { no: 3, name: "subscribed_codecs", kind: "message", T: SubscribedCodec, repeated: true }
5271
5359
  ]
5272
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
+ );
5273
5374
  const TrackPermission = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5274
5375
  "livekit.TrackPermission",
5275
5376
  () => [
@@ -5516,7 +5617,13 @@ const RequestResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5516
5617
  kind: "scalar",
5517
5618
  T: 9
5518
5619
  /* ScalarType.STRING */
5519
- }
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" }
5520
5627
  ]
5521
5628
  );
5522
5629
  const RequestResponse_Reason = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -5525,7 +5632,10 @@ const RequestResponse_Reason = /* @__PURE__ */ protobuf.proto3.makeEnum(
5525
5632
  { no: 0, name: "OK" },
5526
5633
  { no: 1, name: "NOT_FOUND" },
5527
5634
  { no: 2, name: "NOT_ALLOWED" },
5528
- { 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" }
5529
5639
  ]
5530
5640
  );
5531
5641
  const TrackSubscribed = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6590,7 +6700,8 @@ const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageT
6590
6700
  kind: "scalar",
6591
6701
  T: 8
6592
6702
  /* ScalarType.BOOL */
6593
- }
6703
+ },
6704
+ { no: 21, name: "display_name", kind: "scalar", T: 9, opt: true }
6594
6705
  ]
6595
6706
  );
6596
6707
  const SIPParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6791,7 +6902,15 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6791
6902
  kind: "scalar",
6792
6903
  T: 9
6793
6904
  /* ScalarType.STRING */
6794
- }
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 }
6795
6914
  ]
6796
6915
  );
6797
6916
  const SIPTransferInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6878,6 +6997,41 @@ const SIPUri = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6878
6997
  ]
6879
6998
  );
6880
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
+
6881
7035
  const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6882
7036
  "livekit.WebhookEvent",
6883
7037
  () => [
@@ -6917,7 +7071,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6917
7071
  ]
6918
7072
  );
6919
7073
 
6920
- const version = "1.41.0";
7074
+ const version = "1.42.0";
6921
7075
 
6922
7076
  exports.protoInt64 = protobuf.protoInt64;
6923
7077
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -7043,6 +7197,7 @@ exports.MediaSectionsRequirement = MediaSectionsRequirement;
7043
7197
  exports.MetricLabel = MetricLabel;
7044
7198
  exports.MetricSample = MetricSample;
7045
7199
  exports.MetricsBatch = MetricsBatch;
7200
+ exports.MetricsRecordingHeader = MetricsRecordingHeader;
7046
7201
  exports.MigrateJobRequest = MigrateJobRequest;
7047
7202
  exports.MoveParticipantRequest = MoveParticipantRequest;
7048
7203
  exports.MoveParticipantResponse = MoveParticipantResponse;
@@ -7058,6 +7213,8 @@ exports.ParticipantInfo_State = ParticipantInfo_State;
7058
7213
  exports.ParticipantPermission = ParticipantPermission;
7059
7214
  exports.ParticipantTracks = ParticipantTracks;
7060
7215
  exports.ParticipantUpdate = ParticipantUpdate;
7216
+ exports.PerformRpcRequest = PerformRpcRequest;
7217
+ exports.PerformRpcResponse = PerformRpcResponse;
7061
7218
  exports.Ping = Ping;
7062
7219
  exports.PlayoutDelay = PlayoutDelay;
7063
7220
  exports.Pong = Pong;
@@ -7145,6 +7302,8 @@ exports.StreamProtocol = StreamProtocol;
7145
7302
  exports.StreamState = StreamState;
7146
7303
  exports.StreamStateInfo = StreamStateInfo;
7147
7304
  exports.StreamStateUpdate = StreamStateUpdate;
7305
+ exports.SubscribedAudioCodec = SubscribedAudioCodec;
7306
+ exports.SubscribedAudioCodecUpdate = SubscribedAudioCodecUpdate;
7148
7307
  exports.SubscribedCodec = SubscribedCodec;
7149
7308
  exports.SubscribedQuality = SubscribedQuality;
7150
7309
  exports.SubscribedQualityUpdate = SubscribedQualityUpdate;
@@ -7156,6 +7315,8 @@ exports.SyncState = SyncState;
7156
7315
  exports.TimeSeriesMetric = TimeSeriesMetric;
7157
7316
  exports.TimedVersion = TimedVersion;
7158
7317
  exports.TokenPagination = TokenPagination;
7318
+ exports.TokenSourceRequest = TokenSourceRequest;
7319
+ exports.TokenSourceResponse = TokenSourceResponse;
7159
7320
  exports.TrackCompositeEgressRequest = TrackCompositeEgressRequest;
7160
7321
  exports.TrackEgressRequest = TrackEgressRequest;
7161
7322
  exports.TrackInfo = TrackInfo;