@vonage/client-sdk 1.2.1-beta.6 → 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 +260 -29
- package/dist/client/index.cjs +28243 -23482
- package/dist/client/index.mjs +28237 -23481
- package/dist/coreExtend.d.ts +9 -13
- package/dist/kotlin/JsUnions.d.ts +143 -92
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +268 -197
- package/dist/lib/MediaClient.d.ts +1 -1
- package/dist/lib/SocketClient.d.ts +7 -2
- package/dist/utils/ClientConfig.d.ts +72 -21
- package/dist/utils/ConversationEventBodies.d.ts +134 -0
- package/dist/utils/ConversationModels.d.ts +150 -12
- 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 +27845 -22942
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +27839 -22941
- 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/utils/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,9 +129,10 @@ 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 {
|
|
134
|
+
}
|
|
135
|
+
class CustomConversationEventJS implements vonage.PersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
159
136
|
private constructor();
|
|
160
137
|
get kind(): string;
|
|
161
138
|
get id(): number;
|
|
@@ -164,29 +141,45 @@ export declare namespace vonage {
|
|
|
164
141
|
get from(): vonage.FromJS;
|
|
165
142
|
get eventType(): Nullable<string>;
|
|
166
143
|
get body(): string;
|
|
167
|
-
readonly __doNotUseOrImplementIt: vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
168
144
|
}
|
|
169
|
-
class EphemeralConversationEventJS implements vonage.NonPersistentConversationEventJS {
|
|
145
|
+
class EphemeralConversationEventJS implements vonage.NonPersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
170
146
|
private constructor();
|
|
171
147
|
get kind(): string;
|
|
172
148
|
get timestamp(): string;
|
|
173
149
|
get conversationId(): string;
|
|
174
150
|
get from(): vonage.FromJS;
|
|
175
151
|
get body(): string;
|
|
176
|
-
|
|
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>;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
export declare namespace vonage {
|
|
180
180
|
interface MessageEventJS {
|
|
181
|
-
readonly __doNotUseOrImplementIt: {
|
|
182
|
-
readonly "vonage.MessageEventJS": unique symbol;
|
|
183
|
-
};
|
|
184
181
|
}
|
|
185
182
|
interface MessageEventBodyJS {
|
|
186
|
-
readonly deleted: Nullable<string>;
|
|
187
|
-
readonly __doNotUseOrImplementIt: {
|
|
188
|
-
readonly "vonage.MessageEventBodyJS": unique symbol;
|
|
189
|
-
};
|
|
190
183
|
}
|
|
191
184
|
class MessageTextEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
192
185
|
private constructor();
|
|
@@ -195,15 +188,13 @@ export declare namespace vonage {
|
|
|
195
188
|
get timestamp(): string;
|
|
196
189
|
get conversationId(): string;
|
|
197
190
|
get from(): vonage.FromJS;
|
|
198
|
-
get body(): vonage.MessageTextEventJS.
|
|
199
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
191
|
+
get body(): vonage.MessageTextEventJS.MessageTextEventBody;
|
|
200
192
|
}
|
|
201
193
|
namespace MessageTextEventJS {
|
|
202
|
-
class
|
|
194
|
+
class MessageTextEventBody implements vonage.MessageEventBodyJS {
|
|
203
195
|
private constructor();
|
|
204
196
|
get text(): string;
|
|
205
197
|
get deleted(): Nullable<string>;
|
|
206
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
207
198
|
}
|
|
208
199
|
}
|
|
209
200
|
class MessageCustomEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -213,15 +204,13 @@ export declare namespace vonage {
|
|
|
213
204
|
get timestamp(): string;
|
|
214
205
|
get conversationId(): string;
|
|
215
206
|
get from(): vonage.FromJS;
|
|
216
|
-
get body(): vonage.MessageCustomEventJS.
|
|
217
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
207
|
+
get body(): vonage.MessageCustomEventJS.MessageCustomEventBody;
|
|
218
208
|
}
|
|
219
209
|
namespace MessageCustomEventJS {
|
|
220
|
-
class
|
|
210
|
+
class MessageCustomEventBody implements vonage.MessageEventBodyJS {
|
|
221
211
|
private constructor();
|
|
222
212
|
get customData(): string;
|
|
223
213
|
get deleted(): Nullable<string>;
|
|
224
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
225
214
|
}
|
|
226
215
|
}
|
|
227
216
|
class MessageAudioEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -231,15 +220,13 @@ export declare namespace vonage {
|
|
|
231
220
|
get timestamp(): string;
|
|
232
221
|
get conversationId(): string;
|
|
233
222
|
get from(): vonage.FromJS;
|
|
234
|
-
get body(): vonage.MessageAudioEventJS.
|
|
235
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
223
|
+
get body(): vonage.MessageAudioEventJS.MessageAudioEventBody;
|
|
236
224
|
}
|
|
237
225
|
namespace MessageAudioEventJS {
|
|
238
|
-
class
|
|
226
|
+
class MessageAudioEventBody implements vonage.MessageEventBodyJS {
|
|
239
227
|
private constructor();
|
|
240
228
|
get audioUrl(): string;
|
|
241
229
|
get deleted(): Nullable<string>;
|
|
242
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
243
230
|
}
|
|
244
231
|
}
|
|
245
232
|
class MessageVideoEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -249,15 +236,13 @@ export declare namespace vonage {
|
|
|
249
236
|
get timestamp(): string;
|
|
250
237
|
get conversationId(): string;
|
|
251
238
|
get from(): vonage.FromJS;
|
|
252
|
-
get body(): vonage.MessageVideoEventJS.
|
|
253
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
239
|
+
get body(): vonage.MessageVideoEventJS.MessageVideoEventBody;
|
|
254
240
|
}
|
|
255
241
|
namespace MessageVideoEventJS {
|
|
256
|
-
class
|
|
242
|
+
class MessageVideoEventBody implements vonage.MessageEventBodyJS {
|
|
257
243
|
private constructor();
|
|
258
244
|
get videoUrl(): string;
|
|
259
245
|
get deleted(): Nullable<string>;
|
|
260
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
261
246
|
}
|
|
262
247
|
}
|
|
263
248
|
class MessageImageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -267,15 +252,13 @@ export declare namespace vonage {
|
|
|
267
252
|
get timestamp(): string;
|
|
268
253
|
get conversationId(): string;
|
|
269
254
|
get from(): vonage.FromJS;
|
|
270
|
-
get body(): vonage.MessageImageEventJS.
|
|
271
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
255
|
+
get body(): vonage.MessageImageEventJS.MessageImageEventBody;
|
|
272
256
|
}
|
|
273
257
|
namespace MessageImageEventJS {
|
|
274
|
-
class
|
|
258
|
+
class MessageImageEventBody implements vonage.MessageEventBodyJS {
|
|
275
259
|
private constructor();
|
|
276
260
|
get imageUrl(): string;
|
|
277
261
|
get deleted(): Nullable<string>;
|
|
278
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
279
262
|
}
|
|
280
263
|
}
|
|
281
264
|
class MessageFileEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -285,15 +268,13 @@ export declare namespace vonage {
|
|
|
285
268
|
get timestamp(): string;
|
|
286
269
|
get conversationId(): string;
|
|
287
270
|
get from(): vonage.FromJS;
|
|
288
|
-
get body(): vonage.MessageFileEventJS.
|
|
289
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
271
|
+
get body(): vonage.MessageFileEventJS.MessageFileEventBody;
|
|
290
272
|
}
|
|
291
273
|
namespace MessageFileEventJS {
|
|
292
|
-
class
|
|
274
|
+
class MessageFileEventBody implements vonage.MessageEventBodyJS {
|
|
293
275
|
private constructor();
|
|
294
276
|
get fileUrl(): string;
|
|
295
277
|
get deleted(): Nullable<string>;
|
|
296
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
297
278
|
}
|
|
298
279
|
}
|
|
299
280
|
class MessageVCardEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -303,15 +284,13 @@ export declare namespace vonage {
|
|
|
303
284
|
get timestamp(): string;
|
|
304
285
|
get conversationId(): string;
|
|
305
286
|
get from(): vonage.FromJS;
|
|
306
|
-
get body(): vonage.MessageVCardEventJS.
|
|
307
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
287
|
+
get body(): vonage.MessageVCardEventJS.MessageVCardEventBody;
|
|
308
288
|
}
|
|
309
289
|
namespace MessageVCardEventJS {
|
|
310
|
-
class
|
|
290
|
+
class MessageVCardEventBody implements vonage.MessageEventBodyJS {
|
|
311
291
|
private constructor();
|
|
312
292
|
get vcardUrl(): string;
|
|
313
293
|
get deleted(): Nullable<string>;
|
|
314
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
315
294
|
}
|
|
316
295
|
}
|
|
317
296
|
class MessageLocationEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -321,15 +300,13 @@ export declare namespace vonage {
|
|
|
321
300
|
get timestamp(): string;
|
|
322
301
|
get conversationId(): string;
|
|
323
302
|
get from(): vonage.FromJS;
|
|
324
|
-
get body(): vonage.MessageLocationEventJS.
|
|
325
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
303
|
+
get body(): vonage.MessageLocationEventJS.MessageLocationEventBody;
|
|
326
304
|
}
|
|
327
305
|
namespace MessageLocationEventJS {
|
|
328
|
-
class
|
|
306
|
+
class MessageLocationEventBody implements vonage.MessageEventBodyJS {
|
|
329
307
|
private constructor();
|
|
330
308
|
get location(): vonage.MessageLocationEventJS.Location;
|
|
331
309
|
get deleted(): Nullable<string>;
|
|
332
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
333
310
|
}
|
|
334
311
|
class Location {
|
|
335
312
|
private constructor();
|
|
@@ -346,21 +323,19 @@ export declare namespace vonage {
|
|
|
346
323
|
get timestamp(): string;
|
|
347
324
|
get conversationId(): string;
|
|
348
325
|
get from(): vonage.FromJS;
|
|
349
|
-
get body(): vonage.MessageTemplateEventJS.
|
|
350
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
326
|
+
get body(): vonage.MessageTemplateEventJS.MessageTemplateEventBody;
|
|
351
327
|
}
|
|
352
328
|
namespace MessageTemplateEventJS {
|
|
353
|
-
class
|
|
329
|
+
class MessageTemplateEventBody implements vonage.MessageEventBodyJS {
|
|
354
330
|
private constructor();
|
|
355
331
|
get body(): any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */;
|
|
356
332
|
get template(): vonage.MessageTemplateEventJS.TemplateObject;
|
|
357
333
|
get whatsapp(): vonage.MessageTemplateEventJS.WhatsappObject;
|
|
358
334
|
get deleted(): Nullable<string>;
|
|
359
|
-
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;
|
|
360
336
|
toString(): string;
|
|
361
337
|
hashCode(): number;
|
|
362
338
|
equals(other: Nullable<any>): boolean;
|
|
363
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
364
339
|
}
|
|
365
340
|
class TemplateObject {
|
|
366
341
|
private constructor();
|
|
@@ -413,32 +388,28 @@ export declare namespace vonage {
|
|
|
413
388
|
get name(): string;
|
|
414
389
|
get timestamp(): vonage.ConversationTimestampJS;
|
|
415
390
|
get memberId(): Nullable<string>;
|
|
416
|
-
get memberState(): Nullable<
|
|
391
|
+
get memberState(): Nullable<string>;
|
|
417
392
|
get displayName(): Nullable<string>;
|
|
418
393
|
get imageUrl(): Nullable<string>;
|
|
419
|
-
get state(): Nullable<
|
|
420
|
-
get
|
|
421
|
-
get customSortKey(): Nullable<string>;
|
|
394
|
+
get state(): Nullable<string>;
|
|
395
|
+
get properties(): vonage.ConversationJS.Properties;
|
|
422
396
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
get
|
|
427
|
-
get
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
get name(): "INACTIVE";
|
|
431
|
-
get ordinal(): 1;
|
|
432
|
-
};
|
|
433
|
-
static get DELETED(): vonage.ConversationStateJS & {
|
|
434
|
-
get name(): "DELETED";
|
|
435
|
-
get ordinal(): 2;
|
|
436
|
-
};
|
|
437
|
-
static values(): Array<vonage.ConversationStateJS>;
|
|
438
|
-
static valueOf(value: string): vonage.ConversationStateJS;
|
|
439
|
-
get name(): "ACTIVE" | "INACTIVE" | "DELETED";
|
|
440
|
-
get ordinal(): 0 | 1 | 2;
|
|
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
|
+
}
|
|
441
404
|
}
|
|
405
|
+
const ConversationStateJS: {
|
|
406
|
+
get ACTIVE(): string;
|
|
407
|
+
get INACTIVE(): string;
|
|
408
|
+
get DELETED(): string;
|
|
409
|
+
toString(): string;
|
|
410
|
+
hashCode(): number;
|
|
411
|
+
equals(other: Nullable<any>): boolean;
|
|
412
|
+
};
|
|
442
413
|
class ConversationTimestampJS {
|
|
443
414
|
private constructor();
|
|
444
415
|
get created(): Nullable<string>;
|
|
@@ -454,34 +425,20 @@ export declare namespace vonage {
|
|
|
454
425
|
class MemberJS {
|
|
455
426
|
private constructor();
|
|
456
427
|
get id(): string;
|
|
457
|
-
get state():
|
|
428
|
+
get state(): string;
|
|
458
429
|
get user(): Nullable<vonage.UserJS>;
|
|
459
430
|
get channel(): Nullable<vonage.MemberChannelJS>;
|
|
460
431
|
get timestamp(): Nullable<vonage.MemberTimestampJS>;
|
|
461
432
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
};
|
|
472
|
-
static get LEFT(): vonage.MemberStateJS & {
|
|
473
|
-
get name(): "LEFT";
|
|
474
|
-
get ordinal(): 2;
|
|
475
|
-
};
|
|
476
|
-
static get UNKNOWN(): vonage.MemberStateJS & {
|
|
477
|
-
get name(): "UNKNOWN";
|
|
478
|
-
get ordinal(): 3;
|
|
479
|
-
};
|
|
480
|
-
static values(): Array<vonage.MemberStateJS>;
|
|
481
|
-
static valueOf(value: string): vonage.MemberStateJS;
|
|
482
|
-
get name(): "INVITED" | "JOINED" | "LEFT" | "UNKNOWN";
|
|
483
|
-
get ordinal(): 0 | 1 | 2 | 3;
|
|
484
|
-
}
|
|
433
|
+
const MemberStateJSObj: {
|
|
434
|
+
get INVITED(): string;
|
|
435
|
+
get JOINED(): string;
|
|
436
|
+
get LEFT(): string;
|
|
437
|
+
get UNKNOWN(): string;
|
|
438
|
+
toString(): string;
|
|
439
|
+
hashCode(): number;
|
|
440
|
+
equals(other: Nullable<any>): boolean;
|
|
441
|
+
};
|
|
485
442
|
class MemberTimestampJS {
|
|
486
443
|
private constructor();
|
|
487
444
|
get invited(): Nullable<string>;
|
|
@@ -567,8 +524,8 @@ export declare namespace vonage {
|
|
|
567
524
|
get name(): "PSTN";
|
|
568
525
|
get ordinal(): 2;
|
|
569
526
|
};
|
|
570
|
-
static get
|
|
571
|
-
get name(): "
|
|
527
|
+
static get sip(): vonage.ChannelTypeJS & {
|
|
528
|
+
get name(): "sip";
|
|
572
529
|
get ordinal(): 3;
|
|
573
530
|
};
|
|
574
531
|
static get VBC(): vonage.ChannelTypeJS & {
|
|
@@ -601,7 +558,7 @@ export declare namespace vonage {
|
|
|
601
558
|
};
|
|
602
559
|
static values(): Array<vonage.ChannelTypeJS>;
|
|
603
560
|
static valueOf(value: string): vonage.ChannelTypeJS;
|
|
604
|
-
get name(): "APP" | "PHONE" | "PSTN" | "
|
|
561
|
+
get name(): "APP" | "PHONE" | "PSTN" | "sip" | "VBC" | "WEBSOCKET" | "SMS" | "MMS" | "WHATSAPP" | "VIBER" | "MESSENGER";
|
|
605
562
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
606
563
|
}
|
|
607
564
|
}
|
|
@@ -616,6 +573,7 @@ export declare namespace vonage {
|
|
|
616
573
|
get INVALID_CURSOR(): string;
|
|
617
574
|
get VALIDATION_FAIL(): string;
|
|
618
575
|
get CONVERSATION_MAX_NUMBER_OF_MEMBERS(): string;
|
|
576
|
+
get CUSTOM_DATA_OVERALL_LIMIT_EXCEEDED(): string;
|
|
619
577
|
};
|
|
620
578
|
const SessionErrorCodesJS: {
|
|
621
579
|
get EMPTY_TOKEN(): string;
|
|
@@ -682,28 +640,34 @@ export declare namespace vonage {
|
|
|
682
640
|
export declare namespace vonage {
|
|
683
641
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
684
642
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
685
|
-
createConversation(
|
|
643
|
+
createConversation(parameters: Nullable<vonage.CreateConversationParametersJS>): Promise<string>;
|
|
686
644
|
joinConversation(cid: string): Promise<string>;
|
|
687
645
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
688
646
|
leaveConversation(cid: string): Promise<any>;
|
|
689
647
|
deleteConversation(cid: string): Promise<any>;
|
|
690
|
-
getConversations(
|
|
691
|
-
getConversationMembers(cid: string,
|
|
692
|
-
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>;
|
|
693
651
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
694
652
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
695
653
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
696
|
-
|
|
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>;
|
|
697
663
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
664
|
+
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
698
665
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
699
666
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
700
667
|
deleteSession(): Promise<any>;
|
|
701
668
|
refreshSession(token: string): Promise<any>;
|
|
702
|
-
getConversation(
|
|
669
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
703
670
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
704
|
-
readonly __doNotUseOrImplementIt: {
|
|
705
|
-
readonly "vonage.IChatClientJS": unique symbol;
|
|
706
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
707
671
|
}
|
|
708
672
|
}
|
|
709
673
|
export declare namespace vonage {
|
|
@@ -712,23 +676,34 @@ export declare namespace vonage {
|
|
|
712
676
|
reconnection(): void;
|
|
713
677
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
714
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
|
+
}
|
|
715
685
|
interface ConfigObjectJS {
|
|
716
686
|
readonly region?: Nullable<vonage.CoreClientConfigRegionJS>;
|
|
717
687
|
readonly apiUrl?: Nullable<string>;
|
|
718
688
|
readonly websocketUrl?: Nullable<string>;
|
|
719
689
|
readonly websocketPath?: Nullable<string>;
|
|
720
|
-
readonly
|
|
690
|
+
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
691
|
+
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
721
692
|
}
|
|
722
693
|
interface InitConfigObjectJS extends vonage.ConfigObjectJS {
|
|
723
694
|
readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
695
|
+
readonly customLoggers?: Nullable<Array<vonage.VonageLoggerJS>>;
|
|
696
|
+
readonly disableInternalLogger?: Nullable<boolean>;
|
|
724
697
|
readonly region?: Nullable<vonage.CoreClientConfigRegionJS>;
|
|
725
698
|
readonly apiUrl?: Nullable<string>;
|
|
726
699
|
readonly websocketUrl?: Nullable<string>;
|
|
727
700
|
readonly websocketPath?: Nullable<string>;
|
|
728
|
-
readonly
|
|
701
|
+
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
702
|
+
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
729
703
|
}
|
|
730
704
|
}
|
|
731
705
|
export declare namespace vonage {
|
|
706
|
+
const DEFAULT_REGION: vonage.CoreClientConfigRegionJS;
|
|
732
707
|
abstract class CoreClientConfigRegionJS {
|
|
733
708
|
private constructor();
|
|
734
709
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -758,15 +733,57 @@ export declare namespace vonage {
|
|
|
758
733
|
set websocketUrl(value: string);
|
|
759
734
|
get websocketPath(): string;
|
|
760
735
|
set websocketPath(value: string);
|
|
761
|
-
get
|
|
762
|
-
set
|
|
736
|
+
get rtcStatsTelemetry(): boolean;
|
|
737
|
+
set rtcStatsTelemetry(value: boolean);
|
|
738
|
+
get autoReconnectMedia(): boolean;
|
|
739
|
+
set autoReconnectMedia(value: boolean);
|
|
763
740
|
}
|
|
764
|
-
class
|
|
765
|
-
constructor(
|
|
766
|
-
get
|
|
767
|
-
|
|
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;
|
|
768
749
|
}
|
|
769
|
-
abstract class
|
|
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;
|
|
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;
|
|
786
|
+
abstract class LoggingLevelJS {
|
|
770
787
|
private constructor();
|
|
771
788
|
static get Verbose(): vonage.LoggingLevelJS & {
|
|
772
789
|
get name(): "Verbose";
|
|
@@ -797,6 +814,8 @@ export declare namespace vonage {
|
|
|
797
814
|
get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
|
|
798
815
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
799
816
|
}
|
|
817
|
+
const DEFAULT_LOGGING_LEVEL: vonage.LoggingLevelJS;
|
|
818
|
+
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
800
819
|
abstract class SessionErrorReasonJS {
|
|
801
820
|
private constructor();
|
|
802
821
|
get reason(): any/* com.vonage.clientcore.core.api.SessionErrorReason */;
|
|
@@ -816,22 +835,15 @@ export declare namespace vonage {
|
|
|
816
835
|
static valueOf(value: string): vonage.SessionErrorReasonJS;
|
|
817
836
|
get name(): "EXPIRED_TOKEN" | "TRANSPORT_CLOSED" | "PING_TIMEOUT";
|
|
818
837
|
get ordinal(): 0 | 1 | 2;
|
|
819
|
-
static get Companion(): {
|
|
820
|
-
getSessionErrorReason(reason: any/* com.vonage.clientcore.core.api.SessionErrorReason */): Nullable<vonage.SessionErrorReasonJS>;
|
|
821
|
-
};
|
|
822
838
|
}
|
|
823
|
-
function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
|
|
824
839
|
interface ICoreClientJS {
|
|
825
840
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
826
841
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
827
842
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
828
843
|
deleteSession(): Promise<any>;
|
|
829
844
|
refreshSession(token: string): Promise<any>;
|
|
830
|
-
getConversation(
|
|
845
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
831
846
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
832
|
-
readonly __doNotUseOrImplementIt: {
|
|
833
|
-
readonly "vonage.ICoreClientJS": unique symbol;
|
|
834
|
-
};
|
|
835
847
|
}
|
|
836
848
|
}
|
|
837
849
|
export declare namespace vonage {
|
|
@@ -847,6 +859,7 @@ export declare namespace vonage {
|
|
|
847
859
|
callMediaReconnecting(callId: string): void;
|
|
848
860
|
callMediaReconnection(callId: string): void;
|
|
849
861
|
callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
|
|
862
|
+
rtcStatsUpdate(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
850
863
|
reconnecting(): void;
|
|
851
864
|
reconnection(): void;
|
|
852
865
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
@@ -879,9 +892,6 @@ export declare namespace vonage {
|
|
|
879
892
|
static valueOf(value: string): vonage.LegStatusJS;
|
|
880
893
|
get name(): "RINGING" | "ANSWERED" | "COMPLETED";
|
|
881
894
|
get ordinal(): 0 | 1 | 2;
|
|
882
|
-
static get Companion(): {
|
|
883
|
-
getStatus(status: any/* com.vonage.clientcore.core.api.LegStatus */): vonage.LegStatusJS;
|
|
884
|
-
};
|
|
885
895
|
}
|
|
886
896
|
abstract class CallDisconnectReasonJS {
|
|
887
897
|
private constructor();
|
|
@@ -893,9 +903,6 @@ export declare namespace vonage {
|
|
|
893
903
|
static valueOf(value: string): vonage.CallDisconnectReasonJS;
|
|
894
904
|
get name(): "networkChange";
|
|
895
905
|
get ordinal(): 0;
|
|
896
|
-
static get Companion(): {
|
|
897
|
-
getReason(reason: any/* com.vonage.clientcore.core.api.CallDisconnectReason */): vonage.CallDisconnectReasonJS;
|
|
898
|
-
};
|
|
899
906
|
}
|
|
900
907
|
abstract class HangupReasonJS {
|
|
901
908
|
private constructor();
|
|
@@ -923,9 +930,6 @@ export declare namespace vonage {
|
|
|
923
930
|
static valueOf(value: string): vonage.HangupReasonJS;
|
|
924
931
|
get name(): "REMOTE_HANGUP" | "REMOTE_REJECT" | "REMOTE_NO_ANSWER_TIMEOUT" | "LOCAL_HANGUP" | "MEDIA_TIMEOUT";
|
|
925
932
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
926
|
-
static get Companion(): {
|
|
927
|
-
getReason(reason: any/* com.vonage.clientcore.core.api.HangupReason */): vonage.HangupReasonJS;
|
|
928
|
-
};
|
|
929
933
|
}
|
|
930
934
|
interface IVoiceClientJS extends vonage.ICoreClientJS {
|
|
931
935
|
readonly media: vonage.MediaClientJS;
|
|
@@ -947,11 +951,8 @@ export declare namespace vonage {
|
|
|
947
951
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
948
952
|
deleteSession(): Promise<any>;
|
|
949
953
|
refreshSession(token: string): Promise<any>;
|
|
950
|
-
getConversation(
|
|
954
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
951
955
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
952
|
-
readonly __doNotUseOrImplementIt: {
|
|
953
|
-
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
954
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
955
956
|
}
|
|
956
957
|
class VoiceInviteFromInfoJS {
|
|
957
958
|
constructor(id: Nullable<string>, type: string);
|
|
@@ -970,13 +971,15 @@ export declare namespace vonage {
|
|
|
970
971
|
interface SocketClientJS {
|
|
971
972
|
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
972
973
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
973
|
-
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;
|
|
974
975
|
disconnect(): void;
|
|
975
|
-
setConnectParamsSocketConfig(token: string): void;
|
|
976
|
+
setConnectParamsSocketConfig(sessionId: string, token: string): void;
|
|
977
|
+
setSocketSessionId(sessionId: string): void;
|
|
978
|
+
setSocketToken(token: string): void;
|
|
976
979
|
startVerifyResponseTimer(milliseconds: any/* kotlin.Number */, callback: () => void): void;
|
|
977
980
|
}
|
|
978
981
|
interface SocketClientDelegateJS {
|
|
979
|
-
didReceiveNewSocketEvent(
|
|
982
|
+
didReceiveNewSocketEvent(body: string): void;
|
|
980
983
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
981
984
|
}
|
|
982
985
|
interface MediaClientJS {
|
|
@@ -991,9 +994,8 @@ export declare namespace vonage {
|
|
|
991
994
|
enableRtcStatsCollection(interval: any/* kotlin.Number */, mediaId: string): void;
|
|
992
995
|
}
|
|
993
996
|
interface MediaClientDelegateJS {
|
|
994
|
-
onRtcStats(rtcStats: vonage.RTCStatsJS): void;
|
|
997
|
+
onRtcStats(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
995
998
|
onConnectionChange(id: string, status: string): void;
|
|
996
|
-
onNetworkChange(legId: string, status: string): void;
|
|
997
999
|
}
|
|
998
1000
|
}
|
|
999
1001
|
export declare namespace vonage {
|
|
@@ -1046,7 +1048,7 @@ export declare namespace vonage {
|
|
|
1046
1048
|
get ordinal(): 0 | 1 | 2 | 3;
|
|
1047
1049
|
}
|
|
1048
1050
|
class RTCQualityJS {
|
|
1049
|
-
constructor(
|
|
1051
|
+
private constructor();
|
|
1050
1052
|
get mos_score(): number;
|
|
1051
1053
|
get quality_percentage(): number;
|
|
1052
1054
|
get jitter_min_var(): number;
|
|
@@ -1056,27 +1058,96 @@ export declare namespace vonage {
|
|
|
1056
1058
|
get flaw_total(): number;
|
|
1057
1059
|
get packet_cnt(): number;
|
|
1058
1060
|
get packet_loss_perc(): number;
|
|
1059
|
-
copy(
|
|
1061
|
+
copy(mos_score?: number, quality_percentage?: number, jitter_min_var?: number, jitter_max_var?: number, jitter_loss_rate?: number, jitter_burst_rate?: number, flaw_total?: number, packet_cnt?: number, packet_loss_perc?: number): vonage.RTCQualityJS;
|
|
1060
1062
|
toString(): string;
|
|
1061
1063
|
hashCode(): number;
|
|
1062
1064
|
equals(other: Nullable<any>): boolean;
|
|
1063
1065
|
}
|
|
1064
1066
|
class RTCStatsJS {
|
|
1065
|
-
constructor(audioRecvPackets:
|
|
1066
|
-
get audioRecvPackets():
|
|
1067
|
-
get audioRecvPacketsLost():
|
|
1068
|
-
get audioRecvBytes():
|
|
1069
|
-
get audioRecvJitter():
|
|
1070
|
-
get audioSentPackets():
|
|
1071
|
-
get audioSentBytes():
|
|
1072
|
-
get audioSentPacketsLost():
|
|
1073
|
-
get audioRtt():
|
|
1074
|
-
get audioSentJitter():
|
|
1075
|
-
|
|
1076
|
-
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;
|
|
1077
1078
|
toString(): string;
|
|
1078
1079
|
hashCode(): number;
|
|
1079
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
|
+
}
|
|
1080
1151
|
}
|
|
1081
1152
|
}
|
|
1082
1153
|
export as namespace clientsdk_clientcore_js;
|