@livekit/protocol 1.53.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.53.2",
3
+ "version": "1.53.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -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
  */
@@ -1497,6 +1497,13 @@ export declare class SimulationRun_Create_Request extends Message<SimulationRun_
1497
1497
  */
1498
1498
  sipNumber: string;
1499
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
+
1500
1507
  constructor(data?: PartialMessage<SimulationRun_Create_Request>);
1501
1508
 
1502
1509
  static readonly runtime: typeof proto3;
@@ -425,6 +425,7 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
425
425
  { no: 15, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
426
426
  { no: 16, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
427
427
  { no: 17, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
428
+ { no: 18, name: "deployment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
428
429
  ],
429
430
  {localName: "SimulationRun_Create_Request"},
430
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;
@@ -60,6 +60,7 @@ export const EncodedFileType = /*@__PURE__*/ proto3.makeEnum(
60
60
  {no: 1, name: "MP4"},
61
61
  {no: 2, name: "OGG"},
62
62
  {no: 3, name: "MP3"},
63
+ {no: 4, name: "MCAP"},
63
64
  ],
64
65
  );
65
66
 
@@ -210,7 +211,9 @@ export const MediaSource = /*@__PURE__*/ proto3.makeMessageType(
210
211
  () => [
211
212
  { no: 1, name: "video_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "video" },
212
213
  { no: 2, name: "participant_video", kind: "message", T: ParticipantVideo, oneof: "video" },
214
+ { no: 5, name: "videos", kind: "message", T: VideoConfig, oneof: "video" },
213
215
  { no: 3, name: "audio", kind: "message", T: AudioConfig },
216
+ { no: 4, name: "data", kind: "message", T: DataConfig },
214
217
  ],
215
218
  );
216
219
 
@@ -225,6 +228,30 @@ export const ParticipantVideo = /*@__PURE__*/ proto3.makeMessageType(
225
228
  ],
226
229
  );
227
230
 
231
+ /**
232
+ * @generated from message livekit.VideoConfig
233
+ */
234
+ export const VideoConfig = /*@__PURE__*/ proto3.makeMessageType(
235
+ "livekit.VideoConfig",
236
+ () => [
237
+ { no: 1, name: "capture_all", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
238
+ { no: 2, name: "selectors", kind: "message", T: VideoSelector, repeated: true },
239
+ ],
240
+ );
241
+
242
+ /**
243
+ * @generated from message livekit.VideoSelector
244
+ */
245
+ export const VideoSelector = /*@__PURE__*/ proto3.makeMessageType(
246
+ "livekit.VideoSelector",
247
+ () => [
248
+ { no: 1, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
249
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
250
+ { no: 3, name: "track_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
251
+ { no: 4, name: "exclude", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
252
+ ],
253
+ );
254
+
228
255
  /**
229
256
  * Unified audio selection and channel routing.
230
257
  * Each route specifies both which audio to capture and which channel to output to.
@@ -248,6 +275,8 @@ export const AudioRoute = /*@__PURE__*/ proto3.makeMessageType(
248
275
  { no: 1, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
249
276
  { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
250
277
  { no: 3, name: "participant_kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind), oneof: "match" },
278
+ { no: 5, name: "track_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
+ { no: 6, name: "exclude", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
251
280
  { no: 4, name: "channel", kind: "enum", T: proto3.getEnumType(AudioChannel) },
252
281
  ],
253
282
  );
@@ -271,6 +300,8 @@ export const DataSelector = /*@__PURE__*/ proto3.makeMessageType(
271
300
  () => [
272
301
  { no: 1, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
273
302
  { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
303
+ { no: 3, name: "track_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
304
+ { no: 4, name: "exclude", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
274
305
  ],
275
306
  );
276
307
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.53.2';
2
+ export const version = '1.53.3';