@livedigital/client 3.57.0-lk-5354-api-reference.2 → 3.57.0-release-preferred-dc.1

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.
@@ -66,7 +66,7 @@ declare class Engine {
66
66
  getPeers(): Peer[];
67
67
  get myPeerId(): string | undefined;
68
68
  confirmActivity(): Promise<void>;
69
- join({ token, appData, isP2pCall }: JoinChannelParams): Promise<void>;
69
+ join({ token, appData, isP2pCall, preferredDC }: JoinChannelParams): Promise<void>;
70
70
  loadPeers(role?: Role): Promise<void>;
71
71
  requestChannelStateSync(): void;
72
72
  updateAppData(appData: Record<string, unknown>): Promise<void>;
@@ -33,7 +33,7 @@ declare class Media {
33
33
  get mediasoupDevice(): Device;
34
34
  get effectsSDKInitialized(): boolean;
35
35
  get effectsSDKParams(): InitEffectsSDKParams | null;
36
- getTrack(label: TrackLabel): BaseTrack | undefined;
36
+ getTrackByLabel(label: TrackLabel): BaseTrack | undefined;
37
37
  loadDevice(routerRtpCapabilities: types.RtpCapabilities): Promise<void>;
38
38
  getTrackCodec(track: TrackWithEncodings): types.RtpCodecCapability | undefined;
39
39
  private createTracks;
@@ -5,6 +5,7 @@ export interface SignalingSecurityData {
5
5
  token?: string;
6
6
  peerApiVersion?: number;
7
7
  datacenterType?: DatacenterType;
8
+ preferredDC?: string;
8
9
  }
9
10
  type SignalingErrorListener = (error: Error) => void;
10
11
  export default class SignalingApiClient extends Api<SignalingSecurityData> {
@@ -229,7 +229,7 @@ export interface ErrorResponse {
229
229
  /** @example "Validation failed" */
230
230
  error: string;
231
231
  /** @example "invalid_request" */
232
- errorCode: "check_access_fail" | "join_room_fail" | "need_joined_to_channel" | "forbidden" | "not_found" | "invalid_request" | "already_created" | "too_many_requests" | "something_went_wrong" | "di_error" | "resources_lock_error" | "already_connected" | "timeout" | "unauthorized";
232
+ errorCode: "check_access_fail" | "join_room_fail" | "need_joined_to_channel" | "forbidden" | "not_found" | "invalid_request" | "already_created" | "too_many_requests" | "something_went_wrong" | "di_error" | "resources_lock_error" | "already_connected" | "timeout" | "unauthorized" | "canceled";
233
233
  }
234
234
  export declare namespace Peers {
235
235
  /**
@@ -260,6 +260,8 @@ export declare namespace Peers {
260
260
  * @default "common"
261
261
  */
262
262
  "x-datacenter-type"?: "p2p" | "common";
263
+ /** Preferred data center name for the initial channel assignment */
264
+ "x-datacenter-name"?: string;
263
265
  };
264
266
  type ResponseBody = PeersResponse;
265
267
  }
@@ -290,6 +292,8 @@ export declare namespace Peers {
290
292
  * @default "common"
291
293
  */
292
294
  "x-datacenter-type"?: "p2p" | "common";
295
+ /** Preferred data center name for the initial channel assignment */
296
+ "x-datacenter-name"?: string;
293
297
  };
294
298
  type ResponseBody = RegisteredPeerResponse;
295
299
  }
@@ -318,6 +322,8 @@ export declare namespace Peers {
318
322
  * @default "common"
319
323
  */
320
324
  "x-datacenter-type"?: "p2p" | "common";
325
+ /** Preferred data center name for the initial channel assignment */
326
+ "x-datacenter-name"?: string;
321
327
  };
322
328
  type ResponseBody = void;
323
329
  }
@@ -352,6 +358,8 @@ export declare namespace Peers {
352
358
  * @default "common"
353
359
  */
354
360
  "x-datacenter-type"?: "p2p" | "common";
361
+ /** Preferred data center name for the initial channel assignment */
362
+ "x-datacenter-name"?: string;
355
363
  };
356
364
  type ResponseBody = void;
357
365
  }
@@ -385,6 +393,8 @@ export declare namespace Peers {
385
393
  * @default "common"
386
394
  */
387
395
  "x-datacenter-type"?: "p2p" | "common";
396
+ /** Preferred data center name for the initial channel assignment */
397
+ "x-datacenter-name"?: string;
388
398
  };
389
399
  type ResponseBody = void;
390
400
  }
@@ -418,6 +428,8 @@ export declare namespace Peers {
418
428
  * @default "common"
419
429
  */
420
430
  "x-datacenter-type"?: "p2p" | "common";
431
+ /** Preferred data center name for the initial channel assignment */
432
+ "x-datacenter-name"?: string;
421
433
  };
422
434
  type ResponseBody = void;
423
435
  }
@@ -448,6 +460,8 @@ export declare namespace Router {
448
460
  * @default "common"
449
461
  */
450
462
  "x-datacenter-type"?: "p2p" | "common";
463
+ /** Preferred data center name for the initial channel assignment */
464
+ "x-datacenter-name"?: string;
451
465
  };
452
466
  type ResponseBody = {
453
467
  rtpCapabilities: RtpCapabilities;
@@ -480,6 +494,8 @@ export declare namespace Channel {
480
494
  * @default "common"
481
495
  */
482
496
  "x-datacenter-type"?: "p2p" | "common";
497
+ /** Preferred data center name for the initial channel assignment */
498
+ "x-datacenter-name"?: string;
483
499
  };
484
500
  type ResponseBody = void;
485
501
  }
@@ -511,6 +527,8 @@ export declare namespace Channel {
511
527
  * @default "common"
512
528
  */
513
529
  "x-datacenter-type"?: "p2p" | "common";
530
+ /** Preferred data center name for the initial channel assignment */
531
+ "x-datacenter-name"?: string;
514
532
  };
515
533
  type ResponseBody = {
516
534
  /** @format int32 */
@@ -544,6 +562,8 @@ export declare namespace Ping {
544
562
  * @default "common"
545
563
  */
546
564
  "x-datacenter-type"?: "p2p" | "common";
565
+ /** Preferred data center name for the initial channel assignment */
566
+ "x-datacenter-name"?: string;
547
567
  };
548
568
  type ResponseBody = "Pong";
549
569
  }
@@ -576,6 +596,8 @@ export declare namespace AppData {
576
596
  * @default "common"
577
597
  */
578
598
  "x-datacenter-type"?: "p2p" | "common";
599
+ /** Preferred data center name for the initial channel assignment */
600
+ "x-datacenter-name"?: string;
579
601
  };
580
602
  type ResponseBody = void;
581
603
  }
@@ -606,6 +628,8 @@ export declare namespace Producer {
606
628
  * @default "common"
607
629
  */
608
630
  "x-datacenter-type"?: "p2p" | "common";
631
+ /** Preferred data center name for the initial channel assignment */
632
+ "x-datacenter-name"?: string;
609
633
  };
610
634
  type ResponseBody = {
611
635
  producerId: DataProducerId;
@@ -636,6 +660,8 @@ export declare namespace Producer {
636
660
  * @default "common"
637
661
  */
638
662
  "x-datacenter-type"?: "p2p" | "common";
663
+ /** Preferred data center name for the initial channel assignment */
664
+ "x-datacenter-name"?: string;
639
665
  };
640
666
  type ResponseBody = {
641
667
  producerId: DataProducerId;
@@ -666,6 +692,8 @@ export declare namespace Producer {
666
692
  * @default "common"
667
693
  */
668
694
  "x-datacenter-type"?: "p2p" | "common";
695
+ /** Preferred data center name for the initial channel assignment */
696
+ "x-datacenter-name"?: string;
669
697
  };
670
698
  type ResponseBody = {
671
699
  producerId: DataProducerId;
@@ -699,6 +727,8 @@ export declare namespace Producer {
699
727
  * @default "common"
700
728
  */
701
729
  "x-datacenter-type"?: "p2p" | "common";
730
+ /** Preferred data center name for the initial channel assignment */
731
+ "x-datacenter-name"?: string;
702
732
  };
703
733
  type ResponseBody = void;
704
734
  }
@@ -730,6 +760,8 @@ export declare namespace Producer {
730
760
  * @default "common"
731
761
  */
732
762
  "x-datacenter-type"?: "p2p" | "common";
763
+ /** Preferred data center name for the initial channel assignment */
764
+ "x-datacenter-name"?: string;
733
765
  };
734
766
  type ResponseBody = void;
735
767
  }
@@ -761,6 +793,8 @@ export declare namespace Producer {
761
793
  * @default "common"
762
794
  */
763
795
  "x-datacenter-type"?: "p2p" | "common";
796
+ /** Preferred data center name for the initial channel assignment */
797
+ "x-datacenter-name"?: string;
764
798
  };
765
799
  type ResponseBody = void;
766
800
  }
@@ -795,6 +829,8 @@ export declare namespace Producer {
795
829
  * @default "common"
796
830
  */
797
831
  "x-datacenter-type"?: "p2p" | "common";
832
+ /** Preferred data center name for the initial channel assignment */
833
+ "x-datacenter-name"?: string;
798
834
  };
799
835
  type ResponseBody = void;
800
836
  }
@@ -829,6 +865,8 @@ export declare namespace Producer {
829
865
  * @default "common"
830
866
  */
831
867
  "x-datacenter-type"?: "p2p" | "common";
868
+ /** Preferred data center name for the initial channel assignment */
869
+ "x-datacenter-name"?: string;
832
870
  };
833
871
  type ResponseBody = void;
834
872
  }
@@ -867,6 +905,8 @@ export declare namespace Consumer {
867
905
  * @default "common"
868
906
  */
869
907
  "x-datacenter-type"?: "p2p" | "common";
908
+ /** Preferred data center name for the initial channel assignment */
909
+ "x-datacenter-name"?: string;
870
910
  };
871
911
  type ResponseBody = {
872
912
  id?: string;
@@ -908,6 +948,8 @@ export declare namespace Consumer {
908
948
  * @default "common"
909
949
  */
910
950
  "x-datacenter-type"?: "p2p" | "common";
951
+ /** Preferred data center name for the initial channel assignment */
952
+ "x-datacenter-name"?: string;
911
953
  };
912
954
  type ResponseBody = void;
913
955
  }
@@ -939,6 +981,8 @@ export declare namespace Consumer {
939
981
  * @default "common"
940
982
  */
941
983
  "x-datacenter-type"?: "p2p" | "common";
984
+ /** Preferred data center name for the initial channel assignment */
985
+ "x-datacenter-name"?: string;
942
986
  };
943
987
  type ResponseBody = void;
944
988
  }
@@ -970,6 +1014,8 @@ export declare namespace Consumer {
970
1014
  * @default "common"
971
1015
  */
972
1016
  "x-datacenter-type"?: "p2p" | "common";
1017
+ /** Preferred data center name for the initial channel assignment */
1018
+ "x-datacenter-name"?: string;
973
1019
  };
974
1020
  type ResponseBody = void;
975
1021
  }
@@ -1006,6 +1052,8 @@ export declare namespace Consumer {
1006
1052
  * @default "common"
1007
1053
  */
1008
1054
  "x-datacenter-type"?: "p2p" | "common";
1055
+ /** Preferred data center name for the initial channel assignment */
1056
+ "x-datacenter-name"?: string;
1009
1057
  };
1010
1058
  type ResponseBody = void;
1011
1059
  }
@@ -1037,6 +1085,8 @@ export declare namespace Consumer {
1037
1085
  * @default "common"
1038
1086
  */
1039
1087
  "x-datacenter-type"?: "p2p" | "common";
1088
+ /** Preferred data center name for the initial channel assignment */
1089
+ "x-datacenter-name"?: string;
1040
1090
  };
1041
1091
  type ResponseBody = void;
1042
1092
  }
@@ -1072,6 +1122,8 @@ export declare namespace DataConsumer {
1072
1122
  * @default "common"
1073
1123
  */
1074
1124
  "x-datacenter-type"?: "p2p" | "common";
1125
+ /** Preferred data center name for the initial channel assignment */
1126
+ "x-datacenter-name"?: string;
1075
1127
  };
1076
1128
  type ResponseBody = {
1077
1129
  id?: string;
@@ -1112,6 +1164,8 @@ export declare namespace Transport {
1112
1164
  * @default "common"
1113
1165
  */
1114
1166
  "x-datacenter-type"?: "p2p" | "common";
1167
+ /** Preferred data center name for the initial channel assignment */
1168
+ "x-datacenter-name"?: string;
1115
1169
  };
1116
1170
  type ResponseBody = {
1117
1171
  id: string;
@@ -1152,6 +1206,8 @@ export declare namespace Transport {
1152
1206
  * @default "common"
1153
1207
  */
1154
1208
  "x-datacenter-type"?: "p2p" | "common";
1209
+ /** Preferred data center name for the initial channel assignment */
1210
+ "x-datacenter-name"?: string;
1155
1211
  };
1156
1212
  type ResponseBody = {
1157
1213
  iceParameters: IceParameters;
@@ -1187,6 +1243,8 @@ export declare namespace Transport {
1187
1243
  * @default "common"
1188
1244
  */
1189
1245
  "x-datacenter-type"?: "p2p" | "common";
1246
+ /** Preferred data center name for the initial channel assignment */
1247
+ "x-datacenter-name"?: string;
1190
1248
  };
1191
1249
  type ResponseBody = void;
1192
1250
  }
@@ -1224,6 +1282,8 @@ export declare namespace Transport {
1224
1282
  * @default "common"
1225
1283
  */
1226
1284
  "x-datacenter-type"?: "p2p" | "common";
1285
+ /** Preferred data center name for the initial channel assignment */
1286
+ "x-datacenter-name"?: string;
1227
1287
  };
1228
1288
  type ResponseBody = {
1229
1289
  id: string;
@@ -1261,6 +1321,8 @@ export declare namespace Transport {
1261
1321
  * @default "common"
1262
1322
  */
1263
1323
  "x-datacenter-type"?: "p2p" | "common";
1324
+ /** Preferred data center name for the initial channel assignment */
1325
+ "x-datacenter-name"?: string;
1264
1326
  };
1265
1327
  type ResponseBody = {
1266
1328
  id: string;
@@ -1294,6 +1356,8 @@ export declare namespace Transport {
1294
1356
  * @default "common"
1295
1357
  */
1296
1358
  "x-datacenter-type"?: "p2p" | "common";
1359
+ /** Preferred data center name for the initial channel assignment */
1360
+ "x-datacenter-name"?: string;
1297
1361
  };
1298
1362
  type ResponseBody = void;
1299
1363
  }