@livekit/protocol 1.40.0 → 2.0.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
@@ -296,6 +296,18 @@ const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
296
296
  }
297
297
  ]
298
298
  );
299
+ const TokenPagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
300
+ "livekit.TokenPagination",
301
+ () => [
302
+ {
303
+ no: 1,
304
+ name: "token",
305
+ kind: "scalar",
306
+ T: 9
307
+ /* ScalarType.STRING */
308
+ }
309
+ ]
310
+ );
299
311
  const ListUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
300
312
  "livekit.ListUpdate",
301
313
  () => [
@@ -838,6 +850,7 @@ const DataPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
838
850
  { no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
839
851
  { no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
840
852
  { no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
853
+ { no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
841
854
  {
842
855
  no: 16,
843
856
  name: "sequence",
@@ -861,6 +874,46 @@ const DataPacket_Kind = /* @__PURE__ */ protobuf.proto3.makeEnum(
861
874
  { no: 1, name: "LOSSY" }
862
875
  ]
863
876
  );
877
+ const EncryptedPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
878
+ "livekit.EncryptedPacket",
879
+ () => [
880
+ { no: 1, name: "encryption_type", kind: "enum", T: protobuf.proto3.getEnumType(Encryption_Type) },
881
+ {
882
+ no: 2,
883
+ name: "iv",
884
+ kind: "scalar",
885
+ T: 12
886
+ /* ScalarType.BYTES */
887
+ },
888
+ {
889
+ no: 3,
890
+ name: "key_index",
891
+ kind: "scalar",
892
+ T: 13
893
+ /* ScalarType.UINT32 */
894
+ },
895
+ {
896
+ no: 4,
897
+ name: "encrypted_value",
898
+ kind: "scalar",
899
+ T: 12
900
+ /* ScalarType.BYTES */
901
+ }
902
+ ]
903
+ );
904
+ const EncryptedPacketPayload = /* @__PURE__ */ protobuf.proto3.makeMessageType(
905
+ "livekit.EncryptedPacketPayload",
906
+ () => [
907
+ { no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
908
+ { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
909
+ { no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
910
+ { no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
911
+ { no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
912
+ { no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
913
+ { no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
914
+ { no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" }
915
+ ]
916
+ );
864
917
  const ActiveSpeakerUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
865
918
  "livekit.ActiveSpeakerUpdate",
866
919
  () => [
@@ -4645,7 +4698,8 @@ const SignalResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4645
4698
  { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
4646
4699
  { no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
4647
4700
  { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
4648
- { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" }
4701
+ { no: 24, name: "room_moved", kind: "message", T: RoomMovedResponse, oneof: "message" },
4702
+ { no: 25, name: "media_sections_requirement", kind: "message", T: MediaSectionsRequirement, oneof: "message" }
4649
4703
  ]
4650
4704
  );
4651
4705
  const SimulcastCodec = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5570,6 +5624,25 @@ const WrappedJoinRequest_Compression = /* @__PURE__ */ protobuf.proto3.makeEnum(
5570
5624
  { no: 1, name: "GZIP" }
5571
5625
  ]
5572
5626
  );
5627
+ const MediaSectionsRequirement = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5628
+ "livekit.MediaSectionsRequirement",
5629
+ () => [
5630
+ {
5631
+ no: 1,
5632
+ name: "num_audios",
5633
+ kind: "scalar",
5634
+ T: 13
5635
+ /* ScalarType.UINT32 */
5636
+ },
5637
+ {
5638
+ no: 2,
5639
+ name: "num_videos",
5640
+ kind: "scalar",
5641
+ T: 13
5642
+ /* ScalarType.UINT32 */
5643
+ }
5644
+ ]
5645
+ );
5573
5646
 
5574
5647
  const SIPStatusCode = /* @__PURE__ */ protobuf.proto3.makeEnum(
5575
5648
  "livekit.SIPStatusCode",
@@ -6844,7 +6917,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6844
6917
  ]
6845
6918
  );
6846
6919
 
6847
- const version = "1.40.0";
6920
+ const version = "2.0.0";
6848
6921
 
6849
6922
  exports.protoInt64 = protobuf.protoInt64;
6850
6923
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -6907,6 +6980,8 @@ exports.EncodedFileOutput = EncodedFileOutput;
6907
6980
  exports.EncodedFileType = EncodedFileType;
6908
6981
  exports.EncodingOptions = EncodingOptions;
6909
6982
  exports.EncodingOptionsPreset = EncodingOptionsPreset;
6983
+ exports.EncryptedPacket = EncryptedPacket;
6984
+ exports.EncryptedPacketPayload = EncryptedPacketPayload;
6910
6985
  exports.Encryption = Encryption;
6911
6986
  exports.Encryption_Type = Encryption_Type;
6912
6987
  exports.EventMetric = EventMetric;
@@ -6964,6 +7039,7 @@ exports.ListSIPOutboundTrunkResponse = ListSIPOutboundTrunkResponse;
6964
7039
  exports.ListSIPTrunkRequest = ListSIPTrunkRequest;
6965
7040
  exports.ListSIPTrunkResponse = ListSIPTrunkResponse;
6966
7041
  exports.ListUpdate = ListUpdate;
7042
+ exports.MediaSectionsRequirement = MediaSectionsRequirement;
6967
7043
  exports.MetricLabel = MetricLabel;
6968
7044
  exports.MetricSample = MetricSample;
6969
7045
  exports.MetricsBatch = MetricsBatch;
@@ -7079,6 +7155,7 @@ exports.SubscriptionResponse = SubscriptionResponse;
7079
7155
  exports.SyncState = SyncState;
7080
7156
  exports.TimeSeriesMetric = TimeSeriesMetric;
7081
7157
  exports.TimedVersion = TimedVersion;
7158
+ exports.TokenPagination = TokenPagination;
7082
7159
  exports.TrackCompositeEgressRequest = TrackCompositeEgressRequest;
7083
7160
  exports.TrackEgressRequest = TrackEgressRequest;
7084
7161
  exports.TrackInfo = TrackInfo;