@livekit/protocol 1.45.7 → 1.46.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
@@ -451,13 +451,40 @@ const InterruptionModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
451
451
  }
452
452
  ]
453
453
  );
454
+ const EotModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
455
+ "livekit.agent.EotModelUsage",
456
+ () => [
457
+ {
458
+ no: 1,
459
+ name: "provider",
460
+ kind: "scalar",
461
+ T: 9
462
+ /* ScalarType.STRING */
463
+ },
464
+ {
465
+ no: 2,
466
+ name: "model",
467
+ kind: "scalar",
468
+ T: 9
469
+ /* ScalarType.STRING */
470
+ },
471
+ {
472
+ no: 3,
473
+ name: "total_requests",
474
+ kind: "scalar",
475
+ T: 5
476
+ /* ScalarType.INT32 */
477
+ }
478
+ ]
479
+ );
454
480
  const ModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
455
481
  "livekit.agent.ModelUsage",
456
482
  () => [
457
483
  { no: 1, name: "llm", kind: "message", T: LLMModelUsage, oneof: "usage" },
458
484
  { no: 2, name: "tts", kind: "message", T: TTSModelUsage, oneof: "usage" },
459
485
  { no: 3, name: "stt", kind: "message", T: STTModelUsage, oneof: "usage" },
460
- { no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" }
486
+ { no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" },
487
+ { no: 5, name: "eot", kind: "message", T: EotModelUsage, oneof: "usage" }
461
488
  ]
462
489
  );
463
490
  const AgentSessionUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -478,7 +505,8 @@ const AgentSessionEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
478
505
  { no: 15, name: "error", kind: "message", T: AgentSessionEvent_Error, oneof: "event" },
479
506
  { no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
480
507
  { no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" },
481
- { no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" }
508
+ { no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
509
+ { no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" }
482
510
  ]
483
511
  );
484
512
  const AgentSessionEvent_AgentStateChanged = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -591,6 +619,28 @@ const AgentSessionEvent_AmdPrediction = /* @__PURE__ */ protobuf.proto3.makeMess
591
619
  ],
592
620
  { localName: "AgentSessionEvent_AmdPrediction" }
593
621
  );
622
+ const AgentSessionEvent_EotPrediction = /* @__PURE__ */ protobuf.proto3.makeMessageType(
623
+ "livekit.agent.AgentSessionEvent.EotPrediction",
624
+ () => [
625
+ {
626
+ no: 1,
627
+ name: "probability",
628
+ kind: "scalar",
629
+ T: 2
630
+ /* ScalarType.FLOAT */
631
+ },
632
+ {
633
+ no: 2,
634
+ name: "threshold",
635
+ kind: "scalar",
636
+ T: 2
637
+ /* ScalarType.FLOAT */
638
+ },
639
+ { no: 3, name: "inference_duration", kind: "message", T: protobuf.Duration },
640
+ { no: 4, name: "delay", kind: "message", T: protobuf.Duration }
641
+ ],
642
+ { localName: "AgentSessionEvent_EotPrediction" }
643
+ );
594
644
  const AgentSessionEvent_SessionUsageUpdated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
595
645
  "livekit.agent.AgentSessionEvent.SessionUsageUpdated",
596
646
  () => [
@@ -615,7 +665,8 @@ const SessionRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
615
665
  { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
616
666
  { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
617
667
  { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
618
- { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" }
668
+ { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
669
+ { no: 11, name: "update_io", kind: "message", T: SessionRequest_UpdateIO, oneof: "request" }
619
670
  ]
620
671
  );
621
672
  const SessionRequest_Ping = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -666,6 +717,31 @@ const SessionRequest_GetFrameworkInfo = /* @__PURE__ */ protobuf.proto3.makeMess
666
717
  [],
667
718
  { localName: "SessionRequest_GetFrameworkInfo" }
668
719
  );
720
+ const SessionRequest_UpdateIO = /* @__PURE__ */ protobuf.proto3.makeMessageType(
721
+ "livekit.agent.SessionRequest.UpdateIO",
722
+ () => [
723
+ { no: 1, name: "input", kind: "message", T: SessionRequest_UpdateIO_Input, opt: true },
724
+ { no: 2, name: "output", kind: "message", T: SessionRequest_UpdateIO_Output, opt: true }
725
+ ],
726
+ { localName: "SessionRequest_UpdateIO" }
727
+ );
728
+ const SessionRequest_UpdateIO_Input = /* @__PURE__ */ protobuf.proto3.makeMessageType(
729
+ "livekit.agent.SessionRequest.UpdateIO.Input",
730
+ () => [
731
+ { no: 1, name: "audio_enabled", kind: "scalar", T: 8, opt: true },
732
+ { no: 2, name: "video_enabled", kind: "scalar", T: 8, opt: true }
733
+ ],
734
+ { localName: "SessionRequest_UpdateIO_Input" }
735
+ );
736
+ const SessionRequest_UpdateIO_Output = /* @__PURE__ */ protobuf.proto3.makeMessageType(
737
+ "livekit.agent.SessionRequest.UpdateIO.Output",
738
+ () => [
739
+ { no: 1, name: "audio_enabled", kind: "scalar", T: 8, opt: true },
740
+ { no: 2, name: "video_enabled", kind: "scalar", T: 8, opt: true },
741
+ { no: 3, name: "transcription_enabled", kind: "scalar", T: 8, opt: true }
742
+ ],
743
+ { localName: "SessionRequest_UpdateIO_Output" }
744
+ );
669
745
  const SessionResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
670
746
  "livekit.agent.SessionResponse",
671
747
  () => [
@@ -684,7 +760,8 @@ const SessionResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
684
760
  { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
685
761
  { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
686
762
  { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
687
- { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" }
763
+ { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
764
+ { no: 12, name: "update_io", kind: "message", T: SessionResponse_UpdateIOResponse, oneof: "response" }
688
765
  ]
689
766
  );
690
767
  const SessionResponse_Pong = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -779,6 +856,11 @@ const SessionResponse_GetFrameworkInfoResponse = /* @__PURE__ */ protobuf.proto3
779
856
  ],
780
857
  { localName: "SessionResponse_GetFrameworkInfoResponse" }
781
858
  );
859
+ const SessionResponse_UpdateIOResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
860
+ "livekit.agent.SessionResponse.UpdateIOResponse",
861
+ [],
862
+ { localName: "SessionResponse_UpdateIOResponse" }
863
+ );
782
864
  const AgentSessionMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
783
865
  "livekit.agent.AgentSessionMessage",
784
866
  () => [
@@ -855,6 +937,7 @@ const livekit_agent_session_pb = {
855
937
  AgentSessionEvent_AgentStateChanged: AgentSessionEvent_AgentStateChanged,
856
938
  AgentSessionEvent_AmdPrediction: AgentSessionEvent_AmdPrediction,
857
939
  AgentSessionEvent_ConversationItemAdded: AgentSessionEvent_ConversationItemAdded,
940
+ AgentSessionEvent_EotPrediction: AgentSessionEvent_EotPrediction,
858
941
  AgentSessionEvent_Error: AgentSessionEvent_Error,
859
942
  AgentSessionEvent_FunctionToolsExecuted: AgentSessionEvent_FunctionToolsExecuted,
860
943
  AgentSessionEvent_OverlappingSpeech: AgentSessionEvent_OverlappingSpeech,
@@ -875,6 +958,7 @@ const livekit_agent_session_pb = {
875
958
  ChatMessage: ChatMessage$1,
876
959
  ChatMessage_ChatContent: ChatMessage_ChatContent,
877
960
  ChatRole: ChatRole,
961
+ EotModelUsage: EotModelUsage,
878
962
  FunctionCall: FunctionCall,
879
963
  FunctionCallOutput: FunctionCallOutput,
880
964
  InterruptionModelUsage: InterruptionModelUsage,
@@ -891,6 +975,9 @@ const livekit_agent_session_pb = {
891
975
  SessionRequest_GetSessionUsage: SessionRequest_GetSessionUsage,
892
976
  SessionRequest_Ping: SessionRequest_Ping,
893
977
  SessionRequest_RunInput: SessionRequest_RunInput,
978
+ SessionRequest_UpdateIO: SessionRequest_UpdateIO,
979
+ SessionRequest_UpdateIO_Input: SessionRequest_UpdateIO_Input,
980
+ SessionRequest_UpdateIO_Output: SessionRequest_UpdateIO_Output,
894
981
  SessionResponse: SessionResponse,
895
982
  SessionResponse_GetAgentInfoResponse: SessionResponse_GetAgentInfoResponse,
896
983
  SessionResponse_GetChatHistoryResponse: SessionResponse_GetChatHistoryResponse,
@@ -900,6 +987,7 @@ const livekit_agent_session_pb = {
900
987
  SessionResponse_GetSessionUsageResponse: SessionResponse_GetSessionUsageResponse,
901
988
  SessionResponse_Pong: SessionResponse_Pong,
902
989
  SessionResponse_RunInputResponse: SessionResponse_RunInputResponse,
990
+ SessionResponse_UpdateIOResponse: SessionResponse_UpdateIOResponse,
903
991
  TTSModelUsage: TTSModelUsage,
904
992
  TimedString: TimedString,
905
993
  UserState: UserState
@@ -3252,7 +3340,7 @@ const Job = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3252
3340
  },
3253
3341
  {
3254
3342
  no: 11,
3255
- name: "environment",
3343
+ name: "deployment",
3256
3344
  kind: "scalar",
3257
3345
  T: 9
3258
3346
  /* ScalarType.STRING */
@@ -3404,7 +3492,7 @@ const RegisterWorkerRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3404
3492
  { no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission },
3405
3493
  {
3406
3494
  no: 9,
3407
- name: "environment",
3495
+ name: "deployment",
3408
3496
  kind: "scalar",
3409
3497
  T: 9
3410
3498
  /* ScalarType.STRING */
@@ -3603,7 +3691,7 @@ const CreateAgentDispatchRequest = /* @__PURE__ */ protobuf.proto3.makeMessageTy
3603
3691
  { no: 4, name: "restart_policy", kind: "enum", T: protobuf.proto3.getEnumType(JobRestartPolicy) },
3604
3692
  {
3605
3693
  no: 5,
3606
- name: "environment",
3694
+ name: "deployment",
3607
3695
  kind: "scalar",
3608
3696
  T: 9
3609
3697
  /* ScalarType.STRING */
@@ -3630,7 +3718,7 @@ const RoomAgentDispatch = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3630
3718
  { no: 3, name: "restart_policy", kind: "enum", T: protobuf.proto3.getEnumType(JobRestartPolicy) },
3631
3719
  {
3632
3720
  no: 4,
3633
- name: "environment",
3721
+ name: "deployment",
3634
3722
  kind: "scalar",
3635
3723
  T: 9
3636
3724
  /* ScalarType.STRING */
@@ -3716,7 +3804,7 @@ const AgentDispatch = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3716
3804
  { no: 6, name: "restart_policy", kind: "enum", T: protobuf.proto3.getEnumType(JobRestartPolicy) },
3717
3805
  {
3718
3806
  no: 7,
3719
- name: "environment",
3807
+ name: "deployment",
3720
3808
  kind: "scalar",
3721
3809
  T: 9
3722
3810
  /* ScalarType.STRING */
@@ -4413,13 +4501,15 @@ const ListEgressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4413
4501
  kind: "scalar",
4414
4502
  T: 8
4415
4503
  /* ScalarType.BOOL */
4416
- }
4504
+ },
4505
+ { no: 4, name: "page_token", kind: "message", T: TokenPagination }
4417
4506
  ]
4418
4507
  );
4419
4508
  const ListEgressResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
4420
4509
  "livekit.ListEgressResponse",
4421
4510
  () => [
4422
- { no: 1, name: "items", kind: "message", T: EgressInfo, repeated: true }
4511
+ { no: 1, name: "items", kind: "message", T: EgressInfo, repeated: true },
4512
+ { no: 2, name: "next_page_token", kind: "message", T: TokenPagination }
4423
4513
  ]
4424
4514
  );
4425
4515
  const UpdateEgressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -6322,6 +6412,40 @@ const CreateSIPTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6322
6412
  }
6323
6413
  ]
6324
6414
  );
6415
+ const SIPCodec = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6416
+ "livekit.SIPCodec",
6417
+ () => [
6418
+ {
6419
+ no: 1,
6420
+ name: "name",
6421
+ kind: "scalar",
6422
+ T: 9
6423
+ /* ScalarType.STRING */
6424
+ },
6425
+ {
6426
+ no: 2,
6427
+ name: "rate",
6428
+ kind: "scalar",
6429
+ T: 13
6430
+ /* ScalarType.UINT32 */
6431
+ }
6432
+ ]
6433
+ );
6434
+ const SIPMediaConfig = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6435
+ "livekit.SIPMediaConfig",
6436
+ () => [
6437
+ {
6438
+ no: 1,
6439
+ name: "only_listed_codecs",
6440
+ kind: "scalar",
6441
+ T: 8
6442
+ /* ScalarType.BOOL */
6443
+ },
6444
+ { no: 2, name: "codecs", kind: "message", T: SIPCodec, repeated: true },
6445
+ { no: 3, name: "encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true },
6446
+ { no: 4, name: "media_timeout", kind: "message", T: protobuf.Duration, opt: true }
6447
+ ]
6448
+ );
6325
6449
  const ProviderInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6326
6450
  "livekit.ProviderInfo",
6327
6451
  () => [
@@ -6491,6 +6615,13 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6491
6615
  T: 9
6492
6616
  /* ScalarType.STRING */
6493
6617
  },
6618
+ {
6619
+ no: 19,
6620
+ name: "auth_realm",
6621
+ kind: "scalar",
6622
+ T: 9
6623
+ /* ScalarType.STRING */
6624
+ },
6494
6625
  { no: 9, name: "headers", kind: "map", K: 9, V: {
6495
6626
  kind: "scalar",
6496
6627
  T: 9
@@ -6529,6 +6660,7 @@ const SIPInboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6529
6660
  { no: 3, name: "allowed_numbers", kind: "message", T: ListUpdate },
6530
6661
  { no: 4, name: "auth_username", kind: "scalar", T: 9, opt: true },
6531
6662
  { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
6663
+ { no: 9, name: "auth_realm", kind: "scalar", T: 9, opt: true },
6532
6664
  { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
6533
6665
  { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true },
6534
6666
  { no: 8, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true }
@@ -6923,6 +7055,7 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6923
7055
  /* ScalarType.STRING */
6924
7056
  },
6925
7057
  { no: 10, name: "room_config", kind: "message", T: RoomConfiguration },
7058
+ { no: 16, name: "media", kind: "message", T: SIPMediaConfig },
6926
7059
  {
6927
7060
  no: 11,
6928
7061
  name: "krisp_enabled",
@@ -6947,7 +7080,8 @@ const SIPDispatchRuleUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6947
7080
  T: 9
6948
7081
  /* ScalarType.STRING */
6949
7082
  } },
6950
- { no: 6, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true }
7083
+ { no: 6, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true },
7084
+ { no: 7, name: "media", kind: "message", T: SIPMediaConfig }
6951
7085
  ]
6952
7086
  );
6953
7087
  const ListSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7129,6 +7263,7 @@ const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageT
7129
7263
  /* ScalarType.BOOL */
7130
7264
  },
7131
7265
  { no: 18, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) },
7266
+ { no: 23, name: "media", kind: "message", T: SIPMediaConfig },
7132
7267
  {
7133
7268
  no: 19,
7134
7269
  name: "wait_until_answered",
@@ -9925,7 +10060,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
9925
10060
  ]
9926
10061
  );
9927
10062
 
9928
- const version = "1.45.7";
10063
+ const version = "1.46.0";
9929
10064
 
9930
10065
  exports.Timestamp = protobuf.Timestamp;
9931
10066
  exports.protoInt64 = protobuf.protoInt64;
@@ -10160,6 +10295,7 @@ exports.S3Upload = S3Upload;
10160
10295
  exports.SIPCallDirection = SIPCallDirection;
10161
10296
  exports.SIPCallInfo = SIPCallInfo;
10162
10297
  exports.SIPCallStatus = SIPCallStatus;
10298
+ exports.SIPCodec = SIPCodec;
10163
10299
  exports.SIPDispatchRule = SIPDispatchRule;
10164
10300
  exports.SIPDispatchRuleCallee = SIPDispatchRuleCallee;
10165
10301
  exports.SIPDispatchRuleDirect = SIPDispatchRuleDirect;
@@ -10170,6 +10306,7 @@ exports.SIPFeature = SIPFeature;
10170
10306
  exports.SIPHeaderOptions = SIPHeaderOptions;
10171
10307
  exports.SIPInboundTrunkInfo = SIPInboundTrunkInfo;
10172
10308
  exports.SIPInboundTrunkUpdate = SIPInboundTrunkUpdate;
10309
+ exports.SIPMediaConfig = SIPMediaConfig;
10173
10310
  exports.SIPMediaEncryption = SIPMediaEncryption;
10174
10311
  exports.SIPOutboundConfig = SIPOutboundConfig;
10175
10312
  exports.SIPOutboundTrunkInfo = SIPOutboundTrunkInfo;