@livekit/protocol 1.35.0 → 1.36.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/dist/index.cjs CHANGED
@@ -177,8 +177,9 @@ const ImageCodec = /* @__PURE__ */ protobuf.proto3.makeEnum(
177
177
  const BackupCodecPolicy = /* @__PURE__ */ protobuf.proto3.makeEnum(
178
178
  "livekit.BackupCodecPolicy",
179
179
  [
180
- { no: 0, name: "REGRESSION" },
181
- { no: 1, name: "SIMULCAST" }
180
+ { no: 0, name: "PREFER_REGRESSION" },
181
+ { no: 1, name: "SIMULCAST" },
182
+ { no: 2, name: "REGRESSION" }
182
183
  ]
183
184
  );
184
185
  const TrackType = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -292,6 +293,12 @@ const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
292
293
  }
293
294
  ]
294
295
  );
296
+ const ListUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
297
+ "livekit.ListUpdate",
298
+ () => [
299
+ { no: 1, name: "set", kind: "scalar", T: 9, repeated: true }
300
+ ]
301
+ );
295
302
  const Room = /* @__PURE__ */ protobuf.proto3.makeMessageType(
296
303
  "livekit.Room",
297
304
  () => [
@@ -565,7 +572,8 @@ const ParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
565
572
  T: 9
566
573
  /* ScalarType.STRING */
567
574
  } },
568
- { no: 16, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) }
575
+ { no: 16, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) },
576
+ { no: 18, name: "kind_details", kind: "enum", T: protobuf.proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true }
569
577
  ]
570
578
  );
571
579
  const ParticipantInfo_State = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -584,8 +592,14 @@ const ParticipantInfo_Kind = /* @__PURE__ */ protobuf.proto3.makeEnum(
584
592
  { no: 1, name: "INGRESS" },
585
593
  { no: 2, name: "EGRESS" },
586
594
  { no: 3, name: "SIP" },
587
- { no: 4, name: "AGENT" },
588
- { no: 5, name: "FORWARDED" }
595
+ { no: 4, name: "AGENT" }
596
+ ]
597
+ );
598
+ const ParticipantInfo_KindDetail = /* @__PURE__ */ protobuf.proto3.makeEnum(
599
+ "livekit.ParticipantInfo.KindDetail",
600
+ [
601
+ { no: 0, name: "CLOUD_AGENT" },
602
+ { no: 1, name: "FORWARDED" }
589
603
  ]
590
604
  );
591
605
  const Encryption = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5532,6 +5546,20 @@ const CreateSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessage
5532
5546
  { no: 1, name: "trunk", kind: "message", T: SIPInboundTrunkInfo }
5533
5547
  ]
5534
5548
  );
5549
+ const UpdateSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5550
+ "livekit.UpdateSIPInboundTrunkRequest",
5551
+ () => [
5552
+ {
5553
+ no: 1,
5554
+ name: "sip_trunk_id",
5555
+ kind: "scalar",
5556
+ T: 9
5557
+ /* ScalarType.STRING */
5558
+ },
5559
+ { no: 2, name: "replace", kind: "message", T: SIPInboundTrunkInfo, oneof: "action" },
5560
+ { no: 3, name: "update", kind: "message", T: SIPInboundTrunkUpdate, oneof: "action" }
5561
+ ]
5562
+ );
5535
5563
  const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5536
5564
  "livekit.SIPInboundTrunkInfo",
5537
5565
  () => [
@@ -5601,12 +5629,38 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5601
5629
  { no: 16, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5602
5630
  ]
5603
5631
  );
5632
+ const SIPInboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5633
+ "livekit.SIPInboundTrunkUpdate",
5634
+ () => [
5635
+ { no: 1, name: "numbers", kind: "message", T: ListUpdate },
5636
+ { no: 2, name: "allowed_addresses", kind: "message", T: ListUpdate },
5637
+ { no: 3, name: "allowed_numbers", kind: "message", T: ListUpdate },
5638
+ { no: 4, name: "auth_username", kind: "scalar", T: 9, opt: true },
5639
+ { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
5640
+ { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
5641
+ { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true }
5642
+ ]
5643
+ );
5604
5644
  const CreateSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5605
5645
  "livekit.CreateSIPOutboundTrunkRequest",
5606
5646
  () => [
5607
5647
  { no: 1, name: "trunk", kind: "message", T: SIPOutboundTrunkInfo }
5608
5648
  ]
5609
5649
  );
5650
+ const UpdateSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5651
+ "livekit.UpdateSIPOutboundTrunkRequest",
5652
+ () => [
5653
+ {
5654
+ no: 1,
5655
+ name: "sip_trunk_id",
5656
+ kind: "scalar",
5657
+ T: 9
5658
+ /* ScalarType.STRING */
5659
+ },
5660
+ { no: 2, name: "replace", kind: "message", T: SIPOutboundTrunkInfo, oneof: "action" },
5661
+ { no: 3, name: "update", kind: "message", T: SIPOutboundTrunkUpdate, oneof: "action" }
5662
+ ]
5663
+ );
5610
5664
  const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5611
5665
  "livekit.SIPOutboundTrunkInfo",
5612
5666
  () => [
@@ -5673,6 +5727,18 @@ const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5673
5727
  { no: 13, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5674
5728
  ]
5675
5729
  );
5730
+ const SIPOutboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5731
+ "livekit.SIPOutboundTrunkUpdate",
5732
+ () => [
5733
+ { no: 1, name: "address", kind: "scalar", T: 9, opt: true },
5734
+ { no: 2, name: "transport", kind: "enum", T: protobuf.proto3.getEnumType(SIPTransport), opt: true },
5735
+ { no: 3, name: "numbers", kind: "message", T: ListUpdate },
5736
+ { no: 4, name: "auth_username", kind: "scalar", T: 9, opt: true },
5737
+ { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
5738
+ { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
5739
+ { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true }
5740
+ ]
5741
+ );
5676
5742
  const GetSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5677
5743
  "livekit.GetSIPInboundTrunkRequest",
5678
5744
  () => [
@@ -5836,6 +5902,7 @@ const SIPDispatchRule = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5836
5902
  const CreateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5837
5903
  "livekit.CreateSIPDispatchRuleRequest",
5838
5904
  () => [
5905
+ { no: 10, name: "dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
5839
5906
  { no: 1, name: "rule", kind: "message", T: SIPDispatchRule },
5840
5907
  { no: 2, name: "trunk_ids", kind: "scalar", T: 9, repeated: true },
5841
5908
  {
@@ -5875,6 +5942,20 @@ const CreateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessage
5875
5942
  { no: 9, name: "room_config", kind: "message", T: RoomConfiguration }
5876
5943
  ]
5877
5944
  );
5945
+ const UpdateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5946
+ "livekit.UpdateSIPDispatchRuleRequest",
5947
+ () => [
5948
+ {
5949
+ no: 1,
5950
+ name: "sip_dispatch_rule_id",
5951
+ kind: "scalar",
5952
+ T: 9
5953
+ /* ScalarType.STRING */
5954
+ },
5955
+ { no: 2, name: "replace", kind: "message", T: SIPDispatchRuleInfo, oneof: "action" },
5956
+ { no: 3, name: "update", kind: "message", T: SIPDispatchRuleUpdate, oneof: "action" }
5957
+ ]
5958
+ );
5878
5959
  const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5879
5960
  "livekit.SIPDispatchRuleInfo",
5880
5961
  () => [
@@ -5932,6 +6013,20 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5932
6013
  { no: 12, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5933
6014
  ]
5934
6015
  );
6016
+ const SIPDispatchRuleUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6017
+ "livekit.SIPDispatchRuleUpdate",
6018
+ () => [
6019
+ { no: 1, name: "trunk_ids", kind: "message", T: ListUpdate },
6020
+ { no: 2, name: "rule", kind: "message", T: SIPDispatchRule },
6021
+ { no: 3, name: "name", kind: "scalar", T: 9, opt: true },
6022
+ { no: 4, name: "metadata", kind: "scalar", T: 9, opt: true },
6023
+ { no: 5, name: "attributes", kind: "map", K: 9, V: {
6024
+ kind: "scalar",
6025
+ T: 9
6026
+ /* ScalarType.STRING */
6027
+ } }
6028
+ ]
6029
+ );
5935
6030
  const ListSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5936
6031
  "livekit.ListSIPDispatchRuleRequest",
5937
6032
  () => [
@@ -6380,7 +6475,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6380
6475
  ]
6381
6476
  );
6382
6477
 
6383
- const version = "1.35.0";
6478
+ const version = "1.36.1";
6384
6479
 
6385
6480
  exports.protoInt64 = protobuf.protoInt64;
6386
6481
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -6496,6 +6591,7 @@ exports.ListSIPOutboundTrunkRequest = ListSIPOutboundTrunkRequest;
6496
6591
  exports.ListSIPOutboundTrunkResponse = ListSIPOutboundTrunkResponse;
6497
6592
  exports.ListSIPTrunkRequest = ListSIPTrunkRequest;
6498
6593
  exports.ListSIPTrunkResponse = ListSIPTrunkResponse;
6594
+ exports.ListUpdate = ListUpdate;
6499
6595
  exports.MetricLabel = MetricLabel;
6500
6596
  exports.MetricSample = MetricSample;
6501
6597
  exports.MetricsBatch = MetricsBatch;
@@ -6507,6 +6603,7 @@ exports.Pagination = Pagination;
6507
6603
  exports.ParticipantEgressRequest = ParticipantEgressRequest;
6508
6604
  exports.ParticipantInfo = ParticipantInfo;
6509
6605
  exports.ParticipantInfo_Kind = ParticipantInfo_Kind;
6606
+ exports.ParticipantInfo_KindDetail = ParticipantInfo_KindDetail;
6510
6607
  exports.ParticipantInfo_State = ParticipantInfo_State;
6511
6608
  exports.ParticipantPermission = ParticipantPermission;
6512
6609
  exports.ParticipantTracks = ParticipantTracks;
@@ -6550,12 +6647,15 @@ exports.SIPDispatchRuleCallee = SIPDispatchRuleCallee;
6550
6647
  exports.SIPDispatchRuleDirect = SIPDispatchRuleDirect;
6551
6648
  exports.SIPDispatchRuleIndividual = SIPDispatchRuleIndividual;
6552
6649
  exports.SIPDispatchRuleInfo = SIPDispatchRuleInfo;
6650
+ exports.SIPDispatchRuleUpdate = SIPDispatchRuleUpdate;
6553
6651
  exports.SIPFeature = SIPFeature;
6554
6652
  exports.SIPHeaderOptions = SIPHeaderOptions;
6555
6653
  exports.SIPInboundTrunkInfo = SIPInboundTrunkInfo;
6654
+ exports.SIPInboundTrunkUpdate = SIPInboundTrunkUpdate;
6556
6655
  exports.SIPMediaEncryption = SIPMediaEncryption;
6557
6656
  exports.SIPOutboundConfig = SIPOutboundConfig;
6558
6657
  exports.SIPOutboundTrunkInfo = SIPOutboundTrunkInfo;
6658
+ exports.SIPOutboundTrunkUpdate = SIPOutboundTrunkUpdate;
6559
6659
  exports.SIPParticipantInfo = SIPParticipantInfo;
6560
6660
  exports.SIPStatus = SIPStatus;
6561
6661
  exports.SIPStatusCode = SIPStatusCode;
@@ -6623,6 +6723,9 @@ exports.UpdateLocalVideoTrack = UpdateLocalVideoTrack;
6623
6723
  exports.UpdateParticipantMetadata = UpdateParticipantMetadata;
6624
6724
  exports.UpdateParticipantRequest = UpdateParticipantRequest;
6625
6725
  exports.UpdateRoomMetadataRequest = UpdateRoomMetadataRequest;
6726
+ exports.UpdateSIPDispatchRuleRequest = UpdateSIPDispatchRuleRequest;
6727
+ exports.UpdateSIPInboundTrunkRequest = UpdateSIPInboundTrunkRequest;
6728
+ exports.UpdateSIPOutboundTrunkRequest = UpdateSIPOutboundTrunkRequest;
6626
6729
  exports.UpdateStreamRequest = UpdateStreamRequest;
6627
6730
  exports.UpdateSubscription = UpdateSubscription;
6628
6731
  exports.UpdateSubscriptionsRequest = UpdateSubscriptionsRequest;