@vonage/client-sdk 2.7.3 → 2.7.5
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/dist/client/index.cjs +24 -24
- package/dist/client/index.mjs +24 -24
- package/dist/kotlin/JsUnions.d.ts +20 -20
- package/dist/vonageClientSDK.js +24 -24
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +24 -24
- package/package.json +1 -1
package/dist/client/index.cjs
CHANGED
|
@@ -543,12 +543,6 @@ function requireKotlinKotlinStdlib () {
|
|
|
543
543
|
};
|
|
544
544
|
}(Math.log, Math.LN2);
|
|
545
545
|
}
|
|
546
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
547
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
548
|
-
position = position || 0;
|
|
549
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
550
|
-
}});
|
|
551
|
-
}
|
|
552
546
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
553
547
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
554
548
|
var subjectString = this.toString();
|
|
@@ -560,6 +554,12 @@ function requireKotlinKotlinStdlib () {
|
|
|
560
554
|
return lastIndex !== -1 && lastIndex === position;
|
|
561
555
|
}});
|
|
562
556
|
}
|
|
557
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
558
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
559
|
+
position = position || 0;
|
|
560
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
561
|
+
}});
|
|
562
|
+
}
|
|
563
563
|
//endregion
|
|
564
564
|
(function (factory) {
|
|
565
565
|
if (typeof undefined === 'function' && undefined.amd)
|
|
@@ -25385,7 +25385,8 @@ function requireClientsdkClientcore () {
|
|
|
25385
25385
|
var createFailure = kotlin_kotlin.$_$.rb;
|
|
25386
25386
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.m2;
|
|
25387
25387
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.l2;
|
|
25388
|
-
var
|
|
25388
|
+
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
25389
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
25389
25390
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
25390
25391
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.a1;
|
|
25391
25392
|
var lazy = kotlin_kotlin.$_$.wb;
|
|
@@ -25403,14 +25404,12 @@ function requireClientsdkClientcore () {
|
|
|
25403
25404
|
var isCharSequence = kotlin_kotlin.$_$.e8;
|
|
25404
25405
|
var trim = kotlin_kotlin.$_$.qa;
|
|
25405
25406
|
var charSequenceLength = kotlin_kotlin.$_$.k7;
|
|
25406
|
-
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
25407
25407
|
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
25408
25408
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
25409
25409
|
var to = kotlin_kotlin.$_$.cc;
|
|
25410
25410
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
25411
25411
|
var put = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.q;
|
|
25412
25412
|
var putJsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.p;
|
|
25413
|
-
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
25414
25413
|
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
25415
25414
|
var removePrefix = kotlin_kotlin.$_$.s9;
|
|
25416
25415
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
@@ -26291,16 +26290,6 @@ function requireClientsdkClientcore () {
|
|
|
26291
26290
|
initMetadataForCompanion(Companion_150);
|
|
26292
26291
|
initMetadataForObject($serializer_173, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
26293
26292
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_173});
|
|
26294
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
26295
|
-
}
|
|
26296
|
-
function onRTCTransfer(conversationId, legId) {
|
|
26297
|
-
}
|
|
26298
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
26299
|
-
}
|
|
26300
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
26301
|
-
function onConversationEvent(event) {
|
|
26302
|
-
}
|
|
26303
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
26304
26293
|
function onAudioSay() {
|
|
26305
26294
|
}
|
|
26306
26295
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -26310,7 +26299,17 @@ function requireClientsdkClientcore () {
|
|
|
26310
26299
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
26311
26300
|
}
|
|
26312
26301
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
26313
|
-
|
|
26302
|
+
function onConversationEvent(event) {
|
|
26303
|
+
}
|
|
26304
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
26305
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
26306
|
+
}
|
|
26307
|
+
function onRTCTransfer(conversationId, legId) {
|
|
26308
|
+
}
|
|
26309
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
26310
|
+
}
|
|
26311
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
26312
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
26314
26313
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
26315
26314
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
26316
26315
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -26471,7 +26470,7 @@ function requireClientsdkClientcore () {
|
|
|
26471
26470
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
26472
26471
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
26473
26472
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
26474
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
26473
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
26475
26474
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
26476
26475
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
26477
26476
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -26700,7 +26699,7 @@ function requireClientsdkClientcore () {
|
|
|
26700
26699
|
initMetadataForClass(runAfterDelay$1);
|
|
26701
26700
|
//endregion
|
|
26702
26701
|
function BuildKonfig() {
|
|
26703
|
-
this.i1i_1 = '2.7.
|
|
26702
|
+
this.i1i_1 = '2.7.5';
|
|
26704
26703
|
}
|
|
26705
26704
|
var BuildKonfig_instance;
|
|
26706
26705
|
function BuildKonfig_getInstance() {
|
|
@@ -29218,12 +29217,13 @@ function requireClientsdkClientcore () {
|
|
|
29218
29217
|
};
|
|
29219
29218
|
protoOf(UpdateSessionRequest).z1s = function (encoder, store) {
|
|
29220
29219
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
29220
|
+
var value = new JsonObject(emptyMap());
|
|
29221
29221
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
29222
29222
|
var this_0 = encoder.mm();
|
|
29223
29223
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
29224
|
-
var this_1 = serializer(this_0, createKType(
|
|
29224
|
+
var this_1 = serializer(this_0, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
29225
29225
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
29226
|
-
return encoder.v13(tmp$ret$1,
|
|
29226
|
+
return encoder.v13(tmp$ret$1, value);
|
|
29227
29227
|
};
|
|
29228
29228
|
protoOf(UpdateSessionRequest).a1t = function (data, decoder) {
|
|
29229
29229
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
package/dist/client/index.mjs
CHANGED
|
@@ -519,12 +519,6 @@ function requireKotlinKotlinStdlib () {
|
|
|
519
519
|
};
|
|
520
520
|
}(Math.log, Math.LN2);
|
|
521
521
|
}
|
|
522
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
523
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
524
|
-
position = position || 0;
|
|
525
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
526
|
-
}});
|
|
527
|
-
}
|
|
528
522
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
529
523
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
530
524
|
var subjectString = this.toString();
|
|
@@ -536,6 +530,12 @@ function requireKotlinKotlinStdlib () {
|
|
|
536
530
|
return lastIndex !== -1 && lastIndex === position;
|
|
537
531
|
}});
|
|
538
532
|
}
|
|
533
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
534
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
535
|
+
position = position || 0;
|
|
536
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
537
|
+
}});
|
|
538
|
+
}
|
|
539
539
|
//endregion
|
|
540
540
|
(function (factory) {
|
|
541
541
|
if (typeof undefined === 'function' && undefined.amd)
|
|
@@ -25361,7 +25361,8 @@ function requireClientsdkClientcore () {
|
|
|
25361
25361
|
var createFailure = kotlin_kotlin.$_$.rb;
|
|
25362
25362
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.m2;
|
|
25363
25363
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.l2;
|
|
25364
|
-
var
|
|
25364
|
+
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
25365
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
25365
25366
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
25366
25367
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.a1;
|
|
25367
25368
|
var lazy = kotlin_kotlin.$_$.wb;
|
|
@@ -25379,14 +25380,12 @@ function requireClientsdkClientcore () {
|
|
|
25379
25380
|
var isCharSequence = kotlin_kotlin.$_$.e8;
|
|
25380
25381
|
var trim = kotlin_kotlin.$_$.qa;
|
|
25381
25382
|
var charSequenceLength = kotlin_kotlin.$_$.k7;
|
|
25382
|
-
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
25383
25383
|
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
25384
25384
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
25385
25385
|
var to = kotlin_kotlin.$_$.cc;
|
|
25386
25386
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
25387
25387
|
var put = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.q;
|
|
25388
25388
|
var putJsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.p;
|
|
25389
|
-
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
25390
25389
|
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
25391
25390
|
var removePrefix = kotlin_kotlin.$_$.s9;
|
|
25392
25391
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
@@ -26267,16 +26266,6 @@ function requireClientsdkClientcore () {
|
|
|
26267
26266
|
initMetadataForCompanion(Companion_150);
|
|
26268
26267
|
initMetadataForObject($serializer_173, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
26269
26268
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_173});
|
|
26270
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
26271
|
-
}
|
|
26272
|
-
function onRTCTransfer(conversationId, legId) {
|
|
26273
|
-
}
|
|
26274
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
26275
|
-
}
|
|
26276
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
26277
|
-
function onConversationEvent(event) {
|
|
26278
|
-
}
|
|
26279
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
26280
26269
|
function onAudioSay() {
|
|
26281
26270
|
}
|
|
26282
26271
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -26286,7 +26275,17 @@ function requireClientsdkClientcore () {
|
|
|
26286
26275
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
26287
26276
|
}
|
|
26288
26277
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
26289
|
-
|
|
26278
|
+
function onConversationEvent(event) {
|
|
26279
|
+
}
|
|
26280
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
26281
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
26282
|
+
}
|
|
26283
|
+
function onRTCTransfer(conversationId, legId) {
|
|
26284
|
+
}
|
|
26285
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
26286
|
+
}
|
|
26287
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
26288
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
26290
26289
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
26291
26290
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
26292
26291
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -26447,7 +26446,7 @@ function requireClientsdkClientcore () {
|
|
|
26447
26446
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
26448
26447
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
26449
26448
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
26450
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
26449
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
26451
26450
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
26452
26451
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
26453
26452
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -26676,7 +26675,7 @@ function requireClientsdkClientcore () {
|
|
|
26676
26675
|
initMetadataForClass(runAfterDelay$1);
|
|
26677
26676
|
//endregion
|
|
26678
26677
|
function BuildKonfig() {
|
|
26679
|
-
this.i1i_1 = '2.7.
|
|
26678
|
+
this.i1i_1 = '2.7.5';
|
|
26680
26679
|
}
|
|
26681
26680
|
var BuildKonfig_instance;
|
|
26682
26681
|
function BuildKonfig_getInstance() {
|
|
@@ -29194,12 +29193,13 @@ function requireClientsdkClientcore () {
|
|
|
29194
29193
|
};
|
|
29195
29194
|
protoOf(UpdateSessionRequest).z1s = function (encoder, store) {
|
|
29196
29195
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
29196
|
+
var value = new JsonObject(emptyMap());
|
|
29197
29197
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
29198
29198
|
var this_0 = encoder.mm();
|
|
29199
29199
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
29200
|
-
var this_1 = serializer(this_0, createKType(
|
|
29200
|
+
var this_1 = serializer(this_0, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
29201
29201
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
29202
|
-
return encoder.v13(tmp$ret$1,
|
|
29202
|
+
return encoder.v13(tmp$ret$1, value);
|
|
29203
29203
|
};
|
|
29204
29204
|
protoOf(UpdateSessionRequest).a1t = function (data, decoder) {
|
|
29205
29205
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
@@ -388,14 +388,6 @@ export type MessageVideoEvent = Omit<vonage.MessageVideoEventJS, 'kind' | 'from'
|
|
|
388
388
|
* @group Chat
|
|
389
389
|
*/
|
|
390
390
|
export type PersistentConversationEvent = CustomConversationEvent | EventDeleteConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageDeliveredEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageRejectedEvent | MessageSeenEvent | MessageSubmittedEvent | MessageTemplateEvent | MessageTextEvent | MessageUndeliverableEvent | MessageVCardEvent | MessageVideoEvent;
|
|
391
|
-
/**
|
|
392
|
-
* A CSErrorCodesJS is a union of 'CONVERSATION_DUPLICATE_NAME', 'MEMBER_ALREADY_JOINED', 'MEMBER_ALREADY_INVITED', 'CONVERSATION_NOT_FOUND', 'MEMBER_NOT_FOUND', 'USER_NOT_FOUND', 'INVALID_CURSOR', 'VALIDATION_FAIL', 'CONVERSATION_MAX_NUMBER_OF_MEMBERS', 'CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED'
|
|
393
|
-
*/
|
|
394
|
-
export type CSErrorCodesJS = 'CONVERSATION_DUPLICATE_NAME' | 'MEMBER_ALREADY_JOINED' | 'MEMBER_ALREADY_INVITED' | 'CONVERSATION_NOT_FOUND' | 'MEMBER_NOT_FOUND' | 'USER_NOT_FOUND' | 'INVALID_CURSOR' | 'VALIDATION_FAIL' | 'CONVERSATION_MAX_NUMBER_OF_MEMBERS' | 'CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED';
|
|
395
|
-
/**
|
|
396
|
-
* A SessionErrorCodesJS is a union of 'EMPTY_TOKEN', 'FORCED_DISCONNECT', 'TIMEOUT', 'INTERNAL_FAILURE', 'NO_ACTIVE_SESSION', 'ALREADY_ACTIVE_SESSION', 'INVALID_TOKEN', 'EXPIRED_TOKEN', 'INVALID_USER', 'AUTHORIZATION_ERROR', 'INVALID_SESSION', 'MAX_OPEN_SESSIONS', 'INVALID_SOCKET_TRANSPORT', 'CLIENT_DISCONNECT', 'PING_TIMEOUT_DISCONNECT', 'TRANSPORT_CLOSED_DISCONNECT'
|
|
397
|
-
*/
|
|
398
|
-
export type SessionErrorCodesJS = 'EMPTY_TOKEN' | 'FORCED_DISCONNECT' | 'TIMEOUT' | 'INTERNAL_FAILURE' | 'NO_ACTIVE_SESSION' | 'ALREADY_ACTIVE_SESSION' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'INVALID_USER' | 'AUTHORIZATION_ERROR' | 'INVALID_SESSION' | 'MAX_OPEN_SESSIONS' | 'INVALID_SOCKET_TRANSPORT' | 'CLIENT_DISCONNECT' | 'PING_TIMEOUT_DISCONNECT' | 'TRANSPORT_CLOSED_DISCONNECT';
|
|
399
391
|
/**
|
|
400
392
|
* A ConversationState is a union of 'ACTIVE', 'INACTIVE', 'DELETED'
|
|
401
393
|
*/
|
|
@@ -412,18 +404,6 @@ export type ConversationChannelType = 'APP' | 'PHONE' | 'PSTN' | 'sip' | 'VBC' |
|
|
|
412
404
|
* A VonageErrorTypeJS is a union of 'CS_ERROR', 'NETWORK_ERROR', 'SESSION_ERROR', 'INTERNAL_ERROR', 'UNKNOWN_ERROR'
|
|
413
405
|
*/
|
|
414
406
|
export type VonageErrorTypeJS = 'CS_ERROR' | 'NETWORK_ERROR' | 'SESSION_ERROR' | 'INTERNAL_ERROR' | 'UNKNOWN_ERROR';
|
|
415
|
-
/**
|
|
416
|
-
* A VoiceChannelTypeJS is a union of 'app', 'phone', 'sip', 'websocket'
|
|
417
|
-
*/
|
|
418
|
-
export type VoiceChannelTypeJS = 'app' | 'phone' | 'sip' | 'websocket';
|
|
419
|
-
/**
|
|
420
|
-
* A CancelReasonJS is a union of 'RemoteCancel', 'AnsweredElsewhere', 'RejectedElsewhere', 'RemoteTimeout'
|
|
421
|
-
*/
|
|
422
|
-
export type CancelReasonJS = 'RemoteCancel' | 'AnsweredElsewhere' | 'RejectedElsewhere' | 'RemoteTimeout';
|
|
423
|
-
/**
|
|
424
|
-
* A SessionErrorReasonJS is a union of 'EXPIRED_TOKEN', 'TRANSPORT_CLOSED', 'PING_TIMEOUT'
|
|
425
|
-
*/
|
|
426
|
-
export type SessionErrorReasonJS = 'EXPIRED_TOKEN' | 'TRANSPORT_CLOSED' | 'PING_TIMEOUT';
|
|
427
407
|
/**
|
|
428
408
|
* A LegStatusJS is a union of 'RINGING', 'ANSWERED', 'COMPLETED'
|
|
429
409
|
*/
|
|
@@ -441,3 +421,23 @@ export type HangupReasonJS = 'REMOTE_HANGUP' | 'REMOTE_REJECT' | 'REMOTE_NO_ANSW
|
|
|
441
421
|
* @group Chat
|
|
442
422
|
*/
|
|
443
423
|
export type ConversationEvent = NonPersistentConversationEvent | PersistentConversationEvent;
|
|
424
|
+
/**
|
|
425
|
+
* A SessionErrorReasonJS is a union of 'EXPIRED_TOKEN', 'TRANSPORT_CLOSED', 'PING_TIMEOUT'
|
|
426
|
+
*/
|
|
427
|
+
export type SessionErrorReasonJS = 'EXPIRED_TOKEN' | 'TRANSPORT_CLOSED' | 'PING_TIMEOUT';
|
|
428
|
+
/**
|
|
429
|
+
* A CSErrorCodesJS is a union of 'CONVERSATION_DUPLICATE_NAME', 'MEMBER_ALREADY_JOINED', 'MEMBER_ALREADY_INVITED', 'CONVERSATION_NOT_FOUND', 'MEMBER_NOT_FOUND', 'USER_NOT_FOUND', 'INVALID_CURSOR', 'VALIDATION_FAIL', 'CONVERSATION_MAX_NUMBER_OF_MEMBERS', 'CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED'
|
|
430
|
+
*/
|
|
431
|
+
export type CSErrorCodesJS = 'CONVERSATION_DUPLICATE_NAME' | 'MEMBER_ALREADY_JOINED' | 'MEMBER_ALREADY_INVITED' | 'CONVERSATION_NOT_FOUND' | 'MEMBER_NOT_FOUND' | 'USER_NOT_FOUND' | 'INVALID_CURSOR' | 'VALIDATION_FAIL' | 'CONVERSATION_MAX_NUMBER_OF_MEMBERS' | 'CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED';
|
|
432
|
+
/**
|
|
433
|
+
* A SessionErrorCodesJS is a union of 'EMPTY_TOKEN', 'FORCED_DISCONNECT', 'TIMEOUT', 'INTERNAL_FAILURE', 'NO_ACTIVE_SESSION', 'ALREADY_ACTIVE_SESSION', 'INVALID_TOKEN', 'EXPIRED_TOKEN', 'INVALID_USER', 'AUTHORIZATION_ERROR', 'INVALID_SESSION', 'MAX_OPEN_SESSIONS', 'INVALID_SOCKET_TRANSPORT', 'CLIENT_DISCONNECT', 'PING_TIMEOUT_DISCONNECT', 'TRANSPORT_CLOSED_DISCONNECT'
|
|
434
|
+
*/
|
|
435
|
+
export type SessionErrorCodesJS = 'EMPTY_TOKEN' | 'FORCED_DISCONNECT' | 'TIMEOUT' | 'INTERNAL_FAILURE' | 'NO_ACTIVE_SESSION' | 'ALREADY_ACTIVE_SESSION' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'INVALID_USER' | 'AUTHORIZATION_ERROR' | 'INVALID_SESSION' | 'MAX_OPEN_SESSIONS' | 'INVALID_SOCKET_TRANSPORT' | 'CLIENT_DISCONNECT' | 'PING_TIMEOUT_DISCONNECT' | 'TRANSPORT_CLOSED_DISCONNECT';
|
|
436
|
+
/**
|
|
437
|
+
* A VoiceChannelTypeJS is a union of 'app', 'phone', 'sip', 'websocket'
|
|
438
|
+
*/
|
|
439
|
+
export type VoiceChannelTypeJS = 'app' | 'phone' | 'sip' | 'websocket';
|
|
440
|
+
/**
|
|
441
|
+
* A CancelReasonJS is a union of 'RemoteCancel', 'AnsweredElsewhere', 'RejectedElsewhere', 'RemoteTimeout'
|
|
442
|
+
*/
|
|
443
|
+
export type CancelReasonJS = 'RemoteCancel' | 'AnsweredElsewhere' | 'RejectedElsewhere' | 'RemoteTimeout';
|
package/dist/vonageClientSDK.js
CHANGED
|
@@ -135,12 +135,6 @@
|
|
|
135
135
|
};
|
|
136
136
|
}(Math.log, Math.LN2);
|
|
137
137
|
}
|
|
138
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
139
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
140
|
-
position = position || 0;
|
|
141
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
142
|
-
}});
|
|
143
|
-
}
|
|
144
138
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
145
139
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
146
140
|
var subjectString = this.toString();
|
|
@@ -152,6 +146,12 @@
|
|
|
152
146
|
return lastIndex !== -1 && lastIndex === position;
|
|
153
147
|
}});
|
|
154
148
|
}
|
|
149
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
150
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
151
|
+
position = position || 0;
|
|
152
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
153
|
+
}});
|
|
154
|
+
}
|
|
155
155
|
//endregion
|
|
156
156
|
(function (factory) {
|
|
157
157
|
factory(module.exports);
|
|
@@ -24210,7 +24210,8 @@
|
|
|
24210
24210
|
var createFailure = kotlin_kotlin.$_$.rb;
|
|
24211
24211
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.m2;
|
|
24212
24212
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.l2;
|
|
24213
|
-
var
|
|
24213
|
+
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
24214
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
24214
24215
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
24215
24216
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.a1;
|
|
24216
24217
|
var lazy = kotlin_kotlin.$_$.wb;
|
|
@@ -24228,14 +24229,12 @@
|
|
|
24228
24229
|
var isCharSequence = kotlin_kotlin.$_$.e8;
|
|
24229
24230
|
var trim = kotlin_kotlin.$_$.qa;
|
|
24230
24231
|
var charSequenceLength = kotlin_kotlin.$_$.k7;
|
|
24231
|
-
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
24232
24232
|
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
24233
24233
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
24234
24234
|
var to = kotlin_kotlin.$_$.cc;
|
|
24235
24235
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
24236
24236
|
var put = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.q;
|
|
24237
24237
|
var putJsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.p;
|
|
24238
|
-
var emptyMap = kotlin_kotlin.$_$.b5;
|
|
24239
24238
|
var JsonObjectBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
24240
24239
|
var removePrefix = kotlin_kotlin.$_$.s9;
|
|
24241
24240
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
@@ -25113,16 +25112,6 @@
|
|
|
25113
25112
|
initMetadataForCompanion(Companion_150);
|
|
25114
25113
|
initMetadataForObject($serializer_173, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
25115
25114
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_173});
|
|
25116
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
25117
|
-
}
|
|
25118
|
-
function onRTCTransfer(conversationId, legId) {
|
|
25119
|
-
}
|
|
25120
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
25121
|
-
}
|
|
25122
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
25123
|
-
function onConversationEvent(event) {
|
|
25124
|
-
}
|
|
25125
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
25126
25115
|
function onAudioSay() {
|
|
25127
25116
|
}
|
|
25128
25117
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -25132,7 +25121,17 @@
|
|
|
25132
25121
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
25133
25122
|
}
|
|
25134
25123
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
25135
|
-
|
|
25124
|
+
function onConversationEvent(event) {
|
|
25125
|
+
}
|
|
25126
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
25127
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
25128
|
+
}
|
|
25129
|
+
function onRTCTransfer(conversationId, legId) {
|
|
25130
|
+
}
|
|
25131
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
25132
|
+
}
|
|
25133
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
25134
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
25136
25135
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
25137
25136
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
25138
25137
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -25271,7 +25270,7 @@
|
|
|
25271
25270
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
25272
25271
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
25273
25272
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
25274
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
25273
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
25275
25274
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
25276
25275
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
25277
25276
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -25500,7 +25499,7 @@
|
|
|
25500
25499
|
initMetadataForClass(runAfterDelay$1);
|
|
25501
25500
|
//endregion
|
|
25502
25501
|
function BuildKonfig() {
|
|
25503
|
-
this.i1i_1 = '2.7.
|
|
25502
|
+
this.i1i_1 = '2.7.5';
|
|
25504
25503
|
}
|
|
25505
25504
|
var BuildKonfig_instance;
|
|
25506
25505
|
function EmergencyCallOptions(ringbackTone) {
|
|
@@ -27963,12 +27962,13 @@
|
|
|
27963
27962
|
};
|
|
27964
27963
|
protoOf(UpdateSessionRequest).z1s = function (encoder, store) {
|
|
27965
27964
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
27965
|
+
var value = new JsonObject(emptyMap());
|
|
27966
27966
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
27967
27967
|
var this_0 = encoder.mm();
|
|
27968
27968
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
27969
|
-
var this_1 = serializer(this_0, createKType(
|
|
27969
|
+
var this_1 = serializer(this_0, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
27970
27970
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
27971
|
-
return encoder.v13(tmp$ret$1,
|
|
27971
|
+
return encoder.v13(tmp$ret$1, value);
|
|
27972
27972
|
};
|
|
27973
27973
|
protoOf(UpdateSessionRequest).a1t = function (data, decoder) {
|
|
27974
27974
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|