@livekit/protocol 1.53.0 → 1.53.2
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 +286 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +585 -11
- package/dist/index.d.mts +585 -11
- package/dist/index.d.ts +585 -11
- package/dist/index.mjs +279 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- 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_dispatch_pb.d.ts +38 -0
- package/src/gen/livekit_agent_dispatch_pb.js +16 -0
- package/src/gen/livekit_agent_pb.d.ts +167 -0
- package/src/gen/livekit_agent_pb.js +42 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +184 -3
- package/src/gen/livekit_agent_simulation_pb.js +54 -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_sip_pb.d.ts +80 -5
- package/src/gen/livekit_sip_pb.js +22 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
|
@@ -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
|
*/
|
|
@@ -1353,6 +1476,27 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
|
|
|
1353
1476
|
*/
|
|
1354
1477
|
sampling?: SimulationRun_SamplingOptions;
|
|
1355
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* When set, every job dials this number over SIP instead of dispatching
|
|
1481
|
+
* agent_name, as CreateSIPParticipantRequest would. AUDIO mode only.
|
|
1482
|
+
*
|
|
1483
|
+
* @generated from field: string sip_call_to = 15;
|
|
1484
|
+
*/
|
|
1485
|
+
sipCallTo: string;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Outbound trunk to dial through. Empty dials from sip_number, which must
|
|
1489
|
+
* then be a LiveKit phone number the project owns.
|
|
1490
|
+
*
|
|
1491
|
+
* @generated from field: string sip_trunk_id = 16;
|
|
1492
|
+
*/
|
|
1493
|
+
sipTrunkId: string;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* @generated from field: string sip_number = 17;
|
|
1497
|
+
*/
|
|
1498
|
+
sipNumber: string;
|
|
1499
|
+
|
|
1356
1500
|
constructor(data?: PartialMessage<SimulationRun_Create_Request>);
|
|
1357
1501
|
|
|
1358
1502
|
static readonly runtime: typeof proto3;
|
|
@@ -1914,7 +2058,7 @@ export declare class Scenario extends Message<Scenario> {
|
|
|
1914
2058
|
agentExpectations: string;
|
|
1915
2059
|
|
|
1916
2060
|
/**
|
|
1917
|
-
*
|
|
2061
|
+
* Surfaced to the agent under test as SimulationContext scenario tags.
|
|
1918
2062
|
*
|
|
1919
2063
|
* @generated from field: map<string, string> tags = 4;
|
|
1920
2064
|
*/
|
|
@@ -2068,8 +2212,45 @@ export declare class ScenarioGroup extends Message<ScenarioGroup> {
|
|
|
2068
2212
|
}
|
|
2069
2213
|
|
|
2070
2214
|
/**
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2215
|
+
* What the simulated caller's audio went through before the agent heard it.
|
|
2216
|
+
*
|
|
2217
|
+
* @generated from message livekit.SimulationImpairments
|
|
2218
|
+
*/
|
|
2219
|
+
export declare class SimulationImpairments extends Message<SimulationImpairments> {
|
|
2220
|
+
/**
|
|
2221
|
+
* @generated from field: bool background_noise = 1;
|
|
2222
|
+
*/
|
|
2223
|
+
backgroundNoise: boolean;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* @generated from field: bool low_quality_microphone = 2;
|
|
2227
|
+
*/
|
|
2228
|
+
lowQualityMicrophone: boolean;
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* @generated from field: bool packet_loss = 3;
|
|
2232
|
+
*/
|
|
2233
|
+
packetLoss: boolean;
|
|
2234
|
+
|
|
2235
|
+
constructor(data?: PartialMessage<SimulationImpairments>);
|
|
2236
|
+
|
|
2237
|
+
static readonly runtime: typeof proto3;
|
|
2238
|
+
static readonly typeName = "livekit.SimulationImpairments";
|
|
2239
|
+
static readonly fields: FieldList;
|
|
2240
|
+
|
|
2241
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationImpairments;
|
|
2242
|
+
|
|
2243
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationImpairments;
|
|
2244
|
+
|
|
2245
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationImpairments;
|
|
2246
|
+
|
|
2247
|
+
static equals(a: SimulationImpairments | PlainMessage<SimulationImpairments> | undefined, b: SimulationImpairments | PlainMessage<SimulationImpairments> | undefined): boolean;
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Carried (protojson-encoded) in the Job's lk.simulator.dispatch attribute, set
|
|
2252
|
+
* on the agent dispatch, so the agent under test can read the scenario + run
|
|
2253
|
+
* identity synchronously at job start.
|
|
2073
2254
|
*
|
|
2074
2255
|
* @generated from message livekit.SimulationDispatch
|
|
2075
2256
|
*/
|
|
@@ -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 },
|
|
@@ -388,6 +422,9 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
|
|
|
388
422
|
{ no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
389
423
|
{ no: 13, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
|
|
390
424
|
{ no: 14, name: "sampling", kind: "message", T: SimulationRun_SamplingOptions, opt: true },
|
|
425
|
+
{ no: 15, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
426
|
+
{ no: 16, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
427
|
+
{ no: 17, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
391
428
|
],
|
|
392
429
|
{localName: "SimulationRun_Create_Request"},
|
|
393
430
|
);
|
|
@@ -665,8 +702,23 @@ export const ScenarioGroup = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
665
702
|
);
|
|
666
703
|
|
|
667
704
|
/**
|
|
668
|
-
*
|
|
669
|
-
*
|
|
705
|
+
* What the simulated caller's audio went through before the agent heard it.
|
|
706
|
+
*
|
|
707
|
+
* @generated from message livekit.SimulationImpairments
|
|
708
|
+
*/
|
|
709
|
+
export const SimulationImpairments = /*@__PURE__*/ proto3.makeMessageType(
|
|
710
|
+
"livekit.SimulationImpairments",
|
|
711
|
+
() => [
|
|
712
|
+
{ no: 1, name: "background_noise", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
713
|
+
{ no: 2, name: "low_quality_microphone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
714
|
+
{ no: 3, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
715
|
+
],
|
|
716
|
+
);
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Carried (protojson-encoded) in the Job's lk.simulator.dispatch attribute, set
|
|
720
|
+
* on the agent dispatch, so the agent under test can read the scenario + run
|
|
721
|
+
* identity synchronously at job start.
|
|
670
722
|
*
|
|
671
723
|
* @generated from message livekit.SimulationDispatch
|
|
672
724
|
*/
|
|
@@ -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
|
|
|
@@ -484,6 +484,13 @@ export declare class NodeStats extends Message<NodeStats> {
|
|
|
484
484
|
*/
|
|
485
485
|
forwardJitter: number;
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* mean forwarding work per write to a subscriber, in ns: (end of fan-out - dequeue) / writes
|
|
489
|
+
*
|
|
490
|
+
* @generated from field: uint32 forward_processing_per_write = 57;
|
|
491
|
+
*/
|
|
492
|
+
forwardProcessingPerWrite: number;
|
|
493
|
+
|
|
487
494
|
/**
|
|
488
495
|
* @generated from field: repeated livekit.NodeStatsRate rates = 50;
|
|
489
496
|
*/
|
|
@@ -794,6 +801,13 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
794
801
|
*/
|
|
795
802
|
tokenExpiresAt: bigint;
|
|
796
803
|
|
|
804
|
+
/**
|
|
805
|
+
* API key that issued the join token, for correlating sessions with the key
|
|
806
|
+
*
|
|
807
|
+
* @generated from field: string api_key = 27;
|
|
808
|
+
*/
|
|
809
|
+
apiKey: string;
|
|
810
|
+
|
|
797
811
|
constructor(data?: PartialMessage<StartSession>);
|
|
798
812
|
|
|
799
813
|
static readonly runtime: typeof proto3;
|
|
@@ -143,6 +143,7 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
143
143
|
{ no: 54, name: "participant_rtc_active", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
144
144
|
{ no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
145
145
|
{ no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
146
|
+
{ no: 57, name: "forward_processing_per_write", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
146
147
|
{ no: 50, name: "rates", kind: "message", T: NodeStatsRate, repeated: true },
|
|
147
148
|
],
|
|
148
149
|
);
|
|
@@ -215,6 +216,7 @@ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
215
216
|
{ no: 23, name: "sync_state", kind: "message", T: SyncState },
|
|
216
217
|
{ no: 24, name: "use_single_peer_connection", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
217
218
|
{ no: 26, name: "token_expires_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
219
|
+
{ no: 27, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
218
220
|
],
|
|
219
221
|
);
|
|
220
222
|
|
|
@@ -429,6 +429,15 @@ export declare class MetricsRecordingHeader extends Message<MetricsRecordingHead
|
|
|
429
429
|
*/
|
|
430
430
|
redactionEnabled: boolean;
|
|
431
431
|
|
|
432
|
+
/**
|
|
433
|
+
* JSON object of session facts for agent evals, at most 16 KiB. Its schema is
|
|
434
|
+
* evalschema/session-summary.schema.json in livekit/cloud-protocol. The collector
|
|
435
|
+
* stores it without reading individual keys.
|
|
436
|
+
*
|
|
437
|
+
* @generated from field: string session_summary = 11;
|
|
438
|
+
*/
|
|
439
|
+
sessionSummary: string;
|
|
440
|
+
|
|
432
441
|
constructor(data?: PartialMessage<MetricsRecordingHeader>);
|
|
433
442
|
|
|
434
443
|
static readonly runtime: typeof proto3;
|
|
@@ -110,6 +110,7 @@ export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
110
110
|
{ no: 8, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
111
111
|
{ no: 9, name: "simulated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
112
112
|
{ no: 10, name: "redaction_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
113
|
+
{ no: 11, name: "session_summary", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
114
|
],
|
|
114
115
|
);
|
|
115
116
|
|