@livekit/protocol 1.13.0 → 1.14.0

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.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -189,12 +189,20 @@ export declare class CreateIngressRequest extends Message<CreateIngressRequest>
189
189
  participantMetadata: string;
190
190
 
191
191
  /**
192
- * whether to pass through the incoming media without transcoding, only compatible with some input types
192
+ * [depreacted ] whether to pass through the incoming media without transcoding, only compatible with some input types. Use `enable_transcoding` instead.
193
193
  *
194
- * @generated from field: bool bypass_transcoding = 8;
194
+ * @generated from field: bool bypass_transcoding = 8 [deprecated = true];
195
+ * @deprecated
195
196
  */
196
197
  bypassTranscoding: boolean;
197
198
 
199
+ /**
200
+ * Whether to transcode the ingested media. Only WHIP supports disabling transcoding currently. WHIP will default to transcoding disabled. Replaces `bypass_transcoding.
201
+ *
202
+ * @generated from field: optional bool enable_transcoding = 11;
203
+ */
204
+ enableTranscoding?: boolean;
205
+
198
206
  /**
199
207
  * @generated from field: livekit.IngressAudioOptions audio = 6;
200
208
  */
@@ -427,10 +435,16 @@ export declare class IngressInfo extends Message<IngressInfo> {
427
435
  inputType: IngressInput;
428
436
 
429
437
  /**
430
- * @generated from field: bool bypass_transcoding = 13;
438
+ * @generated from field: bool bypass_transcoding = 13 [deprecated = true];
439
+ * @deprecated
431
440
  */
432
441
  bypassTranscoding: boolean;
433
442
 
443
+ /**
444
+ * @generated from field: optional bool enable_transcoding = 15;
445
+ */
446
+ enableTranscoding?: boolean;
447
+
434
448
  /**
435
449
  * @generated from field: livekit.IngressAudioOptions audio = 6;
436
450
  */
@@ -531,6 +545,11 @@ export declare class IngressState extends Message<IngressState> {
531
545
  */
532
546
  endedAt: bigint;
533
547
 
548
+ /**
549
+ * @generated from field: int64 updated_at = 10;
550
+ */
551
+ updatedAt: bigint;
552
+
534
553
  /**
535
554
  * @generated from field: string resource_id = 9;
536
555
  */
@@ -704,10 +723,16 @@ export declare class UpdateIngressRequest extends Message<UpdateIngressRequest>
704
723
  participantMetadata: string;
705
724
 
706
725
  /**
707
- * @generated from field: optional bool bypass_transcoding = 8;
726
+ * @generated from field: optional bool bypass_transcoding = 8 [deprecated = true];
727
+ * @deprecated
708
728
  */
709
729
  bypassTranscoding?: boolean;
710
730
 
731
+ /**
732
+ * @generated from field: optional bool enable_transcoding = 10;
733
+ */
734
+ enableTranscoding?: boolean;
735
+
711
736
  /**
712
737
  * @generated from field: livekit.IngressAudioOptions audio = 6;
713
738
  */
@@ -76,6 +76,7 @@ export const CreateIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
76
76
  { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
77
  { no: 10, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
78
78
  { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
79
+ { no: 11, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
79
80
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
80
81
  { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
81
82
  ],
@@ -144,6 +145,7 @@ export const IngressInfo = /*@__PURE__*/ proto3.makeMessageType(
144
145
  { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
146
  { no: 5, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) },
146
147
  { no: 13, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
148
+ { no: 15, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
147
149
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
148
150
  { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
149
151
  { no: 8, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -168,6 +170,7 @@ export const IngressState = /*@__PURE__*/ proto3.makeMessageType(
168
170
  { no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
171
  { no: 7, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
170
172
  { no: 8, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
173
+ { no: 10, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
171
174
  { no: 9, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
172
175
  { no: 6, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
173
176
  ],
@@ -227,6 +230,7 @@ export const UpdateIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
227
230
  { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
231
  { no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
232
  { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
233
+ { no: 10, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
230
234
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
231
235
  { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
232
236
  ],
@@ -911,6 +911,11 @@ export declare class TrackInfo extends Message<TrackInfo> {
911
911
  */
912
912
  version?: TimedVersion;
913
913
 
914
+ /**
915
+ * @generated from field: repeated livekit.AudioTrackFeature audio_features = 19;
916
+ */
917
+ audioFeatures: AudioTrackFeature[];
918
+
914
919
  constructor(data?: PartialMessage<TrackInfo>);
915
920
 
916
921
  static readonly runtime: typeof proto3;
@@ -1024,6 +1029,12 @@ export declare class DataPacket extends Message<DataPacket> {
1024
1029
  */
1025
1030
  value: SipDTMF;
1026
1031
  case: "sipDtmf";
1032
+ } | {
1033
+ /**
1034
+ * @generated from field: livekit.Transcription transcription = 7;
1035
+ */
1036
+ value: Transcription;
1037
+ case: "transcription";
1027
1038
  } | { case: undefined; value?: undefined };
1028
1039
 
1029
1040
  constructor(data?: PartialMessage<DataPacket>);
@@ -1166,6 +1177,25 @@ export declare class UserPacket extends Message<UserPacket> {
1166
1177
  */
1167
1178
  topic?: string;
1168
1179
 
1180
+ /**
1181
+ * Unique ID to indentify the message
1182
+ *
1183
+ * @generated from field: optional string id = 8;
1184
+ */
1185
+ id?: string;
1186
+
1187
+ /**
1188
+ * start and end time allow relating the message to specific media time
1189
+ *
1190
+ * @generated from field: optional uint64 start_time = 9;
1191
+ */
1192
+ startTime?: bigint;
1193
+
1194
+ /**
1195
+ * @generated from field: optional uint64 end_time = 10;
1196
+ */
1197
+ endTime?: bigint;
1198
+
1169
1199
  constructor(data?: PartialMessage<UserPacket>);
1170
1200
 
1171
1201
  static readonly runtime: typeof proto3;
@@ -1210,6 +1240,89 @@ export declare class SipDTMF extends Message<SipDTMF> {
1210
1240
  static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
1211
1241
  }
1212
1242
 
1243
+ /**
1244
+ * @generated from message livekit.Transcription
1245
+ */
1246
+ export declare class Transcription extends Message<Transcription> {
1247
+ /**
1248
+ * @generated from field: string participant_identity = 2;
1249
+ */
1250
+ participantIdentity: string;
1251
+
1252
+ /**
1253
+ * @generated from field: string track_id = 3;
1254
+ */
1255
+ trackId: string;
1256
+
1257
+ /**
1258
+ * @generated from field: repeated livekit.TranscriptionSegment segments = 4;
1259
+ */
1260
+ segments: TranscriptionSegment[];
1261
+
1262
+ /**
1263
+ * @generated from field: string language = 5;
1264
+ */
1265
+ language: string;
1266
+
1267
+ constructor(data?: PartialMessage<Transcription>);
1268
+
1269
+ static readonly runtime: typeof proto3;
1270
+ static readonly typeName = "livekit.Transcription";
1271
+ static readonly fields: FieldList;
1272
+
1273
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transcription;
1274
+
1275
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transcription;
1276
+
1277
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transcription;
1278
+
1279
+ static equals(a: Transcription | PlainMessage<Transcription> | undefined, b: Transcription | PlainMessage<Transcription> | undefined): boolean;
1280
+ }
1281
+
1282
+ /**
1283
+ * @generated from message livekit.TranscriptionSegment
1284
+ */
1285
+ export declare class TranscriptionSegment extends Message<TranscriptionSegment> {
1286
+ /**
1287
+ * @generated from field: string id = 1;
1288
+ */
1289
+ id: string;
1290
+
1291
+ /**
1292
+ * @generated from field: string text = 2;
1293
+ */
1294
+ text: string;
1295
+
1296
+ /**
1297
+ * @generated from field: uint64 start_time = 3;
1298
+ */
1299
+ startTime: bigint;
1300
+
1301
+ /**
1302
+ * @generated from field: uint64 end_time = 4;
1303
+ */
1304
+ endTime: bigint;
1305
+
1306
+ /**
1307
+ * @generated from field: bool final = 5;
1308
+ */
1309
+ final: boolean;
1310
+
1311
+ constructor(data?: PartialMessage<TranscriptionSegment>);
1312
+
1313
+ static readonly runtime: typeof proto3;
1314
+ static readonly typeName = "livekit.TranscriptionSegment";
1315
+ static readonly fields: FieldList;
1316
+
1317
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment;
1318
+
1319
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1320
+
1321
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1322
+
1323
+ static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1324
+ }
1325
+
1213
1326
  /**
1214
1327
  * @generated from message livekit.ParticipantTracks
1215
1328
  */
@@ -347,6 +347,7 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
347
347
  { no: 16, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
348
348
  { no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
349
349
  { no: 18, name: "version", kind: "message", T: TimedVersion },
350
+ { no: 19, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
350
351
  ],
351
352
  );
352
353
 
@@ -380,6 +381,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
380
381
  { no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" },
381
382
  { no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" },
382
383
  { no: 6, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
384
+ { no: 7, name: "transcription", kind: "message", T: Transcription, oneof: "value" },
383
385
  ],
384
386
  );
385
387
 
@@ -428,6 +430,9 @@ export const UserPacket = /*@__PURE__*/ proto3.makeMessageType(
428
430
  { no: 3, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
429
431
  { no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
430
432
  { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
433
+ { no: 8, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
434
+ { no: 9, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
435
+ { no: 10, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
431
436
  ],
432
437
  );
433
438
 
@@ -442,6 +447,33 @@ export const SipDTMF = /*@__PURE__*/ proto3.makeMessageType(
442
447
  ],
443
448
  );
444
449
 
450
+ /**
451
+ * @generated from message livekit.Transcription
452
+ */
453
+ export const Transcription = /*@__PURE__*/ proto3.makeMessageType(
454
+ "livekit.Transcription",
455
+ () => [
456
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
457
+ { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
458
+ { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true },
459
+ { no: 5, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
460
+ ],
461
+ );
462
+
463
+ /**
464
+ * @generated from message livekit.TranscriptionSegment
465
+ */
466
+ export const TranscriptionSegment = /*@__PURE__*/ proto3.makeMessageType(
467
+ "livekit.TranscriptionSegment",
468
+ () => [
469
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
470
+ { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
471
+ { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
472
+ { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
473
+ { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
474
+ ],
475
+ );
476
+
445
477
  /**
446
478
  * @generated from message livekit.ParticipantTracks
447
479
  */
@@ -142,7 +142,8 @@ export declare class SignalRequest extends Message<SignalRequest> {
142
142
  /**
143
143
  * Update published video layers
144
144
  *
145
- * @generated from field: livekit.UpdateVideoLayers update_layers = 10;
145
+ * @generated from field: livekit.UpdateVideoLayers update_layers = 10 [deprecated = true];
146
+ * @deprecated
146
147
  */
147
148
  value: UpdateVideoLayers;
148
149
  case: "updateLayers";
@@ -1084,6 +1085,7 @@ export declare enum LeaveRequest_Action {
1084
1085
  * message to indicate published video track dimensions are changing
1085
1086
  *
1086
1087
  * @generated from message livekit.UpdateVideoLayers
1088
+ * @deprecated
1087
1089
  */
1088
1090
  export declare class UpdateVideoLayers extends Message<UpdateVideoLayers> {
1089
1091
  /**
@@ -323,6 +323,7 @@ export const LeaveRequest_Action = /*@__PURE__*/ proto3.makeEnum(
323
323
  * message to indicate published video track dimensions are changing
324
324
  *
325
325
  * @generated from message livekit.UpdateVideoLayers
326
+ * @deprecated
326
327
  */
327
328
  export const UpdateVideoLayers = /*@__PURE__*/ proto3.makeMessageType(
328
329
  "livekit.UpdateVideoLayers",
@@ -539,6 +539,13 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
539
539
  */
540
540
  participantIdentity: string;
541
541
 
542
+ /**
543
+ * Optional name of the participant in LiveKit room
544
+ *
545
+ * @generated from field: string participant_name = 7;
546
+ */
547
+ participantName: string;
548
+
542
549
  /**
543
550
  * Optionally send following DTMF digits (extension codes) when making a call.
544
551
  * Character 'w' can be used to add a 0.5 sec delay.
@@ -183,6 +183,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
183
183
  { no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
184
184
  { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
185
185
  { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 7, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
187
  { no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
188
  { no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
188
189
  ],
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.13.0';
2
+ export const version = '1.14.0';