@vonage/client-sdk 1.2.1-beta.7 → 1.2.1-snapshot.100.0
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 +11 -8
- package/api_docs/ts/.nojekyll +1 -0
- package/api_docs/ts/assets/highlight.css +127 -0
- package/api_docs/ts/assets/main.js +59 -0
- package/api_docs/ts/assets/navigation.js +1 -0
- package/api_docs/ts/assets/search.js +1 -0
- package/api_docs/ts/assets/style.css +1394 -0
- package/api_docs/ts/classes/ClientConfig.html +13 -0
- package/api_docs/ts/classes/ClientInitConfig.html +12 -0
- package/api_docs/ts/classes/VonageClient.html +308 -0
- package/api_docs/ts/functions/none.html +2 -0
- package/api_docs/ts/functions/setDefaultLoggingLevel.html +3 -0
- package/api_docs/ts/functions/setVonageClientLoggingLevel.html +3 -0
- package/api_docs/ts/functions/some.html +3 -0
- package/api_docs/ts/index.html +33 -0
- package/api_docs/ts/interfaces/CallSayParams.html +8 -0
- package/api_docs/ts/interfaces/Channel.html +8 -0
- package/api_docs/ts/interfaces/ClientConfigObject.html +18 -0
- package/api_docs/ts/interfaces/ClientInitConfigObject.html +24 -0
- package/api_docs/ts/interfaces/Conversation.html +20 -0
- package/api_docs/ts/interfaces/ConversationProperties.html +8 -0
- package/api_docs/ts/interfaces/ConversationTimestamp.html +5 -0
- package/api_docs/ts/interfaces/ConversationsPage.html +8 -0
- package/api_docs/ts/interfaces/CreateConversationParameters.html +15 -0
- package/api_docs/ts/interfaces/CustomConversationEvent.html +17 -0
- package/api_docs/ts/interfaces/EmbeddedInfo.html +9 -0
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +13 -0
- package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +15 -0
- package/api_docs/ts/interfaces/EventsPage.html +8 -0
- package/api_docs/ts/interfaces/GetConversationEventsParameters.html +14 -0
- package/api_docs/ts/interfaces/GetConversationMembersParameters.html +8 -0
- package/api_docs/ts/interfaces/GetConversationsParameters.html +12 -0
- package/api_docs/ts/interfaces/Leg.html +20 -0
- package/api_docs/ts/interfaces/LegChannel.html +8 -0
- package/api_docs/ts/interfaces/Location.html +6 -0
- package/api_docs/ts/interfaces/Member.html +12 -0
- package/api_docs/ts/interfaces/MemberChannel.html +8 -0
- package/api_docs/ts/interfaces/MemberEventBody.html +6 -0
- package/api_docs/ts/interfaces/MemberInvitedEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberJoinedEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberLeftEvent.html +15 -0
- package/api_docs/ts/interfaces/MemberTimestamp.html +5 -0
- package/api_docs/ts/interfaces/MembersPage.html +8 -0
- package/api_docs/ts/interfaces/MessageAudioEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageAudioEventBody.html +6 -0
- package/api_docs/ts/interfaces/MessageCustomEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageCustomEventBody.html +6 -0
- package/api_docs/ts/interfaces/MessageFileEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageFileEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageImageEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageImageEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageLocationEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageLocationEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageTemplateEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageTemplateEventBody.html +10 -0
- package/api_docs/ts/interfaces/MessageTextEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageTextEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageVCardEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageVCardEventBody.html +7 -0
- package/api_docs/ts/interfaces/MessageVideoEvent.html +15 -0
- package/api_docs/ts/interfaces/MessageVideoEventBody.html +7 -0
- package/api_docs/ts/interfaces/RTCQuality.html +11 -0
- package/api_docs/ts/interfaces/RtcStats.html +11 -0
- package/api_docs/ts/interfaces/System.html +7 -0
- package/api_docs/ts/interfaces/Template.html +4 -0
- package/api_docs/ts/interfaces/UpdateConversationParameters.html +17 -0
- package/api_docs/ts/interfaces/User.html +16 -0
- package/api_docs/ts/interfaces/UserChannels.html +14 -0
- package/api_docs/ts/interfaces/UserTimestamp.html +5 -0
- package/api_docs/ts/interfaces/VonageEvent.html +2 -0
- package/api_docs/ts/interfaces/VonageLogger.html +10 -0
- package/api_docs/ts/interfaces/Whatsapp.html +4 -0
- package/api_docs/ts/modules.html +82 -0
- package/api_docs/ts/types/ChannelType.html +2 -0
- package/api_docs/ts/types/ConfigRegion.html +3 -0
- package/api_docs/ts/types/ConversationEvent.html +2 -0
- package/api_docs/ts/types/ConversationState.html +2 -0
- package/api_docs/ts/types/CustomData.html +3 -0
- package/api_docs/ts/types/From.html +2 -0
- package/api_docs/ts/types/Json.html +2 -0
- package/api_docs/ts/types/JsonValue.html +2 -0
- package/api_docs/ts/types/LoggingLevel.html +4 -0
- package/api_docs/ts/types/MemberState.html +2 -0
- package/api_docs/ts/types/NonPersistentConversationEvent.html +2 -0
- package/api_docs/ts/types/Option.html +3 -0
- package/api_docs/ts/types/OrderBy.html +2 -0
- package/api_docs/ts/types/PersistentConversationEvent.html +2 -0
- package/api_docs/ts/types/PresentingOrder.html +2 -0
- package/api_docs/ts/types/Topics.html +2 -0
- package/api_docs/ts/variables/Topics-1.html +2 -0
- package/dist/client/VonageClient.d.ts +250 -30
- package/dist/client/index.cjs +27917 -23291
- package/dist/client/index.mjs +27911 -23292
- package/dist/coreExtend.d.ts +9 -3
- package/dist/kotlin/JsUnions.d.ts +137 -96
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +239 -138
- package/dist/lib/MediaClient.d.ts +1 -1
- package/dist/lib/SocketClient.d.ts +7 -2
- package/dist/utils/ClientConfig.d.ts +69 -23
- package/dist/utils/ConversationEventBodies.d.ts +134 -0
- package/dist/utils/ConversationModels.d.ts +137 -5
- package/dist/utils/ErrorModels.d.ts +1 -0
- package/dist/utils/JsonUtils.d.ts +15 -0
- package/dist/utils/Option.d.ts +20 -0
- package/dist/utils/RequestParameterModels.d.ts +108 -0
- package/dist/utils/index.d.ts +6 -2
- package/dist/utils/logging.d.ts +53 -1
- package/dist/vonageClientSDK.js +27431 -22683
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +27425 -22684
- package/package.json +7 -3
- package/scripts/replaceAllDoNotUseOrImplement.js +25 -0
- package/typedoc.json +43 -0
- package/dist/global.d.ts +0 -7
- package/dist/lib/ConnectivityManager.d.ts +0 -11
|
@@ -12,6 +12,7 @@ export declare namespace vonage {
|
|
|
12
12
|
callMediaReconnecting(callId: string): void;
|
|
13
13
|
callMediaReconnection(callId: string): void;
|
|
14
14
|
callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
|
|
15
|
+
rtcStatsUpdate(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
15
16
|
reconnecting(): void;
|
|
16
17
|
reconnection(): void;
|
|
17
18
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
@@ -20,29 +21,38 @@ export declare namespace vonage {
|
|
|
20
21
|
}
|
|
21
22
|
export declare namespace vonage {
|
|
22
23
|
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
|
|
23
|
-
constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
24
|
+
constructor(config: vonage.InitConfigObjectJS, http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
24
25
|
get media(): vonage.MediaClientJS;
|
|
25
26
|
get core(): any/* com.vonage.clientcore.core.CoreClientWithMedia */;
|
|
26
27
|
get emitter(): Nullable<vonage.CombinedEvents>;
|
|
27
28
|
set emitter(value: Nullable<vonage.CombinedEvents>);
|
|
28
|
-
createConversation(
|
|
29
|
+
createConversation(parameters: Nullable<vonage.CreateConversationParametersJS>): Promise<string>;
|
|
29
30
|
joinConversation(cid: string): Promise<string>;
|
|
30
31
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
31
32
|
leaveConversation(cid: string): Promise<any>;
|
|
32
33
|
deleteConversation(cid: string): Promise<any>;
|
|
33
|
-
getConversations(
|
|
34
|
-
getConversationMembers(cid: string,
|
|
35
|
-
getConversationEvents(cid: string,
|
|
34
|
+
getConversations(parameters: Nullable<vonage.GetConversationsParametersJS>): Promise<vonage.ConversationsPageJS>;
|
|
35
|
+
getConversationMembers(cid: string, parameters: Nullable<vonage.GetConversationMembersParametersJS>): Promise<vonage.MembersPageJS>;
|
|
36
|
+
getConversationEvents(cid: string, parameters: Nullable<vonage.GetConversationEventsParametersJS>): Promise<vonage.EventsPageJS>;
|
|
36
37
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
37
38
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
38
39
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
39
|
-
|
|
40
|
+
sendMessageImageEvent(cid: string, imageURL: URL): Promise<string>;
|
|
41
|
+
sendMessageVideoEvent(cid: string, videoURL: URL): Promise<string>;
|
|
42
|
+
sendMessageFileEvent(cid: string, fileURL: URL): Promise<string>;
|
|
43
|
+
sendMessageAudioEvent(cid: string, audioURL: URL): Promise<string>;
|
|
44
|
+
sendMessageVCardEvent(cid: string, vCardURL: URL): Promise<string>;
|
|
45
|
+
sendMessageLocationEvent(cid: string, location: vonage.LocationJS): Promise<string>;
|
|
46
|
+
sendMessageTemplateEvent(cid: string, templateObject: vonage.TemplateObjectJS, whatsappObject: vonage.WhatsappObjectJS): Promise<string>;
|
|
47
|
+
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
48
|
+
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
40
49
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
50
|
+
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
41
51
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
42
52
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
43
53
|
deleteSession(): Promise<any>;
|
|
44
54
|
refreshSession(token: string): Promise<any>;
|
|
45
|
-
getConversation(
|
|
55
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
46
56
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
47
57
|
getPeerConnection(id: string): any;
|
|
48
58
|
serverCall(context: Nullable<Json>): Promise<string>;
|
|
@@ -57,7 +67,6 @@ export declare namespace vonage {
|
|
|
57
67
|
enableEarmuff(callId: string): Promise<any>;
|
|
58
68
|
disableEarmuff(callId: string): Promise<any>;
|
|
59
69
|
sendDTMF(callId: string, digits: string): Promise<any>;
|
|
60
|
-
readonly __doNotUseOrImplementIt: vonage.IChatClientJS["__doNotUseOrImplementIt"] & vonage.IVoiceClientJS["__doNotUseOrImplementIt"];
|
|
61
70
|
}
|
|
62
71
|
}
|
|
63
72
|
export declare namespace vonage {
|
|
@@ -68,57 +77,26 @@ export declare namespace vonage {
|
|
|
68
77
|
get nextCursor(): Nullable<string>;
|
|
69
78
|
}
|
|
70
79
|
interface FromJS {
|
|
71
|
-
readonly __doNotUseOrImplementIt: {
|
|
72
|
-
readonly "vonage.FromJS": unique symbol;
|
|
73
|
-
};
|
|
74
80
|
}
|
|
75
81
|
class EmbeddedInfoJS implements vonage.FromJS {
|
|
76
82
|
private constructor();
|
|
77
83
|
get kind(): string;
|
|
78
84
|
get memberId(): Nullable<string>;
|
|
79
85
|
get user(): vonage.UserJS;
|
|
80
|
-
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
81
86
|
}
|
|
82
87
|
const SystemJS: {
|
|
83
88
|
get kind(): string;
|
|
84
89
|
toString(): string;
|
|
85
90
|
hashCode(): number;
|
|
86
91
|
equals(other: Nullable<any>): boolean;
|
|
87
|
-
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
88
92
|
} & vonage.FromJS;
|
|
89
93
|
interface ConversationEventJS {
|
|
90
|
-
readonly kind: string;
|
|
91
|
-
readonly timestamp: string;
|
|
92
|
-
readonly conversationId: string;
|
|
93
|
-
readonly from: vonage.FromJS;
|
|
94
|
-
readonly __doNotUseOrImplementIt: {
|
|
95
|
-
readonly "vonage.ConversationEventJS": unique symbol;
|
|
96
|
-
};
|
|
97
94
|
}
|
|
98
95
|
interface NonPersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
99
|
-
readonly kind: string;
|
|
100
|
-
readonly timestamp: string;
|
|
101
|
-
readonly conversationId: string;
|
|
102
|
-
readonly from: vonage.FromJS;
|
|
103
|
-
readonly __doNotUseOrImplementIt: {
|
|
104
|
-
readonly "vonage.NonPersistentConversationEventJS": unique symbol;
|
|
105
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
106
96
|
}
|
|
107
97
|
interface PersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
108
|
-
readonly id: number;
|
|
109
|
-
readonly kind: string;
|
|
110
|
-
readonly timestamp: string;
|
|
111
|
-
readonly conversationId: string;
|
|
112
|
-
readonly from: vonage.FromJS;
|
|
113
|
-
readonly __doNotUseOrImplementIt: {
|
|
114
|
-
readonly "vonage.PersistentConversationEventJS": unique symbol;
|
|
115
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
116
98
|
}
|
|
117
99
|
interface MemberEventJS {
|
|
118
|
-
readonly body: vonage.MemberEventBodyJS;
|
|
119
|
-
readonly __doNotUseOrImplementIt: {
|
|
120
|
-
readonly "vonage.MemberEventJS": unique symbol;
|
|
121
|
-
};
|
|
122
100
|
}
|
|
123
101
|
class MemberEventBodyJS {
|
|
124
102
|
private constructor();
|
|
@@ -133,7 +111,6 @@ export declare namespace vonage {
|
|
|
133
111
|
get conversationId(): string;
|
|
134
112
|
get from(): vonage.FromJS;
|
|
135
113
|
get body(): vonage.MemberEventBodyJS;
|
|
136
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
137
114
|
}
|
|
138
115
|
class MemberJoinedEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
139
116
|
private constructor();
|
|
@@ -143,7 +120,6 @@ export declare namespace vonage {
|
|
|
143
120
|
get conversationId(): string;
|
|
144
121
|
get from(): vonage.FromJS;
|
|
145
122
|
get body(): vonage.MemberEventBodyJS;
|
|
146
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
147
123
|
}
|
|
148
124
|
class MemberLeftEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
149
125
|
private constructor();
|
|
@@ -153,13 +129,8 @@ export declare namespace vonage {
|
|
|
153
129
|
get conversationId(): string;
|
|
154
130
|
get from(): vonage.FromJS;
|
|
155
131
|
get body(): vonage.MemberEventBodyJS;
|
|
156
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
157
132
|
}
|
|
158
133
|
interface JSONBodyEventJS {
|
|
159
|
-
readonly body: string;
|
|
160
|
-
readonly __doNotUseOrImplementIt: {
|
|
161
|
-
readonly "vonage.JSONBodyEventJS": unique symbol;
|
|
162
|
-
};
|
|
163
134
|
}
|
|
164
135
|
class CustomConversationEventJS implements vonage.PersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
165
136
|
private constructor();
|
|
@@ -170,7 +141,6 @@ export declare namespace vonage {
|
|
|
170
141
|
get from(): vonage.FromJS;
|
|
171
142
|
get eventType(): Nullable<string>;
|
|
172
143
|
get body(): string;
|
|
173
|
-
readonly __doNotUseOrImplementIt: vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"] & vonage.JSONBodyEventJS["__doNotUseOrImplementIt"];
|
|
174
144
|
}
|
|
175
145
|
class EphemeralConversationEventJS implements vonage.NonPersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
176
146
|
private constructor();
|
|
@@ -179,21 +149,37 @@ export declare namespace vonage {
|
|
|
179
149
|
get conversationId(): string;
|
|
180
150
|
get from(): vonage.FromJS;
|
|
181
151
|
get body(): string;
|
|
182
|
-
|
|
152
|
+
}
|
|
153
|
+
class EventDeleteConversationEventJS implements vonage.PersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
154
|
+
private constructor();
|
|
155
|
+
get kind(): string;
|
|
156
|
+
get id(): number;
|
|
157
|
+
get timestamp(): string;
|
|
158
|
+
get conversationId(): string;
|
|
159
|
+
get from(): vonage.FromJS;
|
|
160
|
+
get body(): string;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export declare namespace vonage {
|
|
164
|
+
interface TemplateObjectJS {
|
|
165
|
+
readonly name: string;
|
|
166
|
+
readonly parameters?: Nullable<Array<string>>;
|
|
167
|
+
}
|
|
168
|
+
interface WhatsappObjectJS {
|
|
169
|
+
readonly policy: string;
|
|
170
|
+
readonly locale: string;
|
|
171
|
+
}
|
|
172
|
+
interface LocationJS {
|
|
173
|
+
readonly longitude: string;
|
|
174
|
+
readonly latitude: string;
|
|
175
|
+
readonly name?: Nullable<string>;
|
|
176
|
+
readonly address?: Nullable<string>;
|
|
183
177
|
}
|
|
184
178
|
}
|
|
185
179
|
export declare namespace vonage {
|
|
186
180
|
interface MessageEventJS {
|
|
187
|
-
readonly body: vonage.MessageEventBodyJS;
|
|
188
|
-
readonly __doNotUseOrImplementIt: {
|
|
189
|
-
readonly "vonage.MessageEventJS": unique symbol;
|
|
190
|
-
};
|
|
191
181
|
}
|
|
192
182
|
interface MessageEventBodyJS {
|
|
193
|
-
readonly deleted: Nullable<string>;
|
|
194
|
-
readonly __doNotUseOrImplementIt: {
|
|
195
|
-
readonly "vonage.MessageEventBodyJS": unique symbol;
|
|
196
|
-
};
|
|
197
183
|
}
|
|
198
184
|
class MessageTextEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
199
185
|
private constructor();
|
|
@@ -202,15 +188,13 @@ export declare namespace vonage {
|
|
|
202
188
|
get timestamp(): string;
|
|
203
189
|
get conversationId(): string;
|
|
204
190
|
get from(): vonage.FromJS;
|
|
205
|
-
get body(): vonage.MessageTextEventJS.
|
|
206
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
191
|
+
get body(): vonage.MessageTextEventJS.MessageTextEventBody;
|
|
207
192
|
}
|
|
208
193
|
namespace MessageTextEventJS {
|
|
209
|
-
class
|
|
194
|
+
class MessageTextEventBody implements vonage.MessageEventBodyJS {
|
|
210
195
|
private constructor();
|
|
211
196
|
get text(): string;
|
|
212
197
|
get deleted(): Nullable<string>;
|
|
213
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
214
198
|
}
|
|
215
199
|
}
|
|
216
200
|
class MessageCustomEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -220,15 +204,13 @@ export declare namespace vonage {
|
|
|
220
204
|
get timestamp(): string;
|
|
221
205
|
get conversationId(): string;
|
|
222
206
|
get from(): vonage.FromJS;
|
|
223
|
-
get body(): vonage.MessageCustomEventJS.
|
|
224
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
207
|
+
get body(): vonage.MessageCustomEventJS.MessageCustomEventBody;
|
|
225
208
|
}
|
|
226
209
|
namespace MessageCustomEventJS {
|
|
227
|
-
class
|
|
210
|
+
class MessageCustomEventBody implements vonage.MessageEventBodyJS {
|
|
228
211
|
private constructor();
|
|
229
212
|
get customData(): string;
|
|
230
213
|
get deleted(): Nullable<string>;
|
|
231
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
232
214
|
}
|
|
233
215
|
}
|
|
234
216
|
class MessageAudioEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -238,15 +220,13 @@ export declare namespace vonage {
|
|
|
238
220
|
get timestamp(): string;
|
|
239
221
|
get conversationId(): string;
|
|
240
222
|
get from(): vonage.FromJS;
|
|
241
|
-
get body(): vonage.MessageAudioEventJS.
|
|
242
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
223
|
+
get body(): vonage.MessageAudioEventJS.MessageAudioEventBody;
|
|
243
224
|
}
|
|
244
225
|
namespace MessageAudioEventJS {
|
|
245
|
-
class
|
|
226
|
+
class MessageAudioEventBody implements vonage.MessageEventBodyJS {
|
|
246
227
|
private constructor();
|
|
247
228
|
get audioUrl(): string;
|
|
248
229
|
get deleted(): Nullable<string>;
|
|
249
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
250
230
|
}
|
|
251
231
|
}
|
|
252
232
|
class MessageVideoEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -256,15 +236,13 @@ export declare namespace vonage {
|
|
|
256
236
|
get timestamp(): string;
|
|
257
237
|
get conversationId(): string;
|
|
258
238
|
get from(): vonage.FromJS;
|
|
259
|
-
get body(): vonage.MessageVideoEventJS.
|
|
260
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
239
|
+
get body(): vonage.MessageVideoEventJS.MessageVideoEventBody;
|
|
261
240
|
}
|
|
262
241
|
namespace MessageVideoEventJS {
|
|
263
|
-
class
|
|
242
|
+
class MessageVideoEventBody implements vonage.MessageEventBodyJS {
|
|
264
243
|
private constructor();
|
|
265
244
|
get videoUrl(): string;
|
|
266
245
|
get deleted(): Nullable<string>;
|
|
267
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
268
246
|
}
|
|
269
247
|
}
|
|
270
248
|
class MessageImageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -274,15 +252,13 @@ export declare namespace vonage {
|
|
|
274
252
|
get timestamp(): string;
|
|
275
253
|
get conversationId(): string;
|
|
276
254
|
get from(): vonage.FromJS;
|
|
277
|
-
get body(): vonage.MessageImageEventJS.
|
|
278
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
255
|
+
get body(): vonage.MessageImageEventJS.MessageImageEventBody;
|
|
279
256
|
}
|
|
280
257
|
namespace MessageImageEventJS {
|
|
281
|
-
class
|
|
258
|
+
class MessageImageEventBody implements vonage.MessageEventBodyJS {
|
|
282
259
|
private constructor();
|
|
283
260
|
get imageUrl(): string;
|
|
284
261
|
get deleted(): Nullable<string>;
|
|
285
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
286
262
|
}
|
|
287
263
|
}
|
|
288
264
|
class MessageFileEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -292,15 +268,13 @@ export declare namespace vonage {
|
|
|
292
268
|
get timestamp(): string;
|
|
293
269
|
get conversationId(): string;
|
|
294
270
|
get from(): vonage.FromJS;
|
|
295
|
-
get body(): vonage.MessageFileEventJS.
|
|
296
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
271
|
+
get body(): vonage.MessageFileEventJS.MessageFileEventBody;
|
|
297
272
|
}
|
|
298
273
|
namespace MessageFileEventJS {
|
|
299
|
-
class
|
|
274
|
+
class MessageFileEventBody implements vonage.MessageEventBodyJS {
|
|
300
275
|
private constructor();
|
|
301
276
|
get fileUrl(): string;
|
|
302
277
|
get deleted(): Nullable<string>;
|
|
303
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
304
278
|
}
|
|
305
279
|
}
|
|
306
280
|
class MessageVCardEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -310,15 +284,13 @@ export declare namespace vonage {
|
|
|
310
284
|
get timestamp(): string;
|
|
311
285
|
get conversationId(): string;
|
|
312
286
|
get from(): vonage.FromJS;
|
|
313
|
-
get body(): vonage.MessageVCardEventJS.
|
|
314
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
287
|
+
get body(): vonage.MessageVCardEventJS.MessageVCardEventBody;
|
|
315
288
|
}
|
|
316
289
|
namespace MessageVCardEventJS {
|
|
317
|
-
class
|
|
290
|
+
class MessageVCardEventBody implements vonage.MessageEventBodyJS {
|
|
318
291
|
private constructor();
|
|
319
292
|
get vcardUrl(): string;
|
|
320
293
|
get deleted(): Nullable<string>;
|
|
321
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
322
294
|
}
|
|
323
295
|
}
|
|
324
296
|
class MessageLocationEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -328,15 +300,13 @@ export declare namespace vonage {
|
|
|
328
300
|
get timestamp(): string;
|
|
329
301
|
get conversationId(): string;
|
|
330
302
|
get from(): vonage.FromJS;
|
|
331
|
-
get body(): vonage.MessageLocationEventJS.
|
|
332
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
303
|
+
get body(): vonage.MessageLocationEventJS.MessageLocationEventBody;
|
|
333
304
|
}
|
|
334
305
|
namespace MessageLocationEventJS {
|
|
335
|
-
class
|
|
306
|
+
class MessageLocationEventBody implements vonage.MessageEventBodyJS {
|
|
336
307
|
private constructor();
|
|
337
308
|
get location(): vonage.MessageLocationEventJS.Location;
|
|
338
309
|
get deleted(): Nullable<string>;
|
|
339
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
340
310
|
}
|
|
341
311
|
class Location {
|
|
342
312
|
private constructor();
|
|
@@ -353,21 +323,19 @@ export declare namespace vonage {
|
|
|
353
323
|
get timestamp(): string;
|
|
354
324
|
get conversationId(): string;
|
|
355
325
|
get from(): vonage.FromJS;
|
|
356
|
-
get body(): vonage.MessageTemplateEventJS.
|
|
357
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
326
|
+
get body(): vonage.MessageTemplateEventJS.MessageTemplateEventBody;
|
|
358
327
|
}
|
|
359
328
|
namespace MessageTemplateEventJS {
|
|
360
|
-
class
|
|
329
|
+
class MessageTemplateEventBody implements vonage.MessageEventBodyJS {
|
|
361
330
|
private constructor();
|
|
362
331
|
get body(): any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */;
|
|
363
332
|
get template(): vonage.MessageTemplateEventJS.TemplateObject;
|
|
364
333
|
get whatsapp(): vonage.MessageTemplateEventJS.WhatsappObject;
|
|
365
334
|
get deleted(): Nullable<string>;
|
|
366
|
-
copy(body?: any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */): vonage.MessageTemplateEventJS.
|
|
335
|
+
copy(body?: any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */): vonage.MessageTemplateEventJS.MessageTemplateEventBody;
|
|
367
336
|
toString(): string;
|
|
368
337
|
hashCode(): number;
|
|
369
338
|
equals(other: Nullable<any>): boolean;
|
|
370
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
371
339
|
}
|
|
372
340
|
class TemplateObject {
|
|
373
341
|
private constructor();
|
|
@@ -424,8 +392,15 @@ export declare namespace vonage {
|
|
|
424
392
|
get displayName(): Nullable<string>;
|
|
425
393
|
get imageUrl(): Nullable<string>;
|
|
426
394
|
get state(): Nullable<string>;
|
|
427
|
-
get
|
|
428
|
-
|
|
395
|
+
get properties(): vonage.ConversationJS.Properties;
|
|
396
|
+
}
|
|
397
|
+
namespace ConversationJS {
|
|
398
|
+
class Properties {
|
|
399
|
+
private constructor();
|
|
400
|
+
get ttl(): Nullable<number>;
|
|
401
|
+
get customSortKey(): Nullable<string>;
|
|
402
|
+
get customData(): Nullable<string>;
|
|
403
|
+
}
|
|
429
404
|
}
|
|
430
405
|
const ConversationStateJS: {
|
|
431
406
|
get ACTIVE(): string;
|
|
@@ -598,6 +573,7 @@ export declare namespace vonage {
|
|
|
598
573
|
get INVALID_CURSOR(): string;
|
|
599
574
|
get VALIDATION_FAIL(): string;
|
|
600
575
|
get CONVERSATION_MAX_NUMBER_OF_MEMBERS(): string;
|
|
576
|
+
get CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED(): string;
|
|
601
577
|
};
|
|
602
578
|
const SessionErrorCodesJS: {
|
|
603
579
|
get EMPTY_TOKEN(): string;
|
|
@@ -664,28 +640,34 @@ export declare namespace vonage {
|
|
|
664
640
|
export declare namespace vonage {
|
|
665
641
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
666
642
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
667
|
-
createConversation(
|
|
643
|
+
createConversation(parameters: Nullable<vonage.CreateConversationParametersJS>): Promise<string>;
|
|
668
644
|
joinConversation(cid: string): Promise<string>;
|
|
669
645
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
670
646
|
leaveConversation(cid: string): Promise<any>;
|
|
671
647
|
deleteConversation(cid: string): Promise<any>;
|
|
672
|
-
getConversations(
|
|
673
|
-
getConversationMembers(cid: string,
|
|
674
|
-
getConversationEvents(cid: string,
|
|
648
|
+
getConversations(parameters: Nullable<vonage.GetConversationsParametersJS>): Promise<vonage.ConversationsPageJS>;
|
|
649
|
+
getConversationMembers(cid: string, parameters: Nullable<vonage.GetConversationMembersParametersJS>): Promise<vonage.MembersPageJS>;
|
|
650
|
+
getConversationEvents(cid: string, parameters: Nullable<vonage.GetConversationEventsParametersJS>): Promise<vonage.EventsPageJS>;
|
|
675
651
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
676
652
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
677
653
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
678
|
-
|
|
654
|
+
sendMessageImageEvent(cid: string, imageURL: URL): Promise<string>;
|
|
655
|
+
sendMessageVideoEvent(cid: string, videoURL: URL): Promise<string>;
|
|
656
|
+
sendMessageFileEvent(cid: string, fileURL: URL): Promise<string>;
|
|
657
|
+
sendMessageAudioEvent(cid: string, audioURL: URL): Promise<string>;
|
|
658
|
+
sendMessageVCardEvent(cid: string, vCardURL: URL): Promise<string>;
|
|
659
|
+
sendMessageLocationEvent(cid: string, location: vonage.LocationJS): Promise<string>;
|
|
660
|
+
sendMessageTemplateEvent(cid: string, templateObject: vonage.TemplateObjectJS, whatsappObject: vonage.WhatsappObjectJS): Promise<string>;
|
|
661
|
+
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
662
|
+
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
679
663
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
664
|
+
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
680
665
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
681
666
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
682
667
|
deleteSession(): Promise<any>;
|
|
683
668
|
refreshSession(token: string): Promise<any>;
|
|
684
|
-
getConversation(
|
|
669
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
685
670
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
686
|
-
readonly __doNotUseOrImplementIt: {
|
|
687
|
-
readonly "vonage.IChatClientJS": unique symbol;
|
|
688
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
689
671
|
}
|
|
690
672
|
}
|
|
691
673
|
export declare namespace vonage {
|
|
@@ -694,23 +676,34 @@ export declare namespace vonage {
|
|
|
694
676
|
reconnection(): void;
|
|
695
677
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
696
678
|
}
|
|
679
|
+
interface VonageLoggerJS {
|
|
680
|
+
readonly name: string;
|
|
681
|
+
readonly minLogLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
682
|
+
readonly topics?: Nullable<Array<vonage.Topics>>;
|
|
683
|
+
onLog(logLevel: string, topic: vonage.TopicJS, message: string): void;
|
|
684
|
+
}
|
|
697
685
|
interface ConfigObjectJS {
|
|
698
686
|
readonly region?: Nullable<vonage.CoreClientConfigRegionJS>;
|
|
699
687
|
readonly apiUrl?: Nullable<string>;
|
|
700
688
|
readonly websocketUrl?: Nullable<string>;
|
|
701
689
|
readonly websocketPath?: Nullable<string>;
|
|
702
|
-
readonly
|
|
690
|
+
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
691
|
+
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
703
692
|
}
|
|
704
693
|
interface InitConfigObjectJS extends vonage.ConfigObjectJS {
|
|
705
694
|
readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
695
|
+
readonly customLoggers?: Nullable<Array<vonage.VonageLoggerJS>>;
|
|
696
|
+
readonly disableInternalLogger?: Nullable<boolean>;
|
|
706
697
|
readonly region?: Nullable<vonage.CoreClientConfigRegionJS>;
|
|
707
698
|
readonly apiUrl?: Nullable<string>;
|
|
708
699
|
readonly websocketUrl?: Nullable<string>;
|
|
709
700
|
readonly websocketPath?: Nullable<string>;
|
|
710
|
-
readonly
|
|
701
|
+
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
702
|
+
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
711
703
|
}
|
|
712
704
|
}
|
|
713
705
|
export declare namespace vonage {
|
|
706
|
+
const DEFAULT_REGION: vonage.CoreClientConfigRegionJS;
|
|
714
707
|
abstract class CoreClientConfigRegionJS {
|
|
715
708
|
private constructor();
|
|
716
709
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -740,14 +733,56 @@ export declare namespace vonage {
|
|
|
740
733
|
set websocketUrl(value: string);
|
|
741
734
|
get websocketPath(): string;
|
|
742
735
|
set websocketPath(value: string);
|
|
743
|
-
get
|
|
744
|
-
set
|
|
736
|
+
get rtcStatsTelemetry(): boolean;
|
|
737
|
+
set rtcStatsTelemetry(value: boolean);
|
|
738
|
+
get autoReconnectMedia(): boolean;
|
|
739
|
+
set autoReconnectMedia(value: boolean);
|
|
745
740
|
}
|
|
746
|
-
class
|
|
747
|
-
constructor(
|
|
748
|
-
get
|
|
749
|
-
|
|
741
|
+
class TopicJS {
|
|
742
|
+
constructor(name: string, tag: string);
|
|
743
|
+
get name(): string;
|
|
744
|
+
get tag(): string;
|
|
745
|
+
copy(name?: string, tag?: string): vonage.TopicJS;
|
|
746
|
+
toString(): string;
|
|
747
|
+
hashCode(): number;
|
|
748
|
+
equals(other: Nullable<any>): boolean;
|
|
749
|
+
}
|
|
750
|
+
abstract class Topics {
|
|
751
|
+
private constructor();
|
|
752
|
+
static get HTTP(): vonage.Topics & {
|
|
753
|
+
get name(): "HTTP";
|
|
754
|
+
get ordinal(): 0;
|
|
755
|
+
};
|
|
756
|
+
static get WS(): vonage.Topics & {
|
|
757
|
+
get name(): "WS";
|
|
758
|
+
get ordinal(): 1;
|
|
759
|
+
};
|
|
760
|
+
static get MEDIA(): vonage.Topics & {
|
|
761
|
+
get name(): "MEDIA";
|
|
762
|
+
get ordinal(): 2;
|
|
763
|
+
};
|
|
764
|
+
static get API(): vonage.Topics & {
|
|
765
|
+
get name(): "API";
|
|
766
|
+
get ordinal(): 3;
|
|
767
|
+
};
|
|
768
|
+
static get STORE(): vonage.Topics & {
|
|
769
|
+
get name(): "STORE";
|
|
770
|
+
get ordinal(): 4;
|
|
771
|
+
};
|
|
772
|
+
static get REDUCER(): vonage.Topics & {
|
|
773
|
+
get name(): "REDUCER";
|
|
774
|
+
get ordinal(): 5;
|
|
775
|
+
};
|
|
776
|
+
static get DEFAULT(): vonage.Topics & {
|
|
777
|
+
get name(): "DEFAULT";
|
|
778
|
+
get ordinal(): 6;
|
|
779
|
+
};
|
|
780
|
+
static values(): Array<vonage.Topics>;
|
|
781
|
+
static valueOf(value: string): vonage.Topics;
|
|
782
|
+
get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "DEFAULT";
|
|
783
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
750
784
|
}
|
|
785
|
+
function createVonageLoggerJS(name: string, minLogLevel: vonage.LoggingLevelJS | undefined, topics: Array<vonage.Topics> | undefined, onLog: (p0: string, p1: vonage.TopicJS, p2: string) => void): vonage.VonageLoggerJS;
|
|
751
786
|
abstract class LoggingLevelJS {
|
|
752
787
|
private constructor();
|
|
753
788
|
static get Verbose(): vonage.LoggingLevelJS & {
|
|
@@ -779,6 +814,8 @@ export declare namespace vonage {
|
|
|
779
814
|
get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
|
|
780
815
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
781
816
|
}
|
|
817
|
+
const DEFAULT_LOGGING_LEVEL: vonage.LoggingLevelJS;
|
|
818
|
+
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
782
819
|
abstract class SessionErrorReasonJS {
|
|
783
820
|
private constructor();
|
|
784
821
|
get reason(): any/* com.vonage.clientcore.core.api.SessionErrorReason */;
|
|
@@ -799,18 +836,14 @@ export declare namespace vonage {
|
|
|
799
836
|
get name(): "EXPIRED_TOKEN" | "TRANSPORT_CLOSED" | "PING_TIMEOUT";
|
|
800
837
|
get ordinal(): 0 | 1 | 2;
|
|
801
838
|
}
|
|
802
|
-
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
803
839
|
interface ICoreClientJS {
|
|
804
840
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
805
841
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
806
842
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
807
843
|
deleteSession(): Promise<any>;
|
|
808
844
|
refreshSession(token: string): Promise<any>;
|
|
809
|
-
getConversation(
|
|
845
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
810
846
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
811
|
-
readonly __doNotUseOrImplementIt: {
|
|
812
|
-
readonly "vonage.ICoreClientJS": unique symbol;
|
|
813
|
-
};
|
|
814
847
|
}
|
|
815
848
|
}
|
|
816
849
|
export declare namespace vonage {
|
|
@@ -826,6 +859,7 @@ export declare namespace vonage {
|
|
|
826
859
|
callMediaReconnecting(callId: string): void;
|
|
827
860
|
callMediaReconnection(callId: string): void;
|
|
828
861
|
callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
|
|
862
|
+
rtcStatsUpdate(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
829
863
|
reconnecting(): void;
|
|
830
864
|
reconnection(): void;
|
|
831
865
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
@@ -917,11 +951,8 @@ export declare namespace vonage {
|
|
|
917
951
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
918
952
|
deleteSession(): Promise<any>;
|
|
919
953
|
refreshSession(token: string): Promise<any>;
|
|
920
|
-
getConversation(
|
|
954
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
921
955
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
922
|
-
readonly __doNotUseOrImplementIt: {
|
|
923
|
-
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
924
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
925
956
|
}
|
|
926
957
|
class VoiceInviteFromInfoJS {
|
|
927
958
|
constructor(id: Nullable<string>, type: string);
|
|
@@ -940,13 +971,15 @@ export declare namespace vonage {
|
|
|
940
971
|
interface SocketClientJS {
|
|
941
972
|
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
942
973
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
943
|
-
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
974
|
+
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, token: string, sessionId: Nullable<string>, query: string): void;
|
|
944
975
|
disconnect(): void;
|
|
945
|
-
setConnectParamsSocketConfig(token: string): void;
|
|
976
|
+
setConnectParamsSocketConfig(sessionId: string, token: string): void;
|
|
977
|
+
setSocketSessionId(sessionId: string): void;
|
|
978
|
+
setSocketToken(token: string): void;
|
|
946
979
|
startVerifyResponseTimer(milliseconds: any/* kotlin.Number */, callback: () => void): void;
|
|
947
980
|
}
|
|
948
981
|
interface SocketClientDelegateJS {
|
|
949
|
-
didReceiveNewSocketEvent(
|
|
982
|
+
didReceiveNewSocketEvent(body: string): void;
|
|
950
983
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
951
984
|
}
|
|
952
985
|
interface MediaClientJS {
|
|
@@ -961,9 +994,8 @@ export declare namespace vonage {
|
|
|
961
994
|
enableRtcStatsCollection(interval: any/* kotlin.Number */, mediaId: string): void;
|
|
962
995
|
}
|
|
963
996
|
interface MediaClientDelegateJS {
|
|
964
|
-
onRtcStats(rtcStats: vonage.RTCStatsJS): void;
|
|
997
|
+
onRtcStats(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
965
998
|
onConnectionChange(id: string, status: string): void;
|
|
966
|
-
onNetworkChange(legId: string, status: string): void;
|
|
967
999
|
}
|
|
968
1000
|
}
|
|
969
1001
|
export declare namespace vonage {
|
|
@@ -1032,21 +1064,90 @@ export declare namespace vonage {
|
|
|
1032
1064
|
equals(other: Nullable<any>): boolean;
|
|
1033
1065
|
}
|
|
1034
1066
|
class RTCStatsJS {
|
|
1035
|
-
constructor(audioRecvPackets:
|
|
1036
|
-
get audioRecvPackets():
|
|
1037
|
-
get audioRecvPacketsLost():
|
|
1038
|
-
get audioRecvBytes():
|
|
1039
|
-
get audioRecvJitter():
|
|
1040
|
-
get audioSentPackets():
|
|
1041
|
-
get audioSentBytes():
|
|
1042
|
-
get audioSentPacketsLost():
|
|
1043
|
-
get audioRtt():
|
|
1044
|
-
get audioSentJitter():
|
|
1045
|
-
|
|
1046
|
-
copy(audioRecvPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvJitter?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRtt?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentJitter?: Nullable<any>/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
|
|
1067
|
+
constructor(audioRecvPackets: any/* kotlin.Number */, audioRecvPacketsLost: any/* kotlin.Number */, audioRecvBytes: any/* kotlin.Number */, audioRecvJitter: any/* kotlin.Number */, audioSentPackets: any/* kotlin.Number */, audioSentBytes: any/* kotlin.Number */, audioSentPacketsLost: any/* kotlin.Number */, audioRtt: any/* kotlin.Number */, audioSentJitter: any/* kotlin.Number */);
|
|
1068
|
+
get audioRecvPackets(): any/* kotlin.Number */;
|
|
1069
|
+
get audioRecvPacketsLost(): any/* kotlin.Number */;
|
|
1070
|
+
get audioRecvBytes(): any/* kotlin.Number */;
|
|
1071
|
+
get audioRecvJitter(): any/* kotlin.Number */;
|
|
1072
|
+
get audioSentPackets(): any/* kotlin.Number */;
|
|
1073
|
+
get audioSentBytes(): any/* kotlin.Number */;
|
|
1074
|
+
get audioSentPacketsLost(): any/* kotlin.Number */;
|
|
1075
|
+
get audioRtt(): any/* kotlin.Number */;
|
|
1076
|
+
get audioSentJitter(): any/* kotlin.Number */;
|
|
1077
|
+
copy(audioRecvPackets?: any/* kotlin.Number */, audioRecvPacketsLost?: any/* kotlin.Number */, audioRecvBytes?: any/* kotlin.Number */, audioRecvJitter?: any/* kotlin.Number */, audioSentPackets?: any/* kotlin.Number */, audioSentBytes?: any/* kotlin.Number */, audioSentPacketsLost?: any/* kotlin.Number */, audioRtt?: any/* kotlin.Number */, audioSentJitter?: any/* kotlin.Number */): vonage.RTCStatsJS;
|
|
1047
1078
|
toString(): string;
|
|
1048
1079
|
hashCode(): number;
|
|
1049
1080
|
equals(other: Nullable<any>): boolean;
|
|
1081
|
+
static get Companion(): {
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
export declare namespace vonage {
|
|
1086
|
+
interface CreateConversationParametersJS {
|
|
1087
|
+
readonly name?: Nullable<string>;
|
|
1088
|
+
readonly displayName?: Nullable<string>;
|
|
1089
|
+
readonly imageUrl?: Nullable<string>;
|
|
1090
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1091
|
+
readonly customSortKey?: Nullable<string>;
|
|
1092
|
+
readonly customData?: Nullable<string>;
|
|
1093
|
+
}
|
|
1094
|
+
interface UpdateConversationParametersJS {
|
|
1095
|
+
name: vonage.utils.OptionJS<string>;
|
|
1096
|
+
displayName: vonage.utils.OptionJS<Nullable<string>>;
|
|
1097
|
+
imageUrl: vonage.utils.OptionJS<Nullable<string>>;
|
|
1098
|
+
ttl: vonage.utils.OptionJS<any/* kotlin.Number */>;
|
|
1099
|
+
customSortKey: vonage.utils.OptionJS<Nullable<string>>;
|
|
1100
|
+
customData: vonage.utils.OptionJS<Nullable<string>>;
|
|
1101
|
+
}
|
|
1102
|
+
interface GetConversationsParametersJS {
|
|
1103
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1104
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1105
|
+
readonly cursor?: Nullable<string>;
|
|
1106
|
+
readonly includeCustomData?: Nullable<boolean>;
|
|
1107
|
+
readonly orderBy?: Nullable<vonage.OrderByJS>;
|
|
1108
|
+
}
|
|
1109
|
+
interface GetConversationEventsParametersJS {
|
|
1110
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1111
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1112
|
+
readonly cursor?: Nullable<string>;
|
|
1113
|
+
readonly eventFilter?: Nullable<Array<string>>;
|
|
1114
|
+
readonly includeDeletedEvents?: Nullable<boolean>;
|
|
1115
|
+
readonly startId?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1116
|
+
}
|
|
1117
|
+
interface GetConversationMembersParametersJS {
|
|
1118
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1119
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1120
|
+
readonly cursor?: Nullable<string>;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
export declare namespace vonage.utils {
|
|
1124
|
+
abstract class OptionJS<T> {
|
|
1125
|
+
protected constructor();
|
|
1126
|
+
orNull(): Nullable<T>;
|
|
1127
|
+
contains<R>(value: R): boolean;
|
|
1128
|
+
map<R>(f: (p0: T) => R): vonage.utils.OptionJS<R>;
|
|
1129
|
+
mapOr<R>(_default: R, f: (p0: T) => R): R;
|
|
1130
|
+
mapOrElse<R>(_default: () => R, f: (p0: T) => R): R;
|
|
1131
|
+
mapNotNull<R>(f: (p0: T) => R): vonage.utils.OptionJS<Nullable<R>>;
|
|
1132
|
+
unwrapOr(_default: T): T;
|
|
1133
|
+
equals(other: Nullable<any>): boolean;
|
|
1134
|
+
hashCode(): number;
|
|
1135
|
+
static get Companion(): {
|
|
1136
|
+
of<T>(value: Nullable<T>): vonage.utils.OptionJS<T>;
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
namespace OptionJS {
|
|
1140
|
+
class None<T> extends vonage.utils.OptionJS<T> {
|
|
1141
|
+
constructor();
|
|
1142
|
+
}
|
|
1143
|
+
class Some<T> extends vonage.utils.OptionJS<T> {
|
|
1144
|
+
constructor(value: T);
|
|
1145
|
+
get value(): T;
|
|
1146
|
+
copy(value?: T): vonage.utils.OptionJS.Some<T>;
|
|
1147
|
+
toString(): string;
|
|
1148
|
+
hashCode(): number;
|
|
1149
|
+
equals(other: Nullable<any>): boolean;
|
|
1150
|
+
}
|
|
1050
1151
|
}
|
|
1051
1152
|
}
|
|
1052
1153
|
export as namespace clientsdk_clientcore_js;
|