@livekit/protocol 1.34.0 → 1.36.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
@@ -292,6 +292,12 @@ const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
292
292
  }
293
293
  ]
294
294
  );
295
+ const ListUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
296
+ "livekit.ListUpdate",
297
+ () => [
298
+ { no: 1, name: "set", kind: "scalar", T: 9, repeated: true }
299
+ ]
300
+ );
295
301
  const Room = /* @__PURE__ */ protobuf.proto3.makeMessageType(
296
302
  "livekit.Room",
297
303
  () => [
@@ -565,7 +571,8 @@ const ParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
565
571
  T: 9
566
572
  /* ScalarType.STRING */
567
573
  } },
568
- { no: 16, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) }
574
+ { no: 16, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) },
575
+ { no: 18, name: "kind_details", kind: "enum", T: protobuf.proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true }
569
576
  ]
570
577
  );
571
578
  const ParticipantInfo_State = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -587,6 +594,13 @@ const ParticipantInfo_Kind = /* @__PURE__ */ protobuf.proto3.makeEnum(
587
594
  { no: 4, name: "AGENT" }
588
595
  ]
589
596
  );
597
+ const ParticipantInfo_KindDetail = /* @__PURE__ */ protobuf.proto3.makeEnum(
598
+ "livekit.ParticipantInfo.KindDetail",
599
+ [
600
+ { no: 0, name: "CLOUD_AGENT" },
601
+ { no: 1, name: "FORWARDED" }
602
+ ]
603
+ );
590
604
  const Encryption = /* @__PURE__ */ protobuf.proto3.makeMessageType(
591
605
  "livekit.Encryption",
592
606
  []
@@ -4375,6 +4389,36 @@ const RoomConfiguration = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4375
4389
  { no: 10, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true }
4376
4390
  ]
4377
4391
  );
4392
+ const ForwardParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4393
+ "livekit.ForwardParticipantRequest",
4394
+ () => [
4395
+ {
4396
+ no: 1,
4397
+ name: "room",
4398
+ kind: "scalar",
4399
+ T: 9
4400
+ /* ScalarType.STRING */
4401
+ },
4402
+ {
4403
+ no: 2,
4404
+ name: "identity",
4405
+ kind: "scalar",
4406
+ T: 9
4407
+ /* ScalarType.STRING */
4408
+ },
4409
+ {
4410
+ no: 3,
4411
+ name: "destination_room",
4412
+ kind: "scalar",
4413
+ T: 9
4414
+ /* ScalarType.STRING */
4415
+ }
4416
+ ]
4417
+ );
4418
+ const ForwardParticipantResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4419
+ "livekit.ForwardParticipantResponse",
4420
+ []
4421
+ );
4378
4422
 
4379
4423
  const SignalTarget = /* @__PURE__ */ protobuf.proto3.makeEnum(
4380
4424
  "livekit.SignalTarget",
@@ -5501,6 +5545,20 @@ const CreateSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessage
5501
5545
  { no: 1, name: "trunk", kind: "message", T: SIPInboundTrunkInfo }
5502
5546
  ]
5503
5547
  );
5548
+ const UpdateSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5549
+ "livekit.UpdateSIPInboundTrunkRequest",
5550
+ () => [
5551
+ {
5552
+ no: 1,
5553
+ name: "sip_trunk_id",
5554
+ kind: "scalar",
5555
+ T: 9
5556
+ /* ScalarType.STRING */
5557
+ },
5558
+ { no: 2, name: "replace", kind: "message", T: SIPInboundTrunkInfo, oneof: "action" },
5559
+ { no: 3, name: "update", kind: "message", T: SIPInboundTrunkUpdate, oneof: "action" }
5560
+ ]
5561
+ );
5504
5562
  const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5505
5563
  "livekit.SIPInboundTrunkInfo",
5506
5564
  () => [
@@ -5570,12 +5628,38 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5570
5628
  { no: 16, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5571
5629
  ]
5572
5630
  );
5631
+ const SIPInboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5632
+ "livekit.SIPInboundTrunkUpdate",
5633
+ () => [
5634
+ { no: 1, name: "numbers", kind: "message", T: ListUpdate },
5635
+ { no: 2, name: "allowed_addresses", kind: "message", T: ListUpdate },
5636
+ { no: 3, name: "allowed_numbers", kind: "message", T: ListUpdate },
5637
+ { no: 4, name: "auth_username", kind: "scalar", T: 9, opt: true },
5638
+ { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
5639
+ { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
5640
+ { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true }
5641
+ ]
5642
+ );
5573
5643
  const CreateSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5574
5644
  "livekit.CreateSIPOutboundTrunkRequest",
5575
5645
  () => [
5576
5646
  { no: 1, name: "trunk", kind: "message", T: SIPOutboundTrunkInfo }
5577
5647
  ]
5578
5648
  );
5649
+ const UpdateSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5650
+ "livekit.UpdateSIPOutboundTrunkRequest",
5651
+ () => [
5652
+ {
5653
+ no: 1,
5654
+ name: "sip_trunk_id",
5655
+ kind: "scalar",
5656
+ T: 9
5657
+ /* ScalarType.STRING */
5658
+ },
5659
+ { no: 2, name: "replace", kind: "message", T: SIPOutboundTrunkInfo, oneof: "action" },
5660
+ { no: 3, name: "update", kind: "message", T: SIPOutboundTrunkUpdate, oneof: "action" }
5661
+ ]
5662
+ );
5579
5663
  const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5580
5664
  "livekit.SIPOutboundTrunkInfo",
5581
5665
  () => [
@@ -5642,6 +5726,18 @@ const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5642
5726
  { no: 13, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5643
5727
  ]
5644
5728
  );
5729
+ const SIPOutboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5730
+ "livekit.SIPOutboundTrunkUpdate",
5731
+ () => [
5732
+ { no: 1, name: "address", kind: "scalar", T: 9, opt: true },
5733
+ { no: 2, name: "transport", kind: "enum", T: protobuf.proto3.getEnumType(SIPTransport), opt: true },
5734
+ { no: 3, name: "numbers", kind: "message", T: ListUpdate },
5735
+ { no: 4, name: "auth_username", kind: "scalar", T: 9, opt: true },
5736
+ { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
5737
+ { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
5738
+ { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true }
5739
+ ]
5740
+ );
5645
5741
  const GetSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5646
5742
  "livekit.GetSIPInboundTrunkRequest",
5647
5743
  () => [
@@ -5805,6 +5901,7 @@ const SIPDispatchRule = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5805
5901
  const CreateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5806
5902
  "livekit.CreateSIPDispatchRuleRequest",
5807
5903
  () => [
5904
+ { no: 10, name: "dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
5808
5905
  { no: 1, name: "rule", kind: "message", T: SIPDispatchRule },
5809
5906
  { no: 2, name: "trunk_ids", kind: "scalar", T: 9, repeated: true },
5810
5907
  {
@@ -5844,6 +5941,20 @@ const CreateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessage
5844
5941
  { no: 9, name: "room_config", kind: "message", T: RoomConfiguration }
5845
5942
  ]
5846
5943
  );
5944
+ const UpdateSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5945
+ "livekit.UpdateSIPDispatchRuleRequest",
5946
+ () => [
5947
+ {
5948
+ no: 1,
5949
+ name: "sip_dispatch_rule_id",
5950
+ kind: "scalar",
5951
+ T: 9
5952
+ /* ScalarType.STRING */
5953
+ },
5954
+ { no: 2, name: "replace", kind: "message", T: SIPDispatchRuleInfo, oneof: "action" },
5955
+ { no: 3, name: "update", kind: "message", T: SIPDispatchRuleUpdate, oneof: "action" }
5956
+ ]
5957
+ );
5847
5958
  const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5848
5959
  "livekit.SIPDispatchRuleInfo",
5849
5960
  () => [
@@ -5901,6 +6012,20 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5901
6012
  { no: 12, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5902
6013
  ]
5903
6014
  );
6015
+ const SIPDispatchRuleUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6016
+ "livekit.SIPDispatchRuleUpdate",
6017
+ () => [
6018
+ { no: 1, name: "trunk_ids", kind: "message", T: ListUpdate },
6019
+ { no: 2, name: "rule", kind: "message", T: SIPDispatchRule },
6020
+ { no: 3, name: "name", kind: "scalar", T: 9, opt: true },
6021
+ { no: 4, name: "metadata", kind: "scalar", T: 9, opt: true },
6022
+ { no: 5, name: "attributes", kind: "map", K: 9, V: {
6023
+ kind: "scalar",
6024
+ T: 9
6025
+ /* ScalarType.STRING */
6026
+ } }
6027
+ ]
6028
+ );
5904
6029
  const ListSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5905
6030
  "livekit.ListSIPDispatchRuleRequest",
5906
6031
  () => [
@@ -6163,6 +6288,20 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6163
6288
  T: 9
6164
6289
  /* ScalarType.STRING */
6165
6290
  },
6291
+ {
6292
+ no: 16,
6293
+ name: "dispatch_rule_id",
6294
+ kind: "scalar",
6295
+ T: 9
6296
+ /* ScalarType.STRING */
6297
+ },
6298
+ {
6299
+ no: 17,
6300
+ name: "region",
6301
+ kind: "scalar",
6302
+ T: 9
6303
+ /* ScalarType.STRING */
6304
+ },
6166
6305
  {
6167
6306
  no: 3,
6168
6307
  name: "room_name",
@@ -6184,11 +6323,13 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6184
6323
  T: 9
6185
6324
  /* ScalarType.STRING */
6186
6325
  },
6326
+ { no: 18, name: "participant_attributes", kind: "map", K: 9, V: {
6327
+ kind: "scalar",
6328
+ T: 9
6329
+ /* ScalarType.STRING */
6330
+ } },
6187
6331
  { no: 6, name: "from_uri", kind: "message", T: SIPUri },
6188
6332
  { no: 7, name: "to_uri", kind: "message", T: SIPUri },
6189
- { no: 14, name: "enabled_features", kind: "enum", T: protobuf.proto3.getEnumType(SIPFeature), repeated: true },
6190
- { no: 15, name: "call_direction", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallDirection) },
6191
- { no: 8, name: "call_status", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallStatus) },
6192
6333
  {
6193
6334
  no: 9,
6194
6335
  name: "created_at",
@@ -6210,6 +6351,30 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6210
6351
  T: 3
6211
6352
  /* ScalarType.INT64 */
6212
6353
  },
6354
+ { no: 14, name: "enabled_features", kind: "enum", T: protobuf.proto3.getEnumType(SIPFeature), repeated: true },
6355
+ { no: 15, name: "call_direction", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallDirection) },
6356
+ { no: 8, name: "call_status", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallStatus) },
6357
+ {
6358
+ no: 22,
6359
+ name: "created_at_ns",
6360
+ kind: "scalar",
6361
+ T: 3
6362
+ /* ScalarType.INT64 */
6363
+ },
6364
+ {
6365
+ no: 23,
6366
+ name: "started_at_ns",
6367
+ kind: "scalar",
6368
+ T: 3
6369
+ /* ScalarType.INT64 */
6370
+ },
6371
+ {
6372
+ no: 24,
6373
+ name: "ended_at_ns",
6374
+ kind: "scalar",
6375
+ T: 3
6376
+ /* ScalarType.INT64 */
6377
+ },
6213
6378
  { no: 12, name: "disconnect_reason", kind: "enum", T: protobuf.proto3.getEnumType(DisconnectReason) },
6214
6379
  {
6215
6380
  no: 13,
@@ -6217,6 +6382,21 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6217
6382
  kind: "scalar",
6218
6383
  T: 9
6219
6384
  /* ScalarType.STRING */
6385
+ },
6386
+ { no: 19, name: "call_status_code", kind: "message", T: SIPStatus },
6387
+ {
6388
+ no: 20,
6389
+ name: "audio_codec",
6390
+ kind: "scalar",
6391
+ T: 9
6392
+ /* ScalarType.STRING */
6393
+ },
6394
+ {
6395
+ no: 21,
6396
+ name: "media_encryption",
6397
+ kind: "scalar",
6398
+ T: 9
6399
+ /* ScalarType.STRING */
6220
6400
  }
6221
6401
  ]
6222
6402
  );
@@ -6294,7 +6474,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6294
6474
  ]
6295
6475
  );
6296
6476
 
6297
- const version = "1.34.0";
6477
+ const version = "1.36.0";
6298
6478
 
6299
6479
  exports.protoInt64 = protobuf.protoInt64;
6300
6480
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -6359,6 +6539,8 @@ exports.Encryption = Encryption;
6359
6539
  exports.Encryption_Type = Encryption_Type;
6360
6540
  exports.EventMetric = EventMetric;
6361
6541
  exports.FileInfo = FileInfo;
6542
+ exports.ForwardParticipantRequest = ForwardParticipantRequest;
6543
+ exports.ForwardParticipantResponse = ForwardParticipantResponse;
6362
6544
  exports.GCPUpload = GCPUpload;
6363
6545
  exports.GetSIPInboundTrunkRequest = GetSIPInboundTrunkRequest;
6364
6546
  exports.GetSIPInboundTrunkResponse = GetSIPInboundTrunkResponse;
@@ -6408,6 +6590,7 @@ exports.ListSIPOutboundTrunkRequest = ListSIPOutboundTrunkRequest;
6408
6590
  exports.ListSIPOutboundTrunkResponse = ListSIPOutboundTrunkResponse;
6409
6591
  exports.ListSIPTrunkRequest = ListSIPTrunkRequest;
6410
6592
  exports.ListSIPTrunkResponse = ListSIPTrunkResponse;
6593
+ exports.ListUpdate = ListUpdate;
6411
6594
  exports.MetricLabel = MetricLabel;
6412
6595
  exports.MetricSample = MetricSample;
6413
6596
  exports.MetricsBatch = MetricsBatch;
@@ -6419,6 +6602,7 @@ exports.Pagination = Pagination;
6419
6602
  exports.ParticipantEgressRequest = ParticipantEgressRequest;
6420
6603
  exports.ParticipantInfo = ParticipantInfo;
6421
6604
  exports.ParticipantInfo_Kind = ParticipantInfo_Kind;
6605
+ exports.ParticipantInfo_KindDetail = ParticipantInfo_KindDetail;
6422
6606
  exports.ParticipantInfo_State = ParticipantInfo_State;
6423
6607
  exports.ParticipantPermission = ParticipantPermission;
6424
6608
  exports.ParticipantTracks = ParticipantTracks;
@@ -6462,12 +6646,15 @@ exports.SIPDispatchRuleCallee = SIPDispatchRuleCallee;
6462
6646
  exports.SIPDispatchRuleDirect = SIPDispatchRuleDirect;
6463
6647
  exports.SIPDispatchRuleIndividual = SIPDispatchRuleIndividual;
6464
6648
  exports.SIPDispatchRuleInfo = SIPDispatchRuleInfo;
6649
+ exports.SIPDispatchRuleUpdate = SIPDispatchRuleUpdate;
6465
6650
  exports.SIPFeature = SIPFeature;
6466
6651
  exports.SIPHeaderOptions = SIPHeaderOptions;
6467
6652
  exports.SIPInboundTrunkInfo = SIPInboundTrunkInfo;
6653
+ exports.SIPInboundTrunkUpdate = SIPInboundTrunkUpdate;
6468
6654
  exports.SIPMediaEncryption = SIPMediaEncryption;
6469
6655
  exports.SIPOutboundConfig = SIPOutboundConfig;
6470
6656
  exports.SIPOutboundTrunkInfo = SIPOutboundTrunkInfo;
6657
+ exports.SIPOutboundTrunkUpdate = SIPOutboundTrunkUpdate;
6471
6658
  exports.SIPParticipantInfo = SIPParticipantInfo;
6472
6659
  exports.SIPStatus = SIPStatus;
6473
6660
  exports.SIPStatusCode = SIPStatusCode;
@@ -6535,6 +6722,9 @@ exports.UpdateLocalVideoTrack = UpdateLocalVideoTrack;
6535
6722
  exports.UpdateParticipantMetadata = UpdateParticipantMetadata;
6536
6723
  exports.UpdateParticipantRequest = UpdateParticipantRequest;
6537
6724
  exports.UpdateRoomMetadataRequest = UpdateRoomMetadataRequest;
6725
+ exports.UpdateSIPDispatchRuleRequest = UpdateSIPDispatchRuleRequest;
6726
+ exports.UpdateSIPInboundTrunkRequest = UpdateSIPInboundTrunkRequest;
6727
+ exports.UpdateSIPOutboundTrunkRequest = UpdateSIPOutboundTrunkRequest;
6538
6728
  exports.UpdateStreamRequest = UpdateStreamRequest;
6539
6729
  exports.UpdateSubscription = UpdateSubscription;
6540
6730
  exports.UpdateSubscriptionsRequest = UpdateSubscriptionsRequest;