@signalwire/js 4.0.0-rc.0 → 4.0.0-rc.2

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.
@@ -1,4 +1,4 @@
1
- const require_operators = require('../operators-D6a2J1KA.cjs');
1
+ const require_operators = require('../operators-B8ipd4Xl.cjs');
2
2
 
3
3
  exports.filterAs = require_operators.filterAs;
4
4
  exports.filterNull = require_operators.filterNull;
@@ -1,3 +1,3 @@
1
- import { a as filterNull, n as filterAs, r as ifIsMap, t as throwOnRPCError } from "../operators-CX_lCCJm.mjs";
1
+ import { a as filterNull, n as filterAs, r as ifIsMap, t as throwOnRPCError } from "../operators-BlUtq-t0.mjs";
2
2
 
3
3
  export { filterAs, filterNull, ifIsMap, throwOnRPCError };
@@ -30,6 +30,143 @@ let loglevel = require("loglevel");
30
30
  loglevel = __toESM(loglevel);
31
31
  let rxjs_operators = require("rxjs/operators");
32
32
 
33
+ //#region src/core/constants.ts
34
+ const INVITE_VERSION = 1e3;
35
+ const DEFAULT_ICE_CANDIDATE_TIMEOUT_MS = 600;
36
+ const DEFAULT_ICE_GATHERING_TIMEOUT_MS = 6e3;
37
+ const DEFAULT_RECONNECT_CALLS_TIMEOUT_MS = 300 * 1e3;
38
+ const DEFAULT_CONNECTION_TIMEOUT_MS = 1e4;
39
+ const DEFAULT_RECONNECT_DELAY_MIN_MS = 100;
40
+ const DEFAULT_RECONNECT_DELAY_MAX_MS = 3e3;
41
+ const DEFAULT_DEVICE_DEBOUNCE_TIME_MS = 1500;
42
+ const DEFAULT_DEVICE_POLLING_INTERVAL_MS = 0;
43
+ const PREFERENCES_STORAGE_KEY = "sw:preferences";
44
+ /** Scope value that enables automatic token refresh. */
45
+ const SAT_REFRESH_SCOPE = "sat:refresh";
46
+ /** API endpoints for device token operations. */
47
+ const DEVICE_TOKEN_ENDPOINT = "/api/fabric/subscriber/devices/token";
48
+ const DEVICE_REFRESH_ENDPOINT = "/api/fabric/subscriber/devices/refresh";
49
+ /** Default device token TTL in seconds (15 minutes). */
50
+ const DEVICE_TOKEN_DEFAULT_EXPIRE_IN = 900;
51
+ /** Buffer time in milliseconds before expiry to trigger refresh. */
52
+ const DEVICE_TOKEN_REFRESH_BUFFER_MS = 3e4;
53
+ /** Maximum retry attempts for device token refresh on transient failure. */
54
+ const DEVICE_TOKEN_REFRESH_MAX_RETRIES = 3;
55
+ /** Base delay in milliseconds for exponential backoff on refresh retry. */
56
+ const DEVICE_TOKEN_REFRESH_RETRY_BASE_MS = 1e3;
57
+ /** Maximum retry attempts for developer credential refresh on transient failure. */
58
+ const CREDENTIAL_REFRESH_MAX_RETRIES = 5;
59
+ /** Base delay in milliseconds for exponential backoff on credential refresh retry. */
60
+ const CREDENTIAL_REFRESH_RETRY_BASE_MS = 1e3;
61
+ /** Maximum delay in milliseconds for credential refresh backoff. */
62
+ const CREDENTIAL_REFRESH_MAX_DELAY_MS = 3e4;
63
+ /** Buffer in milliseconds before token expiry to trigger refresh. */
64
+ const CREDENTIAL_REFRESH_BUFFER_MS = 5e3;
65
+ /**
66
+ * Maximum time the coordinator will wait for `DeviceTokenManager.activate()`
67
+ * to resolve before treating the activation as failed and falling back to
68
+ * the developer-provided refresh path. Prevents a wedged HTTP layer from
69
+ * leaving the session with no active refresh mechanism.
70
+ */
71
+ const CREDENTIAL_ACTIVATE_TIMEOUT_MS = 3e4;
72
+ /** JSON-RPC error code for requester validation failure (corrupted auth state). */
73
+ const RPC_ERROR_REQUESTER_VALIDATION_FAILED = -32003;
74
+ /** JSON-RPC error code for invalid params (e.g., missing authentication block). */
75
+ const RPC_ERROR_INVALID_PARAMS = -32602;
76
+ /** JSON-RPC error code for authentication failure (invalid token, missing DPoP, etc.). */
77
+ const RPC_ERROR_AUTHENTICATION_FAILED = -32002;
78
+ /** Error names browsers use for a media permission denial (user or policy). */
79
+ const MEDIA_ACCESS_DENIAL_NAMES = [
80
+ "NotAllowedError",
81
+ "SecurityError",
82
+ "PermissionDeniedError"
83
+ ];
84
+ /** Default polling interval for RTCPeerConnection.getStats() in milliseconds. */
85
+ const DEFAULT_STATS_POLLING_INTERVAL_MS = 1e3;
86
+ /** Number of initial samples used to build a baseline for spike detection. */
87
+ const DEFAULT_STATS_BASELINE_SAMPLES = 10;
88
+ /** Duration in ms with no inbound audio packets before emitting a critical issue. */
89
+ const DEFAULT_STATS_NO_PACKET_THRESHOLD_MS = 2e3;
90
+ /** Multiplier applied to baseline RTT to detect a warning-level RTT spike. */
91
+ const DEFAULT_STATS_RTT_SPIKE_MULTIPLIER = 3;
92
+ /** Packet loss fraction (0-1) above which a warning is emitted. */
93
+ const DEFAULT_STATS_PACKET_LOSS_THRESHOLD = .05;
94
+ /** Multiplier applied to baseline jitter to detect a jitter spike. */
95
+ const DEFAULT_STATS_JITTER_SPIKE_MULTIPLIER = 4;
96
+ /** Number of seconds of metrics history to retain. */
97
+ const DEFAULT_STATS_HISTORY_SIZE = 30;
98
+ /** Maximum keyframe requests allowed within a single burst window. */
99
+ const DEFAULT_KEYFRAME_MAX_BURST = 3;
100
+ /** Duration of the keyframe burst window in milliseconds. */
101
+ const DEFAULT_KEYFRAME_BURST_WINDOW_MS = 3e3;
102
+ /** Cooldown period in ms after burst limit is reached before allowing more keyframes. */
103
+ const DEFAULT_KEYFRAME_COOLDOWN_MS = 1e4;
104
+ /** Minimum time between re-INVITE attempts in milliseconds. */
105
+ const DEFAULT_REINVITE_DEBOUNCE_TIME_MS = 1e4;
106
+ /** Maximum number of re-INVITE attempts per call. */
107
+ const DEFAULT_REINVITE_MAX_ATTEMPTS = 3;
108
+ /** Timeout for a single re-INVITE attempt in milliseconds. */
109
+ const DEFAULT_REINVITE_TIMEOUT_MS = 5e3;
110
+ /** Debounce window in ms to collapse multiple detection signals into one trigger. */
111
+ const DEFAULT_RECOVERY_DEBOUNCE_TIME_MS = 2e3;
112
+ /** Cooldown period in ms between recovery attempts. */
113
+ const DEFAULT_RECOVERY_COOLDOWN_MS = 1e4;
114
+ /** Grace period in ms before treating ICE 'disconnected' as a failure. */
115
+ const DEFAULT_ICE_DISCONNECTED_GRACE_PERIOD_MS = 3e3;
116
+ /** Timeout for a single ICE restart attempt in milliseconds. */
117
+ const DEFAULT_ICE_RESTART_TIMEOUT_MS = 5e3;
118
+ /** Maximum recovery attempts before emitting 'max_attempts_reached'. */
119
+ const DEFAULT_MAX_RECOVERY_ATTEMPTS = 3;
120
+ /** Upper bound in ms for waiting on iceGatheringState === 'complete' after an ICE restart. */
121
+ const ICE_GATHERING_COMPLETE_TIMEOUT_MS = 1e4;
122
+ /** Upper bound in ms for waiting on RTCPeerConnection.connectionState === 'connected' after a recovery ICE restart. */
123
+ const PEER_CONNECTION_RECOVERY_WAIT_MS = 5e3;
124
+ /** Polling interval in ms while waiting for RTCPeerConnection.connectionState to transition. */
125
+ const PEER_CONNECTION_RECOVERY_POLL_MS = 100;
126
+ /** Polling interval for LocalAudioPipeline.level$ (ms). ~30fps is smooth for meters. */
127
+ const AUDIO_LEVEL_POLL_INTERVAL_MS = 33;
128
+ /** RMS level threshold (0..1) above which the local participant is considered speaking. */
129
+ const VAD_THRESHOLD = .03;
130
+ /** Hold window in ms below the threshold before speaking$ flips back to false. */
131
+ const VAD_HOLD_MS = 250;
132
+ /** Whether to persist device selections to storage by default. */
133
+ const DEFAULT_PERSIST_DEVICE_SELECTION = true;
134
+ /** Whether to auto-apply device changes to active calls by default. */
135
+ const DEFAULT_SYNC_DEVICES_TO_ACTIVE_CALLS = true;
136
+ /** Storage keys for persisted device selections. */
137
+ const DEVICE_STORAGE_KEY_AUDIO_INPUT = "sw:device:audioinput";
138
+ const DEVICE_STORAGE_KEY_AUDIO_OUTPUT = "sw:device:audiooutput";
139
+ const DEVICE_STORAGE_KEY_VIDEO_INPUT = "sw:device:videoinput";
140
+ /** Whether to auto-mute video when the tab becomes hidden. */
141
+ const DEFAULT_AUTO_MUTE_VIDEO_ON_HIDDEN = false;
142
+ /** Whether to re-enumerate devices when the page becomes visible. */
143
+ const DEFAULT_REFRESH_DEVICES_ON_VISIBLE = true;
144
+ /** Whether to check peer connection health when the page becomes visible. */
145
+ const DEFAULT_CHECK_CONNECTION_ON_VISIBLE = true;
146
+ /** Whether automatic video degradation on low bandwidth is enabled. */
147
+ const DEFAULT_ENABLE_AUTO_DEGRADATION = true;
148
+ /** Bitrate in kbps below which video is automatically disabled. */
149
+ const DEFAULT_DEGRADATION_BITRATE_THRESHOLD_KBPS = 150;
150
+ /** Bitrate in kbps above which video is automatically re-enabled (hysteresis). */
151
+ const DEFAULT_DEGRADATION_RECOVERY_THRESHOLD_KBPS = 300;
152
+ /** Whether relay-only escalation is enabled as a last-resort recovery tier. */
153
+ const DEFAULT_ENABLE_RELAY_FALLBACK = true;
154
+ /** Whether to listen for browser online/offline/connection events. */
155
+ const DEFAULT_ENABLE_NETWORK_CHANGE_DETECTION = true;
156
+ /** Whether to intercept server-sent media-timeout hangups and attempt recovery. */
157
+ const DEFAULT_ENABLE_SERVER_HANGUP_INTERCEPTION = true;
158
+ /** Default video track constraints applied when video is enabled without explicit constraints. */
159
+ const DEFAULT_VIDEO_CONSTRAINTS = {
160
+ width: { ideal: 1280 },
161
+ height: { ideal: 720 },
162
+ aspectRatio: 16 / 9
163
+ };
164
+ /** Whether stereo Opus is enabled by default. */
165
+ const DEFAULT_STEREO_AUDIO = false;
166
+ /** Max average bitrate for stereo Opus in bits per second. */
167
+ const DEFAULT_STEREO_MAX_AVERAGE_BITRATE = 51e4;
168
+
169
+ //#endregion
33
170
  //#region src/core/errors.ts
34
171
  var UnexpectedError = class extends Error {
35
172
  constructor(at, options) {
@@ -238,6 +375,33 @@ var MediaTrackError = class extends Error {
238
375
  this.name = "MediaTrackError";
239
376
  }
240
377
  };
378
+ /** True when a `getUserMedia`/`getDisplayMedia` rejection is a permission denial. */
379
+ function isMediaAccessDenial(originalError) {
380
+ return originalError instanceof Error && MEDIA_ACCESS_DENIAL_NAMES.includes(originalError.name);
381
+ }
382
+ /**
383
+ * Failure to acquire local media (camera, microphone, or screen capture)
384
+ * via `getUserMedia`/`getDisplayMedia`.
385
+ *
386
+ * Non-fatal by default: screenshare and additional-device failures never
387
+ * end the call, and main-connection failures degrade to receive-only when
388
+ * possible. The wrapping site sets `fatal` to `true` only when the call
389
+ * cannot continue (receive-only fallback disabled or no receive intent).
390
+ */
391
+ var MediaAccessError = class extends Error {
392
+ constructor(operation, media, originalError, fatal = false) {
393
+ super(`Media access ${isMediaAccessDenial(originalError) ? "denied" : "failed"} for ${operation} (${media})`, { cause: originalError instanceof Error ? originalError : void 0 });
394
+ this.operation = operation;
395
+ this.media = media;
396
+ this.originalError = originalError;
397
+ this.fatal = fatal;
398
+ this.name = "MediaAccessError";
399
+ }
400
+ /** True when the underlying failure is a permission denial (user or policy). */
401
+ get denied() {
402
+ return isMediaAccessDenial(this.originalError);
403
+ }
404
+ };
241
405
  var DPoPInitError = class extends Error {
242
406
  constructor(originalError, message = "Failed to initialize DPoP key pair") {
243
407
  super(message, { cause: originalError instanceof Error ? originalError : void 0 });
@@ -502,12 +666,48 @@ function throwOnRPCError() {
502
666
  }
503
667
 
504
668
  //#endregion
669
+ Object.defineProperty(exports, 'AUDIO_LEVEL_POLL_INTERVAL_MS', {
670
+ enumerable: true,
671
+ get: function () {
672
+ return AUDIO_LEVEL_POLL_INTERVAL_MS;
673
+ }
674
+ });
505
675
  Object.defineProperty(exports, 'AuthStateHandlerError', {
506
676
  enumerable: true,
507
677
  get: function () {
508
678
  return AuthStateHandlerError;
509
679
  }
510
680
  });
681
+ Object.defineProperty(exports, 'CREDENTIAL_ACTIVATE_TIMEOUT_MS', {
682
+ enumerable: true,
683
+ get: function () {
684
+ return CREDENTIAL_ACTIVATE_TIMEOUT_MS;
685
+ }
686
+ });
687
+ Object.defineProperty(exports, 'CREDENTIAL_REFRESH_BUFFER_MS', {
688
+ enumerable: true,
689
+ get: function () {
690
+ return CREDENTIAL_REFRESH_BUFFER_MS;
691
+ }
692
+ });
693
+ Object.defineProperty(exports, 'CREDENTIAL_REFRESH_MAX_DELAY_MS', {
694
+ enumerable: true,
695
+ get: function () {
696
+ return CREDENTIAL_REFRESH_MAX_DELAY_MS;
697
+ }
698
+ });
699
+ Object.defineProperty(exports, 'CREDENTIAL_REFRESH_MAX_RETRIES', {
700
+ enumerable: true,
701
+ get: function () {
702
+ return CREDENTIAL_REFRESH_MAX_RETRIES;
703
+ }
704
+ });
705
+ Object.defineProperty(exports, 'CREDENTIAL_REFRESH_RETRY_BASE_MS', {
706
+ enumerable: true,
707
+ get: function () {
708
+ return CREDENTIAL_REFRESH_RETRY_BASE_MS;
709
+ }
710
+ });
511
711
  Object.defineProperty(exports, 'CallCreateError', {
512
712
  enumerable: true,
513
713
  get: function () {
@@ -526,6 +726,294 @@ Object.defineProperty(exports, 'ConversationError', {
526
726
  return ConversationError;
527
727
  }
528
728
  });
729
+ Object.defineProperty(exports, 'DEFAULT_AUTO_MUTE_VIDEO_ON_HIDDEN', {
730
+ enumerable: true,
731
+ get: function () {
732
+ return DEFAULT_AUTO_MUTE_VIDEO_ON_HIDDEN;
733
+ }
734
+ });
735
+ Object.defineProperty(exports, 'DEFAULT_CHECK_CONNECTION_ON_VISIBLE', {
736
+ enumerable: true,
737
+ get: function () {
738
+ return DEFAULT_CHECK_CONNECTION_ON_VISIBLE;
739
+ }
740
+ });
741
+ Object.defineProperty(exports, 'DEFAULT_CONNECTION_TIMEOUT_MS', {
742
+ enumerable: true,
743
+ get: function () {
744
+ return DEFAULT_CONNECTION_TIMEOUT_MS;
745
+ }
746
+ });
747
+ Object.defineProperty(exports, 'DEFAULT_DEGRADATION_BITRATE_THRESHOLD_KBPS', {
748
+ enumerable: true,
749
+ get: function () {
750
+ return DEFAULT_DEGRADATION_BITRATE_THRESHOLD_KBPS;
751
+ }
752
+ });
753
+ Object.defineProperty(exports, 'DEFAULT_DEGRADATION_RECOVERY_THRESHOLD_KBPS', {
754
+ enumerable: true,
755
+ get: function () {
756
+ return DEFAULT_DEGRADATION_RECOVERY_THRESHOLD_KBPS;
757
+ }
758
+ });
759
+ Object.defineProperty(exports, 'DEFAULT_DEVICE_DEBOUNCE_TIME_MS', {
760
+ enumerable: true,
761
+ get: function () {
762
+ return DEFAULT_DEVICE_DEBOUNCE_TIME_MS;
763
+ }
764
+ });
765
+ Object.defineProperty(exports, 'DEFAULT_DEVICE_POLLING_INTERVAL_MS', {
766
+ enumerable: true,
767
+ get: function () {
768
+ return DEFAULT_DEVICE_POLLING_INTERVAL_MS;
769
+ }
770
+ });
771
+ Object.defineProperty(exports, 'DEFAULT_ENABLE_AUTO_DEGRADATION', {
772
+ enumerable: true,
773
+ get: function () {
774
+ return DEFAULT_ENABLE_AUTO_DEGRADATION;
775
+ }
776
+ });
777
+ Object.defineProperty(exports, 'DEFAULT_ENABLE_NETWORK_CHANGE_DETECTION', {
778
+ enumerable: true,
779
+ get: function () {
780
+ return DEFAULT_ENABLE_NETWORK_CHANGE_DETECTION;
781
+ }
782
+ });
783
+ Object.defineProperty(exports, 'DEFAULT_ENABLE_RELAY_FALLBACK', {
784
+ enumerable: true,
785
+ get: function () {
786
+ return DEFAULT_ENABLE_RELAY_FALLBACK;
787
+ }
788
+ });
789
+ Object.defineProperty(exports, 'DEFAULT_ENABLE_SERVER_HANGUP_INTERCEPTION', {
790
+ enumerable: true,
791
+ get: function () {
792
+ return DEFAULT_ENABLE_SERVER_HANGUP_INTERCEPTION;
793
+ }
794
+ });
795
+ Object.defineProperty(exports, 'DEFAULT_ICE_CANDIDATE_TIMEOUT_MS', {
796
+ enumerable: true,
797
+ get: function () {
798
+ return DEFAULT_ICE_CANDIDATE_TIMEOUT_MS;
799
+ }
800
+ });
801
+ Object.defineProperty(exports, 'DEFAULT_ICE_DISCONNECTED_GRACE_PERIOD_MS', {
802
+ enumerable: true,
803
+ get: function () {
804
+ return DEFAULT_ICE_DISCONNECTED_GRACE_PERIOD_MS;
805
+ }
806
+ });
807
+ Object.defineProperty(exports, 'DEFAULT_ICE_GATHERING_TIMEOUT_MS', {
808
+ enumerable: true,
809
+ get: function () {
810
+ return DEFAULT_ICE_GATHERING_TIMEOUT_MS;
811
+ }
812
+ });
813
+ Object.defineProperty(exports, 'DEFAULT_ICE_RESTART_TIMEOUT_MS', {
814
+ enumerable: true,
815
+ get: function () {
816
+ return DEFAULT_ICE_RESTART_TIMEOUT_MS;
817
+ }
818
+ });
819
+ Object.defineProperty(exports, 'DEFAULT_KEYFRAME_BURST_WINDOW_MS', {
820
+ enumerable: true,
821
+ get: function () {
822
+ return DEFAULT_KEYFRAME_BURST_WINDOW_MS;
823
+ }
824
+ });
825
+ Object.defineProperty(exports, 'DEFAULT_KEYFRAME_COOLDOWN_MS', {
826
+ enumerable: true,
827
+ get: function () {
828
+ return DEFAULT_KEYFRAME_COOLDOWN_MS;
829
+ }
830
+ });
831
+ Object.defineProperty(exports, 'DEFAULT_KEYFRAME_MAX_BURST', {
832
+ enumerable: true,
833
+ get: function () {
834
+ return DEFAULT_KEYFRAME_MAX_BURST;
835
+ }
836
+ });
837
+ Object.defineProperty(exports, 'DEFAULT_MAX_RECOVERY_ATTEMPTS', {
838
+ enumerable: true,
839
+ get: function () {
840
+ return DEFAULT_MAX_RECOVERY_ATTEMPTS;
841
+ }
842
+ });
843
+ Object.defineProperty(exports, 'DEFAULT_PERSIST_DEVICE_SELECTION', {
844
+ enumerable: true,
845
+ get: function () {
846
+ return DEFAULT_PERSIST_DEVICE_SELECTION;
847
+ }
848
+ });
849
+ Object.defineProperty(exports, 'DEFAULT_RECONNECT_CALLS_TIMEOUT_MS', {
850
+ enumerable: true,
851
+ get: function () {
852
+ return DEFAULT_RECONNECT_CALLS_TIMEOUT_MS;
853
+ }
854
+ });
855
+ Object.defineProperty(exports, 'DEFAULT_RECONNECT_DELAY_MAX_MS', {
856
+ enumerable: true,
857
+ get: function () {
858
+ return DEFAULT_RECONNECT_DELAY_MAX_MS;
859
+ }
860
+ });
861
+ Object.defineProperty(exports, 'DEFAULT_RECONNECT_DELAY_MIN_MS', {
862
+ enumerable: true,
863
+ get: function () {
864
+ return DEFAULT_RECONNECT_DELAY_MIN_MS;
865
+ }
866
+ });
867
+ Object.defineProperty(exports, 'DEFAULT_RECOVERY_COOLDOWN_MS', {
868
+ enumerable: true,
869
+ get: function () {
870
+ return DEFAULT_RECOVERY_COOLDOWN_MS;
871
+ }
872
+ });
873
+ Object.defineProperty(exports, 'DEFAULT_RECOVERY_DEBOUNCE_TIME_MS', {
874
+ enumerable: true,
875
+ get: function () {
876
+ return DEFAULT_RECOVERY_DEBOUNCE_TIME_MS;
877
+ }
878
+ });
879
+ Object.defineProperty(exports, 'DEFAULT_REFRESH_DEVICES_ON_VISIBLE', {
880
+ enumerable: true,
881
+ get: function () {
882
+ return DEFAULT_REFRESH_DEVICES_ON_VISIBLE;
883
+ }
884
+ });
885
+ Object.defineProperty(exports, 'DEFAULT_REINVITE_DEBOUNCE_TIME_MS', {
886
+ enumerable: true,
887
+ get: function () {
888
+ return DEFAULT_REINVITE_DEBOUNCE_TIME_MS;
889
+ }
890
+ });
891
+ Object.defineProperty(exports, 'DEFAULT_REINVITE_MAX_ATTEMPTS', {
892
+ enumerable: true,
893
+ get: function () {
894
+ return DEFAULT_REINVITE_MAX_ATTEMPTS;
895
+ }
896
+ });
897
+ Object.defineProperty(exports, 'DEFAULT_REINVITE_TIMEOUT_MS', {
898
+ enumerable: true,
899
+ get: function () {
900
+ return DEFAULT_REINVITE_TIMEOUT_MS;
901
+ }
902
+ });
903
+ Object.defineProperty(exports, 'DEFAULT_STATS_BASELINE_SAMPLES', {
904
+ enumerable: true,
905
+ get: function () {
906
+ return DEFAULT_STATS_BASELINE_SAMPLES;
907
+ }
908
+ });
909
+ Object.defineProperty(exports, 'DEFAULT_STATS_HISTORY_SIZE', {
910
+ enumerable: true,
911
+ get: function () {
912
+ return DEFAULT_STATS_HISTORY_SIZE;
913
+ }
914
+ });
915
+ Object.defineProperty(exports, 'DEFAULT_STATS_JITTER_SPIKE_MULTIPLIER', {
916
+ enumerable: true,
917
+ get: function () {
918
+ return DEFAULT_STATS_JITTER_SPIKE_MULTIPLIER;
919
+ }
920
+ });
921
+ Object.defineProperty(exports, 'DEFAULT_STATS_NO_PACKET_THRESHOLD_MS', {
922
+ enumerable: true,
923
+ get: function () {
924
+ return DEFAULT_STATS_NO_PACKET_THRESHOLD_MS;
925
+ }
926
+ });
927
+ Object.defineProperty(exports, 'DEFAULT_STATS_PACKET_LOSS_THRESHOLD', {
928
+ enumerable: true,
929
+ get: function () {
930
+ return DEFAULT_STATS_PACKET_LOSS_THRESHOLD;
931
+ }
932
+ });
933
+ Object.defineProperty(exports, 'DEFAULT_STATS_POLLING_INTERVAL_MS', {
934
+ enumerable: true,
935
+ get: function () {
936
+ return DEFAULT_STATS_POLLING_INTERVAL_MS;
937
+ }
938
+ });
939
+ Object.defineProperty(exports, 'DEFAULT_STATS_RTT_SPIKE_MULTIPLIER', {
940
+ enumerable: true,
941
+ get: function () {
942
+ return DEFAULT_STATS_RTT_SPIKE_MULTIPLIER;
943
+ }
944
+ });
945
+ Object.defineProperty(exports, 'DEFAULT_STEREO_AUDIO', {
946
+ enumerable: true,
947
+ get: function () {
948
+ return DEFAULT_STEREO_AUDIO;
949
+ }
950
+ });
951
+ Object.defineProperty(exports, 'DEFAULT_STEREO_MAX_AVERAGE_BITRATE', {
952
+ enumerable: true,
953
+ get: function () {
954
+ return DEFAULT_STEREO_MAX_AVERAGE_BITRATE;
955
+ }
956
+ });
957
+ Object.defineProperty(exports, 'DEFAULT_SYNC_DEVICES_TO_ACTIVE_CALLS', {
958
+ enumerable: true,
959
+ get: function () {
960
+ return DEFAULT_SYNC_DEVICES_TO_ACTIVE_CALLS;
961
+ }
962
+ });
963
+ Object.defineProperty(exports, 'DEVICE_REFRESH_ENDPOINT', {
964
+ enumerable: true,
965
+ get: function () {
966
+ return DEVICE_REFRESH_ENDPOINT;
967
+ }
968
+ });
969
+ Object.defineProperty(exports, 'DEVICE_STORAGE_KEY_AUDIO_INPUT', {
970
+ enumerable: true,
971
+ get: function () {
972
+ return DEVICE_STORAGE_KEY_AUDIO_INPUT;
973
+ }
974
+ });
975
+ Object.defineProperty(exports, 'DEVICE_STORAGE_KEY_AUDIO_OUTPUT', {
976
+ enumerable: true,
977
+ get: function () {
978
+ return DEVICE_STORAGE_KEY_AUDIO_OUTPUT;
979
+ }
980
+ });
981
+ Object.defineProperty(exports, 'DEVICE_STORAGE_KEY_VIDEO_INPUT', {
982
+ enumerable: true,
983
+ get: function () {
984
+ return DEVICE_STORAGE_KEY_VIDEO_INPUT;
985
+ }
986
+ });
987
+ Object.defineProperty(exports, 'DEVICE_TOKEN_DEFAULT_EXPIRE_IN', {
988
+ enumerable: true,
989
+ get: function () {
990
+ return DEVICE_TOKEN_DEFAULT_EXPIRE_IN;
991
+ }
992
+ });
993
+ Object.defineProperty(exports, 'DEVICE_TOKEN_ENDPOINT', {
994
+ enumerable: true,
995
+ get: function () {
996
+ return DEVICE_TOKEN_ENDPOINT;
997
+ }
998
+ });
999
+ Object.defineProperty(exports, 'DEVICE_TOKEN_REFRESH_BUFFER_MS', {
1000
+ enumerable: true,
1001
+ get: function () {
1002
+ return DEVICE_TOKEN_REFRESH_BUFFER_MS;
1003
+ }
1004
+ });
1005
+ Object.defineProperty(exports, 'DEVICE_TOKEN_REFRESH_MAX_RETRIES', {
1006
+ enumerable: true,
1007
+ get: function () {
1008
+ return DEVICE_TOKEN_REFRESH_MAX_RETRIES;
1009
+ }
1010
+ });
1011
+ Object.defineProperty(exports, 'DEVICE_TOKEN_REFRESH_RETRY_BASE_MS', {
1012
+ enumerable: true,
1013
+ get: function () {
1014
+ return DEVICE_TOKEN_REFRESH_RETRY_BASE_MS;
1015
+ }
1016
+ });
529
1017
  Object.defineProperty(exports, 'DPoPInitError', {
530
1018
  enumerable: true,
531
1019
  get: function () {
@@ -550,6 +1038,18 @@ Object.defineProperty(exports, 'DeviceTokenError', {
550
1038
  return DeviceTokenError;
551
1039
  }
552
1040
  });
1041
+ Object.defineProperty(exports, 'ICE_GATHERING_COMPLETE_TIMEOUT_MS', {
1042
+ enumerable: true,
1043
+ get: function () {
1044
+ return ICE_GATHERING_COMPLETE_TIMEOUT_MS;
1045
+ }
1046
+ });
1047
+ Object.defineProperty(exports, 'INVITE_VERSION', {
1048
+ enumerable: true,
1049
+ get: function () {
1050
+ return INVITE_VERSION;
1051
+ }
1052
+ });
553
1053
  Object.defineProperty(exports, 'InvalidCredentialsError', {
554
1054
  enumerable: true,
555
1055
  get: function () {
@@ -568,6 +1068,12 @@ Object.defineProperty(exports, 'JSONRPCError', {
568
1068
  return JSONRPCError;
569
1069
  }
570
1070
  });
1071
+ Object.defineProperty(exports, 'MediaAccessError', {
1072
+ enumerable: true,
1073
+ get: function () {
1074
+ return MediaAccessError;
1075
+ }
1076
+ });
571
1077
  Object.defineProperty(exports, 'MediaTrackError', {
572
1078
  enumerable: true,
573
1079
  get: function () {
@@ -586,6 +1092,24 @@ Object.defineProperty(exports, 'OverconstrainedFallbackError', {
586
1092
  return OverconstrainedFallbackError;
587
1093
  }
588
1094
  });
1095
+ Object.defineProperty(exports, 'PEER_CONNECTION_RECOVERY_POLL_MS', {
1096
+ enumerable: true,
1097
+ get: function () {
1098
+ return PEER_CONNECTION_RECOVERY_POLL_MS;
1099
+ }
1100
+ });
1101
+ Object.defineProperty(exports, 'PEER_CONNECTION_RECOVERY_WAIT_MS', {
1102
+ enumerable: true,
1103
+ get: function () {
1104
+ return PEER_CONNECTION_RECOVERY_WAIT_MS;
1105
+ }
1106
+ });
1107
+ Object.defineProperty(exports, 'PREFERENCES_STORAGE_KEY', {
1108
+ enumerable: true,
1109
+ get: function () {
1110
+ return PREFERENCES_STORAGE_KEY;
1111
+ }
1112
+ });
589
1113
  Object.defineProperty(exports, 'PreflightError', {
590
1114
  enumerable: true,
591
1115
  get: function () {
@@ -598,6 +1122,24 @@ Object.defineProperty(exports, 'RPCTimeoutError', {
598
1122
  return RPCTimeoutError;
599
1123
  }
600
1124
  });
1125
+ Object.defineProperty(exports, 'RPC_ERROR_AUTHENTICATION_FAILED', {
1126
+ enumerable: true,
1127
+ get: function () {
1128
+ return RPC_ERROR_AUTHENTICATION_FAILED;
1129
+ }
1130
+ });
1131
+ Object.defineProperty(exports, 'RPC_ERROR_INVALID_PARAMS', {
1132
+ enumerable: true,
1133
+ get: function () {
1134
+ return RPC_ERROR_INVALID_PARAMS;
1135
+ }
1136
+ });
1137
+ Object.defineProperty(exports, 'RPC_ERROR_REQUESTER_VALIDATION_FAILED', {
1138
+ enumerable: true,
1139
+ get: function () {
1140
+ return RPC_ERROR_REQUESTER_VALIDATION_FAILED;
1141
+ }
1142
+ });
601
1143
  Object.defineProperty(exports, 'RecoveryError', {
602
1144
  enumerable: true,
603
1145
  get: function () {
@@ -616,6 +1158,12 @@ Object.defineProperty(exports, 'RequestTimeoutError', {
616
1158
  return RequestTimeoutError;
617
1159
  }
618
1160
  });
1161
+ Object.defineProperty(exports, 'SAT_REFRESH_SCOPE', {
1162
+ enumerable: true,
1163
+ get: function () {
1164
+ return SAT_REFRESH_SCOPE;
1165
+ }
1166
+ });
619
1167
  Object.defineProperty(exports, 'SerializationError', {
620
1168
  enumerable: true,
621
1169
  get: function () {
@@ -664,6 +1212,18 @@ Object.defineProperty(exports, 'UnimplementedError', {
664
1212
  return UnimplementedError;
665
1213
  }
666
1214
  });
1215
+ Object.defineProperty(exports, 'VAD_HOLD_MS', {
1216
+ enumerable: true,
1217
+ get: function () {
1218
+ return VAD_HOLD_MS;
1219
+ }
1220
+ });
1221
+ Object.defineProperty(exports, 'VAD_THRESHOLD', {
1222
+ enumerable: true,
1223
+ get: function () {
1224
+ return VAD_THRESHOLD;
1225
+ }
1226
+ });
667
1227
  Object.defineProperty(exports, 'ValidationError', {
668
1228
  enumerable: true,
669
1229
  get: function () {
@@ -760,4 +1320,4 @@ Object.defineProperty(exports, 'throwOnRPCError', {
760
1320
  return throwOnRPCError;
761
1321
  }
762
1322
  });
763
- //# sourceMappingURL=operators-D6a2J1KA.cjs.map
1323
+ //# sourceMappingURL=operators-B8ipd4Xl.cjs.map