@livekit/protocol 1.45.0 → 1.45.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { proto3, Timestamp, Duration, Any } from '@bufbuild/protobuf';
1
+ import { proto3, Timestamp, Struct, Duration, Any } from '@bufbuild/protobuf';
2
2
  export { protoInt64 } from '@bufbuild/protobuf';
3
3
 
4
4
  const ChatRole = /* @__PURE__ */ proto3.makeEnum(
@@ -10,6 +10,24 @@ const ChatRole = /* @__PURE__ */ proto3.makeEnum(
10
10
  { no: 3, name: "ASSISTANT" }
11
11
  ]
12
12
  );
13
+ const AgentState = /* @__PURE__ */ proto3.makeEnum(
14
+ "livekit.agent.AgentState",
15
+ [
16
+ { no: 0, name: "AS_INITIALIZING" },
17
+ { no: 1, name: "AS_IDLE" },
18
+ { no: 2, name: "AS_LISTENING" },
19
+ { no: 3, name: "AS_THINKING" },
20
+ { no: 4, name: "AS_SPEAKING" }
21
+ ]
22
+ );
23
+ const UserState = /* @__PURE__ */ proto3.makeEnum(
24
+ "livekit.agent.UserState",
25
+ [
26
+ { no: 0, name: "US_SPEAKING" },
27
+ { no: 1, name: "US_LISTENING" },
28
+ { no: 2, name: "US_AWAY" }
29
+ ]
30
+ );
13
31
  const MetricsReport = /* @__PURE__ */ proto3.makeMessageType(
14
32
  "livekit.agent.MetricsReport",
15
33
  () => [
@@ -155,6 +173,22 @@ const AgentHandoff = /* @__PURE__ */ proto3.makeMessageType(
155
173
  { no: 4, name: "created_at", kind: "message", T: Timestamp }
156
174
  ]
157
175
  );
176
+ const AgentConfigUpdate = /* @__PURE__ */ proto3.makeMessageType(
177
+ "livekit.agent.AgentConfigUpdate",
178
+ () => [
179
+ {
180
+ no: 1,
181
+ name: "id",
182
+ kind: "scalar",
183
+ T: 9
184
+ /* ScalarType.STRING */
185
+ },
186
+ { no: 2, name: "instructions", kind: "scalar", T: 9, opt: true },
187
+ { no: 3, name: "tools_added", kind: "scalar", T: 9, repeated: true },
188
+ { no: 4, name: "tools_removed", kind: "scalar", T: 9, repeated: true },
189
+ { no: 5, name: "created_at", kind: "message", T: Timestamp }
190
+ ]
191
+ );
158
192
  const ChatContext = /* @__PURE__ */ proto3.makeMessageType(
159
193
  "livekit.agent.ChatContext",
160
194
  () => [
@@ -167,14 +201,593 @@ const ChatContext_ChatItem = /* @__PURE__ */ proto3.makeMessageType(
167
201
  { no: 1, name: "message", kind: "message", T: ChatMessage$1, oneof: "item" },
168
202
  { no: 2, name: "function_call", kind: "message", T: FunctionCall, oneof: "item" },
169
203
  { no: 3, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "item" },
170
- { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" }
204
+ { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" },
205
+ { no: 5, name: "agent_config_update", kind: "message", T: AgentConfigUpdate, oneof: "item" }
171
206
  ],
172
207
  { localName: "ChatContext_ChatItem" }
173
208
  );
209
+ const LLMModelUsage = /* @__PURE__ */ proto3.makeMessageType(
210
+ "livekit.agent.LLMModelUsage",
211
+ () => [
212
+ {
213
+ no: 1,
214
+ name: "provider",
215
+ kind: "scalar",
216
+ T: 9
217
+ /* ScalarType.STRING */
218
+ },
219
+ {
220
+ no: 2,
221
+ name: "model",
222
+ kind: "scalar",
223
+ T: 9
224
+ /* ScalarType.STRING */
225
+ },
226
+ {
227
+ no: 3,
228
+ name: "input_tokens",
229
+ kind: "scalar",
230
+ T: 5
231
+ /* ScalarType.INT32 */
232
+ },
233
+ {
234
+ no: 4,
235
+ name: "input_cached_tokens",
236
+ kind: "scalar",
237
+ T: 5
238
+ /* ScalarType.INT32 */
239
+ },
240
+ {
241
+ no: 5,
242
+ name: "input_audio_tokens",
243
+ kind: "scalar",
244
+ T: 5
245
+ /* ScalarType.INT32 */
246
+ },
247
+ {
248
+ no: 6,
249
+ name: "input_cached_audio_tokens",
250
+ kind: "scalar",
251
+ T: 5
252
+ /* ScalarType.INT32 */
253
+ },
254
+ {
255
+ no: 7,
256
+ name: "input_text_tokens",
257
+ kind: "scalar",
258
+ T: 5
259
+ /* ScalarType.INT32 */
260
+ },
261
+ {
262
+ no: 8,
263
+ name: "input_cached_text_tokens",
264
+ kind: "scalar",
265
+ T: 5
266
+ /* ScalarType.INT32 */
267
+ },
268
+ {
269
+ no: 9,
270
+ name: "input_image_tokens",
271
+ kind: "scalar",
272
+ T: 5
273
+ /* ScalarType.INT32 */
274
+ },
275
+ {
276
+ no: 10,
277
+ name: "input_cached_image_tokens",
278
+ kind: "scalar",
279
+ T: 5
280
+ /* ScalarType.INT32 */
281
+ },
282
+ {
283
+ no: 11,
284
+ name: "output_tokens",
285
+ kind: "scalar",
286
+ T: 5
287
+ /* ScalarType.INT32 */
288
+ },
289
+ {
290
+ no: 12,
291
+ name: "output_audio_tokens",
292
+ kind: "scalar",
293
+ T: 5
294
+ /* ScalarType.INT32 */
295
+ },
296
+ {
297
+ no: 13,
298
+ name: "output_text_tokens",
299
+ kind: "scalar",
300
+ T: 5
301
+ /* ScalarType.INT32 */
302
+ },
303
+ {
304
+ no: 14,
305
+ name: "session_duration",
306
+ kind: "scalar",
307
+ T: 1
308
+ /* ScalarType.DOUBLE */
309
+ }
310
+ ]
311
+ );
312
+ const TTSModelUsage = /* @__PURE__ */ proto3.makeMessageType(
313
+ "livekit.agent.TTSModelUsage",
314
+ () => [
315
+ {
316
+ no: 1,
317
+ name: "provider",
318
+ kind: "scalar",
319
+ T: 9
320
+ /* ScalarType.STRING */
321
+ },
322
+ {
323
+ no: 2,
324
+ name: "model",
325
+ kind: "scalar",
326
+ T: 9
327
+ /* ScalarType.STRING */
328
+ },
329
+ {
330
+ no: 3,
331
+ name: "input_tokens",
332
+ kind: "scalar",
333
+ T: 5
334
+ /* ScalarType.INT32 */
335
+ },
336
+ {
337
+ no: 4,
338
+ name: "output_tokens",
339
+ kind: "scalar",
340
+ T: 5
341
+ /* ScalarType.INT32 */
342
+ },
343
+ {
344
+ no: 5,
345
+ name: "characters_count",
346
+ kind: "scalar",
347
+ T: 5
348
+ /* ScalarType.INT32 */
349
+ },
350
+ {
351
+ no: 6,
352
+ name: "audio_duration",
353
+ kind: "scalar",
354
+ T: 1
355
+ /* ScalarType.DOUBLE */
356
+ }
357
+ ]
358
+ );
359
+ const STTModelUsage = /* @__PURE__ */ proto3.makeMessageType(
360
+ "livekit.agent.STTModelUsage",
361
+ () => [
362
+ {
363
+ no: 1,
364
+ name: "provider",
365
+ kind: "scalar",
366
+ T: 9
367
+ /* ScalarType.STRING */
368
+ },
369
+ {
370
+ no: 2,
371
+ name: "model",
372
+ kind: "scalar",
373
+ T: 9
374
+ /* ScalarType.STRING */
375
+ },
376
+ {
377
+ no: 3,
378
+ name: "input_tokens",
379
+ kind: "scalar",
380
+ T: 5
381
+ /* ScalarType.INT32 */
382
+ },
383
+ {
384
+ no: 4,
385
+ name: "output_tokens",
386
+ kind: "scalar",
387
+ T: 5
388
+ /* ScalarType.INT32 */
389
+ },
390
+ {
391
+ no: 5,
392
+ name: "audio_duration",
393
+ kind: "scalar",
394
+ T: 1
395
+ /* ScalarType.DOUBLE */
396
+ }
397
+ ]
398
+ );
399
+ const InterruptionModelUsage = /* @__PURE__ */ proto3.makeMessageType(
400
+ "livekit.agent.InterruptionModelUsage",
401
+ () => [
402
+ {
403
+ no: 1,
404
+ name: "provider",
405
+ kind: "scalar",
406
+ T: 9
407
+ /* ScalarType.STRING */
408
+ },
409
+ {
410
+ no: 2,
411
+ name: "model",
412
+ kind: "scalar",
413
+ T: 9
414
+ /* ScalarType.STRING */
415
+ },
416
+ {
417
+ no: 3,
418
+ name: "total_requests",
419
+ kind: "scalar",
420
+ T: 5
421
+ /* ScalarType.INT32 */
422
+ }
423
+ ]
424
+ );
425
+ const ModelUsage = /* @__PURE__ */ proto3.makeMessageType(
426
+ "livekit.agent.ModelUsage",
427
+ () => [
428
+ { no: 1, name: "llm", kind: "message", T: LLMModelUsage, oneof: "usage" },
429
+ { no: 2, name: "tts", kind: "message", T: TTSModelUsage, oneof: "usage" },
430
+ { no: 3, name: "stt", kind: "message", T: STTModelUsage, oneof: "usage" },
431
+ { no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" }
432
+ ]
433
+ );
434
+ const AgentSessionUsage = /* @__PURE__ */ proto3.makeMessageType(
435
+ "livekit.agent.AgentSessionUsage",
436
+ () => [
437
+ { no: 1, name: "model_usage", kind: "message", T: ModelUsage, repeated: true }
438
+ ]
439
+ );
440
+ const AgentSessionEvent = /* @__PURE__ */ proto3.makeMessageType(
441
+ "livekit.agent.AgentSessionEvent",
442
+ () => [
443
+ { no: 1, name: "created_at", kind: "message", T: Timestamp },
444
+ { no: 10, name: "agent_state_changed", kind: "message", T: AgentSessionEvent_AgentStateChanged, oneof: "event" },
445
+ { no: 11, name: "user_state_changed", kind: "message", T: AgentSessionEvent_UserStateChanged, oneof: "event" },
446
+ { no: 12, name: "conversation_item_added", kind: "message", T: AgentSessionEvent_ConversationItemAdded, oneof: "event" },
447
+ { no: 13, name: "user_input_transcribed", kind: "message", T: AgentSessionEvent_UserInputTranscribed, oneof: "event" },
448
+ { no: 14, name: "function_tools_executed", kind: "message", T: AgentSessionEvent_FunctionToolsExecuted, oneof: "event" },
449
+ { no: 15, name: "error", kind: "message", T: AgentSessionEvent_Error, oneof: "event" },
450
+ { no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
451
+ { no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" }
452
+ ]
453
+ );
454
+ const AgentSessionEvent_AgentStateChanged = /* @__PURE__ */ proto3.makeMessageType(
455
+ "livekit.agent.AgentSessionEvent.AgentStateChanged",
456
+ () => [
457
+ { no: 1, name: "old_state", kind: "enum", T: proto3.getEnumType(AgentState) },
458
+ { no: 2, name: "new_state", kind: "enum", T: proto3.getEnumType(AgentState) }
459
+ ],
460
+ { localName: "AgentSessionEvent_AgentStateChanged" }
461
+ );
462
+ const AgentSessionEvent_UserStateChanged = /* @__PURE__ */ proto3.makeMessageType(
463
+ "livekit.agent.AgentSessionEvent.UserStateChanged",
464
+ () => [
465
+ { no: 1, name: "old_state", kind: "enum", T: proto3.getEnumType(UserState) },
466
+ { no: 2, name: "new_state", kind: "enum", T: proto3.getEnumType(UserState) }
467
+ ],
468
+ { localName: "AgentSessionEvent_UserStateChanged" }
469
+ );
470
+ const AgentSessionEvent_ConversationItemAdded = /* @__PURE__ */ proto3.makeMessageType(
471
+ "livekit.agent.AgentSessionEvent.ConversationItemAdded",
472
+ () => [
473
+ { no: 1, name: "item", kind: "message", T: ChatContext_ChatItem }
474
+ ],
475
+ { localName: "AgentSessionEvent_ConversationItemAdded" }
476
+ );
477
+ const AgentSessionEvent_UserInputTranscribed = /* @__PURE__ */ proto3.makeMessageType(
478
+ "livekit.agent.AgentSessionEvent.UserInputTranscribed",
479
+ () => [
480
+ {
481
+ no: 1,
482
+ name: "transcript",
483
+ kind: "scalar",
484
+ T: 9
485
+ /* ScalarType.STRING */
486
+ },
487
+ {
488
+ no: 2,
489
+ name: "is_final",
490
+ kind: "scalar",
491
+ T: 8
492
+ /* ScalarType.BOOL */
493
+ },
494
+ { no: 3, name: "language", kind: "scalar", T: 9, opt: true }
495
+ ],
496
+ { localName: "AgentSessionEvent_UserInputTranscribed" }
497
+ );
498
+ const AgentSessionEvent_FunctionToolsExecuted = /* @__PURE__ */ proto3.makeMessageType(
499
+ "livekit.agent.AgentSessionEvent.FunctionToolsExecuted",
500
+ () => [
501
+ { no: 1, name: "function_calls", kind: "message", T: FunctionCall, repeated: true },
502
+ { no: 2, name: "function_call_outputs", kind: "message", T: FunctionCallOutput, repeated: true }
503
+ ],
504
+ { localName: "AgentSessionEvent_FunctionToolsExecuted" }
505
+ );
506
+ const AgentSessionEvent_Error = /* @__PURE__ */ proto3.makeMessageType(
507
+ "livekit.agent.AgentSessionEvent.Error",
508
+ () => [
509
+ {
510
+ no: 1,
511
+ name: "message",
512
+ kind: "scalar",
513
+ T: 9
514
+ /* ScalarType.STRING */
515
+ }
516
+ ],
517
+ { localName: "AgentSessionEvent_Error" }
518
+ );
519
+ const AgentSessionEvent_OverlappingSpeech = /* @__PURE__ */ proto3.makeMessageType(
520
+ "livekit.agent.AgentSessionEvent.OverlappingSpeech",
521
+ () => [
522
+ {
523
+ no: 1,
524
+ name: "is_interruption",
525
+ kind: "scalar",
526
+ T: 8
527
+ /* ScalarType.BOOL */
528
+ },
529
+ { no: 2, name: "overlap_started_at", kind: "message", T: Timestamp, opt: true },
530
+ {
531
+ no: 3,
532
+ name: "detection_delay",
533
+ kind: "scalar",
534
+ T: 1
535
+ /* ScalarType.DOUBLE */
536
+ },
537
+ { no: 4, name: "detected_at", kind: "message", T: Timestamp }
538
+ ],
539
+ { localName: "AgentSessionEvent_OverlappingSpeech" }
540
+ );
541
+ const AgentSessionEvent_SessionUsageUpdated = /* @__PURE__ */ proto3.makeMessageType(
542
+ "livekit.agent.AgentSessionEvent.SessionUsageUpdated",
543
+ () => [
544
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage }
545
+ ],
546
+ { localName: "AgentSessionEvent_SessionUsageUpdated" }
547
+ );
548
+ const SessionRequest = /* @__PURE__ */ proto3.makeMessageType(
549
+ "livekit.agent.SessionRequest",
550
+ () => [
551
+ {
552
+ no: 1,
553
+ name: "request_id",
554
+ kind: "scalar",
555
+ T: 9
556
+ /* ScalarType.STRING */
557
+ },
558
+ { no: 2, name: "ping", kind: "message", T: SessionRequest_Ping, oneof: "request" },
559
+ { no: 4, name: "get_chat_history", kind: "message", T: SessionRequest_GetChatHistory, oneof: "request" },
560
+ { no: 5, name: "run_input", kind: "message", T: SessionRequest_RunInput, oneof: "request" },
561
+ { no: 6, name: "get_agent_info", kind: "message", T: SessionRequest_GetAgentInfo, oneof: "request" },
562
+ { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
563
+ { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
564
+ { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" }
565
+ ]
566
+ );
567
+ const SessionRequest_Ping = /* @__PURE__ */ proto3.makeMessageType(
568
+ "livekit.agent.SessionRequest.Ping",
569
+ [],
570
+ { localName: "SessionRequest_Ping" }
571
+ );
572
+ const SessionRequest_GetChatHistory = /* @__PURE__ */ proto3.makeMessageType(
573
+ "livekit.agent.SessionRequest.GetChatHistory",
574
+ [],
575
+ { localName: "SessionRequest_GetChatHistory" }
576
+ );
577
+ const SessionRequest_RunInput = /* @__PURE__ */ proto3.makeMessageType(
578
+ "livekit.agent.SessionRequest.RunInput",
579
+ () => [
580
+ {
581
+ no: 1,
582
+ name: "text",
583
+ kind: "scalar",
584
+ T: 9
585
+ /* ScalarType.STRING */
586
+ }
587
+ ],
588
+ { localName: "SessionRequest_RunInput" }
589
+ );
590
+ const SessionRequest_GetAgentInfo = /* @__PURE__ */ proto3.makeMessageType(
591
+ "livekit.agent.SessionRequest.GetAgentInfo",
592
+ [],
593
+ { localName: "SessionRequest_GetAgentInfo" }
594
+ );
595
+ const SessionRequest_GetSessionState = /* @__PURE__ */ proto3.makeMessageType(
596
+ "livekit.agent.SessionRequest.GetSessionState",
597
+ [],
598
+ { localName: "SessionRequest_GetSessionState" }
599
+ );
600
+ const SessionRequest_GetRTCStats = /* @__PURE__ */ proto3.makeMessageType(
601
+ "livekit.agent.SessionRequest.GetRTCStats",
602
+ [],
603
+ { localName: "SessionRequest_GetRTCStats" }
604
+ );
605
+ const SessionRequest_GetSessionUsage = /* @__PURE__ */ proto3.makeMessageType(
606
+ "livekit.agent.SessionRequest.GetSessionUsage",
607
+ [],
608
+ { localName: "SessionRequest_GetSessionUsage" }
609
+ );
610
+ const SessionResponse = /* @__PURE__ */ proto3.makeMessageType(
611
+ "livekit.agent.SessionResponse",
612
+ () => [
613
+ {
614
+ no: 1,
615
+ name: "request_id",
616
+ kind: "scalar",
617
+ T: 9
618
+ /* ScalarType.STRING */
619
+ },
620
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true },
621
+ { no: 3, name: "pong", kind: "message", T: SessionResponse_Pong, oneof: "response" },
622
+ { no: 5, name: "get_chat_history", kind: "message", T: SessionResponse_GetChatHistoryResponse, oneof: "response" },
623
+ { no: 6, name: "run_input", kind: "message", T: SessionResponse_RunInputResponse, oneof: "response" },
624
+ { no: 7, name: "get_agent_info", kind: "message", T: SessionResponse_GetAgentInfoResponse, oneof: "response" },
625
+ { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
626
+ { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
627
+ { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" }
628
+ ]
629
+ );
630
+ const SessionResponse_Pong = /* @__PURE__ */ proto3.makeMessageType(
631
+ "livekit.agent.SessionResponse.Pong",
632
+ [],
633
+ { localName: "SessionResponse_Pong" }
634
+ );
635
+ const SessionResponse_GetChatHistoryResponse = /* @__PURE__ */ proto3.makeMessageType(
636
+ "livekit.agent.SessionResponse.GetChatHistoryResponse",
637
+ () => [
638
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true }
639
+ ],
640
+ { localName: "SessionResponse_GetChatHistoryResponse" }
641
+ );
642
+ const SessionResponse_GetAgentInfoResponse = /* @__PURE__ */ proto3.makeMessageType(
643
+ "livekit.agent.SessionResponse.GetAgentInfoResponse",
644
+ () => [
645
+ {
646
+ no: 1,
647
+ name: "id",
648
+ kind: "scalar",
649
+ T: 9
650
+ /* ScalarType.STRING */
651
+ },
652
+ { no: 2, name: "instructions", kind: "scalar", T: 9, opt: true },
653
+ { no: 3, name: "tools", kind: "scalar", T: 9, repeated: true },
654
+ { no: 4, name: "chat_ctx", kind: "message", T: ChatContext_ChatItem, repeated: true }
655
+ ],
656
+ { localName: "SessionResponse_GetAgentInfoResponse" }
657
+ );
658
+ const SessionResponse_RunInputResponse = /* @__PURE__ */ proto3.makeMessageType(
659
+ "livekit.agent.SessionResponse.RunInputResponse",
660
+ () => [
661
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true }
662
+ ],
663
+ { localName: "SessionResponse_RunInputResponse" }
664
+ );
665
+ const SessionResponse_GetSessionStateResponse = /* @__PURE__ */ proto3.makeMessageType(
666
+ "livekit.agent.SessionResponse.GetSessionStateResponse",
667
+ () => [
668
+ { no: 1, name: "agent_state", kind: "enum", T: proto3.getEnumType(AgentState) },
669
+ { no: 2, name: "user_state", kind: "enum", T: proto3.getEnumType(UserState) },
670
+ {
671
+ no: 3,
672
+ name: "agent_id",
673
+ kind: "scalar",
674
+ T: 9
675
+ /* ScalarType.STRING */
676
+ },
677
+ { no: 4, name: "options", kind: "map", K: 9, V: {
678
+ kind: "scalar",
679
+ T: 9
680
+ /* ScalarType.STRING */
681
+ } },
682
+ { no: 5, name: "created_at", kind: "message", T: Timestamp }
683
+ ],
684
+ { localName: "SessionResponse_GetSessionStateResponse" }
685
+ );
686
+ const SessionResponse_GetRTCStatsResponse = /* @__PURE__ */ proto3.makeMessageType(
687
+ "livekit.agent.SessionResponse.GetRTCStatsResponse",
688
+ () => [
689
+ { no: 1, name: "publisher_stats", kind: "message", T: Struct, repeated: true },
690
+ { no: 2, name: "subscriber_stats", kind: "message", T: Struct, repeated: true }
691
+ ],
692
+ { localName: "SessionResponse_GetRTCStatsResponse" }
693
+ );
694
+ const SessionResponse_GetSessionUsageResponse = /* @__PURE__ */ proto3.makeMessageType(
695
+ "livekit.agent.SessionResponse.GetSessionUsageResponse",
696
+ () => [
697
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage },
698
+ { no: 2, name: "created_at", kind: "message", T: Timestamp }
699
+ ],
700
+ { localName: "SessionResponse_GetSessionUsageResponse" }
701
+ );
702
+ const AgentSessionMessage = /* @__PURE__ */ proto3.makeMessageType(
703
+ "livekit.agent.AgentSessionMessage",
704
+ () => [
705
+ { no: 1, name: "audio_input", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
706
+ { no: 2, name: "audio_output", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
707
+ { no: 3, name: "event", kind: "message", T: AgentSessionEvent, oneof: "message" },
708
+ { no: 4, name: "request", kind: "message", T: SessionRequest, oneof: "message" },
709
+ { no: 5, name: "response", kind: "message", T: SessionResponse, oneof: "message" },
710
+ { no: 6, name: "audio_playback_flush", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush, oneof: "message" },
711
+ { no: 7, name: "audio_playback_clear", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackClear, oneof: "message" },
712
+ { no: 8, name: "audio_playback_finished", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished, oneof: "message" }
713
+ ]
714
+ );
715
+ const AgentSessionMessage_ConsoleIO = /* @__PURE__ */ proto3.makeMessageType(
716
+ "livekit.agent.AgentSessionMessage.ConsoleIO",
717
+ [],
718
+ { localName: "AgentSessionMessage_ConsoleIO" }
719
+ );
720
+ const AgentSessionMessage_ConsoleIO_AudioFrame = /* @__PURE__ */ proto3.makeMessageType(
721
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame",
722
+ () => [
723
+ {
724
+ no: 1,
725
+ name: "data",
726
+ kind: "scalar",
727
+ T: 12
728
+ /* ScalarType.BYTES */
729
+ },
730
+ {
731
+ no: 2,
732
+ name: "sample_rate",
733
+ kind: "scalar",
734
+ T: 13
735
+ /* ScalarType.UINT32 */
736
+ },
737
+ {
738
+ no: 3,
739
+ name: "num_channels",
740
+ kind: "scalar",
741
+ T: 13
742
+ /* ScalarType.UINT32 */
743
+ },
744
+ {
745
+ no: 4,
746
+ name: "samples_per_channel",
747
+ kind: "scalar",
748
+ T: 13
749
+ /* ScalarType.UINT32 */
750
+ }
751
+ ],
752
+ { localName: "AgentSessionMessage_ConsoleIO_AudioFrame" }
753
+ );
754
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackFlush = /* @__PURE__ */ proto3.makeMessageType(
755
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush",
756
+ [],
757
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFlush" }
758
+ );
759
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackClear = /* @__PURE__ */ proto3.makeMessageType(
760
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear",
761
+ [],
762
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackClear" }
763
+ );
764
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackFinished = /* @__PURE__ */ proto3.makeMessageType(
765
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished",
766
+ [],
767
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFinished" }
768
+ );
174
769
 
175
770
  const livekit_agent_session_pb = {
176
771
  __proto__: null,
772
+ AgentConfigUpdate: AgentConfigUpdate,
177
773
  AgentHandoff: AgentHandoff,
774
+ AgentSessionEvent: AgentSessionEvent,
775
+ AgentSessionEvent_AgentStateChanged: AgentSessionEvent_AgentStateChanged,
776
+ AgentSessionEvent_ConversationItemAdded: AgentSessionEvent_ConversationItemAdded,
777
+ AgentSessionEvent_Error: AgentSessionEvent_Error,
778
+ AgentSessionEvent_FunctionToolsExecuted: AgentSessionEvent_FunctionToolsExecuted,
779
+ AgentSessionEvent_OverlappingSpeech: AgentSessionEvent_OverlappingSpeech,
780
+ AgentSessionEvent_SessionUsageUpdated: AgentSessionEvent_SessionUsageUpdated,
781
+ AgentSessionEvent_UserInputTranscribed: AgentSessionEvent_UserInputTranscribed,
782
+ AgentSessionEvent_UserStateChanged: AgentSessionEvent_UserStateChanged,
783
+ AgentSessionMessage: AgentSessionMessage,
784
+ AgentSessionMessage_ConsoleIO: AgentSessionMessage_ConsoleIO,
785
+ AgentSessionMessage_ConsoleIO_AudioFrame: AgentSessionMessage_ConsoleIO_AudioFrame,
786
+ AgentSessionMessage_ConsoleIO_AudioPlaybackClear: AgentSessionMessage_ConsoleIO_AudioPlaybackClear,
787
+ AgentSessionMessage_ConsoleIO_AudioPlaybackFinished: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished,
788
+ AgentSessionMessage_ConsoleIO_AudioPlaybackFlush: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush,
789
+ AgentSessionUsage: AgentSessionUsage,
790
+ AgentState: AgentState,
178
791
  ChatContext: ChatContext,
179
792
  ChatContext_ChatItem: ChatContext_ChatItem,
180
793
  ChatMessage: ChatMessage$1,
@@ -182,7 +795,29 @@ const livekit_agent_session_pb = {
182
795
  ChatRole: ChatRole,
183
796
  FunctionCall: FunctionCall,
184
797
  FunctionCallOutput: FunctionCallOutput,
185
- MetricsReport: MetricsReport
798
+ InterruptionModelUsage: InterruptionModelUsage,
799
+ LLMModelUsage: LLMModelUsage,
800
+ MetricsReport: MetricsReport,
801
+ ModelUsage: ModelUsage,
802
+ STTModelUsage: STTModelUsage,
803
+ SessionRequest: SessionRequest,
804
+ SessionRequest_GetAgentInfo: SessionRequest_GetAgentInfo,
805
+ SessionRequest_GetChatHistory: SessionRequest_GetChatHistory,
806
+ SessionRequest_GetRTCStats: SessionRequest_GetRTCStats,
807
+ SessionRequest_GetSessionState: SessionRequest_GetSessionState,
808
+ SessionRequest_GetSessionUsage: SessionRequest_GetSessionUsage,
809
+ SessionRequest_Ping: SessionRequest_Ping,
810
+ SessionRequest_RunInput: SessionRequest_RunInput,
811
+ SessionResponse: SessionResponse,
812
+ SessionResponse_GetAgentInfoResponse: SessionResponse_GetAgentInfoResponse,
813
+ SessionResponse_GetChatHistoryResponse: SessionResponse_GetChatHistoryResponse,
814
+ SessionResponse_GetRTCStatsResponse: SessionResponse_GetRTCStatsResponse,
815
+ SessionResponse_GetSessionStateResponse: SessionResponse_GetSessionStateResponse,
816
+ SessionResponse_GetSessionUsageResponse: SessionResponse_GetSessionUsageResponse,
817
+ SessionResponse_Pong: SessionResponse_Pong,
818
+ SessionResponse_RunInputResponse: SessionResponse_RunInputResponse,
819
+ TTSModelUsage: TTSModelUsage,
820
+ UserState: UserState
186
821
  };
187
822
 
188
823
  const MetricLabel = /* @__PURE__ */ proto3.makeEnum(
@@ -6980,7 +7615,9 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ proto3.makeMessageType(
6980
7615
  T: 8
6981
7616
  /* ScalarType.BOOL */
6982
7617
  },
6983
- { no: 16, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) }
7618
+ { no: 16, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
7619
+ { no: 17, name: "created_at", kind: "message", T: Timestamp },
7620
+ { no: 18, name: "updated_at", kind: "message", T: Timestamp }
6984
7621
  ]
6985
7622
  );
6986
7623
  const SIPInboundTrunkUpdate = /* @__PURE__ */ proto3.makeMessageType(
@@ -7086,7 +7723,16 @@ const SIPOutboundTrunkInfo = /* @__PURE__ */ proto3.makeMessageType(
7086
7723
  /* ScalarType.STRING */
7087
7724
  } },
7088
7725
  { no: 12, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
7089
- { no: 13, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) }
7726
+ { no: 13, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
7727
+ {
7728
+ no: 15,
7729
+ name: "from_host",
7730
+ kind: "scalar",
7731
+ T: 9
7732
+ /* ScalarType.STRING */
7733
+ },
7734
+ { no: 16, name: "created_at", kind: "message", T: Timestamp },
7735
+ { no: 17, name: "updated_at", kind: "message", T: Timestamp }
7090
7736
  ]
7091
7737
  );
7092
7738
  const SIPOutboundTrunkUpdate = /* @__PURE__ */ proto3.makeMessageType(
@@ -7100,7 +7746,8 @@ const SIPOutboundTrunkUpdate = /* @__PURE__ */ proto3.makeMessageType(
7100
7746
  { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
7101
7747
  { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
7102
7748
  { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true },
7103
- { no: 8, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption), opt: true }
7749
+ { no: 8, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption), opt: true },
7750
+ { no: 10, name: "from_host", kind: "scalar", T: 9, opt: true }
7104
7751
  ]
7105
7752
  );
7106
7753
  const GetSIPInboundTrunkRequest = /* @__PURE__ */ proto3.makeMessageType(
@@ -7382,7 +8029,9 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ proto3.makeMessageType(
7382
8029
  T: 8
7383
8030
  /* ScalarType.BOOL */
7384
8031
  },
7385
- { no: 12, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) }
8032
+ { no: 12, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
8033
+ { no: 14, name: "created_at", kind: "message", T: Timestamp },
8034
+ { no: 15, name: "updated_at", kind: "message", T: Timestamp }
7386
8035
  ]
7387
8036
  );
7388
8037
  const SIPDispatchRuleUpdate = /* @__PURE__ */ proto3.makeMessageType(
@@ -7467,7 +8116,14 @@ const SIPOutboundConfig = /* @__PURE__ */ proto3.makeMessageType(
7467
8116
  kind: "scalar",
7468
8117
  T: 9
7469
8118
  /* ScalarType.STRING */
7470
- } }
8119
+ } },
8120
+ {
8121
+ no: 8,
8122
+ name: "from_host",
8123
+ kind: "scalar",
8124
+ T: 9
8125
+ /* ScalarType.STRING */
8126
+ }
7471
8127
  ]
7472
8128
  );
7473
8129
  const CreateSIPParticipantRequest = /* @__PURE__ */ proto3.makeMessageType(
@@ -7984,7 +8640,7 @@ const WebhookEvent = /* @__PURE__ */ proto3.makeMessageType(
7984
8640
  ]
7985
8641
  );
7986
8642
 
7987
- const version = "1.45.0";
8643
+ const version = "1.45.1";
7988
8644
 
7989
8645
  export { AcceptWhatsAppCallRequest, AcceptWhatsAppCallResponse, ActiveSpeakerUpdate, AddTrackRequest, AgentDispatch, AgentDispatchState, livekit_agent_session_pb as AgentSession, AliOSSUpload, AudioCodec, AudioMixing, AudioTrackFeature, AutoParticipantEgress, AutoTrackEgress, AvailabilityRequest, AvailabilityResponse, AzureBlobUpload, BackupCodecPolicy, CandidateProtocol, ChatMessage, ClientConfigSetting, ClientConfiguration, ClientInfo, ClientInfo_SDK, Codec, ConnectTwilioCallRequest, ConnectTwilioCallRequest_TwilioCallDirection, ConnectTwilioCallResponse, ConnectWhatsAppCallRequest, ConnectWhatsAppCallResponse, ConnectionQuality, ConnectionQualityInfo, ConnectionQualityUpdate, ConnectionSettings, ConnectorType, CreateAgentDispatchRequest, CreateIngressRequest, CreateRoomRequest, CreateSIPDispatchRuleRequest, CreateSIPInboundTrunkRequest, CreateSIPOutboundTrunkRequest, CreateSIPParticipantRequest, CreateSIPTrunkRequest, DataChannelInfo, DataChannelReceiveState, DataPacket, DataPacket_Kind, DataStream, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DataTrackExtensionID, DataTrackExtensionParticipantSid, DataTrackInfo, DataTrackSubscriberHandles, DataTrackSubscriberHandles_PublishedDataTrack, DataTrackSubscriptionOptions, DeleteAgentDispatchRequest, DeleteIngressRequest, DeleteRoomRequest, DeleteRoomResponse, DeleteSIPDispatchRuleRequest, DeleteSIPTrunkRequest, Destination, DialWhatsAppCallRequest, DialWhatsAppCallResponse, DirectFileOutput, DisabledCodecs, DisconnectReason, DisconnectWhatsAppCallRequest, DisconnectWhatsAppCallRequest_DisconnectReason, DisconnectWhatsAppCallResponse, EgressInfo, EgressSourceType, EgressStatus, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, EncryptedPacket, EncryptedPacketPayload, Encryption, Encryption_Type, EventMetric, FileInfo, FilterParams, ForwardParticipantRequest, ForwardParticipantResponse, GCPUpload, GetSIPInboundTrunkRequest, GetSIPInboundTrunkResponse, GetSIPOutboundTrunkRequest, GetSIPOutboundTrunkResponse, ICEServer, ImageCodec, ImageFileSuffix, ImageOutput, ImagesInfo, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressState_Status, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, InputAudioState, InputVideoState, Job, JobAssignment, JobState, JobStatus, JobTermination, JobType, JoinRequest, JoinResponse, LeaveRequest, LeaveRequest_Action, ListAgentDispatchRequest, ListAgentDispatchResponse, ListEgressRequest, ListEgressResponse, ListIngressRequest, ListIngressResponse, ListParticipantsRequest, ListParticipantsResponse, ListRoomsRequest, ListRoomsResponse, ListSIPDispatchRuleRequest, ListSIPDispatchRuleResponse, ListSIPInboundTrunkRequest, ListSIPInboundTrunkResponse, ListSIPOutboundTrunkRequest, ListSIPOutboundTrunkResponse, ListSIPTrunkRequest, ListSIPTrunkResponse, ListUpdate, MediaSectionsRequirement, MetricLabel, MetricSample, MetricsBatch, MetricsRecordingHeader, MigrateJobRequest, MoveParticipantRequest, MoveParticipantResponse, MuteRoomTrackRequest, MuteRoomTrackResponse, MuteTrackRequest, PacketTrailerFeature, Pagination, ParticipantEgressRequest, ParticipantInfo, ParticipantInfo_Kind, ParticipantInfo_KindDetail, ParticipantInfo_State, ParticipantPermission, ParticipantTracks, ParticipantUpdate, PerformRpcRequest, PerformRpcResponse, Ping, PlayoutDelay, Pong, ProviderInfo, ProviderType, ProxyConfig, PublishDataTrackRequest, PublishDataTrackResponse, RTCPSenderReportState, RTPDrift, RTPForwarderState, RTPMungerState, RTPStats, ReconnectReason, ReconnectResponse, RegionInfo, RegionSettings, RegisterWorkerRequest, RegisterWorkerResponse, RemoveParticipantResponse, RequestResponse, RequestResponse_Reason, Room, RoomAgent, RoomAgentDispatch, RoomCompositeEgressRequest, RoomConfiguration, RoomEgress, RoomMovedResponse, RoomParticipantIdentity, RoomUpdate, RpcAck, RpcError, RpcRequest, RpcResponse, S3Upload, SIPCallDirection, SIPCallInfo, SIPCallStatus, SIPDispatchRule, SIPDispatchRuleCallee, SIPDispatchRuleDirect, SIPDispatchRuleIndividual, SIPDispatchRuleInfo, SIPDispatchRuleUpdate, SIPFeature, SIPHeaderOptions, SIPInboundTrunkInfo, SIPInboundTrunkUpdate, SIPMediaEncryption, SIPOutboundConfig, SIPOutboundTrunkInfo, SIPOutboundTrunkUpdate, SIPParticipantInfo, SIPStatus, SIPStatusCode, SIPTransferInfo, SIPTransferStatus, SIPTransport, SIPTrunkInfo, SIPTrunkInfo_TrunkKind, SIPUri, SegmentedFileOutput, SegmentedFileProtocol, SegmentedFileSuffix, SegmentsInfo, SendDataRequest, SendDataResponse, ServerInfo, ServerInfo_Edition, ServerMessage, SessionDescription, SignalRequest, SignalResponse, SignalTarget, SimulateJobRequest, SimulateScenario, SimulcastCodec, SimulcastCodecInfo, SipDTMF, SpeakerInfo, SpeakersChanged, StopEgressRequest, StreamInfo, StreamInfoList, StreamInfo_Status, StreamOutput, StreamProtocol, StreamState, StreamStateInfo, StreamStateUpdate, SubscribedAudioCodec, SubscribedAudioCodecUpdate, SubscribedCodec, SubscribedQuality, SubscribedQualityUpdate, SubscriptionError, SubscriptionPermission, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TimeSeriesMetric, TimedVersion, TokenPagination, TokenSourceRequest, TokenSourceResponse, TrackCompositeEgressRequest, TrackEgressRequest, TrackInfo, TrackPermission, TrackPublishedResponse, TrackSource, TrackSubscribed, TrackType, TrackUnpublishedResponse, Transcription, TranscriptionSegment, TransferSIPParticipantRequest, TrickleRequest, UnpublishDataTrackRequest, UnpublishDataTrackResponse, UpdateDataSubscription, UpdateDataSubscription_Update, UpdateIngressRequest, UpdateJobStatus, UpdateLayoutRequest, UpdateLocalAudioTrack, UpdateLocalVideoTrack, UpdateParticipantMetadata, UpdateParticipantRequest, UpdateRoomMetadataRequest, UpdateSIPDispatchRuleRequest, UpdateSIPInboundTrunkRequest, UpdateSIPOutboundTrunkRequest, UpdateStreamRequest, UpdateSubscription, UpdateSubscriptionsRequest, UpdateSubscriptionsResponse, UpdateTrackSettings, UpdateVideoLayers, UpdateWorkerStatus, UserPacket, VP8MungerState, VideoCodec, VideoConfiguration, VideoLayer, VideoLayer_Mode, VideoQuality, WebEgressRequest, WebhookConfig, WebhookEvent, WhatsAppCall, WhatsAppCallDirection, WorkerMessage, WorkerPing, WorkerPong, WorkerStatus, WrappedJoinRequest, WrappedJoinRequest_Compression, version };
7990
8646
  //# sourceMappingURL=index.mjs.map