@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 +664 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1655 -149
- package/dist/index.d.mts +1655 -149
- package/dist/index.d.ts +1655 -149
- package/dist/index.mjs +665 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_dev_pb.d.ts +149 -0
- package/src/gen/agent/livekit_agent_dev_pb.js +56 -0
- package/src/gen/agent/livekit_agent_session_pb.d.ts +1378 -1
- package/src/gen/agent/livekit_agent_session_pb.js +494 -1
- package/src/gen/livekit_agent_simulation_pb.d.ts +1505 -0
- package/src/gen/livekit_agent_simulation_pb.js +612 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +20 -4
- package/src/gen/livekit_cloud_agent_pb.js +2 -0
- package/src/gen/livekit_sip_pb.d.ts +52 -3
- package/src/gen/livekit_sip_pb.js +10 -1
- package/src/gen/version.js +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -31,6 +31,56 @@ export declare enum ChatRole {
|
|
|
31
31
|
ASSISTANT = 3,
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum livekit.agent.AgentState
|
|
36
|
+
*/
|
|
37
|
+
export declare enum AgentState {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: AS_INITIALIZING = 0;
|
|
40
|
+
*/
|
|
41
|
+
AS_INITIALIZING = 0,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: AS_IDLE = 1;
|
|
45
|
+
*/
|
|
46
|
+
AS_IDLE = 1,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: AS_LISTENING = 2;
|
|
50
|
+
*/
|
|
51
|
+
AS_LISTENING = 2,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: AS_THINKING = 3;
|
|
55
|
+
*/
|
|
56
|
+
AS_THINKING = 3,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: AS_SPEAKING = 4;
|
|
60
|
+
*/
|
|
61
|
+
AS_SPEAKING = 4,
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from enum livekit.agent.UserState
|
|
66
|
+
*/
|
|
67
|
+
export declare enum UserState {
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: US_SPEAKING = 0;
|
|
70
|
+
*/
|
|
71
|
+
US_SPEAKING = 0,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: US_LISTENING = 1;
|
|
75
|
+
*/
|
|
76
|
+
US_LISTENING = 1,
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: US_AWAY = 2;
|
|
80
|
+
*/
|
|
81
|
+
US_AWAY = 2,
|
|
82
|
+
}
|
|
83
|
+
|
|
34
84
|
/**
|
|
35
85
|
* @generated from message livekit.agent.MetricsReport
|
|
36
86
|
*/
|
|
@@ -311,6 +361,50 @@ export declare class AgentHandoff extends Message<AgentHandoff> {
|
|
|
311
361
|
static equals(a: AgentHandoff | PlainMessage<AgentHandoff> | undefined, b: AgentHandoff | PlainMessage<AgentHandoff> | undefined): boolean;
|
|
312
362
|
}
|
|
313
363
|
|
|
364
|
+
/**
|
|
365
|
+
* @generated from message livekit.agent.AgentConfigUpdate
|
|
366
|
+
*/
|
|
367
|
+
export declare class AgentConfigUpdate extends Message<AgentConfigUpdate> {
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: string id = 1;
|
|
370
|
+
*/
|
|
371
|
+
id: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: optional string instructions = 2;
|
|
375
|
+
*/
|
|
376
|
+
instructions?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: repeated string tools_added = 3;
|
|
380
|
+
*/
|
|
381
|
+
toolsAdded: string[];
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @generated from field: repeated string tools_removed = 4;
|
|
385
|
+
*/
|
|
386
|
+
toolsRemoved: string[];
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
390
|
+
*/
|
|
391
|
+
createdAt?: Timestamp;
|
|
392
|
+
|
|
393
|
+
constructor(data?: PartialMessage<AgentConfigUpdate>);
|
|
394
|
+
|
|
395
|
+
static readonly runtime: typeof proto3;
|
|
396
|
+
static readonly typeName = "livekit.agent.AgentConfigUpdate";
|
|
397
|
+
static readonly fields: FieldList;
|
|
398
|
+
|
|
399
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentConfigUpdate;
|
|
400
|
+
|
|
401
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentConfigUpdate;
|
|
402
|
+
|
|
403
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentConfigUpdate;
|
|
404
|
+
|
|
405
|
+
static equals(a: AgentConfigUpdate | PlainMessage<AgentConfigUpdate> | undefined, b: AgentConfigUpdate | PlainMessage<AgentConfigUpdate> | undefined): boolean;
|
|
406
|
+
}
|
|
407
|
+
|
|
314
408
|
/**
|
|
315
409
|
* @generated from message livekit.agent.ChatContext
|
|
316
410
|
*/
|
|
@@ -366,6 +460,12 @@ export declare class ChatContext_ChatItem extends Message<ChatContext_ChatItem>
|
|
|
366
460
|
*/
|
|
367
461
|
value: AgentHandoff;
|
|
368
462
|
case: "agentHandoff";
|
|
463
|
+
} | {
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: livekit.agent.AgentConfigUpdate agent_config_update = 5;
|
|
466
|
+
*/
|
|
467
|
+
value: AgentConfigUpdate;
|
|
468
|
+
case: "agentConfigUpdate";
|
|
369
469
|
} | { case: undefined; value?: undefined };
|
|
370
470
|
|
|
371
471
|
constructor(data?: PartialMessage<ChatContext_ChatItem>);
|
|
@@ -383,3 +483,1280 @@ export declare class ChatContext_ChatItem extends Message<ChatContext_ChatItem>
|
|
|
383
483
|
static equals(a: ChatContext_ChatItem | PlainMessage<ChatContext_ChatItem> | undefined, b: ChatContext_ChatItem | PlainMessage<ChatContext_ChatItem> | undefined): boolean;
|
|
384
484
|
}
|
|
385
485
|
|
|
486
|
+
/**
|
|
487
|
+
* @generated from message livekit.agent.LLMModelUsage
|
|
488
|
+
*/
|
|
489
|
+
export declare class LLMModelUsage extends Message<LLMModelUsage> {
|
|
490
|
+
/**
|
|
491
|
+
* @generated from field: string provider = 1;
|
|
492
|
+
*/
|
|
493
|
+
provider: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: string model = 2;
|
|
497
|
+
*/
|
|
498
|
+
model: string;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: int32 input_tokens = 3;
|
|
502
|
+
*/
|
|
503
|
+
inputTokens: number;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: int32 input_cached_tokens = 4;
|
|
507
|
+
*/
|
|
508
|
+
inputCachedTokens: number;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @generated from field: int32 input_audio_tokens = 5;
|
|
512
|
+
*/
|
|
513
|
+
inputAudioTokens: number;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @generated from field: int32 input_cached_audio_tokens = 6;
|
|
517
|
+
*/
|
|
518
|
+
inputCachedAudioTokens: number;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @generated from field: int32 input_text_tokens = 7;
|
|
522
|
+
*/
|
|
523
|
+
inputTextTokens: number;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: int32 input_cached_text_tokens = 8;
|
|
527
|
+
*/
|
|
528
|
+
inputCachedTextTokens: number;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: int32 input_image_tokens = 9;
|
|
532
|
+
*/
|
|
533
|
+
inputImageTokens: number;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: int32 input_cached_image_tokens = 10;
|
|
537
|
+
*/
|
|
538
|
+
inputCachedImageTokens: number;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @generated from field: int32 output_tokens = 11;
|
|
542
|
+
*/
|
|
543
|
+
outputTokens: number;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: int32 output_audio_tokens = 12;
|
|
547
|
+
*/
|
|
548
|
+
outputAudioTokens: number;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: int32 output_text_tokens = 13;
|
|
552
|
+
*/
|
|
553
|
+
outputTextTokens: number;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: double session_duration = 14;
|
|
557
|
+
*/
|
|
558
|
+
sessionDuration: number;
|
|
559
|
+
|
|
560
|
+
constructor(data?: PartialMessage<LLMModelUsage>);
|
|
561
|
+
|
|
562
|
+
static readonly runtime: typeof proto3;
|
|
563
|
+
static readonly typeName = "livekit.agent.LLMModelUsage";
|
|
564
|
+
static readonly fields: FieldList;
|
|
565
|
+
|
|
566
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LLMModelUsage;
|
|
567
|
+
|
|
568
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LLMModelUsage;
|
|
569
|
+
|
|
570
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LLMModelUsage;
|
|
571
|
+
|
|
572
|
+
static equals(a: LLMModelUsage | PlainMessage<LLMModelUsage> | undefined, b: LLMModelUsage | PlainMessage<LLMModelUsage> | undefined): boolean;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @generated from message livekit.agent.TTSModelUsage
|
|
577
|
+
*/
|
|
578
|
+
export declare class TTSModelUsage extends Message<TTSModelUsage> {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: string provider = 1;
|
|
581
|
+
*/
|
|
582
|
+
provider: string;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: string model = 2;
|
|
586
|
+
*/
|
|
587
|
+
model: string;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: int32 input_tokens = 3;
|
|
591
|
+
*/
|
|
592
|
+
inputTokens: number;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @generated from field: int32 output_tokens = 4;
|
|
596
|
+
*/
|
|
597
|
+
outputTokens: number;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* @generated from field: int32 characters_count = 5;
|
|
601
|
+
*/
|
|
602
|
+
charactersCount: number;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* @generated from field: double audio_duration = 6;
|
|
606
|
+
*/
|
|
607
|
+
audioDuration: number;
|
|
608
|
+
|
|
609
|
+
constructor(data?: PartialMessage<TTSModelUsage>);
|
|
610
|
+
|
|
611
|
+
static readonly runtime: typeof proto3;
|
|
612
|
+
static readonly typeName = "livekit.agent.TTSModelUsage";
|
|
613
|
+
static readonly fields: FieldList;
|
|
614
|
+
|
|
615
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TTSModelUsage;
|
|
616
|
+
|
|
617
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TTSModelUsage;
|
|
618
|
+
|
|
619
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TTSModelUsage;
|
|
620
|
+
|
|
621
|
+
static equals(a: TTSModelUsage | PlainMessage<TTSModelUsage> | undefined, b: TTSModelUsage | PlainMessage<TTSModelUsage> | undefined): boolean;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* @generated from message livekit.agent.STTModelUsage
|
|
626
|
+
*/
|
|
627
|
+
export declare class STTModelUsage extends Message<STTModelUsage> {
|
|
628
|
+
/**
|
|
629
|
+
* @generated from field: string provider = 1;
|
|
630
|
+
*/
|
|
631
|
+
provider: string;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @generated from field: string model = 2;
|
|
635
|
+
*/
|
|
636
|
+
model: string;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @generated from field: int32 input_tokens = 3;
|
|
640
|
+
*/
|
|
641
|
+
inputTokens: number;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @generated from field: int32 output_tokens = 4;
|
|
645
|
+
*/
|
|
646
|
+
outputTokens: number;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @generated from field: double audio_duration = 5;
|
|
650
|
+
*/
|
|
651
|
+
audioDuration: number;
|
|
652
|
+
|
|
653
|
+
constructor(data?: PartialMessage<STTModelUsage>);
|
|
654
|
+
|
|
655
|
+
static readonly runtime: typeof proto3;
|
|
656
|
+
static readonly typeName = "livekit.agent.STTModelUsage";
|
|
657
|
+
static readonly fields: FieldList;
|
|
658
|
+
|
|
659
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): STTModelUsage;
|
|
660
|
+
|
|
661
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): STTModelUsage;
|
|
662
|
+
|
|
663
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): STTModelUsage;
|
|
664
|
+
|
|
665
|
+
static equals(a: STTModelUsage | PlainMessage<STTModelUsage> | undefined, b: STTModelUsage | PlainMessage<STTModelUsage> | undefined): boolean;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @generated from message livekit.agent.InterruptionModelUsage
|
|
670
|
+
*/
|
|
671
|
+
export declare class InterruptionModelUsage extends Message<InterruptionModelUsage> {
|
|
672
|
+
/**
|
|
673
|
+
* @generated from field: string provider = 1;
|
|
674
|
+
*/
|
|
675
|
+
provider: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* @generated from field: string model = 2;
|
|
679
|
+
*/
|
|
680
|
+
model: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @generated from field: int32 total_requests = 3;
|
|
684
|
+
*/
|
|
685
|
+
totalRequests: number;
|
|
686
|
+
|
|
687
|
+
constructor(data?: PartialMessage<InterruptionModelUsage>);
|
|
688
|
+
|
|
689
|
+
static readonly runtime: typeof proto3;
|
|
690
|
+
static readonly typeName = "livekit.agent.InterruptionModelUsage";
|
|
691
|
+
static readonly fields: FieldList;
|
|
692
|
+
|
|
693
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterruptionModelUsage;
|
|
694
|
+
|
|
695
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterruptionModelUsage;
|
|
696
|
+
|
|
697
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterruptionModelUsage;
|
|
698
|
+
|
|
699
|
+
static equals(a: InterruptionModelUsage | PlainMessage<InterruptionModelUsage> | undefined, b: InterruptionModelUsage | PlainMessage<InterruptionModelUsage> | undefined): boolean;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @generated from message livekit.agent.ModelUsage
|
|
704
|
+
*/
|
|
705
|
+
export declare class ModelUsage extends Message<ModelUsage> {
|
|
706
|
+
/**
|
|
707
|
+
* @generated from oneof livekit.agent.ModelUsage.usage
|
|
708
|
+
*/
|
|
709
|
+
usage: {
|
|
710
|
+
/**
|
|
711
|
+
* @generated from field: livekit.agent.LLMModelUsage llm = 1;
|
|
712
|
+
*/
|
|
713
|
+
value: LLMModelUsage;
|
|
714
|
+
case: "llm";
|
|
715
|
+
} | {
|
|
716
|
+
/**
|
|
717
|
+
* @generated from field: livekit.agent.TTSModelUsage tts = 2;
|
|
718
|
+
*/
|
|
719
|
+
value: TTSModelUsage;
|
|
720
|
+
case: "tts";
|
|
721
|
+
} | {
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: livekit.agent.STTModelUsage stt = 3;
|
|
724
|
+
*/
|
|
725
|
+
value: STTModelUsage;
|
|
726
|
+
case: "stt";
|
|
727
|
+
} | {
|
|
728
|
+
/**
|
|
729
|
+
* @generated from field: livekit.agent.InterruptionModelUsage interruption = 4;
|
|
730
|
+
*/
|
|
731
|
+
value: InterruptionModelUsage;
|
|
732
|
+
case: "interruption";
|
|
733
|
+
} | { case: undefined; value?: undefined };
|
|
734
|
+
|
|
735
|
+
constructor(data?: PartialMessage<ModelUsage>);
|
|
736
|
+
|
|
737
|
+
static readonly runtime: typeof proto3;
|
|
738
|
+
static readonly typeName = "livekit.agent.ModelUsage";
|
|
739
|
+
static readonly fields: FieldList;
|
|
740
|
+
|
|
741
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModelUsage;
|
|
742
|
+
|
|
743
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModelUsage;
|
|
744
|
+
|
|
745
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModelUsage;
|
|
746
|
+
|
|
747
|
+
static equals(a: ModelUsage | PlainMessage<ModelUsage> | undefined, b: ModelUsage | PlainMessage<ModelUsage> | undefined): boolean;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* @generated from message livekit.agent.AgentSessionUsage
|
|
752
|
+
*/
|
|
753
|
+
export declare class AgentSessionUsage extends Message<AgentSessionUsage> {
|
|
754
|
+
/**
|
|
755
|
+
* @generated from field: repeated livekit.agent.ModelUsage model_usage = 1;
|
|
756
|
+
*/
|
|
757
|
+
modelUsage: ModelUsage[];
|
|
758
|
+
|
|
759
|
+
constructor(data?: PartialMessage<AgentSessionUsage>);
|
|
760
|
+
|
|
761
|
+
static readonly runtime: typeof proto3;
|
|
762
|
+
static readonly typeName = "livekit.agent.AgentSessionUsage";
|
|
763
|
+
static readonly fields: FieldList;
|
|
764
|
+
|
|
765
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionUsage;
|
|
766
|
+
|
|
767
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionUsage;
|
|
768
|
+
|
|
769
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionUsage;
|
|
770
|
+
|
|
771
|
+
static equals(a: AgentSessionUsage | PlainMessage<AgentSessionUsage> | undefined, b: AgentSessionUsage | PlainMessage<AgentSessionUsage> | undefined): boolean;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* @generated from message livekit.agent.AgentSessionEvent
|
|
776
|
+
*/
|
|
777
|
+
export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
|
|
778
|
+
/**
|
|
779
|
+
* @generated from field: google.protobuf.Timestamp created_at = 1;
|
|
780
|
+
*/
|
|
781
|
+
createdAt?: Timestamp;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* @generated from oneof livekit.agent.AgentSessionEvent.event
|
|
785
|
+
*/
|
|
786
|
+
event: {
|
|
787
|
+
/**
|
|
788
|
+
* @generated from field: livekit.agent.AgentSessionEvent.AgentStateChanged agent_state_changed = 10;
|
|
789
|
+
*/
|
|
790
|
+
value: AgentSessionEvent_AgentStateChanged;
|
|
791
|
+
case: "agentStateChanged";
|
|
792
|
+
} | {
|
|
793
|
+
/**
|
|
794
|
+
* @generated from field: livekit.agent.AgentSessionEvent.UserStateChanged user_state_changed = 11;
|
|
795
|
+
*/
|
|
796
|
+
value: AgentSessionEvent_UserStateChanged;
|
|
797
|
+
case: "userStateChanged";
|
|
798
|
+
} | {
|
|
799
|
+
/**
|
|
800
|
+
* @generated from field: livekit.agent.AgentSessionEvent.ConversationItemAdded conversation_item_added = 12;
|
|
801
|
+
*/
|
|
802
|
+
value: AgentSessionEvent_ConversationItemAdded;
|
|
803
|
+
case: "conversationItemAdded";
|
|
804
|
+
} | {
|
|
805
|
+
/**
|
|
806
|
+
* @generated from field: livekit.agent.AgentSessionEvent.UserInputTranscribed user_input_transcribed = 13;
|
|
807
|
+
*/
|
|
808
|
+
value: AgentSessionEvent_UserInputTranscribed;
|
|
809
|
+
case: "userInputTranscribed";
|
|
810
|
+
} | {
|
|
811
|
+
/**
|
|
812
|
+
* @generated from field: livekit.agent.AgentSessionEvent.FunctionToolsExecuted function_tools_executed = 14;
|
|
813
|
+
*/
|
|
814
|
+
value: AgentSessionEvent_FunctionToolsExecuted;
|
|
815
|
+
case: "functionToolsExecuted";
|
|
816
|
+
} | {
|
|
817
|
+
/**
|
|
818
|
+
* @generated from field: livekit.agent.AgentSessionEvent.Error error = 15;
|
|
819
|
+
*/
|
|
820
|
+
value: AgentSessionEvent_Error;
|
|
821
|
+
case: "error";
|
|
822
|
+
} | {
|
|
823
|
+
/**
|
|
824
|
+
* @generated from field: livekit.agent.AgentSessionEvent.OverlappingSpeech overlapping_speech = 16;
|
|
825
|
+
*/
|
|
826
|
+
value: AgentSessionEvent_OverlappingSpeech;
|
|
827
|
+
case: "overlappingSpeech";
|
|
828
|
+
} | {
|
|
829
|
+
/**
|
|
830
|
+
* @generated from field: livekit.agent.AgentSessionEvent.SessionUsageUpdated session_usage_updated = 17;
|
|
831
|
+
*/
|
|
832
|
+
value: AgentSessionEvent_SessionUsageUpdated;
|
|
833
|
+
case: "sessionUsageUpdated";
|
|
834
|
+
} | { case: undefined; value?: undefined };
|
|
835
|
+
|
|
836
|
+
constructor(data?: PartialMessage<AgentSessionEvent>);
|
|
837
|
+
|
|
838
|
+
static readonly runtime: typeof proto3;
|
|
839
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent";
|
|
840
|
+
static readonly fields: FieldList;
|
|
841
|
+
|
|
842
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent;
|
|
843
|
+
|
|
844
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent;
|
|
845
|
+
|
|
846
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent;
|
|
847
|
+
|
|
848
|
+
static equals(a: AgentSessionEvent | PlainMessage<AgentSessionEvent> | undefined, b: AgentSessionEvent | PlainMessage<AgentSessionEvent> | undefined): boolean;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* @generated from message livekit.agent.AgentSessionEvent.AgentStateChanged
|
|
853
|
+
*/
|
|
854
|
+
export declare class AgentSessionEvent_AgentStateChanged extends Message<AgentSessionEvent_AgentStateChanged> {
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: livekit.agent.AgentState old_state = 1;
|
|
857
|
+
*/
|
|
858
|
+
oldState: AgentState;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* @generated from field: livekit.agent.AgentState new_state = 2;
|
|
862
|
+
*/
|
|
863
|
+
newState: AgentState;
|
|
864
|
+
|
|
865
|
+
constructor(data?: PartialMessage<AgentSessionEvent_AgentStateChanged>);
|
|
866
|
+
|
|
867
|
+
static readonly runtime: typeof proto3;
|
|
868
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.AgentStateChanged";
|
|
869
|
+
static readonly fields: FieldList;
|
|
870
|
+
|
|
871
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_AgentStateChanged;
|
|
872
|
+
|
|
873
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_AgentStateChanged;
|
|
874
|
+
|
|
875
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_AgentStateChanged;
|
|
876
|
+
|
|
877
|
+
static equals(a: AgentSessionEvent_AgentStateChanged | PlainMessage<AgentSessionEvent_AgentStateChanged> | undefined, b: AgentSessionEvent_AgentStateChanged | PlainMessage<AgentSessionEvent_AgentStateChanged> | undefined): boolean;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* @generated from message livekit.agent.AgentSessionEvent.UserStateChanged
|
|
882
|
+
*/
|
|
883
|
+
export declare class AgentSessionEvent_UserStateChanged extends Message<AgentSessionEvent_UserStateChanged> {
|
|
884
|
+
/**
|
|
885
|
+
* @generated from field: livekit.agent.UserState old_state = 1;
|
|
886
|
+
*/
|
|
887
|
+
oldState: UserState;
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* @generated from field: livekit.agent.UserState new_state = 2;
|
|
891
|
+
*/
|
|
892
|
+
newState: UserState;
|
|
893
|
+
|
|
894
|
+
constructor(data?: PartialMessage<AgentSessionEvent_UserStateChanged>);
|
|
895
|
+
|
|
896
|
+
static readonly runtime: typeof proto3;
|
|
897
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.UserStateChanged";
|
|
898
|
+
static readonly fields: FieldList;
|
|
899
|
+
|
|
900
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_UserStateChanged;
|
|
901
|
+
|
|
902
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_UserStateChanged;
|
|
903
|
+
|
|
904
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_UserStateChanged;
|
|
905
|
+
|
|
906
|
+
static equals(a: AgentSessionEvent_UserStateChanged | PlainMessage<AgentSessionEvent_UserStateChanged> | undefined, b: AgentSessionEvent_UserStateChanged | PlainMessage<AgentSessionEvent_UserStateChanged> | undefined): boolean;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* @generated from message livekit.agent.AgentSessionEvent.ConversationItemAdded
|
|
911
|
+
*/
|
|
912
|
+
export declare class AgentSessionEvent_ConversationItemAdded extends Message<AgentSessionEvent_ConversationItemAdded> {
|
|
913
|
+
/**
|
|
914
|
+
* @generated from field: livekit.agent.ChatContext.ChatItem item = 1;
|
|
915
|
+
*/
|
|
916
|
+
item?: ChatContext_ChatItem;
|
|
917
|
+
|
|
918
|
+
constructor(data?: PartialMessage<AgentSessionEvent_ConversationItemAdded>);
|
|
919
|
+
|
|
920
|
+
static readonly runtime: typeof proto3;
|
|
921
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.ConversationItemAdded";
|
|
922
|
+
static readonly fields: FieldList;
|
|
923
|
+
|
|
924
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ConversationItemAdded;
|
|
925
|
+
|
|
926
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ConversationItemAdded;
|
|
927
|
+
|
|
928
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ConversationItemAdded;
|
|
929
|
+
|
|
930
|
+
static equals(a: AgentSessionEvent_ConversationItemAdded | PlainMessage<AgentSessionEvent_ConversationItemAdded> | undefined, b: AgentSessionEvent_ConversationItemAdded | PlainMessage<AgentSessionEvent_ConversationItemAdded> | undefined): boolean;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* @generated from message livekit.agent.AgentSessionEvent.UserInputTranscribed
|
|
935
|
+
*/
|
|
936
|
+
export declare class AgentSessionEvent_UserInputTranscribed extends Message<AgentSessionEvent_UserInputTranscribed> {
|
|
937
|
+
/**
|
|
938
|
+
* @generated from field: string transcript = 1;
|
|
939
|
+
*/
|
|
940
|
+
transcript: string;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* @generated from field: bool is_final = 2;
|
|
944
|
+
*/
|
|
945
|
+
isFinal: boolean;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* @generated from field: optional string language = 3;
|
|
949
|
+
*/
|
|
950
|
+
language?: string;
|
|
951
|
+
|
|
952
|
+
constructor(data?: PartialMessage<AgentSessionEvent_UserInputTranscribed>);
|
|
953
|
+
|
|
954
|
+
static readonly runtime: typeof proto3;
|
|
955
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.UserInputTranscribed";
|
|
956
|
+
static readonly fields: FieldList;
|
|
957
|
+
|
|
958
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_UserInputTranscribed;
|
|
959
|
+
|
|
960
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_UserInputTranscribed;
|
|
961
|
+
|
|
962
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_UserInputTranscribed;
|
|
963
|
+
|
|
964
|
+
static equals(a: AgentSessionEvent_UserInputTranscribed | PlainMessage<AgentSessionEvent_UserInputTranscribed> | undefined, b: AgentSessionEvent_UserInputTranscribed | PlainMessage<AgentSessionEvent_UserInputTranscribed> | undefined): boolean;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* @generated from message livekit.agent.AgentSessionEvent.FunctionToolsExecuted
|
|
969
|
+
*/
|
|
970
|
+
export declare class AgentSessionEvent_FunctionToolsExecuted extends Message<AgentSessionEvent_FunctionToolsExecuted> {
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: repeated livekit.agent.FunctionCall function_calls = 1;
|
|
973
|
+
*/
|
|
974
|
+
functionCalls: FunctionCall[];
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* @generated from field: repeated livekit.agent.FunctionCallOutput function_call_outputs = 2;
|
|
978
|
+
*/
|
|
979
|
+
functionCallOutputs: FunctionCallOutput[];
|
|
980
|
+
|
|
981
|
+
constructor(data?: PartialMessage<AgentSessionEvent_FunctionToolsExecuted>);
|
|
982
|
+
|
|
983
|
+
static readonly runtime: typeof proto3;
|
|
984
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.FunctionToolsExecuted";
|
|
985
|
+
static readonly fields: FieldList;
|
|
986
|
+
|
|
987
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_FunctionToolsExecuted;
|
|
988
|
+
|
|
989
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_FunctionToolsExecuted;
|
|
990
|
+
|
|
991
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_FunctionToolsExecuted;
|
|
992
|
+
|
|
993
|
+
static equals(a: AgentSessionEvent_FunctionToolsExecuted | PlainMessage<AgentSessionEvent_FunctionToolsExecuted> | undefined, b: AgentSessionEvent_FunctionToolsExecuted | PlainMessage<AgentSessionEvent_FunctionToolsExecuted> | undefined): boolean;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* @generated from message livekit.agent.AgentSessionEvent.Error
|
|
998
|
+
*/
|
|
999
|
+
export declare class AgentSessionEvent_Error extends Message<AgentSessionEvent_Error> {
|
|
1000
|
+
/**
|
|
1001
|
+
* @generated from field: string message = 1;
|
|
1002
|
+
*/
|
|
1003
|
+
message: string;
|
|
1004
|
+
|
|
1005
|
+
constructor(data?: PartialMessage<AgentSessionEvent_Error>);
|
|
1006
|
+
|
|
1007
|
+
static readonly runtime: typeof proto3;
|
|
1008
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.Error";
|
|
1009
|
+
static readonly fields: FieldList;
|
|
1010
|
+
|
|
1011
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_Error;
|
|
1012
|
+
|
|
1013
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_Error;
|
|
1014
|
+
|
|
1015
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_Error;
|
|
1016
|
+
|
|
1017
|
+
static equals(a: AgentSessionEvent_Error | PlainMessage<AgentSessionEvent_Error> | undefined, b: AgentSessionEvent_Error | PlainMessage<AgentSessionEvent_Error> | undefined): boolean;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* @generated from message livekit.agent.AgentSessionEvent.OverlappingSpeech
|
|
1022
|
+
*/
|
|
1023
|
+
export declare class AgentSessionEvent_OverlappingSpeech extends Message<AgentSessionEvent_OverlappingSpeech> {
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from field: bool is_interruption = 1;
|
|
1026
|
+
*/
|
|
1027
|
+
isInterruption: boolean;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* @generated from field: optional google.protobuf.Timestamp overlap_started_at = 2;
|
|
1031
|
+
*/
|
|
1032
|
+
overlapStartedAt?: Timestamp;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from field: double detection_delay = 3;
|
|
1036
|
+
*/
|
|
1037
|
+
detectionDelay: number;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* @generated from field: google.protobuf.Timestamp detected_at = 4;
|
|
1041
|
+
*/
|
|
1042
|
+
detectedAt?: Timestamp;
|
|
1043
|
+
|
|
1044
|
+
constructor(data?: PartialMessage<AgentSessionEvent_OverlappingSpeech>);
|
|
1045
|
+
|
|
1046
|
+
static readonly runtime: typeof proto3;
|
|
1047
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.OverlappingSpeech";
|
|
1048
|
+
static readonly fields: FieldList;
|
|
1049
|
+
|
|
1050
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_OverlappingSpeech;
|
|
1051
|
+
|
|
1052
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_OverlappingSpeech;
|
|
1053
|
+
|
|
1054
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_OverlappingSpeech;
|
|
1055
|
+
|
|
1056
|
+
static equals(a: AgentSessionEvent_OverlappingSpeech | PlainMessage<AgentSessionEvent_OverlappingSpeech> | undefined, b: AgentSessionEvent_OverlappingSpeech | PlainMessage<AgentSessionEvent_OverlappingSpeech> | undefined): boolean;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
|
|
1061
|
+
*/
|
|
1062
|
+
export declare class AgentSessionEvent_SessionUsageUpdated extends Message<AgentSessionEvent_SessionUsageUpdated> {
|
|
1063
|
+
/**
|
|
1064
|
+
* @generated from field: livekit.agent.AgentSessionUsage usage = 1;
|
|
1065
|
+
*/
|
|
1066
|
+
usage?: AgentSessionUsage;
|
|
1067
|
+
|
|
1068
|
+
constructor(data?: PartialMessage<AgentSessionEvent_SessionUsageUpdated>);
|
|
1069
|
+
|
|
1070
|
+
static readonly runtime: typeof proto3;
|
|
1071
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.SessionUsageUpdated";
|
|
1072
|
+
static readonly fields: FieldList;
|
|
1073
|
+
|
|
1074
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_SessionUsageUpdated;
|
|
1075
|
+
|
|
1076
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_SessionUsageUpdated;
|
|
1077
|
+
|
|
1078
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_SessionUsageUpdated;
|
|
1079
|
+
|
|
1080
|
+
static equals(a: AgentSessionEvent_SessionUsageUpdated | PlainMessage<AgentSessionEvent_SessionUsageUpdated> | undefined, b: AgentSessionEvent_SessionUsageUpdated | PlainMessage<AgentSessionEvent_SessionUsageUpdated> | undefined): boolean;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* @generated from message livekit.agent.SessionRequest
|
|
1085
|
+
*/
|
|
1086
|
+
export declare class SessionRequest extends Message<SessionRequest> {
|
|
1087
|
+
/**
|
|
1088
|
+
* @generated from field: string request_id = 1;
|
|
1089
|
+
*/
|
|
1090
|
+
requestId: string;
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* @generated from oneof livekit.agent.SessionRequest.request
|
|
1094
|
+
*/
|
|
1095
|
+
request: {
|
|
1096
|
+
/**
|
|
1097
|
+
* @generated from field: livekit.agent.SessionRequest.Ping ping = 2;
|
|
1098
|
+
*/
|
|
1099
|
+
value: SessionRequest_Ping;
|
|
1100
|
+
case: "ping";
|
|
1101
|
+
} | {
|
|
1102
|
+
/**
|
|
1103
|
+
* @generated from field: livekit.agent.SessionRequest.GetChatHistory get_chat_history = 4;
|
|
1104
|
+
*/
|
|
1105
|
+
value: SessionRequest_GetChatHistory;
|
|
1106
|
+
case: "getChatHistory";
|
|
1107
|
+
} | {
|
|
1108
|
+
/**
|
|
1109
|
+
* @generated from field: livekit.agent.SessionRequest.RunInput run_input = 5;
|
|
1110
|
+
*/
|
|
1111
|
+
value: SessionRequest_RunInput;
|
|
1112
|
+
case: "runInput";
|
|
1113
|
+
} | {
|
|
1114
|
+
/**
|
|
1115
|
+
* @generated from field: livekit.agent.SessionRequest.GetAgentInfo get_agent_info = 6;
|
|
1116
|
+
*/
|
|
1117
|
+
value: SessionRequest_GetAgentInfo;
|
|
1118
|
+
case: "getAgentInfo";
|
|
1119
|
+
} | {
|
|
1120
|
+
/**
|
|
1121
|
+
* @generated from field: livekit.agent.SessionRequest.GetSessionState get_session_state = 7;
|
|
1122
|
+
*/
|
|
1123
|
+
value: SessionRequest_GetSessionState;
|
|
1124
|
+
case: "getSessionState";
|
|
1125
|
+
} | {
|
|
1126
|
+
/**
|
|
1127
|
+
* @generated from field: livekit.agent.SessionRequest.GetRTCStats get_rtc_stats = 8;
|
|
1128
|
+
*/
|
|
1129
|
+
value: SessionRequest_GetRTCStats;
|
|
1130
|
+
case: "getRtcStats";
|
|
1131
|
+
} | {
|
|
1132
|
+
/**
|
|
1133
|
+
* @generated from field: livekit.agent.SessionRequest.GetSessionUsage get_session_usage = 9;
|
|
1134
|
+
*/
|
|
1135
|
+
value: SessionRequest_GetSessionUsage;
|
|
1136
|
+
case: "getSessionUsage";
|
|
1137
|
+
} | { case: undefined; value?: undefined };
|
|
1138
|
+
|
|
1139
|
+
constructor(data?: PartialMessage<SessionRequest>);
|
|
1140
|
+
|
|
1141
|
+
static readonly runtime: typeof proto3;
|
|
1142
|
+
static readonly typeName = "livekit.agent.SessionRequest";
|
|
1143
|
+
static readonly fields: FieldList;
|
|
1144
|
+
|
|
1145
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest;
|
|
1146
|
+
|
|
1147
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest;
|
|
1148
|
+
|
|
1149
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest;
|
|
1150
|
+
|
|
1151
|
+
static equals(a: SessionRequest | PlainMessage<SessionRequest> | undefined, b: SessionRequest | PlainMessage<SessionRequest> | undefined): boolean;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @generated from message livekit.agent.SessionRequest.Ping
|
|
1156
|
+
*/
|
|
1157
|
+
export declare class SessionRequest_Ping extends Message<SessionRequest_Ping> {
|
|
1158
|
+
constructor(data?: PartialMessage<SessionRequest_Ping>);
|
|
1159
|
+
|
|
1160
|
+
static readonly runtime: typeof proto3;
|
|
1161
|
+
static readonly typeName = "livekit.agent.SessionRequest.Ping";
|
|
1162
|
+
static readonly fields: FieldList;
|
|
1163
|
+
|
|
1164
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_Ping;
|
|
1165
|
+
|
|
1166
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_Ping;
|
|
1167
|
+
|
|
1168
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_Ping;
|
|
1169
|
+
|
|
1170
|
+
static equals(a: SessionRequest_Ping | PlainMessage<SessionRequest_Ping> | undefined, b: SessionRequest_Ping | PlainMessage<SessionRequest_Ping> | undefined): boolean;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* @generated from message livekit.agent.SessionRequest.GetChatHistory
|
|
1175
|
+
*/
|
|
1176
|
+
export declare class SessionRequest_GetChatHistory extends Message<SessionRequest_GetChatHistory> {
|
|
1177
|
+
constructor(data?: PartialMessage<SessionRequest_GetChatHistory>);
|
|
1178
|
+
|
|
1179
|
+
static readonly runtime: typeof proto3;
|
|
1180
|
+
static readonly typeName = "livekit.agent.SessionRequest.GetChatHistory";
|
|
1181
|
+
static readonly fields: FieldList;
|
|
1182
|
+
|
|
1183
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetChatHistory;
|
|
1184
|
+
|
|
1185
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetChatHistory;
|
|
1186
|
+
|
|
1187
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetChatHistory;
|
|
1188
|
+
|
|
1189
|
+
static equals(a: SessionRequest_GetChatHistory | PlainMessage<SessionRequest_GetChatHistory> | undefined, b: SessionRequest_GetChatHistory | PlainMessage<SessionRequest_GetChatHistory> | undefined): boolean;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from message livekit.agent.SessionRequest.RunInput
|
|
1194
|
+
*/
|
|
1195
|
+
export declare class SessionRequest_RunInput extends Message<SessionRequest_RunInput> {
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from field: string text = 1;
|
|
1198
|
+
*/
|
|
1199
|
+
text: string;
|
|
1200
|
+
|
|
1201
|
+
constructor(data?: PartialMessage<SessionRequest_RunInput>);
|
|
1202
|
+
|
|
1203
|
+
static readonly runtime: typeof proto3;
|
|
1204
|
+
static readonly typeName = "livekit.agent.SessionRequest.RunInput";
|
|
1205
|
+
static readonly fields: FieldList;
|
|
1206
|
+
|
|
1207
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_RunInput;
|
|
1208
|
+
|
|
1209
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_RunInput;
|
|
1210
|
+
|
|
1211
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_RunInput;
|
|
1212
|
+
|
|
1213
|
+
static equals(a: SessionRequest_RunInput | PlainMessage<SessionRequest_RunInput> | undefined, b: SessionRequest_RunInput | PlainMessage<SessionRequest_RunInput> | undefined): boolean;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* @generated from message livekit.agent.SessionRequest.GetAgentInfo
|
|
1218
|
+
*/
|
|
1219
|
+
export declare class SessionRequest_GetAgentInfo extends Message<SessionRequest_GetAgentInfo> {
|
|
1220
|
+
constructor(data?: PartialMessage<SessionRequest_GetAgentInfo>);
|
|
1221
|
+
|
|
1222
|
+
static readonly runtime: typeof proto3;
|
|
1223
|
+
static readonly typeName = "livekit.agent.SessionRequest.GetAgentInfo";
|
|
1224
|
+
static readonly fields: FieldList;
|
|
1225
|
+
|
|
1226
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetAgentInfo;
|
|
1227
|
+
|
|
1228
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetAgentInfo;
|
|
1229
|
+
|
|
1230
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetAgentInfo;
|
|
1231
|
+
|
|
1232
|
+
static equals(a: SessionRequest_GetAgentInfo | PlainMessage<SessionRequest_GetAgentInfo> | undefined, b: SessionRequest_GetAgentInfo | PlainMessage<SessionRequest_GetAgentInfo> | undefined): boolean;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* @generated from message livekit.agent.SessionRequest.GetSessionState
|
|
1237
|
+
*/
|
|
1238
|
+
export declare class SessionRequest_GetSessionState extends Message<SessionRequest_GetSessionState> {
|
|
1239
|
+
constructor(data?: PartialMessage<SessionRequest_GetSessionState>);
|
|
1240
|
+
|
|
1241
|
+
static readonly runtime: typeof proto3;
|
|
1242
|
+
static readonly typeName = "livekit.agent.SessionRequest.GetSessionState";
|
|
1243
|
+
static readonly fields: FieldList;
|
|
1244
|
+
|
|
1245
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetSessionState;
|
|
1246
|
+
|
|
1247
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetSessionState;
|
|
1248
|
+
|
|
1249
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetSessionState;
|
|
1250
|
+
|
|
1251
|
+
static equals(a: SessionRequest_GetSessionState | PlainMessage<SessionRequest_GetSessionState> | undefined, b: SessionRequest_GetSessionState | PlainMessage<SessionRequest_GetSessionState> | undefined): boolean;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* @generated from message livekit.agent.SessionRequest.GetRTCStats
|
|
1256
|
+
*/
|
|
1257
|
+
export declare class SessionRequest_GetRTCStats extends Message<SessionRequest_GetRTCStats> {
|
|
1258
|
+
constructor(data?: PartialMessage<SessionRequest_GetRTCStats>);
|
|
1259
|
+
|
|
1260
|
+
static readonly runtime: typeof proto3;
|
|
1261
|
+
static readonly typeName = "livekit.agent.SessionRequest.GetRTCStats";
|
|
1262
|
+
static readonly fields: FieldList;
|
|
1263
|
+
|
|
1264
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetRTCStats;
|
|
1265
|
+
|
|
1266
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetRTCStats;
|
|
1267
|
+
|
|
1268
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetRTCStats;
|
|
1269
|
+
|
|
1270
|
+
static equals(a: SessionRequest_GetRTCStats | PlainMessage<SessionRequest_GetRTCStats> | undefined, b: SessionRequest_GetRTCStats | PlainMessage<SessionRequest_GetRTCStats> | undefined): boolean;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* @generated from message livekit.agent.SessionRequest.GetSessionUsage
|
|
1275
|
+
*/
|
|
1276
|
+
export declare class SessionRequest_GetSessionUsage extends Message<SessionRequest_GetSessionUsage> {
|
|
1277
|
+
constructor(data?: PartialMessage<SessionRequest_GetSessionUsage>);
|
|
1278
|
+
|
|
1279
|
+
static readonly runtime: typeof proto3;
|
|
1280
|
+
static readonly typeName = "livekit.agent.SessionRequest.GetSessionUsage";
|
|
1281
|
+
static readonly fields: FieldList;
|
|
1282
|
+
|
|
1283
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_GetSessionUsage;
|
|
1284
|
+
|
|
1285
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_GetSessionUsage;
|
|
1286
|
+
|
|
1287
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_GetSessionUsage;
|
|
1288
|
+
|
|
1289
|
+
static equals(a: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined, b: SessionRequest_GetSessionUsage | PlainMessage<SessionRequest_GetSessionUsage> | undefined): boolean;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* @generated from message livekit.agent.SessionResponse
|
|
1294
|
+
*/
|
|
1295
|
+
export declare class SessionResponse extends Message<SessionResponse> {
|
|
1296
|
+
/**
|
|
1297
|
+
* @generated from field: string request_id = 1;
|
|
1298
|
+
*/
|
|
1299
|
+
requestId: string;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* @generated from field: optional string error = 2;
|
|
1303
|
+
*/
|
|
1304
|
+
error?: string;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @generated from oneof livekit.agent.SessionResponse.response
|
|
1308
|
+
*/
|
|
1309
|
+
response: {
|
|
1310
|
+
/**
|
|
1311
|
+
* @generated from field: livekit.agent.SessionResponse.Pong pong = 3;
|
|
1312
|
+
*/
|
|
1313
|
+
value: SessionResponse_Pong;
|
|
1314
|
+
case: "pong";
|
|
1315
|
+
} | {
|
|
1316
|
+
/**
|
|
1317
|
+
* @generated from field: livekit.agent.SessionResponse.GetChatHistoryResponse get_chat_history = 5;
|
|
1318
|
+
*/
|
|
1319
|
+
value: SessionResponse_GetChatHistoryResponse;
|
|
1320
|
+
case: "getChatHistory";
|
|
1321
|
+
} | {
|
|
1322
|
+
/**
|
|
1323
|
+
* @generated from field: livekit.agent.SessionResponse.RunInputResponse run_input = 6;
|
|
1324
|
+
*/
|
|
1325
|
+
value: SessionResponse_RunInputResponse;
|
|
1326
|
+
case: "runInput";
|
|
1327
|
+
} | {
|
|
1328
|
+
/**
|
|
1329
|
+
* @generated from field: livekit.agent.SessionResponse.GetAgentInfoResponse get_agent_info = 7;
|
|
1330
|
+
*/
|
|
1331
|
+
value: SessionResponse_GetAgentInfoResponse;
|
|
1332
|
+
case: "getAgentInfo";
|
|
1333
|
+
} | {
|
|
1334
|
+
/**
|
|
1335
|
+
* @generated from field: livekit.agent.SessionResponse.GetSessionStateResponse get_session_state = 8;
|
|
1336
|
+
*/
|
|
1337
|
+
value: SessionResponse_GetSessionStateResponse;
|
|
1338
|
+
case: "getSessionState";
|
|
1339
|
+
} | {
|
|
1340
|
+
/**
|
|
1341
|
+
* @generated from field: livekit.agent.SessionResponse.GetRTCStatsResponse get_rtc_stats = 9;
|
|
1342
|
+
*/
|
|
1343
|
+
value: SessionResponse_GetRTCStatsResponse;
|
|
1344
|
+
case: "getRtcStats";
|
|
1345
|
+
} | {
|
|
1346
|
+
/**
|
|
1347
|
+
* @generated from field: livekit.agent.SessionResponse.GetSessionUsageResponse get_session_usage = 10;
|
|
1348
|
+
*/
|
|
1349
|
+
value: SessionResponse_GetSessionUsageResponse;
|
|
1350
|
+
case: "getSessionUsage";
|
|
1351
|
+
} | { case: undefined; value?: undefined };
|
|
1352
|
+
|
|
1353
|
+
constructor(data?: PartialMessage<SessionResponse>);
|
|
1354
|
+
|
|
1355
|
+
static readonly runtime: typeof proto3;
|
|
1356
|
+
static readonly typeName = "livekit.agent.SessionResponse";
|
|
1357
|
+
static readonly fields: FieldList;
|
|
1358
|
+
|
|
1359
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse;
|
|
1360
|
+
|
|
1361
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse;
|
|
1362
|
+
|
|
1363
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse;
|
|
1364
|
+
|
|
1365
|
+
static equals(a: SessionResponse | PlainMessage<SessionResponse> | undefined, b: SessionResponse | PlainMessage<SessionResponse> | undefined): boolean;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* @generated from message livekit.agent.SessionResponse.Pong
|
|
1370
|
+
*/
|
|
1371
|
+
export declare class SessionResponse_Pong extends Message<SessionResponse_Pong> {
|
|
1372
|
+
constructor(data?: PartialMessage<SessionResponse_Pong>);
|
|
1373
|
+
|
|
1374
|
+
static readonly runtime: typeof proto3;
|
|
1375
|
+
static readonly typeName = "livekit.agent.SessionResponse.Pong";
|
|
1376
|
+
static readonly fields: FieldList;
|
|
1377
|
+
|
|
1378
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_Pong;
|
|
1379
|
+
|
|
1380
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_Pong;
|
|
1381
|
+
|
|
1382
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_Pong;
|
|
1383
|
+
|
|
1384
|
+
static equals(a: SessionResponse_Pong | PlainMessage<SessionResponse_Pong> | undefined, b: SessionResponse_Pong | PlainMessage<SessionResponse_Pong> | undefined): boolean;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* @generated from message livekit.agent.SessionResponse.GetChatHistoryResponse
|
|
1389
|
+
*/
|
|
1390
|
+
export declare class SessionResponse_GetChatHistoryResponse extends Message<SessionResponse_GetChatHistoryResponse> {
|
|
1391
|
+
/**
|
|
1392
|
+
* @generated from field: repeated livekit.agent.ChatContext.ChatItem items = 1;
|
|
1393
|
+
*/
|
|
1394
|
+
items: ChatContext_ChatItem[];
|
|
1395
|
+
|
|
1396
|
+
constructor(data?: PartialMessage<SessionResponse_GetChatHistoryResponse>);
|
|
1397
|
+
|
|
1398
|
+
static readonly runtime: typeof proto3;
|
|
1399
|
+
static readonly typeName = "livekit.agent.SessionResponse.GetChatHistoryResponse";
|
|
1400
|
+
static readonly fields: FieldList;
|
|
1401
|
+
|
|
1402
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetChatHistoryResponse;
|
|
1403
|
+
|
|
1404
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetChatHistoryResponse;
|
|
1405
|
+
|
|
1406
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetChatHistoryResponse;
|
|
1407
|
+
|
|
1408
|
+
static equals(a: SessionResponse_GetChatHistoryResponse | PlainMessage<SessionResponse_GetChatHistoryResponse> | undefined, b: SessionResponse_GetChatHistoryResponse | PlainMessage<SessionResponse_GetChatHistoryResponse> | undefined): boolean;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @generated from message livekit.agent.SessionResponse.GetAgentInfoResponse
|
|
1413
|
+
*/
|
|
1414
|
+
export declare class SessionResponse_GetAgentInfoResponse extends Message<SessionResponse_GetAgentInfoResponse> {
|
|
1415
|
+
/**
|
|
1416
|
+
* @generated from field: string id = 1;
|
|
1417
|
+
*/
|
|
1418
|
+
id: string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* @generated from field: optional string instructions = 2;
|
|
1422
|
+
*/
|
|
1423
|
+
instructions?: string;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* @generated from field: repeated string tools = 3;
|
|
1427
|
+
*/
|
|
1428
|
+
tools: string[];
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @generated from field: repeated livekit.agent.ChatContext.ChatItem chat_ctx = 4;
|
|
1432
|
+
*/
|
|
1433
|
+
chatCtx: ChatContext_ChatItem[];
|
|
1434
|
+
|
|
1435
|
+
constructor(data?: PartialMessage<SessionResponse_GetAgentInfoResponse>);
|
|
1436
|
+
|
|
1437
|
+
static readonly runtime: typeof proto3;
|
|
1438
|
+
static readonly typeName = "livekit.agent.SessionResponse.GetAgentInfoResponse";
|
|
1439
|
+
static readonly fields: FieldList;
|
|
1440
|
+
|
|
1441
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetAgentInfoResponse;
|
|
1442
|
+
|
|
1443
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetAgentInfoResponse;
|
|
1444
|
+
|
|
1445
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetAgentInfoResponse;
|
|
1446
|
+
|
|
1447
|
+
static equals(a: SessionResponse_GetAgentInfoResponse | PlainMessage<SessionResponse_GetAgentInfoResponse> | undefined, b: SessionResponse_GetAgentInfoResponse | PlainMessage<SessionResponse_GetAgentInfoResponse> | undefined): boolean;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* @generated from message livekit.agent.SessionResponse.RunInputResponse
|
|
1452
|
+
*/
|
|
1453
|
+
export declare class SessionResponse_RunInputResponse extends Message<SessionResponse_RunInputResponse> {
|
|
1454
|
+
/**
|
|
1455
|
+
* @generated from field: repeated livekit.agent.ChatContext.ChatItem items = 1;
|
|
1456
|
+
*/
|
|
1457
|
+
items: ChatContext_ChatItem[];
|
|
1458
|
+
|
|
1459
|
+
constructor(data?: PartialMessage<SessionResponse_RunInputResponse>);
|
|
1460
|
+
|
|
1461
|
+
static readonly runtime: typeof proto3;
|
|
1462
|
+
static readonly typeName = "livekit.agent.SessionResponse.RunInputResponse";
|
|
1463
|
+
static readonly fields: FieldList;
|
|
1464
|
+
|
|
1465
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_RunInputResponse;
|
|
1466
|
+
|
|
1467
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_RunInputResponse;
|
|
1468
|
+
|
|
1469
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_RunInputResponse;
|
|
1470
|
+
|
|
1471
|
+
static equals(a: SessionResponse_RunInputResponse | PlainMessage<SessionResponse_RunInputResponse> | undefined, b: SessionResponse_RunInputResponse | PlainMessage<SessionResponse_RunInputResponse> | undefined): boolean;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* @generated from message livekit.agent.SessionResponse.GetSessionStateResponse
|
|
1476
|
+
*/
|
|
1477
|
+
export declare class SessionResponse_GetSessionStateResponse extends Message<SessionResponse_GetSessionStateResponse> {
|
|
1478
|
+
/**
|
|
1479
|
+
* @generated from field: livekit.agent.AgentState agent_state = 1;
|
|
1480
|
+
*/
|
|
1481
|
+
agentState: AgentState;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* @generated from field: livekit.agent.UserState user_state = 2;
|
|
1485
|
+
*/
|
|
1486
|
+
userState: UserState;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* @generated from field: string agent_id = 3;
|
|
1490
|
+
*/
|
|
1491
|
+
agentId: string;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* @generated from field: map<string, string> options = 4;
|
|
1495
|
+
*/
|
|
1496
|
+
options: { [key: string]: string };
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
1500
|
+
*/
|
|
1501
|
+
createdAt?: Timestamp;
|
|
1502
|
+
|
|
1503
|
+
constructor(data?: PartialMessage<SessionResponse_GetSessionStateResponse>);
|
|
1504
|
+
|
|
1505
|
+
static readonly runtime: typeof proto3;
|
|
1506
|
+
static readonly typeName = "livekit.agent.SessionResponse.GetSessionStateResponse";
|
|
1507
|
+
static readonly fields: FieldList;
|
|
1508
|
+
|
|
1509
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetSessionStateResponse;
|
|
1510
|
+
|
|
1511
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetSessionStateResponse;
|
|
1512
|
+
|
|
1513
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetSessionStateResponse;
|
|
1514
|
+
|
|
1515
|
+
static equals(a: SessionResponse_GetSessionStateResponse | PlainMessage<SessionResponse_GetSessionStateResponse> | undefined, b: SessionResponse_GetSessionStateResponse | PlainMessage<SessionResponse_GetSessionStateResponse> | undefined): boolean;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* @generated from message livekit.agent.SessionResponse.GetRTCStatsResponse
|
|
1520
|
+
*/
|
|
1521
|
+
export declare class SessionResponse_GetRTCStatsResponse extends Message<SessionResponse_GetRTCStatsResponse> {
|
|
1522
|
+
/**
|
|
1523
|
+
* @generated from field: repeated google.protobuf.Struct publisher_stats = 1;
|
|
1524
|
+
*/
|
|
1525
|
+
publisherStats: Struct[];
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* @generated from field: repeated google.protobuf.Struct subscriber_stats = 2;
|
|
1529
|
+
*/
|
|
1530
|
+
subscriberStats: Struct[];
|
|
1531
|
+
|
|
1532
|
+
constructor(data?: PartialMessage<SessionResponse_GetRTCStatsResponse>);
|
|
1533
|
+
|
|
1534
|
+
static readonly runtime: typeof proto3;
|
|
1535
|
+
static readonly typeName = "livekit.agent.SessionResponse.GetRTCStatsResponse";
|
|
1536
|
+
static readonly fields: FieldList;
|
|
1537
|
+
|
|
1538
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetRTCStatsResponse;
|
|
1539
|
+
|
|
1540
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetRTCStatsResponse;
|
|
1541
|
+
|
|
1542
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetRTCStatsResponse;
|
|
1543
|
+
|
|
1544
|
+
static equals(a: SessionResponse_GetRTCStatsResponse | PlainMessage<SessionResponse_GetRTCStatsResponse> | undefined, b: SessionResponse_GetRTCStatsResponse | PlainMessage<SessionResponse_GetRTCStatsResponse> | undefined): boolean;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* @generated from message livekit.agent.SessionResponse.GetSessionUsageResponse
|
|
1549
|
+
*/
|
|
1550
|
+
export declare class SessionResponse_GetSessionUsageResponse extends Message<SessionResponse_GetSessionUsageResponse> {
|
|
1551
|
+
/**
|
|
1552
|
+
* @generated from field: livekit.agent.AgentSessionUsage usage = 1;
|
|
1553
|
+
*/
|
|
1554
|
+
usage?: AgentSessionUsage;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* @generated from field: google.protobuf.Timestamp created_at = 2;
|
|
1558
|
+
*/
|
|
1559
|
+
createdAt?: Timestamp;
|
|
1560
|
+
|
|
1561
|
+
constructor(data?: PartialMessage<SessionResponse_GetSessionUsageResponse>);
|
|
1562
|
+
|
|
1563
|
+
static readonly runtime: typeof proto3;
|
|
1564
|
+
static readonly typeName = "livekit.agent.SessionResponse.GetSessionUsageResponse";
|
|
1565
|
+
static readonly fields: FieldList;
|
|
1566
|
+
|
|
1567
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_GetSessionUsageResponse;
|
|
1568
|
+
|
|
1569
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_GetSessionUsageResponse;
|
|
1570
|
+
|
|
1571
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_GetSessionUsageResponse;
|
|
1572
|
+
|
|
1573
|
+
static equals(a: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined, b: SessionResponse_GetSessionUsageResponse | PlainMessage<SessionResponse_GetSessionUsageResponse> | undefined): boolean;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* @generated from message livekit.agent.AgentSessionMessage
|
|
1578
|
+
*/
|
|
1579
|
+
export declare class AgentSessionMessage extends Message<AgentSessionMessage> {
|
|
1580
|
+
/**
|
|
1581
|
+
* @generated from oneof livekit.agent.AgentSessionMessage.message
|
|
1582
|
+
*/
|
|
1583
|
+
message: {
|
|
1584
|
+
/**
|
|
1585
|
+
* @generated from field: livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame audio_input = 1;
|
|
1586
|
+
*/
|
|
1587
|
+
value: AgentSessionMessage_ConsoleIO_AudioFrame;
|
|
1588
|
+
case: "audioInput";
|
|
1589
|
+
} | {
|
|
1590
|
+
/**
|
|
1591
|
+
* @generated from field: livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame audio_output = 2;
|
|
1592
|
+
*/
|
|
1593
|
+
value: AgentSessionMessage_ConsoleIO_AudioFrame;
|
|
1594
|
+
case: "audioOutput";
|
|
1595
|
+
} | {
|
|
1596
|
+
/**
|
|
1597
|
+
* @generated from field: livekit.agent.AgentSessionEvent event = 3;
|
|
1598
|
+
*/
|
|
1599
|
+
value: AgentSessionEvent;
|
|
1600
|
+
case: "event";
|
|
1601
|
+
} | {
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from field: livekit.agent.SessionRequest request = 4;
|
|
1604
|
+
*/
|
|
1605
|
+
value: SessionRequest;
|
|
1606
|
+
case: "request";
|
|
1607
|
+
} | {
|
|
1608
|
+
/**
|
|
1609
|
+
* @generated from field: livekit.agent.SessionResponse response = 5;
|
|
1610
|
+
*/
|
|
1611
|
+
value: SessionResponse;
|
|
1612
|
+
case: "response";
|
|
1613
|
+
} | {
|
|
1614
|
+
/**
|
|
1615
|
+
* @generated from field: livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush audio_playback_flush = 6;
|
|
1616
|
+
*/
|
|
1617
|
+
value: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush;
|
|
1618
|
+
case: "audioPlaybackFlush";
|
|
1619
|
+
} | {
|
|
1620
|
+
/**
|
|
1621
|
+
* @generated from field: livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear audio_playback_clear = 7;
|
|
1622
|
+
*/
|
|
1623
|
+
value: AgentSessionMessage_ConsoleIO_AudioPlaybackClear;
|
|
1624
|
+
case: "audioPlaybackClear";
|
|
1625
|
+
} | {
|
|
1626
|
+
/**
|
|
1627
|
+
* @generated from field: livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished audio_playback_finished = 8;
|
|
1628
|
+
*/
|
|
1629
|
+
value: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished;
|
|
1630
|
+
case: "audioPlaybackFinished";
|
|
1631
|
+
} | { case: undefined; value?: undefined };
|
|
1632
|
+
|
|
1633
|
+
constructor(data?: PartialMessage<AgentSessionMessage>);
|
|
1634
|
+
|
|
1635
|
+
static readonly runtime: typeof proto3;
|
|
1636
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage";
|
|
1637
|
+
static readonly fields: FieldList;
|
|
1638
|
+
|
|
1639
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage;
|
|
1640
|
+
|
|
1641
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage;
|
|
1642
|
+
|
|
1643
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage;
|
|
1644
|
+
|
|
1645
|
+
static equals(a: AgentSessionMessage | PlainMessage<AgentSessionMessage> | undefined, b: AgentSessionMessage | PlainMessage<AgentSessionMessage> | undefined): boolean;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* @generated from message livekit.agent.AgentSessionMessage.ConsoleIO
|
|
1650
|
+
*/
|
|
1651
|
+
export declare class AgentSessionMessage_ConsoleIO extends Message<AgentSessionMessage_ConsoleIO> {
|
|
1652
|
+
constructor(data?: PartialMessage<AgentSessionMessage_ConsoleIO>);
|
|
1653
|
+
|
|
1654
|
+
static readonly runtime: typeof proto3;
|
|
1655
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage.ConsoleIO";
|
|
1656
|
+
static readonly fields: FieldList;
|
|
1657
|
+
|
|
1658
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage_ConsoleIO;
|
|
1659
|
+
|
|
1660
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO;
|
|
1661
|
+
|
|
1662
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO;
|
|
1663
|
+
|
|
1664
|
+
static equals(a: AgentSessionMessage_ConsoleIO | PlainMessage<AgentSessionMessage_ConsoleIO> | undefined, b: AgentSessionMessage_ConsoleIO | PlainMessage<AgentSessionMessage_ConsoleIO> | undefined): boolean;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame
|
|
1669
|
+
*/
|
|
1670
|
+
export declare class AgentSessionMessage_ConsoleIO_AudioFrame extends Message<AgentSessionMessage_ConsoleIO_AudioFrame> {
|
|
1671
|
+
/**
|
|
1672
|
+
* @generated from field: bytes data = 1;
|
|
1673
|
+
*/
|
|
1674
|
+
data: Uint8Array;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* @generated from field: uint32 sample_rate = 2;
|
|
1678
|
+
*/
|
|
1679
|
+
sampleRate: number;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* @generated from field: uint32 num_channels = 3;
|
|
1683
|
+
*/
|
|
1684
|
+
numChannels: number;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* @generated from field: uint32 samples_per_channel = 4;
|
|
1688
|
+
*/
|
|
1689
|
+
samplesPerChannel: number;
|
|
1690
|
+
|
|
1691
|
+
constructor(data?: PartialMessage<AgentSessionMessage_ConsoleIO_AudioFrame>);
|
|
1692
|
+
|
|
1693
|
+
static readonly runtime: typeof proto3;
|
|
1694
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame";
|
|
1695
|
+
static readonly fields: FieldList;
|
|
1696
|
+
|
|
1697
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage_ConsoleIO_AudioFrame;
|
|
1698
|
+
|
|
1699
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioFrame;
|
|
1700
|
+
|
|
1701
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioFrame;
|
|
1702
|
+
|
|
1703
|
+
static equals(a: AgentSessionMessage_ConsoleIO_AudioFrame | PlainMessage<AgentSessionMessage_ConsoleIO_AudioFrame> | undefined, b: AgentSessionMessage_ConsoleIO_AudioFrame | PlainMessage<AgentSessionMessage_ConsoleIO_AudioFrame> | undefined): boolean;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush
|
|
1708
|
+
*/
|
|
1709
|
+
export declare class AgentSessionMessage_ConsoleIO_AudioPlaybackFlush extends Message<AgentSessionMessage_ConsoleIO_AudioPlaybackFlush> {
|
|
1710
|
+
constructor(data?: PartialMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFlush>);
|
|
1711
|
+
|
|
1712
|
+
static readonly runtime: typeof proto3;
|
|
1713
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush";
|
|
1714
|
+
static readonly fields: FieldList;
|
|
1715
|
+
|
|
1716
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFlush;
|
|
1717
|
+
|
|
1718
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFlush;
|
|
1719
|
+
|
|
1720
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFlush;
|
|
1721
|
+
|
|
1722
|
+
static equals(a: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFlush> | undefined, b: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFlush> | undefined): boolean;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear
|
|
1727
|
+
*/
|
|
1728
|
+
export declare class AgentSessionMessage_ConsoleIO_AudioPlaybackClear extends Message<AgentSessionMessage_ConsoleIO_AudioPlaybackClear> {
|
|
1729
|
+
constructor(data?: PartialMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackClear>);
|
|
1730
|
+
|
|
1731
|
+
static readonly runtime: typeof proto3;
|
|
1732
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear";
|
|
1733
|
+
static readonly fields: FieldList;
|
|
1734
|
+
|
|
1735
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackClear;
|
|
1736
|
+
|
|
1737
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackClear;
|
|
1738
|
+
|
|
1739
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackClear;
|
|
1740
|
+
|
|
1741
|
+
static equals(a: AgentSessionMessage_ConsoleIO_AudioPlaybackClear | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackClear> | undefined, b: AgentSessionMessage_ConsoleIO_AudioPlaybackClear | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackClear> | undefined): boolean;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished
|
|
1746
|
+
*/
|
|
1747
|
+
export declare class AgentSessionMessage_ConsoleIO_AudioPlaybackFinished extends Message<AgentSessionMessage_ConsoleIO_AudioPlaybackFinished> {
|
|
1748
|
+
constructor(data?: PartialMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFinished>);
|
|
1749
|
+
|
|
1750
|
+
static readonly runtime: typeof proto3;
|
|
1751
|
+
static readonly typeName = "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished";
|
|
1752
|
+
static readonly fields: FieldList;
|
|
1753
|
+
|
|
1754
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFinished;
|
|
1755
|
+
|
|
1756
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFinished;
|
|
1757
|
+
|
|
1758
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionMessage_ConsoleIO_AudioPlaybackFinished;
|
|
1759
|
+
|
|
1760
|
+
static equals(a: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFinished> | undefined, b: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished | PlainMessage<AgentSessionMessage_ConsoleIO_AudioPlaybackFinished> | undefined): boolean;
|
|
1761
|
+
}
|
|
1762
|
+
|