@epam/ai-dial-overlay 0.31.0-rc.62 → 0.31.0-rc.64
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/index.esm.js +17 -1
- package/package.json +2 -2
- package/src/lib/ChatOverlay.d.ts +7 -2
- package/src/lib/ChatOverlayManager.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -369,14 +369,24 @@ class ChatOverlay {
|
|
|
369
369
|
* @param {string} parentPath - path to create conversation in. If not defined or null conversation will be created in user Root
|
|
370
370
|
* @returns Returns created conversation info
|
|
371
371
|
*/
|
|
372
|
-
createConversation(parentPath) {
|
|
372
|
+
createConversation(parentPath, local) {
|
|
373
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
374
374
|
const request = {
|
|
375
375
|
parentPath,
|
|
376
|
+
local,
|
|
376
377
|
};
|
|
377
378
|
return this.send(OverlayRequests.createConversation, request);
|
|
378
379
|
});
|
|
379
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Create local conversation which will be not visible before first assistant message
|
|
383
|
+
* @returns Returns created local conversation info
|
|
384
|
+
*/
|
|
385
|
+
createLocalConversation() {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
return this.send(OverlayRequests.createLocalConversation);
|
|
388
|
+
});
|
|
389
|
+
}
|
|
380
390
|
/**
|
|
381
391
|
* Send message into the first selected conversation
|
|
382
392
|
* @param content {string} text of message that should be sent to the chat
|
|
@@ -743,6 +753,12 @@ class ChatOverlayManager {
|
|
|
743
753
|
return overlay.createConversation(parentPath);
|
|
744
754
|
});
|
|
745
755
|
}
|
|
756
|
+
createLocalConversation(overlayId) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
758
|
+
const { overlay } = this.getOverlay(overlayId);
|
|
759
|
+
return overlay.createLocalConversation();
|
|
760
|
+
});
|
|
761
|
+
}
|
|
746
762
|
selectConversation(overlayId, conversationId) {
|
|
747
763
|
return __awaiter(this, void 0, void 0, function* () {
|
|
748
764
|
const { overlay } = this.getOverlay(overlayId);
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@epam/ai-dial-overlay",
|
|
3
3
|
"description": "Package for opening dial in overlay",
|
|
4
4
|
"homepage": "https://epam-rail.com",
|
|
5
|
-
"version": "0.31.0-rc.
|
|
5
|
+
"version": "0.31.0-rc.64",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@epam/ai-dial-shared": "0.31.0-rc.
|
|
7
|
+
"@epam/ai-dial-shared": "0.31.0-rc.64"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"bugs": {
|
package/src/lib/ChatOverlay.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChatOverlayOptions, CreateConversationResponse, CreatePlaybackConversationResponse, DeferredRequest, ExportConversationResponse, GetConversationsResponse, GetMessagesResponse, GetSelectedConversationsResponse, ImportConversationResponse, LatestExportConversationsFormat, OverlayRequest, OverlayRequests, RenameConversationResponse, SelectConversationResponse, SendMessageResponse, SetSystemPromptResponse, Styles, Task } from '@epam/ai-dial-shared';
|
|
1
|
+
import { ChatOverlayOptions, CreateConversationResponse, CreateLocalConversationResponse, CreatePlaybackConversationResponse, DeferredRequest, ExportConversationResponse, GetConversationsResponse, GetMessagesResponse, GetSelectedConversationsResponse, ImportConversationResponse, LatestExportConversationsFormat, OverlayRequest, OverlayRequests, RenameConversationResponse, SelectConversationResponse, SendMessageResponse, SetSystemPromptResponse, Styles, Task } from '@epam/ai-dial-shared';
|
|
2
2
|
interface Subscription {
|
|
3
3
|
eventType: string;
|
|
4
4
|
callback: (payload: unknown) => void;
|
|
@@ -140,7 +140,12 @@ export declare class ChatOverlay {
|
|
|
140
140
|
* @param {string} parentPath - path to create conversation in. If not defined or null conversation will be created in user Root
|
|
141
141
|
* @returns Returns created conversation info
|
|
142
142
|
*/
|
|
143
|
-
createConversation(parentPath?: string | null): Promise<CreateConversationResponse>;
|
|
143
|
+
createConversation(parentPath?: string | null, local?: boolean | null): Promise<CreateConversationResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* Create local conversation which will be not visible before first assistant message
|
|
146
|
+
* @returns Returns created local conversation info
|
|
147
|
+
*/
|
|
148
|
+
createLocalConversation(): Promise<CreateLocalConversationResponse>;
|
|
144
149
|
/**
|
|
145
150
|
* Send message into the first selected conversation
|
|
146
151
|
* @param content {string} text of message that should be sent to the chat
|
|
@@ -89,6 +89,7 @@ export declare class ChatOverlayManager {
|
|
|
89
89
|
getConversations(overlayId: string): Promise<import("@epam/ai-dial-shared").GetConversationsResponse>;
|
|
90
90
|
getSelectedConversations(overlayId: string): Promise<import("@epam/ai-dial-shared").GetSelectedConversationsResponse>;
|
|
91
91
|
createConversation(overlayId: string, parentPath?: string | null): Promise<import("@epam/ai-dial-shared").CreateConversationResponse>;
|
|
92
|
+
createLocalConversation(overlayId: string): Promise<import("@epam/ai-dial-shared").CreateLocalConversationResponse>;
|
|
92
93
|
selectConversation(overlayId: string, conversationId: string): Promise<import("@epam/ai-dial-shared").SelectConversationResponse>;
|
|
93
94
|
renameConversation(overlayId: string, conversationId: string, newName: string): Promise<import("@epam/ai-dial-shared").RenameConversationResponse>;
|
|
94
95
|
setOverlayOptions(overlayId: string, options: ChatOverlayOptions): Promise<void>;
|