@livekit/protocol 1.46.0 → 1.46.3
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 +627 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1842 -155
- package/dist/index.d.mts +1842 -155
- package/dist/index.d.ts +1842 -155
- package/dist/index.mjs +624 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +67 -0
- package/src/gen/agent/livekit_agent_session_pb.js +26 -0
- package/src/gen/livekit_agent_worker_pb.d.ts +71 -0
- package/src/gen/livekit_agent_worker_pb.js +36 -0
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +5 -0
- package/src/gen/livekit_cloud_agent_pb.js +1 -0
- package/src/gen/livekit_room_pb.d.ts +8 -0
- package/src/gen/livekit_room_pb.js +1 -0
- package/src/gen/livekit_sip_pb.d.ts +103 -1
- package/src/gen/livekit_sip_pb.js +26 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
package/dist/index.cjs
CHANGED
|
@@ -493,6 +493,19 @@ const AgentSessionUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
493
493
|
{ no: 1, name: "model_usage", kind: "message", T: ModelUsage, repeated: true }
|
|
494
494
|
]
|
|
495
495
|
);
|
|
496
|
+
const CustomEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
497
|
+
"livekit.agent.CustomEvent",
|
|
498
|
+
() => [
|
|
499
|
+
{
|
|
500
|
+
no: 1,
|
|
501
|
+
name: "type",
|
|
502
|
+
kind: "scalar",
|
|
503
|
+
T: 9
|
|
504
|
+
/* ScalarType.STRING */
|
|
505
|
+
},
|
|
506
|
+
{ no: 2, name: "payload", kind: "message", T: protobuf.Struct }
|
|
507
|
+
]
|
|
508
|
+
);
|
|
496
509
|
const AgentSessionEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
497
510
|
"livekit.agent.AgentSessionEvent",
|
|
498
511
|
() => [
|
|
@@ -506,7 +519,9 @@ const AgentSessionEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
506
519
|
{ no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
|
|
507
520
|
{ no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" },
|
|
508
521
|
{ 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" }
|
|
522
|
+
{ no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
|
|
523
|
+
{ no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
|
|
524
|
+
{ no: 21, name: "custom_event", kind: "message", T: CustomEvent, oneof: "event" }
|
|
510
525
|
]
|
|
511
526
|
);
|
|
512
527
|
const AgentSessionEvent_AgentStateChanged = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -553,6 +568,13 @@ const AgentSessionEvent_UserInputTranscribed = /* @__PURE__ */ protobuf.proto3.m
|
|
|
553
568
|
],
|
|
554
569
|
{ localName: "AgentSessionEvent_UserInputTranscribed" }
|
|
555
570
|
);
|
|
571
|
+
const AgentSessionEvent_FunctionToolsStarted = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
572
|
+
"livekit.agent.AgentSessionEvent.FunctionToolsStarted",
|
|
573
|
+
() => [
|
|
574
|
+
{ no: 1, name: "function_calls", kind: "message", T: FunctionCall, repeated: true }
|
|
575
|
+
],
|
|
576
|
+
{ localName: "AgentSessionEvent_FunctionToolsStarted" }
|
|
577
|
+
);
|
|
556
578
|
const AgentSessionEvent_FunctionToolsExecuted = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
557
579
|
"livekit.agent.AgentSessionEvent.FunctionToolsExecuted",
|
|
558
580
|
() => [
|
|
@@ -940,6 +962,7 @@ const livekit_agent_session_pb = {
|
|
|
940
962
|
AgentSessionEvent_EotPrediction: AgentSessionEvent_EotPrediction,
|
|
941
963
|
AgentSessionEvent_Error: AgentSessionEvent_Error,
|
|
942
964
|
AgentSessionEvent_FunctionToolsExecuted: AgentSessionEvent_FunctionToolsExecuted,
|
|
965
|
+
AgentSessionEvent_FunctionToolsStarted: AgentSessionEvent_FunctionToolsStarted,
|
|
943
966
|
AgentSessionEvent_OverlappingSpeech: AgentSessionEvent_OverlappingSpeech,
|
|
944
967
|
AgentSessionEvent_SessionUsageUpdated: AgentSessionEvent_SessionUsageUpdated,
|
|
945
968
|
AgentSessionEvent_UserInputTranscribed: AgentSessionEvent_UserInputTranscribed,
|
|
@@ -958,6 +981,7 @@ const livekit_agent_session_pb = {
|
|
|
958
981
|
ChatMessage: ChatMessage$1,
|
|
959
982
|
ChatMessage_ChatContent: ChatMessage_ChatContent,
|
|
960
983
|
ChatRole: ChatRole,
|
|
984
|
+
CustomEvent: CustomEvent,
|
|
961
985
|
EotModelUsage: EotModelUsage,
|
|
962
986
|
FunctionCall: FunctionCall,
|
|
963
987
|
FunctionCallOutput: FunctionCallOutput,
|
|
@@ -993,6 +1017,569 @@ const livekit_agent_session_pb = {
|
|
|
993
1017
|
UserState: UserState
|
|
994
1018
|
};
|
|
995
1019
|
|
|
1020
|
+
const AudioEncoding = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
1021
|
+
"livekit.agent.AudioEncoding",
|
|
1022
|
+
[
|
|
1023
|
+
{ no: 0, name: "AUDIO_ENCODING_PCM_S16LE", localName: "PCM_S16LE" },
|
|
1024
|
+
{ no: 1, name: "AUDIO_ENCODING_OPUS", localName: "OPUS" }
|
|
1025
|
+
]
|
|
1026
|
+
);
|
|
1027
|
+
const SessionSettings = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1028
|
+
"livekit.agent.SessionSettings",
|
|
1029
|
+
() => [
|
|
1030
|
+
{
|
|
1031
|
+
no: 1,
|
|
1032
|
+
name: "sample_rate",
|
|
1033
|
+
kind: "scalar",
|
|
1034
|
+
T: 13
|
|
1035
|
+
/* ScalarType.UINT32 */
|
|
1036
|
+
},
|
|
1037
|
+
{ no: 2, name: "encoding", kind: "enum", T: protobuf.proto3.getEnumType(AudioEncoding) },
|
|
1038
|
+
{ no: 3, name: "eot_settings", kind: "message", T: EotSettings, oneof: "type_settings" },
|
|
1039
|
+
{ no: 4, name: "interruption_settings", kind: "message", T: InterruptionSettings, oneof: "type_settings" }
|
|
1040
|
+
]
|
|
1041
|
+
);
|
|
1042
|
+
const InferenceError = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1043
|
+
"livekit.agent.InferenceError",
|
|
1044
|
+
() => [
|
|
1045
|
+
{
|
|
1046
|
+
no: 1,
|
|
1047
|
+
name: "message",
|
|
1048
|
+
kind: "scalar",
|
|
1049
|
+
T: 9
|
|
1050
|
+
/* ScalarType.STRING */
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
no: 2,
|
|
1054
|
+
name: "code",
|
|
1055
|
+
kind: "scalar",
|
|
1056
|
+
T: 13
|
|
1057
|
+
/* ScalarType.UINT32 */
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
1060
|
+
);
|
|
1061
|
+
const EotSettings = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1062
|
+
"livekit.agent.EotSettings",
|
|
1063
|
+
() => [
|
|
1064
|
+
{ no: 1, name: "detection_interval", kind: "message", T: protobuf.Duration }
|
|
1065
|
+
]
|
|
1066
|
+
);
|
|
1067
|
+
const InterruptionSettings = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1068
|
+
"livekit.agent.InterruptionSettings",
|
|
1069
|
+
() => [
|
|
1070
|
+
{
|
|
1071
|
+
no: 1,
|
|
1072
|
+
name: "threshold",
|
|
1073
|
+
kind: "scalar",
|
|
1074
|
+
T: 2
|
|
1075
|
+
/* ScalarType.FLOAT */
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
no: 2,
|
|
1079
|
+
name: "min_frames",
|
|
1080
|
+
kind: "scalar",
|
|
1081
|
+
T: 13
|
|
1082
|
+
/* ScalarType.UINT32 */
|
|
1083
|
+
},
|
|
1084
|
+
{ no: 3, name: "max_audio_duration", kind: "message", T: protobuf.Duration },
|
|
1085
|
+
{ no: 4, name: "audio_prefix_duration", kind: "message", T: protobuf.Duration },
|
|
1086
|
+
{ no: 5, name: "detection_interval", kind: "message", T: protobuf.Duration }
|
|
1087
|
+
]
|
|
1088
|
+
);
|
|
1089
|
+
const SessionCreate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1090
|
+
"livekit.agent.SessionCreate",
|
|
1091
|
+
() => [
|
|
1092
|
+
{ no: 1, name: "settings", kind: "message", T: SessionSettings }
|
|
1093
|
+
]
|
|
1094
|
+
);
|
|
1095
|
+
const InputAudio = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1096
|
+
"livekit.agent.InputAudio",
|
|
1097
|
+
() => [
|
|
1098
|
+
{
|
|
1099
|
+
no: 1,
|
|
1100
|
+
name: "audio",
|
|
1101
|
+
kind: "scalar",
|
|
1102
|
+
T: 12
|
|
1103
|
+
/* ScalarType.BYTES */
|
|
1104
|
+
},
|
|
1105
|
+
{ no: 2, name: "created_at", kind: "message", T: protobuf.Timestamp },
|
|
1106
|
+
{
|
|
1107
|
+
no: 3,
|
|
1108
|
+
name: "num_samples",
|
|
1109
|
+
kind: "scalar",
|
|
1110
|
+
T: 13
|
|
1111
|
+
/* ScalarType.UINT32 */
|
|
1112
|
+
}
|
|
1113
|
+
]
|
|
1114
|
+
);
|
|
1115
|
+
const EotInputChatContext = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1116
|
+
"livekit.agent.EotInputChatContext",
|
|
1117
|
+
() => [
|
|
1118
|
+
{ no: 1, name: "messages", kind: "message", T: ChatMessage$1, repeated: true }
|
|
1119
|
+
]
|
|
1120
|
+
);
|
|
1121
|
+
const SessionFlush = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1122
|
+
"livekit.agent.SessionFlush",
|
|
1123
|
+
[]
|
|
1124
|
+
);
|
|
1125
|
+
const SessionClose = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1126
|
+
"livekit.agent.SessionClose",
|
|
1127
|
+
[]
|
|
1128
|
+
);
|
|
1129
|
+
const InferenceStart = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1130
|
+
"livekit.agent.InferenceStart",
|
|
1131
|
+
() => [
|
|
1132
|
+
{
|
|
1133
|
+
no: 1,
|
|
1134
|
+
name: "request_id",
|
|
1135
|
+
kind: "scalar",
|
|
1136
|
+
T: 9
|
|
1137
|
+
/* ScalarType.STRING */
|
|
1138
|
+
}
|
|
1139
|
+
]
|
|
1140
|
+
);
|
|
1141
|
+
const InferenceStop = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1142
|
+
"livekit.agent.InferenceStop",
|
|
1143
|
+
() => [
|
|
1144
|
+
{
|
|
1145
|
+
no: 1,
|
|
1146
|
+
name: "request_id",
|
|
1147
|
+
kind: "scalar",
|
|
1148
|
+
T: 9
|
|
1149
|
+
/* ScalarType.STRING */
|
|
1150
|
+
}
|
|
1151
|
+
]
|
|
1152
|
+
);
|
|
1153
|
+
const BufferStart = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1154
|
+
"livekit.agent.BufferStart",
|
|
1155
|
+
[]
|
|
1156
|
+
);
|
|
1157
|
+
const BufferStop = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1158
|
+
"livekit.agent.BufferStop",
|
|
1159
|
+
[]
|
|
1160
|
+
);
|
|
1161
|
+
const ClientMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1162
|
+
"livekit.agent.ClientMessage",
|
|
1163
|
+
() => [
|
|
1164
|
+
{ no: 1, name: "created_at", kind: "message", T: protobuf.Timestamp },
|
|
1165
|
+
{ no: 2, name: "session_create", kind: "message", T: SessionCreate, oneof: "message" },
|
|
1166
|
+
{ no: 3, name: "input_audio", kind: "message", T: InputAudio, oneof: "message" },
|
|
1167
|
+
{ no: 4, name: "session_flush", kind: "message", T: SessionFlush, oneof: "message" },
|
|
1168
|
+
{ no: 5, name: "session_close", kind: "message", T: SessionClose, oneof: "message" },
|
|
1169
|
+
{ no: 6, name: "inference_start", kind: "message", T: InferenceStart, oneof: "message" },
|
|
1170
|
+
{ no: 7, name: "inference_stop", kind: "message", T: InferenceStop, oneof: "message" },
|
|
1171
|
+
{ no: 8, name: "buffer_start", kind: "message", T: BufferStart, oneof: "message" },
|
|
1172
|
+
{ no: 9, name: "buffer_stop", kind: "message", T: BufferStop, oneof: "message" },
|
|
1173
|
+
{ no: 10, name: "eot_input_chat_context", kind: "message", T: EotInputChatContext, oneof: "message" }
|
|
1174
|
+
]
|
|
1175
|
+
);
|
|
1176
|
+
const EotInferenceRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1177
|
+
"livekit.agent.EotInferenceRequest",
|
|
1178
|
+
() => [
|
|
1179
|
+
{
|
|
1180
|
+
no: 1,
|
|
1181
|
+
name: "audio",
|
|
1182
|
+
kind: "scalar",
|
|
1183
|
+
T: 12
|
|
1184
|
+
/* ScalarType.BYTES */
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
no: 2,
|
|
1188
|
+
name: "assistant_text",
|
|
1189
|
+
kind: "scalar",
|
|
1190
|
+
T: 9
|
|
1191
|
+
/* ScalarType.STRING */
|
|
1192
|
+
},
|
|
1193
|
+
{ no: 3, name: "encoding", kind: "enum", T: protobuf.proto3.getEnumType(AudioEncoding) },
|
|
1194
|
+
{
|
|
1195
|
+
no: 4,
|
|
1196
|
+
name: "sample_rate",
|
|
1197
|
+
kind: "scalar",
|
|
1198
|
+
T: 13
|
|
1199
|
+
/* ScalarType.UINT32 */
|
|
1200
|
+
}
|
|
1201
|
+
]
|
|
1202
|
+
);
|
|
1203
|
+
const InterruptionInferenceRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1204
|
+
"livekit.agent.InterruptionInferenceRequest",
|
|
1205
|
+
() => [
|
|
1206
|
+
{
|
|
1207
|
+
no: 1,
|
|
1208
|
+
name: "audio",
|
|
1209
|
+
kind: "scalar",
|
|
1210
|
+
T: 12
|
|
1211
|
+
/* ScalarType.BYTES */
|
|
1212
|
+
},
|
|
1213
|
+
{ no: 2, name: "encoding", kind: "enum", T: protobuf.proto3.getEnumType(AudioEncoding) },
|
|
1214
|
+
{
|
|
1215
|
+
no: 3,
|
|
1216
|
+
name: "sample_rate",
|
|
1217
|
+
kind: "scalar",
|
|
1218
|
+
T: 13
|
|
1219
|
+
/* ScalarType.UINT32 */
|
|
1220
|
+
}
|
|
1221
|
+
]
|
|
1222
|
+
);
|
|
1223
|
+
const InferenceRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1224
|
+
"livekit.agent.InferenceRequest",
|
|
1225
|
+
() => [
|
|
1226
|
+
{ no: 1, name: "eot_inference_request", kind: "message", T: EotInferenceRequest, oneof: "request" },
|
|
1227
|
+
{ no: 2, name: "interruption_inference_request", kind: "message", T: InterruptionInferenceRequest, oneof: "request" }
|
|
1228
|
+
]
|
|
1229
|
+
);
|
|
1230
|
+
const InferenceStats = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1231
|
+
"livekit.agent.InferenceStats",
|
|
1232
|
+
() => [
|
|
1233
|
+
{ no: 1, name: "earliest_client_created_at", kind: "message", T: protobuf.Timestamp, opt: true },
|
|
1234
|
+
{ no: 2, name: "latest_client_created_at", kind: "message", T: protobuf.Timestamp, opt: true },
|
|
1235
|
+
{ no: 3, name: "client_e2e_latency", kind: "message", T: protobuf.Duration, opt: true },
|
|
1236
|
+
{ no: 4, name: "server_e2e_latency", kind: "message", T: protobuf.Duration },
|
|
1237
|
+
{ no: 5, name: "preprocessing_duration", kind: "message", T: protobuf.Duration },
|
|
1238
|
+
{ no: 6, name: "inference_duration", kind: "message", T: protobuf.Duration }
|
|
1239
|
+
]
|
|
1240
|
+
);
|
|
1241
|
+
const EotInferenceResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1242
|
+
"livekit.agent.EotInferenceResponse",
|
|
1243
|
+
() => [
|
|
1244
|
+
{
|
|
1245
|
+
no: 1,
|
|
1246
|
+
name: "probability",
|
|
1247
|
+
kind: "scalar",
|
|
1248
|
+
T: 2
|
|
1249
|
+
/* ScalarType.FLOAT */
|
|
1250
|
+
},
|
|
1251
|
+
{ no: 2, name: "stats", kind: "message", T: InferenceStats }
|
|
1252
|
+
]
|
|
1253
|
+
);
|
|
1254
|
+
const InterruptionInferenceResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1255
|
+
"livekit.agent.InterruptionInferenceResponse",
|
|
1256
|
+
() => [
|
|
1257
|
+
{
|
|
1258
|
+
no: 1,
|
|
1259
|
+
name: "is_interruption",
|
|
1260
|
+
kind: "scalar",
|
|
1261
|
+
T: 8
|
|
1262
|
+
/* ScalarType.BOOL */
|
|
1263
|
+
},
|
|
1264
|
+
{ no: 2, name: "probabilities", kind: "scalar", T: 2, repeated: true },
|
|
1265
|
+
{ no: 3, name: "stats", kind: "message", T: InferenceStats }
|
|
1266
|
+
]
|
|
1267
|
+
);
|
|
1268
|
+
const InferenceResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1269
|
+
"livekit.agent.InferenceResponse",
|
|
1270
|
+
() => [
|
|
1271
|
+
{ no: 1, name: "eot_inference_response", kind: "message", T: EotInferenceResponse, oneof: "response" },
|
|
1272
|
+
{ no: 2, name: "interruption_inference_response", kind: "message", T: InterruptionInferenceResponse, oneof: "response" }
|
|
1273
|
+
]
|
|
1274
|
+
);
|
|
1275
|
+
const SessionCreated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1276
|
+
"livekit.agent.SessionCreated",
|
|
1277
|
+
[]
|
|
1278
|
+
);
|
|
1279
|
+
const InferenceStarted = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1280
|
+
"livekit.agent.InferenceStarted",
|
|
1281
|
+
[]
|
|
1282
|
+
);
|
|
1283
|
+
const InferenceStopped = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1284
|
+
"livekit.agent.InferenceStopped",
|
|
1285
|
+
[]
|
|
1286
|
+
);
|
|
1287
|
+
const SessionClosed = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1288
|
+
"livekit.agent.SessionClosed",
|
|
1289
|
+
[]
|
|
1290
|
+
);
|
|
1291
|
+
const EotPrediction = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1292
|
+
"livekit.agent.EotPrediction",
|
|
1293
|
+
() => [
|
|
1294
|
+
{
|
|
1295
|
+
no: 1,
|
|
1296
|
+
name: "probability",
|
|
1297
|
+
kind: "scalar",
|
|
1298
|
+
T: 2
|
|
1299
|
+
/* ScalarType.FLOAT */
|
|
1300
|
+
},
|
|
1301
|
+
{ no: 2, name: "inference_stats", kind: "message", T: InferenceStats },
|
|
1302
|
+
{ no: 3, name: "backend", kind: "enum", T: protobuf.proto3.getEnumType(EotPrediction_EotBackend) }
|
|
1303
|
+
]
|
|
1304
|
+
);
|
|
1305
|
+
const EotPrediction_EotBackend = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
1306
|
+
"livekit.agent.EotPrediction.EotBackend",
|
|
1307
|
+
[
|
|
1308
|
+
{ no: 0, name: "EOT_BACKEND_UNKNOWN", localName: "UNKNOWN" },
|
|
1309
|
+
{ no: 1, name: "EOT_BACKEND_MULTIMODAL", localName: "MULTIMODAL" },
|
|
1310
|
+
{ no: 2, name: "EOT_BACKEND_TEXT", localName: "TEXT" }
|
|
1311
|
+
]
|
|
1312
|
+
);
|
|
1313
|
+
const InterruptionPrediction = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1314
|
+
"livekit.agent.InterruptionPrediction",
|
|
1315
|
+
() => [
|
|
1316
|
+
{
|
|
1317
|
+
no: 1,
|
|
1318
|
+
name: "is_interruption",
|
|
1319
|
+
kind: "scalar",
|
|
1320
|
+
T: 8
|
|
1321
|
+
/* ScalarType.BOOL */
|
|
1322
|
+
},
|
|
1323
|
+
{ no: 2, name: "probabilities", kind: "scalar", T: 2, repeated: true },
|
|
1324
|
+
{ no: 3, name: "inference_stats", kind: "message", T: InferenceStats }
|
|
1325
|
+
]
|
|
1326
|
+
);
|
|
1327
|
+
const ServerMessage$1 = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1328
|
+
"livekit.agent.ServerMessage",
|
|
1329
|
+
() => [
|
|
1330
|
+
{ no: 1, name: "server_created_at", kind: "message", T: protobuf.Timestamp },
|
|
1331
|
+
{ no: 2, name: "request_id", kind: "scalar", T: 9, opt: true },
|
|
1332
|
+
{ no: 3, name: "client_created_at", kind: "message", T: protobuf.Timestamp, opt: true },
|
|
1333
|
+
{ no: 4, name: "session_created", kind: "message", T: SessionCreated, oneof: "message" },
|
|
1334
|
+
{ no: 5, name: "inference_started", kind: "message", T: InferenceStarted, oneof: "message" },
|
|
1335
|
+
{ no: 6, name: "inference_stopped", kind: "message", T: InferenceStopped, oneof: "message" },
|
|
1336
|
+
{ no: 7, name: "session_closed", kind: "message", T: SessionClosed, oneof: "message" },
|
|
1337
|
+
{ no: 8, name: "error", kind: "message", T: InferenceError, oneof: "message" },
|
|
1338
|
+
{ no: 9, name: "eot_prediction", kind: "message", T: EotPrediction, oneof: "message" },
|
|
1339
|
+
{ no: 10, name: "interruption_prediction", kind: "message", T: InterruptionPrediction, oneof: "message" }
|
|
1340
|
+
]
|
|
1341
|
+
);
|
|
1342
|
+
|
|
1343
|
+
const livekit_agent_inference_pb = {
|
|
1344
|
+
__proto__: null,
|
|
1345
|
+
AudioEncoding: AudioEncoding,
|
|
1346
|
+
BufferStart: BufferStart,
|
|
1347
|
+
BufferStop: BufferStop,
|
|
1348
|
+
ClientMessage: ClientMessage,
|
|
1349
|
+
EotInferenceRequest: EotInferenceRequest,
|
|
1350
|
+
EotInferenceResponse: EotInferenceResponse,
|
|
1351
|
+
EotInputChatContext: EotInputChatContext,
|
|
1352
|
+
EotPrediction: EotPrediction,
|
|
1353
|
+
EotPrediction_EotBackend: EotPrediction_EotBackend,
|
|
1354
|
+
EotSettings: EotSettings,
|
|
1355
|
+
InferenceError: InferenceError,
|
|
1356
|
+
InferenceRequest: InferenceRequest,
|
|
1357
|
+
InferenceResponse: InferenceResponse,
|
|
1358
|
+
InferenceStart: InferenceStart,
|
|
1359
|
+
InferenceStarted: InferenceStarted,
|
|
1360
|
+
InferenceStats: InferenceStats,
|
|
1361
|
+
InferenceStop: InferenceStop,
|
|
1362
|
+
InferenceStopped: InferenceStopped,
|
|
1363
|
+
InputAudio: InputAudio,
|
|
1364
|
+
InterruptionInferenceRequest: InterruptionInferenceRequest,
|
|
1365
|
+
InterruptionInferenceResponse: InterruptionInferenceResponse,
|
|
1366
|
+
InterruptionPrediction: InterruptionPrediction,
|
|
1367
|
+
InterruptionSettings: InterruptionSettings,
|
|
1368
|
+
ServerMessage: ServerMessage$1,
|
|
1369
|
+
SessionClose: SessionClose,
|
|
1370
|
+
SessionClosed: SessionClosed,
|
|
1371
|
+
SessionCreate: SessionCreate,
|
|
1372
|
+
SessionCreated: SessionCreated,
|
|
1373
|
+
SessionFlush: SessionFlush,
|
|
1374
|
+
SessionSettings: SessionSettings
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
const TextMessageErrorCode = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
1378
|
+
"livekit.agent.TextMessageErrorCode",
|
|
1379
|
+
[
|
|
1380
|
+
{ no: 0, name: "INTERNAL_ERROR" },
|
|
1381
|
+
{ no: 1, name: "SESSION_STATE_NOT_FOUND" },
|
|
1382
|
+
{ no: 2, name: "TEXT_HANDLER_ERROR" },
|
|
1383
|
+
{ no: 3, name: "PROCESS_CLOSED" }
|
|
1384
|
+
]
|
|
1385
|
+
);
|
|
1386
|
+
const TextMessageRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1387
|
+
"livekit.agent.TextMessageRequest",
|
|
1388
|
+
() => [
|
|
1389
|
+
{
|
|
1390
|
+
no: 1,
|
|
1391
|
+
name: "text",
|
|
1392
|
+
kind: "scalar",
|
|
1393
|
+
T: 9
|
|
1394
|
+
/* ScalarType.STRING */
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
no: 2,
|
|
1398
|
+
name: "message_id",
|
|
1399
|
+
kind: "scalar",
|
|
1400
|
+
T: 9
|
|
1401
|
+
/* ScalarType.STRING */
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
no: 3,
|
|
1405
|
+
name: "session_id",
|
|
1406
|
+
kind: "scalar",
|
|
1407
|
+
T: 9
|
|
1408
|
+
/* ScalarType.STRING */
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
no: 4,
|
|
1412
|
+
name: "agent_name",
|
|
1413
|
+
kind: "scalar",
|
|
1414
|
+
T: 9
|
|
1415
|
+
/* ScalarType.STRING */
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
no: 5,
|
|
1419
|
+
name: "metadata",
|
|
1420
|
+
kind: "scalar",
|
|
1421
|
+
T: 9
|
|
1422
|
+
/* ScalarType.STRING */
|
|
1423
|
+
},
|
|
1424
|
+
{ no: 6, name: "session_state", kind: "message", T: AgentSessionState, opt: true }
|
|
1425
|
+
]
|
|
1426
|
+
);
|
|
1427
|
+
const TextMessageResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1428
|
+
"livekit.agent.TextMessageResponse",
|
|
1429
|
+
() => [
|
|
1430
|
+
{
|
|
1431
|
+
no: 1,
|
|
1432
|
+
name: "message_id",
|
|
1433
|
+
kind: "scalar",
|
|
1434
|
+
T: 9
|
|
1435
|
+
/* ScalarType.STRING */
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
no: 2,
|
|
1439
|
+
name: "session_id",
|
|
1440
|
+
kind: "scalar",
|
|
1441
|
+
T: 9
|
|
1442
|
+
/* ScalarType.STRING */
|
|
1443
|
+
},
|
|
1444
|
+
{ no: 3, name: "message", kind: "message", T: ChatMessage$1, oneof: "event" },
|
|
1445
|
+
{ no: 4, name: "function_call", kind: "message", T: FunctionCall, oneof: "event" },
|
|
1446
|
+
{ no: 5, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "event" },
|
|
1447
|
+
{ no: 6, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "event" },
|
|
1448
|
+
{ no: 7, name: "complete", kind: "message", T: TextMessageComplete, oneof: "event" }
|
|
1449
|
+
]
|
|
1450
|
+
);
|
|
1451
|
+
const TextMessageComplete = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1452
|
+
"livekit.agent.TextMessageComplete",
|
|
1453
|
+
() => [
|
|
1454
|
+
{ no: 1, name: "session_state", kind: "message", T: AgentSessionState, oneof: "result" },
|
|
1455
|
+
{ no: 2, name: "error", kind: "message", T: TextMessageError, oneof: "result" }
|
|
1456
|
+
]
|
|
1457
|
+
);
|
|
1458
|
+
const AgentSessionState = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1459
|
+
"livekit.agent.AgentSessionState",
|
|
1460
|
+
() => [
|
|
1461
|
+
{
|
|
1462
|
+
no: 1,
|
|
1463
|
+
name: "version",
|
|
1464
|
+
kind: "scalar",
|
|
1465
|
+
T: 4
|
|
1466
|
+
/* ScalarType.UINT64 */
|
|
1467
|
+
},
|
|
1468
|
+
{ no: 2, name: "snapshot", kind: "scalar", T: 12, oneof: "data" },
|
|
1469
|
+
{ no: 3, name: "delta", kind: "scalar", T: 12, oneof: "data" }
|
|
1470
|
+
]
|
|
1471
|
+
);
|
|
1472
|
+
const TextMessageError = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1473
|
+
"livekit.agent.TextMessageError",
|
|
1474
|
+
() => [
|
|
1475
|
+
{
|
|
1476
|
+
no: 1,
|
|
1477
|
+
name: "message",
|
|
1478
|
+
kind: "scalar",
|
|
1479
|
+
T: 9
|
|
1480
|
+
/* ScalarType.STRING */
|
|
1481
|
+
},
|
|
1482
|
+
{ no: 2, name: "code", kind: "enum", T: protobuf.proto3.getEnumType(TextMessageErrorCode) }
|
|
1483
|
+
]
|
|
1484
|
+
);
|
|
1485
|
+
|
|
1486
|
+
const livekit_agent_text_pb = {
|
|
1487
|
+
__proto__: null,
|
|
1488
|
+
AgentSessionState: AgentSessionState,
|
|
1489
|
+
TextMessageComplete: TextMessageComplete,
|
|
1490
|
+
TextMessageError: TextMessageError,
|
|
1491
|
+
TextMessageErrorCode: TextMessageErrorCode,
|
|
1492
|
+
TextMessageRequest: TextMessageRequest,
|
|
1493
|
+
TextMessageResponse: TextMessageResponse
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
const AgentDevMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1497
|
+
"livekit.agent.AgentDevMessage",
|
|
1498
|
+
() => [
|
|
1499
|
+
{ no: 1, name: "get_running_jobs_request", kind: "message", T: GetRunningAgentJobsRequest, oneof: "message" },
|
|
1500
|
+
{ no: 2, name: "get_running_jobs_response", kind: "message", T: GetRunningAgentJobsResponse, oneof: "message" }
|
|
1501
|
+
]
|
|
1502
|
+
);
|
|
1503
|
+
const GetRunningAgentJobsRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1504
|
+
"livekit.agent.GetRunningAgentJobsRequest",
|
|
1505
|
+
[]
|
|
1506
|
+
);
|
|
1507
|
+
const GetRunningAgentJobsResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1508
|
+
"livekit.agent.GetRunningAgentJobsResponse",
|
|
1509
|
+
() => [
|
|
1510
|
+
{ no: 1, name: "jobs", kind: "message", T: RunningAgentJobInfo, repeated: true }
|
|
1511
|
+
]
|
|
1512
|
+
);
|
|
1513
|
+
const RunningAgentJobInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
1514
|
+
"livekit.agent.RunningAgentJobInfo",
|
|
1515
|
+
() => [
|
|
1516
|
+
{
|
|
1517
|
+
no: 1,
|
|
1518
|
+
name: "job",
|
|
1519
|
+
kind: "scalar",
|
|
1520
|
+
T: 12
|
|
1521
|
+
/* ScalarType.BYTES */
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
no: 2,
|
|
1525
|
+
name: "accept_name",
|
|
1526
|
+
kind: "scalar",
|
|
1527
|
+
T: 9
|
|
1528
|
+
/* ScalarType.STRING */
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
no: 3,
|
|
1532
|
+
name: "accept_identity",
|
|
1533
|
+
kind: "scalar",
|
|
1534
|
+
T: 9
|
|
1535
|
+
/* ScalarType.STRING */
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
no: 4,
|
|
1539
|
+
name: "accept_metadata",
|
|
1540
|
+
kind: "scalar",
|
|
1541
|
+
T: 9
|
|
1542
|
+
/* ScalarType.STRING */
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
no: 5,
|
|
1546
|
+
name: "url",
|
|
1547
|
+
kind: "scalar",
|
|
1548
|
+
T: 9
|
|
1549
|
+
/* ScalarType.STRING */
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
no: 6,
|
|
1553
|
+
name: "token",
|
|
1554
|
+
kind: "scalar",
|
|
1555
|
+
T: 9
|
|
1556
|
+
/* ScalarType.STRING */
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
no: 7,
|
|
1560
|
+
name: "worker_id",
|
|
1561
|
+
kind: "scalar",
|
|
1562
|
+
T: 9
|
|
1563
|
+
/* ScalarType.STRING */
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
no: 8,
|
|
1567
|
+
name: "mock_job",
|
|
1568
|
+
kind: "scalar",
|
|
1569
|
+
T: 8
|
|
1570
|
+
/* ScalarType.BOOL */
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
);
|
|
1574
|
+
|
|
1575
|
+
const livekit_agent_dev_pb = {
|
|
1576
|
+
__proto__: null,
|
|
1577
|
+
AgentDevMessage: AgentDevMessage,
|
|
1578
|
+
GetRunningAgentJobsRequest: GetRunningAgentJobsRequest,
|
|
1579
|
+
GetRunningAgentJobsResponse: GetRunningAgentJobsResponse,
|
|
1580
|
+
RunningAgentJobInfo: RunningAgentJobInfo
|
|
1581
|
+
};
|
|
1582
|
+
|
|
996
1583
|
const MetricLabel = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
997
1584
|
"livekit.MetricLabel",
|
|
998
1585
|
[
|
|
@@ -5837,6 +6424,13 @@ const RoomParticipantIdentity = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
5837
6424
|
kind: "scalar",
|
|
5838
6425
|
T: 9
|
|
5839
6426
|
/* ScalarType.STRING */
|
|
6427
|
+
},
|
|
6428
|
+
{
|
|
6429
|
+
no: 3,
|
|
6430
|
+
name: "revoke_token_ts",
|
|
6431
|
+
kind: "scalar",
|
|
6432
|
+
T: 3
|
|
6433
|
+
/* ScalarType.INT64 */
|
|
5840
6434
|
}
|
|
5841
6435
|
]
|
|
5842
6436
|
);
|
|
@@ -7172,6 +7766,9 @@ const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageT
|
|
|
7172
7766
|
/* ScalarType.STRING */
|
|
7173
7767
|
},
|
|
7174
7768
|
{ no: 20, name: "trunk", kind: "message", T: SIPOutboundConfig },
|
|
7769
|
+
{ no: 24, name: "sip_request_uri", kind: "message", T: SIPRequestDest },
|
|
7770
|
+
{ no: 25, name: "sip_to_header", kind: "message", T: SIPNamedDest },
|
|
7771
|
+
{ no: 26, name: "sip_from_header", kind: "message", T: SIPNamedDest },
|
|
7175
7772
|
{
|
|
7176
7773
|
no: 2,
|
|
7177
7774
|
name: "sip_call_to",
|
|
@@ -7575,6 +8172,27 @@ const SIPUri = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
7575
8172
|
{ no: 5, name: "transport", kind: "enum", T: protobuf.proto3.getEnumType(SIPTransport) }
|
|
7576
8173
|
]
|
|
7577
8174
|
);
|
|
8175
|
+
const SIPRequestDest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
8176
|
+
"livekit.SIPRequestDest",
|
|
8177
|
+
() => [
|
|
8178
|
+
{ no: 1, name: "raw", kind: "scalar", T: 9, oneof: "uri" },
|
|
8179
|
+
{ no: 2, name: "values", kind: "message", T: SIPUri, oneof: "uri" }
|
|
8180
|
+
]
|
|
8181
|
+
);
|
|
8182
|
+
const SIPNamedDest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
8183
|
+
"livekit.SIPNamedDest",
|
|
8184
|
+
() => [
|
|
8185
|
+
{
|
|
8186
|
+
no: 3,
|
|
8187
|
+
name: "display_name",
|
|
8188
|
+
kind: "scalar",
|
|
8189
|
+
T: 9
|
|
8190
|
+
/* ScalarType.STRING */
|
|
8191
|
+
},
|
|
8192
|
+
{ no: 1, name: "raw", kind: "scalar", T: 9, oneof: "uri" },
|
|
8193
|
+
{ no: 2, name: "values", kind: "message", T: SIPUri, oneof: "uri" }
|
|
8194
|
+
]
|
|
8195
|
+
);
|
|
7578
8196
|
const Destination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
7579
8197
|
"livekit.Destination",
|
|
7580
8198
|
() => [
|
|
@@ -8218,7 +8836,8 @@ const FeatureUsageInfo_Feature = /* @__PURE__ */ protobuf.proto3.makeEnum(
|
|
|
8218
8836
|
[
|
|
8219
8837
|
{ no: 0, name: "KRISP_NOISE_CANCELLATION" },
|
|
8220
8838
|
{ no: 1, name: "KRISP_BACKGROUND_VOICE_CANCELLATION" },
|
|
8221
|
-
{ no: 2, name: "AIC_AUDIO_ENHANCEMENT" }
|
|
8839
|
+
{ no: 2, name: "AIC_AUDIO_ENHANCEMENT" },
|
|
8840
|
+
{ no: 3, name: "KRISP_VIVA" }
|
|
8222
8841
|
]
|
|
8223
8842
|
);
|
|
8224
8843
|
const APICallRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
@@ -10060,7 +10679,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
|
|
|
10060
10679
|
]
|
|
10061
10680
|
);
|
|
10062
10681
|
|
|
10063
|
-
const version = "1.46.
|
|
10682
|
+
const version = "1.46.3";
|
|
10064
10683
|
|
|
10065
10684
|
exports.Timestamp = protobuf.Timestamp;
|
|
10066
10685
|
exports.protoInt64 = protobuf.protoInt64;
|
|
@@ -10070,9 +10689,12 @@ exports.AcceptWhatsAppCallRequest = AcceptWhatsAppCallRequest;
|
|
|
10070
10689
|
exports.AcceptWhatsAppCallResponse = AcceptWhatsAppCallResponse;
|
|
10071
10690
|
exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
|
|
10072
10691
|
exports.AddTrackRequest = AddTrackRequest;
|
|
10692
|
+
exports.AgentDev = livekit_agent_dev_pb;
|
|
10073
10693
|
exports.AgentDispatch = AgentDispatch;
|
|
10074
10694
|
exports.AgentDispatchState = AgentDispatchState;
|
|
10695
|
+
exports.AgentInference = livekit_agent_inference_pb;
|
|
10075
10696
|
exports.AgentSession = livekit_agent_session_pb;
|
|
10697
|
+
exports.AgentText = livekit_agent_text_pb;
|
|
10076
10698
|
exports.AliOSSUpload = AliOSSUpload;
|
|
10077
10699
|
exports.AnalyticsClientMeta = AnalyticsClientMeta;
|
|
10078
10700
|
exports.AnalyticsEvent = AnalyticsEvent;
|
|
@@ -10308,10 +10930,12 @@ exports.SIPInboundTrunkInfo = SIPInboundTrunkInfo;
|
|
|
10308
10930
|
exports.SIPInboundTrunkUpdate = SIPInboundTrunkUpdate;
|
|
10309
10931
|
exports.SIPMediaConfig = SIPMediaConfig;
|
|
10310
10932
|
exports.SIPMediaEncryption = SIPMediaEncryption;
|
|
10933
|
+
exports.SIPNamedDest = SIPNamedDest;
|
|
10311
10934
|
exports.SIPOutboundConfig = SIPOutboundConfig;
|
|
10312
10935
|
exports.SIPOutboundTrunkInfo = SIPOutboundTrunkInfo;
|
|
10313
10936
|
exports.SIPOutboundTrunkUpdate = SIPOutboundTrunkUpdate;
|
|
10314
10937
|
exports.SIPParticipantInfo = SIPParticipantInfo;
|
|
10938
|
+
exports.SIPRequestDest = SIPRequestDest;
|
|
10315
10939
|
exports.SIPStatus = SIPStatus;
|
|
10316
10940
|
exports.SIPStatusCode = SIPStatusCode;
|
|
10317
10941
|
exports.SIPTransferInfo = SIPTransferInfo;
|