@vonage/client-sdk 2.4.0-alpha.1 → 2.4.0-alpha.3
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/README.md +3 -3
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/VonageClient.html +22 -4
- package/dist/client/VonageClient.d.ts +48 -0
- package/dist/client/index.cjs +794 -236
- package/dist/client/index.mjs +794 -236
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +17 -4
- package/dist/vonageClientSDK.js +776 -236
- package/dist/vonageClientSDK.min.js +7 -7
- package/dist/vonageClientSDK.min.mjs +13 -13
- package/dist/vonageClientSDK.mjs +776 -236
- package/package.json +3 -2
package/dist/vonageClientSDK.mjs
CHANGED
|
@@ -33778,16 +33778,6 @@ function requireClientsdkClientcore () {
|
|
|
33778
33778
|
initMetadataForCompanion(Companion_149);
|
|
33779
33779
|
initMetadataForObject($serializer_174, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
33780
33780
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_174});
|
|
33781
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
33782
|
-
}
|
|
33783
|
-
function onRTCTransfer(conversationId, legId) {
|
|
33784
|
-
}
|
|
33785
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
33786
|
-
}
|
|
33787
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
33788
|
-
function onConversationEvent(event) {
|
|
33789
|
-
}
|
|
33790
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
33791
33781
|
function onAudioSay() {
|
|
33792
33782
|
}
|
|
33793
33783
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -33797,7 +33787,17 @@ function requireClientsdkClientcore () {
|
|
|
33797
33787
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
33798
33788
|
}
|
|
33799
33789
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
33800
|
-
|
|
33790
|
+
function onConversationEvent(event) {
|
|
33791
|
+
}
|
|
33792
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
33793
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
33794
|
+
}
|
|
33795
|
+
function onRTCTransfer(conversationId, legId) {
|
|
33796
|
+
}
|
|
33797
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
33798
|
+
}
|
|
33799
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
33800
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
33801
33801
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
33802
33802
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
33803
33803
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -33931,7 +33931,7 @@ function requireClientsdkClientcore () {
|
|
|
33931
33931
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
33932
33932
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
33933
33933
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
33934
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
33934
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
33935
33935
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
33936
33936
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
33937
33937
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -34150,7 +34150,7 @@ function requireClientsdkClientcore () {
|
|
|
34150
34150
|
initMetadataForClass(runAfterDelay$1);
|
|
34151
34151
|
//endregion
|
|
34152
34152
|
function BuildKonfig() {
|
|
34153
|
-
this.t1e_1 = '2.4.0-alpha.
|
|
34153
|
+
this.t1e_1 = '2.4.0-alpha.3';
|
|
34154
34154
|
}
|
|
34155
34155
|
var BuildKonfig_instance;
|
|
34156
34156
|
function EmergencyCallOptions(ringbackTone) {
|
|
@@ -80237,6 +80237,24 @@ function requireClientsdkClientcore_js () {
|
|
|
80237
80237
|
function disableEarmuff(callId) {
|
|
80238
80238
|
return new Promise(IVoiceClientJS$disableEarmuff$lambda(this, callId));
|
|
80239
80239
|
}
|
|
80240
|
+
function enableNoiseSuppression(callId) {
|
|
80241
|
+
return new Promise(IVoiceClientJS$enableNoiseSuppression$lambda(this, callId));
|
|
80242
|
+
}
|
|
80243
|
+
function disableNoiseSuppression(callId) {
|
|
80244
|
+
return new Promise(IVoiceClientJS$disableNoiseSuppression$lambda(this, callId));
|
|
80245
|
+
}
|
|
80246
|
+
function enableAutoGainControl(callId) {
|
|
80247
|
+
return new Promise(IVoiceClientJS$enableAutoGainControl$lambda(this, callId));
|
|
80248
|
+
}
|
|
80249
|
+
function disableAutoGainControl(callId) {
|
|
80250
|
+
return new Promise(IVoiceClientJS$disableAutoGainControl$lambda(this, callId));
|
|
80251
|
+
}
|
|
80252
|
+
function enableEchoCancellation(callId) {
|
|
80253
|
+
return new Promise(IVoiceClientJS$enableEchoCancellation$lambda(this, callId));
|
|
80254
|
+
}
|
|
80255
|
+
function disableEchoCancellation(callId) {
|
|
80256
|
+
return new Promise(IVoiceClientJS$disableEchoCancellation$lambda(this, callId));
|
|
80257
|
+
}
|
|
80240
80258
|
function sendDTMF(callId, digits) {
|
|
80241
80259
|
return new Promise(IVoiceClientJS$sendDTMF$lambda(this, callId, digits));
|
|
80242
80260
|
}
|
|
@@ -80336,7 +80354,7 @@ function requireClientsdkClientcore_js () {
|
|
|
80336
80354
|
initMetadataForObject(SessionErrorCodesJS, 'SessionErrorCodesJS');
|
|
80337
80355
|
initMetadataForClass(VonageErrorJS, 'VonageErrorJS', VOID, Error);
|
|
80338
80356
|
initMetadataForObject(VonageErrorTypeJsObject, 'VonageErrorTypeJsObject');
|
|
80339
|
-
initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS');
|
|
80357
|
+
initMetadataForClass(MediaClientErrorJS, 'MediaClientErrorJS', VOID, Error);
|
|
80340
80358
|
initMetadataForClass(PeerConnectionNotFoundJS, 'PeerConnectionNotFoundJS', VOID, MediaClientErrorJS);
|
|
80341
80359
|
initMetadataForClass(TrackNotFoundJS, 'TrackNotFoundJS', VOID, MediaClientErrorJS);
|
|
80342
80360
|
initMetadataForClass(ProcessAnswerErrorJS, 'ProcessAnswerErrorJS', VOID, MediaClientErrorJS);
|
|
@@ -83126,6 +83144,8 @@ function requireClientsdkClientcore_js () {
|
|
|
83126
83144
|
return VonageErrorTypeJsObject_instance;
|
|
83127
83145
|
}
|
|
83128
83146
|
function MediaClientErrorJS() {
|
|
83147
|
+
extendThrowable(this);
|
|
83148
|
+
captureStack(this, MediaClientErrorJS);
|
|
83129
83149
|
}
|
|
83130
83150
|
protoOf(MediaClientErrorJS).r44 = function () {
|
|
83131
83151
|
var tmp;
|
|
@@ -83154,20 +83174,21 @@ function requireClientsdkClientcore_js () {
|
|
|
83154
83174
|
};
|
|
83155
83175
|
function PeerConnectionNotFoundJS(legId) {
|
|
83156
83176
|
MediaClientErrorJS.call(this);
|
|
83177
|
+
captureStack(this, PeerConnectionNotFoundJS);
|
|
83157
83178
|
this.legId = legId;
|
|
83158
83179
|
}
|
|
83159
|
-
protoOf(PeerConnectionNotFoundJS).
|
|
83180
|
+
protoOf(PeerConnectionNotFoundJS).t44 = function () {
|
|
83160
83181
|
return this.legId;
|
|
83161
83182
|
};
|
|
83162
83183
|
protoOf(PeerConnectionNotFoundJS).r8 = function () {
|
|
83163
83184
|
return this.legId;
|
|
83164
83185
|
};
|
|
83165
|
-
protoOf(PeerConnectionNotFoundJS).
|
|
83186
|
+
protoOf(PeerConnectionNotFoundJS).u44 = function (legId) {
|
|
83166
83187
|
return new PeerConnectionNotFoundJS(legId);
|
|
83167
83188
|
};
|
|
83168
83189
|
protoOf(PeerConnectionNotFoundJS).copy = function (legId, $super) {
|
|
83169
83190
|
legId = legId === VOID ? this.legId : legId;
|
|
83170
|
-
return this.
|
|
83191
|
+
return this.u44(legId);
|
|
83171
83192
|
};
|
|
83172
83193
|
protoOf(PeerConnectionNotFoundJS).toString = function () {
|
|
83173
83194
|
return 'PeerConnectionNotFoundJS(legId=' + this.legId + ')';
|
|
@@ -83187,20 +83208,21 @@ function requireClientsdkClientcore_js () {
|
|
|
83187
83208
|
};
|
|
83188
83209
|
function TrackNotFoundJS(legId) {
|
|
83189
83210
|
MediaClientErrorJS.call(this);
|
|
83211
|
+
captureStack(this, TrackNotFoundJS);
|
|
83190
83212
|
this.legId = legId;
|
|
83191
83213
|
}
|
|
83192
|
-
protoOf(TrackNotFoundJS).
|
|
83214
|
+
protoOf(TrackNotFoundJS).t44 = function () {
|
|
83193
83215
|
return this.legId;
|
|
83194
83216
|
};
|
|
83195
83217
|
protoOf(TrackNotFoundJS).r8 = function () {
|
|
83196
83218
|
return this.legId;
|
|
83197
83219
|
};
|
|
83198
|
-
protoOf(TrackNotFoundJS).
|
|
83220
|
+
protoOf(TrackNotFoundJS).u44 = function (legId) {
|
|
83199
83221
|
return new TrackNotFoundJS(legId);
|
|
83200
83222
|
};
|
|
83201
83223
|
protoOf(TrackNotFoundJS).copy = function (legId, $super) {
|
|
83202
83224
|
legId = legId === VOID ? this.legId : legId;
|
|
83203
|
-
return this.
|
|
83225
|
+
return this.u44(legId);
|
|
83204
83226
|
};
|
|
83205
83227
|
protoOf(TrackNotFoundJS).toString = function () {
|
|
83206
83228
|
return 'TrackNotFoundJS(legId=' + this.legId + ')';
|
|
@@ -83221,35 +83243,36 @@ function requireClientsdkClientcore_js () {
|
|
|
83221
83243
|
function ProcessAnswerErrorJS(legId, message) {
|
|
83222
83244
|
message = message === VOID ? null : message;
|
|
83223
83245
|
MediaClientErrorJS.call(this);
|
|
83246
|
+
captureStack(this, ProcessAnswerErrorJS);
|
|
83224
83247
|
this.legId = legId;
|
|
83225
|
-
this.
|
|
83248
|
+
this.s44_1 = message;
|
|
83226
83249
|
}
|
|
83227
|
-
protoOf(ProcessAnswerErrorJS).
|
|
83250
|
+
protoOf(ProcessAnswerErrorJS).t44 = function () {
|
|
83228
83251
|
return this.legId;
|
|
83229
83252
|
};
|
|
83230
83253
|
protoOf(ProcessAnswerErrorJS).n8 = function () {
|
|
83231
|
-
return this.
|
|
83254
|
+
return this.s44_1;
|
|
83232
83255
|
};
|
|
83233
83256
|
protoOf(ProcessAnswerErrorJS).r8 = function () {
|
|
83234
83257
|
return this.legId;
|
|
83235
83258
|
};
|
|
83236
83259
|
protoOf(ProcessAnswerErrorJS).s8 = function () {
|
|
83237
|
-
return this.
|
|
83260
|
+
return this.s44_1;
|
|
83238
83261
|
};
|
|
83239
|
-
protoOf(ProcessAnswerErrorJS).
|
|
83262
|
+
protoOf(ProcessAnswerErrorJS).v44 = function (legId, message) {
|
|
83240
83263
|
return new ProcessAnswerErrorJS(legId, message);
|
|
83241
83264
|
};
|
|
83242
83265
|
protoOf(ProcessAnswerErrorJS).copy = function (legId, message, $super) {
|
|
83243
83266
|
legId = legId === VOID ? this.legId : legId;
|
|
83244
|
-
message = message === VOID ? this.
|
|
83245
|
-
return this.
|
|
83267
|
+
message = message === VOID ? this.s44_1 : message;
|
|
83268
|
+
return this.v44(legId, message);
|
|
83246
83269
|
};
|
|
83247
83270
|
protoOf(ProcessAnswerErrorJS).toString = function () {
|
|
83248
|
-
return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.
|
|
83271
|
+
return 'ProcessAnswerErrorJS(legId=' + this.legId + ', message=' + this.s44_1 + ')';
|
|
83249
83272
|
};
|
|
83250
83273
|
protoOf(ProcessAnswerErrorJS).hashCode = function () {
|
|
83251
83274
|
var result = getStringHashCode(this.legId);
|
|
83252
|
-
result = imul(result, 31) + (this.
|
|
83275
|
+
result = imul(result, 31) + (this.s44_1 == null ? 0 : getStringHashCode(this.s44_1)) | 0;
|
|
83253
83276
|
return result;
|
|
83254
83277
|
};
|
|
83255
83278
|
protoOf(ProcessAnswerErrorJS).equals = function (other) {
|
|
@@ -83260,33 +83283,34 @@ function requireClientsdkClientcore_js () {
|
|
|
83260
83283
|
var tmp0_other_with_cast = other instanceof ProcessAnswerErrorJS ? other : THROW_CCE();
|
|
83261
83284
|
if (!(this.legId === tmp0_other_with_cast.legId))
|
|
83262
83285
|
return false;
|
|
83263
|
-
if (!(this.
|
|
83286
|
+
if (!(this.s44_1 == tmp0_other_with_cast.s44_1))
|
|
83264
83287
|
return false;
|
|
83265
83288
|
return true;
|
|
83266
83289
|
};
|
|
83267
83290
|
function CreateAnswerErrorJS(message) {
|
|
83268
83291
|
message = message === VOID ? null : message;
|
|
83269
83292
|
MediaClientErrorJS.call(this);
|
|
83270
|
-
this
|
|
83293
|
+
captureStack(this, CreateAnswerErrorJS);
|
|
83294
|
+
this.w44_1 = message;
|
|
83271
83295
|
}
|
|
83272
83296
|
protoOf(CreateAnswerErrorJS).n8 = function () {
|
|
83273
|
-
return this.
|
|
83297
|
+
return this.w44_1;
|
|
83274
83298
|
};
|
|
83275
83299
|
protoOf(CreateAnswerErrorJS).r8 = function () {
|
|
83276
|
-
return this.
|
|
83300
|
+
return this.w44_1;
|
|
83277
83301
|
};
|
|
83278
|
-
protoOf(CreateAnswerErrorJS).
|
|
83302
|
+
protoOf(CreateAnswerErrorJS).x44 = function (message) {
|
|
83279
83303
|
return new CreateAnswerErrorJS(message);
|
|
83280
83304
|
};
|
|
83281
83305
|
protoOf(CreateAnswerErrorJS).copy = function (message, $super) {
|
|
83282
|
-
message = message === VOID ? this.
|
|
83283
|
-
return this.
|
|
83306
|
+
message = message === VOID ? this.w44_1 : message;
|
|
83307
|
+
return this.x44(message);
|
|
83284
83308
|
};
|
|
83285
83309
|
protoOf(CreateAnswerErrorJS).toString = function () {
|
|
83286
|
-
return 'CreateAnswerErrorJS(message=' + this.
|
|
83310
|
+
return 'CreateAnswerErrorJS(message=' + this.w44_1 + ')';
|
|
83287
83311
|
};
|
|
83288
83312
|
protoOf(CreateAnswerErrorJS).hashCode = function () {
|
|
83289
|
-
return this.
|
|
83313
|
+
return this.w44_1 == null ? 0 : getStringHashCode(this.w44_1);
|
|
83290
83314
|
};
|
|
83291
83315
|
protoOf(CreateAnswerErrorJS).equals = function (other) {
|
|
83292
83316
|
if (this === other)
|
|
@@ -83294,33 +83318,34 @@ function requireClientsdkClientcore_js () {
|
|
|
83294
83318
|
if (!(other instanceof CreateAnswerErrorJS))
|
|
83295
83319
|
return false;
|
|
83296
83320
|
var tmp0_other_with_cast = other instanceof CreateAnswerErrorJS ? other : THROW_CCE();
|
|
83297
|
-
if (!(this.
|
|
83321
|
+
if (!(this.w44_1 == tmp0_other_with_cast.w44_1))
|
|
83298
83322
|
return false;
|
|
83299
83323
|
return true;
|
|
83300
83324
|
};
|
|
83301
83325
|
function CreateOfferErrorJS(message) {
|
|
83302
83326
|
message = message === VOID ? null : message;
|
|
83303
83327
|
MediaClientErrorJS.call(this);
|
|
83304
|
-
this
|
|
83328
|
+
captureStack(this, CreateOfferErrorJS);
|
|
83329
|
+
this.y44_1 = message;
|
|
83305
83330
|
}
|
|
83306
83331
|
protoOf(CreateOfferErrorJS).n8 = function () {
|
|
83307
|
-
return this.
|
|
83332
|
+
return this.y44_1;
|
|
83308
83333
|
};
|
|
83309
83334
|
protoOf(CreateOfferErrorJS).r8 = function () {
|
|
83310
|
-
return this.
|
|
83335
|
+
return this.y44_1;
|
|
83311
83336
|
};
|
|
83312
|
-
protoOf(CreateOfferErrorJS).
|
|
83337
|
+
protoOf(CreateOfferErrorJS).x44 = function (message) {
|
|
83313
83338
|
return new CreateOfferErrorJS(message);
|
|
83314
83339
|
};
|
|
83315
83340
|
protoOf(CreateOfferErrorJS).copy = function (message, $super) {
|
|
83316
|
-
message = message === VOID ? this.
|
|
83317
|
-
return this.
|
|
83341
|
+
message = message === VOID ? this.y44_1 : message;
|
|
83342
|
+
return this.x44(message);
|
|
83318
83343
|
};
|
|
83319
83344
|
protoOf(CreateOfferErrorJS).toString = function () {
|
|
83320
|
-
return 'CreateOfferErrorJS(message=' + this.
|
|
83345
|
+
return 'CreateOfferErrorJS(message=' + this.y44_1 + ')';
|
|
83321
83346
|
};
|
|
83322
83347
|
protoOf(CreateOfferErrorJS).hashCode = function () {
|
|
83323
|
-
return this.
|
|
83348
|
+
return this.y44_1 == null ? 0 : getStringHashCode(this.y44_1);
|
|
83324
83349
|
};
|
|
83325
83350
|
protoOf(CreateOfferErrorJS).equals = function (other) {
|
|
83326
83351
|
if (this === other)
|
|
@@ -83328,7 +83353,7 @@ function requireClientsdkClientcore_js () {
|
|
|
83328
83353
|
if (!(other instanceof CreateOfferErrorJS))
|
|
83329
83354
|
return false;
|
|
83330
83355
|
var tmp0_other_with_cast = other instanceof CreateOfferErrorJS ? other : THROW_CCE();
|
|
83331
|
-
if (!(this.
|
|
83356
|
+
if (!(this.y44_1 == tmp0_other_with_cast.y44_1))
|
|
83332
83357
|
return false;
|
|
83333
83358
|
return true;
|
|
83334
83359
|
};
|
|
@@ -84367,66 +84392,66 @@ function requireClientsdkClientcore_js () {
|
|
|
84367
84392
|
this.coreRegion = coreRegion;
|
|
84368
84393
|
this.emergencyRegion = emergencyRegion;
|
|
84369
84394
|
}
|
|
84370
|
-
protoOf(CoreClientConfigRegionJS).
|
|
84395
|
+
protoOf(CoreClientConfigRegionJS).b45 = function () {
|
|
84371
84396
|
return this.coreRegion;
|
|
84372
84397
|
};
|
|
84373
|
-
protoOf(CoreClientConfigRegionJS).
|
|
84398
|
+
protoOf(CoreClientConfigRegionJS).c45 = function () {
|
|
84374
84399
|
return this.emergencyRegion;
|
|
84375
84400
|
};
|
|
84376
84401
|
function CoreClientConfigJS(region) {
|
|
84377
84402
|
region = region === VOID ? get_DEFAULT_REGION() : region;
|
|
84378
84403
|
this.region = region;
|
|
84379
|
-
this.
|
|
84380
|
-
this.
|
|
84381
|
-
this.
|
|
84382
|
-
this.
|
|
84383
|
-
this.
|
|
84384
|
-
this.
|
|
84385
|
-
this.
|
|
84386
|
-
this.
|
|
84387
|
-
}
|
|
84388
|
-
protoOf(CoreClientConfigJS).
|
|
84404
|
+
this.d45_1 = this.region.coreRegion.j37_1;
|
|
84405
|
+
this.e45_1 = this.region.coreRegion.k37_1;
|
|
84406
|
+
this.f45_1 = '/v2/rtc';
|
|
84407
|
+
this.g45_1 = true;
|
|
84408
|
+
this.h45_1 = false;
|
|
84409
|
+
this.i45_1 = false;
|
|
84410
|
+
this.j45_1 = this.region.emergencyRegion.j1h_1;
|
|
84411
|
+
this.k45_1 = this.region.emergencyRegion.k1h_1;
|
|
84412
|
+
}
|
|
84413
|
+
protoOf(CoreClientConfigJS).l45 = function () {
|
|
84389
84414
|
return this.region;
|
|
84390
84415
|
};
|
|
84391
|
-
protoOf(CoreClientConfigJS).
|
|
84392
|
-
this.a45_1 = _set____db54di;
|
|
84393
|
-
};
|
|
84394
|
-
protoOf(CoreClientConfigJS).k45 = function () {
|
|
84395
|
-
return this.a45_1;
|
|
84396
|
-
};
|
|
84397
|
-
protoOf(CoreClientConfigJS).l45 = function (_set____db54di) {
|
|
84398
|
-
this.b45_1 = _set____db54di;
|
|
84399
|
-
};
|
|
84400
|
-
protoOf(CoreClientConfigJS).m45 = function () {
|
|
84401
|
-
return this.b45_1;
|
|
84402
|
-
};
|
|
84403
|
-
protoOf(CoreClientConfigJS).n45 = function (_set____db54di) {
|
|
84404
|
-
this.c45_1 = _set____db54di;
|
|
84405
|
-
};
|
|
84406
|
-
protoOf(CoreClientConfigJS).o45 = function () {
|
|
84407
|
-
return this.c45_1;
|
|
84408
|
-
};
|
|
84409
|
-
protoOf(CoreClientConfigJS).p45 = function (_set____db54di) {
|
|
84416
|
+
protoOf(CoreClientConfigJS).m45 = function (_set____db54di) {
|
|
84410
84417
|
this.d45_1 = _set____db54di;
|
|
84411
84418
|
};
|
|
84412
|
-
protoOf(CoreClientConfigJS).
|
|
84419
|
+
protoOf(CoreClientConfigJS).n45 = function () {
|
|
84413
84420
|
return this.d45_1;
|
|
84414
84421
|
};
|
|
84415
|
-
protoOf(CoreClientConfigJS).
|
|
84422
|
+
protoOf(CoreClientConfigJS).o45 = function (_set____db54di) {
|
|
84416
84423
|
this.e45_1 = _set____db54di;
|
|
84417
84424
|
};
|
|
84418
|
-
protoOf(CoreClientConfigJS).
|
|
84425
|
+
protoOf(CoreClientConfigJS).p45 = function () {
|
|
84419
84426
|
return this.e45_1;
|
|
84420
84427
|
};
|
|
84421
|
-
protoOf(CoreClientConfigJS).
|
|
84428
|
+
protoOf(CoreClientConfigJS).q45 = function (_set____db54di) {
|
|
84429
|
+
this.f45_1 = _set____db54di;
|
|
84430
|
+
};
|
|
84431
|
+
protoOf(CoreClientConfigJS).r45 = function () {
|
|
84422
84432
|
return this.f45_1;
|
|
84423
84433
|
};
|
|
84424
|
-
protoOf(CoreClientConfigJS).
|
|
84434
|
+
protoOf(CoreClientConfigJS).s45 = function (_set____db54di) {
|
|
84435
|
+
this.g45_1 = _set____db54di;
|
|
84436
|
+
};
|
|
84437
|
+
protoOf(CoreClientConfigJS).t45 = function () {
|
|
84425
84438
|
return this.g45_1;
|
|
84426
84439
|
};
|
|
84440
|
+
protoOf(CoreClientConfigJS).u45 = function (_set____db54di) {
|
|
84441
|
+
this.h45_1 = _set____db54di;
|
|
84442
|
+
};
|
|
84427
84443
|
protoOf(CoreClientConfigJS).v45 = function () {
|
|
84428
84444
|
return this.h45_1;
|
|
84429
84445
|
};
|
|
84446
|
+
protoOf(CoreClientConfigJS).w45 = function () {
|
|
84447
|
+
return this.i45_1;
|
|
84448
|
+
};
|
|
84449
|
+
protoOf(CoreClientConfigJS).x45 = function () {
|
|
84450
|
+
return this.j45_1;
|
|
84451
|
+
};
|
|
84452
|
+
protoOf(CoreClientConfigJS).y45 = function () {
|
|
84453
|
+
return this.k45_1;
|
|
84454
|
+
};
|
|
84430
84455
|
function TopicJS(name, tag) {
|
|
84431
84456
|
this.name = name;
|
|
84432
84457
|
this.tag = tag;
|
|
@@ -84434,7 +84459,7 @@ function requireClientsdkClientcore_js () {
|
|
|
84434
84459
|
protoOf(TopicJS).f2 = function () {
|
|
84435
84460
|
return this.name;
|
|
84436
84461
|
};
|
|
84437
|
-
protoOf(TopicJS).
|
|
84462
|
+
protoOf(TopicJS).z45 = function () {
|
|
84438
84463
|
return this.tag;
|
|
84439
84464
|
};
|
|
84440
84465
|
protoOf(TopicJS).r8 = function () {
|
|
@@ -84443,13 +84468,13 @@ function requireClientsdkClientcore_js () {
|
|
|
84443
84468
|
protoOf(TopicJS).s8 = function () {
|
|
84444
84469
|
return this.tag;
|
|
84445
84470
|
};
|
|
84446
|
-
protoOf(TopicJS).
|
|
84471
|
+
protoOf(TopicJS).a46 = function (name, tag) {
|
|
84447
84472
|
return new TopicJS(name, tag);
|
|
84448
84473
|
};
|
|
84449
84474
|
protoOf(TopicJS).copy = function (name, tag, $super) {
|
|
84450
84475
|
name = name === VOID ? this.name : name;
|
|
84451
84476
|
tag = tag === VOID ? this.tag : tag;
|
|
84452
|
-
return this.
|
|
84477
|
+
return this.a46(name, tag);
|
|
84453
84478
|
};
|
|
84454
84479
|
protoOf(TopicJS).toString = function () {
|
|
84455
84480
|
return 'TopicJS(name=' + this.name + ', tag=' + this.tag + ')';
|
|
@@ -84590,10 +84615,10 @@ function requireClientsdkClientcore_js () {
|
|
|
84590
84615
|
protoOf(SessionErrorReasonJsObject).c44 = function () {
|
|
84591
84616
|
return this.EXPIRED_TOKEN;
|
|
84592
84617
|
};
|
|
84593
|
-
protoOf(SessionErrorReasonJsObject).
|
|
84618
|
+
protoOf(SessionErrorReasonJsObject).f46 = function () {
|
|
84594
84619
|
return this.TRANSPORT_CLOSED;
|
|
84595
84620
|
};
|
|
84596
|
-
protoOf(SessionErrorReasonJsObject).
|
|
84621
|
+
protoOf(SessionErrorReasonJsObject).g46 = function () {
|
|
84597
84622
|
return this.PING_TIMEOUT;
|
|
84598
84623
|
};
|
|
84599
84624
|
protoOf(SessionErrorReasonJsObject).toString = function () {
|
|
@@ -85017,22 +85042,22 @@ function requireClientsdkClientcore_js () {
|
|
|
85017
85042
|
return _this__u8e3s4 == null ? null : equals(_this__u8e3s4, undefined) ? null : _this__u8e3s4;
|
|
85018
85043
|
}
|
|
85019
85044
|
function createVonageLoggerJS$1($name, $minLogLevel, $topics, $onLog) {
|
|
85020
|
-
this.
|
|
85021
|
-
this.
|
|
85022
|
-
this.
|
|
85023
|
-
this.
|
|
85045
|
+
this.k46_1 = $onLog;
|
|
85046
|
+
this.h46_1 = $name;
|
|
85047
|
+
this.i46_1 = $minLogLevel;
|
|
85048
|
+
this.j46_1 = $topics;
|
|
85024
85049
|
}
|
|
85025
85050
|
protoOf(createVonageLoggerJS$1).f2 = function () {
|
|
85026
|
-
return this.
|
|
85051
|
+
return this.h46_1;
|
|
85027
85052
|
};
|
|
85028
85053
|
protoOf(createVonageLoggerJS$1).h3p = function () {
|
|
85029
|
-
return this.
|
|
85054
|
+
return this.i46_1;
|
|
85030
85055
|
};
|
|
85031
85056
|
protoOf(createVonageLoggerJS$1).z3o = function () {
|
|
85032
|
-
return this.
|
|
85057
|
+
return this.j46_1;
|
|
85033
85058
|
};
|
|
85034
85059
|
protoOf(createVonageLoggerJS$1).onLog = function (logLevel, topic, message) {
|
|
85035
|
-
this.
|
|
85060
|
+
this.k46_1(logLevel, topic, message);
|
|
85036
85061
|
};
|
|
85037
85062
|
function vonageLogger$lambda($logger) {
|
|
85038
85063
|
return function (logLevel, topic, message, _anonymous_parameter_3__qggqen) {
|
|
@@ -85121,13 +85146,13 @@ function requireClientsdkClientcore_js () {
|
|
|
85121
85146
|
this.ANSWERED = 'ANSWERED';
|
|
85122
85147
|
this.COMPLETED = 'COMPLETED';
|
|
85123
85148
|
}
|
|
85124
|
-
protoOf(LegStatusJSObject).
|
|
85149
|
+
protoOf(LegStatusJSObject).l46 = function () {
|
|
85125
85150
|
return this.RINGING;
|
|
85126
85151
|
};
|
|
85127
|
-
protoOf(LegStatusJSObject).
|
|
85152
|
+
protoOf(LegStatusJSObject).m46 = function () {
|
|
85128
85153
|
return this.ANSWERED;
|
|
85129
85154
|
};
|
|
85130
|
-
protoOf(LegStatusJSObject).
|
|
85155
|
+
protoOf(LegStatusJSObject).n46 = function () {
|
|
85131
85156
|
return this.COMPLETED;
|
|
85132
85157
|
};
|
|
85133
85158
|
protoOf(LegStatusJSObject).toString = function () {
|
|
@@ -85151,7 +85176,7 @@ function requireClientsdkClientcore_js () {
|
|
|
85151
85176
|
function CallDisconnectReasonJSObject() {
|
|
85152
85177
|
this.NetworkChange = 'networkChange';
|
|
85153
85178
|
}
|
|
85154
|
-
protoOf(CallDisconnectReasonJSObject).
|
|
85179
|
+
protoOf(CallDisconnectReasonJSObject).o46 = function () {
|
|
85155
85180
|
return this.NetworkChange;
|
|
85156
85181
|
};
|
|
85157
85182
|
protoOf(CallDisconnectReasonJSObject).toString = function () {
|
|
@@ -85179,19 +85204,19 @@ function requireClientsdkClientcore_js () {
|
|
|
85179
85204
|
this.LOCAL_HANGUP = 'LOCAL_HANGUP';
|
|
85180
85205
|
this.MEDIA_TIMEOUT = 'MEDIA_TIMEOUT';
|
|
85181
85206
|
}
|
|
85182
|
-
protoOf(HangupReasonJSObject).
|
|
85207
|
+
protoOf(HangupReasonJSObject).p46 = function () {
|
|
85183
85208
|
return this.REMOTE_HANGUP;
|
|
85184
85209
|
};
|
|
85185
|
-
protoOf(HangupReasonJSObject).
|
|
85210
|
+
protoOf(HangupReasonJSObject).q46 = function () {
|
|
85186
85211
|
return this.REMOTE_REJECT;
|
|
85187
85212
|
};
|
|
85188
|
-
protoOf(HangupReasonJSObject).
|
|
85213
|
+
protoOf(HangupReasonJSObject).r46 = function () {
|
|
85189
85214
|
return this.REMOTE_NO_ANSWER_TIMEOUT;
|
|
85190
85215
|
};
|
|
85191
|
-
protoOf(HangupReasonJSObject).
|
|
85216
|
+
protoOf(HangupReasonJSObject).s46 = function () {
|
|
85192
85217
|
return this.LOCAL_HANGUP;
|
|
85193
85218
|
};
|
|
85194
|
-
protoOf(HangupReasonJSObject).
|
|
85219
|
+
protoOf(HangupReasonJSObject).t46 = function () {
|
|
85195
85220
|
return this.MEDIA_TIMEOUT;
|
|
85196
85221
|
};
|
|
85197
85222
|
protoOf(HangupReasonJSObject).toString = function () {
|
|
@@ -85717,6 +85742,252 @@ function requireClientsdkClientcore_js () {
|
|
|
85717
85742
|
return Unit_instance;
|
|
85718
85743
|
};
|
|
85719
85744
|
}
|
|
85745
|
+
function IVoiceClientJS$enableNoiseSuppression$lambda$lambda($reject, $resolve) {
|
|
85746
|
+
return function (err) {
|
|
85747
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85748
|
+
var tmp;
|
|
85749
|
+
if (tmp0_safe_receiver == null) {
|
|
85750
|
+
tmp = null;
|
|
85751
|
+
} else {
|
|
85752
|
+
// Inline function 'kotlin.let' call
|
|
85753
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85754
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85755
|
+
tmp = Unit_instance;
|
|
85756
|
+
}
|
|
85757
|
+
var tmp2_elvis_lhs = tmp;
|
|
85758
|
+
var tmp_0;
|
|
85759
|
+
if (tmp2_elvis_lhs == null) {
|
|
85760
|
+
var tmp_1;
|
|
85761
|
+
if (err == null) {
|
|
85762
|
+
tmp_1 = null;
|
|
85763
|
+
} else {
|
|
85764
|
+
// Inline function 'kotlin.let' call
|
|
85765
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85766
|
+
$reject(err);
|
|
85767
|
+
tmp_1 = Unit_instance;
|
|
85768
|
+
}
|
|
85769
|
+
tmp_0 = tmp_1;
|
|
85770
|
+
} else {
|
|
85771
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85772
|
+
}
|
|
85773
|
+
if (tmp_0 == null) {
|
|
85774
|
+
$resolve(null);
|
|
85775
|
+
}
|
|
85776
|
+
return Unit_instance;
|
|
85777
|
+
};
|
|
85778
|
+
}
|
|
85779
|
+
function IVoiceClientJS$enableNoiseSuppression$lambda(this$0, $callId) {
|
|
85780
|
+
return function (resolve, reject) {
|
|
85781
|
+
var tmp = this$0.media;
|
|
85782
|
+
tmp.enableNoiseSuppression($callId, IVoiceClientJS$enableNoiseSuppression$lambda$lambda(reject, resolve));
|
|
85783
|
+
return Unit_instance;
|
|
85784
|
+
};
|
|
85785
|
+
}
|
|
85786
|
+
function IVoiceClientJS$disableNoiseSuppression$lambda$lambda($reject, $resolve) {
|
|
85787
|
+
return function (err) {
|
|
85788
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85789
|
+
var tmp;
|
|
85790
|
+
if (tmp0_safe_receiver == null) {
|
|
85791
|
+
tmp = null;
|
|
85792
|
+
} else {
|
|
85793
|
+
// Inline function 'kotlin.let' call
|
|
85794
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85795
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85796
|
+
tmp = Unit_instance;
|
|
85797
|
+
}
|
|
85798
|
+
var tmp2_elvis_lhs = tmp;
|
|
85799
|
+
var tmp_0;
|
|
85800
|
+
if (tmp2_elvis_lhs == null) {
|
|
85801
|
+
var tmp_1;
|
|
85802
|
+
if (err == null) {
|
|
85803
|
+
tmp_1 = null;
|
|
85804
|
+
} else {
|
|
85805
|
+
// Inline function 'kotlin.let' call
|
|
85806
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85807
|
+
$reject(err);
|
|
85808
|
+
tmp_1 = Unit_instance;
|
|
85809
|
+
}
|
|
85810
|
+
tmp_0 = tmp_1;
|
|
85811
|
+
} else {
|
|
85812
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85813
|
+
}
|
|
85814
|
+
if (tmp_0 == null) {
|
|
85815
|
+
$resolve(null);
|
|
85816
|
+
}
|
|
85817
|
+
return Unit_instance;
|
|
85818
|
+
};
|
|
85819
|
+
}
|
|
85820
|
+
function IVoiceClientJS$disableNoiseSuppression$lambda(this$0, $callId) {
|
|
85821
|
+
return function (resolve, reject) {
|
|
85822
|
+
var tmp = this$0.media;
|
|
85823
|
+
tmp.disableNoiseSuppression($callId, IVoiceClientJS$disableNoiseSuppression$lambda$lambda(reject, resolve));
|
|
85824
|
+
return Unit_instance;
|
|
85825
|
+
};
|
|
85826
|
+
}
|
|
85827
|
+
function IVoiceClientJS$enableAutoGainControl$lambda$lambda($reject, $resolve) {
|
|
85828
|
+
return function (err) {
|
|
85829
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85830
|
+
var tmp;
|
|
85831
|
+
if (tmp0_safe_receiver == null) {
|
|
85832
|
+
tmp = null;
|
|
85833
|
+
} else {
|
|
85834
|
+
// Inline function 'kotlin.let' call
|
|
85835
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85836
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85837
|
+
tmp = Unit_instance;
|
|
85838
|
+
}
|
|
85839
|
+
var tmp2_elvis_lhs = tmp;
|
|
85840
|
+
var tmp_0;
|
|
85841
|
+
if (tmp2_elvis_lhs == null) {
|
|
85842
|
+
var tmp_1;
|
|
85843
|
+
if (err == null) {
|
|
85844
|
+
tmp_1 = null;
|
|
85845
|
+
} else {
|
|
85846
|
+
// Inline function 'kotlin.let' call
|
|
85847
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85848
|
+
$reject(err);
|
|
85849
|
+
tmp_1 = Unit_instance;
|
|
85850
|
+
}
|
|
85851
|
+
tmp_0 = tmp_1;
|
|
85852
|
+
} else {
|
|
85853
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85854
|
+
}
|
|
85855
|
+
if (tmp_0 == null) {
|
|
85856
|
+
$resolve(null);
|
|
85857
|
+
}
|
|
85858
|
+
return Unit_instance;
|
|
85859
|
+
};
|
|
85860
|
+
}
|
|
85861
|
+
function IVoiceClientJS$enableAutoGainControl$lambda(this$0, $callId) {
|
|
85862
|
+
return function (resolve, reject) {
|
|
85863
|
+
var tmp = this$0.media;
|
|
85864
|
+
tmp.enableAutoGainControl($callId, IVoiceClientJS$enableAutoGainControl$lambda$lambda(reject, resolve));
|
|
85865
|
+
return Unit_instance;
|
|
85866
|
+
};
|
|
85867
|
+
}
|
|
85868
|
+
function IVoiceClientJS$disableAutoGainControl$lambda$lambda($reject, $resolve) {
|
|
85869
|
+
return function (err) {
|
|
85870
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85871
|
+
var tmp;
|
|
85872
|
+
if (tmp0_safe_receiver == null) {
|
|
85873
|
+
tmp = null;
|
|
85874
|
+
} else {
|
|
85875
|
+
// Inline function 'kotlin.let' call
|
|
85876
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85877
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85878
|
+
tmp = Unit_instance;
|
|
85879
|
+
}
|
|
85880
|
+
var tmp2_elvis_lhs = tmp;
|
|
85881
|
+
var tmp_0;
|
|
85882
|
+
if (tmp2_elvis_lhs == null) {
|
|
85883
|
+
var tmp_1;
|
|
85884
|
+
if (err == null) {
|
|
85885
|
+
tmp_1 = null;
|
|
85886
|
+
} else {
|
|
85887
|
+
// Inline function 'kotlin.let' call
|
|
85888
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85889
|
+
$reject(err);
|
|
85890
|
+
tmp_1 = Unit_instance;
|
|
85891
|
+
}
|
|
85892
|
+
tmp_0 = tmp_1;
|
|
85893
|
+
} else {
|
|
85894
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85895
|
+
}
|
|
85896
|
+
if (tmp_0 == null) {
|
|
85897
|
+
$resolve(null);
|
|
85898
|
+
}
|
|
85899
|
+
return Unit_instance;
|
|
85900
|
+
};
|
|
85901
|
+
}
|
|
85902
|
+
function IVoiceClientJS$disableAutoGainControl$lambda(this$0, $callId) {
|
|
85903
|
+
return function (resolve, reject) {
|
|
85904
|
+
var tmp = this$0.media;
|
|
85905
|
+
tmp.disableAutoGainControl($callId, IVoiceClientJS$disableAutoGainControl$lambda$lambda(reject, resolve));
|
|
85906
|
+
return Unit_instance;
|
|
85907
|
+
};
|
|
85908
|
+
}
|
|
85909
|
+
function IVoiceClientJS$enableEchoCancellation$lambda$lambda($reject, $resolve) {
|
|
85910
|
+
return function (err) {
|
|
85911
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85912
|
+
var tmp;
|
|
85913
|
+
if (tmp0_safe_receiver == null) {
|
|
85914
|
+
tmp = null;
|
|
85915
|
+
} else {
|
|
85916
|
+
// Inline function 'kotlin.let' call
|
|
85917
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85918
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85919
|
+
tmp = Unit_instance;
|
|
85920
|
+
}
|
|
85921
|
+
var tmp2_elvis_lhs = tmp;
|
|
85922
|
+
var tmp_0;
|
|
85923
|
+
if (tmp2_elvis_lhs == null) {
|
|
85924
|
+
var tmp_1;
|
|
85925
|
+
if (err == null) {
|
|
85926
|
+
tmp_1 = null;
|
|
85927
|
+
} else {
|
|
85928
|
+
// Inline function 'kotlin.let' call
|
|
85929
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85930
|
+
$reject(err);
|
|
85931
|
+
tmp_1 = Unit_instance;
|
|
85932
|
+
}
|
|
85933
|
+
tmp_0 = tmp_1;
|
|
85934
|
+
} else {
|
|
85935
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85936
|
+
}
|
|
85937
|
+
if (tmp_0 == null) {
|
|
85938
|
+
$resolve(null);
|
|
85939
|
+
}
|
|
85940
|
+
return Unit_instance;
|
|
85941
|
+
};
|
|
85942
|
+
}
|
|
85943
|
+
function IVoiceClientJS$enableEchoCancellation$lambda(this$0, $callId) {
|
|
85944
|
+
return function (resolve, reject) {
|
|
85945
|
+
var tmp = this$0.media;
|
|
85946
|
+
tmp.enableEchoCancellation($callId, IVoiceClientJS$enableEchoCancellation$lambda$lambda(reject, resolve));
|
|
85947
|
+
return Unit_instance;
|
|
85948
|
+
};
|
|
85949
|
+
}
|
|
85950
|
+
function IVoiceClientJS$disableEchoCancellation$lambda$lambda($reject, $resolve) {
|
|
85951
|
+
return function (err) {
|
|
85952
|
+
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
85953
|
+
var tmp;
|
|
85954
|
+
if (tmp0_safe_receiver == null) {
|
|
85955
|
+
tmp = null;
|
|
85956
|
+
} else {
|
|
85957
|
+
// Inline function 'kotlin.let' call
|
|
85958
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85959
|
+
$reject(new VonageErrorJS(tmp0_safe_receiver));
|
|
85960
|
+
tmp = Unit_instance;
|
|
85961
|
+
}
|
|
85962
|
+
var tmp2_elvis_lhs = tmp;
|
|
85963
|
+
var tmp_0;
|
|
85964
|
+
if (tmp2_elvis_lhs == null) {
|
|
85965
|
+
var tmp_1;
|
|
85966
|
+
if (err == null) {
|
|
85967
|
+
tmp_1 = null;
|
|
85968
|
+
} else {
|
|
85969
|
+
// Inline function 'kotlin.let' call
|
|
85970
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
85971
|
+
$reject(err);
|
|
85972
|
+
tmp_1 = Unit_instance;
|
|
85973
|
+
}
|
|
85974
|
+
tmp_0 = tmp_1;
|
|
85975
|
+
} else {
|
|
85976
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
85977
|
+
}
|
|
85978
|
+
if (tmp_0 == null) {
|
|
85979
|
+
$resolve(null);
|
|
85980
|
+
}
|
|
85981
|
+
return Unit_instance;
|
|
85982
|
+
};
|
|
85983
|
+
}
|
|
85984
|
+
function IVoiceClientJS$disableEchoCancellation$lambda(this$0, $callId) {
|
|
85985
|
+
return function (resolve, reject) {
|
|
85986
|
+
var tmp = this$0.media;
|
|
85987
|
+
tmp.disableEchoCancellation($callId, IVoiceClientJS$disableEchoCancellation$lambda$lambda(reject, resolve));
|
|
85988
|
+
return Unit_instance;
|
|
85989
|
+
};
|
|
85990
|
+
}
|
|
85720
85991
|
function IVoiceClientJS$sendDTMF$lambda$lambda($reject, $resolve) {
|
|
85721
85992
|
return function (err) {
|
|
85722
85993
|
var tmp0_safe_receiver = err instanceof VonageError ? err : null;
|
|
@@ -85776,13 +86047,13 @@ function requireClientsdkClientcore_js () {
|
|
|
85776
86047
|
protoOf(VoiceInviteFromInfoJS).s8 = function () {
|
|
85777
86048
|
return this.type;
|
|
85778
86049
|
};
|
|
85779
|
-
protoOf(VoiceInviteFromInfoJS).
|
|
86050
|
+
protoOf(VoiceInviteFromInfoJS).u46 = function (id, type) {
|
|
85780
86051
|
return new VoiceInviteFromInfoJS(id, type);
|
|
85781
86052
|
};
|
|
85782
86053
|
protoOf(VoiceInviteFromInfoJS).copy = function (id, type, $super) {
|
|
85783
86054
|
id = id === VOID ? this.id : id;
|
|
85784
86055
|
type = type === VOID ? this.type : type;
|
|
85785
|
-
return this.
|
|
86056
|
+
return this.u46(id, type);
|
|
85786
86057
|
};
|
|
85787
86058
|
protoOf(VoiceInviteFromInfoJS).toString = function () {
|
|
85788
86059
|
return 'VoiceInviteFromInfoJS(id=' + this.id + ', type=' + this.type + ')';
|
|
@@ -85860,41 +86131,41 @@ function requireClientsdkClientcore_js () {
|
|
|
85860
86131
|
cause = cause === VOID ? null : cause;
|
|
85861
86132
|
extendThrowable(this);
|
|
85862
86133
|
captureStack(this, HttpClientErrorJS);
|
|
85863
|
-
this.
|
|
85864
|
-
this.
|
|
86134
|
+
this.v46_1 = message;
|
|
86135
|
+
this.w46_1 = cause;
|
|
85865
86136
|
}
|
|
85866
86137
|
protoOf(HttpClientErrorJS).n8 = function () {
|
|
85867
|
-
return this.
|
|
86138
|
+
return this.v46_1;
|
|
85868
86139
|
};
|
|
85869
86140
|
protoOf(HttpClientErrorJS).o8 = function () {
|
|
85870
|
-
return this.
|
|
86141
|
+
return this.w46_1;
|
|
85871
86142
|
};
|
|
85872
|
-
protoOf(HttpClientErrorJS).
|
|
85873
|
-
var tmp0_elvis_lhs = this.
|
|
86143
|
+
protoOf(HttpClientErrorJS).x46 = function () {
|
|
86144
|
+
var tmp0_elvis_lhs = this.v46_1;
|
|
85874
86145
|
var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
85875
|
-
var tmp_0 = this.
|
|
86146
|
+
var tmp_0 = this.w46_1;
|
|
85876
86147
|
return new HTTPClientError(tmp, tmp_0 instanceof Exception ? tmp_0 : null);
|
|
85877
86148
|
};
|
|
85878
86149
|
protoOf(HttpClientErrorJS).r8 = function () {
|
|
85879
|
-
return this.
|
|
86150
|
+
return this.v46_1;
|
|
85880
86151
|
};
|
|
85881
86152
|
protoOf(HttpClientErrorJS).s8 = function () {
|
|
85882
|
-
return this.
|
|
86153
|
+
return this.w46_1;
|
|
85883
86154
|
};
|
|
85884
|
-
protoOf(HttpClientErrorJS).
|
|
86155
|
+
protoOf(HttpClientErrorJS).y46 = function (message, cause) {
|
|
85885
86156
|
return new HttpClientErrorJS(message, cause);
|
|
85886
86157
|
};
|
|
85887
86158
|
protoOf(HttpClientErrorJS).copy = function (message, cause, $super) {
|
|
85888
|
-
message = message === VOID ? this.
|
|
85889
|
-
cause = cause === VOID ? this.
|
|
85890
|
-
return this.
|
|
86159
|
+
message = message === VOID ? this.v46_1 : message;
|
|
86160
|
+
cause = cause === VOID ? this.w46_1 : cause;
|
|
86161
|
+
return this.y46(message, cause);
|
|
85891
86162
|
};
|
|
85892
86163
|
protoOf(HttpClientErrorJS).toString = function () {
|
|
85893
|
-
return 'HttpClientErrorJS(message=' + this.
|
|
86164
|
+
return 'HttpClientErrorJS(message=' + this.v46_1 + ', cause=' + toString_0(this.w46_1) + ')';
|
|
85894
86165
|
};
|
|
85895
86166
|
protoOf(HttpClientErrorJS).hashCode = function () {
|
|
85896
|
-
var result = this.
|
|
85897
|
-
result = imul(result, 31) + (this.
|
|
86167
|
+
var result = this.v46_1 == null ? 0 : getStringHashCode(this.v46_1);
|
|
86168
|
+
result = imul(result, 31) + (this.w46_1 == null ? 0 : hashCode(this.w46_1)) | 0;
|
|
85898
86169
|
return result;
|
|
85899
86170
|
};
|
|
85900
86171
|
protoOf(HttpClientErrorJS).equals = function (other) {
|
|
@@ -85903,9 +86174,9 @@ function requireClientsdkClientcore_js () {
|
|
|
85903
86174
|
if (!(other instanceof HttpClientErrorJS))
|
|
85904
86175
|
return false;
|
|
85905
86176
|
var tmp0_other_with_cast = other instanceof HttpClientErrorJS ? other : THROW_CCE();
|
|
85906
|
-
if (!(this.
|
|
86177
|
+
if (!(this.v46_1 == tmp0_other_with_cast.v46_1))
|
|
85907
86178
|
return false;
|
|
85908
|
-
if (!equals(this.
|
|
86179
|
+
if (!equals(this.w46_1, tmp0_other_with_cast.w46_1))
|
|
85909
86180
|
return false;
|
|
85910
86181
|
return true;
|
|
85911
86182
|
};
|
|
@@ -85914,7 +86185,7 @@ function requireClientsdkClientcore_js () {
|
|
|
85914
86185
|
this.statusCode = statusCode;
|
|
85915
86186
|
this.body = body;
|
|
85916
86187
|
}
|
|
85917
|
-
protoOf(HttpClientResponseJS).
|
|
86188
|
+
protoOf(HttpClientResponseJS).z46 = function () {
|
|
85918
86189
|
return this.statusCode;
|
|
85919
86190
|
};
|
|
85920
86191
|
protoOf(HttpClientResponseJS).i40 = function () {
|
|
@@ -85926,13 +86197,13 @@ function requireClientsdkClientcore_js () {
|
|
|
85926
86197
|
protoOf(HttpClientResponseJS).s8 = function () {
|
|
85927
86198
|
return this.body;
|
|
85928
86199
|
};
|
|
85929
|
-
protoOf(HttpClientResponseJS).
|
|
86200
|
+
protoOf(HttpClientResponseJS).a47 = function (statusCode, body) {
|
|
85930
86201
|
return new HttpClientResponseJS(statusCode, body);
|
|
85931
86202
|
};
|
|
85932
86203
|
protoOf(HttpClientResponseJS).copy = function (statusCode, body, $super) {
|
|
85933
86204
|
statusCode = statusCode === VOID ? this.statusCode : statusCode;
|
|
85934
86205
|
body = body === VOID ? this.body : body;
|
|
85935
|
-
return this.
|
|
86206
|
+
return this.a47(statusCode, body);
|
|
85936
86207
|
};
|
|
85937
86208
|
protoOf(HttpClientResponseJS).toString = function () {
|
|
85938
86209
|
return 'HttpClientResponseJS(statusCode=' + this.statusCode + ', body=' + this.body + ')';
|
|
@@ -85988,16 +86259,16 @@ function requireClientsdkClientcore_js () {
|
|
|
85988
86259
|
this.RejectedElsewhere = 'RejectedElsewhere';
|
|
85989
86260
|
this.RemoteTimeout = 'RemoteTimeout';
|
|
85990
86261
|
}
|
|
85991
|
-
protoOf(CancelReasonJSObject).
|
|
86262
|
+
protoOf(CancelReasonJSObject).b47 = function () {
|
|
85992
86263
|
return this.RemoteCancel;
|
|
85993
86264
|
};
|
|
85994
|
-
protoOf(CancelReasonJSObject).
|
|
86265
|
+
protoOf(CancelReasonJSObject).c47 = function () {
|
|
85995
86266
|
return this.AnsweredElsewhere;
|
|
85996
86267
|
};
|
|
85997
|
-
protoOf(CancelReasonJSObject).
|
|
86268
|
+
protoOf(CancelReasonJSObject).d47 = function () {
|
|
85998
86269
|
return this.RejectedElsewhere;
|
|
85999
86270
|
};
|
|
86000
|
-
protoOf(CancelReasonJSObject).
|
|
86271
|
+
protoOf(CancelReasonJSObject).e47 = function () {
|
|
86001
86272
|
return this.RemoteTimeout;
|
|
86002
86273
|
};
|
|
86003
86274
|
protoOf(CancelReasonJSObject).toString = function () {
|
|
@@ -86029,31 +86300,31 @@ function requireClientsdkClientcore_js () {
|
|
|
86029
86300
|
this.packet_cnt = packet_cnt;
|
|
86030
86301
|
this.packet_loss_perc = packet_loss_perc;
|
|
86031
86302
|
}
|
|
86032
|
-
protoOf(RTCQualityJS).
|
|
86303
|
+
protoOf(RTCQualityJS).f47 = function () {
|
|
86033
86304
|
return this.mos_score;
|
|
86034
86305
|
};
|
|
86035
|
-
protoOf(RTCQualityJS).
|
|
86306
|
+
protoOf(RTCQualityJS).g47 = function () {
|
|
86036
86307
|
return this.quality_percentage;
|
|
86037
86308
|
};
|
|
86038
|
-
protoOf(RTCQualityJS).
|
|
86309
|
+
protoOf(RTCQualityJS).h47 = function () {
|
|
86039
86310
|
return this.jitter_min_var;
|
|
86040
86311
|
};
|
|
86041
|
-
protoOf(RTCQualityJS).
|
|
86312
|
+
protoOf(RTCQualityJS).i47 = function () {
|
|
86042
86313
|
return this.jitter_max_var;
|
|
86043
86314
|
};
|
|
86044
|
-
protoOf(RTCQualityJS).
|
|
86315
|
+
protoOf(RTCQualityJS).j47 = function () {
|
|
86045
86316
|
return this.jitter_loss_rate;
|
|
86046
86317
|
};
|
|
86047
|
-
protoOf(RTCQualityJS).
|
|
86318
|
+
protoOf(RTCQualityJS).k47 = function () {
|
|
86048
86319
|
return this.jitter_burst_rate;
|
|
86049
86320
|
};
|
|
86050
|
-
protoOf(RTCQualityJS).
|
|
86321
|
+
protoOf(RTCQualityJS).l47 = function () {
|
|
86051
86322
|
return this.flaw_total;
|
|
86052
86323
|
};
|
|
86053
|
-
protoOf(RTCQualityJS).
|
|
86324
|
+
protoOf(RTCQualityJS).m47 = function () {
|
|
86054
86325
|
return this.packet_cnt;
|
|
86055
86326
|
};
|
|
86056
|
-
protoOf(RTCQualityJS).
|
|
86327
|
+
protoOf(RTCQualityJS).n47 = function () {
|
|
86057
86328
|
return this.packet_loss_perc;
|
|
86058
86329
|
};
|
|
86059
86330
|
protoOf(RTCQualityJS).r8 = function () {
|
|
@@ -86062,28 +86333,28 @@ function requireClientsdkClientcore_js () {
|
|
|
86062
86333
|
protoOf(RTCQualityJS).s8 = function () {
|
|
86063
86334
|
return this.quality_percentage;
|
|
86064
86335
|
};
|
|
86065
|
-
protoOf(RTCQualityJS).
|
|
86336
|
+
protoOf(RTCQualityJS).o47 = function () {
|
|
86066
86337
|
return this.jitter_min_var;
|
|
86067
86338
|
};
|
|
86068
|
-
protoOf(RTCQualityJS).
|
|
86339
|
+
protoOf(RTCQualityJS).p47 = function () {
|
|
86069
86340
|
return this.jitter_max_var;
|
|
86070
86341
|
};
|
|
86071
|
-
protoOf(RTCQualityJS).
|
|
86342
|
+
protoOf(RTCQualityJS).q47 = function () {
|
|
86072
86343
|
return this.jitter_loss_rate;
|
|
86073
86344
|
};
|
|
86074
|
-
protoOf(RTCQualityJS).
|
|
86345
|
+
protoOf(RTCQualityJS).r47 = function () {
|
|
86075
86346
|
return this.jitter_burst_rate;
|
|
86076
86347
|
};
|
|
86077
|
-
protoOf(RTCQualityJS).
|
|
86348
|
+
protoOf(RTCQualityJS).s47 = function () {
|
|
86078
86349
|
return this.flaw_total;
|
|
86079
86350
|
};
|
|
86080
|
-
protoOf(RTCQualityJS).
|
|
86351
|
+
protoOf(RTCQualityJS).t47 = function () {
|
|
86081
86352
|
return this.packet_cnt;
|
|
86082
86353
|
};
|
|
86083
|
-
protoOf(RTCQualityJS).
|
|
86354
|
+
protoOf(RTCQualityJS).u47 = function () {
|
|
86084
86355
|
return this.packet_loss_perc;
|
|
86085
86356
|
};
|
|
86086
|
-
protoOf(RTCQualityJS).
|
|
86357
|
+
protoOf(RTCQualityJS).v47 = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc) {
|
|
86087
86358
|
return new RTCQualityJS(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
|
|
86088
86359
|
};
|
|
86089
86360
|
protoOf(RTCQualityJS).copy = function (mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc, $super) {
|
|
@@ -86096,7 +86367,7 @@ function requireClientsdkClientcore_js () {
|
|
|
86096
86367
|
flaw_total = flaw_total === VOID ? this.flaw_total : flaw_total;
|
|
86097
86368
|
packet_cnt = packet_cnt === VOID ? this.packet_cnt : packet_cnt;
|
|
86098
86369
|
packet_loss_perc = packet_loss_perc === VOID ? this.packet_loss_perc : packet_loss_perc;
|
|
86099
|
-
return this.
|
|
86370
|
+
return this.v47(mos_score, quality_percentage, jitter_min_var, jitter_max_var, jitter_loss_rate, jitter_burst_rate, flaw_total, packet_cnt, packet_loss_perc);
|
|
86100
86371
|
};
|
|
86101
86372
|
protoOf(RTCQualityJS).toString = function () {
|
|
86102
86373
|
return 'RTCQualityJS(mos_score=' + this.mos_score + ', quality_percentage=' + this.quality_percentage + ', jitter_min_var=' + this.jitter_min_var + ', jitter_max_var=' + this.jitter_max_var + ', jitter_loss_rate=' + this.jitter_loss_rate + ', jitter_burst_rate=' + this.jitter_burst_rate + ', flaw_total=' + this.flaw_total + ', packet_cnt=' + this.packet_cnt + ', packet_loss_perc=' + this.packet_loss_perc + ')';
|
|
@@ -86159,34 +86430,34 @@ function requireClientsdkClientcore_js () {
|
|
|
86159
86430
|
this.audioRtt = audioRtt;
|
|
86160
86431
|
this.audioSentJitter = audioSentJitter;
|
|
86161
86432
|
}
|
|
86162
|
-
protoOf(RTCStatsJS).
|
|
86433
|
+
protoOf(RTCStatsJS).w47 = function () {
|
|
86163
86434
|
return this.audioRecvPackets;
|
|
86164
86435
|
};
|
|
86165
|
-
protoOf(RTCStatsJS).
|
|
86436
|
+
protoOf(RTCStatsJS).x47 = function () {
|
|
86166
86437
|
return this.audioRecvPacketsLost;
|
|
86167
86438
|
};
|
|
86168
|
-
protoOf(RTCStatsJS).
|
|
86439
|
+
protoOf(RTCStatsJS).y47 = function () {
|
|
86169
86440
|
return this.audioRecvBytes;
|
|
86170
86441
|
};
|
|
86171
|
-
protoOf(RTCStatsJS).
|
|
86442
|
+
protoOf(RTCStatsJS).z47 = function () {
|
|
86172
86443
|
return this.audioRecvJitter;
|
|
86173
86444
|
};
|
|
86174
|
-
protoOf(RTCStatsJS).
|
|
86445
|
+
protoOf(RTCStatsJS).a48 = function () {
|
|
86175
86446
|
return this.audioSentPackets;
|
|
86176
86447
|
};
|
|
86177
|
-
protoOf(RTCStatsJS).
|
|
86448
|
+
protoOf(RTCStatsJS).b48 = function () {
|
|
86178
86449
|
return this.audioSentBytes;
|
|
86179
86450
|
};
|
|
86180
|
-
protoOf(RTCStatsJS).
|
|
86451
|
+
protoOf(RTCStatsJS).c48 = function () {
|
|
86181
86452
|
return this.audioSentPacketsLost;
|
|
86182
86453
|
};
|
|
86183
|
-
protoOf(RTCStatsJS).
|
|
86454
|
+
protoOf(RTCStatsJS).d48 = function () {
|
|
86184
86455
|
return this.audioRtt;
|
|
86185
86456
|
};
|
|
86186
|
-
protoOf(RTCStatsJS).
|
|
86457
|
+
protoOf(RTCStatsJS).e48 = function () {
|
|
86187
86458
|
return this.audioSentJitter;
|
|
86188
86459
|
};
|
|
86189
|
-
protoOf(RTCStatsJS).
|
|
86460
|
+
protoOf(RTCStatsJS).f48 = function () {
|
|
86190
86461
|
return new RTCStats(numberToLong(this.audioRecvPackets), numberToInt(this.audioRecvPacketsLost), numberToLong(this.audioRecvBytes), numberToDouble(this.audioRecvJitter), numberToLong(this.audioSentPackets), numberToLong(this.audioSentBytes), numberToInt(this.audioSentPacketsLost), numberToDouble(this.audioRtt), numberToDouble(this.audioSentJitter));
|
|
86191
86462
|
};
|
|
86192
86463
|
protoOf(RTCStatsJS).r8 = function () {
|
|
@@ -86195,28 +86466,28 @@ function requireClientsdkClientcore_js () {
|
|
|
86195
86466
|
protoOf(RTCStatsJS).s8 = function () {
|
|
86196
86467
|
return this.audioRecvPacketsLost;
|
|
86197
86468
|
};
|
|
86198
|
-
protoOf(RTCStatsJS).
|
|
86469
|
+
protoOf(RTCStatsJS).o47 = function () {
|
|
86199
86470
|
return this.audioRecvBytes;
|
|
86200
86471
|
};
|
|
86201
|
-
protoOf(RTCStatsJS).
|
|
86472
|
+
protoOf(RTCStatsJS).p47 = function () {
|
|
86202
86473
|
return this.audioRecvJitter;
|
|
86203
86474
|
};
|
|
86204
|
-
protoOf(RTCStatsJS).
|
|
86475
|
+
protoOf(RTCStatsJS).q47 = function () {
|
|
86205
86476
|
return this.audioSentPackets;
|
|
86206
86477
|
};
|
|
86207
|
-
protoOf(RTCStatsJS).
|
|
86478
|
+
protoOf(RTCStatsJS).r47 = function () {
|
|
86208
86479
|
return this.audioSentBytes;
|
|
86209
86480
|
};
|
|
86210
|
-
protoOf(RTCStatsJS).
|
|
86481
|
+
protoOf(RTCStatsJS).s47 = function () {
|
|
86211
86482
|
return this.audioSentPacketsLost;
|
|
86212
86483
|
};
|
|
86213
|
-
protoOf(RTCStatsJS).
|
|
86484
|
+
protoOf(RTCStatsJS).t47 = function () {
|
|
86214
86485
|
return this.audioRtt;
|
|
86215
86486
|
};
|
|
86216
|
-
protoOf(RTCStatsJS).
|
|
86487
|
+
protoOf(RTCStatsJS).u47 = function () {
|
|
86217
86488
|
return this.audioSentJitter;
|
|
86218
86489
|
};
|
|
86219
|
-
protoOf(RTCStatsJS).
|
|
86490
|
+
protoOf(RTCStatsJS).g48 = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter) {
|
|
86220
86491
|
return new RTCStatsJS(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
|
|
86221
86492
|
};
|
|
86222
86493
|
protoOf(RTCStatsJS).copy = function (audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter, $super) {
|
|
@@ -86229,7 +86500,7 @@ function requireClientsdkClientcore_js () {
|
|
|
86229
86500
|
audioSentPacketsLost = audioSentPacketsLost === VOID ? this.audioSentPacketsLost : audioSentPacketsLost;
|
|
86230
86501
|
audioRtt = audioRtt === VOID ? this.audioRtt : audioRtt;
|
|
86231
86502
|
audioSentJitter = audioSentJitter === VOID ? this.audioSentJitter : audioSentJitter;
|
|
86232
|
-
return this.
|
|
86503
|
+
return this.g48(audioRecvPackets, audioRecvPacketsLost, audioRecvBytes, audioRecvJitter, audioSentPackets, audioSentBytes, audioSentPacketsLost, audioRtt, audioSentJitter);
|
|
86233
86504
|
};
|
|
86234
86505
|
protoOf(RTCStatsJS).toString = function () {
|
|
86235
86506
|
return 'RTCStatsJS(audioRecvPackets=' + toString(this.audioRecvPackets) + ', audioRecvPacketsLost=' + toString(this.audioRecvPacketsLost) + ', audioRecvBytes=' + toString(this.audioRecvBytes) + ', audioRecvJitter=' + toString(this.audioRecvJitter) + ', audioSentPackets=' + toString(this.audioSentPackets) + ', audioSentBytes=' + toString(this.audioSentBytes) + ', audioSentPacketsLost=' + toString(this.audioSentPacketsLost) + ', audioRtt=' + toString(this.audioRtt) + ', audioSentJitter=' + toString(this.audioSentJitter) + ')';
|
|
@@ -86348,7 +86619,7 @@ function requireClientsdkClientcore_js () {
|
|
|
86348
86619
|
};
|
|
86349
86620
|
}
|
|
86350
86621
|
function HttpClientJSAdapter$1($js) {
|
|
86351
|
-
this.
|
|
86622
|
+
this.h48_1 = $js;
|
|
86352
86623
|
}
|
|
86353
86624
|
protoOf(HttpClientJSAdapter$1).s3q = function (verb, url, headers, body, callback) {
|
|
86354
86625
|
var tmp = verb.toString();
|
|
@@ -86356,7 +86627,7 @@ function requireClientsdkClientcore_js () {
|
|
|
86356
86627
|
// Inline function 'kotlin.contracts.contract' call
|
|
86357
86628
|
// Inline function 'vonage.<no name provided>.request.<anonymous>' call
|
|
86358
86629
|
var tmp_0 = fromMap(JSON, headers);
|
|
86359
|
-
this.
|
|
86630
|
+
this.h48_1.request(tmp, url, tmp_0, body, HttpClientJSAdapter$o$request$lambda(callback));
|
|
86360
86631
|
};
|
|
86361
86632
|
function SocketClientJSAdapter$o$emit$lambda($callback) {
|
|
86362
86633
|
return function (err, response) {
|
|
@@ -86374,11 +86645,11 @@ function requireClientsdkClientcore_js () {
|
|
|
86374
86645
|
};
|
|
86375
86646
|
}
|
|
86376
86647
|
function SocketClientJSAdapter$adapter$1($js) {
|
|
86377
|
-
this.
|
|
86378
|
-
this.
|
|
86648
|
+
this.j48_1 = $js;
|
|
86649
|
+
this.i48_1 = null;
|
|
86379
86650
|
}
|
|
86380
86651
|
protoOf(SocketClientJSAdapter$adapter$1).w3q = function (_set____db54di) {
|
|
86381
|
-
this.
|
|
86652
|
+
this.i48_1 = _set____db54di;
|
|
86382
86653
|
};
|
|
86383
86654
|
protoOf(SocketClientJSAdapter$adapter$1).x3q = function (type, msg, callback) {
|
|
86384
86655
|
var tmp;
|
|
@@ -86391,28 +86662,28 @@ function requireClientsdkClientcore_js () {
|
|
|
86391
86662
|
tmp = fromMap(JSON, msg);
|
|
86392
86663
|
}
|
|
86393
86664
|
var tmp_0 = tmp;
|
|
86394
|
-
this.
|
|
86665
|
+
this.j48_1.emit(type, tmp_0, SocketClientJSAdapter$o$emit$lambda(callback));
|
|
86395
86666
|
};
|
|
86396
86667
|
protoOf(SocketClientJSAdapter$adapter$1).y3q = function (host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query) {
|
|
86397
|
-
this.
|
|
86668
|
+
this.j48_1.connect(host, path, reconnectionAttempts, reconnectionDelay, randomizationFactor, token, sessionId, query);
|
|
86398
86669
|
};
|
|
86399
86670
|
protoOf(SocketClientJSAdapter$adapter$1).z3q = function () {
|
|
86400
|
-
this.
|
|
86671
|
+
this.j48_1.disconnect();
|
|
86401
86672
|
};
|
|
86402
86673
|
protoOf(SocketClientJSAdapter$adapter$1).a3r = function (sessionId, token) {
|
|
86403
|
-
this.
|
|
86674
|
+
this.j48_1.setConnectParamsSocketConfig(sessionId, token);
|
|
86404
86675
|
};
|
|
86405
86676
|
protoOf(SocketClientJSAdapter$adapter$1).b3r = function (sessionId) {
|
|
86406
|
-
this.
|
|
86677
|
+
this.j48_1.setSocketSessionId(sessionId);
|
|
86407
86678
|
};
|
|
86408
86679
|
protoOf(SocketClientJSAdapter$adapter$1).c3r = function (milliseconds, callback) {
|
|
86409
|
-
this.
|
|
86680
|
+
this.j48_1.startVerifyResponseTimer(milliseconds, callback);
|
|
86410
86681
|
};
|
|
86411
86682
|
function SocketClientJSAdapter$1($adapter) {
|
|
86412
|
-
this.
|
|
86683
|
+
this.k48_1 = $adapter;
|
|
86413
86684
|
}
|
|
86414
86685
|
protoOf(SocketClientJSAdapter$1).didReceiveNewSocketEvent = function (body) {
|
|
86415
|
-
var tmp0_safe_receiver = this.
|
|
86686
|
+
var tmp0_safe_receiver = this.k48_1.i48_1;
|
|
86416
86687
|
if (tmp0_safe_receiver == null)
|
|
86417
86688
|
;
|
|
86418
86689
|
else {
|
|
@@ -86444,31 +86715,31 @@ function requireClientsdkClientcore_js () {
|
|
|
86444
86715
|
var it = tmp1_safe_receiver;
|
|
86445
86716
|
switch (reason) {
|
|
86446
86717
|
case 'NXMCORE_REASON_SERVER_DISCONNECTED':
|
|
86447
|
-
var tmp1_safe_receiver_0 = this.
|
|
86718
|
+
var tmp1_safe_receiver_0 = this.k48_1.i48_1;
|
|
86448
86719
|
if (tmp1_safe_receiver_0 == null) ; else {
|
|
86449
86720
|
tmp1_safe_receiver_0.w3r(it, SocketConnectionFailedReason_ServerDisconnected_getInstance(), timestamp, retryNumber);
|
|
86450
86721
|
}
|
|
86451
86722
|
break;
|
|
86452
86723
|
case 'NXMCORE_REASON_CLIENT_DISCONNECTED':
|
|
86453
|
-
var tmp2_safe_receiver = this.
|
|
86724
|
+
var tmp2_safe_receiver = this.k48_1.i48_1;
|
|
86454
86725
|
if (tmp2_safe_receiver == null) ; else {
|
|
86455
86726
|
tmp2_safe_receiver.w3r(it, SocketConnectionFailedReason_ClientDisconnected_getInstance(), timestamp, retryNumber);
|
|
86456
86727
|
}
|
|
86457
86728
|
break;
|
|
86458
86729
|
case 'NXMCORE_CLIENT_NETWORK_ERROR':
|
|
86459
|
-
var tmp3_safe_receiver = this.
|
|
86730
|
+
var tmp3_safe_receiver = this.k48_1.i48_1;
|
|
86460
86731
|
if (tmp3_safe_receiver == null) ; else {
|
|
86461
86732
|
tmp3_safe_receiver.w3r(it, SocketConnectionFailedReason_ClientNetworkError_getInstance(), timestamp, retryNumber);
|
|
86462
86733
|
}
|
|
86463
86734
|
break;
|
|
86464
86735
|
case 'NXMCORE_REASON_PING_TIMEOUT':
|
|
86465
|
-
var tmp4_safe_receiver = this.
|
|
86736
|
+
var tmp4_safe_receiver = this.k48_1.i48_1;
|
|
86466
86737
|
if (tmp4_safe_receiver == null) ; else {
|
|
86467
86738
|
tmp4_safe_receiver.w3r(it, SocketConnectionFailedReason_PingTimeout_getInstance(), timestamp, retryNumber);
|
|
86468
86739
|
}
|
|
86469
86740
|
break;
|
|
86470
86741
|
default:
|
|
86471
|
-
var tmp5_safe_receiver = this.
|
|
86742
|
+
var tmp5_safe_receiver = this.k48_1.i48_1;
|
|
86472
86743
|
if (tmp5_safe_receiver == null) ; else {
|
|
86473
86744
|
tmp5_safe_receiver.w3r(it, null, timestamp, retryNumber);
|
|
86474
86745
|
}
|
|
@@ -86500,6 +86771,18 @@ function requireClientsdkClientcore_js () {
|
|
|
86500
86771
|
return Unit_instance;
|
|
86501
86772
|
};
|
|
86502
86773
|
}
|
|
86774
|
+
function MediaClientJSAdapter$o$enableNoiseSuppression$lambda($closure) {
|
|
86775
|
+
return function (it) {
|
|
86776
|
+
$closure(it == null ? null : it.r44());
|
|
86777
|
+
return Unit_instance;
|
|
86778
|
+
};
|
|
86779
|
+
}
|
|
86780
|
+
function MediaClientJSAdapter$o$disableNoiseSuppression$lambda($closure) {
|
|
86781
|
+
return function (it) {
|
|
86782
|
+
$closure(it == null ? null : it.r44());
|
|
86783
|
+
return Unit_instance;
|
|
86784
|
+
};
|
|
86785
|
+
}
|
|
86503
86786
|
function MediaClientJSAdapter$o$enableEarmuff$lambda($closure) {
|
|
86504
86787
|
return function (it) {
|
|
86505
86788
|
$closure(it == null ? null : it.r44());
|
|
@@ -86519,65 +86802,67 @@ function requireClientsdkClientcore_js () {
|
|
|
86519
86802
|
};
|
|
86520
86803
|
}
|
|
86521
86804
|
function MediaClientJSAdapter$adapter$1($js) {
|
|
86522
|
-
this.
|
|
86523
|
-
this.
|
|
86805
|
+
this.m48_1 = $js;
|
|
86806
|
+
this.l48_1 = null;
|
|
86524
86807
|
}
|
|
86525
86808
|
protoOf(MediaClientJSAdapter$adapter$1).d1j = function (_set____db54di) {
|
|
86526
|
-
this.
|
|
86809
|
+
this.l48_1 = _set____db54di;
|
|
86527
86810
|
};
|
|
86528
86811
|
protoOf(MediaClientJSAdapter$adapter$1).c1j = function () {
|
|
86529
|
-
return this.
|
|
86812
|
+
return this.l48_1;
|
|
86530
86813
|
};
|
|
86531
86814
|
protoOf(MediaClientJSAdapter$adapter$1).b1k = function (closure) {
|
|
86532
|
-
this.
|
|
86815
|
+
this.m48_1.enableMediaOutbound(closure);
|
|
86533
86816
|
};
|
|
86534
|
-
protoOf(MediaClientJSAdapter$adapter$1).
|
|
86535
|
-
this.
|
|
86817
|
+
protoOf(MediaClientJSAdapter$adapter$1).n48 = function (rtcId, offerSDP, closure) {
|
|
86818
|
+
this.m48_1.enableMediaInbound(rtcId, offerSDP, closure);
|
|
86536
86819
|
};
|
|
86537
86820
|
protoOf(MediaClientJSAdapter$adapter$1).f3r = function (rtcId, offerSDP, closure) {
|
|
86538
|
-
return this.
|
|
86821
|
+
return this.n48(rtcId, offerSDP, closure);
|
|
86539
86822
|
};
|
|
86540
86823
|
protoOf(MediaClientJSAdapter$adapter$1).p1j = function (id, sdp, closure) {
|
|
86541
|
-
this.
|
|
86824
|
+
this.m48_1.processAnswer(id, sdp, MediaClientJSAdapter$o$processAnswer$lambda(closure));
|
|
86542
86825
|
};
|
|
86543
86826
|
protoOf(MediaClientJSAdapter$adapter$1).a1k = function (id, closure) {
|
|
86544
|
-
this.
|
|
86827
|
+
this.m48_1.disableMedia(id, MediaClientJSAdapter$o$disableMedia$lambda(closure));
|
|
86545
86828
|
};
|
|
86546
86829
|
protoOf(MediaClientJSAdapter$adapter$1).z1j = function (id, closure) {
|
|
86547
|
-
this.
|
|
86830
|
+
this.m48_1.mute(id, MediaClientJSAdapter$o$mute$lambda(closure));
|
|
86548
86831
|
};
|
|
86549
86832
|
protoOf(MediaClientJSAdapter$adapter$1).x1j = function (id, closure) {
|
|
86550
|
-
this.
|
|
86833
|
+
this.m48_1.unmute(id, MediaClientJSAdapter$o$unmute$lambda(closure));
|
|
86551
86834
|
};
|
|
86552
86835
|
protoOf(MediaClientJSAdapter$adapter$1).g3r = function (id, closure) {
|
|
86836
|
+
this.m48_1.enableNoiseSuppression(id, MediaClientJSAdapter$o$enableNoiseSuppression$lambda(closure));
|
|
86553
86837
|
};
|
|
86554
86838
|
protoOf(MediaClientJSAdapter$adapter$1).h3r = function (id, closure) {
|
|
86839
|
+
this.m48_1.disableNoiseSuppression(id, MediaClientJSAdapter$o$disableNoiseSuppression$lambda(closure));
|
|
86555
86840
|
};
|
|
86556
86841
|
protoOf(MediaClientJSAdapter$adapter$1).v1j = function (id, closure) {
|
|
86557
|
-
this.
|
|
86842
|
+
this.m48_1.enableEarmuff(id, MediaClientJSAdapter$o$enableEarmuff$lambda(closure));
|
|
86558
86843
|
};
|
|
86559
86844
|
protoOf(MediaClientJSAdapter$adapter$1).t1j = function (id, closure) {
|
|
86560
|
-
this.
|
|
86845
|
+
this.m48_1.disableEarmuff(id, MediaClientJSAdapter$o$disableEarmuff$lambda(closure));
|
|
86561
86846
|
};
|
|
86562
86847
|
protoOf(MediaClientJSAdapter$adapter$1).q1j = function (id, interval, closure) {
|
|
86563
|
-
this.
|
|
86848
|
+
this.m48_1.enableRtcStatsCollection(id, interval, MediaClientJSAdapter$o$enableRtcStatsCollection$lambda(closure));
|
|
86564
86849
|
};
|
|
86565
86850
|
protoOf(MediaClientJSAdapter$adapter$1).i3r = function (id) {
|
|
86566
|
-
return coreConnectionState(this.
|
|
86851
|
+
return coreConnectionState(this.m48_1.getMediaConnectionState(id));
|
|
86567
86852
|
};
|
|
86568
86853
|
function MediaClientJSAdapter$1($adapter) {
|
|
86569
|
-
this.
|
|
86854
|
+
this.o48_1 = $adapter;
|
|
86570
86855
|
}
|
|
86571
86856
|
protoOf(MediaClientJSAdapter$1).onRtcStats = function (id, rtcStats) {
|
|
86572
|
-
var tmp0_safe_receiver = this.l48_1
|
|
86857
|
+
var tmp0_safe_receiver = this.o48_1.l48_1;
|
|
86573
86858
|
if (tmp0_safe_receiver == null)
|
|
86574
86859
|
;
|
|
86575
86860
|
else {
|
|
86576
|
-
tmp0_safe_receiver.g1j(id, rtcStats.
|
|
86861
|
+
tmp0_safe_receiver.g1j(id, rtcStats.f48());
|
|
86577
86862
|
}
|
|
86578
86863
|
};
|
|
86579
86864
|
protoOf(MediaClientJSAdapter$1).onConnectionChange = function (id, state) {
|
|
86580
|
-
var tmp0_safe_receiver = this.l48_1
|
|
86865
|
+
var tmp0_safe_receiver = this.o48_1.l48_1;
|
|
86581
86866
|
if (tmp0_safe_receiver == null)
|
|
86582
86867
|
;
|
|
86583
86868
|
else {
|
|
@@ -86585,7 +86870,7 @@ function requireClientsdkClientcore_js () {
|
|
|
86585
86870
|
}
|
|
86586
86871
|
};
|
|
86587
86872
|
protoOf(MediaClientJSAdapter$1).onMediaError = function (id, error) {
|
|
86588
|
-
var tmp0_safe_receiver = this.l48_1
|
|
86873
|
+
var tmp0_safe_receiver = this.o48_1.l48_1;
|
|
86589
86874
|
if (tmp0_safe_receiver == null)
|
|
86590
86875
|
;
|
|
86591
86876
|
else {
|
|
@@ -86983,10 +87268,10 @@ function requireClientsdkClientcore_js () {
|
|
|
86983
87268
|
this.callId = callId;
|
|
86984
87269
|
this.reconnectToken = reconnectToken;
|
|
86985
87270
|
}
|
|
86986
|
-
protoOf(EmergencyCallDataJS).
|
|
87271
|
+
protoOf(EmergencyCallDataJS).p48 = function () {
|
|
86987
87272
|
return this.callId;
|
|
86988
87273
|
};
|
|
86989
|
-
protoOf(EmergencyCallDataJS).
|
|
87274
|
+
protoOf(EmergencyCallDataJS).q48 = function () {
|
|
86990
87275
|
return this.reconnectToken;
|
|
86991
87276
|
};
|
|
86992
87277
|
protoOf(EmergencyCallDataJS).r8 = function () {
|
|
@@ -86995,13 +87280,13 @@ function requireClientsdkClientcore_js () {
|
|
|
86995
87280
|
protoOf(EmergencyCallDataJS).s8 = function () {
|
|
86996
87281
|
return this.reconnectToken;
|
|
86997
87282
|
};
|
|
86998
|
-
protoOf(EmergencyCallDataJS).
|
|
87283
|
+
protoOf(EmergencyCallDataJS).a46 = function (callId, reconnectToken) {
|
|
86999
87284
|
return new EmergencyCallDataJS(callId, reconnectToken);
|
|
87000
87285
|
};
|
|
87001
87286
|
protoOf(EmergencyCallDataJS).copy = function (callId, reconnectToken, $super) {
|
|
87002
87287
|
callId = callId === VOID ? this.callId : callId;
|
|
87003
87288
|
reconnectToken = reconnectToken === VOID ? this.reconnectToken : reconnectToken;
|
|
87004
|
-
return this.
|
|
87289
|
+
return this.a46(callId, reconnectToken);
|
|
87005
87290
|
};
|
|
87006
87291
|
protoOf(EmergencyCallDataJS).toString = function () {
|
|
87007
87292
|
return 'EmergencyCallDataJS(callId=' + this.callId + ', reconnectToken=' + this.reconnectToken + ')';
|
|
@@ -87154,12 +87439,12 @@ function requireClientsdkClientcore_js () {
|
|
|
87154
87439
|
protoOf(Some).r8 = function () {
|
|
87155
87440
|
return this.value;
|
|
87156
87441
|
};
|
|
87157
|
-
protoOf(Some).
|
|
87442
|
+
protoOf(Some).r48 = function (value) {
|
|
87158
87443
|
return new Some(value);
|
|
87159
87444
|
};
|
|
87160
87445
|
protoOf(Some).copy = function (value, $super) {
|
|
87161
87446
|
value = value === VOID ? this.value : value;
|
|
87162
|
-
return this.
|
|
87447
|
+
return this.r48(value);
|
|
87163
87448
|
};
|
|
87164
87449
|
protoOf(Some).toString = function () {
|
|
87165
87450
|
return 'Some(value=' + toString_0(this.value) + ')';
|
|
@@ -87372,6 +87657,12 @@ function requireClientsdkClientcore_js () {
|
|
|
87372
87657
|
protoOf(CombinedClientJS).unmute = unmute;
|
|
87373
87658
|
protoOf(CombinedClientJS).enableEarmuff = enableEarmuff;
|
|
87374
87659
|
protoOf(CombinedClientJS).disableEarmuff = disableEarmuff;
|
|
87660
|
+
protoOf(CombinedClientJS).enableNoiseSuppression = enableNoiseSuppression;
|
|
87661
|
+
protoOf(CombinedClientJS).disableNoiseSuppression = disableNoiseSuppression;
|
|
87662
|
+
protoOf(CombinedClientJS).enableAutoGainControl = enableAutoGainControl;
|
|
87663
|
+
protoOf(CombinedClientJS).disableAutoGainControl = disableAutoGainControl;
|
|
87664
|
+
protoOf(CombinedClientJS).enableEchoCancellation = enableEchoCancellation;
|
|
87665
|
+
protoOf(CombinedClientJS).disableEchoCancellation = disableEchoCancellation;
|
|
87375
87666
|
protoOf(CombinedClientJS).sendDTMF = sendDTMF;
|
|
87376
87667
|
protoOf(CombinedClientJS).emergencyCall = emergencyCall;
|
|
87377
87668
|
protoOf(CombinedClientJS).reconnectEmergencyCall = reconnectEmergencyCall;
|
|
@@ -87395,41 +87686,50 @@ function requireClientsdkClientcore_js () {
|
|
|
87395
87686
|
defineProp(protoOf(PresentingOrderJS), 'ordinal', protoOf(PresentingOrderJS).g2);
|
|
87396
87687
|
defineProp(protoOf(OrderByJS), 'name', protoOf(OrderByJS).f2);
|
|
87397
87688
|
defineProp(protoOf(OrderByJS), 'ordinal', protoOf(OrderByJS).g2);
|
|
87689
|
+
defineProp(protoOf(ProcessAnswerErrorJS), 'message', function () {
|
|
87690
|
+
return this.n8();
|
|
87691
|
+
});
|
|
87692
|
+
defineProp(protoOf(CreateAnswerErrorJS), 'message', function () {
|
|
87693
|
+
return this.n8();
|
|
87694
|
+
});
|
|
87695
|
+
defineProp(protoOf(CreateOfferErrorJS), 'message', function () {
|
|
87696
|
+
return this.n8();
|
|
87697
|
+
});
|
|
87398
87698
|
defineProp(protoOf(CoreClientConfigRegionJS), 'name', protoOf(CoreClientConfigRegionJS).f2);
|
|
87399
87699
|
defineProp(protoOf(CoreClientConfigRegionJS), 'ordinal', protoOf(CoreClientConfigRegionJS).g2);
|
|
87400
87700
|
defineProp(protoOf(CoreClientConfigJS), 'apiUrl', function () {
|
|
87401
|
-
return this.
|
|
87701
|
+
return this.n45();
|
|
87402
87702
|
}, function (value) {
|
|
87403
|
-
this.
|
|
87703
|
+
this.m45(value);
|
|
87404
87704
|
});
|
|
87405
87705
|
defineProp(protoOf(CoreClientConfigJS), 'websocketUrl', function () {
|
|
87406
|
-
return this.
|
|
87706
|
+
return this.p45();
|
|
87407
87707
|
}, function (value) {
|
|
87408
|
-
this.
|
|
87708
|
+
this.o45(value);
|
|
87409
87709
|
});
|
|
87410
87710
|
defineProp(protoOf(CoreClientConfigJS), 'websocketPath', function () {
|
|
87411
|
-
return this.
|
|
87711
|
+
return this.r45();
|
|
87412
87712
|
}, function (value) {
|
|
87413
|
-
this.
|
|
87713
|
+
this.q45(value);
|
|
87414
87714
|
});
|
|
87415
87715
|
defineProp(protoOf(CoreClientConfigJS), 'rtcStatsTelemetry', function () {
|
|
87416
|
-
return this.
|
|
87716
|
+
return this.t45();
|
|
87417
87717
|
}, function (value) {
|
|
87418
|
-
this.
|
|
87718
|
+
this.s45(value);
|
|
87419
87719
|
});
|
|
87420
87720
|
defineProp(protoOf(CoreClientConfigJS), 'autoReconnectMedia', function () {
|
|
87421
|
-
return this.
|
|
87721
|
+
return this.v45();
|
|
87422
87722
|
}, function (value) {
|
|
87423
|
-
this.
|
|
87723
|
+
this.u45(value);
|
|
87424
87724
|
});
|
|
87425
87725
|
defineProp(protoOf(CoreClientConfigJS), 'noiseSuppression', function () {
|
|
87426
|
-
return this.
|
|
87726
|
+
return this.w45();
|
|
87427
87727
|
});
|
|
87428
87728
|
defineProp(protoOf(CoreClientConfigJS), 'emergencyPrimaryRegion', function () {
|
|
87429
|
-
return this.
|
|
87729
|
+
return this.x45();
|
|
87430
87730
|
});
|
|
87431
87731
|
defineProp(protoOf(CoreClientConfigJS), 'emergencySecondaryRegion', function () {
|
|
87432
|
-
return this.
|
|
87732
|
+
return this.y45();
|
|
87433
87733
|
});
|
|
87434
87734
|
defineProp(protoOf(Topics), 'name', protoOf(Topics).f2);
|
|
87435
87735
|
defineProp(protoOf(Topics), 'ordinal', protoOf(Topics).g2);
|
|
@@ -87450,7 +87750,7 @@ function requireClientsdkClientcore_js () {
|
|
|
87450
87750
|
defineProp(protoOf(HttpClientErrorJS), 'cause', function () {
|
|
87451
87751
|
return this.o8();
|
|
87452
87752
|
});
|
|
87453
|
-
defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).
|
|
87753
|
+
defineProp(protoOf(HttpClientErrorJS), 'coreError', protoOf(HttpClientErrorJS).x46);
|
|
87454
87754
|
protoOf(HttpClientJSAdapter$1).t3q = clear;
|
|
87455
87755
|
//endregion
|
|
87456
87756
|
//region block: init
|
|
@@ -92342,17 +92642,167 @@ class MediaClient {
|
|
|
92342
92642
|
this.closePeerConnection(pc);
|
|
92343
92643
|
closure(null);
|
|
92344
92644
|
}
|
|
92645
|
+
enableNoiseSuppression(id, closure) {
|
|
92646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92647
|
+
try {
|
|
92648
|
+
yield this.setAudioConstraint(id, 'noiseSuppression', true);
|
|
92649
|
+
closure(null);
|
|
92650
|
+
}
|
|
92651
|
+
catch (_a) {
|
|
92652
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92653
|
+
}
|
|
92654
|
+
});
|
|
92655
|
+
}
|
|
92345
92656
|
disableNoiseSuppression(id, closure) {
|
|
92346
|
-
|
|
92347
|
-
|
|
92348
|
-
|
|
92657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92658
|
+
try {
|
|
92659
|
+
yield this.setAudioConstraint(id, 'noiseSuppression', false);
|
|
92660
|
+
closure(null);
|
|
92661
|
+
}
|
|
92662
|
+
catch (_a) {
|
|
92663
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92664
|
+
}
|
|
92665
|
+
});
|
|
92349
92666
|
}
|
|
92350
|
-
|
|
92351
|
-
|
|
92352
|
-
|
|
92353
|
-
|
|
92667
|
+
enableAutoGainControl(id, closure) {
|
|
92668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92669
|
+
try {
|
|
92670
|
+
yield this.setAudioConstraint(id, 'autoGainControl', true);
|
|
92671
|
+
closure(null);
|
|
92672
|
+
}
|
|
92673
|
+
catch (_a) {
|
|
92674
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92675
|
+
}
|
|
92676
|
+
});
|
|
92677
|
+
}
|
|
92678
|
+
disableAutoGainControl(id, closure) {
|
|
92679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92680
|
+
try {
|
|
92681
|
+
yield this.setAudioConstraint(id, 'autoGainControl', false);
|
|
92682
|
+
closure(null);
|
|
92683
|
+
}
|
|
92684
|
+
catch (_a) {
|
|
92685
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92686
|
+
}
|
|
92687
|
+
});
|
|
92688
|
+
}
|
|
92689
|
+
enableEchoCancellation(id, closure) {
|
|
92690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92691
|
+
try {
|
|
92692
|
+
yield this.setAudioConstraint(id, 'echoCancellation', true);
|
|
92693
|
+
closure(null);
|
|
92694
|
+
}
|
|
92695
|
+
catch (_a) {
|
|
92696
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92697
|
+
}
|
|
92698
|
+
});
|
|
92699
|
+
}
|
|
92700
|
+
disableEchoCancellation(id, closure) {
|
|
92701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92702
|
+
try {
|
|
92703
|
+
yield this.setAudioConstraint(id, 'echoCancellation', false);
|
|
92704
|
+
closure(null);
|
|
92705
|
+
}
|
|
92706
|
+
catch (_a) {
|
|
92707
|
+
closure(new clientsdkClientcore_jsExports.vonage.TrackNotFoundJS(id));
|
|
92708
|
+
}
|
|
92709
|
+
});
|
|
92354
92710
|
}
|
|
92355
92711
|
// Private Methods
|
|
92712
|
+
/**
|
|
92713
|
+
* Sets an audio processing constraint on the active call's audio track.
|
|
92714
|
+
*
|
|
92715
|
+
* Strategy:
|
|
92716
|
+
* 1. Try {@link MediaStreamTrack.applyConstraints} with all three audio
|
|
92717
|
+
* processing flags on the existing track (in-place, no replacement).
|
|
92718
|
+
* 2. If the constraint didn't take effect, stop the old track to release
|
|
92719
|
+
* the browser's audio capture pipeline, then acquire a fresh track via
|
|
92720
|
+
* {@link MediaDevices.getUserMedia} using {@code exact} for every flag
|
|
92721
|
+
* and swap it onto the {@link RTCRtpSender} with
|
|
92722
|
+
* {@link RTCRtpSender.replaceTrack}.
|
|
92723
|
+
*
|
|
92724
|
+
* Stopping the old track before getUserMedia is critical: Chrome reuses the
|
|
92725
|
+
* active audio pipeline and silently ignores constraint changes otherwise.
|
|
92726
|
+
* Using {@code exact} for all three flags prevents the browser from treating
|
|
92727
|
+
* non-target constraints as {@code ideal} (preferences) and dropping them.
|
|
92728
|
+
*/
|
|
92729
|
+
setAudioConstraint(id, constraintName, value) {
|
|
92730
|
+
var _a, _b, _c;
|
|
92731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92732
|
+
const pc = this.pcs.get(id);
|
|
92733
|
+
if (!pc) {
|
|
92734
|
+
throw new Error('Peer connection not found');
|
|
92735
|
+
}
|
|
92736
|
+
const sender = pc.getSenders().find((s) => { var _a; return ((_a = s.track) === null || _a === void 0 ? void 0 : _a.kind) === 'audio'; });
|
|
92737
|
+
if (!(sender === null || sender === void 0 ? void 0 : sender.track)) {
|
|
92738
|
+
throw new Error('Audio sender track not found');
|
|
92739
|
+
}
|
|
92740
|
+
const oldTrack = sender.track;
|
|
92741
|
+
const currentSettings = oldTrack.getSettings();
|
|
92742
|
+
const wasEnabled = oldTrack.enabled;
|
|
92743
|
+
// Build the full desired state: preserve non-target constraints, set target.
|
|
92744
|
+
const desired = {
|
|
92745
|
+
autoGainControl: (_a = currentSettings.autoGainControl) !== null && _a !== void 0 ? _a : true,
|
|
92746
|
+
echoCancellation: (_b = currentSettings.echoCancellation) !== null && _b !== void 0 ? _b : true,
|
|
92747
|
+
noiseSuppression: (_c = currentSettings.noiseSuppression) !== null && _c !== void 0 ? _c : true
|
|
92748
|
+
};
|
|
92749
|
+
desired[constraintName] = value;
|
|
92750
|
+
// Tier 1 – applyConstraints (in-place, no track replacement)
|
|
92751
|
+
try {
|
|
92752
|
+
yield oldTrack.applyConstraints({
|
|
92753
|
+
autoGainControl: desired.autoGainControl,
|
|
92754
|
+
echoCancellation: desired.echoCancellation,
|
|
92755
|
+
noiseSuppression: desired.noiseSuppression
|
|
92756
|
+
});
|
|
92757
|
+
const afterSettings = oldTrack.getSettings();
|
|
92758
|
+
if (afterSettings[constraintName] === value) {
|
|
92759
|
+
return;
|
|
92760
|
+
}
|
|
92761
|
+
}
|
|
92762
|
+
catch (_d) {
|
|
92763
|
+
// applyConstraints not supported or overconstrained – fall through
|
|
92764
|
+
}
|
|
92765
|
+
// Tier 2 – Stop old track → getUserMedia (exact) → replaceTrack
|
|
92766
|
+
// Stopping first forces the browser to create a fresh audio pipeline.
|
|
92767
|
+
oldTrack.stop();
|
|
92768
|
+
const exactConstraints = {
|
|
92769
|
+
autoGainControl: { exact: desired.autoGainControl },
|
|
92770
|
+
echoCancellation: { exact: desired.echoCancellation },
|
|
92771
|
+
noiseSuppression: { exact: desired.noiseSuppression }
|
|
92772
|
+
};
|
|
92773
|
+
if (currentSettings.deviceId) {
|
|
92774
|
+
exactConstraints.deviceId = { exact: currentSettings.deviceId };
|
|
92775
|
+
}
|
|
92776
|
+
let newStream;
|
|
92777
|
+
try {
|
|
92778
|
+
newStream = yield navigator.mediaDevices.getUserMedia({
|
|
92779
|
+
audio: exactConstraints,
|
|
92780
|
+
video: false
|
|
92781
|
+
});
|
|
92782
|
+
}
|
|
92783
|
+
catch (_e) {
|
|
92784
|
+
// Fallback: if exact constraints are overconstrained, use ideal values
|
|
92785
|
+
// so the call never loses audio.
|
|
92786
|
+
const idealConstraints = {
|
|
92787
|
+
autoGainControl: desired.autoGainControl,
|
|
92788
|
+
echoCancellation: desired.echoCancellation,
|
|
92789
|
+
noiseSuppression: desired.noiseSuppression
|
|
92790
|
+
};
|
|
92791
|
+
if (currentSettings.deviceId) {
|
|
92792
|
+
idealConstraints.deviceId = { exact: currentSettings.deviceId };
|
|
92793
|
+
}
|
|
92794
|
+
newStream = yield navigator.mediaDevices.getUserMedia({
|
|
92795
|
+
audio: idealConstraints,
|
|
92796
|
+
video: false
|
|
92797
|
+
});
|
|
92798
|
+
}
|
|
92799
|
+
const newTrack = newStream.getAudioTracks()[0];
|
|
92800
|
+
if (!newTrack)
|
|
92801
|
+
throw new Error('Failed to get new audio track');
|
|
92802
|
+
newTrack.enabled = wasEnabled;
|
|
92803
|
+
yield sender.replaceTrack(newTrack);
|
|
92804
|
+
});
|
|
92805
|
+
}
|
|
92356
92806
|
closePeerConnection(pc) {
|
|
92357
92807
|
var _a;
|
|
92358
92808
|
this.removeAllPCListeners(pc);
|
|
@@ -97037,6 +97487,96 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
97037
97487
|
getAudioOutputElement() {
|
|
97038
97488
|
return super.getAudioOutputElement();
|
|
97039
97489
|
}
|
|
97490
|
+
/**
|
|
97491
|
+
* Enable noise suppression on a call's audio track.
|
|
97492
|
+
*
|
|
97493
|
+
* @experimental
|
|
97494
|
+
* @group Voice
|
|
97495
|
+
* @param id - The Call Id
|
|
97496
|
+
*/
|
|
97497
|
+
enableNoiseSuppression(id) {
|
|
97498
|
+
const _super = Object.create(null, {
|
|
97499
|
+
enableNoiseSuppression: { get: () => super.enableNoiseSuppression }
|
|
97500
|
+
});
|
|
97501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97502
|
+
return _super.enableNoiseSuppression.call(this, id);
|
|
97503
|
+
});
|
|
97504
|
+
}
|
|
97505
|
+
/**
|
|
97506
|
+
* Disable noise suppression on a call's audio track.
|
|
97507
|
+
*
|
|
97508
|
+
* @experimental
|
|
97509
|
+
* @group Voice
|
|
97510
|
+
* @param id - The Call Id
|
|
97511
|
+
*/
|
|
97512
|
+
disableNoiseSuppression(id) {
|
|
97513
|
+
const _super = Object.create(null, {
|
|
97514
|
+
disableNoiseSuppression: { get: () => super.disableNoiseSuppression }
|
|
97515
|
+
});
|
|
97516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97517
|
+
return _super.disableNoiseSuppression.call(this, id);
|
|
97518
|
+
});
|
|
97519
|
+
}
|
|
97520
|
+
/**
|
|
97521
|
+
* Enable auto gain control on a call's audio track.
|
|
97522
|
+
*
|
|
97523
|
+
* @experimental
|
|
97524
|
+
* @group Voice
|
|
97525
|
+
* @param id - The Call Id
|
|
97526
|
+
*/
|
|
97527
|
+
enableAutoGainControl(id) {
|
|
97528
|
+
const _super = Object.create(null, {
|
|
97529
|
+
enableAutoGainControl: { get: () => super.enableAutoGainControl }
|
|
97530
|
+
});
|
|
97531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97532
|
+
return _super.enableAutoGainControl.call(this, id);
|
|
97533
|
+
});
|
|
97534
|
+
}
|
|
97535
|
+
/**
|
|
97536
|
+
* Disable auto gain control on a call's audio track.
|
|
97537
|
+
*
|
|
97538
|
+
* @experimental
|
|
97539
|
+
* @group Voice
|
|
97540
|
+
* @param id - The Call Id
|
|
97541
|
+
*/
|
|
97542
|
+
disableAutoGainControl(id) {
|
|
97543
|
+
const _super = Object.create(null, {
|
|
97544
|
+
disableAutoGainControl: { get: () => super.disableAutoGainControl }
|
|
97545
|
+
});
|
|
97546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97547
|
+
return _super.disableAutoGainControl.call(this, id);
|
|
97548
|
+
});
|
|
97549
|
+
}
|
|
97550
|
+
/**
|
|
97551
|
+
* Enable echo cancellation on a call's audio track.
|
|
97552
|
+
*
|
|
97553
|
+
* @experimental
|
|
97554
|
+
* @group Voice
|
|
97555
|
+
* @param id - The Call Id
|
|
97556
|
+
*/
|
|
97557
|
+
enableEchoCancellation(id) {
|
|
97558
|
+
const _super = Object.create(null, {
|
|
97559
|
+
enableEchoCancellation: { get: () => super.enableEchoCancellation }
|
|
97560
|
+
});
|
|
97561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97562
|
+
return _super.enableEchoCancellation.call(this, id);
|
|
97563
|
+
});
|
|
97564
|
+
}
|
|
97565
|
+
/**
|
|
97566
|
+
* Disable echo cancellation on a call's audio track.
|
|
97567
|
+
*
|
|
97568
|
+
* @experimental
|
|
97569
|
+
* @group Voice
|
|
97570
|
+
* @param id - The Call Id
|
|
97571
|
+
*/
|
|
97572
|
+
disableEchoCancellation(id) {
|
|
97573
|
+
const _super = Object.create(null, {
|
|
97574
|
+
disableEchoCancellation: { get: () => super.disableEchoCancellation }
|
|
97575
|
+
});
|
|
97576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97577
|
+
return _super.disableEchoCancellation.call(this, id);
|
|
97578
|
+
});
|
|
97579
|
+
}
|
|
97040
97580
|
/**
|
|
97041
97581
|
* Get the Leg for a call
|
|
97042
97582
|
*
|