@livekit/protocol 1.49.0 → 1.50.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.
@@ -18,7 +18,7 @@
18
18
  // @ts-nocheck
19
19
 
20
20
  import { proto3, Timestamp } from "@bufbuild/protobuf";
21
- import { ChatContext } from "./agent/livekit_agent_session_pb.js";
21
+ import { ChatContext, ChatRole } from "./agent/livekit_agent_session_pb.js";
22
22
  import { PresignedPostRequest } from "./livekit_cloud_agent_pb.js";
23
23
  import { TokenPagination } from "./livekit_models_pb.js";
24
24
 
@@ -77,7 +77,6 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
77
77
  { no: 5, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
78
  { no: 6, name: "created_at", kind: "message", T: Timestamp },
79
79
  { no: 7, name: "jobs", kind: "message", T: SimulationRun_Job, repeated: true },
80
- { no: 8, name: "summary", kind: "message", T: SimulationRunSummary },
81
80
  { no: 9, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
82
81
  { no: 10, name: "scenario_group", kind: "message", T: ScenarioGroup },
83
82
  { no: 11, name: "ended_at", kind: "message", T: Timestamp },
@@ -88,6 +87,8 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
88
87
  { no: 16, name: "usage", kind: "message", T: SimulationRun_Usage },
89
88
  { no: 17, name: "concurrency", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
90
89
  { no: 18, name: "mode", kind: "enum", T: proto3.getEnumType(SimulationMode) },
90
+ { no: 19, name: "metrics", kind: "message", T: SimulationRun_RunMetrics },
91
+ { no: 20, name: "summary_zstd", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
91
92
  ],
92
93
  );
93
94
 
@@ -125,6 +126,7 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
125
126
  { no: 11, name: "ended_at", kind: "message", T: Timestamp },
126
127
  { no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
128
  { no: 13, name: "usage", kind: "message", T: SimulationRun_Job_Usage },
129
+ { no: 14, name: "metrics", kind: "message", T: SimulationRun_JobMetrics },
128
130
  ],
129
131
  {localName: "SimulationRun_Job"},
130
132
  );
@@ -155,6 +157,179 @@ export const SimulationRun_Job_Usage = /*@__PURE__*/ proto3.makeMessageType(
155
157
  {localName: "SimulationRun_Job_Usage"},
156
158
  );
157
159
 
160
+ /**
161
+ * @generated from message livekit.SimulationRun.JobMetrics
162
+ */
163
+ export const SimulationRun_JobMetrics = /*@__PURE__*/ proto3.makeMessageType(
164
+ "livekit.SimulationRun.JobMetrics",
165
+ () => [
166
+ { no: 1, name: "accuracy_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
167
+ { no: 2, name: "experience_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
168
+ { no: 3, name: "task_completion", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
169
+ { no: 4, name: "stt", kind: "message", T: SimulationRun_JobMetrics_STT },
170
+ { no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
171
+ { no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
172
+ { no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
173
+ { no: 8, name: "simulator", kind: "message", T: SimulationRun_JobMetrics_Simulator },
174
+ { no: 9, name: "turns", kind: "message", T: SimulationRun_JobMetrics_Turn, repeated: true },
175
+ { no: 10, name: "judge_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
+ { no: 11, name: "audio_judge_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 12, name: "has_remote_session", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
178
+ { no: 13, name: "t0", kind: "message", T: Timestamp },
179
+ ],
180
+ {localName: "SimulationRun_JobMetrics"},
181
+ );
182
+
183
+ /**
184
+ * The agent's perception of the caller.
185
+ *
186
+ * @generated from message livekit.SimulationRun.JobMetrics.STT
187
+ */
188
+ export const SimulationRun_JobMetrics_STT = /*@__PURE__*/ proto3.makeMessageType(
189
+ "livekit.SimulationRun.JobMetrics.STT",
190
+ () => [
191
+ { no: 1, name: "wer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
192
+ { no: 2, name: "words", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
193
+ { no: 3, name: "word_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
194
+ { no: 4, name: "cer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
195
+ { no: 9, name: "chars", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
196
+ { no: 10, name: "char_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
197
+ { no: 5, name: "keyterm_recall", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
198
+ { no: 6, name: "keyterms_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
199
+ { no: 7, name: "keyterms_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
200
+ { no: 8, name: "transcription_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
201
+ ],
202
+ {localName: "SimulationRun_JobMetrics_STT"},
203
+ );
204
+
205
+ /**
206
+ * @generated from message livekit.SimulationRun.JobMetrics.LLM
207
+ */
208
+ export const SimulationRun_JobMetrics_LLM = /*@__PURE__*/ proto3.makeMessageType(
209
+ "livekit.SimulationRun.JobMetrics.LLM",
210
+ () => [
211
+ { no: 1, name: "ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
212
+ { no: 2, name: "ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
213
+ { no: 3, name: "tokens_per_second", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
214
+ { no: 4, name: "conciseness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
215
+ ],
216
+ {localName: "SimulationRun_JobMetrics_LLM"},
217
+ );
218
+
219
+ /**
220
+ * The agent's voice.
221
+ *
222
+ * @generated from message livekit.SimulationRun.JobMetrics.TTS
223
+ */
224
+ export const SimulationRun_JobMetrics_TTS = /*@__PURE__*/ proto3.makeMessageType(
225
+ "livekit.SimulationRun.JobMetrics.TTS",
226
+ () => [
227
+ { no: 1, name: "ttfa_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
228
+ { no: 2, name: "ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
229
+ { no: 3, name: "wer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
230
+ { no: 7, name: "words", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
231
+ { no: 8, name: "word_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
232
+ { no: 9, name: "cer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
233
+ { no: 10, name: "chars", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
234
+ { no: 11, name: "char_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
235
+ { no: 4, name: "speech_rate_wpm", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
236
+ { no: 5, name: "naturalness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
237
+ { no: 6, name: "enunciation_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
238
+ ],
239
+ {localName: "SimulationRun_JobMetrics_TTS"},
240
+ );
241
+
242
+ /**
243
+ * End-to-end floor dynamics, measured off the audio timeline — the ground
244
+ * truth of what the caller hears, independent of agent self-reports.
245
+ *
246
+ * @generated from message livekit.SimulationRun.JobMetrics.Conversation
247
+ */
248
+ export const SimulationRun_JobMetrics_Conversation = /*@__PURE__*/ proto3.makeMessageType(
249
+ "livekit.SimulationRun.JobMetrics.Conversation",
250
+ () => [
251
+ { no: 1, name: "turn_taking_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
252
+ { no: 2, name: "response_latency_p50_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
253
+ { no: 3, name: "response_latency_p95_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
254
+ { no: 4, name: "response_latency_p99_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
255
+ { no: 5, name: "agent_yield_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
256
+ { no: 6, name: "eot_misprediction_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
257
+ { no: 7, name: "overlap_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
258
+ { no: 8, name: "overlap_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
259
+ { no: 9, name: "total_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
260
+ { no: 10, name: "silence_total_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
261
+ { no: 11, name: "awkward_silence_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
262
+ { no: 12, name: "unanswered_persona_turns", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
263
+ { no: 13, name: "false_interruption_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
264
+ { no: 14, name: "false_interruption_unrecovered_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
265
+ { no: 15, name: "agent_reported_e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
266
+ ],
267
+ {localName: "SimulationRun_JobMetrics_Conversation"},
268
+ );
269
+
270
+ /**
271
+ * Was the call spoiled by the simulator, not the agent? Diagnostic only —
272
+ * never folded into the scores; run aggregation excludes flagged calls
273
+ * from the two headline scores.
274
+ *
275
+ * @generated from message livekit.SimulationRun.JobMetrics.Simulator
276
+ */
277
+ export const SimulationRun_JobMetrics_Simulator = /*@__PURE__*/ proto3.makeMessageType(
278
+ "livekit.SimulationRun.JobMetrics.Simulator",
279
+ () => [
280
+ { no: 1, name: "early_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
281
+ { no: 2, name: "late_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
282
+ ],
283
+ {localName: "SimulationRun_JobMetrics_Simulator"},
284
+ );
285
+
286
+ /**
287
+ * @generated from message livekit.SimulationRun.JobMetrics.Turn
288
+ */
289
+ export const SimulationRun_JobMetrics_Turn = /*@__PURE__*/ proto3.makeMessageType(
290
+ "livekit.SimulationRun.JobMetrics.Turn",
291
+ () => [
292
+ { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
293
+ { no: 2, name: "role", kind: "enum", T: proto3.getEnumType(ChatRole) },
294
+ { no: 3, name: "start_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
295
+ { no: 4, name: "end_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
296
+ { no: 5, name: "response_latency_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
297
+ { no: 6, name: "transcription_delay_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
298
+ { no: 7, name: "llm_ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
299
+ { no: 8, name: "llm_ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
300
+ { no: 9, name: "tts_ttfa_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
301
+ { no: 10, name: "tts_ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
302
+ { no: 11, name: "agent_reported_e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
303
+ { no: 12, name: "conciseness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
304
+ { no: 13, name: "naturalness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
305
+ { no: 14, name: "enunciation_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
306
+ { no: 15, name: "flags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
307
+ ],
308
+ {localName: "SimulationRun_JobMetrics_Turn"},
309
+ );
310
+
311
+ /**
312
+ * Aggregates over this run's jobs. Reuses the JobMetrics group shapes.
313
+ *
314
+ * @generated from message livekit.SimulationRun.RunMetrics
315
+ */
316
+ export const SimulationRun_RunMetrics = /*@__PURE__*/ proto3.makeMessageType(
317
+ "livekit.SimulationRun.RunMetrics",
318
+ () => [
319
+ { no: 1, name: "accuracy_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
320
+ { no: 2, name: "experience_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
321
+ { no: 3, name: "scenario_pass_rate", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
322
+ { no: 4, name: "stt", kind: "message", T: SimulationRun_JobMetrics_STT },
323
+ { no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
324
+ { no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
325
+ { no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
326
+ { no: 9, name: "jobs_total", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
327
+ { no: 10, name: "jobs_measured", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
328
+ { no: 11, name: "jobs_simulator_fault", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
329
+ ],
330
+ {localName: "SimulationRun_RunMetrics"},
331
+ );
332
+
158
333
  /**
159
334
  * @generated from message livekit.SimulationRun.Create
160
335
  */
@@ -284,6 +284,13 @@ export declare class ConnectWhatsAppCallRequest extends Message<ConnectWhatsAppC
284
284
  */
285
285
  sdp?: SessionDescription;
286
286
 
287
+ /**
288
+ * Wait for the answer for the call before returning.
289
+ *
290
+ * @generated from field: bool wait_until_answered = 3;
291
+ */
292
+ waitUntilAnswered: boolean;
293
+
287
294
  constructor(data?: PartialMessage<ConnectWhatsAppCallRequest>);
288
295
 
289
296
  static readonly runtime: typeof proto3;
@@ -104,6 +104,7 @@ export const ConnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
104
104
  () => [
105
105
  { no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
106
  { no: 2, name: "sdp", kind: "message", T: SessionDescription },
107
+ { no: 3, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
107
108
  ],
108
109
  );
109
110
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.49.0';
2
+ export const version = '1.50.1';