@botpress/webchat 1.0.4 → 1.0.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/dist/client/MessagingClient.d.ts +4 -1
- package/dist/index.js +3762 -3738
- package/dist/index.umd.cjs +98 -98
- package/package.json +7 -7
|
@@ -13,7 +13,7 @@ type Events = {
|
|
|
13
13
|
export declare class WebchatClient {
|
|
14
14
|
private socket;
|
|
15
15
|
userId: string | undefined;
|
|
16
|
-
|
|
16
|
+
conversationId: string | undefined;
|
|
17
17
|
private userToken;
|
|
18
18
|
private connected;
|
|
19
19
|
private readonly emitter;
|
|
@@ -22,6 +22,9 @@ export declare class WebchatClient {
|
|
|
22
22
|
connect(creds?: UserCredentials): Promise<UserCredentials | undefined>;
|
|
23
23
|
disconnect(): Promise<void>;
|
|
24
24
|
sendMessage(message: string): Promise<void>;
|
|
25
|
+
switchConversation(id: string): Promise<void>;
|
|
26
|
+
listConversations(): Promise<import("@botpress/messaging-socket").Conversation[]>;
|
|
25
27
|
newConversation(): Promise<void>;
|
|
28
|
+
listMessages(limit?: number): Promise<Message[]>;
|
|
26
29
|
}
|
|
27
30
|
export {};
|