@epam/ai-dial-shared 0.40.0-rc.9 → 0.40.0

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";
@@ -56,6 +57,7 @@ var Feature;
56
57
  // Applications
57
58
  Feature["CustomApplications"] = "custom-applications";
58
59
  Feature["CodeApps"] = "code-apps";
60
+ Feature["CodeInterpreter"] = "code-interpreter";
59
61
  // Marketplace
60
62
  Feature["Marketplace"] = "marketplace";
61
63
  Feature["MarketplaceTableView"] = "marketplace-table-view";
@@ -329,6 +331,9 @@ var VisualizerConnectorEvents;
329
331
  VisualizerConnectorEvents["ready"] = "READY";
330
332
  VisualizerConnectorEvents["readyToInteract"] = "READY_TO_INTERACT";
331
333
  VisualizerConnectorEvents["sendMessage"] = "SEND_MESSAGE";
334
+ VisualizerConnectorEvents["createdConversationSuccess"] = "CREATED_CONVERSATION_SUCCESS";
335
+ VisualizerConnectorEvents["updatedConversationSuccess"] = "UPDATED_CONVERSATION_SUCCESS";
336
+ VisualizerConnectorEvents["updatedApplicationSuccess"] = "UPDATED_APPLICATION_SUCCESS";
332
337
  })(VisualizerConnectorEvents || (VisualizerConnectorEvents = {}));
333
338
  var VisualizerConnectorRequests;
334
339
  (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.9",
5
+ "version": "0.40.0",
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
@@ -39,6 +40,7 @@ export declare enum Feature {
39
40
  CustomLogo = "custom-logo",// Enable setting for custom logo feature
40
41
  CustomApplications = "custom-applications",// Enable creating of applications ('Add app' button/menu)
41
42
  CodeApps = "code-apps",// Enable creating of Code apps (into the 'Add app' menu)
43
+ CodeInterpreter = "code-interpreter",// Enable Code Interpreter feature
42
44
  Marketplace = "marketplace",// Enable Marketplace
43
45
  MarketplaceTableView = "marketplace-table-view",// Enable table view in Marketplace
44
46
  Toolsets = "toolsets"