@vonage/client-sdk 1.2.0-alpha.0 → 1.2.0-alpha.2
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 +18 -14
- package/dist/client/VonageClient.d.ts +1 -1
- package/dist/client/index.cjs +34342 -24701
- package/dist/client/index.mjs +34342 -24701
- package/dist/kotlin/ConversationEvents.d.ts +99 -1
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +191 -65
- package/dist/vonageClientSDK.js +31806 -24260
- package/dist/vonageClientSDK.min.js +2 -2
- package/dist/vonageClientSDK.min.mjs +2 -2
- package/dist/vonageClientSDK.mjs +31806 -24260
- package/package.json +1 -1
|
@@ -84,4 +84,102 @@ export type CustomMessageEvent = {
|
|
|
84
84
|
kind: 'message:custom';
|
|
85
85
|
from: From;
|
|
86
86
|
} & vonage.CustomMessageEventJS;
|
|
87
|
-
|
|
87
|
+
/**
|
|
88
|
+
* A AudioMessageEvent is a ConversationEvent with a type of 'message:audio'
|
|
89
|
+
*
|
|
90
|
+
* @property id the id property of the AudioMessageEvent
|
|
91
|
+
* @property timestamp the timestamp property of the AudioMessageEvent
|
|
92
|
+
* @property conversationId the conversationId property of the AudioMessageEvent
|
|
93
|
+
* @property from the from property of the AudioMessageEvent
|
|
94
|
+
* @property body the body property of the AudioMessageEvent
|
|
95
|
+
* @interface
|
|
96
|
+
*/
|
|
97
|
+
export type AudioMessageEvent = {
|
|
98
|
+
kind: 'message:audio';
|
|
99
|
+
from: From;
|
|
100
|
+
} & vonage.AudioMessageEventJS;
|
|
101
|
+
/**
|
|
102
|
+
* A VideoMessageEvent is a ConversationEvent with a type of 'message:video'
|
|
103
|
+
*
|
|
104
|
+
* @property id the id property of the VideoMessageEvent
|
|
105
|
+
* @property timestamp the timestamp property of the VideoMessageEvent
|
|
106
|
+
* @property conversationId the conversationId property of the VideoMessageEvent
|
|
107
|
+
* @property from the from property of the VideoMessageEvent
|
|
108
|
+
* @property body the body property of the VideoMessageEvent
|
|
109
|
+
* @interface
|
|
110
|
+
*/
|
|
111
|
+
export type VideoMessageEvent = {
|
|
112
|
+
kind: 'message:video';
|
|
113
|
+
from: From;
|
|
114
|
+
} & vonage.VideoMessageEventJS;
|
|
115
|
+
/**
|
|
116
|
+
* A ImageMessageEvent is a ConversationEvent with a type of 'message:image'
|
|
117
|
+
*
|
|
118
|
+
* @property id the id property of the ImageMessageEvent
|
|
119
|
+
* @property timestamp the timestamp property of the ImageMessageEvent
|
|
120
|
+
* @property conversationId the conversationId property of the ImageMessageEvent
|
|
121
|
+
* @property from the from property of the ImageMessageEvent
|
|
122
|
+
* @property body the body property of the ImageMessageEvent
|
|
123
|
+
* @interface
|
|
124
|
+
*/
|
|
125
|
+
export type ImageMessageEvent = {
|
|
126
|
+
kind: 'message:image';
|
|
127
|
+
from: From;
|
|
128
|
+
} & vonage.ImageMessageEventJS;
|
|
129
|
+
/**
|
|
130
|
+
* A FileMessageEvent is a ConversationEvent with a type of 'message:file'
|
|
131
|
+
*
|
|
132
|
+
* @property id the id property of the FileMessageEvent
|
|
133
|
+
* @property timestamp the timestamp property of the FileMessageEvent
|
|
134
|
+
* @property conversationId the conversationId property of the FileMessageEvent
|
|
135
|
+
* @property from the from property of the FileMessageEvent
|
|
136
|
+
* @property body the body property of the FileMessageEvent
|
|
137
|
+
* @interface
|
|
138
|
+
*/
|
|
139
|
+
export type FileMessageEvent = {
|
|
140
|
+
kind: 'message:file';
|
|
141
|
+
from: From;
|
|
142
|
+
} & vonage.FileMessageEventJS;
|
|
143
|
+
/**
|
|
144
|
+
* A VCardMessageEvent is a ConversationEvent with a type of 'message:vcard'
|
|
145
|
+
*
|
|
146
|
+
* @property id the id property of the VCardMessageEvent
|
|
147
|
+
* @property timestamp the timestamp property of the VCardMessageEvent
|
|
148
|
+
* @property conversationId the conversationId property of the VCardMessageEvent
|
|
149
|
+
* @property from the from property of the VCardMessageEvent
|
|
150
|
+
* @property body the body property of the VCardMessageEvent
|
|
151
|
+
* @interface
|
|
152
|
+
*/
|
|
153
|
+
export type VCardMessageEvent = {
|
|
154
|
+
kind: 'message:vcard';
|
|
155
|
+
from: From;
|
|
156
|
+
} & vonage.VCardMessageEventJS;
|
|
157
|
+
/**
|
|
158
|
+
* A LocationMessageEvent is a ConversationEvent with a type of 'message:location'
|
|
159
|
+
*
|
|
160
|
+
* @property id the id property of the LocationMessageEvent
|
|
161
|
+
* @property timestamp the timestamp property of the LocationMessageEvent
|
|
162
|
+
* @property conversationId the conversationId property of the LocationMessageEvent
|
|
163
|
+
* @property from the from property of the LocationMessageEvent
|
|
164
|
+
* @property body the body property of the LocationMessageEvent
|
|
165
|
+
* @interface
|
|
166
|
+
*/
|
|
167
|
+
export type LocationMessageEvent = {
|
|
168
|
+
kind: 'message:location';
|
|
169
|
+
from: From;
|
|
170
|
+
} & vonage.LocationMessageEventJS;
|
|
171
|
+
/**
|
|
172
|
+
* A TemplateMessageEvent is a ConversationEvent with a type of 'message:template'
|
|
173
|
+
*
|
|
174
|
+
* @property id the id property of the TemplateMessageEvent
|
|
175
|
+
* @property timestamp the timestamp property of the TemplateMessageEvent
|
|
176
|
+
* @property conversationId the conversationId property of the TemplateMessageEvent
|
|
177
|
+
* @property from the from property of the TemplateMessageEvent
|
|
178
|
+
* @property body the body property of the TemplateMessageEvent
|
|
179
|
+
* @interface
|
|
180
|
+
*/
|
|
181
|
+
export type TemplateMessageEvent = {
|
|
182
|
+
kind: 'message:template';
|
|
183
|
+
from: From;
|
|
184
|
+
} & vonage.TemplateMessageEventJS;
|
|
185
|
+
export type ConversationEvent = MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | UnknownEvent | TextMessageEvent | CustomMessageEvent | AudioMessageEvent | VideoMessageEvent | ImageMessageEvent | FileMessageEvent | VCardMessageEvent | LocationMessageEvent | TemplateMessageEvent;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
|
-
|
|
2
|
+
declare const __doNotImplementIt: unique symbol
|
|
3
|
+
type __doNotImplementIt = typeof __doNotImplementIt
|
|
4
|
+
export namespace vonage {
|
|
3
5
|
interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
|
|
4
6
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
5
7
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -15,7 +17,7 @@ export declare namespace vonage {
|
|
|
15
17
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
export
|
|
20
|
+
export namespace vonage {
|
|
19
21
|
class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
|
|
20
22
|
constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
|
|
21
23
|
get media(): vonage.MediaClientJS;
|
|
@@ -29,7 +31,7 @@ export declare namespace vonage {
|
|
|
29
31
|
deleteConversation(cid: string): Promise<any>;
|
|
30
32
|
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.ConversationsPageJS>;
|
|
31
33
|
getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
|
|
32
|
-
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string
|
|
34
|
+
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
|
|
33
35
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
34
36
|
sendTextMessage(cid: string, text: string): Promise<string>;
|
|
35
37
|
sendCustomMessage(cid: string, customData: string): Promise<string>;
|
|
@@ -52,10 +54,10 @@ export declare namespace vonage {
|
|
|
52
54
|
enableEarmuff(callId: string): Promise<any>;
|
|
53
55
|
disableEarmuff(callId: string): Promise<any>;
|
|
54
56
|
sendDTMF(callId: string, digits: string): Promise<any>;
|
|
55
|
-
readonly
|
|
57
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
export
|
|
60
|
+
export namespace vonage {
|
|
59
61
|
class EventsPageJS {
|
|
60
62
|
private constructor();
|
|
61
63
|
get events(): Array<vonage.ConversationEventJS>;
|
|
@@ -63,29 +65,24 @@ export declare namespace vonage {
|
|
|
63
65
|
get nextCursor(): Nullable<string>;
|
|
64
66
|
}
|
|
65
67
|
interface FromJS {
|
|
66
|
-
readonly
|
|
67
|
-
readonly "vonage.FromJS": unique symbol;
|
|
68
|
-
};
|
|
68
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
69
69
|
}
|
|
70
70
|
class EmbeddedInfoJS implements vonage.FromJS {
|
|
71
71
|
private constructor();
|
|
72
72
|
get kind(): string;
|
|
73
73
|
get memberId(): string;
|
|
74
74
|
get user(): vonage.UserJS;
|
|
75
|
-
readonly
|
|
75
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
76
76
|
}
|
|
77
77
|
const SystemJS: {
|
|
78
78
|
get kind(): string;
|
|
79
|
-
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
80
79
|
} & vonage.FromJS;
|
|
81
80
|
interface ConversationEventJS {
|
|
82
81
|
readonly id: Nullable<number>;
|
|
83
82
|
readonly timestamp: string;
|
|
84
83
|
readonly conversationId: string;
|
|
85
84
|
readonly from: Nullable<vonage.FromJS>;
|
|
86
|
-
readonly
|
|
87
|
-
readonly "vonage.ConversationEventJS": unique symbol;
|
|
88
|
-
};
|
|
85
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
89
86
|
}
|
|
90
87
|
interface MemberEventJS extends vonage.ConversationEventJS {
|
|
91
88
|
readonly body: vonage.MemberEventBodyJS;
|
|
@@ -93,9 +90,7 @@ export declare namespace vonage {
|
|
|
93
90
|
readonly timestamp: string;
|
|
94
91
|
readonly conversationId: string;
|
|
95
92
|
readonly from: Nullable<vonage.FromJS>;
|
|
96
|
-
readonly
|
|
97
|
-
readonly "vonage.MemberEventJS": unique symbol;
|
|
98
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
93
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
99
94
|
}
|
|
100
95
|
class MemberEventBodyJS {
|
|
101
96
|
private constructor();
|
|
@@ -109,7 +104,7 @@ export declare namespace vonage {
|
|
|
109
104
|
get conversationId(): string;
|
|
110
105
|
get from(): vonage.FromJS;
|
|
111
106
|
get body(): vonage.MemberEventBodyJS;
|
|
112
|
-
readonly
|
|
107
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
113
108
|
}
|
|
114
109
|
class MemberJoinedEventJS implements vonage.MemberEventJS {
|
|
115
110
|
private constructor();
|
|
@@ -118,7 +113,7 @@ export declare namespace vonage {
|
|
|
118
113
|
get conversationId(): string;
|
|
119
114
|
get from(): vonage.FromJS;
|
|
120
115
|
get body(): vonage.MemberEventBodyJS;
|
|
121
|
-
readonly
|
|
116
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
122
117
|
}
|
|
123
118
|
class MemberLeftEventJS implements vonage.MemberEventJS {
|
|
124
119
|
private constructor();
|
|
@@ -127,7 +122,7 @@ export declare namespace vonage {
|
|
|
127
122
|
get conversationId(): string;
|
|
128
123
|
get from(): vonage.FromJS;
|
|
129
124
|
get body(): vonage.MemberEventBodyJS;
|
|
130
|
-
readonly
|
|
125
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
131
126
|
}
|
|
132
127
|
class UnknownEventJS implements vonage.ConversationEventJS {
|
|
133
128
|
private constructor();
|
|
@@ -136,18 +131,16 @@ export declare namespace vonage {
|
|
|
136
131
|
get timestamp(): string;
|
|
137
132
|
get conversationId(): string;
|
|
138
133
|
get from(): vonage.FromJS;
|
|
139
|
-
readonly
|
|
134
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
140
135
|
}
|
|
141
136
|
}
|
|
142
|
-
export
|
|
137
|
+
export namespace vonage {
|
|
143
138
|
interface MessageEventJS extends vonage.ConversationEventJS {
|
|
144
139
|
readonly id: number;
|
|
145
140
|
readonly timestamp: string;
|
|
146
141
|
readonly conversationId: string;
|
|
147
142
|
readonly from: Nullable<vonage.FromJS>;
|
|
148
|
-
readonly
|
|
149
|
-
readonly "vonage.MessageEventJS": unique symbol;
|
|
150
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
143
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
151
144
|
}
|
|
152
145
|
class TextMessageEventJS implements vonage.MessageEventJS {
|
|
153
146
|
private constructor();
|
|
@@ -156,7 +149,7 @@ export declare namespace vonage {
|
|
|
156
149
|
get conversationId(): string;
|
|
157
150
|
get from(): vonage.FromJS;
|
|
158
151
|
get body(): vonage.TextMessageEventJS.Body;
|
|
159
|
-
readonly
|
|
152
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
160
153
|
}
|
|
161
154
|
namespace TextMessageEventJS {
|
|
162
155
|
class Body {
|
|
@@ -171,7 +164,7 @@ export declare namespace vonage {
|
|
|
171
164
|
get conversationId(): string;
|
|
172
165
|
get from(): vonage.FromJS;
|
|
173
166
|
get body(): vonage.CustomMessageEventJS.Body;
|
|
174
|
-
readonly
|
|
167
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
175
168
|
}
|
|
176
169
|
namespace CustomMessageEventJS {
|
|
177
170
|
class Body {
|
|
@@ -179,8 +172,131 @@ export declare namespace vonage {
|
|
|
179
172
|
get customData(): string;
|
|
180
173
|
}
|
|
181
174
|
}
|
|
175
|
+
class AudioMessageEventJS implements vonage.MessageEventJS {
|
|
176
|
+
private constructor();
|
|
177
|
+
get id(): number;
|
|
178
|
+
get timestamp(): string;
|
|
179
|
+
get conversationId(): string;
|
|
180
|
+
get from(): vonage.FromJS;
|
|
181
|
+
get body(): vonage.AudioMessageEventJS.Body;
|
|
182
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
183
|
+
}
|
|
184
|
+
namespace AudioMessageEventJS {
|
|
185
|
+
class Body {
|
|
186
|
+
private constructor();
|
|
187
|
+
get audioUrl(): string;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
class VideoMessageEventJS implements vonage.MessageEventJS {
|
|
191
|
+
private constructor();
|
|
192
|
+
get id(): number;
|
|
193
|
+
get timestamp(): string;
|
|
194
|
+
get conversationId(): string;
|
|
195
|
+
get from(): vonage.FromJS;
|
|
196
|
+
get body(): vonage.VideoMessageEventJS.Body;
|
|
197
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
198
|
+
}
|
|
199
|
+
namespace VideoMessageEventJS {
|
|
200
|
+
class Body {
|
|
201
|
+
private constructor();
|
|
202
|
+
get videoUrl(): string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ImageMessageEventJS implements vonage.MessageEventJS {
|
|
206
|
+
private constructor();
|
|
207
|
+
get id(): number;
|
|
208
|
+
get timestamp(): string;
|
|
209
|
+
get conversationId(): string;
|
|
210
|
+
get from(): vonage.FromJS;
|
|
211
|
+
get body(): vonage.ImageMessageEventJS.Body;
|
|
212
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
213
|
+
}
|
|
214
|
+
namespace ImageMessageEventJS {
|
|
215
|
+
class Body {
|
|
216
|
+
private constructor();
|
|
217
|
+
get imageUrl(): string;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
class FileMessageEventJS implements vonage.MessageEventJS {
|
|
221
|
+
private constructor();
|
|
222
|
+
get id(): number;
|
|
223
|
+
get timestamp(): string;
|
|
224
|
+
get conversationId(): string;
|
|
225
|
+
get from(): vonage.FromJS;
|
|
226
|
+
get body(): vonage.FileMessageEventJS.Body;
|
|
227
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
228
|
+
}
|
|
229
|
+
namespace FileMessageEventJS {
|
|
230
|
+
class Body {
|
|
231
|
+
private constructor();
|
|
232
|
+
get fileUrl(): string;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class VCardMessageEventJS implements vonage.MessageEventJS {
|
|
236
|
+
private constructor();
|
|
237
|
+
get id(): number;
|
|
238
|
+
get timestamp(): string;
|
|
239
|
+
get conversationId(): string;
|
|
240
|
+
get from(): vonage.FromJS;
|
|
241
|
+
get body(): vonage.VCardMessageEventJS.Body;
|
|
242
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
243
|
+
}
|
|
244
|
+
namespace VCardMessageEventJS {
|
|
245
|
+
class Body {
|
|
246
|
+
private constructor();
|
|
247
|
+
get vcardUrl(): string;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class LocationMessageEventJS implements vonage.MessageEventJS {
|
|
251
|
+
private constructor();
|
|
252
|
+
get id(): number;
|
|
253
|
+
get timestamp(): string;
|
|
254
|
+
get conversationId(): string;
|
|
255
|
+
get from(): vonage.FromJS;
|
|
256
|
+
get body(): vonage.LocationMessageEventJS.Body;
|
|
257
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
258
|
+
}
|
|
259
|
+
namespace LocationMessageEventJS {
|
|
260
|
+
class Body {
|
|
261
|
+
private constructor();
|
|
262
|
+
get location(): vonage.LocationMessageEventJS.Location;
|
|
263
|
+
}
|
|
264
|
+
class Location {
|
|
265
|
+
private constructor();
|
|
266
|
+
get longitude(): string;
|
|
267
|
+
get latitude(): string;
|
|
268
|
+
get name(): Nullable<string>;
|
|
269
|
+
get address(): Nullable<string>;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
class TemplateMessageEventJS implements vonage.MessageEventJS {
|
|
273
|
+
private constructor();
|
|
274
|
+
get id(): number;
|
|
275
|
+
get timestamp(): string;
|
|
276
|
+
get conversationId(): string;
|
|
277
|
+
get from(): vonage.FromJS;
|
|
278
|
+
get body(): vonage.TemplateMessageEventJS.Body;
|
|
279
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
280
|
+
}
|
|
281
|
+
namespace TemplateMessageEventJS {
|
|
282
|
+
class Body {
|
|
283
|
+
private constructor();
|
|
284
|
+
get body(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
285
|
+
get template(): vonage.TemplateMessageEventJS.TemplateObject;
|
|
286
|
+
component1(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
|
|
287
|
+
copy(body?: any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */): vonage.TemplateMessageEventJS.Body;
|
|
288
|
+
toString(): string;
|
|
289
|
+
hashCode(): number;
|
|
290
|
+
equals(other: Nullable<any>): boolean;
|
|
291
|
+
}
|
|
292
|
+
class TemplateObject {
|
|
293
|
+
private constructor();
|
|
294
|
+
get name(): string;
|
|
295
|
+
get parameters(): Nullable<Array<string>>;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
182
298
|
}
|
|
183
|
-
export
|
|
299
|
+
export namespace vonage {
|
|
184
300
|
abstract class PresentingOrderJS {
|
|
185
301
|
private constructor();
|
|
186
302
|
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
@@ -394,7 +510,7 @@ export declare namespace vonage {
|
|
|
394
510
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
395
511
|
}
|
|
396
512
|
}
|
|
397
|
-
export
|
|
513
|
+
export namespace vonage {
|
|
398
514
|
const CSErrorCodesJS: {
|
|
399
515
|
get CONVERSATION_DUPLICATE_NAME(): string;
|
|
400
516
|
get MEMBER_ALREADY_JOINED(): string;
|
|
@@ -425,7 +541,7 @@ export declare namespace vonage {
|
|
|
425
541
|
get TRANSPORT_CLOSED_DISCONNECT(): string;
|
|
426
542
|
};
|
|
427
543
|
}
|
|
428
|
-
export
|
|
544
|
+
export namespace vonage {
|
|
429
545
|
class VonageErrorJS extends Error {
|
|
430
546
|
private constructor();
|
|
431
547
|
get type(): vonage.VonageErrorTypeJS;
|
|
@@ -460,7 +576,7 @@ export declare namespace vonage {
|
|
|
460
576
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
461
577
|
}
|
|
462
578
|
}
|
|
463
|
-
export
|
|
579
|
+
export namespace vonage {
|
|
464
580
|
interface ChatEvents extends vonage.CoreClientEvents {
|
|
465
581
|
conversationEvent(event: vonage.ConversationEventJS): void;
|
|
466
582
|
reconnecting(): void;
|
|
@@ -468,7 +584,7 @@ export declare namespace vonage {
|
|
|
468
584
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
469
585
|
}
|
|
470
586
|
}
|
|
471
|
-
export
|
|
587
|
+
export namespace vonage {
|
|
472
588
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
473
589
|
readonly core: any/* com.vonage.clientcore.core.CoreClient */;
|
|
474
590
|
createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
|
|
@@ -478,7 +594,7 @@ export declare namespace vonage {
|
|
|
478
594
|
deleteConversation(cid: string): Promise<any>;
|
|
479
595
|
getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.ConversationsPageJS>;
|
|
480
596
|
getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
|
|
481
|
-
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string
|
|
597
|
+
getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
|
|
482
598
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
483
599
|
sendTextMessage(cid: string, text: string): Promise<string>;
|
|
484
600
|
sendCustomMessage(cid: string, customData: string): Promise<string>;
|
|
@@ -488,19 +604,17 @@ export declare namespace vonage {
|
|
|
488
604
|
refreshSession(token: string): Promise<any>;
|
|
489
605
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
490
606
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
491
|
-
readonly
|
|
492
|
-
readonly "vonage.IChatClientJS": unique symbol;
|
|
493
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
607
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
494
608
|
}
|
|
495
609
|
}
|
|
496
|
-
export
|
|
610
|
+
export namespace vonage {
|
|
497
611
|
interface CoreClientEvents {
|
|
498
612
|
reconnecting(): void;
|
|
499
613
|
reconnection(): void;
|
|
500
614
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
501
615
|
}
|
|
502
616
|
}
|
|
503
|
-
export
|
|
617
|
+
export namespace vonage {
|
|
504
618
|
abstract class CoreClientConfigRegionJS {
|
|
505
619
|
private constructor();
|
|
506
620
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
@@ -597,12 +711,10 @@ export declare namespace vonage {
|
|
|
597
711
|
refreshSession(token: string): Promise<any>;
|
|
598
712
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
599
713
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
600
|
-
readonly
|
|
601
|
-
readonly "vonage.ICoreClientJS": unique symbol;
|
|
602
|
-
};
|
|
714
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
603
715
|
}
|
|
604
716
|
}
|
|
605
|
-
export
|
|
717
|
+
export namespace vonage {
|
|
606
718
|
interface VoiceEvents extends vonage.CoreClientEvents {
|
|
607
719
|
callInvite(callId: string, from: string, channelType: string): void;
|
|
608
720
|
callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
|
|
@@ -618,14 +730,14 @@ export declare namespace vonage {
|
|
|
618
730
|
}
|
|
619
731
|
interface CallSayParams {
|
|
620
732
|
readonly text: string;
|
|
621
|
-
readonly level
|
|
622
|
-
readonly loop
|
|
623
|
-
readonly queue
|
|
624
|
-
readonly voiceName
|
|
625
|
-
readonly ssml
|
|
733
|
+
readonly level: Nullable<number>;
|
|
734
|
+
readonly loop: Nullable<number>;
|
|
735
|
+
readonly queue: Nullable<boolean>;
|
|
736
|
+
readonly voiceName: Nullable<string>;
|
|
737
|
+
readonly ssml: Nullable<boolean>;
|
|
626
738
|
}
|
|
627
739
|
}
|
|
628
|
-
export
|
|
740
|
+
export namespace vonage {
|
|
629
741
|
abstract class LegStatusJS {
|
|
630
742
|
private constructor();
|
|
631
743
|
static get RINGING(): vonage.LegStatusJS & {
|
|
@@ -700,26 +812,26 @@ export declare namespace vonage {
|
|
|
700
812
|
refreshSession(token: string): Promise<any>;
|
|
701
813
|
getConversation(conversationId: string): Promise<vonage.ConversationJS>;
|
|
702
814
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
703
|
-
readonly
|
|
704
|
-
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
705
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
815
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
706
816
|
}
|
|
707
817
|
class VoiceInviteFromInfoJS {
|
|
708
818
|
constructor(id: Nullable<string>, type: string);
|
|
709
819
|
get id(): Nullable<string>;
|
|
710
820
|
get type(): string;
|
|
821
|
+
component1(): Nullable<string>;
|
|
822
|
+
component2(): string;
|
|
711
823
|
copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
|
|
712
824
|
toString(): string;
|
|
713
825
|
hashCode(): number;
|
|
714
826
|
equals(other: Nullable<any>): boolean;
|
|
715
827
|
}
|
|
716
828
|
}
|
|
717
|
-
export
|
|
829
|
+
export namespace vonage {
|
|
718
830
|
interface HttpClientJS {
|
|
719
831
|
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (p0: Nullable<vonage.HttpClientErrorJS>, p1: Nullable<vonage.HttpClientResponseJS>) => void): void;
|
|
720
832
|
}
|
|
721
833
|
interface SocketClientJS {
|
|
722
|
-
delegate
|
|
834
|
+
delegate: Nullable<vonage.SocketClientDelegateJS>;
|
|
723
835
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
724
836
|
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
725
837
|
disconnect(): void;
|
|
@@ -731,7 +843,7 @@ export declare namespace vonage {
|
|
|
731
843
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
732
844
|
}
|
|
733
845
|
interface MediaClientJS {
|
|
734
|
-
delegate
|
|
846
|
+
delegate: Nullable<vonage.MediaClientDelegateJS>;
|
|
735
847
|
enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
|
|
736
848
|
enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
|
|
737
849
|
processAnswer(id: string, sdp: string): void;
|
|
@@ -746,10 +858,12 @@ export declare namespace vonage {
|
|
|
746
858
|
onConnectionChange(id: string, status: string): void;
|
|
747
859
|
}
|
|
748
860
|
}
|
|
749
|
-
export
|
|
861
|
+
export namespace vonage {
|
|
750
862
|
class HttpClientErrorJS extends Error {
|
|
751
863
|
constructor(message?: Nullable<string>, cause?: Nullable<Error>);
|
|
752
864
|
get coreError(): any/* com.vonage.clientcore.core.middlewares.http.HTTPClientError */;
|
|
865
|
+
component1(): Nullable<string>;
|
|
866
|
+
component2(): Nullable<Error>;
|
|
753
867
|
copy(message?: Nullable<string>, cause?: Nullable<Error>): vonage.HttpClientErrorJS;
|
|
754
868
|
toString(): string;
|
|
755
869
|
hashCode(): number;
|
|
@@ -759,6 +873,8 @@ export declare namespace vonage {
|
|
|
759
873
|
constructor(statusCode: number, body?: Nullable<string>);
|
|
760
874
|
get statusCode(): number;
|
|
761
875
|
get body(): Nullable<string>;
|
|
876
|
+
component1(): number;
|
|
877
|
+
component2(): Nullable<string>;
|
|
762
878
|
copy(statusCode?: number, body?: Nullable<string>): vonage.HttpClientResponseJS;
|
|
763
879
|
toString(): string;
|
|
764
880
|
hashCode(): number;
|
|
@@ -812,18 +928,28 @@ export declare namespace vonage {
|
|
|
812
928
|
equals(other: Nullable<any>): boolean;
|
|
813
929
|
}
|
|
814
930
|
class RTCStatsJS {
|
|
815
|
-
constructor(audioRecvPackets:
|
|
816
|
-
get audioRecvPackets():
|
|
817
|
-
get audioRecvPacketsLost():
|
|
818
|
-
get audioRecvBytes():
|
|
819
|
-
get audioRecvJitter():
|
|
820
|
-
get audioSentPackets():
|
|
821
|
-
get audioSentBytes():
|
|
822
|
-
get audioSentPacketsLost():
|
|
823
|
-
get audioRtt():
|
|
824
|
-
get audioSentJitter():
|
|
931
|
+
constructor(audioRecvPackets: any/* Nullable<kotlin.Number> */, audioRecvPacketsLost: any/* Nullable<kotlin.Number> */, audioRecvBytes: any/* Nullable<kotlin.Number> */, audioRecvJitter: any/* Nullable<kotlin.Number> */, audioSentPackets: any/* Nullable<kotlin.Number> */, audioSentBytes: any/* Nullable<kotlin.Number> */, audioSentPacketsLost: any/* Nullable<kotlin.Number> */, audioRtt: any/* Nullable<kotlin.Number> */, audioSentJitter: any/* Nullable<kotlin.Number> */, legId: string);
|
|
932
|
+
get audioRecvPackets(): any/* Nullable<kotlin.Number> */;
|
|
933
|
+
get audioRecvPacketsLost(): any/* Nullable<kotlin.Number> */;
|
|
934
|
+
get audioRecvBytes(): any/* Nullable<kotlin.Number> */;
|
|
935
|
+
get audioRecvJitter(): any/* Nullable<kotlin.Number> */;
|
|
936
|
+
get audioSentPackets(): any/* Nullable<kotlin.Number> */;
|
|
937
|
+
get audioSentBytes(): any/* Nullable<kotlin.Number> */;
|
|
938
|
+
get audioSentPacketsLost(): any/* Nullable<kotlin.Number> */;
|
|
939
|
+
get audioRtt(): any/* Nullable<kotlin.Number> */;
|
|
940
|
+
get audioSentJitter(): any/* Nullable<kotlin.Number> */;
|
|
825
941
|
get legId(): string;
|
|
826
|
-
|
|
942
|
+
component1(): any/* Nullable<kotlin.Number> */;
|
|
943
|
+
component2(): any/* Nullable<kotlin.Number> */;
|
|
944
|
+
component3(): any/* Nullable<kotlin.Number> */;
|
|
945
|
+
component4(): any/* Nullable<kotlin.Number> */;
|
|
946
|
+
component5(): any/* Nullable<kotlin.Number> */;
|
|
947
|
+
component6(): any/* Nullable<kotlin.Number> */;
|
|
948
|
+
component7(): any/* Nullable<kotlin.Number> */;
|
|
949
|
+
component8(): any/* Nullable<kotlin.Number> */;
|
|
950
|
+
component9(): any/* Nullable<kotlin.Number> */;
|
|
951
|
+
component10(): string;
|
|
952
|
+
copy(audioRecvPackets?: any/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: any/* Nullable<kotlin.Number> */, audioRecvBytes?: any/* Nullable<kotlin.Number> */, audioRecvJitter?: any/* Nullable<kotlin.Number> */, audioSentPackets?: any/* Nullable<kotlin.Number> */, audioSentBytes?: any/* Nullable<kotlin.Number> */, audioSentPacketsLost?: any/* Nullable<kotlin.Number> */, audioRtt?: any/* Nullable<kotlin.Number> */, audioSentJitter?: any/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
|
|
827
953
|
toString(): string;
|
|
828
954
|
hashCode(): number;
|
|
829
955
|
equals(other: Nullable<any>): boolean;
|