@vonage/client-sdk 1.3.0-alpha.0 → 1.3.0-alpha.1
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/dist/client/VonageClient.d.ts +12 -15
- package/dist/client/index.cjs +10712 -10408
- package/dist/client/index.mjs +10712 -10408
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +35 -20
- package/dist/utils/JsonUtils.d.ts +9 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/logging.d.ts +6 -1
- package/dist/vonageClientSDK.js +10206 -9911
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +10206 -9911
- package/package.json +1 -1
- package/dist/global.d.ts +0 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import vonage from '../utils/vonage';
|
|
2
|
-
import { Conversation, ConversationsPage, Member, MembersPage, PresentingOrder, OrderBy, ClientInitConfigObject, ClientConfigObject } from '../utils';
|
|
2
|
+
import { Conversation, ConversationsPage, Member, MembersPage, PresentingOrder, OrderBy, ClientInitConfigObject, ClientConfigObject, Json, CustomData } from '../utils';
|
|
3
|
+
import { Nullable } from '../kotlin/clientsdk-clientcore_js';
|
|
3
4
|
import { ConversationEvent, PersistentConversationEvent } from '../kotlin/JsUnions';
|
|
4
5
|
/**
|
|
5
6
|
* The Vonage Client SDK for JS/TS provides a simple interface
|
|
@@ -38,14 +39,10 @@ export type CallSayParams = Partial<vonage.CallSayParams> & {
|
|
|
38
39
|
export type CallDisconnectReason = vonage.CallDisconnectReasonJS;
|
|
39
40
|
export declare const CallDisconnectReason: typeof vonage.CallDisconnectReasonJS;
|
|
40
41
|
export type RtcStats = vonage.RTCStatsJS;
|
|
41
|
-
type
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* @deprecated Use {@link ClientInitConfig.loggingLevel} instead.
|
|
46
|
-
* @param level - The logging level to set.
|
|
47
|
-
*/
|
|
48
|
-
export declare const setVonageClientLoggingLevel: typeof vonage.setDefaultLoggingLevel;
|
|
42
|
+
export type CreateConversationParameters = Omit<vonage.CreateConversationParametersJS, 'ttl' | 'customData'> & {
|
|
43
|
+
ttl?: Nullable<number>;
|
|
44
|
+
customData?: Nullable<CustomData>;
|
|
45
|
+
};
|
|
49
46
|
/**
|
|
50
47
|
* VonageClient is the main entry point for the Vonage Client SDK.
|
|
51
48
|
*
|
|
@@ -243,11 +240,11 @@ export declare class VonageClient extends vonage.CombinedClientJS {
|
|
|
243
240
|
*
|
|
244
241
|
* @group Chat
|
|
245
242
|
* @beta
|
|
246
|
-
* @param
|
|
247
|
-
*
|
|
243
|
+
* @param parameters - A [CreateConversationParameters] object containing the parameters for the creation request.
|
|
244
|
+
*
|
|
248
245
|
* @returns the `cid` of the conversation
|
|
249
246
|
*/
|
|
250
|
-
createConversation(
|
|
247
|
+
createConversation(parameters?: Nullable<CreateConversationParameters>): Promise<string>;
|
|
251
248
|
/**
|
|
252
249
|
* Get a Conversation
|
|
253
250
|
*
|
|
@@ -332,7 +329,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
|
|
|
332
329
|
* @param customData - the body of the message
|
|
333
330
|
* @returns the `timestamp` of the message
|
|
334
331
|
*/
|
|
335
|
-
sendMessageCustomEvent(id: string, customData:
|
|
332
|
+
sendMessageCustomEvent(id: string, customData: CustomData): Promise<string>;
|
|
336
333
|
/**
|
|
337
334
|
* Send a Image message to a Conversation.
|
|
338
335
|
*
|
|
@@ -355,10 +352,10 @@ export declare class VonageClient extends vonage.CombinedClientJS {
|
|
|
355
352
|
* @group Chat
|
|
356
353
|
* @beta
|
|
357
354
|
* @param id - the Conversation's id
|
|
358
|
-
* @param
|
|
355
|
+
* @param customData - the body of the event
|
|
359
356
|
* @returns the `timestamp` of the message
|
|
360
357
|
*/
|
|
361
|
-
sendEphemeralEvent(id: string,
|
|
358
|
+
sendEphemeralEvent(id: string, customData: CustomData): Promise<string>;
|
|
362
359
|
/**
|
|
363
360
|
* Delete an Event in a Conversation
|
|
364
361
|
*
|