@vonage/client-sdk 1.2.1 → 1.3.0-snapshot.42.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.
@@ -37,6 +37,7 @@ export type CallSayParams = Partial<vonage.CallSayParams> & {
37
37
  };
38
38
  export type CallDisconnectReason = vonage.CallDisconnectReasonJS;
39
39
  export declare const CallDisconnectReason: typeof vonage.CallDisconnectReasonJS;
40
+ export type RtcStats = vonage.RTCStatsJS;
40
41
  type JSONValue = string | number | boolean | {
41
42
  [x: string]: JSONValue;
42
43
  } | JSONValue[];
@@ -72,7 +73,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
72
73
  * Register a callback for an event.
73
74
  *
74
75
  * @example
75
- * [[include: snippet_RegisterListener.txt]]
76
+ * [[include: snippet_OnConversationEventListener.txt]]
76
77
  *
77
78
  * @param event - the event to register for (e.g. 'legStatusUpdate')
78
79
  * @param callback - the callback to register for the event
@@ -99,7 +100,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
99
100
  * Clear all callbacks for an event.
100
101
  *
101
102
  * @example
102
- * [[include: snippet_Clear_Callbacks.txt]]
103
+ * [[include: snippet_ClearCallbacks.txt]]
103
104
  *
104
105
  * @param event - the event to unregister from (e.g. 'legStatusUpdate')
105
106
  * @returns void
@@ -154,7 +155,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
154
155
  * Hangup a call.
155
156
  *
156
157
  * @example
157
- * [[include: snippet_CallHangup.txt]]
158
+ * [[include: snippet_Hangup.txt]]
158
159
  *
159
160
  * @group Voice
160
161
  * @param callId - the `callId` of the call to hangup
@@ -176,7 +177,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
176
177
  * Sends a TTS message to the Call
177
178
  *
178
179
  * @example
179
- * [[include: snippet_CallSay.txt]]
180
+ * [[include: snippet_Say.txt]]
180
181
  *
181
182
  * @group Voice
182
183
  * @param callId - the `callId` of the call to send the message to
@@ -332,6 +333,19 @@ export declare class VonageClient extends vonage.CombinedClientJS {
332
333
  * @returns the `timestamp` of the message
333
334
  */
334
335
  sendMessageCustomEvent(id: string, customData: JSONValue): Promise<string>;
336
+ /**
337
+ * Send a Image message to a Conversation.
338
+ *
339
+ * @example
340
+ * [[include: snippet_SendImageMessage.txt]]
341
+ *
342
+ * @group Chat
343
+ * @beta
344
+ * @param id - the Conversation's id
345
+ * @param imageUrl - the url of the image resource.
346
+ * @returns the `timestamp` of the message
347
+ */
348
+ sendMessageImageEvent(id: string, imageUrl: URL): Promise<string>;
335
349
  /**
336
350
  * Send an ephemeral event to a Conversation
337
351
  *
@@ -349,7 +363,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
349
363
  * Delete an Event in a Conversation
350
364
  *
351
365
  * @example
352
- * [[include:delete_event.txt]]
366
+ * [[include:snippet_DeleteEvent.txt]]
353
367
  *
354
368
  * @group Chat
355
369
  * @beta