@livekit/protocol 1.53.0 → 1.53.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 +146 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +339 -6
- package/dist/index.d.mts +339 -6
- package/dist/index.d.ts +339 -6
- package/dist/index.mjs +142 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +40 -0
- package/src/gen/agent/livekit_agent_session_pb.js +18 -0
- package/src/gen/livekit_agent_pb.d.ts +60 -0
- package/src/gen/livekit_agent_pb.js +17 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +163 -3
- package/src/gen/livekit_agent_simulation_pb.js +51 -2
- package/src/gen/livekit_egress_pb.d.ts +62 -1
- package/src/gen/livekit_egress_pb.js +15 -0
- package/src/gen/livekit_internal_pb.d.ts +14 -0
- package/src/gen/livekit_internal_pb.js +2 -0
- package/src/gen/livekit_metrics_pb.d.ts +9 -0
- package/src/gen/livekit_metrics_pb.js +1 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -131,6 +131,46 @@ export declare enum ToolReplyStatus {
|
|
|
131
131
|
TR_SKIPPED = 3,
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Why an agent session closed. Agent evals read it from the recording upload's session
|
|
136
|
+
* summary (MetricsRecordingHeader.session_summary), as the value name.
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum livekit.agent.CloseReason
|
|
139
|
+
*/
|
|
140
|
+
export declare enum CloseReason {
|
|
141
|
+
/**
|
|
142
|
+
* not reported, or an SDK-specific reason
|
|
143
|
+
*
|
|
144
|
+
* @generated from enum value: CR_UNKNOWN = 0;
|
|
145
|
+
*/
|
|
146
|
+
CR_UNKNOWN = 0,
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: CR_ERROR = 1;
|
|
150
|
+
*/
|
|
151
|
+
CR_ERROR = 1,
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @generated from enum value: CR_JOB_SHUTDOWN = 2;
|
|
155
|
+
*/
|
|
156
|
+
CR_JOB_SHUTDOWN = 2,
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from enum value: CR_PARTICIPANT_DISCONNECTED = 3;
|
|
160
|
+
*/
|
|
161
|
+
CR_PARTICIPANT_DISCONNECTED = 3,
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: CR_USER_INITIATED = 4;
|
|
165
|
+
*/
|
|
166
|
+
CR_USER_INITIATED = 4,
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: CR_COMPLETED = 5;
|
|
170
|
+
*/
|
|
171
|
+
CR_COMPLETED = 5,
|
|
172
|
+
}
|
|
173
|
+
|
|
134
174
|
/**
|
|
135
175
|
* @generated from enum livekit.agent.AmdCategory
|
|
136
176
|
*/
|
|
@@ -70,6 +70,24 @@ export const ToolReplyStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
70
70
|
],
|
|
71
71
|
);
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Why an agent session closed. Agent evals read it from the recording upload's session
|
|
75
|
+
* summary (MetricsRecordingHeader.session_summary), as the value name.
|
|
76
|
+
*
|
|
77
|
+
* @generated from enum livekit.agent.CloseReason
|
|
78
|
+
*/
|
|
79
|
+
export const CloseReason = /*@__PURE__*/ proto3.makeEnum(
|
|
80
|
+
"livekit.agent.CloseReason",
|
|
81
|
+
[
|
|
82
|
+
{no: 0, name: "CR_UNKNOWN"},
|
|
83
|
+
{no: 1, name: "CR_ERROR"},
|
|
84
|
+
{no: 2, name: "CR_JOB_SHUTDOWN"},
|
|
85
|
+
{no: 3, name: "CR_PARTICIPANT_DISCONNECTED"},
|
|
86
|
+
{no: 4, name: "CR_USER_INITIATED"},
|
|
87
|
+
{no: 5, name: "CR_COMPLETED"},
|
|
88
|
+
],
|
|
89
|
+
);
|
|
90
|
+
|
|
73
91
|
/**
|
|
74
92
|
* @generated from enum livekit.agent.AmdCategory
|
|
75
93
|
*/
|
|
@@ -79,6 +79,51 @@ export declare enum JobStatus {
|
|
|
79
79
|
* @generated from enum value: JS_FAILED = 3;
|
|
80
80
|
*/
|
|
81
81
|
JS_FAILED = 3,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* the job ended before it was assigned to an agent
|
|
85
|
+
*
|
|
86
|
+
* @generated from enum value: JS_CANCELLED = 4;
|
|
87
|
+
*/
|
|
88
|
+
JS_CANCELLED = 4,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum livekit.JobStateReason
|
|
93
|
+
*/
|
|
94
|
+
export declare enum JobStateReason {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: JSR_UNSPECIFIED = 0;
|
|
97
|
+
*/
|
|
98
|
+
JSR_UNSPECIFIED = 0,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* no agent was available to accept the job
|
|
102
|
+
*
|
|
103
|
+
* @generated from enum value: JSR_NO_CAPACITY = 1;
|
|
104
|
+
*/
|
|
105
|
+
JSR_NO_CAPACITY = 1,
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* the room closed before an agent was assigned
|
|
109
|
+
*
|
|
110
|
+
* @generated from enum value: JSR_ROOM_CLOSED = 2;
|
|
111
|
+
*/
|
|
112
|
+
JSR_ROOM_CLOSED = 2,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* the dispatch was deleted before an agent was assigned
|
|
116
|
+
*
|
|
117
|
+
* @generated from enum value: JSR_DISPATCH_DELETED = 3;
|
|
118
|
+
*/
|
|
119
|
+
JSR_DISPATCH_DELETED = 3,
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* the job failed and is being dispatched again
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: JSR_RETRYING = 4;
|
|
125
|
+
*/
|
|
126
|
+
JSR_RETRYING = 4,
|
|
82
127
|
}
|
|
83
128
|
|
|
84
129
|
/**
|
|
@@ -210,6 +255,13 @@ export declare class JobState extends Message<JobState> {
|
|
|
210
255
|
*/
|
|
211
256
|
agentId: string;
|
|
212
257
|
|
|
258
|
+
/**
|
|
259
|
+
* why the job has no agent, for JS_PENDING and JS_CANCELLED jobs
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: livekit.JobStateReason reason = 9;
|
|
262
|
+
*/
|
|
263
|
+
reason: JobStateReason;
|
|
264
|
+
|
|
213
265
|
constructor(data?: PartialMessage<JobState>);
|
|
214
266
|
|
|
215
267
|
static readonly runtime: typeof proto3;
|
|
@@ -581,6 +633,14 @@ export declare class MigrateJobRequest extends Message<MigrateJobRequest> {
|
|
|
581
633
|
*/
|
|
582
634
|
jobIds: string[];
|
|
583
635
|
|
|
636
|
+
/**
|
|
637
|
+
* the jobs in job_ids as they were assigned, with state.participant_identity
|
|
638
|
+
* set to the identity the worker accepted them with
|
|
639
|
+
*
|
|
640
|
+
* @generated from field: repeated livekit.Job jobs = 3;
|
|
641
|
+
*/
|
|
642
|
+
jobs: Job[];
|
|
643
|
+
|
|
584
644
|
constructor(data?: PartialMessage<MigrateJobRequest>);
|
|
585
645
|
|
|
586
646
|
static readonly runtime: typeof proto3;
|
|
@@ -53,6 +53,21 @@ export const JobStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
53
53
|
{no: 1, name: "JS_RUNNING"},
|
|
54
54
|
{no: 2, name: "JS_SUCCESS"},
|
|
55
55
|
{no: 3, name: "JS_FAILED"},
|
|
56
|
+
{no: 4, name: "JS_CANCELLED"},
|
|
57
|
+
],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum livekit.JobStateReason
|
|
62
|
+
*/
|
|
63
|
+
export const JobStateReason = /*@__PURE__*/ proto3.makeEnum(
|
|
64
|
+
"livekit.JobStateReason",
|
|
65
|
+
[
|
|
66
|
+
{no: 0, name: "JSR_UNSPECIFIED"},
|
|
67
|
+
{no: 1, name: "JSR_NO_CAPACITY"},
|
|
68
|
+
{no: 2, name: "JSR_ROOM_CLOSED"},
|
|
69
|
+
{no: 3, name: "JSR_DISPATCH_DELETED"},
|
|
70
|
+
{no: 4, name: "JSR_RETRYING"},
|
|
56
71
|
],
|
|
57
72
|
);
|
|
58
73
|
|
|
@@ -92,6 +107,7 @@ export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
92
107
|
{ no: 6, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
108
|
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
94
109
|
{ no: 8, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
|
+
{ no: 9, name: "reason", kind: "enum", T: proto3.getEnumType(JobStateReason) },
|
|
95
111
|
],
|
|
96
112
|
);
|
|
97
113
|
|
|
@@ -201,6 +217,7 @@ export const MigrateJobRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
201
217
|
"livekit.MigrateJobRequest",
|
|
202
218
|
() => [
|
|
203
219
|
{ no: 2, name: "job_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
220
|
+
{ no: 3, name: "jobs", kind: "message", T: Job, repeated: true },
|
|
204
221
|
],
|
|
205
222
|
);
|
|
206
223
|
|
|
@@ -407,6 +407,13 @@ export declare class SimulationRun_Job extends Message<SimulationRun_Job> {
|
|
|
407
407
|
*/
|
|
408
408
|
sample: number;
|
|
409
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Set on a failed job whose cause is known; error stays the detail.
|
|
412
|
+
*
|
|
413
|
+
* @generated from field: livekit.SimulationRun.Job.FailureReason failure_reason = 19;
|
|
414
|
+
*/
|
|
415
|
+
failureReason: SimulationRun_Job_FailureReason;
|
|
416
|
+
|
|
410
417
|
constructor(data?: PartialMessage<SimulationRun_Job>);
|
|
411
418
|
|
|
412
419
|
static readonly runtime: typeof proto3;
|
|
@@ -452,6 +459,23 @@ export declare enum SimulationRun_Job_Status {
|
|
|
452
459
|
CANCELLED = 4,
|
|
453
460
|
}
|
|
454
461
|
|
|
462
|
+
/**
|
|
463
|
+
* @generated from enum livekit.SimulationRun.Job.FailureReason
|
|
464
|
+
*/
|
|
465
|
+
export declare enum SimulationRun_Job_FailureReason {
|
|
466
|
+
/**
|
|
467
|
+
* @generated from enum value: FAILURE_REASON_UNSPECIFIED = 0;
|
|
468
|
+
*/
|
|
469
|
+
UNSPECIFIED = 0,
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* The agent under test never joined the simulation's room.
|
|
473
|
+
*
|
|
474
|
+
* @generated from enum value: FAILURE_REASON_AGENT_JOIN_TIMEOUT = 1;
|
|
475
|
+
*/
|
|
476
|
+
AGENT_JOIN_TIMEOUT = 1,
|
|
477
|
+
}
|
|
478
|
+
|
|
455
479
|
/**
|
|
456
480
|
* @generated from message livekit.SimulationRun.Job.Usage
|
|
457
481
|
*/
|
|
@@ -585,6 +609,36 @@ export declare class SimulationRun_JobMetrics extends Message<SimulationRun_JobM
|
|
|
585
609
|
*/
|
|
586
610
|
conversationProgression?: number;
|
|
587
611
|
|
|
612
|
+
/**
|
|
613
|
+
* How the call ended. A failing end also sets the job's error.
|
|
614
|
+
*
|
|
615
|
+
* @generated from field: livekit.SimulationRun.JobMetrics.EndReason end_reason = 21;
|
|
616
|
+
*/
|
|
617
|
+
endReason: SimulationRun_JobMetrics_EndReason;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* The simulated caller's language, as a language tag: what it spoke or wrote.
|
|
621
|
+
*
|
|
622
|
+
* @generated from field: string caller_language = 22;
|
|
623
|
+
*/
|
|
624
|
+
callerLanguage: string;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Audio only: the language the caller transcribed the agent in; "" means
|
|
628
|
+
* caller_language.
|
|
629
|
+
*
|
|
630
|
+
* @generated from field: string caller_listen_language = 23;
|
|
631
|
+
*/
|
|
632
|
+
callerListenLanguage: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Audio only: what the caller's audio went through before the agent heard
|
|
636
|
+
* it. Absent for a clean call.
|
|
637
|
+
*
|
|
638
|
+
* @generated from field: livekit.SimulationImpairments impairments = 24;
|
|
639
|
+
*/
|
|
640
|
+
impairments?: SimulationImpairments;
|
|
641
|
+
|
|
588
642
|
constructor(data?: PartialMessage<SimulationRun_JobMetrics>);
|
|
589
643
|
|
|
590
644
|
static readonly runtime: typeof proto3;
|
|
@@ -600,6 +654,58 @@ export declare class SimulationRun_JobMetrics extends Message<SimulationRun_JobM
|
|
|
600
654
|
static equals(a: SimulationRun_JobMetrics | PlainMessage<SimulationRun_JobMetrics> | undefined, b: SimulationRun_JobMetrics | PlainMessage<SimulationRun_JobMetrics> | undefined): boolean;
|
|
601
655
|
}
|
|
602
656
|
|
|
657
|
+
/**
|
|
658
|
+
* @generated from enum livekit.SimulationRun.JobMetrics.EndReason
|
|
659
|
+
*/
|
|
660
|
+
export declare enum SimulationRun_JobMetrics_EndReason {
|
|
661
|
+
/**
|
|
662
|
+
* @generated from enum value: END_REASON_UNSPECIFIED = 0;
|
|
663
|
+
*/
|
|
664
|
+
UNSPECIFIED = 0,
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* the caller finished the scenario
|
|
668
|
+
*
|
|
669
|
+
* @generated from enum value: END_REASON_SCENARIO_COMPLETED = 1;
|
|
670
|
+
*/
|
|
671
|
+
SCENARIO_COMPLETED = 1,
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* the agent under test ended the call
|
|
675
|
+
*
|
|
676
|
+
* @generated from enum value: END_REASON_AGENT_ENDED = 2;
|
|
677
|
+
*/
|
|
678
|
+
AGENT_ENDED = 2,
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* the agent under test went silent
|
|
682
|
+
*
|
|
683
|
+
* @generated from enum value: END_REASON_INACTIVITY = 3;
|
|
684
|
+
*/
|
|
685
|
+
INACTIVITY = 3,
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* the caller ran out of turns
|
|
689
|
+
*
|
|
690
|
+
* @generated from enum value: END_REASON_TURN_LIMIT = 4;
|
|
691
|
+
*/
|
|
692
|
+
TURN_LIMIT = 4,
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* the agent under test kept replying with nothing
|
|
696
|
+
*
|
|
697
|
+
* @generated from enum value: END_REASON_EMPTY_RESPONSE = 5;
|
|
698
|
+
*/
|
|
699
|
+
EMPTY_RESPONSE = 5,
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* the agent under test failed mid-call
|
|
703
|
+
*
|
|
704
|
+
* @generated from enum value: END_REASON_AGENT_ERROR = 6;
|
|
705
|
+
*/
|
|
706
|
+
AGENT_ERROR = 6,
|
|
707
|
+
}
|
|
708
|
+
|
|
603
709
|
/**
|
|
604
710
|
* The agent's perception of the caller. Audio only.
|
|
605
711
|
*
|
|
@@ -947,6 +1053,13 @@ export declare class SimulationRun_JobMetrics_Conversation extends Message<Simul
|
|
|
947
1053
|
*/
|
|
948
1054
|
e2eLatencyMs?: number;
|
|
949
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* the caller's acknowledgements over the agent's speech
|
|
1058
|
+
*
|
|
1059
|
+
* @generated from field: optional uint32 backchannel_count = 16;
|
|
1060
|
+
*/
|
|
1061
|
+
backchannelCount?: number;
|
|
1062
|
+
|
|
950
1063
|
constructor(data?: PartialMessage<SimulationRun_JobMetrics_Conversation>);
|
|
951
1064
|
|
|
952
1065
|
static readonly runtime: typeof proto3;
|
|
@@ -983,6 +1096,15 @@ export declare class SimulationRun_JobMetrics_Turn extends Message<SimulationRun
|
|
|
983
1096
|
*/
|
|
984
1097
|
role: ChatRole;
|
|
985
1098
|
|
|
1099
|
+
/**
|
|
1100
|
+
* The words the judges read for this turn: the speaker's own, or as the
|
|
1101
|
+
* other side heard them when those are unknown (the agent's, without a
|
|
1102
|
+
* RemoteSession).
|
|
1103
|
+
*
|
|
1104
|
+
* @generated from field: string text = 18;
|
|
1105
|
+
*/
|
|
1106
|
+
text: string;
|
|
1107
|
+
|
|
986
1108
|
/**
|
|
987
1109
|
* audio only; relative to t0; unset if the turn could not be aligned to the audio
|
|
988
1110
|
*
|
|
@@ -1324,6 +1446,7 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
|
|
|
1324
1446
|
|
|
1325
1447
|
/**
|
|
1326
1448
|
* Impairments applied to the simulated user's audio; AUDIO mode only.
|
|
1449
|
+
* TODO(u9g): migrate these to SimulationImpairments.
|
|
1327
1450
|
*
|
|
1328
1451
|
* @generated from field: bool background_noise = 10;
|
|
1329
1452
|
*/
|
|
@@ -1914,7 +2037,7 @@ export declare class Scenario extends Message<Scenario> {
|
|
|
1914
2037
|
agentExpectations: string;
|
|
1915
2038
|
|
|
1916
2039
|
/**
|
|
1917
|
-
*
|
|
2040
|
+
* Surfaced to the agent under test as SimulationContext scenario tags.
|
|
1918
2041
|
*
|
|
1919
2042
|
* @generated from field: map<string, string> tags = 4;
|
|
1920
2043
|
*/
|
|
@@ -2068,8 +2191,45 @@ export declare class ScenarioGroup extends Message<ScenarioGroup> {
|
|
|
2068
2191
|
}
|
|
2069
2192
|
|
|
2070
2193
|
/**
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2194
|
+
* What the simulated caller's audio went through before the agent heard it.
|
|
2195
|
+
*
|
|
2196
|
+
* @generated from message livekit.SimulationImpairments
|
|
2197
|
+
*/
|
|
2198
|
+
export declare class SimulationImpairments extends Message<SimulationImpairments> {
|
|
2199
|
+
/**
|
|
2200
|
+
* @generated from field: bool background_noise = 1;
|
|
2201
|
+
*/
|
|
2202
|
+
backgroundNoise: boolean;
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* @generated from field: bool low_quality_microphone = 2;
|
|
2206
|
+
*/
|
|
2207
|
+
lowQualityMicrophone: boolean;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* @generated from field: bool packet_loss = 3;
|
|
2211
|
+
*/
|
|
2212
|
+
packetLoss: boolean;
|
|
2213
|
+
|
|
2214
|
+
constructor(data?: PartialMessage<SimulationImpairments>);
|
|
2215
|
+
|
|
2216
|
+
static readonly runtime: typeof proto3;
|
|
2217
|
+
static readonly typeName = "livekit.SimulationImpairments";
|
|
2218
|
+
static readonly fields: FieldList;
|
|
2219
|
+
|
|
2220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationImpairments;
|
|
2221
|
+
|
|
2222
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationImpairments;
|
|
2223
|
+
|
|
2224
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationImpairments;
|
|
2225
|
+
|
|
2226
|
+
static equals(a: SimulationImpairments | PlainMessage<SimulationImpairments> | undefined, b: SimulationImpairments | PlainMessage<SimulationImpairments> | undefined): boolean;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Carried (protojson-encoded) in the Job's lk.simulator.dispatch attribute, set
|
|
2231
|
+
* on the agent dispatch, so the agent under test can read the scenario + run
|
|
2232
|
+
* identity synchronously at job start.
|
|
2073
2233
|
*
|
|
2074
2234
|
* @generated from message livekit.SimulationDispatch
|
|
2075
2235
|
*/
|
|
@@ -132,6 +132,7 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
132
132
|
{ no: 14, name: "metrics", kind: "message", T: SimulationRun_JobMetrics },
|
|
133
133
|
{ no: 15, name: "scenario_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
134
|
{ no: 16, name: "sample", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
135
|
+
{ no: 19, name: "failure_reason", kind: "enum", T: proto3.getEnumType(SimulationRun_Job_FailureReason) },
|
|
135
136
|
],
|
|
136
137
|
{localName: "SimulationRun_Job"},
|
|
137
138
|
);
|
|
@@ -150,6 +151,17 @@ export const SimulationRun_Job_Status = /*@__PURE__*/ proto3.makeEnum(
|
|
|
150
151
|
],
|
|
151
152
|
);
|
|
152
153
|
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum livekit.SimulationRun.Job.FailureReason
|
|
156
|
+
*/
|
|
157
|
+
export const SimulationRun_Job_FailureReason = /*@__PURE__*/ proto3.makeEnum(
|
|
158
|
+
"livekit.SimulationRun.Job.FailureReason",
|
|
159
|
+
[
|
|
160
|
+
{no: 0, name: "FAILURE_REASON_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
161
|
+
{no: 1, name: "FAILURE_REASON_AGENT_JOIN_TIMEOUT", localName: "AGENT_JOIN_TIMEOUT"},
|
|
162
|
+
],
|
|
163
|
+
);
|
|
164
|
+
|
|
153
165
|
/**
|
|
154
166
|
* @generated from message livekit.SimulationRun.Job.Usage
|
|
155
167
|
*/
|
|
@@ -184,10 +196,30 @@ export const SimulationRun_JobMetrics = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
184
196
|
{ no: 17, name: "redundant_statements", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
185
197
|
{ no: 18, name: "poor_question_quality", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
186
198
|
{ no: 19, name: "conversation_progression", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
199
|
+
{ no: 21, name: "end_reason", kind: "enum", T: proto3.getEnumType(SimulationRun_JobMetrics_EndReason) },
|
|
200
|
+
{ no: 22, name: "caller_language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
201
|
+
{ no: 23, name: "caller_listen_language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
+
{ no: 24, name: "impairments", kind: "message", T: SimulationImpairments },
|
|
187
203
|
],
|
|
188
204
|
{localName: "SimulationRun_JobMetrics"},
|
|
189
205
|
);
|
|
190
206
|
|
|
207
|
+
/**
|
|
208
|
+
* @generated from enum livekit.SimulationRun.JobMetrics.EndReason
|
|
209
|
+
*/
|
|
210
|
+
export const SimulationRun_JobMetrics_EndReason = /*@__PURE__*/ proto3.makeEnum(
|
|
211
|
+
"livekit.SimulationRun.JobMetrics.EndReason",
|
|
212
|
+
[
|
|
213
|
+
{no: 0, name: "END_REASON_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
214
|
+
{no: 1, name: "END_REASON_SCENARIO_COMPLETED", localName: "SCENARIO_COMPLETED"},
|
|
215
|
+
{no: 2, name: "END_REASON_AGENT_ENDED", localName: "AGENT_ENDED"},
|
|
216
|
+
{no: 3, name: "END_REASON_INACTIVITY", localName: "INACTIVITY"},
|
|
217
|
+
{no: 4, name: "END_REASON_TURN_LIMIT", localName: "TURN_LIMIT"},
|
|
218
|
+
{no: 5, name: "END_REASON_EMPTY_RESPONSE", localName: "EMPTY_RESPONSE"},
|
|
219
|
+
{no: 6, name: "END_REASON_AGENT_ERROR", localName: "AGENT_ERROR"},
|
|
220
|
+
],
|
|
221
|
+
);
|
|
222
|
+
|
|
191
223
|
/**
|
|
192
224
|
* The agent's perception of the caller. Audio only.
|
|
193
225
|
*
|
|
@@ -272,6 +304,7 @@ export const SimulationRun_JobMetrics_Conversation = /*@__PURE__*/ proto3.makeMe
|
|
|
272
304
|
{ no: 12, name: "unanswered_turns", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
273
305
|
{ no: 13, name: "false_interruption_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
274
306
|
{ no: 15, name: "e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
307
|
+
{ no: 16, name: "backchannel_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
275
308
|
],
|
|
276
309
|
{localName: "SimulationRun_JobMetrics_Conversation"},
|
|
277
310
|
);
|
|
@@ -287,6 +320,7 @@ export const SimulationRun_JobMetrics_Turn = /*@__PURE__*/ proto3.makeMessageTyp
|
|
|
287
320
|
() => [
|
|
288
321
|
{ no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
289
322
|
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(ChatRole) },
|
|
323
|
+
{ no: 18, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
290
324
|
{ no: 3, name: "start_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
291
325
|
{ no: 4, name: "end_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
292
326
|
{ no: 5, name: "stt_delay_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
@@ -665,8 +699,23 @@ export const ScenarioGroup = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
665
699
|
);
|
|
666
700
|
|
|
667
701
|
/**
|
|
668
|
-
*
|
|
669
|
-
*
|
|
702
|
+
* What the simulated caller's audio went through before the agent heard it.
|
|
703
|
+
*
|
|
704
|
+
* @generated from message livekit.SimulationImpairments
|
|
705
|
+
*/
|
|
706
|
+
export const SimulationImpairments = /*@__PURE__*/ proto3.makeMessageType(
|
|
707
|
+
"livekit.SimulationImpairments",
|
|
708
|
+
() => [
|
|
709
|
+
{ no: 1, name: "background_noise", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
710
|
+
{ no: 2, name: "low_quality_microphone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
711
|
+
{ no: 3, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
712
|
+
],
|
|
713
|
+
);
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Carried (protojson-encoded) in the Job's lk.simulator.dispatch attribute, set
|
|
717
|
+
* on the agent dispatch, so the agent under test can read the scenario + run
|
|
718
|
+
* identity synchronously at job start.
|
|
670
719
|
*
|
|
671
720
|
* @generated from message livekit.SimulationDispatch
|
|
672
721
|
*/
|
|
@@ -173,9 +173,18 @@ export declare enum SegmentedFileProtocol {
|
|
|
173
173
|
DEFAULT_SEGMENTED_FILE_PROTOCOL = 0,
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
+
* MPEG-TS segments
|
|
177
|
+
*
|
|
176
178
|
* @generated from enum value: HLS_PROTOCOL = 1;
|
|
177
179
|
*/
|
|
178
180
|
HLS_PROTOCOL = 1,
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* fragmented MP4 segments
|
|
184
|
+
*
|
|
185
|
+
* @generated from enum value: HLS_FMP4_PROTOCOL = 2;
|
|
186
|
+
*/
|
|
187
|
+
HLS_FMP4_PROTOCOL = 2,
|
|
179
188
|
}
|
|
180
189
|
|
|
181
190
|
/**
|
|
@@ -894,12 +903,19 @@ export declare class StreamOutput extends Message<StreamOutput> {
|
|
|
894
903
|
protocol: StreamProtocol;
|
|
895
904
|
|
|
896
905
|
/**
|
|
897
|
-
* required
|
|
906
|
+
* urls or destinations required
|
|
898
907
|
*
|
|
899
908
|
* @generated from field: repeated string urls = 2;
|
|
900
909
|
*/
|
|
901
910
|
urls: string[];
|
|
902
911
|
|
|
912
|
+
/**
|
|
913
|
+
* urls or destinations required
|
|
914
|
+
*
|
|
915
|
+
* @generated from field: repeated livekit.StreamDestination destinations = 3;
|
|
916
|
+
*/
|
|
917
|
+
destinations: StreamDestination[];
|
|
918
|
+
|
|
903
919
|
constructor(data?: PartialMessage<StreamOutput>);
|
|
904
920
|
|
|
905
921
|
static readonly runtime: typeof proto3;
|
|
@@ -915,6 +931,39 @@ export declare class StreamOutput extends Message<StreamOutput> {
|
|
|
915
931
|
static equals(a: StreamOutput | PlainMessage<StreamOutput> | undefined, b: StreamOutput | PlainMessage<StreamOutput> | undefined): boolean;
|
|
916
932
|
}
|
|
917
933
|
|
|
934
|
+
/**
|
|
935
|
+
* @generated from message livekit.StreamDestination
|
|
936
|
+
*/
|
|
937
|
+
export declare class StreamDestination extends Message<StreamDestination> {
|
|
938
|
+
/**
|
|
939
|
+
* required
|
|
940
|
+
*
|
|
941
|
+
* @generated from field: string id = 1;
|
|
942
|
+
*/
|
|
943
|
+
id: string;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* required
|
|
947
|
+
*
|
|
948
|
+
* @generated from field: string url = 2;
|
|
949
|
+
*/
|
|
950
|
+
url: string;
|
|
951
|
+
|
|
952
|
+
constructor(data?: PartialMessage<StreamDestination>);
|
|
953
|
+
|
|
954
|
+
static readonly runtime: typeof proto3;
|
|
955
|
+
static readonly typeName = "livekit.StreamDestination";
|
|
956
|
+
static readonly fields: FieldList;
|
|
957
|
+
|
|
958
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamDestination;
|
|
959
|
+
|
|
960
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamDestination;
|
|
961
|
+
|
|
962
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamDestination;
|
|
963
|
+
|
|
964
|
+
static equals(a: StreamDestination | PlainMessage<StreamDestination> | undefined, b: StreamDestination | PlainMessage<StreamDestination> | undefined): boolean;
|
|
965
|
+
}
|
|
966
|
+
|
|
918
967
|
/**
|
|
919
968
|
* Used to generate HLS segments or other kind of segmented output
|
|
920
969
|
*
|
|
@@ -1735,6 +1784,13 @@ export declare class StreamInfo extends Message<StreamInfo> {
|
|
|
1735
1784
|
*/
|
|
1736
1785
|
retries: number;
|
|
1737
1786
|
|
|
1787
|
+
/**
|
|
1788
|
+
* StreamDestination.id this stream was started from; empty for plain urls
|
|
1789
|
+
*
|
|
1790
|
+
* @generated from field: string id = 9;
|
|
1791
|
+
*/
|
|
1792
|
+
id: string;
|
|
1793
|
+
|
|
1738
1794
|
constructor(data?: PartialMessage<StreamInfo>);
|
|
1739
1795
|
|
|
1740
1796
|
static readonly runtime: typeof proto3;
|
|
@@ -2745,6 +2801,11 @@ export declare class UpdateStreamRequest extends Message<UpdateStreamRequest> {
|
|
|
2745
2801
|
*/
|
|
2746
2802
|
removeOutputUrls: string[];
|
|
2747
2803
|
|
|
2804
|
+
/**
|
|
2805
|
+
* @generated from field: repeated livekit.StreamDestination add_destinations = 4;
|
|
2806
|
+
*/
|
|
2807
|
+
addDestinations: StreamDestination[];
|
|
2808
|
+
|
|
2748
2809
|
constructor(data?: PartialMessage<UpdateStreamRequest>);
|
|
2749
2810
|
|
|
2750
2811
|
static readonly runtime: typeof proto3;
|
|
@@ -84,6 +84,7 @@ export const SegmentedFileProtocol = /*@__PURE__*/ proto3.makeEnum(
|
|
|
84
84
|
[
|
|
85
85
|
{no: 0, name: "DEFAULT_SEGMENTED_FILE_PROTOCOL"},
|
|
86
86
|
{no: 1, name: "HLS_PROTOCOL"},
|
|
87
|
+
{no: 2, name: "HLS_FMP4_PROTOCOL"},
|
|
87
88
|
],
|
|
88
89
|
);
|
|
89
90
|
|
|
@@ -331,6 +332,18 @@ export const StreamOutput = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
331
332
|
() => [
|
|
332
333
|
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(StreamProtocol) },
|
|
333
334
|
{ no: 2, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
335
|
+
{ no: 3, name: "destinations", kind: "message", T: StreamDestination, repeated: true },
|
|
336
|
+
],
|
|
337
|
+
);
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @generated from message livekit.StreamDestination
|
|
341
|
+
*/
|
|
342
|
+
export const StreamDestination = /*@__PURE__*/ proto3.makeMessageType(
|
|
343
|
+
"livekit.StreamDestination",
|
|
344
|
+
() => [
|
|
345
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
346
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
334
347
|
],
|
|
335
348
|
);
|
|
336
349
|
|
|
@@ -548,6 +561,7 @@ export const StreamInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
548
561
|
{ no: 6, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
549
562
|
{ no: 7, name: "last_retry_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
550
563
|
{ no: 8, name: "retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
564
|
+
{ no: 9, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
551
565
|
],
|
|
552
566
|
);
|
|
553
567
|
|
|
@@ -811,6 +825,7 @@ export const UpdateStreamRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
811
825
|
{ no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
812
826
|
{ no: 2, name: "add_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
813
827
|
{ no: 3, name: "remove_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
828
|
+
{ no: 4, name: "add_destinations", kind: "message", T: StreamDestination, repeated: true },
|
|
814
829
|
],
|
|
815
830
|
);
|
|
816
831
|
|