@livekit/protocol 1.53.0 → 1.53.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 +146 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +339 -6
- package/dist/index.d.mts +339 -6
- package/dist/index.d.ts +339 -6
- package/dist/index.mjs +142 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +40 -0
- package/src/gen/agent/livekit_agent_session_pb.js +18 -0
- package/src/gen/livekit_agent_pb.d.ts +60 -0
- package/src/gen/livekit_agent_pb.js +17 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +163 -3
- package/src/gen/livekit_agent_simulation_pb.js +51 -2
- package/src/gen/livekit_egress_pb.d.ts +62 -1
- package/src/gen/livekit_egress_pb.js +15 -0
- package/src/gen/livekit_internal_pb.d.ts +14 -0
- package/src/gen/livekit_internal_pb.js +2 -0
- package/src/gen/livekit_metrics_pb.d.ts +9 -0
- package/src/gen/livekit_metrics_pb.js +1 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,17 @@ const ToolReplyStatus = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
|
47
47
|
{ no: 3, name: "TR_SKIPPED" }
|
|
48
48
|
]
|
|
49
49
|
);
|
|
50
|
+
const CloseReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
51
|
+
"livekit.agent.CloseReason",
|
|
52
|
+
[
|
|
53
|
+
{ no: 0, name: "CR_UNKNOWN" },
|
|
54
|
+
{ no: 1, name: "CR_ERROR" },
|
|
55
|
+
{ no: 2, name: "CR_JOB_SHUTDOWN" },
|
|
56
|
+
{ no: 3, name: "CR_PARTICIPANT_DISCONNECTED" },
|
|
57
|
+
{ no: 4, name: "CR_USER_INITIATED" },
|
|
58
|
+
{ no: 5, name: "CR_COMPLETED" }
|
|
59
|
+
]
|
|
60
|
+
);
|
|
50
61
|
const AmdCategory = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
51
62
|
"livekit.agent.AmdCategory",
|
|
52
63
|
[
|
|
@@ -1150,6 +1161,7 @@ const livekit_agent_session_pb = {
|
|
|
1150
1161
|
ChatMessage: ChatMessage$1,
|
|
1151
1162
|
ChatMessage_ChatContent: ChatMessage_ChatContent,
|
|
1152
1163
|
ChatRole: ChatRole,
|
|
1164
|
+
CloseReason: CloseReason,
|
|
1153
1165
|
DebugMessage: DebugMessage,
|
|
1154
1166
|
EotModelUsage: EotModelUsage,
|
|
1155
1167
|
FunctionCall: FunctionCall,
|
|
@@ -2347,6 +2359,13 @@ const MetricsRecordingHeader = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
2347
2359
|
kind: "scalar",
|
|
2348
2360
|
T: 8
|
|
2349
2361
|
/* ScalarType.BOOL */
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
no: 11,
|
|
2365
|
+
name: "session_summary",
|
|
2366
|
+
kind: "scalar",
|
|
2367
|
+
T: 9
|
|
2368
|
+
/* ScalarType.STRING */
|
|
2350
2369
|
}
|
|
2351
2370
|
]
|
|
2352
2371
|
);
|
|
@@ -4607,7 +4626,18 @@ const JobStatus = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
|
4607
4626
|
{ no: 0, name: "JS_PENDING" },
|
|
4608
4627
|
{ no: 1, name: "JS_RUNNING" },
|
|
4609
4628
|
{ no: 2, name: "JS_SUCCESS" },
|
|
4610
|
-
{ no: 3, name: "JS_FAILED" }
|
|
4629
|
+
{ no: 3, name: "JS_FAILED" },
|
|
4630
|
+
{ no: 4, name: "JS_CANCELLED" }
|
|
4631
|
+
]
|
|
4632
|
+
);
|
|
4633
|
+
const JobStateReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
4634
|
+
"livekit.JobStateReason",
|
|
4635
|
+
[
|
|
4636
|
+
{ no: 0, name: "JSR_UNSPECIFIED" },
|
|
4637
|
+
{ no: 1, name: "JSR_NO_CAPACITY" },
|
|
4638
|
+
{ no: 2, name: "JSR_ROOM_CLOSED" },
|
|
4639
|
+
{ no: 3, name: "JSR_DISPATCH_DELETED" },
|
|
4640
|
+
{ no: 4, name: "JSR_RETRYING" }
|
|
4611
4641
|
]
|
|
4612
4642
|
);
|
|
4613
4643
|
const Job = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -4732,7 +4762,8 @@ const JobState = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
4732
4762
|
kind: "scalar",
|
|
4733
4763
|
T: 9
|
|
4734
4764
|
/* ScalarType.STRING */
|
|
4735
|
-
}
|
|
4765
|
+
},
|
|
4766
|
+
{ no: 9, name: "reason", kind: "enum", T: protobuf.proto3.getEnumType(JobStateReason) }
|
|
4736
4767
|
]
|
|
4737
4768
|
);
|
|
4738
4769
|
const WorkerMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -4865,7 +4896,8 @@ const RegisterWorkerResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
4865
4896
|
const MigrateJobRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
4866
4897
|
"livekit.MigrateJobRequest",
|
|
4867
4898
|
() => [
|
|
4868
|
-
{ no: 2, name: "job_ids", kind: "scalar", T: 9, repeated: true }
|
|
4899
|
+
{ no: 2, name: "job_ids", kind: "scalar", T: 9, repeated: true },
|
|
4900
|
+
{ no: 3, name: "jobs", kind: "message", T: Job, repeated: true }
|
|
4869
4901
|
]
|
|
4870
4902
|
);
|
|
4871
4903
|
const AvailabilityRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -5593,7 +5625,8 @@ const SimulationRun_Job = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
5593
5625
|
kind: "scalar",
|
|
5594
5626
|
T: 5
|
|
5595
5627
|
/* ScalarType.INT32 */
|
|
5596
|
-
}
|
|
5628
|
+
},
|
|
5629
|
+
{ no: 19, name: "failure_reason", kind: "enum", T: protobuf.proto3.getEnumType(SimulationRun_Job_FailureReason) }
|
|
5597
5630
|
],
|
|
5598
5631
|
{ localName: "SimulationRun_Job" }
|
|
5599
5632
|
);
|
|
@@ -5607,6 +5640,13 @@ const SimulationRun_Job_Status = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
|
5607
5640
|
{ no: 4, name: "STATUS_CANCELLED", localName: "CANCELLED" }
|
|
5608
5641
|
]
|
|
5609
5642
|
);
|
|
5643
|
+
const SimulationRun_Job_FailureReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
5644
|
+
"livekit.SimulationRun.Job.FailureReason",
|
|
5645
|
+
[
|
|
5646
|
+
{ no: 0, name: "FAILURE_REASON_UNSPECIFIED", localName: "UNSPECIFIED" },
|
|
5647
|
+
{ no: 1, name: "FAILURE_REASON_AGENT_JOIN_TIMEOUT", localName: "AGENT_JOIN_TIMEOUT" }
|
|
5648
|
+
]
|
|
5649
|
+
);
|
|
5610
5650
|
const SimulationRun_Job_Usage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
5611
5651
|
"livekit.SimulationRun.Job.Usage",
|
|
5612
5652
|
() => [
|
|
@@ -5657,10 +5697,38 @@ const SimulationRun_JobMetrics = /* @__PURE__ */ protobuf.proto3.makeMessageType
|
|
|
5657
5697
|
{ no: 16, name: "information_loss", kind: "scalar", T: 8, opt: true },
|
|
5658
5698
|
{ no: 17, name: "redundant_statements", kind: "scalar", T: 8, opt: true },
|
|
5659
5699
|
{ no: 18, name: "poor_question_quality", kind: "scalar", T: 8, opt: true },
|
|
5660
|
-
{ no: 19, name: "conversation_progression", kind: "scalar", T: 2, opt: true }
|
|
5700
|
+
{ no: 19, name: "conversation_progression", kind: "scalar", T: 2, opt: true },
|
|
5701
|
+
{ no: 21, name: "end_reason", kind: "enum", T: protobuf.proto3.getEnumType(SimulationRun_JobMetrics_EndReason) },
|
|
5702
|
+
{
|
|
5703
|
+
no: 22,
|
|
5704
|
+
name: "caller_language",
|
|
5705
|
+
kind: "scalar",
|
|
5706
|
+
T: 9
|
|
5707
|
+
/* ScalarType.STRING */
|
|
5708
|
+
},
|
|
5709
|
+
{
|
|
5710
|
+
no: 23,
|
|
5711
|
+
name: "caller_listen_language",
|
|
5712
|
+
kind: "scalar",
|
|
5713
|
+
T: 9
|
|
5714
|
+
/* ScalarType.STRING */
|
|
5715
|
+
},
|
|
5716
|
+
{ no: 24, name: "impairments", kind: "message", T: SimulationImpairments }
|
|
5661
5717
|
],
|
|
5662
5718
|
{ localName: "SimulationRun_JobMetrics" }
|
|
5663
5719
|
);
|
|
5720
|
+
const SimulationRun_JobMetrics_EndReason = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
5721
|
+
"livekit.SimulationRun.JobMetrics.EndReason",
|
|
5722
|
+
[
|
|
5723
|
+
{ no: 0, name: "END_REASON_UNSPECIFIED", localName: "UNSPECIFIED" },
|
|
5724
|
+
{ no: 1, name: "END_REASON_SCENARIO_COMPLETED", localName: "SCENARIO_COMPLETED" },
|
|
5725
|
+
{ no: 2, name: "END_REASON_AGENT_ENDED", localName: "AGENT_ENDED" },
|
|
5726
|
+
{ no: 3, name: "END_REASON_INACTIVITY", localName: "INACTIVITY" },
|
|
5727
|
+
{ no: 4, name: "END_REASON_TURN_LIMIT", localName: "TURN_LIMIT" },
|
|
5728
|
+
{ no: 5, name: "END_REASON_EMPTY_RESPONSE", localName: "EMPTY_RESPONSE" },
|
|
5729
|
+
{ no: 6, name: "END_REASON_AGENT_ERROR", localName: "AGENT_ERROR" }
|
|
5730
|
+
]
|
|
5731
|
+
);
|
|
5664
5732
|
const SimulationRun_JobMetrics_STT = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
5665
5733
|
"livekit.SimulationRun.JobMetrics.STT",
|
|
5666
5734
|
() => [
|
|
@@ -5723,7 +5791,8 @@ const SimulationRun_JobMetrics_Conversation = /* @__PURE__ */ protobuf.proto3.ma
|
|
|
5723
5791
|
{ no: 11, name: "awkward_silence_count", kind: "scalar", T: 13, opt: true },
|
|
5724
5792
|
{ no: 12, name: "unanswered_turns", kind: "scalar", T: 13, opt: true },
|
|
5725
5793
|
{ no: 13, name: "false_interruption_count", kind: "scalar", T: 13, opt: true },
|
|
5726
|
-
{ no: 15, name: "e2e_latency_ms", kind: "scalar", T: 13, opt: true }
|
|
5794
|
+
{ no: 15, name: "e2e_latency_ms", kind: "scalar", T: 13, opt: true },
|
|
5795
|
+
{ no: 16, name: "backchannel_count", kind: "scalar", T: 13, opt: true }
|
|
5727
5796
|
],
|
|
5728
5797
|
{ localName: "SimulationRun_JobMetrics_Conversation" }
|
|
5729
5798
|
);
|
|
@@ -5738,6 +5807,13 @@ const SimulationRun_JobMetrics_Turn = /* @__PURE__ */ protobuf.proto3.makeMessag
|
|
|
5738
5807
|
/* ScalarType.UINT32 */
|
|
5739
5808
|
},
|
|
5740
5809
|
{ no: 2, name: "role", kind: "enum", T: protobuf.proto3.getEnumType(ChatRole) },
|
|
5810
|
+
{
|
|
5811
|
+
no: 18,
|
|
5812
|
+
name: "text",
|
|
5813
|
+
kind: "scalar",
|
|
5814
|
+
T: 9
|
|
5815
|
+
/* ScalarType.STRING */
|
|
5816
|
+
},
|
|
5741
5817
|
{ no: 3, name: "start_ms", kind: "scalar", T: 13, opt: true },
|
|
5742
5818
|
{ no: 4, name: "end_ms", kind: "scalar", T: 13, opt: true },
|
|
5743
5819
|
{ no: 5, name: "stt_delay_ms", kind: "scalar", T: 13, opt: true },
|
|
@@ -6217,6 +6293,32 @@ const ScenarioGroup = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
6217
6293
|
}
|
|
6218
6294
|
]
|
|
6219
6295
|
);
|
|
6296
|
+
const SimulationImpairments = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
6297
|
+
"livekit.SimulationImpairments",
|
|
6298
|
+
() => [
|
|
6299
|
+
{
|
|
6300
|
+
no: 1,
|
|
6301
|
+
name: "background_noise",
|
|
6302
|
+
kind: "scalar",
|
|
6303
|
+
T: 8
|
|
6304
|
+
/* ScalarType.BOOL */
|
|
6305
|
+
},
|
|
6306
|
+
{
|
|
6307
|
+
no: 2,
|
|
6308
|
+
name: "low_quality_microphone",
|
|
6309
|
+
kind: "scalar",
|
|
6310
|
+
T: 8
|
|
6311
|
+
/* ScalarType.BOOL */
|
|
6312
|
+
},
|
|
6313
|
+
{
|
|
6314
|
+
no: 3,
|
|
6315
|
+
name: "packet_loss",
|
|
6316
|
+
kind: "scalar",
|
|
6317
|
+
T: 8
|
|
6318
|
+
/* ScalarType.BOOL */
|
|
6319
|
+
}
|
|
6320
|
+
]
|
|
6321
|
+
);
|
|
6220
6322
|
const SimulationDispatch = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
6221
6323
|
"livekit.SimulationDispatch",
|
|
6222
6324
|
() => [
|
|
@@ -6283,7 +6385,8 @@ const SegmentedFileProtocol = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
|
6283
6385
|
"livekit.SegmentedFileProtocol",
|
|
6284
6386
|
[
|
|
6285
6387
|
{ no: 0, name: "DEFAULT_SEGMENTED_FILE_PROTOCOL" },
|
|
6286
|
-
{ no: 1, name: "HLS_PROTOCOL" }
|
|
6388
|
+
{ no: 1, name: "HLS_PROTOCOL" },
|
|
6389
|
+
{ no: 2, name: "HLS_FMP4_PROTOCOL" }
|
|
6287
6390
|
]
|
|
6288
6391
|
);
|
|
6289
6392
|
const SegmentedFileSuffix = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
@@ -6594,7 +6697,27 @@ const StreamOutput = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
6594
6697
|
"livekit.StreamOutput",
|
|
6595
6698
|
() => [
|
|
6596
6699
|
{ no: 1, name: "protocol", kind: "enum", T: protobuf.proto3.getEnumType(StreamProtocol) },
|
|
6597
|
-
{ no: 2, name: "urls", kind: "scalar", T: 9, repeated: true }
|
|
6700
|
+
{ no: 2, name: "urls", kind: "scalar", T: 9, repeated: true },
|
|
6701
|
+
{ no: 3, name: "destinations", kind: "message", T: StreamDestination, repeated: true }
|
|
6702
|
+
]
|
|
6703
|
+
);
|
|
6704
|
+
const StreamDestination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
6705
|
+
"livekit.StreamDestination",
|
|
6706
|
+
() => [
|
|
6707
|
+
{
|
|
6708
|
+
no: 1,
|
|
6709
|
+
name: "id",
|
|
6710
|
+
kind: "scalar",
|
|
6711
|
+
T: 9
|
|
6712
|
+
/* ScalarType.STRING */
|
|
6713
|
+
},
|
|
6714
|
+
{
|
|
6715
|
+
no: 2,
|
|
6716
|
+
name: "url",
|
|
6717
|
+
kind: "scalar",
|
|
6718
|
+
T: 9
|
|
6719
|
+
/* ScalarType.STRING */
|
|
6720
|
+
}
|
|
6598
6721
|
]
|
|
6599
6722
|
);
|
|
6600
6723
|
const SegmentedFileOutput = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -7101,6 +7224,13 @@ const StreamInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
7101
7224
|
kind: "scalar",
|
|
7102
7225
|
T: 13
|
|
7103
7226
|
/* ScalarType.UINT32 */
|
|
7227
|
+
},
|
|
7228
|
+
{
|
|
7229
|
+
no: 9,
|
|
7230
|
+
name: "id",
|
|
7231
|
+
kind: "scalar",
|
|
7232
|
+
T: 9
|
|
7233
|
+
/* ScalarType.STRING */
|
|
7104
7234
|
}
|
|
7105
7235
|
]
|
|
7106
7236
|
);
|
|
@@ -7588,7 +7718,8 @@ const UpdateStreamRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
7588
7718
|
/* ScalarType.STRING */
|
|
7589
7719
|
},
|
|
7590
7720
|
{ no: 2, name: "add_output_urls", kind: "scalar", T: 9, repeated: true },
|
|
7591
|
-
{ no: 3, name: "remove_output_urls", kind: "scalar", T: 9, repeated: true }
|
|
7721
|
+
{ no: 3, name: "remove_output_urls", kind: "scalar", T: 9, repeated: true },
|
|
7722
|
+
{ no: 4, name: "add_destinations", kind: "message", T: StreamDestination, repeated: true }
|
|
7592
7723
|
]
|
|
7593
7724
|
);
|
|
7594
7725
|
const StreamInfoList = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -12632,7 +12763,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
12632
12763
|
]
|
|
12633
12764
|
);
|
|
12634
12765
|
|
|
12635
|
-
const version = "1.53.
|
|
12766
|
+
const version = "1.53.1";
|
|
12636
12767
|
|
|
12637
12768
|
exports.Timestamp = protobuf.Timestamp;
|
|
12638
12769
|
exports.protoInt64 = protobuf.protoInt64;
|
|
@@ -12797,6 +12928,7 @@ exports.Job = Job;
|
|
|
12797
12928
|
exports.JobAssignment = JobAssignment;
|
|
12798
12929
|
exports.JobRestartPolicy = JobRestartPolicy;
|
|
12799
12930
|
exports.JobState = JobState;
|
|
12931
|
+
exports.JobStateReason = JobStateReason;
|
|
12800
12932
|
exports.JobStatus = JobStatus;
|
|
12801
12933
|
exports.JobTermination = JobTermination;
|
|
12802
12934
|
exports.JobType = JobType;
|
|
@@ -12941,6 +13073,7 @@ exports.SignalTarget = SignalTarget;
|
|
|
12941
13073
|
exports.SimulateJobRequest = SimulateJobRequest;
|
|
12942
13074
|
exports.SimulateScenario = SimulateScenario;
|
|
12943
13075
|
exports.SimulationDispatch = SimulationDispatch;
|
|
13076
|
+
exports.SimulationImpairments = SimulationImpairments;
|
|
12944
13077
|
exports.SimulationMode = SimulationMode;
|
|
12945
13078
|
exports.SimulationRun = SimulationRun;
|
|
12946
13079
|
exports.SimulationRunSummary = SimulationRunSummary;
|
|
@@ -12965,10 +13098,12 @@ exports.SimulationRun_Get_Response = SimulationRun_Get_Response;
|
|
|
12965
13098
|
exports.SimulationRun_Job = SimulationRun_Job;
|
|
12966
13099
|
exports.SimulationRun_JobMetrics = SimulationRun_JobMetrics;
|
|
12967
13100
|
exports.SimulationRun_JobMetrics_Conversation = SimulationRun_JobMetrics_Conversation;
|
|
13101
|
+
exports.SimulationRun_JobMetrics_EndReason = SimulationRun_JobMetrics_EndReason;
|
|
12968
13102
|
exports.SimulationRun_JobMetrics_LLM = SimulationRun_JobMetrics_LLM;
|
|
12969
13103
|
exports.SimulationRun_JobMetrics_STT = SimulationRun_JobMetrics_STT;
|
|
12970
13104
|
exports.SimulationRun_JobMetrics_TTS = SimulationRun_JobMetrics_TTS;
|
|
12971
13105
|
exports.SimulationRun_JobMetrics_Turn = SimulationRun_JobMetrics_Turn;
|
|
13106
|
+
exports.SimulationRun_Job_FailureReason = SimulationRun_Job_FailureReason;
|
|
12972
13107
|
exports.SimulationRun_Job_Status = SimulationRun_Job_Status;
|
|
12973
13108
|
exports.SimulationRun_Job_Usage = SimulationRun_Job_Usage;
|
|
12974
13109
|
exports.SimulationRun_List = SimulationRun_List;
|
|
@@ -12988,6 +13123,7 @@ exports.StopEgressRequest = StopEgressRequest;
|
|
|
12988
13123
|
exports.StorageConfig = StorageConfig;
|
|
12989
13124
|
exports.StoreDataBlobRequest = StoreDataBlobRequest;
|
|
12990
13125
|
exports.StoreDataBlobResponse = StoreDataBlobResponse;
|
|
13126
|
+
exports.StreamDestination = StreamDestination;
|
|
12991
13127
|
exports.StreamInfo = StreamInfo;
|
|
12992
13128
|
exports.StreamInfoList = StreamInfoList;
|
|
12993
13129
|
exports.StreamInfo_Status = StreamInfo_Status;
|