@vonage/client-sdk 1.6.0 → 1.6.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/VonageClient.html +31 -28
- package/api_docs/ts/enums/OrderBy.html +1 -1
- package/api_docs/ts/enums/PresentingOrder.html +1 -1
- package/api_docs/ts/index.html +2 -6
- package/api_docs/ts/interfaces/ConversationsPage.html +1 -1
- package/api_docs/ts/interfaces/CreateConversationParameters.html +1 -1
- package/api_docs/ts/interfaces/EventsPage.html +1 -1
- package/api_docs/ts/interfaces/GetCallLegsParameters.html +1 -1
- package/api_docs/ts/interfaces/GetConversationEventsParameters.html +1 -1
- package/api_docs/ts/interfaces/GetConversationMembersParameters.html +1 -1
- package/api_docs/ts/interfaces/GetConversationsParameters.html +1 -1
- package/api_docs/ts/interfaces/LegsPage.html +1 -1
- package/api_docs/ts/interfaces/Location.html +1 -1
- package/api_docs/ts/interfaces/MemberEventBody.html +1 -1
- package/api_docs/ts/interfaces/MembersPage.html +1 -1
- package/api_docs/ts/interfaces/MessageAudioEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageCustomEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageFileEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageImageEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageLocationEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageTemplateEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageTextEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageVCardEventBody.html +1 -1
- package/api_docs/ts/interfaces/MessageVideoEventBody.html +1 -1
- package/api_docs/ts/interfaces/Template.html +1 -1
- package/api_docs/ts/interfaces/UpdateConversationParameters.html +1 -1
- package/api_docs/ts/interfaces/Whatsapp.html +1 -1
- package/api_docs/ts/modules.html +26 -26
- package/api_docs/ts/types/Option.html +1 -1
- package/dist/client/VonageClient.d.ts +8 -27
- package/dist/client/index.cjs +23 -26
- package/dist/client/index.mjs +23 -26
- package/dist/coreExtend.d.ts +0 -1
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +3 -0
- package/dist/lib/MediaClient.d.ts +1 -0
- package/dist/utils/ConversationEventBodies.d.ts +0 -16
- package/dist/utils/ConversationModels.d.ts +0 -4
- package/dist/utils/Option.d.ts +0 -1
- package/dist/utils/RequestParameterModels.d.ts +0 -10
- package/dist/vonageClientSDK.js +23 -26
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +23 -26
- package/package.json +1 -1
package/dist/vonageClientSDK.mjs
CHANGED
|
@@ -33192,9 +33192,6 @@ function requireClientsdkClientcore () {
|
|
|
33192
33192
|
setMetadataFor(Companion_133, 'Companion', objectMeta);
|
|
33193
33193
|
setMetadataFor($serializer_153, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
|
|
33194
33194
|
setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_153});
|
|
33195
|
-
function onConversationEvent(event) {
|
|
33196
|
-
}
|
|
33197
|
-
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
33198
33195
|
function onRTCHangup(conversationId, legId, hangup) {
|
|
33199
33196
|
}
|
|
33200
33197
|
function onRTCTransfer(conversationId, legId) {
|
|
@@ -33202,6 +33199,9 @@ function requireClientsdkClientcore () {
|
|
|
33202
33199
|
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
33203
33200
|
}
|
|
33204
33201
|
setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
|
|
33202
|
+
function onConversationEvent(event) {
|
|
33203
|
+
}
|
|
33204
|
+
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
33205
33205
|
function onAudioSay() {
|
|
33206
33206
|
}
|
|
33207
33207
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -33211,7 +33211,7 @@ function requireClientsdkClientcore () {
|
|
|
33211
33211
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
33212
33212
|
}
|
|
33213
33213
|
setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
|
|
33214
|
-
setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [
|
|
33214
|
+
setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
|
|
33215
33215
|
setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
|
|
33216
33216
|
setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
|
|
33217
33217
|
setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
|
|
@@ -33345,7 +33345,7 @@ function requireClientsdkClientcore () {
|
|
|
33345
33345
|
setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
|
|
33346
33346
|
setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
|
|
33347
33347
|
setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
|
|
33348
|
-
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [
|
|
33348
|
+
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
|
|
33349
33349
|
setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
|
|
33350
33350
|
setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
|
|
33351
33351
|
setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
|
|
@@ -33561,7 +33561,7 @@ function requireClientsdkClientcore () {
|
|
|
33561
33561
|
setMetadataFor(Failed, 'Failed', classMeta, StateTransition);
|
|
33562
33562
|
//endregion
|
|
33563
33563
|
function BuildKonfig() {
|
|
33564
|
-
this.g1d_1 = '1.6.
|
|
33564
|
+
this.g1d_1 = '1.6.1-alpha.1';
|
|
33565
33565
|
}
|
|
33566
33566
|
var BuildKonfig_instance;
|
|
33567
33567
|
function CoreClientWithMedia() {
|
|
@@ -74232,6 +74232,9 @@ function requireClientsdkClientcore () {
|
|
|
74232
74232
|
function getPeerConnection(id) {
|
|
74233
74233
|
return this.media.getPeerConnection(id);
|
|
74234
74234
|
}
|
|
74235
|
+
function getAudioElement() {
|
|
74236
|
+
return this.media.getAudioElement();
|
|
74237
|
+
}
|
|
74235
74238
|
function serverCall(context) {
|
|
74236
74239
|
var tmp0_safe_receiver = get_jsonNullable(context);
|
|
74237
74240
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toMap_0(tmp0_safe_receiver);
|
|
@@ -80979,6 +80982,7 @@ function requireClientsdkClientcore () {
|
|
|
80979
80982
|
protoOf(CombinedClientJS).getConversation = getConversation;
|
|
80980
80983
|
protoOf(CombinedClientJS).getUser = getUser;
|
|
80981
80984
|
protoOf(CombinedClientJS).getPeerConnection = getPeerConnection;
|
|
80985
|
+
protoOf(CombinedClientJS).getAudioElement = getAudioElement;
|
|
80982
80986
|
protoOf(CombinedClientJS).serverCall = serverCall;
|
|
80983
80987
|
protoOf(CombinedClientJS).reconnectCall = reconnectCall;
|
|
80984
80988
|
protoOf(CombinedClientJS).getLeg = getLeg;
|
|
@@ -85777,6 +85781,9 @@ class MediaClient {
|
|
|
85777
85781
|
}
|
|
85778
85782
|
});
|
|
85779
85783
|
}
|
|
85784
|
+
getAudioElement() {
|
|
85785
|
+
return this.audio;
|
|
85786
|
+
}
|
|
85780
85787
|
getPeerConnection(id) {
|
|
85781
85788
|
const pc = this.pcs.get(id);
|
|
85782
85789
|
return pc;
|
|
@@ -89939,7 +89946,6 @@ const SessionErrorCodes = clientsdkClientcore_jsExports.vonage.SessionErrorCodes
|
|
|
89939
89946
|
|
|
89940
89947
|
/**
|
|
89941
89948
|
* The order in which paginated objects are presented.
|
|
89942
|
-
* @beta
|
|
89943
89949
|
* @group Chat
|
|
89944
89950
|
* @enum
|
|
89945
89951
|
* @property ASC Ascending order
|
|
@@ -89951,7 +89957,6 @@ const PresentingOrder = {
|
|
|
89951
89957
|
};
|
|
89952
89958
|
/**
|
|
89953
89959
|
* The sorting strategy used for paginated objects.
|
|
89954
|
-
* @beta
|
|
89955
89960
|
* @group Chat
|
|
89956
89961
|
* @enum
|
|
89957
89962
|
*/
|
|
@@ -90225,6 +90230,16 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90225
90230
|
getPeerConnection(id) {
|
|
90226
90231
|
return super.getPeerConnection(id);
|
|
90227
90232
|
}
|
|
90233
|
+
/**
|
|
90234
|
+
* Get the HTML Audio Element for the SDK.
|
|
90235
|
+
* It can be used to route output to other devices.
|
|
90236
|
+
*
|
|
90237
|
+
* @experimental
|
|
90238
|
+
* @group Voice
|
|
90239
|
+
*/
|
|
90240
|
+
getAudioElement() {
|
|
90241
|
+
return super.getAudioElement();
|
|
90242
|
+
}
|
|
90228
90243
|
/**
|
|
90229
90244
|
* Get the Leg for a call
|
|
90230
90245
|
*
|
|
@@ -90246,7 +90261,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90246
90261
|
* [[include: snippet_GetCallLegs.txt]]
|
|
90247
90262
|
*
|
|
90248
90263
|
* @group Voice
|
|
90249
|
-
* @beta
|
|
90250
90264
|
* @param id - the Call's id
|
|
90251
90265
|
* @param parameters - A {@link GetCallLegsParameters} object containing the parameters for the request.
|
|
90252
90266
|
* @returns a `LegsPage` containing the legs
|
|
@@ -90470,7 +90484,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90470
90484
|
* [[include: snippet_LeaveConversation.txt]]
|
|
90471
90485
|
*
|
|
90472
90486
|
* @group Chat
|
|
90473
|
-
* @beta
|
|
90474
90487
|
* @param id - the Conversation's id
|
|
90475
90488
|
* @returns void
|
|
90476
90489
|
*/
|
|
@@ -90489,7 +90502,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90489
90502
|
* [[include: snippet_JoinConversation.txt]]
|
|
90490
90503
|
*
|
|
90491
90504
|
* @group Chat
|
|
90492
|
-
* @beta
|
|
90493
90505
|
* @param id - the Conversation's id
|
|
90494
90506
|
* @returns the `memberId` of the member
|
|
90495
90507
|
*/
|
|
@@ -90508,7 +90520,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90508
90520
|
* [[include: snippet_DeleteConversation.txt]]
|
|
90509
90521
|
*
|
|
90510
90522
|
* @group Chat
|
|
90511
|
-
* @beta
|
|
90512
90523
|
* @param id - the Conversation's id
|
|
90513
90524
|
* @returns void
|
|
90514
90525
|
*/
|
|
@@ -90527,7 +90538,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90527
90538
|
* [[include: snippet_InviteToConversation.txt]]
|
|
90528
90539
|
*
|
|
90529
90540
|
* @group Chat
|
|
90530
|
-
* @beta
|
|
90531
90541
|
* @param id - the Conversation's id
|
|
90532
90542
|
* @param name - the name of the user to invite
|
|
90533
90543
|
* @returns the `memberId` of the member
|
|
@@ -90547,7 +90557,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90547
90557
|
* [[include: snippet_SendTextMessage.txt]]
|
|
90548
90558
|
*
|
|
90549
90559
|
* @group Chat
|
|
90550
|
-
* @beta
|
|
90551
90560
|
* @param id - the Conversation's id
|
|
90552
90561
|
* @param text - the Body of the message
|
|
90553
90562
|
* @returns the `timestamp` of the message
|
|
@@ -90567,7 +90576,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90567
90576
|
* [[include: snippet_SendCustomMessage.txt]]
|
|
90568
90577
|
*
|
|
90569
90578
|
* @group Chat
|
|
90570
|
-
* @beta
|
|
90571
90579
|
* @param id - the Conversation's id
|
|
90572
90580
|
* @param customData - the body of the message
|
|
90573
90581
|
* @returns the `timestamp` of the message
|
|
@@ -90590,7 +90598,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90590
90598
|
* [[include: snippet_SendImageMessage.txt]]
|
|
90591
90599
|
*
|
|
90592
90600
|
* @group Chat
|
|
90593
|
-
* @beta
|
|
90594
90601
|
* @param id - the Conversation's id
|
|
90595
90602
|
* @param imageUrl - the url of the image resource.
|
|
90596
90603
|
* @returns the `timestamp` of the message
|
|
@@ -90610,7 +90617,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90610
90617
|
* [[include: snippet_SendVideoMessage.txt]]
|
|
90611
90618
|
*
|
|
90612
90619
|
* @group Chat
|
|
90613
|
-
* @beta
|
|
90614
90620
|
* @param id - the Conversation's id
|
|
90615
90621
|
* @param videoUrl - the url of the video resource.
|
|
90616
90622
|
* @returns the `timestamp` of the message
|
|
@@ -90630,7 +90636,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90630
90636
|
* [[include: snippet_SendFileMessage.txt]]
|
|
90631
90637
|
*
|
|
90632
90638
|
* @group Chat
|
|
90633
|
-
* @beta
|
|
90634
90639
|
* @param id - the Conversation's id
|
|
90635
90640
|
* @param fileUrl - the url of the file resource.
|
|
90636
90641
|
* @returns the `timestamp` of the message
|
|
@@ -90650,7 +90655,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90650
90655
|
* [[include: snippet_SendAudioMessage.txt]]
|
|
90651
90656
|
*
|
|
90652
90657
|
* @group Chat
|
|
90653
|
-
* @beta
|
|
90654
90658
|
* @param id - the Conversation's id
|
|
90655
90659
|
* @param audioUrl - the url of the audio resource.
|
|
90656
90660
|
* @returns the `timestamp` of the message
|
|
@@ -90670,7 +90674,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90670
90674
|
* [[include: snippet_SendVcardMessage.txt]]
|
|
90671
90675
|
*
|
|
90672
90676
|
* @group Chat
|
|
90673
|
-
* @beta
|
|
90674
90677
|
* @param id - the Conversation's id
|
|
90675
90678
|
* @param vCardUrl - the url of the vCardUrl resource.
|
|
90676
90679
|
* @returns the `timestamp` of the message
|
|
@@ -90690,7 +90693,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90690
90693
|
* [[include: snippet_SendLocationMessage.txt]]
|
|
90691
90694
|
*
|
|
90692
90695
|
* @group Chat
|
|
90693
|
-
* @beta
|
|
90694
90696
|
* @param id - the Conversation's id
|
|
90695
90697
|
* @param location - the description of the location.
|
|
90696
90698
|
* @returns the `timestamp` of the message
|
|
@@ -90710,7 +90712,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90710
90712
|
* [[include: snippet_SendTemplateMessage.txt]]
|
|
90711
90713
|
*
|
|
90712
90714
|
* @group Chat
|
|
90713
|
-
* @beta
|
|
90714
90715
|
* @param id - the Conversation's id
|
|
90715
90716
|
* @param whatsappObject - the description(locale and policies of business account) of the location.
|
|
90716
90717
|
* @param templateObject - the description(name and paramters) of the template.
|
|
@@ -90731,7 +90732,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90731
90732
|
* [[include: snippet_SendEphemeralEvent.txt]]
|
|
90732
90733
|
*
|
|
90733
90734
|
* @group Chat
|
|
90734
|
-
* @beta
|
|
90735
90735
|
* @param id - the Conversation's id
|
|
90736
90736
|
* @param customData - the body of the event
|
|
90737
90737
|
* @returns the `timestamp` of the message
|
|
@@ -90754,7 +90754,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90754
90754
|
* [[include: snippet_SendCustomEvent.txt]]
|
|
90755
90755
|
*
|
|
90756
90756
|
* @group Chat
|
|
90757
|
-
* @beta
|
|
90758
90757
|
* @param id - the Conversation's id
|
|
90759
90758
|
* @param evenType - the type of the custom event. Type must start with `custom:<...>`
|
|
90760
90759
|
* @param customData - the body of the event
|
|
@@ -90778,7 +90777,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90778
90777
|
* [[include:snippet_DeleteEvent.txt]]
|
|
90779
90778
|
*
|
|
90780
90779
|
* @group Chat
|
|
90781
|
-
* @beta
|
|
90782
90780
|
* @param id - the id for the Event to be deleted
|
|
90783
90781
|
* @param conversationId - the id for the conversation, the event belongs to.
|
|
90784
90782
|
* @returns void
|
|
@@ -90798,7 +90796,6 @@ class VonageClient extends clientsdkClientcore_jsExports.vonage.CombinedClientJS
|
|
|
90798
90796
|
* [[include: snippet_SendMessageSeenEvent.txt]]
|
|
90799
90797
|
*
|
|
90800
90798
|
* @group Chat
|
|
90801
|
-
* @beta
|
|
90802
90799
|
* @param id - the event id
|
|
90803
90800
|
* @param conversationId - the conversation id
|
|
90804
90801
|
* @returns the `timestamp` of the message
|