@vonage/client-sdk 1.2.0-alpha.13 → 1.2.0-alpha.14

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.
@@ -43,21 +43,6 @@ export type EphemeralConversationEvent = {
43
43
  * @interface
44
44
  */
45
45
  export type NonPersistentConversationEvent = EphemeralConversationEvent;
46
- /**
47
- * The AudioMessageEvent type
48
- *
49
- * @property kind the kind property of the AudioMessageEvent
50
- * @property id the id property of the AudioMessageEvent
51
- * @property timestamp the timestamp property of the AudioMessageEvent
52
- * @property conversationId the conversationId property of the AudioMessageEvent
53
- * @property from the from property of the AudioMessageEvent
54
- * @property body the body property of the AudioMessageEvent
55
- * @interface
56
- */
57
- export type AudioMessageEvent = {
58
- kind: 'message:audio';
59
- from: From;
60
- } & vonage.AudioMessageEventJS;
61
46
  /**
62
47
  * The CustomConversationEvent type
63
48
  *
@@ -74,66 +59,6 @@ export type CustomConversationEvent = {
74
59
  kind: 'custom';
75
60
  from: From;
76
61
  } & vonage.CustomConversationEventJS;
77
- /**
78
- * The CustomMessageEvent type
79
- *
80
- * @property kind the kind property of the CustomMessageEvent
81
- * @property id the id property of the CustomMessageEvent
82
- * @property timestamp the timestamp property of the CustomMessageEvent
83
- * @property conversationId the conversationId property of the CustomMessageEvent
84
- * @property from the from property of the CustomMessageEvent
85
- * @property body the body property of the CustomMessageEvent
86
- * @interface
87
- */
88
- export type CustomMessageEvent = {
89
- kind: 'message:custom';
90
- from: From;
91
- } & vonage.CustomMessageEventJS;
92
- /**
93
- * The FileMessageEvent type
94
- *
95
- * @property kind the kind property of the FileMessageEvent
96
- * @property id the id property of the FileMessageEvent
97
- * @property timestamp the timestamp property of the FileMessageEvent
98
- * @property conversationId the conversationId property of the FileMessageEvent
99
- * @property from the from property of the FileMessageEvent
100
- * @property body the body property of the FileMessageEvent
101
- * @interface
102
- */
103
- export type FileMessageEvent = {
104
- kind: 'message:file';
105
- from: From;
106
- } & vonage.FileMessageEventJS;
107
- /**
108
- * The ImageMessageEvent type
109
- *
110
- * @property kind the kind property of the ImageMessageEvent
111
- * @property id the id property of the ImageMessageEvent
112
- * @property timestamp the timestamp property of the ImageMessageEvent
113
- * @property conversationId the conversationId property of the ImageMessageEvent
114
- * @property from the from property of the ImageMessageEvent
115
- * @property body the body property of the ImageMessageEvent
116
- * @interface
117
- */
118
- export type ImageMessageEvent = {
119
- kind: 'message:image';
120
- from: From;
121
- } & vonage.ImageMessageEventJS;
122
- /**
123
- * The LocationMessageEvent type
124
- *
125
- * @property kind the kind property of the LocationMessageEvent
126
- * @property id the id property of the LocationMessageEvent
127
- * @property timestamp the timestamp property of the LocationMessageEvent
128
- * @property conversationId the conversationId property of the LocationMessageEvent
129
- * @property from the from property of the LocationMessageEvent
130
- * @property body the body property of the LocationMessageEvent
131
- * @interface
132
- */
133
- export type LocationMessageEvent = {
134
- kind: 'message:location';
135
- from: From;
136
- } & vonage.LocationMessageEventJS;
137
62
  /**
138
63
  * The MemberInvitedEvent type
139
64
  *
@@ -180,70 +105,145 @@ export type MemberLeftEvent = {
180
105
  from: From;
181
106
  } & vonage.MemberLeftEventJS;
182
107
  /**
183
- * The TemplateMessageEvent type
108
+ * The MessageAudioEvent type
109
+ *
110
+ * @property kind the kind property of the MessageAudioEvent
111
+ * @property id the id property of the MessageAudioEvent
112
+ * @property timestamp the timestamp property of the MessageAudioEvent
113
+ * @property conversationId the conversationId property of the MessageAudioEvent
114
+ * @property from the from property of the MessageAudioEvent
115
+ * @property body the body property of the MessageAudioEvent
116
+ * @interface
117
+ */
118
+ export type MessageAudioEvent = {
119
+ kind: 'message:audio';
120
+ from: From;
121
+ } & vonage.MessageAudioEventJS;
122
+ /**
123
+ * The MessageCustomEvent type
124
+ *
125
+ * @property kind the kind property of the MessageCustomEvent
126
+ * @property id the id property of the MessageCustomEvent
127
+ * @property timestamp the timestamp property of the MessageCustomEvent
128
+ * @property conversationId the conversationId property of the MessageCustomEvent
129
+ * @property from the from property of the MessageCustomEvent
130
+ * @property body the body property of the MessageCustomEvent
131
+ * @interface
132
+ */
133
+ export type MessageCustomEvent = {
134
+ kind: 'message:custom';
135
+ from: From;
136
+ } & vonage.MessageCustomEventJS;
137
+ /**
138
+ * The MessageFileEvent type
139
+ *
140
+ * @property kind the kind property of the MessageFileEvent
141
+ * @property id the id property of the MessageFileEvent
142
+ * @property timestamp the timestamp property of the MessageFileEvent
143
+ * @property conversationId the conversationId property of the MessageFileEvent
144
+ * @property from the from property of the MessageFileEvent
145
+ * @property body the body property of the MessageFileEvent
146
+ * @interface
147
+ */
148
+ export type MessageFileEvent = {
149
+ kind: 'message:file';
150
+ from: From;
151
+ } & vonage.MessageFileEventJS;
152
+ /**
153
+ * The MessageImageEvent type
154
+ *
155
+ * @property kind the kind property of the MessageImageEvent
156
+ * @property id the id property of the MessageImageEvent
157
+ * @property timestamp the timestamp property of the MessageImageEvent
158
+ * @property conversationId the conversationId property of the MessageImageEvent
159
+ * @property from the from property of the MessageImageEvent
160
+ * @property body the body property of the MessageImageEvent
161
+ * @interface
162
+ */
163
+ export type MessageImageEvent = {
164
+ kind: 'message:image';
165
+ from: From;
166
+ } & vonage.MessageImageEventJS;
167
+ /**
168
+ * The MessageLocationEvent type
169
+ *
170
+ * @property kind the kind property of the MessageLocationEvent
171
+ * @property id the id property of the MessageLocationEvent
172
+ * @property timestamp the timestamp property of the MessageLocationEvent
173
+ * @property conversationId the conversationId property of the MessageLocationEvent
174
+ * @property from the from property of the MessageLocationEvent
175
+ * @property body the body property of the MessageLocationEvent
176
+ * @interface
177
+ */
178
+ export type MessageLocationEvent = {
179
+ kind: 'message:location';
180
+ from: From;
181
+ } & vonage.MessageLocationEventJS;
182
+ /**
183
+ * The MessageTemplateEvent type
184
184
  *
185
- * @property kind the kind property of the TemplateMessageEvent
186
- * @property id the id property of the TemplateMessageEvent
187
- * @property timestamp the timestamp property of the TemplateMessageEvent
188
- * @property conversationId the conversationId property of the TemplateMessageEvent
189
- * @property from the from property of the TemplateMessageEvent
190
- * @property body the body property of the TemplateMessageEvent
185
+ * @property kind the kind property of the MessageTemplateEvent
186
+ * @property id the id property of the MessageTemplateEvent
187
+ * @property timestamp the timestamp property of the MessageTemplateEvent
188
+ * @property conversationId the conversationId property of the MessageTemplateEvent
189
+ * @property from the from property of the MessageTemplateEvent
190
+ * @property body the body property of the MessageTemplateEvent
191
191
  * @interface
192
192
  */
193
- export type TemplateMessageEvent = {
193
+ export type MessageTemplateEvent = {
194
194
  kind: 'message:template';
195
195
  from: From;
196
- } & vonage.TemplateMessageEventJS;
196
+ } & vonage.MessageTemplateEventJS;
197
197
  /**
198
- * The TextMessageEvent type
198
+ * The MessageTextEvent type
199
199
  *
200
- * @property kind the kind property of the TextMessageEvent
201
- * @property id the id property of the TextMessageEvent
202
- * @property timestamp the timestamp property of the TextMessageEvent
203
- * @property conversationId the conversationId property of the TextMessageEvent
204
- * @property from the from property of the TextMessageEvent
205
- * @property body the body property of the TextMessageEvent
200
+ * @property kind the kind property of the MessageTextEvent
201
+ * @property id the id property of the MessageTextEvent
202
+ * @property timestamp the timestamp property of the MessageTextEvent
203
+ * @property conversationId the conversationId property of the MessageTextEvent
204
+ * @property from the from property of the MessageTextEvent
205
+ * @property body the body property of the MessageTextEvent
206
206
  * @interface
207
207
  */
208
- export type TextMessageEvent = {
208
+ export type MessageTextEvent = {
209
209
  kind: 'message:text';
210
210
  from: From;
211
- } & vonage.TextMessageEventJS;
211
+ } & vonage.MessageTextEventJS;
212
212
  /**
213
- * The VCardMessageEvent type
213
+ * The MessageVCardEvent type
214
214
  *
215
- * @property kind the kind property of the VCardMessageEvent
216
- * @property id the id property of the VCardMessageEvent
217
- * @property timestamp the timestamp property of the VCardMessageEvent
218
- * @property conversationId the conversationId property of the VCardMessageEvent
219
- * @property from the from property of the VCardMessageEvent
220
- * @property body the body property of the VCardMessageEvent
215
+ * @property kind the kind property of the MessageVCardEvent
216
+ * @property id the id property of the MessageVCardEvent
217
+ * @property timestamp the timestamp property of the MessageVCardEvent
218
+ * @property conversationId the conversationId property of the MessageVCardEvent
219
+ * @property from the from property of the MessageVCardEvent
220
+ * @property body the body property of the MessageVCardEvent
221
221
  * @interface
222
222
  */
223
- export type VCardMessageEvent = {
223
+ export type MessageVCardEvent = {
224
224
  kind: 'message:vcard';
225
225
  from: From;
226
- } & vonage.VCardMessageEventJS;
226
+ } & vonage.MessageVCardEventJS;
227
227
  /**
228
- * The VideoMessageEvent type
228
+ * The MessageVideoEvent type
229
229
  *
230
- * @property kind the kind property of the VideoMessageEvent
231
- * @property id the id property of the VideoMessageEvent
232
- * @property timestamp the timestamp property of the VideoMessageEvent
233
- * @property conversationId the conversationId property of the VideoMessageEvent
234
- * @property from the from property of the VideoMessageEvent
235
- * @property body the body property of the VideoMessageEvent
230
+ * @property kind the kind property of the MessageVideoEvent
231
+ * @property id the id property of the MessageVideoEvent
232
+ * @property timestamp the timestamp property of the MessageVideoEvent
233
+ * @property conversationId the conversationId property of the MessageVideoEvent
234
+ * @property from the from property of the MessageVideoEvent
235
+ * @property body the body property of the MessageVideoEvent
236
236
  * @interface
237
237
  */
238
- export type VideoMessageEvent = {
238
+ export type MessageVideoEvent = {
239
239
  kind: 'message:video';
240
240
  from: From;
241
- } & vonage.VideoMessageEventJS;
241
+ } & vonage.MessageVideoEventJS;
242
242
  /**
243
- * A PersistentConversationEvent is a union of AudioMessageEvent, CustomConversationEvent, CustomMessageEvent, FileMessageEvent, ImageMessageEvent, LocationMessageEvent, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, TemplateMessageEvent, TextMessageEvent, VCardMessageEvent, VideoMessageEvent
243
+ * A PersistentConversationEvent is a union of CustomConversationEvent, MemberInvitedEvent, MemberJoinedEvent, MemberLeftEvent, MessageAudioEvent, MessageCustomEvent, MessageFileEvent, MessageImageEvent, MessageLocationEvent, MessageTemplateEvent, MessageTextEvent, MessageVCardEvent, MessageVideoEvent
244
244
  * @interface
245
245
  */
246
- export type PersistentConversationEvent = AudioMessageEvent | CustomConversationEvent | CustomMessageEvent | FileMessageEvent | ImageMessageEvent | LocationMessageEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | TemplateMessageEvent | TextMessageEvent | VCardMessageEvent | VideoMessageEvent;
246
+ export type PersistentConversationEvent = CustomConversationEvent | MemberInvitedEvent | MemberJoinedEvent | MemberLeftEvent | MessageAudioEvent | MessageCustomEvent | MessageFileEvent | MessageImageEvent | MessageLocationEvent | MessageTemplateEvent | MessageTextEvent | MessageVCardEvent | MessageVideoEvent;
247
247
  /**
248
248
  * A ConversationEvent is a union of NonPersistentConversationEventJS, PersistentConversationEventJS
249
249
  * @interface
@@ -30,12 +30,12 @@ export declare namespace vonage {
30
30
  inviteToConversation(cid: string, username: string): Promise<string>;
31
31
  leaveConversation(cid: string): Promise<any>;
32
32
  deleteConversation(cid: string): Promise<any>;
33
- getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData: boolean): Promise<vonage.ConversationsPageJS>;
33
+ getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData: boolean, orderBy: Nullable<vonage.OrderByJS>): Promise<vonage.ConversationsPageJS>;
34
34
  getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
35
35
  getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
36
36
  getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
37
- sendTextMessage(cid: string, text: string): Promise<string>;
38
- sendCustomMessage(cid: string, customData: string): Promise<string>;
37
+ sendMessageTextEvent(cid: string, text: string): Promise<string>;
38
+ sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
39
39
  sendEphemeralEvent(cid: string, customBody: string): Promise<string>;
40
40
  setConfig(config: vonage.CoreClientConfigJS): void;
41
41
  createSession(token: string, sessionId: Nullable<string>): Promise<string>;
@@ -74,7 +74,7 @@ export declare namespace vonage {
74
74
  class EmbeddedInfoJS implements vonage.FromJS {
75
75
  private constructor();
76
76
  get kind(): string;
77
- get memberId(): string;
77
+ get memberId(): Nullable<string>;
78
78
  get user(): vonage.UserJS;
79
79
  readonly __doNotUseOrImplementIt: vonage.FromJS["__doNotUseOrImplementIt"];
80
80
  }
@@ -181,132 +181,132 @@ export declare namespace vonage {
181
181
  readonly "vonage.MessageEventJS": unique symbol;
182
182
  };
183
183
  }
184
- class TextMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
184
+ class MessageTextEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
185
185
  private constructor();
186
186
  get kind(): string;
187
187
  get id(): number;
188
188
  get timestamp(): string;
189
189
  get conversationId(): string;
190
190
  get from(): vonage.FromJS;
191
- get body(): vonage.TextMessageEventJS.Body;
191
+ get body(): vonage.MessageTextEventJS.Body;
192
192
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
193
193
  }
194
- namespace TextMessageEventJS {
194
+ namespace MessageTextEventJS {
195
195
  class Body {
196
196
  private constructor();
197
197
  get text(): string;
198
198
  }
199
199
  }
200
- class CustomMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
200
+ class MessageCustomEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
201
201
  private constructor();
202
202
  get kind(): string;
203
203
  get id(): number;
204
204
  get timestamp(): string;
205
205
  get conversationId(): string;
206
206
  get from(): vonage.FromJS;
207
- get body(): vonage.CustomMessageEventJS.Body;
207
+ get body(): vonage.MessageCustomEventJS.Body;
208
208
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
209
209
  }
210
- namespace CustomMessageEventJS {
210
+ namespace MessageCustomEventJS {
211
211
  class Body {
212
212
  private constructor();
213
213
  get customData(): string;
214
214
  }
215
215
  }
216
- class AudioMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
216
+ class MessageAudioEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
217
217
  private constructor();
218
218
  get kind(): string;
219
219
  get id(): number;
220
220
  get timestamp(): string;
221
221
  get conversationId(): string;
222
222
  get from(): vonage.FromJS;
223
- get body(): vonage.AudioMessageEventJS.Body;
223
+ get body(): vonage.MessageAudioEventJS.Body;
224
224
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
225
225
  }
226
- namespace AudioMessageEventJS {
226
+ namespace MessageAudioEventJS {
227
227
  class Body {
228
228
  private constructor();
229
229
  get audioUrl(): string;
230
230
  }
231
231
  }
232
- class VideoMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
232
+ class MessageVideoEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
233
233
  private constructor();
234
234
  get kind(): string;
235
235
  get id(): number;
236
236
  get timestamp(): string;
237
237
  get conversationId(): string;
238
238
  get from(): vonage.FromJS;
239
- get body(): vonage.VideoMessageEventJS.Body;
239
+ get body(): vonage.MessageVideoEventJS.Body;
240
240
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
241
241
  }
242
- namespace VideoMessageEventJS {
242
+ namespace MessageVideoEventJS {
243
243
  class Body {
244
244
  private constructor();
245
245
  get videoUrl(): string;
246
246
  }
247
247
  }
248
- class ImageMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
248
+ class MessageImageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
249
249
  private constructor();
250
250
  get kind(): string;
251
251
  get id(): number;
252
252
  get timestamp(): string;
253
253
  get conversationId(): string;
254
254
  get from(): vonage.FromJS;
255
- get body(): vonage.ImageMessageEventJS.Body;
255
+ get body(): vonage.MessageImageEventJS.Body;
256
256
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
257
257
  }
258
- namespace ImageMessageEventJS {
258
+ namespace MessageImageEventJS {
259
259
  class Body {
260
260
  private constructor();
261
261
  get imageUrl(): string;
262
262
  }
263
263
  }
264
- class FileMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
264
+ class MessageFileEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
265
265
  private constructor();
266
266
  get kind(): string;
267
267
  get id(): number;
268
268
  get timestamp(): string;
269
269
  get conversationId(): string;
270
270
  get from(): vonage.FromJS;
271
- get body(): vonage.FileMessageEventJS.Body;
271
+ get body(): vonage.MessageFileEventJS.Body;
272
272
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
273
273
  }
274
- namespace FileMessageEventJS {
274
+ namespace MessageFileEventJS {
275
275
  class Body {
276
276
  private constructor();
277
277
  get fileUrl(): string;
278
278
  }
279
279
  }
280
- class VCardMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
280
+ class MessageVCardEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
281
281
  private constructor();
282
282
  get kind(): string;
283
283
  get id(): number;
284
284
  get timestamp(): string;
285
285
  get conversationId(): string;
286
286
  get from(): vonage.FromJS;
287
- get body(): vonage.VCardMessageEventJS.Body;
287
+ get body(): vonage.MessageVCardEventJS.Body;
288
288
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
289
289
  }
290
- namespace VCardMessageEventJS {
290
+ namespace MessageVCardEventJS {
291
291
  class Body {
292
292
  private constructor();
293
293
  get vcardUrl(): string;
294
294
  }
295
295
  }
296
- class LocationMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
296
+ class MessageLocationEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
297
297
  private constructor();
298
298
  get kind(): string;
299
299
  get id(): number;
300
300
  get timestamp(): string;
301
301
  get conversationId(): string;
302
302
  get from(): vonage.FromJS;
303
- get body(): vonage.LocationMessageEventJS.Body;
303
+ get body(): vonage.MessageLocationEventJS.Body;
304
304
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
305
305
  }
306
- namespace LocationMessageEventJS {
306
+ namespace MessageLocationEventJS {
307
307
  class Body {
308
308
  private constructor();
309
- get location(): vonage.LocationMessageEventJS.Location;
309
+ get location(): vonage.MessageLocationEventJS.Location;
310
310
  }
311
311
  class Location {
312
312
  private constructor();
@@ -316,22 +316,23 @@ export declare namespace vonage {
316
316
  get address(): Nullable<string>;
317
317
  }
318
318
  }
319
- class TemplateMessageEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
319
+ class MessageTemplateEventJS implements vonage.MessageEventJS, vonage.PersistentConversationEventJS {
320
320
  private constructor();
321
321
  get kind(): string;
322
322
  get id(): number;
323
323
  get timestamp(): string;
324
324
  get conversationId(): string;
325
325
  get from(): vonage.FromJS;
326
- get body(): vonage.TemplateMessageEventJS.Body;
326
+ get body(): vonage.MessageTemplateEventJS.Body;
327
327
  readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"] & vonage.PersistentConversationEventJS["__doNotUseOrImplementIt"];
328
328
  }
329
- namespace TemplateMessageEventJS {
329
+ namespace MessageTemplateEventJS {
330
330
  class Body {
331
331
  private constructor();
332
- get body(): any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */;
333
- get template(): vonage.TemplateMessageEventJS.TemplateObject;
334
- copy(body?: any/* com.vonage.clientcore.core.api.models.TemplateMessageEvent.Body */): vonage.TemplateMessageEventJS.Body;
332
+ get body(): any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */;
333
+ get template(): vonage.MessageTemplateEventJS.TemplateObject;
334
+ get whatsapp(): vonage.MessageTemplateEventJS.WhatsappObject;
335
+ copy(body?: any/* com.vonage.clientcore.core.api.models.MessageTemplateEvent.Body */): vonage.MessageTemplateEventJS.Body;
335
336
  toString(): string;
336
337
  hashCode(): number;
337
338
  equals(other: Nullable<any>): boolean;
@@ -341,6 +342,11 @@ export declare namespace vonage {
341
342
  get name(): string;
342
343
  get parameters(): Nullable<Array<string>>;
343
344
  }
345
+ class WhatsappObject {
346
+ private constructor();
347
+ get policy(): string;
348
+ get locale(): string;
349
+ }
344
350
  }
345
351
  }
346
352
  export declare namespace vonage {
@@ -360,6 +366,22 @@ export declare namespace vonage {
360
366
  get name(): "ASC" | "DESC";
361
367
  get ordinal(): 0 | 1;
362
368
  }
369
+ abstract class OrderByJS {
370
+ private constructor();
371
+ get coreOrderBy(): any/* com.vonage.clientcore.core.api.models.OrderBy */;
372
+ static get CREATED(): vonage.OrderByJS & {
373
+ get name(): "CREATED";
374
+ get ordinal(): 0;
375
+ };
376
+ static get CUSTOM_SORT_KEY(): vonage.OrderByJS & {
377
+ get name(): "CUSTOM_SORT_KEY";
378
+ get ordinal(): 1;
379
+ };
380
+ static values(): Array<vonage.OrderByJS>;
381
+ static valueOf(value: string): vonage.OrderByJS;
382
+ get name(): "CREATED" | "CUSTOM_SORT_KEY";
383
+ get ordinal(): 0 | 1;
384
+ }
363
385
  class ConversationJS {
364
386
  private constructor();
365
387
  get id(): string;
@@ -371,6 +393,7 @@ export declare namespace vonage {
371
393
  get imageUrl(): Nullable<string>;
372
394
  get state(): Nullable<vonage.ConversationStateJS>;
373
395
  get customData(): Nullable<string>;
396
+ get customSortKey(): Nullable<string>;
374
397
  }
375
398
  abstract class ConversationStateJS {
376
399
  private constructor();
@@ -639,12 +662,12 @@ export declare namespace vonage {
639
662
  inviteToConversation(cid: string, username: string): Promise<string>;
640
663
  leaveConversation(cid: string): Promise<any>;
641
664
  deleteConversation(cid: string): Promise<any>;
642
- getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData?: boolean): Promise<vonage.ConversationsPageJS>;
665
+ getConversations(order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, includeCustomData?: boolean, orderBy?: Nullable<vonage.OrderByJS>): Promise<vonage.ConversationsPageJS>;
643
666
  getConversationMembers(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>): Promise<vonage.MembersPageJS>;
644
667
  getConversationEvents(cid: string, order: Nullable<vonage.PresentingOrderJS>, pageSize: Nullable<number>, cursor: Nullable<string>, eventFilter: Nullable<Array<string>>): Promise<vonage.EventsPageJS>;
645
668
  getConversationMember(cid: string, mid: string): Promise<vonage.MemberJS>;
646
- sendTextMessage(cid: string, text: string): Promise<string>;
647
- sendCustomMessage(cid: string, customData: string): Promise<string>;
669
+ sendMessageTextEvent(cid: string, text: string): Promise<string>;
670
+ sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
648
671
  sendEphemeralEvent(cid: string, customBody: string): Promise<string>;
649
672
  setConfig(config: vonage.CoreClientConfigJS): void;
650
673
  createSession(token: string, sessionId: Nullable<string>): Promise<string>;
@@ -12,3 +12,5 @@ export type ChannelType = vonage.ChannelTypeJS;
12
12
  export declare const ChannelType: typeof vonage.ChannelTypeJS;
13
13
  export type PresentingOrder = vonage.PresentingOrderJS;
14
14
  export declare const PresentingOrder: typeof vonage.PresentingOrderJS;
15
+ export type OrderBy = vonage.OrderByJS;
16
+ export declare const OrderBy: typeof vonage.OrderByJS;