@livekit/protocol 1.43.1 → 1.43.4

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.
@@ -170,6 +170,21 @@ export declare enum TrackSource {
170
170
  SCREEN_SHARE_AUDIO = 4,
171
171
  }
172
172
 
173
+ /**
174
+ * @generated from enum livekit.DataTrackExtensionID
175
+ */
176
+ export declare enum DataTrackExtensionID {
177
+ /**
178
+ * @generated from enum value: DTEI_INVALID = 0;
179
+ */
180
+ DTEI_INVALID = 0,
181
+
182
+ /**
183
+ * @generated from enum value: DTEI_PARTICIPANT_SID = 1;
184
+ */
185
+ DTEI_PARTICIPANT_SID = 1,
186
+ }
187
+
173
188
  /**
174
189
  * @generated from enum livekit.VideoQuality
175
190
  */
@@ -880,6 +895,11 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
880
895
  */
881
896
  kindDetails: ParticipantInfo_KindDetail[];
882
897
 
898
+ /**
899
+ * @generated from field: repeated livekit.DataTrackInfo data_tracks = 19;
900
+ */
901
+ dataTracks: DataTrackInfo[];
902
+
883
903
  constructor(data?: PartialMessage<ParticipantInfo>);
884
904
 
885
905
  static readonly runtime: typeof proto3;
@@ -1241,6 +1261,109 @@ export declare class TrackInfo extends Message<TrackInfo> {
1241
1261
  static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
1242
1262
  }
1243
1263
 
1264
+ /**
1265
+ * @generated from message livekit.DataTrackInfo
1266
+ */
1267
+ export declare class DataTrackInfo extends Message<DataTrackInfo> {
1268
+ /**
1269
+ * Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
1270
+ *
1271
+ * @generated from field: uint32 pub_handle = 1;
1272
+ */
1273
+ pubHandle: number;
1274
+
1275
+ /**
1276
+ * Server-assigned track identifier.
1277
+ *
1278
+ * @generated from field: string sid = 2;
1279
+ */
1280
+ sid: string;
1281
+
1282
+ /**
1283
+ * Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
1284
+ *
1285
+ * @generated from field: string name = 3;
1286
+ */
1287
+ name: string;
1288
+
1289
+ /**
1290
+ * Method used for end-to-end encryption (E2EE) on packet payloads.
1291
+ *
1292
+ * @generated from field: livekit.Encryption.Type encryption = 4;
1293
+ */
1294
+ encryption: Encryption_Type;
1295
+
1296
+ constructor(data?: PartialMessage<DataTrackInfo>);
1297
+
1298
+ static readonly runtime: typeof proto3;
1299
+ static readonly typeName = "livekit.DataTrackInfo";
1300
+ static readonly fields: FieldList;
1301
+
1302
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackInfo;
1303
+
1304
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackInfo;
1305
+
1306
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackInfo;
1307
+
1308
+ static equals(a: DataTrackInfo | PlainMessage<DataTrackInfo> | undefined, b: DataTrackInfo | PlainMessage<DataTrackInfo> | undefined): boolean;
1309
+ }
1310
+
1311
+ /**
1312
+ * @generated from message livekit.DataTrackExtensionParticipantSid
1313
+ */
1314
+ export declare class DataTrackExtensionParticipantSid extends Message<DataTrackExtensionParticipantSid> {
1315
+ /**
1316
+ * @generated from field: livekit.DataTrackExtensionID id = 1;
1317
+ */
1318
+ id: DataTrackExtensionID;
1319
+
1320
+ /**
1321
+ * @generated from field: string participant_sid = 2;
1322
+ */
1323
+ participantSid: string;
1324
+
1325
+ constructor(data?: PartialMessage<DataTrackExtensionParticipantSid>);
1326
+
1327
+ static readonly runtime: typeof proto3;
1328
+ static readonly typeName = "livekit.DataTrackExtensionParticipantSid";
1329
+ static readonly fields: FieldList;
1330
+
1331
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackExtensionParticipantSid;
1332
+
1333
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackExtensionParticipantSid;
1334
+
1335
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackExtensionParticipantSid;
1336
+
1337
+ static equals(a: DataTrackExtensionParticipantSid | PlainMessage<DataTrackExtensionParticipantSid> | undefined, b: DataTrackExtensionParticipantSid | PlainMessage<DataTrackExtensionParticipantSid> | undefined): boolean;
1338
+ }
1339
+
1340
+ /**
1341
+ * @generated from message livekit.DataTrackSubscriptionOptions
1342
+ */
1343
+ export declare class DataTrackSubscriptionOptions extends Message<DataTrackSubscriptionOptions> {
1344
+ /**
1345
+ * Rate in frames per second (FPS) the subscriber wants to receive frames at.
1346
+ * If omitted, the subscriber defaults to the publisher's fps
1347
+ *
1348
+ * @generated from field: optional uint32 target_fps = 1;
1349
+ */
1350
+ targetFps?: number;
1351
+
1352
+ constructor(data?: PartialMessage<DataTrackSubscriptionOptions>);
1353
+
1354
+ static readonly runtime: typeof proto3;
1355
+ static readonly typeName = "livekit.DataTrackSubscriptionOptions";
1356
+ static readonly fields: FieldList;
1357
+
1358
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackSubscriptionOptions;
1359
+
1360
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackSubscriptionOptions;
1361
+
1362
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackSubscriptionOptions;
1363
+
1364
+ static equals(a: DataTrackSubscriptionOptions | PlainMessage<DataTrackSubscriptionOptions> | undefined, b: DataTrackSubscriptionOptions | PlainMessage<DataTrackSubscriptionOptions> | undefined): boolean;
1365
+ }
1366
+
1244
1367
  /**
1245
1368
  * provide information about available spatial layers
1246
1369
  *
@@ -98,6 +98,17 @@ export const TrackSource = /*@__PURE__*/ proto3.makeEnum(
98
98
  ],
99
99
  );
100
100
 
101
+ /**
102
+ * @generated from enum livekit.DataTrackExtensionID
103
+ */
104
+ export const DataTrackExtensionID = /*@__PURE__*/ proto3.makeEnum(
105
+ "livekit.DataTrackExtensionID",
106
+ [
107
+ {no: 0, name: "DTEI_INVALID"},
108
+ {no: 1, name: "DTEI_PARTICIPANT_SID"},
109
+ ],
110
+ );
111
+
101
112
  /**
102
113
  * @generated from enum livekit.VideoQuality
103
114
  */
@@ -325,6 +336,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
325
336
  { no: 15, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
326
337
  { no: 16, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
327
338
  { no: 18, name: "kind_details", kind: "enum", T: proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true },
339
+ { no: 19, name: "data_tracks", kind: "message", T: DataTrackInfo, repeated: true },
328
340
  ],
329
341
  );
330
342
 
@@ -433,6 +445,40 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
433
445
  ],
434
446
  );
435
447
 
448
+ /**
449
+ * @generated from message livekit.DataTrackInfo
450
+ */
451
+ export const DataTrackInfo = /*@__PURE__*/ proto3.makeMessageType(
452
+ "livekit.DataTrackInfo",
453
+ () => [
454
+ { no: 1, name: "pub_handle", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
455
+ { no: 2, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
456
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
457
+ { no: 4, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
458
+ ],
459
+ );
460
+
461
+ /**
462
+ * @generated from message livekit.DataTrackExtensionParticipantSid
463
+ */
464
+ export const DataTrackExtensionParticipantSid = /*@__PURE__*/ proto3.makeMessageType(
465
+ "livekit.DataTrackExtensionParticipantSid",
466
+ () => [
467
+ { no: 1, name: "id", kind: "enum", T: proto3.getEnumType(DataTrackExtensionID) },
468
+ { no: 2, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
469
+ ],
470
+ );
471
+
472
+ /**
473
+ * @generated from message livekit.DataTrackSubscriptionOptions
474
+ */
475
+ export const DataTrackSubscriptionOptions = /*@__PURE__*/ proto3.makeMessageType(
476
+ "livekit.DataTrackSubscriptionOptions",
477
+ () => [
478
+ { no: 1, name: "target_fps", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
479
+ ],
480
+ );
481
+
436
482
  /**
437
483
  * provide information about available spatial layers
438
484
  *
@@ -40,6 +40,13 @@ export declare enum PhoneNumberStatus {
40
40
  * @generated from enum value: PHONE_NUMBER_STATUS_RELEASED = 3;
41
41
  */
42
42
  RELEASED = 3,
43
+
44
+ /**
45
+ * Number is offline (not associated with any dispatch rule)
46
+ *
47
+ * @generated from enum value: PHONE_NUMBER_STATUS_OFFLINE = 4;
48
+ */
49
+ OFFLINE = 4,
43
50
  }
44
51
 
45
52
  /**
@@ -300,6 +307,13 @@ export declare class ListPhoneNumbersResponse extends Message<ListPhoneNumbersRe
300
307
  */
301
308
  totalCount: number;
302
309
 
310
+ /**
311
+ * Total number of offline phone numbers
312
+ *
313
+ * @generated from field: int32 offline_count = 4;
314
+ */
315
+ offlineCount: number;
316
+
303
317
  constructor(data?: PartialMessage<ListPhoneNumbersResponse>);
304
318
 
305
319
  static readonly runtime: typeof proto3;
@@ -611,12 +625,20 @@ export declare class PhoneNumber extends Message<PhoneNumber> {
611
625
  releasedAt?: Timestamp;
612
626
 
613
627
  /**
614
- * Associated SIP dispatch rule ID
628
+ * Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)
615
629
  *
616
- * @generated from field: string sip_dispatch_rule_id = 15;
630
+ * @generated from field: string sip_dispatch_rule_id = 15 [deprecated = true];
631
+ * @deprecated
617
632
  */
618
633
  sipDispatchRuleId: string;
619
634
 
635
+ /**
636
+ * Associated SIP dispatch rule IDs
637
+ *
638
+ * @generated from field: repeated string sip_dispatch_rule_ids = 16;
639
+ */
640
+ sipDispatchRuleIds: string[];
641
+
620
642
  constructor(data?: PartialMessage<PhoneNumber>);
621
643
 
622
644
  static readonly runtime: typeof proto3;
@@ -18,6 +18,7 @@ export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
18
18
  {no: 1, name: "PHONE_NUMBER_STATUS_ACTIVE", localName: "ACTIVE"},
19
19
  {no: 2, name: "PHONE_NUMBER_STATUS_PENDING", localName: "PENDING"},
20
20
  {no: 3, name: "PHONE_NUMBER_STATUS_RELEASED", localName: "RELEASED"},
21
+ {no: 4, name: "PHONE_NUMBER_STATUS_OFFLINE", localName: "OFFLINE"},
21
22
  ],
22
23
  );
23
24
 
@@ -115,6 +116,7 @@ export const ListPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
115
116
  { no: 1, name: "items", kind: "message", T: PhoneNumber, repeated: true },
116
117
  { no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
117
118
  { no: 3, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
119
+ { no: 4, name: "offline_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
118
120
  ],
119
121
  );
120
122
 
@@ -217,6 +219,7 @@ export const PhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
217
219
  { no: 13, name: "assigned_at", kind: "message", T: Timestamp },
218
220
  { no: 14, name: "released_at", kind: "message", T: Timestamp },
219
221
  { no: 15, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
+ { no: 16, name: "sip_dispatch_rule_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
220
223
  ],
221
224
  );
222
225
 
@@ -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 { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
22
+ import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
23
23
 
24
24
  /**
25
25
  * @generated from enum livekit.SignalTarget
@@ -212,6 +212,30 @@ export declare class SignalRequest extends Message<SignalRequest> {
212
212
  */
213
213
  value: UpdateLocalVideoTrack;
214
214
  case: "updateVideoTrack";
215
+ } | {
216
+ /**
217
+ * Publish a data track
218
+ *
219
+ * @generated from field: livekit.PublishDataTrackRequest publish_data_track_request = 19;
220
+ */
221
+ value: PublishDataTrackRequest;
222
+ case: "publishDataTrackRequest";
223
+ } | {
224
+ /**
225
+ * Unpublish a data track
226
+ *
227
+ * @generated from field: livekit.UnpublishDataTrackRequest unpublish_data_track_request = 20;
228
+ */
229
+ value: UnpublishDataTrackRequest;
230
+ case: "unpublishDataTrackRequest";
231
+ } | {
232
+ /**
233
+ * Update subscription state for one or more data tracks
234
+ *
235
+ * @generated from field: livekit.UpdateDataSubscription update_data_subscription = 21;
236
+ */
237
+ value: UpdateDataSubscription;
238
+ case: "updateDataSubscription";
215
239
  } | { case: undefined; value?: undefined };
216
240
 
217
241
  constructor(data?: PartialMessage<SignalRequest>);
@@ -439,6 +463,30 @@ export declare class SignalResponse extends Message<SignalResponse> {
439
463
  */
440
464
  value: SubscribedAudioCodecUpdate;
441
465
  case: "subscribedAudioCodecUpdate";
466
+ } | {
467
+ /**
468
+ * Sent in response to `PublishDataTrackRequest`.
469
+ *
470
+ * @generated from field: livekit.PublishDataTrackResponse publish_data_track_response = 27;
471
+ */
472
+ value: PublishDataTrackResponse;
473
+ case: "publishDataTrackResponse";
474
+ } | {
475
+ /**
476
+ * Sent in response to `UnpublishDataTrackRequest` or SFU-initiated unpublish.
477
+ *
478
+ * @generated from field: livekit.UnpublishDataTrackResponse unpublish_data_track_response = 28;
479
+ */
480
+ value: UnpublishDataTrackResponse;
481
+ case: "unpublishDataTrackResponse";
482
+ } | {
483
+ /**
484
+ * Sent to data track subscribers to provide mapping from track SIDs to handles.
485
+ *
486
+ * @generated from field: livekit.DataTrackSubscriberHandles data_track_subscriber_handles = 29;
487
+ */
488
+ value: DataTrackSubscriberHandles;
489
+ case: "dataTrackSubscriberHandles";
442
490
  } | { case: undefined; value?: undefined };
443
491
 
444
492
  constructor(data?: PartialMessage<SignalResponse>);
@@ -618,6 +666,186 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
618
666
  static equals(a: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined, b: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined): boolean;
619
667
  }
620
668
 
669
+ /**
670
+ * @generated from message livekit.PublishDataTrackRequest
671
+ */
672
+ export declare class PublishDataTrackRequest extends Message<PublishDataTrackRequest> {
673
+ /**
674
+ * Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
675
+ * This must be non-zero and unique for each data track published by the publisher.
676
+ *
677
+ * @generated from field: uint32 pub_handle = 1;
678
+ */
679
+ pubHandle: number;
680
+
681
+ /**
682
+ * Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
683
+ * This must be non-empty and no longer than 256 characters.
684
+ *
685
+ * @generated from field: string name = 2;
686
+ */
687
+ name: string;
688
+
689
+ /**
690
+ * Method used for end-to-end encryption (E2EE) on frame payloads.
691
+ *
692
+ * @generated from field: livekit.Encryption.Type encryption = 3;
693
+ */
694
+ encryption: Encryption_Type;
695
+
696
+ constructor(data?: PartialMessage<PublishDataTrackRequest>);
697
+
698
+ static readonly runtime: typeof proto3;
699
+ static readonly typeName = "livekit.PublishDataTrackRequest";
700
+ static readonly fields: FieldList;
701
+
702
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataTrackRequest;
703
+
704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataTrackRequest;
705
+
706
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataTrackRequest;
707
+
708
+ static equals(a: PublishDataTrackRequest | PlainMessage<PublishDataTrackRequest> | undefined, b: PublishDataTrackRequest | PlainMessage<PublishDataTrackRequest> | undefined): boolean;
709
+ }
710
+
711
+ /**
712
+ * @generated from message livekit.PublishDataTrackResponse
713
+ */
714
+ export declare class PublishDataTrackResponse extends Message<PublishDataTrackResponse> {
715
+ /**
716
+ * Information about the published track.
717
+ *
718
+ * @generated from field: livekit.DataTrackInfo info = 1;
719
+ */
720
+ info?: DataTrackInfo;
721
+
722
+ constructor(data?: PartialMessage<PublishDataTrackResponse>);
723
+
724
+ static readonly runtime: typeof proto3;
725
+ static readonly typeName = "livekit.PublishDataTrackResponse";
726
+ static readonly fields: FieldList;
727
+
728
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataTrackResponse;
729
+
730
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataTrackResponse;
731
+
732
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataTrackResponse;
733
+
734
+ static equals(a: PublishDataTrackResponse | PlainMessage<PublishDataTrackResponse> | undefined, b: PublishDataTrackResponse | PlainMessage<PublishDataTrackResponse> | undefined): boolean;
735
+ }
736
+
737
+ /**
738
+ * @generated from message livekit.UnpublishDataTrackRequest
739
+ */
740
+ export declare class UnpublishDataTrackRequest extends Message<UnpublishDataTrackRequest> {
741
+ /**
742
+ * Publisher handle of the track to unpublish.
743
+ *
744
+ * @generated from field: uint32 pub_handle = 1;
745
+ */
746
+ pubHandle: number;
747
+
748
+ constructor(data?: PartialMessage<UnpublishDataTrackRequest>);
749
+
750
+ static readonly runtime: typeof proto3;
751
+ static readonly typeName = "livekit.UnpublishDataTrackRequest";
752
+ static readonly fields: FieldList;
753
+
754
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishDataTrackRequest;
755
+
756
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishDataTrackRequest;
757
+
758
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishDataTrackRequest;
759
+
760
+ static equals(a: UnpublishDataTrackRequest | PlainMessage<UnpublishDataTrackRequest> | undefined, b: UnpublishDataTrackRequest | PlainMessage<UnpublishDataTrackRequest> | undefined): boolean;
761
+ }
762
+
763
+ /**
764
+ * @generated from message livekit.UnpublishDataTrackResponse
765
+ */
766
+ export declare class UnpublishDataTrackResponse extends Message<UnpublishDataTrackResponse> {
767
+ /**
768
+ * Information about the unpublished track.
769
+ *
770
+ * @generated from field: livekit.DataTrackInfo info = 1;
771
+ */
772
+ info?: DataTrackInfo;
773
+
774
+ constructor(data?: PartialMessage<UnpublishDataTrackResponse>);
775
+
776
+ static readonly runtime: typeof proto3;
777
+ static readonly typeName = "livekit.UnpublishDataTrackResponse";
778
+ static readonly fields: FieldList;
779
+
780
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishDataTrackResponse;
781
+
782
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishDataTrackResponse;
783
+
784
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishDataTrackResponse;
785
+
786
+ static equals(a: UnpublishDataTrackResponse | PlainMessage<UnpublishDataTrackResponse> | undefined, b: UnpublishDataTrackResponse | PlainMessage<UnpublishDataTrackResponse> | undefined): boolean;
787
+ }
788
+
789
+ /**
790
+ * @generated from message livekit.DataTrackSubscriberHandles
791
+ */
792
+ export declare class DataTrackSubscriberHandles extends Message<DataTrackSubscriberHandles> {
793
+ /**
794
+ * Maps handles from incoming packets to the track SIDs that the packets belong to.
795
+ *
796
+ * @generated from field: map<uint32, livekit.DataTrackSubscriberHandles.PublishedDataTrack> sub_handles = 1;
797
+ */
798
+ subHandles: { [key: number]: DataTrackSubscriberHandles_PublishedDataTrack };
799
+
800
+ constructor(data?: PartialMessage<DataTrackSubscriberHandles>);
801
+
802
+ static readonly runtime: typeof proto3;
803
+ static readonly typeName = "livekit.DataTrackSubscriberHandles";
804
+ static readonly fields: FieldList;
805
+
806
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackSubscriberHandles;
807
+
808
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackSubscriberHandles;
809
+
810
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackSubscriberHandles;
811
+
812
+ static equals(a: DataTrackSubscriberHandles | PlainMessage<DataTrackSubscriberHandles> | undefined, b: DataTrackSubscriberHandles | PlainMessage<DataTrackSubscriberHandles> | undefined): boolean;
813
+ }
814
+
815
+ /**
816
+ * @generated from message livekit.DataTrackSubscriberHandles.PublishedDataTrack
817
+ */
818
+ export declare class DataTrackSubscriberHandles_PublishedDataTrack extends Message<DataTrackSubscriberHandles_PublishedDataTrack> {
819
+ /**
820
+ * @generated from field: string publisher_identity = 1;
821
+ */
822
+ publisherIdentity: string;
823
+
824
+ /**
825
+ * @generated from field: string publisher_sid = 2;
826
+ */
827
+ publisherSid: string;
828
+
829
+ /**
830
+ * @generated from field: string track_sid = 3;
831
+ */
832
+ trackSid: string;
833
+
834
+ constructor(data?: PartialMessage<DataTrackSubscriberHandles_PublishedDataTrack>);
835
+
836
+ static readonly runtime: typeof proto3;
837
+ static readonly typeName = "livekit.DataTrackSubscriberHandles.PublishedDataTrack";
838
+ static readonly fields: FieldList;
839
+
840
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackSubscriberHandles_PublishedDataTrack;
841
+
842
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackSubscriberHandles_PublishedDataTrack;
843
+
844
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackSubscriberHandles_PublishedDataTrack;
845
+
846
+ static equals(a: DataTrackSubscriberHandles_PublishedDataTrack | PlainMessage<DataTrackSubscriberHandles_PublishedDataTrack> | undefined, b: DataTrackSubscriberHandles_PublishedDataTrack | PlainMessage<DataTrackSubscriberHandles_PublishedDataTrack> | undefined): boolean;
847
+ }
848
+
621
849
  /**
622
850
  * @generated from message livekit.TrickleRequest
623
851
  */
@@ -981,6 +1209,67 @@ export declare class UpdateSubscription extends Message<UpdateSubscription> {
981
1209
  static equals(a: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined, b: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined): boolean;
982
1210
  }
983
1211
 
1212
+ /**
1213
+ * @generated from message livekit.UpdateDataSubscription
1214
+ */
1215
+ export declare class UpdateDataSubscription extends Message<UpdateDataSubscription> {
1216
+ /**
1217
+ * @generated from field: repeated livekit.UpdateDataSubscription.Update updates = 1;
1218
+ */
1219
+ updates: UpdateDataSubscription_Update[];
1220
+
1221
+ constructor(data?: PartialMessage<UpdateDataSubscription>);
1222
+
1223
+ static readonly runtime: typeof proto3;
1224
+ static readonly typeName = "livekit.UpdateDataSubscription";
1225
+ static readonly fields: FieldList;
1226
+
1227
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDataSubscription;
1228
+
1229
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDataSubscription;
1230
+
1231
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDataSubscription;
1232
+
1233
+ static equals(a: UpdateDataSubscription | PlainMessage<UpdateDataSubscription> | undefined, b: UpdateDataSubscription | PlainMessage<UpdateDataSubscription> | undefined): boolean;
1234
+ }
1235
+
1236
+ /**
1237
+ * @generated from message livekit.UpdateDataSubscription.Update
1238
+ */
1239
+ export declare class UpdateDataSubscription_Update extends Message<UpdateDataSubscription_Update> {
1240
+ /**
1241
+ * @generated from field: string track_sid = 1;
1242
+ */
1243
+ trackSid: string;
1244
+
1245
+ /**
1246
+ * @generated from field: bool subscribe = 2;
1247
+ */
1248
+ subscribe: boolean;
1249
+
1250
+ /**
1251
+ * Options to apply when initially subscribing or updating an existing subscription.
1252
+ * When unsubscribing, this field is ignored.
1253
+ *
1254
+ * @generated from field: livekit.DataTrackSubscriptionOptions options = 3;
1255
+ */
1256
+ options?: DataTrackSubscriptionOptions;
1257
+
1258
+ constructor(data?: PartialMessage<UpdateDataSubscription_Update>);
1259
+
1260
+ static readonly runtime: typeof proto3;
1261
+ static readonly typeName = "livekit.UpdateDataSubscription.Update";
1262
+ static readonly fields: FieldList;
1263
+
1264
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDataSubscription_Update;
1265
+
1266
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDataSubscription_Update;
1267
+
1268
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDataSubscription_Update;
1269
+
1270
+ static equals(a: UpdateDataSubscription_Update | PlainMessage<UpdateDataSubscription_Update> | undefined, b: UpdateDataSubscription_Update | PlainMessage<UpdateDataSubscription_Update> | undefined): boolean;
1271
+ }
1272
+
984
1273
  /**
985
1274
  * @generated from message livekit.UpdateTrackSettings
986
1275
  */
@@ -1773,6 +2062,11 @@ export declare class SyncState extends Message<SyncState> {
1773
2062
  */
1774
2063
  datachannelReceiveStates: DataChannelReceiveState[];
1775
2064
 
2065
+ /**
2066
+ * @generated from field: repeated livekit.PublishDataTrackResponse publish_data_tracks = 8;
2067
+ */
2068
+ publishDataTracks: PublishDataTrackResponse[];
2069
+
1776
2070
  constructor(data?: PartialMessage<SyncState>);
1777
2071
 
1778
2072
  static readonly runtime: typeof proto3;
@@ -2155,6 +2449,18 @@ export declare class RequestResponse extends Message<RequestResponse> {
2155
2449
  */
2156
2450
  value: UpdateLocalVideoTrack;
2157
2451
  case: "updateVideoTrack";
2452
+ } | {
2453
+ /**
2454
+ * @generated from field: livekit.PublishDataTrackRequest publish_data_track = 10;
2455
+ */
2456
+ value: PublishDataTrackRequest;
2457
+ case: "publishDataTrack";
2458
+ } | {
2459
+ /**
2460
+ * @generated from field: livekit.UnpublishDataTrackRequest unpublish_data_track = 11;
2461
+ */
2462
+ value: UnpublishDataTrackRequest;
2463
+ case: "unpublishDataTrack";
2158
2464
  } | { case: undefined; value?: undefined };
2159
2465
 
2160
2466
  constructor(data?: PartialMessage<RequestResponse>);
@@ -2210,6 +2516,26 @@ export declare enum RequestResponse_Reason {
2210
2516
  * @generated from enum value: UNCLASSIFIED_ERROR = 6;
2211
2517
  */
2212
2518
  UNCLASSIFIED_ERROR = 6,
2519
+
2520
+ /**
2521
+ * @generated from enum value: INVALID_HANDLE = 7;
2522
+ */
2523
+ INVALID_HANDLE = 7,
2524
+
2525
+ /**
2526
+ * @generated from enum value: INVALID_NAME = 8;
2527
+ */
2528
+ INVALID_NAME = 8,
2529
+
2530
+ /**
2531
+ * @generated from enum value: DUPLICATE_HANDLE = 9;
2532
+ */
2533
+ DUPLICATE_HANDLE = 9,
2534
+
2535
+ /**
2536
+ * @generated from enum value: DUPLICATE_NAME = 10;
2537
+ */
2538
+ DUPLICATE_NAME = 10,
2213
2539
  }
2214
2540
 
2215
2541
  /**