@livekit/protocol 1.11.0 → 1.12.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.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -310,6 +310,41 @@ export declare enum SubscriptionError {
310
310
  SE_TRACK_NOTFOUND = 2,
311
311
  }
312
312
 
313
+ /**
314
+ * @generated from enum livekit.AudioTrackFeature
315
+ */
316
+ export declare enum AudioTrackFeature {
317
+ /**
318
+ * @generated from enum value: TF_STEREO = 0;
319
+ */
320
+ TF_STEREO = 0,
321
+
322
+ /**
323
+ * @generated from enum value: TF_NO_DTX = 1;
324
+ */
325
+ TF_NO_DTX = 1,
326
+
327
+ /**
328
+ * @generated from enum value: TF_AUTO_GAIN_CONTROL = 2;
329
+ */
330
+ TF_AUTO_GAIN_CONTROL = 2,
331
+
332
+ /**
333
+ * @generated from enum value: TF_ECHO_CANCELLATION = 3;
334
+ */
335
+ TF_ECHO_CANCELLATION = 3,
336
+
337
+ /**
338
+ * @generated from enum value: TF_NOISE_SUPPRESSION = 4;
339
+ */
340
+ TF_NOISE_SUPPRESSION = 4,
341
+
342
+ /**
343
+ * @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5;
344
+ */
345
+ TF_ENHANCED_NOISE_CANCELLATION = 5,
346
+ }
347
+
313
348
  /**
314
349
  * @generated from message livekit.Room
315
350
  */
@@ -165,6 +165,21 @@ export const SubscriptionError = proto3.makeEnum(
165
165
  ],
166
166
  );
167
167
 
168
+ /**
169
+ * @generated from enum livekit.AudioTrackFeature
170
+ */
171
+ export const AudioTrackFeature = proto3.makeEnum(
172
+ "livekit.AudioTrackFeature",
173
+ [
174
+ {no: 0, name: "TF_STEREO"},
175
+ {no: 1, name: "TF_NO_DTX"},
176
+ {no: 2, name: "TF_AUTO_GAIN_CONTROL"},
177
+ {no: 3, name: "TF_ECHO_CANCELLATION"},
178
+ {no: 4, name: "TF_NOISE_SUPPRESSION"},
179
+ {no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION"},
180
+ ],
181
+ );
182
+
168
183
  /**
169
184
  * @generated from message livekit.Room
170
185
  */
@@ -19,7 +19,7 @@
19
19
 
20
20
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
22
+ import type { AudioTrackFeature, ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
23
23
 
24
24
  /**
25
25
  * @generated from enum livekit.SignalTarget
@@ -194,6 +194,22 @@ export declare class SignalRequest extends Message<SignalRequest> {
194
194
  */
195
195
  value: Ping;
196
196
  case: "pingReq";
197
+ } | {
198
+ /**
199
+ * Update local audio track settings
200
+ *
201
+ * @generated from field: livekit.UpdateLocalAudioTrack update_audio_track = 17;
202
+ */
203
+ value: UpdateLocalAudioTrack;
204
+ case: "updateAudioTrack";
205
+ } | {
206
+ /**
207
+ * Update local video track settings
208
+ *
209
+ * @generated from field: livekit.UpdateLocalVideoTrack update_video_track = 18;
210
+ */
211
+ value: UpdateLocalVideoTrack;
212
+ case: "updateVideoTrack";
197
213
  } | { case: undefined; value?: undefined };
198
214
 
199
215
  constructor(data?: PartialMessage<SignalRequest>);
@@ -930,6 +946,69 @@ export declare class UpdateTrackSettings extends Message<UpdateTrackSettings> {
930
946
  static equals(a: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined, b: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined): boolean;
931
947
  }
932
948
 
949
+ /**
950
+ * @generated from message livekit.UpdateLocalAudioTrack
951
+ */
952
+ export declare class UpdateLocalAudioTrack extends Message<UpdateLocalAudioTrack> {
953
+ /**
954
+ * @generated from field: string track_sid = 1;
955
+ */
956
+ trackSid: string;
957
+
958
+ /**
959
+ * @generated from field: repeated livekit.AudioTrackFeature features = 2;
960
+ */
961
+ features: AudioTrackFeature[];
962
+
963
+ constructor(data?: PartialMessage<UpdateLocalAudioTrack>);
964
+
965
+ static readonly runtime: typeof proto3;
966
+ static readonly typeName = "livekit.UpdateLocalAudioTrack";
967
+ static readonly fields: FieldList;
968
+
969
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalAudioTrack;
970
+
971
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalAudioTrack;
972
+
973
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalAudioTrack;
974
+
975
+ static equals(a: UpdateLocalAudioTrack | PlainMessage<UpdateLocalAudioTrack> | undefined, b: UpdateLocalAudioTrack | PlainMessage<UpdateLocalAudioTrack> | undefined): boolean;
976
+ }
977
+
978
+ /**
979
+ * @generated from message livekit.UpdateLocalVideoTrack
980
+ */
981
+ export declare class UpdateLocalVideoTrack extends Message<UpdateLocalVideoTrack> {
982
+ /**
983
+ * @generated from field: string track_sid = 1;
984
+ */
985
+ trackSid: string;
986
+
987
+ /**
988
+ * @generated from field: uint32 width = 2;
989
+ */
990
+ width: number;
991
+
992
+ /**
993
+ * @generated from field: uint32 height = 3;
994
+ */
995
+ height: number;
996
+
997
+ constructor(data?: PartialMessage<UpdateLocalVideoTrack>);
998
+
999
+ static readonly runtime: typeof proto3;
1000
+ static readonly typeName = "livekit.UpdateLocalVideoTrack";
1001
+ static readonly fields: FieldList;
1002
+
1003
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalVideoTrack;
1004
+
1005
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalVideoTrack;
1006
+
1007
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalVideoTrack;
1008
+
1009
+ static equals(a: UpdateLocalVideoTrack | PlainMessage<UpdateLocalVideoTrack> | undefined, b: UpdateLocalVideoTrack | PlainMessage<UpdateLocalVideoTrack> | undefined): boolean;
1010
+ }
1011
+
933
1012
  /**
934
1013
  * @generated from message livekit.LeaveRequest
935
1014
  */
@@ -18,7 +18,7 @@
18
18
  // @ts-nocheck
19
19
 
20
20
  import { proto3 } from "@bufbuild/protobuf";
21
- import { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
21
+ import { AudioTrackFeature, ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
22
22
 
23
23
  /**
24
24
  * @generated from enum livekit.SignalTarget
@@ -75,6 +75,8 @@ export const SignalRequest = proto3.makeMessageType(
75
75
  { no: 14, name: "ping", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "message" },
76
76
  { no: 15, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "message" },
77
77
  { no: 16, name: "ping_req", kind: "message", T: Ping, oneof: "message" },
78
+ { no: 17, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "message" },
79
+ { no: 18, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "message" },
78
80
  ],
79
81
  );
80
82
 
@@ -267,6 +269,29 @@ export const UpdateTrackSettings = proto3.makeMessageType(
267
269
  ],
268
270
  );
269
271
 
272
+ /**
273
+ * @generated from message livekit.UpdateLocalAudioTrack
274
+ */
275
+ export const UpdateLocalAudioTrack = proto3.makeMessageType(
276
+ "livekit.UpdateLocalAudioTrack",
277
+ () => [
278
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
+ { no: 2, name: "features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
280
+ ],
281
+ );
282
+
283
+ /**
284
+ * @generated from message livekit.UpdateLocalVideoTrack
285
+ */
286
+ export const UpdateLocalVideoTrack = proto3.makeMessageType(
287
+ "livekit.UpdateLocalVideoTrack",
288
+ () => [
289
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
290
+ { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
291
+ { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
292
+ ],
293
+ );
294
+
270
295
  /**
271
296
  * @generated from message livekit.LeaveRequest
272
297
  */
@@ -539,6 +539,14 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
539
539
  */
540
540
  participantIdentity: string;
541
541
 
542
+ /**
543
+ * Optionally send following DTMF digits (extension codes) when making a call.
544
+ * Character 'w' can be used to add a 0.5 sec delay.
545
+ *
546
+ * @generated from field: string dtmf = 5;
547
+ */
548
+ dtmf: string;
549
+
542
550
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
543
551
 
544
552
  static readonly runtime: typeof proto3;
@@ -183,6 +183,7 @@ export const CreateSIPParticipantRequest = 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: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
187
  ],
187
188
  );
188
189
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.11.0';
2
+ export const version = '1.12.0';