@vonage/client-sdk 1.3.0-alpha.2 → 1.3.0-alpha.3
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 +9 -6
- package/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/ClientConfig.html +17 -13
- package/api_docs/ts/classes/ClientInitConfig.html +18 -14
- package/api_docs/ts/classes/VonageClient.html +199 -198
- package/api_docs/ts/functions/setDefaultLoggingLevel.html +16 -12
- package/api_docs/ts/functions/setVonageClientLoggingLevel.html +16 -12
- package/api_docs/ts/index.html +16 -12
- package/api_docs/ts/interfaces/ConversationEvent.html +16 -12
- package/api_docs/ts/interfaces/ConversationState.html +15 -11
- package/api_docs/ts/interfaces/CustomConversationEvent.html +15 -11
- package/api_docs/ts/interfaces/EmbeddedInfo.html +15 -11
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +15 -11
- package/api_docs/ts/interfaces/{EventsPage.html → EventDeleteConversationEvent.html} +100 -38
- package/api_docs/ts/interfaces/From.html +15 -11
- package/api_docs/ts/interfaces/MemberInvitedEvent.html +15 -11
- package/api_docs/ts/interfaces/MemberJoinedEvent.html +15 -11
- package/api_docs/ts/interfaces/MemberLeftEvent.html +15 -11
- package/api_docs/ts/interfaces/MemberState.html +15 -11
- package/api_docs/ts/interfaces/MessageAudioEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageCustomEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageFileEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageImageEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageLocationEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageTemplateEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageTextEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageVCardEvent.html +15 -11
- package/api_docs/ts/interfaces/MessageVideoEvent.html +15 -11
- package/api_docs/ts/interfaces/NonPersistentConversationEvent.html +15 -11
- package/api_docs/ts/interfaces/PersistentConversationEvent.html +17 -13
- package/api_docs/ts/interfaces/System.html +16 -33
- package/api_docs/ts/modules.html +19 -65
- package/api_docs/ts/types/CustomData.html +16 -12
- package/dist/client/VonageClient.d.ts +53 -17
- package/dist/client/index.cjs +19490 -18957
- package/dist/client/index.mjs +19490 -18957
- package/dist/kotlin/JsUnions.d.ts +17 -2
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +49 -77
- package/dist/utils/ConversationModels.d.ts +4 -1
- package/dist/utils/RequestParameterModels.d.ts +17 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vonageClientSDK.js +19066 -18543
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +19066 -18543
- package/package.json +3 -2
- package/scripts/replaceAllDoNotUseOrImplement.js +25 -0
- package/typedoc.json +40 -0
- package/api_docs/ts/functions/convertInitConfig.html +0 -70
- package/api_docs/ts/functions/createVonageLogger.html +0 -91
- package/api_docs/ts/types/CallDisconnectReason.html +0 -61
- package/api_docs/ts/types/CallSayParams.html +0 -66
- package/api_docs/ts/types/CancelReason.html +0 -61
- package/api_docs/ts/types/ChannelType.html +0 -61
- package/api_docs/ts/types/ClientConfigObject.html +0 -61
- package/api_docs/ts/types/ClientInitConfigObject.html +0 -61
- package/api_docs/ts/types/ConfigRegion.html +0 -61
- package/api_docs/ts/types/Conversation.html +0 -68
- package/api_docs/ts/types/ConversationsPage.html +0 -66
- package/api_docs/ts/types/CreateConversationParameters.html +0 -68
- package/api_docs/ts/types/HangupReason.html +0 -61
- package/api_docs/ts/types/Json.html +0 -66
- package/api_docs/ts/types/JsonValue.html +0 -61
- package/api_docs/ts/types/Leg.html +0 -61
- package/api_docs/ts/types/LegStatus.html +0 -61
- package/api_docs/ts/types/LoggingLevel.html +0 -61
- package/api_docs/ts/types/Member.html +0 -66
- package/api_docs/ts/types/MembersPage.html +0 -66
- package/api_docs/ts/types/OrderBy.html +0 -61
- package/api_docs/ts/types/PresentingOrder.html +0 -61
- package/api_docs/ts/types/RTCQuality.html +0 -61
- package/api_docs/ts/types/RtcStats.html +0 -61
- package/api_docs/ts/types/SessionErrorReason.html +0 -61
- package/api_docs/ts/types/Topic.html +0 -61
- package/api_docs/ts/types/Topics.html +0 -61
- package/api_docs/ts/types/User.html +0 -61
- package/api_docs/ts/types/VonageError.html +0 -61
- package/api_docs/ts/types/VonageErrorType.html +0 -61
- package/api_docs/ts/types/VonageLogger.html +0 -61
- package/api_docs/ts/variables/CSErrorCodes.html +0 -82
- package/api_docs/ts/variables/CallDisconnectReason-1.html +0 -61
- package/api_docs/ts/variables/CancelReason-1.html +0 -61
- package/api_docs/ts/variables/ChannelType-1.html +0 -61
- package/api_docs/ts/variables/ConfigRegion-1.html +0 -61
- package/api_docs/ts/variables/HangupReason-1.html +0 -61
- package/api_docs/ts/variables/LegStatus-1.html +0 -61
- package/api_docs/ts/variables/LoggingLevel-1.html +0 -61
- package/api_docs/ts/variables/OrderBy-1.html +0 -61
- package/api_docs/ts/variables/PresentingOrder-1.html +0 -61
- package/api_docs/ts/variables/SessionErrorCodes.html +0 -96
- package/api_docs/ts/variables/SessionErrorReason-1.html +0 -61
- package/api_docs/ts/variables/Topic-1.html +0 -61
- package/api_docs/ts/variables/Topics-1.html +0 -61
- package/api_docs/ts/variables/VonageError-1.html +0 -61
- package/api_docs/ts/variables/VonageErrorType-1.html +0 -61
|
@@ -59,6 +59,21 @@ export type CustomConversationEvent = {
|
|
|
59
59
|
kind: 'custom';
|
|
60
60
|
from: From;
|
|
61
61
|
} & vonage.CustomConversationEventJS;
|
|
62
|
+
/**
|
|
63
|
+
* The EventDeleteConversationEvent type
|
|
64
|
+
*
|
|
65
|
+
* @property kind the kind property of the EventDeleteConversationEvent
|
|
66
|
+
* @property id the id property of the EventDeleteConversationEvent
|
|
67
|
+
* @property timestamp the timestamp property of the EventDeleteConversationEvent
|
|
68
|
+
* @property conversationId the conversationId property of the EventDeleteConversationEvent
|
|
69
|
+
* @property from the from property of the EventDeleteConversationEvent
|
|
70
|
+
* @property body the body property of the EventDeleteConversationEvent
|
|
71
|
+
* @interface
|
|
72
|
+
*/
|
|
73
|
+
export type EventDeleteConversationEvent = {
|
|
74
|
+
kind: 'event:delete';
|
|
75
|
+
from: From;
|
|
76
|
+
} & vonage.EventDeleteConversationEventJS;
|
|
62
77
|
/**
|
|
63
78
|
* The MemberInvitedEvent type
|
|
64
79
|
*
|
|
@@ -240,10 +255,10 @@ export type MessageVideoEvent = {
|
|
|
240
255
|
from: From;
|
|
241
256
|
} & vonage.MessageVideoEventJS;
|
|
242
257
|
/**
|
|
243
|
-
* A PersistentConversationEvent is a union of CustomConversationEvent, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, MessageAudioEvent, MessageCustomEvent, MessageFileEvent, MessageImageEvent, MessageLocationEvent, MessageTemplateEvent, MessageTextEvent, MessageVCardEvent, MessageVideoEvent
|
|
258
|
+
* A PersistentConversationEvent is a union of CustomConversationEvent, EventDeleteConversationEvent, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, MessageAudioEvent, MessageCustomEvent, MessageFileEvent, MessageImageEvent, MessageLocationEvent, MessageTemplateEvent, MessageTextEvent, MessageVCardEvent, MessageVideoEvent
|
|
244
259
|
* @interface
|
|
245
260
|
*/
|
|
246
|
-
export type PersistentConversationEvent = CustomConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageTemplateEvent | MessageTextEvent | MessageVCardEvent | MessageVideoEvent;
|
|
261
|
+
export type PersistentConversationEvent = CustomConversationEvent | EventDeleteConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageTemplateEvent | MessageTextEvent | MessageVCardEvent | MessageVideoEvent;
|
|
247
262
|
/**
|
|
248
263
|
* A ConversationEvent is a union of NonPersistentConversationEventJS, PersistentConversationEventJS
|
|
249
264
|
* @interface
|
|
@@ -31,9 +31,9 @@ export declare namespace vonage {
|
|
|
31
31
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
32
32
|
leaveConversation(cid: string): Promise<any>;
|
|
33
33
|
deleteConversation(cid: string): Promise<any>;
|
|
34
|
-
getConversations(
|
|
35
|
-
getConversationMembers(cid: string,
|
|
36
|
-
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>;
|
|
37
37
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
38
38
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
39
39
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
@@ -44,7 +44,7 @@ export declare namespace vonage {
|
|
|
44
44
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
45
45
|
deleteSession(): Promise<any>;
|
|
46
46
|
refreshSession(token: string): Promise<any>;
|
|
47
|
-
getConversation(
|
|
47
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
48
48
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
49
49
|
getPeerConnection(id: string): any;
|
|
50
50
|
serverCall(context: Nullable<Json>): Promise<string>;
|
|
@@ -59,7 +59,6 @@ export declare namespace vonage {
|
|
|
59
59
|
enableEarmuff(callId: string): Promise<any>;
|
|
60
60
|
disableEarmuff(callId: string): Promise<any>;
|
|
61
61
|
sendDTMF(callId: string, digits: string): Promise<any>;
|
|
62
|
-
readonly __doNotUseOrImplementIt: vonage.IChatClientJS["__doNotUseOrImplementIt"] & vonage.IVoiceClientJS["__doNotUseOrImplementIt"];
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
export declare namespace vonage {
|
|
@@ -70,41 +69,30 @@ export declare namespace vonage {
|
|
|
70
69
|
get nextCursor(): Nullable<string>;
|
|
71
70
|
}
|
|
72
71
|
interface FromJS {
|
|
73
|
-
readonly __doNotUseOrImplementIt: {
|
|
74
|
-
readonly "vonage.FromJS": unique symbol;
|
|
75
|
-
};
|
|
76
72
|
}
|
|
77
73
|
class EmbeddedInfoJS implements vonage.FromJS {
|
|
78
74
|
private constructor();
|
|
79
75
|
get kind(): string;
|
|
80
76
|
get memberId(): Nullable<string>;
|
|
81
77
|
get user(): vonage.UserJS;
|
|
82
|
-
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
83
78
|
}
|
|
84
79
|
const SystemJS: {
|
|
85
80
|
get kind(): string;
|
|
86
81
|
toString(): string;
|
|
87
82
|
hashCode(): number;
|
|
88
83
|
equals(other: Nullable<any>): boolean;
|
|
89
|
-
readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
|
|
90
84
|
} & vonage.FromJS;
|
|
91
85
|
interface ConversationEventJS {
|
|
92
86
|
readonly kind: string;
|
|
93
87
|
readonly timestamp: string;
|
|
94
88
|
readonly conversationId: string;
|
|
95
89
|
readonly from: vonage.FromJS;
|
|
96
|
-
readonly __doNotUseOrImplementIt: {
|
|
97
|
-
readonly "vonage.ConversationEventJS": unique symbol;
|
|
98
|
-
};
|
|
99
90
|
}
|
|
100
91
|
interface NonPersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
101
92
|
readonly kind: string;
|
|
102
93
|
readonly timestamp: string;
|
|
103
94
|
readonly conversationId: string;
|
|
104
95
|
readonly from: vonage.FromJS;
|
|
105
|
-
readonly __doNotUseOrImplementIt: {
|
|
106
|
-
readonly "vonage.NonPersistentConversationEventJS": unique symbol;
|
|
107
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
108
96
|
}
|
|
109
97
|
interface PersistentConversationEventJS extends vonage.ConversationEventJS {
|
|
110
98
|
readonly id: number;
|
|
@@ -112,15 +100,9 @@ export declare namespace vonage {
|
|
|
112
100
|
readonly timestamp: string;
|
|
113
101
|
readonly conversationId: string;
|
|
114
102
|
readonly from: vonage.FromJS;
|
|
115
|
-
readonly __doNotUseOrImplementIt: {
|
|
116
|
-
readonly "vonage.PersistentConversationEventJS": unique symbol;
|
|
117
|
-
} & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
|
|
118
103
|
}
|
|
119
104
|
interface MemberEventJS {
|
|
120
105
|
readonly body: vonage.MemberEventBodyJS;
|
|
121
|
-
readonly __doNotUseOrImplementIt: {
|
|
122
|
-
readonly "vonage.MemberEventJS": unique symbol;
|
|
123
|
-
};
|
|
124
106
|
}
|
|
125
107
|
class MemberEventBodyJS {
|
|
126
108
|
private constructor();
|
|
@@ -135,7 +117,6 @@ export declare namespace vonage {
|
|
|
135
117
|
get conversationId(): string;
|
|
136
118
|
get from(): vonage.FromJS;
|
|
137
119
|
get body(): vonage.MemberEventBodyJS;
|
|
138
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
139
120
|
}
|
|
140
121
|
class MemberJoinedEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
141
122
|
private constructor();
|
|
@@ -145,7 +126,6 @@ export declare namespace vonage {
|
|
|
145
126
|
get conversationId(): string;
|
|
146
127
|
get from(): vonage.FromJS;
|
|
147
128
|
get body(): vonage.MemberEventBodyJS;
|
|
148
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
149
129
|
}
|
|
150
130
|
class MemberLeftEventJS implements vonage.MemberEventJS, vonage.PersistentConversationEventJS {
|
|
151
131
|
private constructor();
|
|
@@ -155,13 +135,9 @@ export declare namespace vonage {
|
|
|
155
135
|
get conversationId(): string;
|
|
156
136
|
get from(): vonage.FromJS;
|
|
157
137
|
get body(): vonage.MemberEventBodyJS;
|
|
158
|
-
readonly __doNotUseOrImplementIt: vonage.MemberEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
159
138
|
}
|
|
160
139
|
interface JSONBodyEventJS {
|
|
161
140
|
readonly body: string;
|
|
162
|
-
readonly __doNotUseOrImplementIt: {
|
|
163
|
-
readonly "vonage.JSONBodyEventJS": unique symbol;
|
|
164
|
-
};
|
|
165
141
|
}
|
|
166
142
|
class CustomConversationEventJS implements vonage.PersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
167
143
|
private constructor();
|
|
@@ -172,7 +148,6 @@ export declare namespace vonage {
|
|
|
172
148
|
get from(): vonage.FromJS;
|
|
173
149
|
get eventType(): Nullable<string>;
|
|
174
150
|
get body(): string;
|
|
175
|
-
readonly __doNotUseOrImplementIt: vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"] & vonage.JSONBodyEventJS["__doNotUseOrImplementIt"];
|
|
176
151
|
}
|
|
177
152
|
class EphemeralConversationEventJS implements vonage.NonPersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
178
153
|
private constructor();
|
|
@@ -181,21 +156,23 @@ export declare namespace vonage {
|
|
|
181
156
|
get conversationId(): string;
|
|
182
157
|
get from(): vonage.FromJS;
|
|
183
158
|
get body(): string;
|
|
184
|
-
|
|
159
|
+
}
|
|
160
|
+
class EventDeleteConversationEventJS implements vonage.PersistentConversationEventJS, vonage.JSONBodyEventJS {
|
|
161
|
+
private constructor();
|
|
162
|
+
get kind(): string;
|
|
163
|
+
get id(): number;
|
|
164
|
+
get timestamp(): string;
|
|
165
|
+
get conversationId(): string;
|
|
166
|
+
get from(): vonage.FromJS;
|
|
167
|
+
get body(): string;
|
|
185
168
|
}
|
|
186
169
|
}
|
|
187
170
|
export declare namespace vonage {
|
|
188
171
|
interface MessageEventJS {
|
|
189
172
|
readonly body: vonage.MessageEventBodyJS;
|
|
190
|
-
readonly __doNotUseOrImplementIt: {
|
|
191
|
-
readonly "vonage.MessageEventJS": unique symbol;
|
|
192
|
-
};
|
|
193
173
|
}
|
|
194
174
|
interface MessageEventBodyJS {
|
|
195
175
|
readonly deleted: Nullable<string>;
|
|
196
|
-
readonly __doNotUseOrImplementIt: {
|
|
197
|
-
readonly "vonage.MessageEventBodyJS": unique symbol;
|
|
198
|
-
};
|
|
199
176
|
}
|
|
200
177
|
class MessageTextEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
201
178
|
private constructor();
|
|
@@ -205,14 +182,12 @@ export declare namespace vonage {
|
|
|
205
182
|
get conversationId(): string;
|
|
206
183
|
get from(): vonage.FromJS;
|
|
207
184
|
get body(): vonage.MessageTextEventJS.Body;
|
|
208
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
209
185
|
}
|
|
210
186
|
namespace MessageTextEventJS {
|
|
211
187
|
class Body implements vonage.MessageEventBodyJS {
|
|
212
188
|
private constructor();
|
|
213
189
|
get text(): string;
|
|
214
190
|
get deleted(): Nullable<string>;
|
|
215
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
216
191
|
}
|
|
217
192
|
}
|
|
218
193
|
class MessageCustomEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -223,14 +198,12 @@ export declare namespace vonage {
|
|
|
223
198
|
get conversationId(): string;
|
|
224
199
|
get from(): vonage.FromJS;
|
|
225
200
|
get body(): vonage.MessageCustomEventJS.Body;
|
|
226
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
227
201
|
}
|
|
228
202
|
namespace MessageCustomEventJS {
|
|
229
203
|
class Body implements vonage.MessageEventBodyJS {
|
|
230
204
|
private constructor();
|
|
231
205
|
get customData(): string;
|
|
232
206
|
get deleted(): Nullable<string>;
|
|
233
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
234
207
|
}
|
|
235
208
|
}
|
|
236
209
|
class MessageAudioEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -241,14 +214,12 @@ export declare namespace vonage {
|
|
|
241
214
|
get conversationId(): string;
|
|
242
215
|
get from(): vonage.FromJS;
|
|
243
216
|
get body(): vonage.MessageAudioEventJS.Body;
|
|
244
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
245
217
|
}
|
|
246
218
|
namespace MessageAudioEventJS {
|
|
247
219
|
class Body implements vonage.MessageEventBodyJS {
|
|
248
220
|
private constructor();
|
|
249
221
|
get audioUrl(): string;
|
|
250
222
|
get deleted(): Nullable<string>;
|
|
251
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
252
223
|
}
|
|
253
224
|
}
|
|
254
225
|
class MessageVideoEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -259,14 +230,12 @@ export declare namespace vonage {
|
|
|
259
230
|
get conversationId(): string;
|
|
260
231
|
get from(): vonage.FromJS;
|
|
261
232
|
get body(): vonage.MessageVideoEventJS.Body;
|
|
262
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
263
233
|
}
|
|
264
234
|
namespace MessageVideoEventJS {
|
|
265
235
|
class Body implements vonage.MessageEventBodyJS {
|
|
266
236
|
private constructor();
|
|
267
237
|
get videoUrl(): string;
|
|
268
238
|
get deleted(): Nullable<string>;
|
|
269
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
270
239
|
}
|
|
271
240
|
}
|
|
272
241
|
class MessageImageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -277,14 +246,12 @@ export declare namespace vonage {
|
|
|
277
246
|
get conversationId(): string;
|
|
278
247
|
get from(): vonage.FromJS;
|
|
279
248
|
get body(): vonage.MessageImageEventJS.Body;
|
|
280
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
281
249
|
}
|
|
282
250
|
namespace MessageImageEventJS {
|
|
283
251
|
class Body implements vonage.MessageEventBodyJS {
|
|
284
252
|
private constructor();
|
|
285
253
|
get imageUrl(): string;
|
|
286
254
|
get deleted(): Nullable<string>;
|
|
287
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
288
255
|
}
|
|
289
256
|
}
|
|
290
257
|
class MessageFileEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -295,14 +262,12 @@ export declare namespace vonage {
|
|
|
295
262
|
get conversationId(): string;
|
|
296
263
|
get from(): vonage.FromJS;
|
|
297
264
|
get body(): vonage.MessageFileEventJS.Body;
|
|
298
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
299
265
|
}
|
|
300
266
|
namespace MessageFileEventJS {
|
|
301
267
|
class Body implements vonage.MessageEventBodyJS {
|
|
302
268
|
private constructor();
|
|
303
269
|
get fileUrl(): string;
|
|
304
270
|
get deleted(): Nullable<string>;
|
|
305
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
306
271
|
}
|
|
307
272
|
}
|
|
308
273
|
class MessageVCardEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -313,14 +278,12 @@ export declare namespace vonage {
|
|
|
313
278
|
get conversationId(): string;
|
|
314
279
|
get from(): vonage.FromJS;
|
|
315
280
|
get body(): vonage.MessageVCardEventJS.Body;
|
|
316
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
317
281
|
}
|
|
318
282
|
namespace MessageVCardEventJS {
|
|
319
283
|
class Body implements vonage.MessageEventBodyJS {
|
|
320
284
|
private constructor();
|
|
321
285
|
get vcardUrl(): string;
|
|
322
286
|
get deleted(): Nullable<string>;
|
|
323
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
324
287
|
}
|
|
325
288
|
}
|
|
326
289
|
class MessageLocationEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
|
|
@@ -331,14 +294,12 @@ export declare namespace vonage {
|
|
|
331
294
|
get conversationId(): string;
|
|
332
295
|
get from(): vonage.FromJS;
|
|
333
296
|
get body(): vonage.MessageLocationEventJS.Body;
|
|
334
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
335
297
|
}
|
|
336
298
|
namespace MessageLocationEventJS {
|
|
337
299
|
class Body implements vonage.MessageEventBodyJS {
|
|
338
300
|
private constructor();
|
|
339
301
|
get location(): vonage.MessageLocationEventJS.Location;
|
|
340
302
|
get deleted(): Nullable<string>;
|
|
341
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
342
303
|
}
|
|
343
304
|
class Location {
|
|
344
305
|
private constructor();
|
|
@@ -356,7 +317,6 @@ export declare namespace vonage {
|
|
|
356
317
|
get conversationId(): string;
|
|
357
318
|
get from(): vonage.FromJS;
|
|
358
319
|
get body(): vonage.MessageTemplateEventJS.Body;
|
|
359
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
|
|
360
320
|
}
|
|
361
321
|
namespace MessageTemplateEventJS {
|
|
362
322
|
class Body implements vonage.MessageEventBodyJS {
|
|
@@ -369,7 +329,6 @@ export declare namespace vonage {
|
|
|
369
329
|
toString(): string;
|
|
370
330
|
hashCode(): number;
|
|
371
331
|
equals(other: Nullable<any>): boolean;
|
|
372
|
-
readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
|
|
373
332
|
}
|
|
374
333
|
class TemplateObject {
|
|
375
334
|
private constructor();
|
|
@@ -669,14 +628,6 @@ export declare namespace vonage {
|
|
|
669
628
|
reconnection(): void;
|
|
670
629
|
sessionError(reason: vonage.SessionErrorReasonJS): void;
|
|
671
630
|
}
|
|
672
|
-
interface CreateConversationParametersJS {
|
|
673
|
-
readonly name?: Nullable<string>;
|
|
674
|
-
readonly displayName?: Nullable<string>;
|
|
675
|
-
readonly imageUrl?: Nullable<string>;
|
|
676
|
-
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
677
|
-
readonly customSortKey?: Nullable<string>;
|
|
678
|
-
readonly customData?: Nullable<string>;
|
|
679
|
-
}
|
|
680
631
|
}
|
|
681
632
|
export declare namespace vonage {
|
|
682
633
|
interface IChatClientJS extends vonage.ICoreClientJS {
|
|
@@ -686,9 +637,9 @@ export declare namespace vonage {
|
|
|
686
637
|
inviteToConversation(cid: string, username: string): Promise<string>;
|
|
687
638
|
leaveConversation(cid: string): Promise<any>;
|
|
688
639
|
deleteConversation(cid: string): Promise<any>;
|
|
689
|
-
getConversations(
|
|
690
|
-
getConversationMembers(cid: string,
|
|
691
|
-
getConversationEvents(cid: string,
|
|
640
|
+
getConversations(parameters: Nullable<vonage.GetConversationsParametersJS>): Promise<vonage.ConversationsPageJS>;
|
|
641
|
+
getConversationMembers(cid: string, parameters: Nullable<vonage.GetConversationMembersParametersJS>): Promise<vonage.MembersPageJS>;
|
|
642
|
+
getConversationEvents(cid: string, parameters: Nullable<vonage.GetConversationEventsParametersJS>): Promise<vonage.EventsPageJS>;
|
|
692
643
|
getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
|
|
693
644
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
694
645
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
@@ -699,11 +650,8 @@ export declare namespace vonage {
|
|
|
699
650
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
700
651
|
deleteSession(): Promise<any>;
|
|
701
652
|
refreshSession(token: string): Promise<any>;
|
|
702
|
-
getConversation(
|
|
653
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
703
654
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
704
|
-
readonly __doNotUseOrImplementIt: {
|
|
705
|
-
readonly "vonage.IChatClientJS": unique symbol;
|
|
706
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
707
655
|
}
|
|
708
656
|
}
|
|
709
657
|
export declare namespace vonage {
|
|
@@ -878,11 +826,8 @@ export declare namespace vonage {
|
|
|
878
826
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
879
827
|
deleteSession(): Promise<any>;
|
|
880
828
|
refreshSession(token: string): Promise<any>;
|
|
881
|
-
getConversation(
|
|
829
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
882
830
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
883
|
-
readonly __doNotUseOrImplementIt: {
|
|
884
|
-
readonly "vonage.ICoreClientJS": unique symbol;
|
|
885
|
-
};
|
|
886
831
|
}
|
|
887
832
|
}
|
|
888
833
|
export declare namespace vonage {
|
|
@@ -990,11 +935,8 @@ export declare namespace vonage {
|
|
|
990
935
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
991
936
|
deleteSession(): Promise<any>;
|
|
992
937
|
refreshSession(token: string): Promise<any>;
|
|
993
|
-
getConversation(
|
|
938
|
+
getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
|
|
994
939
|
getUser(userIdOrName: string): Promise<vonage.UserJS>;
|
|
995
|
-
readonly __doNotUseOrImplementIt: {
|
|
996
|
-
readonly "vonage.IVoiceClientJS": unique symbol;
|
|
997
|
-
} & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
|
|
998
940
|
}
|
|
999
941
|
class VoiceInviteFromInfoJS {
|
|
1000
942
|
constructor(id: Nullable<string>, type: string);
|
|
@@ -1123,4 +1065,34 @@ export declare namespace vonage {
|
|
|
1123
1065
|
};
|
|
1124
1066
|
}
|
|
1125
1067
|
}
|
|
1068
|
+
export declare namespace vonage {
|
|
1069
|
+
interface CreateConversationParametersJS {
|
|
1070
|
+
readonly name?: Nullable<string>;
|
|
1071
|
+
readonly displayName?: Nullable<string>;
|
|
1072
|
+
readonly imageUrl?: Nullable<string>;
|
|
1073
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1074
|
+
readonly customSortKey?: Nullable<string>;
|
|
1075
|
+
readonly customData?: Nullable<string>;
|
|
1076
|
+
}
|
|
1077
|
+
interface GetConversationsParametersJS {
|
|
1078
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1079
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1080
|
+
readonly cursor?: Nullable<string>;
|
|
1081
|
+
readonly includeCustomData?: Nullable<boolean>;
|
|
1082
|
+
readonly orderBy?: Nullable<vonage.OrderByJS>;
|
|
1083
|
+
}
|
|
1084
|
+
interface GetConversationEventsParametersJS {
|
|
1085
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1086
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1087
|
+
readonly cursor?: Nullable<string>;
|
|
1088
|
+
readonly eventFilter?: Nullable<Array<string>>;
|
|
1089
|
+
readonly includeDeletedEvents?: Nullable<boolean>;
|
|
1090
|
+
readonly startId?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1091
|
+
}
|
|
1092
|
+
interface GetConversationMembersParametersJS {
|
|
1093
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1094
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1095
|
+
readonly cursor?: Nullable<string>;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1126
1098
|
export as namespace clientsdk_clientcore_js;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import vonage from '../utils/vonage';
|
|
2
|
-
import { ConversationState, MemberState } from '../kotlin/JsUnions';
|
|
2
|
+
import { ConversationState, MemberState, PersistentConversationEvent } from '../kotlin/JsUnions';
|
|
3
3
|
export type Conversation = vonage.ConversationJS & {
|
|
4
4
|
memberState?: MemberState;
|
|
5
5
|
state?: ConversationState;
|
|
@@ -7,6 +7,9 @@ export type Conversation = vonage.ConversationJS & {
|
|
|
7
7
|
export type ConversationsPage = vonage.ConversationsPageJS & {
|
|
8
8
|
conversations: Conversation[];
|
|
9
9
|
};
|
|
10
|
+
export type EventsPage = vonage.EventsPageJS & {
|
|
11
|
+
events: PersistentConversationEvent[];
|
|
12
|
+
};
|
|
10
13
|
export type Member = vonage.MemberJS & {
|
|
11
14
|
state?: MemberState;
|
|
12
15
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import vonage from './vonage';
|
|
2
|
+
import { CustomData } from './JsonUtils';
|
|
3
|
+
import { Nullable } from '../kotlin/clientsdk-clientcore_js';
|
|
4
|
+
export type CreateConversationParameters = Omit<vonage.CreateConversationParametersJS, 'ttl' | 'customData'> & {
|
|
5
|
+
ttl?: Nullable<number>;
|
|
6
|
+
customData?: Nullable<CustomData>;
|
|
7
|
+
};
|
|
8
|
+
export type GetConversationsParameters = Omit<vonage.GetConversationsParametersJS, 'pageSize'> & {
|
|
9
|
+
pageSize?: Nullable<number>;
|
|
10
|
+
};
|
|
11
|
+
export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsParametersJS, 'pageSize' | 'startId'> & {
|
|
12
|
+
pageSize?: Nullable<number>;
|
|
13
|
+
startId?: Nullable<number>;
|
|
14
|
+
};
|
|
15
|
+
export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize'> & {
|
|
16
|
+
pageSize?: Nullable<number>;
|
|
17
|
+
};
|
package/dist/utils/index.d.ts
CHANGED