@livekit/protocol 1.46.3 → 1.46.5

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.46.3",
3
+ "version": "1.46.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -751,6 +751,23 @@ export declare class InferenceResponse extends Message<InferenceResponse> {
751
751
  * @generated from message livekit.agent.SessionCreated
752
752
  */
753
753
  export declare class SessionCreated extends Message<SessionCreated> {
754
+ /**
755
+ * Server-recommended default detection thresholds keyed by language code
756
+ * (e.g. "en", "es"). The threshold semantics match the session type: EOT
757
+ * probability threshold for EOT sessions, interruption threshold for
758
+ * barge-in sessions.
759
+ *
760
+ * @generated from field: map<string, float> default_thresholds = 1;
761
+ */
762
+ defaultThresholds: { [key: string]: number };
763
+
764
+ /**
765
+ * Catch-all default applied to languages not present in default_thresholds.
766
+ *
767
+ * @generated from field: float default_threshold = 2;
768
+ */
769
+ defaultThreshold: number;
770
+
754
771
  constructor(data?: PartialMessage<SessionCreated>);
755
772
 
756
773
  static readonly runtime: typeof proto3;
@@ -274,7 +274,10 @@ export const InferenceResponse = /*@__PURE__*/ proto3.makeMessageType(
274
274
  */
275
275
  export const SessionCreated = /*@__PURE__*/ proto3.makeMessageType(
276
276
  "livekit.agent.SessionCreated",
277
- [],
277
+ () => [
278
+ { no: 1, name: "default_thresholds", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 2 /* ScalarType.FLOAT */} },
279
+ { no: 2, name: "default_threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
280
+ ],
278
281
  );
279
282
 
280
283
  /**
@@ -896,34 +896,30 @@ export declare class AgentSessionUsage extends Message<AgentSessionUsage> {
896
896
  }
897
897
 
898
898
  /**
899
- * Application-defined event carried over the remote session wire.
899
+ * Debug/trace payload carried over the remote session wire.
900
+ * Internal: surfaced only to the debugger/recorder, not to user code.
900
901
  *
901
- * @generated from message livekit.agent.CustomEvent
902
+ * @generated from message livekit.agent.DebugMessage
902
903
  */
903
- export declare class CustomEvent extends Message<CustomEvent> {
904
+ export declare class DebugMessage extends Message<DebugMessage> {
904
905
  /**
905
- * @generated from field: string type = 1;
906
- */
907
- type: string;
908
-
909
- /**
910
- * @generated from field: google.protobuf.Struct payload = 2;
906
+ * @generated from field: google.protobuf.Struct payload = 1;
911
907
  */
912
908
  payload?: Struct;
913
909
 
914
- constructor(data?: PartialMessage<CustomEvent>);
910
+ constructor(data?: PartialMessage<DebugMessage>);
915
911
 
916
912
  static readonly runtime: typeof proto3;
917
- static readonly typeName = "livekit.agent.CustomEvent";
913
+ static readonly typeName = "livekit.agent.DebugMessage";
918
914
  static readonly fields: FieldList;
919
915
 
920
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomEvent;
916
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DebugMessage;
921
917
 
922
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomEvent;
918
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DebugMessage;
923
919
 
924
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomEvent;
920
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DebugMessage;
925
921
 
926
- static equals(a: CustomEvent | PlainMessage<CustomEvent> | undefined, b: CustomEvent | PlainMessage<CustomEvent> | undefined): boolean;
922
+ static equals(a: DebugMessage | PlainMessage<DebugMessage> | undefined, b: DebugMessage | PlainMessage<DebugMessage> | undefined): boolean;
927
923
  }
928
924
 
929
925
  /**
@@ -1006,10 +1002,10 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
1006
1002
  case: "functionToolsStarted";
1007
1003
  } | {
1008
1004
  /**
1009
- * @generated from field: livekit.agent.CustomEvent custom_event = 21;
1005
+ * @generated from field: livekit.agent.DebugMessage debug_message = 21;
1010
1006
  */
1011
- value: CustomEvent;
1012
- case: "customEvent";
1007
+ value: DebugMessage;
1008
+ case: "debugMessage";
1013
1009
  } | { case: undefined; value?: undefined };
1014
1010
 
1015
1011
  constructor(data?: PartialMessage<AgentSessionEvent>);
@@ -301,15 +301,15 @@ export const AgentSessionUsage = /*@__PURE__*/ proto3.makeMessageType(
301
301
  );
302
302
 
303
303
  /**
304
- * Application-defined event carried over the remote session wire.
304
+ * Debug/trace payload carried over the remote session wire.
305
+ * Internal: surfaced only to the debugger/recorder, not to user code.
305
306
  *
306
- * @generated from message livekit.agent.CustomEvent
307
+ * @generated from message livekit.agent.DebugMessage
307
308
  */
308
- export const CustomEvent = /*@__PURE__*/ proto3.makeMessageType(
309
- "livekit.agent.CustomEvent",
309
+ export const DebugMessage = /*@__PURE__*/ proto3.makeMessageType(
310
+ "livekit.agent.DebugMessage",
310
311
  () => [
311
- { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
- { no: 2, name: "payload", kind: "message", T: Struct },
312
+ { no: 1, name: "payload", kind: "message", T: Struct },
313
313
  ],
314
314
  );
315
315
 
@@ -331,7 +331,7 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
331
331
  { no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
332
332
  { no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
333
333
  { no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
334
- { no: 21, name: "custom_event", kind: "message", T: CustomEvent, oneof: "event" },
334
+ { no: 21, name: "debug_message", kind: "message", T: DebugMessage, oneof: "event" },
335
335
  ],
336
336
  );
337
337
 
@@ -86,6 +86,11 @@ export declare class SimulationRunSummary_Issue extends Message<SimulationRunSum
86
86
  */
87
87
  suggestion: string;
88
88
 
89
+ /**
90
+ * @generated from field: string label = 3;
91
+ */
92
+ label: string;
93
+
89
94
  constructor(data?: PartialMessage<SimulationRunSummary_Issue>);
90
95
 
91
96
  static readonly runtime: typeof proto3;
@@ -180,6 +185,13 @@ export declare class SimulationRun extends Message<SimulationRun> {
180
185
  */
181
186
  numSimulations: number;
182
187
 
188
+ /**
189
+ * Aggregate usage across all jobs in this run (sum of Job.usage).
190
+ *
191
+ * @generated from field: livekit.SimulationRun.Usage usage = 16;
192
+ */
193
+ usage?: SimulationRun_Usage;
194
+
183
195
  constructor(data?: PartialMessage<SimulationRun>);
184
196
 
185
197
  static readonly runtime: typeof proto3;
@@ -299,6 +311,11 @@ export declare class SimulationRun_Job extends Message<SimulationRun_Job> {
299
311
  */
300
312
  roomId: string;
301
313
 
314
+ /**
315
+ * @generated from field: livekit.SimulationRun.Job.Usage usage = 13;
316
+ */
317
+ usage?: SimulationRun_Job_Usage;
318
+
302
319
  constructor(data?: PartialMessage<SimulationRun_Job>);
303
320
 
304
321
  static readonly runtime: typeof proto3;
@@ -344,6 +361,35 @@ export declare enum SimulationRun_Job_Status {
344
361
  CANCELLED = 4,
345
362
  }
346
363
 
364
+ /**
365
+ * @generated from message livekit.SimulationRun.Job.Usage
366
+ */
367
+ export declare class SimulationRun_Job_Usage extends Message<SimulationRun_Job_Usage> {
368
+ /**
369
+ * @generated from field: int32 text_turns_count = 1;
370
+ */
371
+ textTurnsCount: number;
372
+
373
+ /**
374
+ * @generated from field: int32 audio_turns_count = 2;
375
+ */
376
+ audioTurnsCount: number;
377
+
378
+ constructor(data?: PartialMessage<SimulationRun_Job_Usage>);
379
+
380
+ static readonly runtime: typeof proto3;
381
+ static readonly typeName = "livekit.SimulationRun.Job.Usage";
382
+ static readonly fields: FieldList;
383
+
384
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationRun_Job_Usage;
385
+
386
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationRun_Job_Usage;
387
+
388
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationRun_Job_Usage;
389
+
390
+ static equals(a: SimulationRun_Job_Usage | PlainMessage<SimulationRun_Job_Usage> | undefined, b: SimulationRun_Job_Usage | PlainMessage<SimulationRun_Job_Usage> | undefined): boolean;
391
+ }
392
+
347
393
  /**
348
394
  * @generated from message livekit.SimulationRun.Create
349
395
  */
@@ -809,6 +855,35 @@ export declare class SimulationRun_Cancel_Response extends Message<SimulationRun
809
855
  static equals(a: SimulationRun_Cancel_Response | PlainMessage<SimulationRun_Cancel_Response> | undefined, b: SimulationRun_Cancel_Response | PlainMessage<SimulationRun_Cancel_Response> | undefined): boolean;
810
856
  }
811
857
 
858
+ /**
859
+ * @generated from message livekit.SimulationRun.Usage
860
+ */
861
+ export declare class SimulationRun_Usage extends Message<SimulationRun_Usage> {
862
+ /**
863
+ * @generated from field: int32 text_turns_count = 1;
864
+ */
865
+ textTurnsCount: number;
866
+
867
+ /**
868
+ * @generated from field: int32 audio_turns_count = 2;
869
+ */
870
+ audioTurnsCount: number;
871
+
872
+ constructor(data?: PartialMessage<SimulationRun_Usage>);
873
+
874
+ static readonly runtime: typeof proto3;
875
+ static readonly typeName = "livekit.SimulationRun.Usage";
876
+ static readonly fields: FieldList;
877
+
878
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulationRun_Usage;
879
+
880
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulationRun_Usage;
881
+
882
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulationRun_Usage;
883
+
884
+ static equals(a: SimulationRun_Usage | PlainMessage<SimulationRun_Usage> | undefined, b: SimulationRun_Usage | PlainMessage<SimulationRun_Usage> | undefined): boolean;
885
+ }
886
+
812
887
  /**
813
888
  * @generated from message livekit.Scenario
814
889
  */
@@ -45,6 +45,7 @@ export const SimulationRunSummary_Issue = /*@__PURE__*/ proto3.makeMessageType(
45
45
  () => [
46
46
  { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
47
47
  { no: 2, name: "suggestion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
+ { no: 3, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
49
  ],
49
50
  {localName: "SimulationRunSummary_Issue"},
50
51
  );
@@ -70,6 +71,7 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
70
71
  { no: 13, name: "passed_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
71
72
  { no: 14, name: "failed_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
72
73
  { no: 15, name: "num_simulations", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
74
+ { no: 16, name: "usage", kind: "message", T: SimulationRun_Usage },
73
75
  ],
74
76
  );
75
77
 
@@ -107,6 +109,7 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
107
109
  { no: 10, name: "started_at", kind: "message", T: Timestamp },
108
110
  { no: 11, name: "ended_at", kind: "message", T: Timestamp },
109
111
  { no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
112
+ { no: 13, name: "usage", kind: "message", T: SimulationRun_Job_Usage },
110
113
  ],
111
114
  {localName: "SimulationRun_Job"},
112
115
  );
@@ -125,6 +128,18 @@ export const SimulationRun_Job_Status = /*@__PURE__*/ proto3.makeEnum(
125
128
  ],
126
129
  );
127
130
 
131
+ /**
132
+ * @generated from message livekit.SimulationRun.Job.Usage
133
+ */
134
+ export const SimulationRun_Job_Usage = /*@__PURE__*/ proto3.makeMessageType(
135
+ "livekit.SimulationRun.Job.Usage",
136
+ () => [
137
+ { no: 1, name: "text_turns_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
138
+ { no: 2, name: "audio_turns_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
139
+ ],
140
+ {localName: "SimulationRun_Job_Usage"},
141
+ );
142
+
128
143
  /**
129
144
  * @generated from message livekit.SimulationRun.Create
130
145
  */
@@ -315,6 +330,18 @@ export const SimulationRun_Cancel_Response = /*@__PURE__*/ proto3.makeMessageTyp
315
330
  {localName: "SimulationRun_Cancel_Response"},
316
331
  );
317
332
 
333
+ /**
334
+ * @generated from message livekit.SimulationRun.Usage
335
+ */
336
+ export const SimulationRun_Usage = /*@__PURE__*/ proto3.makeMessageType(
337
+ "livekit.SimulationRun.Usage",
338
+ () => [
339
+ { no: 1, name: "text_turns_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
340
+ { no: 2, name: "audio_turns_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
341
+ ],
342
+ {localName: "SimulationRun_Usage"},
343
+ );
344
+
318
345
  /**
319
346
  * @generated from message livekit.Scenario
320
347
  */
@@ -478,15 +478,12 @@ export declare class MediaSource extends Message<MediaSource> {
478
478
  } | { case: undefined; value?: undefined };
479
479
 
480
480
  /**
481
+ * TODO: DataConfig data = 4;
482
+ *
481
483
  * @generated from field: livekit.AudioConfig audio = 3;
482
484
  */
483
485
  audio?: AudioConfig;
484
486
 
485
- /**
486
- * @generated from field: livekit.DataConfig data = 4;
487
- */
488
- data?: DataConfig;
489
-
490
487
  constructor(data?: PartialMessage<MediaSource>);
491
488
 
492
489
  static readonly runtime: typeof proto3;
@@ -539,10 +536,14 @@ export declare class ParticipantVideo extends Message<ParticipantVideo> {
539
536
  */
540
537
  export declare class AudioConfig extends Message<AudioConfig> {
541
538
  /**
542
- * If empty, all audio captured in both channels.
543
- * If non-empty, only matching audio is captured and routed. Unmatched is excluded.
539
+ * If true, all unmatched audio is recorded to both channels
544
540
  *
545
- * @generated from field: repeated livekit.AudioRoute routes = 1;
541
+ * @generated from field: bool capture_all = 1;
542
+ */
543
+ captureAll: boolean;
544
+
545
+ /**
546
+ * @generated from field: repeated livekit.AudioRoute routes = 2;
546
547
  */
547
548
  routes: AudioRoute[];
548
549
 
@@ -613,10 +614,12 @@ export declare class AudioRoute extends Message<AudioRoute> {
613
614
  */
614
615
  export declare class DataConfig extends Message<DataConfig> {
615
616
  /**
616
- * If empty, all data tracks captured.
617
- * If non-empty, only matching data tracks are captured.
618
- *
619
- * @generated from field: repeated livekit.DataSelector selectors = 1;
617
+ * @generated from field: bool capture_all = 1;
618
+ */
619
+ captureAll: boolean;
620
+
621
+ /**
622
+ * @generated from field: repeated livekit.DataSelector selectors = 2;
620
623
  */
621
624
  selectors: DataSelector[];
622
625
 
@@ -654,12 +657,6 @@ export declare class DataSelector extends Message<DataSelector> {
654
657
  */
655
658
  value: string;
656
659
  case: "participantIdentity";
657
- } | {
658
- /**
659
- * @generated from field: string topic = 3;
660
- */
661
- value: string;
662
- case: "topic";
663
660
  } | { case: undefined; value?: undefined };
664
661
 
665
662
  constructor(data?: PartialMessage<DataSelector>);
@@ -811,7 +808,7 @@ export declare class Output extends Message<Output> {
811
808
  case: "segments";
812
809
  } | {
813
810
  /**
814
- * 5 reserved for mcap;
811
+ * TODO: DataOutput data = 5;
815
812
  *
816
813
  * @generated from field: livekit.ImageOutput images = 4;
817
814
  */
@@ -967,6 +964,8 @@ export declare class SegmentedFileOutput extends Message<SegmentedFileOutput> {
967
964
  disableManifest: boolean;
968
965
 
969
966
  /**
967
+ * TODO: deprecate
968
+ *
970
969
  * @generated from oneof livekit.SegmentedFileOutput.output
971
970
  */
972
971
  output: {
@@ -1066,6 +1065,8 @@ export declare class ImageOutput extends Message<ImageOutput> {
1066
1065
  disableManifest: boolean;
1067
1066
 
1068
1067
  /**
1068
+ * TODO: deprecate
1069
+ *
1069
1070
  * @generated from oneof livekit.ImageOutput.output
1070
1071
  */
1071
1072
  output: {
@@ -1590,14 +1591,20 @@ export declare class EgressInfo extends Message<EgressInfo> {
1590
1591
  */
1591
1592
  request: {
1592
1593
  /**
1593
- * StartEgressRequest egress = 29;
1594
- *
1594
+ * @generated from field: livekit.StartEgressRequest egress = 29;
1595
+ */
1596
+ value: StartEgressRequest;
1597
+ case: "egress";
1598
+ } | {
1599
+ /**
1595
1600
  * @generated from field: livekit.ExportReplayRequest replay = 30;
1596
1601
  */
1597
1602
  value: ExportReplayRequest;
1598
1603
  case: "replay";
1599
1604
  } | {
1600
1605
  /**
1606
+ * TODO: deprecate
1607
+ *
1601
1608
  * @generated from field: livekit.RoomCompositeEgressRequest room_composite = 4;
1602
1609
  */
1603
1610
  value: RoomCompositeEgressRequest;
@@ -209,7 +209,6 @@ export const MediaSource = /*@__PURE__*/ proto3.makeMessageType(
209
209
  { no: 1, name: "video_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "video" },
210
210
  { no: 2, name: "participant_video", kind: "message", T: ParticipantVideo, oneof: "video" },
211
211
  { no: 3, name: "audio", kind: "message", T: AudioConfig },
212
- { no: 4, name: "data", kind: "message", T: DataConfig },
213
212
  ],
214
213
  );
215
214
 
@@ -233,7 +232,8 @@ export const ParticipantVideo = /*@__PURE__*/ proto3.makeMessageType(
233
232
  export const AudioConfig = /*@__PURE__*/ proto3.makeMessageType(
234
233
  "livekit.AudioConfig",
235
234
  () => [
236
- { no: 1, name: "routes", kind: "message", T: AudioRoute, repeated: true },
235
+ { no: 1, name: "capture_all", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
236
+ { no: 2, name: "routes", kind: "message", T: AudioRoute, repeated: true },
237
237
  ],
238
238
  );
239
239
 
@@ -256,7 +256,8 @@ export const AudioRoute = /*@__PURE__*/ proto3.makeMessageType(
256
256
  export const DataConfig = /*@__PURE__*/ proto3.makeMessageType(
257
257
  "livekit.DataConfig",
258
258
  () => [
259
- { no: 1, name: "selectors", kind: "message", T: DataSelector, repeated: true },
259
+ { no: 1, name: "capture_all", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
260
+ { no: 2, name: "selectors", kind: "message", T: DataSelector, repeated: true },
260
261
  ],
261
262
  );
262
263
 
@@ -268,7 +269,6 @@ export const DataSelector = /*@__PURE__*/ proto3.makeMessageType(
268
269
  () => [
269
270
  { no: 1, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
270
271
  { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
271
- { no: 3, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "match" },
272
272
  ],
273
273
  );
274
274
 
@@ -524,6 +524,7 @@ export const EgressInfo = /*@__PURE__*/ proto3.makeMessageType(
524
524
  { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
525
525
  { no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
526
526
  { no: 18, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
527
+ { no: 29, name: "egress", kind: "message", T: StartEgressRequest, oneof: "request" },
527
528
  { no: 30, name: "replay", kind: "message", T: ExportReplayRequest, oneof: "request" },
528
529
  { no: 4, name: "room_composite", kind: "message", T: RoomCompositeEgressRequest, oneof: "request" },
529
530
  { no: 14, name: "web", kind: "message", T: WebEgressRequest, oneof: "request" },
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.46.3';
2
+ export const version = '1.46.5';