@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.cjs CHANGED
@@ -11,6 +11,24 @@ const ChatRole = /* @__PURE__ */ protobuf.proto3.makeEnum(
11
11
  { no: 3, name: "ASSISTANT" }
12
12
  ]
13
13
  );
14
+ const AgentState = /* @__PURE__ */ protobuf.proto3.makeEnum(
15
+ "livekit.agent.AgentState",
16
+ [
17
+ { no: 0, name: "AS_INITIALIZING" },
18
+ { no: 1, name: "AS_IDLE" },
19
+ { no: 2, name: "AS_LISTENING" },
20
+ { no: 3, name: "AS_THINKING" },
21
+ { no: 4, name: "AS_SPEAKING" }
22
+ ]
23
+ );
24
+ const UserState = /* @__PURE__ */ protobuf.proto3.makeEnum(
25
+ "livekit.agent.UserState",
26
+ [
27
+ { no: 0, name: "US_SPEAKING" },
28
+ { no: 1, name: "US_LISTENING" },
29
+ { no: 2, name: "US_AWAY" }
30
+ ]
31
+ );
14
32
  const MetricsReport = /* @__PURE__ */ protobuf.proto3.makeMessageType(
15
33
  "livekit.agent.MetricsReport",
16
34
  () => [
@@ -156,6 +174,22 @@ const AgentHandoff = /* @__PURE__ */ protobuf.proto3.makeMessageType(
156
174
  { no: 4, name: "created_at", kind: "message", T: protobuf.Timestamp }
157
175
  ]
158
176
  );
177
+ const AgentConfigUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
178
+ "livekit.agent.AgentConfigUpdate",
179
+ () => [
180
+ {
181
+ no: 1,
182
+ name: "id",
183
+ kind: "scalar",
184
+ T: 9
185
+ /* ScalarType.STRING */
186
+ },
187
+ { no: 2, name: "instructions", kind: "scalar", T: 9, opt: true },
188
+ { no: 3, name: "tools_added", kind: "scalar", T: 9, repeated: true },
189
+ { no: 4, name: "tools_removed", kind: "scalar", T: 9, repeated: true },
190
+ { no: 5, name: "created_at", kind: "message", T: protobuf.Timestamp }
191
+ ]
192
+ );
159
193
  const ChatContext = /* @__PURE__ */ protobuf.proto3.makeMessageType(
160
194
  "livekit.agent.ChatContext",
161
195
  () => [
@@ -168,14 +202,593 @@ const ChatContext_ChatItem = /* @__PURE__ */ protobuf.proto3.makeMessageType(
168
202
  { no: 1, name: "message", kind: "message", T: ChatMessage$1, oneof: "item" },
169
203
  { no: 2, name: "function_call", kind: "message", T: FunctionCall, oneof: "item" },
170
204
  { no: 3, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "item" },
171
- { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" }
205
+ { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" },
206
+ { no: 5, name: "agent_config_update", kind: "message", T: AgentConfigUpdate, oneof: "item" }
172
207
  ],
173
208
  { localName: "ChatContext_ChatItem" }
174
209
  );
210
+ const LLMModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
211
+ "livekit.agent.LLMModelUsage",
212
+ () => [
213
+ {
214
+ no: 1,
215
+ name: "provider",
216
+ kind: "scalar",
217
+ T: 9
218
+ /* ScalarType.STRING */
219
+ },
220
+ {
221
+ no: 2,
222
+ name: "model",
223
+ kind: "scalar",
224
+ T: 9
225
+ /* ScalarType.STRING */
226
+ },
227
+ {
228
+ no: 3,
229
+ name: "input_tokens",
230
+ kind: "scalar",
231
+ T: 5
232
+ /* ScalarType.INT32 */
233
+ },
234
+ {
235
+ no: 4,
236
+ name: "input_cached_tokens",
237
+ kind: "scalar",
238
+ T: 5
239
+ /* ScalarType.INT32 */
240
+ },
241
+ {
242
+ no: 5,
243
+ name: "input_audio_tokens",
244
+ kind: "scalar",
245
+ T: 5
246
+ /* ScalarType.INT32 */
247
+ },
248
+ {
249
+ no: 6,
250
+ name: "input_cached_audio_tokens",
251
+ kind: "scalar",
252
+ T: 5
253
+ /* ScalarType.INT32 */
254
+ },
255
+ {
256
+ no: 7,
257
+ name: "input_text_tokens",
258
+ kind: "scalar",
259
+ T: 5
260
+ /* ScalarType.INT32 */
261
+ },
262
+ {
263
+ no: 8,
264
+ name: "input_cached_text_tokens",
265
+ kind: "scalar",
266
+ T: 5
267
+ /* ScalarType.INT32 */
268
+ },
269
+ {
270
+ no: 9,
271
+ name: "input_image_tokens",
272
+ kind: "scalar",
273
+ T: 5
274
+ /* ScalarType.INT32 */
275
+ },
276
+ {
277
+ no: 10,
278
+ name: "input_cached_image_tokens",
279
+ kind: "scalar",
280
+ T: 5
281
+ /* ScalarType.INT32 */
282
+ },
283
+ {
284
+ no: 11,
285
+ name: "output_tokens",
286
+ kind: "scalar",
287
+ T: 5
288
+ /* ScalarType.INT32 */
289
+ },
290
+ {
291
+ no: 12,
292
+ name: "output_audio_tokens",
293
+ kind: "scalar",
294
+ T: 5
295
+ /* ScalarType.INT32 */
296
+ },
297
+ {
298
+ no: 13,
299
+ name: "output_text_tokens",
300
+ kind: "scalar",
301
+ T: 5
302
+ /* ScalarType.INT32 */
303
+ },
304
+ {
305
+ no: 14,
306
+ name: "session_duration",
307
+ kind: "scalar",
308
+ T: 1
309
+ /* ScalarType.DOUBLE */
310
+ }
311
+ ]
312
+ );
313
+ const TTSModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
314
+ "livekit.agent.TTSModelUsage",
315
+ () => [
316
+ {
317
+ no: 1,
318
+ name: "provider",
319
+ kind: "scalar",
320
+ T: 9
321
+ /* ScalarType.STRING */
322
+ },
323
+ {
324
+ no: 2,
325
+ name: "model",
326
+ kind: "scalar",
327
+ T: 9
328
+ /* ScalarType.STRING */
329
+ },
330
+ {
331
+ no: 3,
332
+ name: "input_tokens",
333
+ kind: "scalar",
334
+ T: 5
335
+ /* ScalarType.INT32 */
336
+ },
337
+ {
338
+ no: 4,
339
+ name: "output_tokens",
340
+ kind: "scalar",
341
+ T: 5
342
+ /* ScalarType.INT32 */
343
+ },
344
+ {
345
+ no: 5,
346
+ name: "characters_count",
347
+ kind: "scalar",
348
+ T: 5
349
+ /* ScalarType.INT32 */
350
+ },
351
+ {
352
+ no: 6,
353
+ name: "audio_duration",
354
+ kind: "scalar",
355
+ T: 1
356
+ /* ScalarType.DOUBLE */
357
+ }
358
+ ]
359
+ );
360
+ const STTModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
361
+ "livekit.agent.STTModelUsage",
362
+ () => [
363
+ {
364
+ no: 1,
365
+ name: "provider",
366
+ kind: "scalar",
367
+ T: 9
368
+ /* ScalarType.STRING */
369
+ },
370
+ {
371
+ no: 2,
372
+ name: "model",
373
+ kind: "scalar",
374
+ T: 9
375
+ /* ScalarType.STRING */
376
+ },
377
+ {
378
+ no: 3,
379
+ name: "input_tokens",
380
+ kind: "scalar",
381
+ T: 5
382
+ /* ScalarType.INT32 */
383
+ },
384
+ {
385
+ no: 4,
386
+ name: "output_tokens",
387
+ kind: "scalar",
388
+ T: 5
389
+ /* ScalarType.INT32 */
390
+ },
391
+ {
392
+ no: 5,
393
+ name: "audio_duration",
394
+ kind: "scalar",
395
+ T: 1
396
+ /* ScalarType.DOUBLE */
397
+ }
398
+ ]
399
+ );
400
+ const InterruptionModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
401
+ "livekit.agent.InterruptionModelUsage",
402
+ () => [
403
+ {
404
+ no: 1,
405
+ name: "provider",
406
+ kind: "scalar",
407
+ T: 9
408
+ /* ScalarType.STRING */
409
+ },
410
+ {
411
+ no: 2,
412
+ name: "model",
413
+ kind: "scalar",
414
+ T: 9
415
+ /* ScalarType.STRING */
416
+ },
417
+ {
418
+ no: 3,
419
+ name: "total_requests",
420
+ kind: "scalar",
421
+ T: 5
422
+ /* ScalarType.INT32 */
423
+ }
424
+ ]
425
+ );
426
+ const ModelUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
427
+ "livekit.agent.ModelUsage",
428
+ () => [
429
+ { no: 1, name: "llm", kind: "message", T: LLMModelUsage, oneof: "usage" },
430
+ { no: 2, name: "tts", kind: "message", T: TTSModelUsage, oneof: "usage" },
431
+ { no: 3, name: "stt", kind: "message", T: STTModelUsage, oneof: "usage" },
432
+ { no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" }
433
+ ]
434
+ );
435
+ const AgentSessionUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
436
+ "livekit.agent.AgentSessionUsage",
437
+ () => [
438
+ { no: 1, name: "model_usage", kind: "message", T: ModelUsage, repeated: true }
439
+ ]
440
+ );
441
+ const AgentSessionEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
442
+ "livekit.agent.AgentSessionEvent",
443
+ () => [
444
+ { no: 1, name: "created_at", kind: "message", T: protobuf.Timestamp },
445
+ { no: 10, name: "agent_state_changed", kind: "message", T: AgentSessionEvent_AgentStateChanged, oneof: "event" },
446
+ { no: 11, name: "user_state_changed", kind: "message", T: AgentSessionEvent_UserStateChanged, oneof: "event" },
447
+ { no: 12, name: "conversation_item_added", kind: "message", T: AgentSessionEvent_ConversationItemAdded, oneof: "event" },
448
+ { no: 13, name: "user_input_transcribed", kind: "message", T: AgentSessionEvent_UserInputTranscribed, oneof: "event" },
449
+ { no: 14, name: "function_tools_executed", kind: "message", T: AgentSessionEvent_FunctionToolsExecuted, oneof: "event" },
450
+ { no: 15, name: "error", kind: "message", T: AgentSessionEvent_Error, oneof: "event" },
451
+ { no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
452
+ { no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" }
453
+ ]
454
+ );
455
+ const AgentSessionEvent_AgentStateChanged = /* @__PURE__ */ protobuf.proto3.makeMessageType(
456
+ "livekit.agent.AgentSessionEvent.AgentStateChanged",
457
+ () => [
458
+ { no: 1, name: "old_state", kind: "enum", T: protobuf.proto3.getEnumType(AgentState) },
459
+ { no: 2, name: "new_state", kind: "enum", T: protobuf.proto3.getEnumType(AgentState) }
460
+ ],
461
+ { localName: "AgentSessionEvent_AgentStateChanged" }
462
+ );
463
+ const AgentSessionEvent_UserStateChanged = /* @__PURE__ */ protobuf.proto3.makeMessageType(
464
+ "livekit.agent.AgentSessionEvent.UserStateChanged",
465
+ () => [
466
+ { no: 1, name: "old_state", kind: "enum", T: protobuf.proto3.getEnumType(UserState) },
467
+ { no: 2, name: "new_state", kind: "enum", T: protobuf.proto3.getEnumType(UserState) }
468
+ ],
469
+ { localName: "AgentSessionEvent_UserStateChanged" }
470
+ );
471
+ const AgentSessionEvent_ConversationItemAdded = /* @__PURE__ */ protobuf.proto3.makeMessageType(
472
+ "livekit.agent.AgentSessionEvent.ConversationItemAdded",
473
+ () => [
474
+ { no: 1, name: "item", kind: "message", T: ChatContext_ChatItem }
475
+ ],
476
+ { localName: "AgentSessionEvent_ConversationItemAdded" }
477
+ );
478
+ const AgentSessionEvent_UserInputTranscribed = /* @__PURE__ */ protobuf.proto3.makeMessageType(
479
+ "livekit.agent.AgentSessionEvent.UserInputTranscribed",
480
+ () => [
481
+ {
482
+ no: 1,
483
+ name: "transcript",
484
+ kind: "scalar",
485
+ T: 9
486
+ /* ScalarType.STRING */
487
+ },
488
+ {
489
+ no: 2,
490
+ name: "is_final",
491
+ kind: "scalar",
492
+ T: 8
493
+ /* ScalarType.BOOL */
494
+ },
495
+ { no: 3, name: "language", kind: "scalar", T: 9, opt: true }
496
+ ],
497
+ { localName: "AgentSessionEvent_UserInputTranscribed" }
498
+ );
499
+ const AgentSessionEvent_FunctionToolsExecuted = /* @__PURE__ */ protobuf.proto3.makeMessageType(
500
+ "livekit.agent.AgentSessionEvent.FunctionToolsExecuted",
501
+ () => [
502
+ { no: 1, name: "function_calls", kind: "message", T: FunctionCall, repeated: true },
503
+ { no: 2, name: "function_call_outputs", kind: "message", T: FunctionCallOutput, repeated: true }
504
+ ],
505
+ { localName: "AgentSessionEvent_FunctionToolsExecuted" }
506
+ );
507
+ const AgentSessionEvent_Error = /* @__PURE__ */ protobuf.proto3.makeMessageType(
508
+ "livekit.agent.AgentSessionEvent.Error",
509
+ () => [
510
+ {
511
+ no: 1,
512
+ name: "message",
513
+ kind: "scalar",
514
+ T: 9
515
+ /* ScalarType.STRING */
516
+ }
517
+ ],
518
+ { localName: "AgentSessionEvent_Error" }
519
+ );
520
+ const AgentSessionEvent_OverlappingSpeech = /* @__PURE__ */ protobuf.proto3.makeMessageType(
521
+ "livekit.agent.AgentSessionEvent.OverlappingSpeech",
522
+ () => [
523
+ {
524
+ no: 1,
525
+ name: "is_interruption",
526
+ kind: "scalar",
527
+ T: 8
528
+ /* ScalarType.BOOL */
529
+ },
530
+ { no: 2, name: "overlap_started_at", kind: "message", T: protobuf.Timestamp, opt: true },
531
+ {
532
+ no: 3,
533
+ name: "detection_delay",
534
+ kind: "scalar",
535
+ T: 1
536
+ /* ScalarType.DOUBLE */
537
+ },
538
+ { no: 4, name: "detected_at", kind: "message", T: protobuf.Timestamp }
539
+ ],
540
+ { localName: "AgentSessionEvent_OverlappingSpeech" }
541
+ );
542
+ const AgentSessionEvent_SessionUsageUpdated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
543
+ "livekit.agent.AgentSessionEvent.SessionUsageUpdated",
544
+ () => [
545
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage }
546
+ ],
547
+ { localName: "AgentSessionEvent_SessionUsageUpdated" }
548
+ );
549
+ const SessionRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
550
+ "livekit.agent.SessionRequest",
551
+ () => [
552
+ {
553
+ no: 1,
554
+ name: "request_id",
555
+ kind: "scalar",
556
+ T: 9
557
+ /* ScalarType.STRING */
558
+ },
559
+ { no: 2, name: "ping", kind: "message", T: SessionRequest_Ping, oneof: "request" },
560
+ { no: 4, name: "get_chat_history", kind: "message", T: SessionRequest_GetChatHistory, oneof: "request" },
561
+ { no: 5, name: "run_input", kind: "message", T: SessionRequest_RunInput, oneof: "request" },
562
+ { no: 6, name: "get_agent_info", kind: "message", T: SessionRequest_GetAgentInfo, oneof: "request" },
563
+ { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
564
+ { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
565
+ { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" }
566
+ ]
567
+ );
568
+ const SessionRequest_Ping = /* @__PURE__ */ protobuf.proto3.makeMessageType(
569
+ "livekit.agent.SessionRequest.Ping",
570
+ [],
571
+ { localName: "SessionRequest_Ping" }
572
+ );
573
+ const SessionRequest_GetChatHistory = /* @__PURE__ */ protobuf.proto3.makeMessageType(
574
+ "livekit.agent.SessionRequest.GetChatHistory",
575
+ [],
576
+ { localName: "SessionRequest_GetChatHistory" }
577
+ );
578
+ const SessionRequest_RunInput = /* @__PURE__ */ protobuf.proto3.makeMessageType(
579
+ "livekit.agent.SessionRequest.RunInput",
580
+ () => [
581
+ {
582
+ no: 1,
583
+ name: "text",
584
+ kind: "scalar",
585
+ T: 9
586
+ /* ScalarType.STRING */
587
+ }
588
+ ],
589
+ { localName: "SessionRequest_RunInput" }
590
+ );
591
+ const SessionRequest_GetAgentInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
592
+ "livekit.agent.SessionRequest.GetAgentInfo",
593
+ [],
594
+ { localName: "SessionRequest_GetAgentInfo" }
595
+ );
596
+ const SessionRequest_GetSessionState = /* @__PURE__ */ protobuf.proto3.makeMessageType(
597
+ "livekit.agent.SessionRequest.GetSessionState",
598
+ [],
599
+ { localName: "SessionRequest_GetSessionState" }
600
+ );
601
+ const SessionRequest_GetRTCStats = /* @__PURE__ */ protobuf.proto3.makeMessageType(
602
+ "livekit.agent.SessionRequest.GetRTCStats",
603
+ [],
604
+ { localName: "SessionRequest_GetRTCStats" }
605
+ );
606
+ const SessionRequest_GetSessionUsage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
607
+ "livekit.agent.SessionRequest.GetSessionUsage",
608
+ [],
609
+ { localName: "SessionRequest_GetSessionUsage" }
610
+ );
611
+ const SessionResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
612
+ "livekit.agent.SessionResponse",
613
+ () => [
614
+ {
615
+ no: 1,
616
+ name: "request_id",
617
+ kind: "scalar",
618
+ T: 9
619
+ /* ScalarType.STRING */
620
+ },
621
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true },
622
+ { no: 3, name: "pong", kind: "message", T: SessionResponse_Pong, oneof: "response" },
623
+ { no: 5, name: "get_chat_history", kind: "message", T: SessionResponse_GetChatHistoryResponse, oneof: "response" },
624
+ { no: 6, name: "run_input", kind: "message", T: SessionResponse_RunInputResponse, oneof: "response" },
625
+ { no: 7, name: "get_agent_info", kind: "message", T: SessionResponse_GetAgentInfoResponse, oneof: "response" },
626
+ { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
627
+ { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
628
+ { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" }
629
+ ]
630
+ );
631
+ const SessionResponse_Pong = /* @__PURE__ */ protobuf.proto3.makeMessageType(
632
+ "livekit.agent.SessionResponse.Pong",
633
+ [],
634
+ { localName: "SessionResponse_Pong" }
635
+ );
636
+ const SessionResponse_GetChatHistoryResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
637
+ "livekit.agent.SessionResponse.GetChatHistoryResponse",
638
+ () => [
639
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true }
640
+ ],
641
+ { localName: "SessionResponse_GetChatHistoryResponse" }
642
+ );
643
+ const SessionResponse_GetAgentInfoResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
644
+ "livekit.agent.SessionResponse.GetAgentInfoResponse",
645
+ () => [
646
+ {
647
+ no: 1,
648
+ name: "id",
649
+ kind: "scalar",
650
+ T: 9
651
+ /* ScalarType.STRING */
652
+ },
653
+ { no: 2, name: "instructions", kind: "scalar", T: 9, opt: true },
654
+ { no: 3, name: "tools", kind: "scalar", T: 9, repeated: true },
655
+ { no: 4, name: "chat_ctx", kind: "message", T: ChatContext_ChatItem, repeated: true }
656
+ ],
657
+ { localName: "SessionResponse_GetAgentInfoResponse" }
658
+ );
659
+ const SessionResponse_RunInputResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
660
+ "livekit.agent.SessionResponse.RunInputResponse",
661
+ () => [
662
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true }
663
+ ],
664
+ { localName: "SessionResponse_RunInputResponse" }
665
+ );
666
+ const SessionResponse_GetSessionStateResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
667
+ "livekit.agent.SessionResponse.GetSessionStateResponse",
668
+ () => [
669
+ { no: 1, name: "agent_state", kind: "enum", T: protobuf.proto3.getEnumType(AgentState) },
670
+ { no: 2, name: "user_state", kind: "enum", T: protobuf.proto3.getEnumType(UserState) },
671
+ {
672
+ no: 3,
673
+ name: "agent_id",
674
+ kind: "scalar",
675
+ T: 9
676
+ /* ScalarType.STRING */
677
+ },
678
+ { no: 4, name: "options", kind: "map", K: 9, V: {
679
+ kind: "scalar",
680
+ T: 9
681
+ /* ScalarType.STRING */
682
+ } },
683
+ { no: 5, name: "created_at", kind: "message", T: protobuf.Timestamp }
684
+ ],
685
+ { localName: "SessionResponse_GetSessionStateResponse" }
686
+ );
687
+ const SessionResponse_GetRTCStatsResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
688
+ "livekit.agent.SessionResponse.GetRTCStatsResponse",
689
+ () => [
690
+ { no: 1, name: "publisher_stats", kind: "message", T: protobuf.Struct, repeated: true },
691
+ { no: 2, name: "subscriber_stats", kind: "message", T: protobuf.Struct, repeated: true }
692
+ ],
693
+ { localName: "SessionResponse_GetRTCStatsResponse" }
694
+ );
695
+ const SessionResponse_GetSessionUsageResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
696
+ "livekit.agent.SessionResponse.GetSessionUsageResponse",
697
+ () => [
698
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage },
699
+ { no: 2, name: "created_at", kind: "message", T: protobuf.Timestamp }
700
+ ],
701
+ { localName: "SessionResponse_GetSessionUsageResponse" }
702
+ );
703
+ const AgentSessionMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
704
+ "livekit.agent.AgentSessionMessage",
705
+ () => [
706
+ { no: 1, name: "audio_input", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
707
+ { no: 2, name: "audio_output", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
708
+ { no: 3, name: "event", kind: "message", T: AgentSessionEvent, oneof: "message" },
709
+ { no: 4, name: "request", kind: "message", T: SessionRequest, oneof: "message" },
710
+ { no: 5, name: "response", kind: "message", T: SessionResponse, oneof: "message" },
711
+ { no: 6, name: "audio_playback_flush", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush, oneof: "message" },
712
+ { no: 7, name: "audio_playback_clear", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackClear, oneof: "message" },
713
+ { no: 8, name: "audio_playback_finished", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished, oneof: "message" }
714
+ ]
715
+ );
716
+ const AgentSessionMessage_ConsoleIO = /* @__PURE__ */ protobuf.proto3.makeMessageType(
717
+ "livekit.agent.AgentSessionMessage.ConsoleIO",
718
+ [],
719
+ { localName: "AgentSessionMessage_ConsoleIO" }
720
+ );
721
+ const AgentSessionMessage_ConsoleIO_AudioFrame = /* @__PURE__ */ protobuf.proto3.makeMessageType(
722
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame",
723
+ () => [
724
+ {
725
+ no: 1,
726
+ name: "data",
727
+ kind: "scalar",
728
+ T: 12
729
+ /* ScalarType.BYTES */
730
+ },
731
+ {
732
+ no: 2,
733
+ name: "sample_rate",
734
+ kind: "scalar",
735
+ T: 13
736
+ /* ScalarType.UINT32 */
737
+ },
738
+ {
739
+ no: 3,
740
+ name: "num_channels",
741
+ kind: "scalar",
742
+ T: 13
743
+ /* ScalarType.UINT32 */
744
+ },
745
+ {
746
+ no: 4,
747
+ name: "samples_per_channel",
748
+ kind: "scalar",
749
+ T: 13
750
+ /* ScalarType.UINT32 */
751
+ }
752
+ ],
753
+ { localName: "AgentSessionMessage_ConsoleIO_AudioFrame" }
754
+ );
755
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackFlush = /* @__PURE__ */ protobuf.proto3.makeMessageType(
756
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush",
757
+ [],
758
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFlush" }
759
+ );
760
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackClear = /* @__PURE__ */ protobuf.proto3.makeMessageType(
761
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear",
762
+ [],
763
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackClear" }
764
+ );
765
+ const AgentSessionMessage_ConsoleIO_AudioPlaybackFinished = /* @__PURE__ */ protobuf.proto3.makeMessageType(
766
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished",
767
+ [],
768
+ { localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFinished" }
769
+ );
175
770
 
176
771
  const livekit_agent_session_pb = {
177
772
  __proto__: null,
773
+ AgentConfigUpdate: AgentConfigUpdate,
178
774
  AgentHandoff: AgentHandoff,
775
+ AgentSessionEvent: AgentSessionEvent,
776
+ AgentSessionEvent_AgentStateChanged: AgentSessionEvent_AgentStateChanged,
777
+ AgentSessionEvent_ConversationItemAdded: AgentSessionEvent_ConversationItemAdded,
778
+ AgentSessionEvent_Error: AgentSessionEvent_Error,
779
+ AgentSessionEvent_FunctionToolsExecuted: AgentSessionEvent_FunctionToolsExecuted,
780
+ AgentSessionEvent_OverlappingSpeech: AgentSessionEvent_OverlappingSpeech,
781
+ AgentSessionEvent_SessionUsageUpdated: AgentSessionEvent_SessionUsageUpdated,
782
+ AgentSessionEvent_UserInputTranscribed: AgentSessionEvent_UserInputTranscribed,
783
+ AgentSessionEvent_UserStateChanged: AgentSessionEvent_UserStateChanged,
784
+ AgentSessionMessage: AgentSessionMessage,
785
+ AgentSessionMessage_ConsoleIO: AgentSessionMessage_ConsoleIO,
786
+ AgentSessionMessage_ConsoleIO_AudioFrame: AgentSessionMessage_ConsoleIO_AudioFrame,
787
+ AgentSessionMessage_ConsoleIO_AudioPlaybackClear: AgentSessionMessage_ConsoleIO_AudioPlaybackClear,
788
+ AgentSessionMessage_ConsoleIO_AudioPlaybackFinished: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished,
789
+ AgentSessionMessage_ConsoleIO_AudioPlaybackFlush: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush,
790
+ AgentSessionUsage: AgentSessionUsage,
791
+ AgentState: AgentState,
179
792
  ChatContext: ChatContext,
180
793
  ChatContext_ChatItem: ChatContext_ChatItem,
181
794
  ChatMessage: ChatMessage$1,
@@ -183,7 +796,29 @@ const livekit_agent_session_pb = {
183
796
  ChatRole: ChatRole,
184
797
  FunctionCall: FunctionCall,
185
798
  FunctionCallOutput: FunctionCallOutput,
186
- MetricsReport: MetricsReport
799
+ InterruptionModelUsage: InterruptionModelUsage,
800
+ LLMModelUsage: LLMModelUsage,
801
+ MetricsReport: MetricsReport,
802
+ ModelUsage: ModelUsage,
803
+ STTModelUsage: STTModelUsage,
804
+ SessionRequest: SessionRequest,
805
+ SessionRequest_GetAgentInfo: SessionRequest_GetAgentInfo,
806
+ SessionRequest_GetChatHistory: SessionRequest_GetChatHistory,
807
+ SessionRequest_GetRTCStats: SessionRequest_GetRTCStats,
808
+ SessionRequest_GetSessionState: SessionRequest_GetSessionState,
809
+ SessionRequest_GetSessionUsage: SessionRequest_GetSessionUsage,
810
+ SessionRequest_Ping: SessionRequest_Ping,
811
+ SessionRequest_RunInput: SessionRequest_RunInput,
812
+ SessionResponse: SessionResponse,
813
+ SessionResponse_GetAgentInfoResponse: SessionResponse_GetAgentInfoResponse,
814
+ SessionResponse_GetChatHistoryResponse: SessionResponse_GetChatHistoryResponse,
815
+ SessionResponse_GetRTCStatsResponse: SessionResponse_GetRTCStatsResponse,
816
+ SessionResponse_GetSessionStateResponse: SessionResponse_GetSessionStateResponse,
817
+ SessionResponse_GetSessionUsageResponse: SessionResponse_GetSessionUsageResponse,
818
+ SessionResponse_Pong: SessionResponse_Pong,
819
+ SessionResponse_RunInputResponse: SessionResponse_RunInputResponse,
820
+ TTSModelUsage: TTSModelUsage,
821
+ UserState: UserState
187
822
  };
188
823
 
189
824
  const MetricLabel = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -6981,7 +7616,9 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6981
7616
  T: 8
6982
7617
  /* ScalarType.BOOL */
6983
7618
  },
6984
- { no: 16, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
7619
+ { no: 16, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) },
7620
+ { no: 17, name: "created_at", kind: "message", T: protobuf.Timestamp },
7621
+ { no: 18, name: "updated_at", kind: "message", T: protobuf.Timestamp }
6985
7622
  ]
6986
7623
  );
6987
7624
  const SIPInboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7087,7 +7724,16 @@ const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7087
7724
  /* ScalarType.STRING */
7088
7725
  } },
7089
7726
  { no: 12, name: "include_headers", kind: "enum", T: protobuf.proto3.getEnumType(SIPHeaderOptions) },
7090
- { no: 13, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
7727
+ { no: 13, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) },
7728
+ {
7729
+ no: 15,
7730
+ name: "from_host",
7731
+ kind: "scalar",
7732
+ T: 9
7733
+ /* ScalarType.STRING */
7734
+ },
7735
+ { no: 16, name: "created_at", kind: "message", T: protobuf.Timestamp },
7736
+ { no: 17, name: "updated_at", kind: "message", T: protobuf.Timestamp }
7091
7737
  ]
7092
7738
  );
7093
7739
  const SIPOutboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7101,7 +7747,8 @@ const SIPOutboundTrunkUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7101
7747
  { no: 5, name: "auth_password", kind: "scalar", T: 9, opt: true },
7102
7748
  { no: 6, name: "name", kind: "scalar", T: 9, opt: true },
7103
7749
  { no: 7, name: "metadata", kind: "scalar", T: 9, opt: true },
7104
- { no: 8, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true }
7750
+ { no: 8, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption), opt: true },
7751
+ { no: 10, name: "from_host", kind: "scalar", T: 9, opt: true }
7105
7752
  ]
7106
7753
  );
7107
7754
  const GetSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7383,7 +8030,9 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7383
8030
  T: 8
7384
8031
  /* ScalarType.BOOL */
7385
8032
  },
7386
- { no: 12, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
8033
+ { no: 12, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) },
8034
+ { no: 14, name: "created_at", kind: "message", T: protobuf.Timestamp },
8035
+ { no: 15, name: "updated_at", kind: "message", T: protobuf.Timestamp }
7387
8036
  ]
7388
8037
  );
7389
8038
  const SIPDispatchRuleUpdate = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7468,7 +8117,14 @@ const SIPOutboundConfig = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7468
8117
  kind: "scalar",
7469
8118
  T: 9
7470
8119
  /* ScalarType.STRING */
7471
- } }
8120
+ } },
8121
+ {
8122
+ no: 8,
8123
+ name: "from_host",
8124
+ kind: "scalar",
8125
+ T: 9
8126
+ /* ScalarType.STRING */
8127
+ }
7472
8128
  ]
7473
8129
  );
7474
8130
  const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -7985,7 +8641,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7985
8641
  ]
7986
8642
  );
7987
8643
 
7988
- const version = "1.45.0";
8644
+ const version = "1.45.1";
7989
8645
 
7990
8646
  exports.protoInt64 = protobuf.protoInt64;
7991
8647
  exports.AcceptWhatsAppCallRequest = AcceptWhatsAppCallRequest;