@vonage/client-sdk 1.3.0-alpha.4 → 1.3.0-alpha.6
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/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/VonageClient.html +20 -3
- package/dist/client/VonageClient.d.ts +28 -1
- package/dist/client/index.cjs +14388 -13643
- package/dist/client/index.mjs +14388 -13643
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +34 -4
- package/dist/lib/SocketClient.d.ts +7 -2
- package/dist/utils/RequestParameterModels.d.ts +8 -0
- package/dist/vonageClientSDK.js +13962 -13010
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +13962 -13010
- package/package.json +1 -1
|
@@ -47,6 +47,8 @@ export declare namespace vonage {
|
|
|
47
47
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
48
48
|
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
49
49
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
50
|
+
resetConversation(conversationId: string, parameters: Nullable<vonage.ResetConversationParametersJS>): Promise<any>;
|
|
51
|
+
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
50
52
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
51
53
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
52
54
|
deleteSession(): Promise<any>;
|
|
@@ -676,6 +678,8 @@ export declare namespace vonage {
|
|
|
676
678
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
677
679
|
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
678
680
|
deleteEvent(id: number, conversationId: string): Promise<any>;
|
|
681
|
+
resetConversation(conversationId: string, parameters: Nullable<vonage.ResetConversationParametersJS>): Promise<any>;
|
|
682
|
+
updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
|
|
679
683
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
680
684
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
681
685
|
deleteSession(): Promise<any>;
|
|
@@ -985,13 +989,15 @@ export declare namespace vonage {
|
|
|
985
989
|
interface SocketClientJS {
|
|
986
990
|
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
987
991
|
emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
|
|
988
|
-
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
|
|
992
|
+
connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, token: string, sessionId: Nullable<string>, query: string): void;
|
|
989
993
|
disconnect(): void;
|
|
990
|
-
setConnectParamsSocketConfig(token: string): void;
|
|
994
|
+
setConnectParamsSocketConfig(sessionId: string, token: string): void;
|
|
995
|
+
setSocketSessionId(sessionId: string): void;
|
|
996
|
+
setSocketToken(token: string): void;
|
|
991
997
|
startVerifyResponseTimer(milliseconds: any/* kotlin.Number */, callback: () => void): void;
|
|
992
998
|
}
|
|
993
999
|
interface SocketClientDelegateJS {
|
|
994
|
-
didReceiveNewSocketEvent(
|
|
1000
|
+
didReceiveNewSocketEvent(body: string): void;
|
|
995
1001
|
didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
|
|
996
1002
|
}
|
|
997
1003
|
interface MediaClientJS {
|
|
@@ -1096,7 +1102,31 @@ export declare namespace vonage {
|
|
|
1096
1102
|
}
|
|
1097
1103
|
}
|
|
1098
1104
|
export declare namespace vonage {
|
|
1099
|
-
interface
|
|
1105
|
+
interface ConversationParametersJS {
|
|
1106
|
+
readonly name?: Nullable<string>;
|
|
1107
|
+
readonly displayName?: Nullable<string>;
|
|
1108
|
+
readonly imageUrl?: Nullable<string>;
|
|
1109
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1110
|
+
readonly customSortKey?: Nullable<string>;
|
|
1111
|
+
readonly customData?: Nullable<string>;
|
|
1112
|
+
}
|
|
1113
|
+
interface CreateConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1114
|
+
readonly name?: Nullable<string>;
|
|
1115
|
+
readonly displayName?: Nullable<string>;
|
|
1116
|
+
readonly imageUrl?: Nullable<string>;
|
|
1117
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1118
|
+
readonly customSortKey?: Nullable<string>;
|
|
1119
|
+
readonly customData?: Nullable<string>;
|
|
1120
|
+
}
|
|
1121
|
+
interface ResetConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1122
|
+
readonly name?: Nullable<string>;
|
|
1123
|
+
readonly displayName?: Nullable<string>;
|
|
1124
|
+
readonly imageUrl?: Nullable<string>;
|
|
1125
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1126
|
+
readonly customSortKey?: Nullable<string>;
|
|
1127
|
+
readonly customData?: Nullable<string>;
|
|
1128
|
+
}
|
|
1129
|
+
interface UpdateConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1100
1130
|
readonly name?: Nullable<string>;
|
|
1101
1131
|
readonly displayName?: Nullable<string>;
|
|
1102
1132
|
readonly imageUrl?: Nullable<string>;
|
|
@@ -3,10 +3,15 @@ import vonage from '../utils/vonage';
|
|
|
3
3
|
declare class SocketClient implements vonage.SocketClientJS {
|
|
4
4
|
delegate: KMPPackage.Nullable<vonage.SocketClientDelegateJS>;
|
|
5
5
|
private socket;
|
|
6
|
+
private token;
|
|
7
|
+
private sessionId;
|
|
8
|
+
private setQuery;
|
|
6
9
|
emit(type: string, msg: unknown, _callback: (p0: KMPPackage.Nullable<Error>, p1: KMPPackage.Nullable<string>) => void): void;
|
|
7
|
-
connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, query: string): void;
|
|
10
|
+
connect(host: string, path: string, reconnectionAttempts: number, reconnectionDelay: number, randomizationFactor: number, token: string, sessionId: KMPPackage.Nullable<string>, query: string): void;
|
|
8
11
|
disconnect(): void;
|
|
9
12
|
startVerifyResponseTimer(milliseconds: number, callback: () => void): void;
|
|
10
|
-
setConnectParamsSocketConfig(token: string): void;
|
|
13
|
+
setConnectParamsSocketConfig(sessionId: string, token: string): void;
|
|
14
|
+
setSocketSessionId(sessionId: string): void;
|
|
15
|
+
setSocketToken(token: string): void;
|
|
11
16
|
}
|
|
12
17
|
export default SocketClient;
|
|
@@ -15,3 +15,11 @@ export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsP
|
|
|
15
15
|
export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize'> & {
|
|
16
16
|
pageSize?: Nullable<number>;
|
|
17
17
|
};
|
|
18
|
+
export type UpdateConversationParameters = Omit<vonage.UpdateConversationParametersJS, 'ttl' | 'customData'> & {
|
|
19
|
+
customData?: Nullable<CustomData>;
|
|
20
|
+
ttl?: Nullable<number>;
|
|
21
|
+
};
|
|
22
|
+
export type ResetConversationParameters = Omit<vonage.UpdateConversationParametersJS, 'ttl' | 'customData'> & {
|
|
23
|
+
customData?: Nullable<CustomData>;
|
|
24
|
+
ttl?: Nullable<number>;
|
|
25
|
+
};
|