@epam/ai-dial-shared 0.40.0-rc.6 → 0.40.0-rc.60

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 CHANGED
@@ -18,6 +18,7 @@ var Feature;
18
18
  Feature["DisallowChangeAgent"] = "disallow-change-agent";
19
19
  // Conversation functions
20
20
  Feature["Likes"] = "likes";
21
+ Feature["DislikeComment"] = "dislike-comment";
21
22
  Feature["InputFiles"] = "input-files";
22
23
  Feature["InputLinks"] = "input-links";
23
24
  Feature["MessageTemplates"] = "message-templates";
@@ -329,6 +330,9 @@ var VisualizerConnectorEvents;
329
330
  VisualizerConnectorEvents["ready"] = "READY";
330
331
  VisualizerConnectorEvents["readyToInteract"] = "READY_TO_INTERACT";
331
332
  VisualizerConnectorEvents["sendMessage"] = "SEND_MESSAGE";
333
+ VisualizerConnectorEvents["createdConversationSuccess"] = "CREATED_CONVERSATION_SUCCESS";
334
+ VisualizerConnectorEvents["updatedConversationSuccess"] = "UPDATED_CONVERSATION_SUCCESS";
335
+ VisualizerConnectorEvents["updatedApplicationSuccess"] = "UPDATED_APPLICATION_SUCCESS";
332
336
  })(VisualizerConnectorEvents || (VisualizerConnectorEvents = {}));
333
337
  var VisualizerConnectorRequests;
334
338
  (function (VisualizerConnectorRequests) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@epam/ai-dial-shared",
3
3
  "description": "Shared elements that support developing DIAL",
4
4
  "homepage": "https://dialx.ai",
5
- "version": "0.40.0-rc.6",
5
+ "version": "0.40.0-rc.60",
6
6
  "dependencies": {},
7
7
  "type": "module",
8
8
  "bugs": {
@@ -3,7 +3,10 @@ export declare enum VisualizerConnectorEvents {
3
3
  initReady = "INIT_READY",
4
4
  ready = "READY",
5
5
  readyToInteract = "READY_TO_INTERACT",
6
- sendMessage = "SEND_MESSAGE"
6
+ sendMessage = "SEND_MESSAGE",
7
+ createdConversationSuccess = "CREATED_CONVERSATION_SUCCESS",
8
+ updatedConversationSuccess = "UPDATED_CONVERSATION_SUCCESS",
9
+ updatedApplicationSuccess = "UPDATED_APPLICATION_SUCCESS"
7
10
  }
8
11
  export declare enum VisualizerConnectorRequests {
9
12
  sendVisualizeData = "SEND_VISUALIZE_DATA",
@@ -28,6 +28,7 @@ export declare enum LikeState {
28
28
  Liked = 1,
29
29
  NoState = 0
30
30
  }
31
+ export type onLikeMessageHandler = (likeStatus: LikeState, comment?: string) => void;
31
32
  export interface MessageSettings {
32
33
  prompt: string;
33
34
  temperature: number;
@@ -14,6 +14,7 @@ export declare enum Feature {
14
14
  HideTopContextMenu = "hide-top-context-menu",// Hide top context menu button
15
15
  DisallowChangeAgent = "disallow-change-agent",// Disallow "Change agent" button
16
16
  Likes = "likes",// Display likes
17
+ DislikeComment = "dislike-comment",// Enable adding comment when disliking a message
17
18
  InputFiles = "input-files",// Allow attach files to conversation
18
19
  InputLinks = "input-links",// Allow attach links to conversation
19
20
  MessageTemplates = "message-templates",// message templates