@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
|
@@ -5,7 +5,6 @@ import { Option } from './Option';
|
|
|
5
5
|
/**
|
|
6
6
|
* Parameters object for {@link VonageClient.createConversation}
|
|
7
7
|
*
|
|
8
|
-
* @beta
|
|
9
8
|
* @property name The name to initialize the conversation with
|
|
10
9
|
* @property displayName The displayName to initialize the conversation with
|
|
11
10
|
* @property imageUrl The name to imageUrl the conversation with
|
|
@@ -23,7 +22,6 @@ export type CreateConversationParameters = Omit<vonage.CreateConversationParamet
|
|
|
23
22
|
/**
|
|
24
23
|
* Parameters object for {@link VonageClient.getConversations}
|
|
25
24
|
*
|
|
26
|
-
* @beta
|
|
27
25
|
* @property order The order in which conversations are presented, default is {@link PresentingOrder.ASC}.
|
|
28
26
|
* @property pageSize The maximum number of conversations to retrieve per request, default is 10.
|
|
29
27
|
* @property cursor The cursor indicating the starting point for pagination, default is the first page.
|
|
@@ -40,7 +38,6 @@ export type GetConversationsParameters = Omit<vonage.GetConversationsParametersJ
|
|
|
40
38
|
/**
|
|
41
39
|
* Parameters object for {@link VonageClient.getConversationEvents}
|
|
42
40
|
*
|
|
43
|
-
* @beta
|
|
44
41
|
* @property order The order in which conversation events are presented, default is {@link PresentingOrder.ASC}.
|
|
45
42
|
* @property pageSize The maximum number of conversation events to retrieve per request, default is 10.
|
|
46
43
|
* @property cursor The cursor indicating the starting point for pagination, default is the first page.
|
|
@@ -58,7 +55,6 @@ export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsP
|
|
|
58
55
|
/**
|
|
59
56
|
* Parameters object for {@link VonageClient.getConversationMembers}
|
|
60
57
|
*
|
|
61
|
-
* @beta
|
|
62
58
|
* @property order The order in which conversation members are presented, default is {@link PresentingOrder.ASC}.
|
|
63
59
|
* @property pageSize The maximum number of conversation members to retrieve per request, default is 10.
|
|
64
60
|
* @property cursor The cursor indicating the starting point for pagination, default is the first page.
|
|
@@ -72,7 +68,6 @@ export type GetConversationMembersParameters = Omit<vonage.GetConversationMember
|
|
|
72
68
|
/**
|
|
73
69
|
* Parameters object for {@link VonageClient.getCallLegs}
|
|
74
70
|
*
|
|
75
|
-
* @beta
|
|
76
71
|
* @property order The order in which call legs are presented, default is {@link PresentingOrder.ASC}.
|
|
77
72
|
* @property pageSize The maximum number of legs to retrieve per request, default is 10.
|
|
78
73
|
* @property cursor The cursor indicating the starting point for pagination, default is the first page.
|
|
@@ -90,7 +85,6 @@ export type GetCallLegsParameters = Omit<vonage.GetCallLegsParametersJS, 'pageSi
|
|
|
90
85
|
* When set to {@link Option.Some} the property will be updated.
|
|
91
86
|
* When set to {@link Option.None} the property will remain unchanged.
|
|
92
87
|
*
|
|
93
|
-
* @beta
|
|
94
88
|
* @property name The name of the conversation.
|
|
95
89
|
* @property displayName A display name for the conversation.
|
|
96
90
|
* @property imageUrl The URL of an image associated with the conversation.
|
|
@@ -111,13 +105,11 @@ export interface UpdateConversationParameters {
|
|
|
111
105
|
/**
|
|
112
106
|
* The order in which paginated objects are presented.
|
|
113
107
|
*
|
|
114
|
-
* @beta
|
|
115
108
|
* @group Chat
|
|
116
109
|
*/
|
|
117
110
|
export type PresentingOrder = Lowercase<typeof vonage.PresentingOrderJS.prototype.name> | vonage.PresentingOrderJS;
|
|
118
111
|
/**
|
|
119
112
|
* The order in which paginated objects are presented.
|
|
120
|
-
* @beta
|
|
121
113
|
* @group Chat
|
|
122
114
|
* @enum
|
|
123
115
|
* @property ASC Ascending order
|
|
@@ -129,13 +121,11 @@ export declare const PresentingOrder: {
|
|
|
129
121
|
/**
|
|
130
122
|
* The sorting strategy used for paginated objects.
|
|
131
123
|
*
|
|
132
|
-
* @beta
|
|
133
124
|
* @group Chat
|
|
134
125
|
*/
|
|
135
126
|
export type OrderBy = Lowercase<typeof vonage.OrderByJS.prototype.name> | vonage.OrderByJS;
|
|
136
127
|
/**
|
|
137
128
|
* The sorting strategy used for paginated objects.
|
|
138
|
-
* @beta
|
|
139
129
|
* @group Chat
|
|
140
130
|
* @enum
|
|
141
131
|
*/
|
package/dist/vonageClientSDK.js
CHANGED
|
@@ -33198,9 +33198,6 @@
|
|
|
33198
33198
|
setMetadataFor(Companion_133, 'Companion', objectMeta);
|
|
33199
33199
|
setMetadataFor($serializer_153, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
|
|
33200
33200
|
setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_153});
|
|
33201
|
-
function onConversationEvent(event) {
|
|
33202
|
-
}
|
|
33203
|
-
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
33204
33201
|
function onRTCHangup(conversationId, legId, hangup) {
|
|
33205
33202
|
}
|
|
33206
33203
|
function onRTCTransfer(conversationId, legId) {
|
|
@@ -33208,6 +33205,9 @@
|
|
|
33208
33205
|
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
33209
33206
|
}
|
|
33210
33207
|
setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
|
|
33208
|
+
function onConversationEvent(event) {
|
|
33209
|
+
}
|
|
33210
|
+
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
33211
33211
|
function onAudioSay() {
|
|
33212
33212
|
}
|
|
33213
33213
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -33217,7 +33217,7 @@
|
|
|
33217
33217
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
33218
33218
|
}
|
|
33219
33219
|
setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
|
|
33220
|
-
setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [
|
|
33220
|
+
setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
|
|
33221
33221
|
setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
|
|
33222
33222
|
setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
|
|
33223
33223
|
setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
|
|
@@ -33351,7 +33351,7 @@
|
|
|
33351
33351
|
setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
|
|
33352
33352
|
setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
|
|
33353
33353
|
setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
|
|
33354
|
-
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [
|
|
33354
|
+
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [RTCEventListener, ConversationEventListener, AudioEventListener]);
|
|
33355
33355
|
setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
|
|
33356
33356
|
setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
|
|
33357
33357
|
setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
|
|
@@ -33567,7 +33567,7 @@
|
|
|
33567
33567
|
setMetadataFor(Failed, 'Failed', classMeta, StateTransition);
|
|
33568
33568
|
//endregion
|
|
33569
33569
|
function BuildKonfig() {
|
|
33570
|
-
this.g1d_1 = '1.6.
|
|
33570
|
+
this.g1d_1 = '1.6.1-alpha.1';
|
|
33571
33571
|
}
|
|
33572
33572
|
var BuildKonfig_instance;
|
|
33573
33573
|
function CoreClientWithMedia() {
|
|
@@ -74238,6 +74238,9 @@
|
|
|
74238
74238
|
function getPeerConnection(id) {
|
|
74239
74239
|
return this.media.getPeerConnection(id);
|
|
74240
74240
|
}
|
|
74241
|
+
function getAudioElement() {
|
|
74242
|
+
return this.media.getAudioElement();
|
|
74243
|
+
}
|
|
74241
74244
|
function serverCall(context) {
|
|
74242
74245
|
var tmp0_safe_receiver = get_jsonNullable(context);
|
|
74243
74246
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toMap_0(tmp0_safe_receiver);
|
|
@@ -80985,6 +80988,7 @@
|
|
|
80985
80988
|
protoOf(CombinedClientJS).getConversation = getConversation;
|
|
80986
80989
|
protoOf(CombinedClientJS).getUser = getUser;
|
|
80987
80990
|
protoOf(CombinedClientJS).getPeerConnection = getPeerConnection;
|
|
80991
|
+
protoOf(CombinedClientJS).getAudioElement = getAudioElement;
|
|
80988
80992
|
protoOf(CombinedClientJS).serverCall = serverCall;
|
|
80989
80993
|
protoOf(CombinedClientJS).reconnectCall = reconnectCall;
|
|
80990
80994
|
protoOf(CombinedClientJS).getLeg = getLeg;
|
|
@@ -85783,6 +85787,9 @@
|
|
|
85783
85787
|
}
|
|
85784
85788
|
});
|
|
85785
85789
|
}
|
|
85790
|
+
getAudioElement() {
|
|
85791
|
+
return this.audio;
|
|
85792
|
+
}
|
|
85786
85793
|
getPeerConnection(id) {
|
|
85787
85794
|
const pc = this.pcs.get(id);
|
|
85788
85795
|
return pc;
|
|
@@ -89945,7 +89952,6 @@
|
|
|
89945
89952
|
|
|
89946
89953
|
/**
|
|
89947
89954
|
* The order in which paginated objects are presented.
|
|
89948
|
-
* @beta
|
|
89949
89955
|
* @group Chat
|
|
89950
89956
|
* @enum
|
|
89951
89957
|
* @property ASC Ascending order
|
|
@@ -89957,7 +89963,6 @@
|
|
|
89957
89963
|
};
|
|
89958
89964
|
/**
|
|
89959
89965
|
* The sorting strategy used for paginated objects.
|
|
89960
|
-
* @beta
|
|
89961
89966
|
* @group Chat
|
|
89962
89967
|
* @enum
|
|
89963
89968
|
*/
|
|
@@ -90231,6 +90236,16 @@
|
|
|
90231
90236
|
getPeerConnection(id) {
|
|
90232
90237
|
return super.getPeerConnection(id);
|
|
90233
90238
|
}
|
|
90239
|
+
/**
|
|
90240
|
+
* Get the HTML Audio Element for the SDK.
|
|
90241
|
+
* It can be used to route output to other devices.
|
|
90242
|
+
*
|
|
90243
|
+
* @experimental
|
|
90244
|
+
* @group Voice
|
|
90245
|
+
*/
|
|
90246
|
+
getAudioElement() {
|
|
90247
|
+
return super.getAudioElement();
|
|
90248
|
+
}
|
|
90234
90249
|
/**
|
|
90235
90250
|
* Get the Leg for a call
|
|
90236
90251
|
*
|
|
@@ -90252,7 +90267,6 @@
|
|
|
90252
90267
|
* [[include: snippet_GetCallLegs.txt]]
|
|
90253
90268
|
*
|
|
90254
90269
|
* @group Voice
|
|
90255
|
-
* @beta
|
|
90256
90270
|
* @param id - the Call's id
|
|
90257
90271
|
* @param parameters - A {@link GetCallLegsParameters} object containing the parameters for the request.
|
|
90258
90272
|
* @returns a `LegsPage` containing the legs
|
|
@@ -90476,7 +90490,6 @@
|
|
|
90476
90490
|
* [[include: snippet_LeaveConversation.txt]]
|
|
90477
90491
|
*
|
|
90478
90492
|
* @group Chat
|
|
90479
|
-
* @beta
|
|
90480
90493
|
* @param id - the Conversation's id
|
|
90481
90494
|
* @returns void
|
|
90482
90495
|
*/
|
|
@@ -90495,7 +90508,6 @@
|
|
|
90495
90508
|
* [[include: snippet_JoinConversation.txt]]
|
|
90496
90509
|
*
|
|
90497
90510
|
* @group Chat
|
|
90498
|
-
* @beta
|
|
90499
90511
|
* @param id - the Conversation's id
|
|
90500
90512
|
* @returns the `memberId` of the member
|
|
90501
90513
|
*/
|
|
@@ -90514,7 +90526,6 @@
|
|
|
90514
90526
|
* [[include: snippet_DeleteConversation.txt]]
|
|
90515
90527
|
*
|
|
90516
90528
|
* @group Chat
|
|
90517
|
-
* @beta
|
|
90518
90529
|
* @param id - the Conversation's id
|
|
90519
90530
|
* @returns void
|
|
90520
90531
|
*/
|
|
@@ -90533,7 +90544,6 @@
|
|
|
90533
90544
|
* [[include: snippet_InviteToConversation.txt]]
|
|
90534
90545
|
*
|
|
90535
90546
|
* @group Chat
|
|
90536
|
-
* @beta
|
|
90537
90547
|
* @param id - the Conversation's id
|
|
90538
90548
|
* @param name - the name of the user to invite
|
|
90539
90549
|
* @returns the `memberId` of the member
|
|
@@ -90553,7 +90563,6 @@
|
|
|
90553
90563
|
* [[include: snippet_SendTextMessage.txt]]
|
|
90554
90564
|
*
|
|
90555
90565
|
* @group Chat
|
|
90556
|
-
* @beta
|
|
90557
90566
|
* @param id - the Conversation's id
|
|
90558
90567
|
* @param text - the Body of the message
|
|
90559
90568
|
* @returns the `timestamp` of the message
|
|
@@ -90573,7 +90582,6 @@
|
|
|
90573
90582
|
* [[include: snippet_SendCustomMessage.txt]]
|
|
90574
90583
|
*
|
|
90575
90584
|
* @group Chat
|
|
90576
|
-
* @beta
|
|
90577
90585
|
* @param id - the Conversation's id
|
|
90578
90586
|
* @param customData - the body of the message
|
|
90579
90587
|
* @returns the `timestamp` of the message
|
|
@@ -90596,7 +90604,6 @@
|
|
|
90596
90604
|
* [[include: snippet_SendImageMessage.txt]]
|
|
90597
90605
|
*
|
|
90598
90606
|
* @group Chat
|
|
90599
|
-
* @beta
|
|
90600
90607
|
* @param id - the Conversation's id
|
|
90601
90608
|
* @param imageUrl - the url of the image resource.
|
|
90602
90609
|
* @returns the `timestamp` of the message
|
|
@@ -90616,7 +90623,6 @@
|
|
|
90616
90623
|
* [[include: snippet_SendVideoMessage.txt]]
|
|
90617
90624
|
*
|
|
90618
90625
|
* @group Chat
|
|
90619
|
-
* @beta
|
|
90620
90626
|
* @param id - the Conversation's id
|
|
90621
90627
|
* @param videoUrl - the url of the video resource.
|
|
90622
90628
|
* @returns the `timestamp` of the message
|
|
@@ -90636,7 +90642,6 @@
|
|
|
90636
90642
|
* [[include: snippet_SendFileMessage.txt]]
|
|
90637
90643
|
*
|
|
90638
90644
|
* @group Chat
|
|
90639
|
-
* @beta
|
|
90640
90645
|
* @param id - the Conversation's id
|
|
90641
90646
|
* @param fileUrl - the url of the file resource.
|
|
90642
90647
|
* @returns the `timestamp` of the message
|
|
@@ -90656,7 +90661,6 @@
|
|
|
90656
90661
|
* [[include: snippet_SendAudioMessage.txt]]
|
|
90657
90662
|
*
|
|
90658
90663
|
* @group Chat
|
|
90659
|
-
* @beta
|
|
90660
90664
|
* @param id - the Conversation's id
|
|
90661
90665
|
* @param audioUrl - the url of the audio resource.
|
|
90662
90666
|
* @returns the `timestamp` of the message
|
|
@@ -90676,7 +90680,6 @@
|
|
|
90676
90680
|
* [[include: snippet_SendVcardMessage.txt]]
|
|
90677
90681
|
*
|
|
90678
90682
|
* @group Chat
|
|
90679
|
-
* @beta
|
|
90680
90683
|
* @param id - the Conversation's id
|
|
90681
90684
|
* @param vCardUrl - the url of the vCardUrl resource.
|
|
90682
90685
|
* @returns the `timestamp` of the message
|
|
@@ -90696,7 +90699,6 @@
|
|
|
90696
90699
|
* [[include: snippet_SendLocationMessage.txt]]
|
|
90697
90700
|
*
|
|
90698
90701
|
* @group Chat
|
|
90699
|
-
* @beta
|
|
90700
90702
|
* @param id - the Conversation's id
|
|
90701
90703
|
* @param location - the description of the location.
|
|
90702
90704
|
* @returns the `timestamp` of the message
|
|
@@ -90716,7 +90718,6 @@
|
|
|
90716
90718
|
* [[include: snippet_SendTemplateMessage.txt]]
|
|
90717
90719
|
*
|
|
90718
90720
|
* @group Chat
|
|
90719
|
-
* @beta
|
|
90720
90721
|
* @param id - the Conversation's id
|
|
90721
90722
|
* @param whatsappObject - the description(locale and policies of business account) of the location.
|
|
90722
90723
|
* @param templateObject - the description(name and paramters) of the template.
|
|
@@ -90737,7 +90738,6 @@
|
|
|
90737
90738
|
* [[include: snippet_SendEphemeralEvent.txt]]
|
|
90738
90739
|
*
|
|
90739
90740
|
* @group Chat
|
|
90740
|
-
* @beta
|
|
90741
90741
|
* @param id - the Conversation's id
|
|
90742
90742
|
* @param customData - the body of the event
|
|
90743
90743
|
* @returns the `timestamp` of the message
|
|
@@ -90760,7 +90760,6 @@
|
|
|
90760
90760
|
* [[include: snippet_SendCustomEvent.txt]]
|
|
90761
90761
|
*
|
|
90762
90762
|
* @group Chat
|
|
90763
|
-
* @beta
|
|
90764
90763
|
* @param id - the Conversation's id
|
|
90765
90764
|
* @param evenType - the type of the custom event. Type must start with `custom:<...>`
|
|
90766
90765
|
* @param customData - the body of the event
|
|
@@ -90784,7 +90783,6 @@
|
|
|
90784
90783
|
* [[include:snippet_DeleteEvent.txt]]
|
|
90785
90784
|
*
|
|
90786
90785
|
* @group Chat
|
|
90787
|
-
* @beta
|
|
90788
90786
|
* @param id - the id for the Event to be deleted
|
|
90789
90787
|
* @param conversationId - the id for the conversation, the event belongs to.
|
|
90790
90788
|
* @returns void
|
|
@@ -90804,7 +90802,6 @@
|
|
|
90804
90802
|
* [[include: snippet_SendMessageSeenEvent.txt]]
|
|
90805
90803
|
*
|
|
90806
90804
|
* @group Chat
|
|
90807
|
-
* @beta
|
|
90808
90805
|
* @param id - the event id
|
|
90809
90806
|
* @param conversationId - the conversation id
|
|
90810
90807
|
* @returns the `timestamp` of the message
|