@livekit/protocol 1.53.1 → 1.53.3
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 +265 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +475 -8
- package/dist/index.d.mts +475 -8
- package/dist/index.d.ts +475 -8
- package/dist/index.mjs +261 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/gen/agent/livekit_agent_inference_pb.d.ts +11 -0
- package/src/gen/agent/livekit_agent_inference_pb.js +1 -0
- package/src/gen/agent/livekit_agent_session_pb.d.ts +80 -0
- package/src/gen/agent/livekit_agent_session_pb.js +22 -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 +107 -0
- package/src/gen/livekit_agent_pb.js +25 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +28 -0
- package/src/gen/livekit_agent_simulation_pb.js +4 -0
- package/src/gen/livekit_egress_pb.d.ts +127 -2
- package/src/gen/livekit_egress_pb.js +31 -0
- package/src/gen/livekit_internal_pb.d.ts +3 -3
- package/src/gen/livekit_internal_pb.js +1 -1
- package/src/gen/livekit_sip_pb.d.ts +80 -5
- package/src/gen/livekit_sip_pb.js +22 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "1.53.
|
|
3
|
+
"version": "1.53.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@bufbuild/protoc-gen-es": "^1.10.0",
|
|
30
|
+
"@typescript/typescript6": "6.0.2",
|
|
30
31
|
"genversion": "^3.2.0",
|
|
31
|
-
"typescript": "
|
|
32
|
+
"typescript": "7.0.2",
|
|
32
33
|
"unbuild": "^3.6.1"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
@@ -316,6 +316,17 @@ export declare class InferenceStart extends Message<InferenceStart> {
|
|
|
316
316
|
*/
|
|
317
317
|
requestId: string;
|
|
318
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Length of the current user turn, in samples at the session sample rate.
|
|
321
|
+
* Count from the start of the user turn, or from the last session_flush when
|
|
322
|
+
* the start is unknown, through the last input_audio sent before this
|
|
323
|
+
* message. The end-of-turn model reads it as the turn duration, which can be
|
|
324
|
+
* longer than the audio window it scores. 0 means unknown.
|
|
325
|
+
*
|
|
326
|
+
* @generated from field: uint32 turn_samples = 2;
|
|
327
|
+
*/
|
|
328
|
+
turnSamples: number;
|
|
329
|
+
|
|
319
330
|
constructor(data?: PartialMessage<InferenceStart>);
|
|
320
331
|
|
|
321
332
|
static readonly runtime: typeof proto3;
|
|
@@ -134,6 +134,7 @@ export const InferenceStart = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
134
134
|
"livekit.agent.InferenceStart",
|
|
135
135
|
() => [
|
|
136
136
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
137
|
+
{ no: 2, name: "turn_samples", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
137
138
|
],
|
|
138
139
|
);
|
|
139
140
|
|
|
@@ -204,6 +204,18 @@ export declare enum AmdCategory {
|
|
|
204
204
|
* @generated from enum value: AMD_UNCERTAIN = 5;
|
|
205
205
|
*/
|
|
206
206
|
AMD_UNCERTAIN = 5,
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from enum value: AMD_MACHINE_SCREENING = 6;
|
|
210
|
+
*/
|
|
211
|
+
AMD_MACHINE_SCREENING = 6,
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* A prediction only: the turn's reply is held, and the stage does not change.
|
|
215
|
+
*
|
|
216
|
+
* @generated from enum value: AMD_WAIT = 7;
|
|
217
|
+
*/
|
|
218
|
+
AMD_WAIT = 7,
|
|
207
219
|
}
|
|
208
220
|
|
|
209
221
|
/**
|
|
@@ -1127,6 +1139,12 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
|
|
|
1127
1139
|
*/
|
|
1128
1140
|
value: AgentSessionEvent_AgentFalseInterruption;
|
|
1129
1141
|
case: "agentFalseInterruption";
|
|
1142
|
+
} | {
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from field: livekit.agent.AgentSessionEvent.AmdCompleted amd_completed = 24;
|
|
1145
|
+
*/
|
|
1146
|
+
value: AgentSessionEvent_AmdCompleted;
|
|
1147
|
+
case: "amdCompleted";
|
|
1130
1148
|
} | { case: undefined; value?: undefined };
|
|
1131
1149
|
|
|
1132
1150
|
constructor(data?: PartialMessage<AgentSessionEvent>);
|
|
@@ -1405,6 +1423,25 @@ export declare class AgentSessionEvent_AmdPrediction extends Message<AgentSessio
|
|
|
1405
1423
|
*/
|
|
1406
1424
|
delay?: Duration;
|
|
1407
1425
|
|
|
1426
|
+
/**
|
|
1427
|
+
* @generated from field: uint32 turn_id = 6;
|
|
1428
|
+
*/
|
|
1429
|
+
turnId: number;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* The stage after this prediction. Never AMD_WAIT.
|
|
1433
|
+
*
|
|
1434
|
+
* @generated from field: livekit.agent.AmdCategory stage = 7;
|
|
1435
|
+
*/
|
|
1436
|
+
stage: AmdCategory;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Unset when the turn ran no inference.
|
|
1440
|
+
*
|
|
1441
|
+
* @generated from field: google.protobuf.Duration inference_duration = 8;
|
|
1442
|
+
*/
|
|
1443
|
+
inferenceDuration?: Duration;
|
|
1444
|
+
|
|
1408
1445
|
constructor(data?: PartialMessage<AgentSessionEvent_AmdPrediction>);
|
|
1409
1446
|
|
|
1410
1447
|
static readonly runtime: typeof proto3;
|
|
@@ -1420,6 +1457,49 @@ export declare class AgentSessionEvent_AmdPrediction extends Message<AgentSessio
|
|
|
1420
1457
|
static equals(a: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined, b: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined): boolean;
|
|
1421
1458
|
}
|
|
1422
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* Once per AMD run.
|
|
1462
|
+
*
|
|
1463
|
+
* @generated from message livekit.agent.AgentSessionEvent.AmdCompleted
|
|
1464
|
+
*/
|
|
1465
|
+
export declare class AgentSessionEvent_AmdCompleted extends Message<AgentSessionEvent_AmdCompleted> {
|
|
1466
|
+
/**
|
|
1467
|
+
* @generated from field: livekit.agent.AmdCategory category = 1;
|
|
1468
|
+
*/
|
|
1469
|
+
category: AmdCategory;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* @generated from field: string reason = 2;
|
|
1473
|
+
*/
|
|
1474
|
+
reason: string;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* @generated from field: bool voicemail_message_played = 3;
|
|
1478
|
+
*/
|
|
1479
|
+
voicemailMessagePlayed: boolean;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Unset when the run ended before any prediction.
|
|
1483
|
+
*
|
|
1484
|
+
* @generated from field: livekit.agent.AgentSessionEvent.AmdPrediction prediction = 4;
|
|
1485
|
+
*/
|
|
1486
|
+
prediction?: AgentSessionEvent_AmdPrediction;
|
|
1487
|
+
|
|
1488
|
+
constructor(data?: PartialMessage<AgentSessionEvent_AmdCompleted>);
|
|
1489
|
+
|
|
1490
|
+
static readonly runtime: typeof proto3;
|
|
1491
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.AmdCompleted";
|
|
1492
|
+
static readonly fields: FieldList;
|
|
1493
|
+
|
|
1494
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_AmdCompleted;
|
|
1495
|
+
|
|
1496
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_AmdCompleted;
|
|
1497
|
+
|
|
1498
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_AmdCompleted;
|
|
1499
|
+
|
|
1500
|
+
static equals(a: AgentSessionEvent_AmdCompleted | PlainMessage<AgentSessionEvent_AmdCompleted> | undefined, b: AgentSessionEvent_AmdCompleted | PlainMessage<AgentSessionEvent_AmdCompleted> | undefined): boolean;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1423
1503
|
/**
|
|
1424
1504
|
* @generated from message livekit.agent.AgentSessionEvent.EotPrediction
|
|
1425
1505
|
*/
|
|
@@ -100,6 +100,8 @@ export const AmdCategory = /*@__PURE__*/ proto3.makeEnum(
|
|
|
100
100
|
{no: 3, name: "AMD_MACHINE_VM"},
|
|
101
101
|
{no: 4, name: "AMD_MACHINE_UNAVAILABLE"},
|
|
102
102
|
{no: 5, name: "AMD_UNCERTAIN"},
|
|
103
|
+
{no: 6, name: "AMD_MACHINE_SCREENING"},
|
|
104
|
+
{no: 7, name: "AMD_WAIT"},
|
|
103
105
|
],
|
|
104
106
|
);
|
|
105
107
|
|
|
@@ -381,6 +383,7 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
381
383
|
{ no: 21, name: "debug_message", kind: "message", T: DebugMessage, oneof: "event" },
|
|
382
384
|
{ no: 22, name: "tool_execution_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated, oneof: "event" },
|
|
383
385
|
{ no: 23, name: "agent_false_interruption", kind: "message", T: AgentSessionEvent_AgentFalseInterruption, oneof: "event" },
|
|
386
|
+
{ no: 24, name: "amd_completed", kind: "message", T: AgentSessionEvent_AmdCompleted, oneof: "event" },
|
|
384
387
|
],
|
|
385
388
|
);
|
|
386
389
|
|
|
@@ -491,10 +494,29 @@ export const AgentSessionEvent_AmdPrediction = /*@__PURE__*/ proto3.makeMessageT
|
|
|
491
494
|
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
492
495
|
{ no: 4, name: "transcript", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
493
496
|
{ no: 5, name: "delay", kind: "message", T: Duration },
|
|
497
|
+
{ no: 6, name: "turn_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
498
|
+
{ no: 7, name: "stage", kind: "enum", T: proto3.getEnumType(AmdCategory) },
|
|
499
|
+
{ no: 8, name: "inference_duration", kind: "message", T: Duration },
|
|
494
500
|
],
|
|
495
501
|
{localName: "AgentSessionEvent_AmdPrediction"},
|
|
496
502
|
);
|
|
497
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Once per AMD run.
|
|
506
|
+
*
|
|
507
|
+
* @generated from message livekit.agent.AgentSessionEvent.AmdCompleted
|
|
508
|
+
*/
|
|
509
|
+
export const AgentSessionEvent_AmdCompleted = /*@__PURE__*/ proto3.makeMessageType(
|
|
510
|
+
"livekit.agent.AgentSessionEvent.AmdCompleted",
|
|
511
|
+
() => [
|
|
512
|
+
{ no: 1, name: "category", kind: "enum", T: proto3.getEnumType(AmdCategory) },
|
|
513
|
+
{ no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
514
|
+
{ no: 3, name: "voicemail_message_played", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
515
|
+
{ no: 4, name: "prediction", kind: "message", T: AgentSessionEvent_AmdPrediction },
|
|
516
|
+
],
|
|
517
|
+
{localName: "AgentSessionEvent_AmdCompleted"},
|
|
518
|
+
);
|
|
519
|
+
|
|
498
520
|
/**
|
|
499
521
|
* @generated from message livekit.agent.AgentSessionEvent.EotPrediction
|
|
500
522
|
*/
|
|
@@ -40,6 +40,39 @@ export declare enum JobRestartPolicy {
|
|
|
40
40
|
JRP_NEVER = 1,
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* what created the dispatch
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum livekit.AgentDispatchTrigger
|
|
47
|
+
*/
|
|
48
|
+
export declare enum AgentDispatchTrigger {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: ADT_UNSPECIFIED = 0;
|
|
51
|
+
*/
|
|
52
|
+
ADT_UNSPECIFIED = 0,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* a participant joining created the room, and with it the dispatch
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: ADT_JOIN = 1;
|
|
58
|
+
*/
|
|
59
|
+
ADT_JOIN = 1,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* the CreateRoom API created the room, and with it the dispatch
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: ADT_ROOM_API = 2;
|
|
65
|
+
*/
|
|
66
|
+
ADT_ROOM_API = 2,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* the CreateDispatch API
|
|
70
|
+
*
|
|
71
|
+
* @generated from enum value: ADT_DISPATCH_API = 3;
|
|
72
|
+
*/
|
|
73
|
+
ADT_DISPATCH_API = 3,
|
|
74
|
+
}
|
|
75
|
+
|
|
43
76
|
/**
|
|
44
77
|
* @generated from message livekit.CreateAgentDispatchRequest
|
|
45
78
|
*/
|
|
@@ -306,6 +339,11 @@ export declare class AgentDispatchState extends Message<AgentDispatchState> {
|
|
|
306
339
|
*/
|
|
307
340
|
deletedAt: bigint;
|
|
308
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: livekit.AgentDispatchTrigger trigger = 4;
|
|
344
|
+
*/
|
|
345
|
+
trigger: AgentDispatchTrigger;
|
|
346
|
+
|
|
309
347
|
constructor(data?: PartialMessage<AgentDispatchState>);
|
|
310
348
|
|
|
311
349
|
static readonly runtime: typeof proto3;
|
|
@@ -31,6 +31,21 @@ export const JobRestartPolicy = /*@__PURE__*/ proto3.makeEnum(
|
|
|
31
31
|
],
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* what created the dispatch
|
|
36
|
+
*
|
|
37
|
+
* @generated from enum livekit.AgentDispatchTrigger
|
|
38
|
+
*/
|
|
39
|
+
export const AgentDispatchTrigger = /*@__PURE__*/ proto3.makeEnum(
|
|
40
|
+
"livekit.AgentDispatchTrigger",
|
|
41
|
+
[
|
|
42
|
+
{no: 0, name: "ADT_UNSPECIFIED"},
|
|
43
|
+
{no: 1, name: "ADT_JOIN"},
|
|
44
|
+
{no: 2, name: "ADT_ROOM_API"},
|
|
45
|
+
{no: 3, name: "ADT_DISPATCH_API"},
|
|
46
|
+
],
|
|
47
|
+
);
|
|
48
|
+
|
|
34
49
|
/**
|
|
35
50
|
* @generated from message livekit.CreateAgentDispatchRequest
|
|
36
51
|
*/
|
|
@@ -118,6 +133,7 @@ export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
118
133
|
{ no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
|
|
119
134
|
{ no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
120
135
|
{ no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
136
|
+
{ no: 4, name: "trigger", kind: "enum", T: proto3.getEnumType(AgentDispatchTrigger) },
|
|
121
137
|
],
|
|
122
138
|
);
|
|
123
139
|
|
|
@@ -196,6 +196,13 @@ export declare class Job extends Message<Job> {
|
|
|
196
196
|
*/
|
|
197
197
|
enableRedaction: boolean;
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* when the server created the job, in Unix nanoseconds
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: int64 created_at = 14;
|
|
203
|
+
*/
|
|
204
|
+
createdAt: bigint;
|
|
205
|
+
|
|
199
206
|
constructor(data?: PartialMessage<Job>);
|
|
200
207
|
|
|
201
208
|
static readonly runtime: typeof proto3;
|
|
@@ -262,6 +269,20 @@ export declare class JobState extends Message<JobState> {
|
|
|
262
269
|
*/
|
|
263
270
|
reason: JobStateReason;
|
|
264
271
|
|
|
272
|
+
/**
|
|
273
|
+
* when the server received the worker's accept for this attempt, in Unix nanoseconds
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: int64 accepted_at = 10;
|
|
276
|
+
*/
|
|
277
|
+
acceptedAt: bigint;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* when the server sent the assignment for this attempt, in Unix nanoseconds
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: int64 assigned_at = 11;
|
|
283
|
+
*/
|
|
284
|
+
assignedAt: bigint;
|
|
285
|
+
|
|
265
286
|
constructor(data?: PartialMessage<JobState>);
|
|
266
287
|
|
|
267
288
|
static readonly runtime: typeof proto3;
|
|
@@ -772,6 +793,13 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
772
793
|
*/
|
|
773
794
|
error: string;
|
|
774
795
|
|
|
796
|
+
/**
|
|
797
|
+
* set once the agent has connected to the room
|
|
798
|
+
*
|
|
799
|
+
* @generated from field: livekit.JobJoinTiming join_timing = 4;
|
|
800
|
+
*/
|
|
801
|
+
joinTiming?: JobJoinTiming;
|
|
802
|
+
|
|
775
803
|
constructor(data?: PartialMessage<UpdateJobStatus>);
|
|
776
804
|
|
|
777
805
|
static readonly runtime: typeof proto3;
|
|
@@ -787,6 +815,85 @@ export declare class UpdateJobStatus extends Message<UpdateJobStatus> {
|
|
|
787
815
|
static equals(a: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined, b: UpdateJobStatus | PlainMessage<UpdateJobStatus> | undefined): boolean;
|
|
788
816
|
}
|
|
789
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Instants of one agent join on the worker host's monotonic clock, in microseconds. The
|
|
820
|
+
* clock origin is arbitrary, so only differences between these values carry meaning on
|
|
821
|
+
* their own. The worker and its job processes share this clock.
|
|
822
|
+
*
|
|
823
|
+
* @generated from message livekit.JobJoinTiming
|
|
824
|
+
*/
|
|
825
|
+
export declare class JobJoinTiming extends Message<JobJoinTiming> {
|
|
826
|
+
/**
|
|
827
|
+
* availability request received
|
|
828
|
+
*
|
|
829
|
+
* @generated from field: int64 offer_received_us = 1;
|
|
830
|
+
*/
|
|
831
|
+
offerReceivedUs: bigint;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* request handler accepted the job
|
|
835
|
+
*
|
|
836
|
+
* @generated from field: int64 accepted_us = 2;
|
|
837
|
+
*/
|
|
838
|
+
acceptedUs: bigint;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* job assignment received
|
|
842
|
+
*
|
|
843
|
+
* @generated from field: int64 assignment_received_us = 3;
|
|
844
|
+
*/
|
|
845
|
+
assignmentReceivedUs: bigint;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* a job process was handed the job
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: int64 launched_us = 4;
|
|
851
|
+
*/
|
|
852
|
+
launchedUs: bigint;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* an idle process took the job; false means one was spawned
|
|
856
|
+
*
|
|
857
|
+
* @generated from field: bool launch_warm = 5;
|
|
858
|
+
*/
|
|
859
|
+
launchWarm: boolean;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* the agent's entrypoint started
|
|
863
|
+
*
|
|
864
|
+
* @generated from field: int64 entrypoint_started_us = 6;
|
|
865
|
+
*/
|
|
866
|
+
entrypointStartedUs: bigint;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* the agent called room connect
|
|
870
|
+
*
|
|
871
|
+
* @generated from field: int64 connect_called_us = 7;
|
|
872
|
+
*/
|
|
873
|
+
connectCalledUs: bigint;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* the agent's primary transport connected
|
|
877
|
+
*
|
|
878
|
+
* @generated from field: int64 connected_us = 8;
|
|
879
|
+
*/
|
|
880
|
+
connectedUs: bigint;
|
|
881
|
+
|
|
882
|
+
constructor(data?: PartialMessage<JobJoinTiming>);
|
|
883
|
+
|
|
884
|
+
static readonly runtime: typeof proto3;
|
|
885
|
+
static readonly typeName = "livekit.JobJoinTiming";
|
|
886
|
+
static readonly fields: FieldList;
|
|
887
|
+
|
|
888
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobJoinTiming;
|
|
889
|
+
|
|
890
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobJoinTiming;
|
|
891
|
+
|
|
892
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobJoinTiming;
|
|
893
|
+
|
|
894
|
+
static equals(a: JobJoinTiming | PlainMessage<JobJoinTiming> | undefined, b: JobJoinTiming | PlainMessage<JobJoinTiming> | undefined): boolean;
|
|
895
|
+
}
|
|
896
|
+
|
|
790
897
|
/**
|
|
791
898
|
* @generated from message livekit.UpdateWorkerStatus
|
|
792
899
|
*/
|
|
@@ -90,6 +90,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
90
90
|
{ no: 11, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
91
|
{ no: 12, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
92
92
|
{ no: 13, name: "enable_redaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
93
|
+
{ no: 14, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
93
94
|
],
|
|
94
95
|
);
|
|
95
96
|
|
|
@@ -108,6 +109,8 @@ export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
108
109
|
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
110
|
{ no: 8, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
111
|
{ no: 9, name: "reason", kind: "enum", T: proto3.getEnumType(JobStateReason) },
|
|
112
|
+
{ no: 10, name: "accepted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
113
|
+
{ no: 11, name: "assigned_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
111
114
|
],
|
|
112
115
|
);
|
|
113
116
|
|
|
@@ -258,6 +261,28 @@ export const UpdateJobStatus = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
258
261
|
{ no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
262
|
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) },
|
|
260
263
|
{ no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
264
|
+
{ no: 4, name: "join_timing", kind: "message", T: JobJoinTiming },
|
|
265
|
+
],
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Instants of one agent join on the worker host's monotonic clock, in microseconds. The
|
|
270
|
+
* clock origin is arbitrary, so only differences between these values carry meaning on
|
|
271
|
+
* their own. The worker and its job processes share this clock.
|
|
272
|
+
*
|
|
273
|
+
* @generated from message livekit.JobJoinTiming
|
|
274
|
+
*/
|
|
275
|
+
export const JobJoinTiming = /*@__PURE__*/ proto3.makeMessageType(
|
|
276
|
+
"livekit.JobJoinTiming",
|
|
277
|
+
() => [
|
|
278
|
+
{ no: 1, name: "offer_received_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
279
|
+
{ no: 2, name: "accepted_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
280
|
+
{ no: 3, name: "assignment_received_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
281
|
+
{ no: 4, name: "launched_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
282
|
+
{ no: 5, name: "launch_warm", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
283
|
+
{ no: 6, name: "entrypoint_started_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
284
|
+
{ no: 7, name: "connect_called_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
285
|
+
{ no: 8, name: "connected_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
261
286
|
],
|
|
262
287
|
);
|
|
263
288
|
|
|
@@ -1476,6 +1476,34 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
|
|
|
1476
1476
|
*/
|
|
1477
1477
|
sampling?: SimulationRun_SamplingOptions;
|
|
1478
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
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Named deployment of agent_name to dispatch to; empty is production.
|
|
1502
|
+
*
|
|
1503
|
+
* @generated from field: string deployment = 18;
|
|
1504
|
+
*/
|
|
1505
|
+
deployment: string;
|
|
1506
|
+
|
|
1479
1507
|
constructor(data?: PartialMessage<SimulationRun_Create_Request>);
|
|
1480
1508
|
|
|
1481
1509
|
static readonly runtime: typeof proto3;
|
|
@@ -422,6 +422,10 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
|
|
|
422
422
|
{ no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
423
423
|
{ no: 13, name: "ci", kind: "message", T: SimulationRun_CI, opt: true },
|
|
424
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 */ },
|
|
428
|
+
{ no: 18, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
429
|
],
|
|
426
430
|
{localName: "SimulationRun_Create_Request"},
|
|
427
431
|
);
|
|
@@ -134,6 +134,13 @@ export declare enum EncodedFileType {
|
|
|
134
134
|
* @generated from enum value: MP3 = 3;
|
|
135
135
|
*/
|
|
136
136
|
MP3 = 3,
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* One channel per captured track
|
|
140
|
+
*
|
|
141
|
+
* @generated from enum value: MCAP = 4;
|
|
142
|
+
*/
|
|
143
|
+
MCAP = 4,
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
/**
|
|
@@ -491,15 +498,26 @@ export declare class MediaSource extends Message<MediaSource> {
|
|
|
491
498
|
*/
|
|
492
499
|
value: ParticipantVideo;
|
|
493
500
|
case: "participantVideo";
|
|
501
|
+
} | {
|
|
502
|
+
/**
|
|
503
|
+
* Multiple independent video tracks; requires an MCAP file output
|
|
504
|
+
*
|
|
505
|
+
* @generated from field: livekit.VideoConfig videos = 5;
|
|
506
|
+
*/
|
|
507
|
+
value: VideoConfig;
|
|
508
|
+
case: "videos";
|
|
494
509
|
} | { case: undefined; value?: undefined };
|
|
495
510
|
|
|
496
511
|
/**
|
|
497
|
-
* TODO: DataConfig data = 4;
|
|
498
|
-
*
|
|
499
512
|
* @generated from field: livekit.AudioConfig audio = 3;
|
|
500
513
|
*/
|
|
501
514
|
audio?: AudioConfig;
|
|
502
515
|
|
|
516
|
+
/**
|
|
517
|
+
* @generated from field: livekit.DataConfig data = 4;
|
|
518
|
+
*/
|
|
519
|
+
data?: DataConfig;
|
|
520
|
+
|
|
503
521
|
constructor(data?: PartialMessage<MediaSource>);
|
|
504
522
|
|
|
505
523
|
static readonly runtime: typeof proto3;
|
|
@@ -544,6 +562,85 @@ export declare class ParticipantVideo extends Message<ParticipantVideo> {
|
|
|
544
562
|
static equals(a: ParticipantVideo | PlainMessage<ParticipantVideo> | undefined, b: ParticipantVideo | PlainMessage<ParticipantVideo> | undefined): boolean;
|
|
545
563
|
}
|
|
546
564
|
|
|
565
|
+
/**
|
|
566
|
+
* @generated from message livekit.VideoConfig
|
|
567
|
+
*/
|
|
568
|
+
export declare class VideoConfig extends Message<VideoConfig> {
|
|
569
|
+
/**
|
|
570
|
+
* @generated from field: bool capture_all = 1;
|
|
571
|
+
*/
|
|
572
|
+
captureAll: boolean;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @generated from field: repeated livekit.VideoSelector selectors = 2;
|
|
576
|
+
*/
|
|
577
|
+
selectors: VideoSelector[];
|
|
578
|
+
|
|
579
|
+
constructor(data?: PartialMessage<VideoConfig>);
|
|
580
|
+
|
|
581
|
+
static readonly runtime: typeof proto3;
|
|
582
|
+
static readonly typeName = "livekit.VideoConfig";
|
|
583
|
+
static readonly fields: FieldList;
|
|
584
|
+
|
|
585
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfig;
|
|
586
|
+
|
|
587
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfig;
|
|
588
|
+
|
|
589
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfig;
|
|
590
|
+
|
|
591
|
+
static equals(a: VideoConfig | PlainMessage<VideoConfig> | undefined, b: VideoConfig | PlainMessage<VideoConfig> | undefined): boolean;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @generated from message livekit.VideoSelector
|
|
596
|
+
*/
|
|
597
|
+
export declare class VideoSelector extends Message<VideoSelector> {
|
|
598
|
+
/**
|
|
599
|
+
* @generated from oneof livekit.VideoSelector.match
|
|
600
|
+
*/
|
|
601
|
+
match: {
|
|
602
|
+
/**
|
|
603
|
+
* @generated from field: string track_id = 1;
|
|
604
|
+
*/
|
|
605
|
+
value: string;
|
|
606
|
+
case: "trackId";
|
|
607
|
+
} | {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: string participant_identity = 2;
|
|
610
|
+
*/
|
|
611
|
+
value: string;
|
|
612
|
+
case: "participantIdentity";
|
|
613
|
+
} | { case: undefined; value?: undefined };
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Narrows the match to tracks with this name; alone, matches it from any participant
|
|
617
|
+
*
|
|
618
|
+
* @generated from field: string track_name = 3;
|
|
619
|
+
*/
|
|
620
|
+
trackName: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Drop matching tracks, overriding capture_all and other matches
|
|
624
|
+
*
|
|
625
|
+
* @generated from field: bool exclude = 4;
|
|
626
|
+
*/
|
|
627
|
+
exclude: boolean;
|
|
628
|
+
|
|
629
|
+
constructor(data?: PartialMessage<VideoSelector>);
|
|
630
|
+
|
|
631
|
+
static readonly runtime: typeof proto3;
|
|
632
|
+
static readonly typeName = "livekit.VideoSelector";
|
|
633
|
+
static readonly fields: FieldList;
|
|
634
|
+
|
|
635
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSelector;
|
|
636
|
+
|
|
637
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSelector;
|
|
638
|
+
|
|
639
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSelector;
|
|
640
|
+
|
|
641
|
+
static equals(a: VideoSelector | PlainMessage<VideoSelector> | undefined, b: VideoSelector | PlainMessage<VideoSelector> | undefined): boolean;
|
|
642
|
+
}
|
|
643
|
+
|
|
547
644
|
/**
|
|
548
645
|
* Unified audio selection and channel routing.
|
|
549
646
|
* Each route specifies both which audio to capture and which channel to output to.
|
|
@@ -605,6 +702,20 @@ export declare class AudioRoute extends Message<AudioRoute> {
|
|
|
605
702
|
case: "participantKind";
|
|
606
703
|
} | { case: undefined; value?: undefined };
|
|
607
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Narrows the match to tracks with this name; alone, matches it from any participant
|
|
707
|
+
*
|
|
708
|
+
* @generated from field: string track_name = 5;
|
|
709
|
+
*/
|
|
710
|
+
trackName: string;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Drop matching tracks, overriding capture_all and other routes
|
|
714
|
+
*
|
|
715
|
+
* @generated from field: bool exclude = 6;
|
|
716
|
+
*/
|
|
717
|
+
exclude: boolean;
|
|
718
|
+
|
|
608
719
|
/**
|
|
609
720
|
* @generated from field: livekit.AudioChannel channel = 4;
|
|
610
721
|
*/
|
|
@@ -675,6 +786,20 @@ export declare class DataSelector extends Message<DataSelector> {
|
|
|
675
786
|
case: "participantIdentity";
|
|
676
787
|
} | { case: undefined; value?: undefined };
|
|
677
788
|
|
|
789
|
+
/**
|
|
790
|
+
* Narrows the match to tracks with this name; alone, matches it from any participant
|
|
791
|
+
*
|
|
792
|
+
* @generated from field: string track_name = 3;
|
|
793
|
+
*/
|
|
794
|
+
trackName: string;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Drop matching tracks, overriding capture_all and other matches
|
|
798
|
+
*
|
|
799
|
+
* @generated from field: bool exclude = 4;
|
|
800
|
+
*/
|
|
801
|
+
exclude: boolean;
|
|
802
|
+
|
|
678
803
|
constructor(data?: PartialMessage<DataSelector>);
|
|
679
804
|
|
|
680
805
|
static readonly runtime: typeof proto3;
|