@vonage/client-sdk 1.3.0-alpha.3 → 1.3.0-alpha.5
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/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/ClientConfig.html +7 -209
- package/api_docs/ts/classes/ClientInitConfig.html +4 -152
- package/api_docs/ts/classes/VonageClient.html +249 -1103
- package/api_docs/ts/functions/setDefaultLoggingLevel.html +3 -80
- package/api_docs/ts/functions/setVonageClientLoggingLevel.html +3 -80
- package/api_docs/ts/index.html +2 -90
- package/api_docs/ts/interfaces/ConversationEvent.html +4 -112
- package/api_docs/ts/interfaces/ConversationState.html +122 -1129
- package/api_docs/ts/interfaces/CustomConversationEvent.html +12 -177
- package/api_docs/ts/interfaces/EmbeddedInfo.html +7 -129
- package/api_docs/ts/interfaces/EphemeralConversationEvent.html +10 -157
- package/api_docs/ts/interfaces/EventDeleteConversationEvent.html +11 -167
- package/api_docs/ts/interfaces/From.html +3 -100
- package/api_docs/ts/interfaces/Location.html +5 -0
- package/api_docs/ts/interfaces/MemberInvitedEvent.html +11 -167
- package/api_docs/ts/interfaces/MemberJoinedEvent.html +11 -167
- package/api_docs/ts/interfaces/MemberLeftEvent.html +11 -167
- package/api_docs/ts/interfaces/MemberState.html +122 -1129
- package/api_docs/ts/interfaces/MessageAudioEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageCustomEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageFileEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageImageEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageLocationEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageTemplateEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageTextEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageVCardEvent.html +11 -167
- package/api_docs/ts/interfaces/MessageVideoEvent.html +11 -167
- package/api_docs/ts/interfaces/NonPersistentConversationEvent.html +5 -142
- package/api_docs/ts/interfaces/PersistentConversationEvent.html +4 -116
- package/api_docs/ts/interfaces/System.html +5 -116
- package/api_docs/ts/interfaces/Template.html +3 -0
- package/api_docs/ts/interfaces/Whatsapp.html +3 -0
- package/api_docs/ts/modules.html +8 -80
- package/api_docs/ts/types/CustomData.html +2 -68
- package/dist/client/VonageClient.d.ts +121 -1
- package/dist/client/index.cjs +13544 -12009
- package/dist/client/index.mjs +13544 -12009
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +59 -1
- package/dist/utils/ConversationModels.d.ts +14 -0
- package/dist/utils/RequestParameterModels.d.ts +8 -0
- package/dist/vonageClientSDK.js +13103 -11617
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +13103 -11617
- package/package.json +1 -1
|
@@ -38,8 +38,17 @@ export declare namespace vonage {
|
|
|
38
38
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
39
39
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
40
40
|
sendMessageImageEvent(cid: string, imageURL: URL): Promise<string>;
|
|
41
|
+
sendMessageVideoEvent(cid: string, videoURL: URL): Promise<string>;
|
|
42
|
+
sendMessageFileEvent(cid: string, fileURL: URL): Promise<string>;
|
|
43
|
+
sendMessageAudioEvent(cid: string, audioURL: URL): Promise<string>;
|
|
44
|
+
sendMessageVCardEvent(cid: string, vCardURL: URL): Promise<string>;
|
|
45
|
+
sendMessageLocationEvent(cid: string, location: vonage.LocationJS): Promise<string>;
|
|
46
|
+
sendMessageTemplateEvent(cid: string, templateObject: vonage.TemplateObjectJS, whatsappObject: vonage.WhatsappObjectJS): Promise<string>;
|
|
41
47
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
48
|
+
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
42
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>;
|
|
43
52
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
44
53
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
45
54
|
deleteSession(): Promise<any>;
|
|
@@ -167,6 +176,22 @@ export declare namespace vonage {
|
|
|
167
176
|
get body(): string;
|
|
168
177
|
}
|
|
169
178
|
}
|
|
179
|
+
export declare namespace vonage {
|
|
180
|
+
interface TemplateObjectJS {
|
|
181
|
+
readonly name: string;
|
|
182
|
+
readonly parameters?: Nullable<Array<string>>;
|
|
183
|
+
}
|
|
184
|
+
interface WhatsappObjectJS {
|
|
185
|
+
readonly policy: string;
|
|
186
|
+
readonly locale: string;
|
|
187
|
+
}
|
|
188
|
+
interface LocationJS {
|
|
189
|
+
readonly longitude: string;
|
|
190
|
+
readonly latitude: string;
|
|
191
|
+
readonly name?: Nullable<string>;
|
|
192
|
+
readonly address?: Nullable<string>;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
170
195
|
export declare namespace vonage {
|
|
171
196
|
interface MessageEventJS {
|
|
172
197
|
readonly body: vonage.MessageEventBodyJS;
|
|
@@ -644,8 +669,17 @@ export declare namespace vonage {
|
|
|
644
669
|
sendMessageTextEvent(cid: string, text: string): Promise<string>;
|
|
645
670
|
sendMessageCustomEvent(cid: string, customData: string): Promise<string>;
|
|
646
671
|
sendMessageImageEvent(cid: string, imageURL: URL): Promise<string>;
|
|
672
|
+
sendMessageVideoEvent(cid: string, videoURL: URL): Promise<string>;
|
|
673
|
+
sendMessageFileEvent(cid: string, fileURL: URL): Promise<string>;
|
|
674
|
+
sendMessageAudioEvent(cid: string, audioURL: URL): Promise<string>;
|
|
675
|
+
sendMessageVCardEvent(cid: string, vCardURL: URL): Promise<string>;
|
|
676
|
+
sendMessageLocationEvent(cid: string, location: vonage.LocationJS): Promise<string>;
|
|
677
|
+
sendMessageTemplateEvent(cid: string, templateObject: vonage.TemplateObjectJS, whatsappObject: vonage.WhatsappObjectJS): Promise<string>;
|
|
647
678
|
sendEphemeralEvent(cid: string, customData: string): Promise<string>;
|
|
679
|
+
sendCustomEvent(cid: string, eventType: string, customData: string): Promise<string>;
|
|
648
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>;
|
|
649
683
|
setConfig(config: vonage.ConfigObjectJS): void;
|
|
650
684
|
createSession(token: string, sessionId: Nullable<string>): Promise<string>;
|
|
651
685
|
deleteSession(): Promise<any>;
|
|
@@ -1066,7 +1100,31 @@ export declare namespace vonage {
|
|
|
1066
1100
|
}
|
|
1067
1101
|
}
|
|
1068
1102
|
export declare namespace vonage {
|
|
1069
|
-
interface
|
|
1103
|
+
interface ConversationParametersJS {
|
|
1104
|
+
readonly name?: Nullable<string>;
|
|
1105
|
+
readonly displayName?: Nullable<string>;
|
|
1106
|
+
readonly imageUrl?: Nullable<string>;
|
|
1107
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1108
|
+
readonly customSortKey?: Nullable<string>;
|
|
1109
|
+
readonly customData?: Nullable<string>;
|
|
1110
|
+
}
|
|
1111
|
+
interface CreateConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1112
|
+
readonly name?: Nullable<string>;
|
|
1113
|
+
readonly displayName?: Nullable<string>;
|
|
1114
|
+
readonly imageUrl?: Nullable<string>;
|
|
1115
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1116
|
+
readonly customSortKey?: Nullable<string>;
|
|
1117
|
+
readonly customData?: Nullable<string>;
|
|
1118
|
+
}
|
|
1119
|
+
interface ResetConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1120
|
+
readonly name?: Nullable<string>;
|
|
1121
|
+
readonly displayName?: Nullable<string>;
|
|
1122
|
+
readonly imageUrl?: Nullable<string>;
|
|
1123
|
+
readonly ttl?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1124
|
+
readonly customSortKey?: Nullable<string>;
|
|
1125
|
+
readonly customData?: Nullable<string>;
|
|
1126
|
+
}
|
|
1127
|
+
interface UpdateConversationParametersJS extends vonage.ConversationParametersJS {
|
|
1070
1128
|
readonly name?: Nullable<string>;
|
|
1071
1129
|
readonly displayName?: Nullable<string>;
|
|
1072
1130
|
readonly imageUrl?: Nullable<string>;
|
|
@@ -23,3 +23,17 @@ export type PresentingOrder = vonage.PresentingOrderJS;
|
|
|
23
23
|
export declare const PresentingOrder: typeof vonage.PresentingOrderJS;
|
|
24
24
|
export type OrderBy = vonage.OrderByJS;
|
|
25
25
|
export declare const OrderBy: typeof vonage.OrderByJS;
|
|
26
|
+
export interface Location {
|
|
27
|
+
name?: string | null;
|
|
28
|
+
address?: string | null;
|
|
29
|
+
latitude: string;
|
|
30
|
+
longitude: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Template {
|
|
33
|
+
name: string;
|
|
34
|
+
parameters?: string[] | null;
|
|
35
|
+
}
|
|
36
|
+
export interface Whatsapp {
|
|
37
|
+
policy: string;
|
|
38
|
+
locale: string;
|
|
39
|
+
}
|
|
@@ -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
|
+
};
|