@epam/ai-dial-shared 0.37.0-rc.7 → 0.37.0-rc.9

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
@@ -43,6 +43,7 @@ var Feature;
43
43
  Feature["ConversationsSharing"] = "conversations-sharing";
44
44
  Feature["PromptsSharing"] = "prompts-sharing";
45
45
  Feature["ApplicationsSharing"] = "applications-sharing";
46
+ Feature["ToolsetsSharing"] = "toolsets-sharing";
46
47
  // Publishing
47
48
  Feature["ConversationsPublishing"] = "conversations-publishing";
48
49
  Feature["PromptsPublishing"] = "prompts-publishing";
@@ -58,6 +59,8 @@ var Feature;
58
59
  // Marketplace
59
60
  Feature["Marketplace"] = "marketplace";
60
61
  Feature["MarketplaceTableView"] = "marketplace-table-view";
62
+ //Toolsets
63
+ Feature["Toolsets"] = "toolsets";
61
64
  })(Feature || (Feature = {}));
62
65
 
63
66
  var Role;
@@ -97,6 +100,7 @@ var FeatureType;
97
100
  FeatureType["Prompt"] = "prompt";
98
101
  FeatureType["File"] = "file";
99
102
  FeatureType["Application"] = "application";
103
+ FeatureType["Toolset"] = "toolset";
100
104
  })(FeatureType || (FeatureType = {}));
101
105
 
102
106
  var MessageButtonPlacement;
@@ -115,14 +119,12 @@ var DialSchemaProperties;
115
119
  DialSchemaProperties["DialWidget"] = "dial:widget";
116
120
  DialSchemaProperties["DialChatMessageInputDisabled"] = "dial:chatMessageInputDisabled";
117
121
  })(DialSchemaProperties || (DialSchemaProperties = {}));
118
- var FormSchemaPropertyType;
119
- (function (FormSchemaPropertyType) {
120
- FormSchemaPropertyType["array"] = "array";
121
- FormSchemaPropertyType["number"] = "number";
122
- FormSchemaPropertyType["type"] = "integer";
123
- FormSchemaPropertyType["string"] = "string";
124
- FormSchemaPropertyType["boolean"] = "boolean";
125
- })(FormSchemaPropertyType || (FormSchemaPropertyType = {}));
122
+
123
+ var ToolsetTransportType;
124
+ (function (ToolsetTransportType) {
125
+ ToolsetTransportType["HTTP"] = "HTTP";
126
+ ToolsetTransportType["SSE"] = "SSE";
127
+ })(ToolsetTransportType || (ToolsetTransportType = {}));
126
128
 
127
129
  const validateFeature = (feature) => {
128
130
  return Object.values(Feature).includes(feature);
@@ -322,4 +324,4 @@ var VisualizerConnectorRequests;
322
324
  VisualizerConnectorRequests["setVisualizerOptions"] = "SET_VISUALIZER_OPTIONS";
323
325
  })(VisualizerConnectorRequests || (VisualizerConnectorRequests = {}));
324
326
 
325
- export { DeferredRequest, DialSchemaProperties, Feature, FeatureType, FormSchemaPropertyType, FormSchemaPropertyWidget, LikeState, MessageButtonPlacement, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
327
+ export { DeferredRequest, DialSchemaProperties, Feature, FeatureType, FormSchemaPropertyWidget, LikeState, MessageButtonPlacement, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, ToolsetTransportType, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
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://epam-rail.com",
5
- "version": "0.37.0-rc.7",
5
+ "version": "0.37.0-rc.9",
6
6
  "dependencies": {},
7
7
  "type": "module",
8
8
  "bugs": {
@@ -95,7 +95,8 @@ export declare enum FeatureType {
95
95
  Chat = "chat",
96
96
  Prompt = "prompt",
97
97
  File = "file",
98
- Application = "application"
98
+ Application = "application",
99
+ Toolset = "toolset"
99
100
  }
100
101
  export interface ShareInterface {
101
102
  isShared?: boolean;
@@ -30,6 +30,7 @@ export declare enum Feature {
30
30
  ConversationsSharing = "conversations-sharing",// Display conversation sharing
31
31
  PromptsSharing = "prompts-sharing",// Display prompts sharing
32
32
  ApplicationsSharing = "applications-sharing",// Display applications sharing
33
+ ToolsetsSharing = "toolsets-sharing",// Display toolsets sharing
33
34
  ConversationsPublishing = "conversations-publishing",
34
35
  PromptsPublishing = "prompts-publishing",
35
36
  RequestApiKey = "request-api-key",// Display request API Key modal
@@ -39,7 +40,8 @@ export declare enum Feature {
39
40
  CustomApplications = "custom-applications",// Enable creating of applications ('Add app' button/menu)
40
41
  CodeApps = "code-apps",// Enable creating of Code apps (into the 'Add app' menu)
41
42
  Marketplace = "marketplace",// Enable Marketplace
42
- MarketplaceTableView = "marketplace-table-view"
43
+ MarketplaceTableView = "marketplace-table-view",// Enable table view in Marketplace
44
+ Toolsets = "toolsets"
43
45
  }
44
46
  export interface FeatureData {
45
47
  description?: string;
@@ -6,3 +6,4 @@ export * from './overlay';
6
6
  export * from './message-form-schema';
7
7
  export * from './import-export';
8
8
  export * from './prompt';
9
+ export * from './toolsets';
@@ -0,0 +1,17 @@
1
+ export declare enum JSONSchemaPropertyType {
2
+ array = "array",
3
+ number = "number",
4
+ type = "integer",
5
+ string = "string",
6
+ boolean = "boolean"
7
+ }
8
+ export interface JSONSchemaPropertyBase {
9
+ type: JSONSchemaPropertyType;
10
+ title?: string;
11
+ description?: string;
12
+ }
13
+ export interface JSONSchemaBase<T = JSONSchemaPropertyBase> {
14
+ type: 'object';
15
+ properties: Record<string, T>;
16
+ required?: string[];
17
+ }
@@ -1,3 +1,4 @@
1
+ import { JSONSchemaBase, JSONSchemaPropertyBase } from './json-schema';
1
2
  export declare enum FormSchemaPropertyWidget {
2
3
  buttons = "buttons"
3
4
  }
@@ -17,22 +18,10 @@ export interface FormSchemaButtonOption {
17
18
  };
18
19
  }
19
20
  export type MessageFormValue = Record<string, MessageFormValueType | undefined>;
20
- export declare enum FormSchemaPropertyType {
21
- array = "array",
22
- number = "number",
23
- type = "integer",
24
- string = "string",
25
- boolean = "boolean"
26
- }
27
- export interface FormSchemaProperty {
21
+ export interface FormSchemaProperty extends JSONSchemaPropertyBase {
28
22
  [DialSchemaProperties.DialWidget]?: FormSchemaPropertyWidget;
29
23
  oneOf?: FormSchemaButtonOption[];
30
- description?: string;
31
- type: FormSchemaPropertyType;
32
24
  }
33
- export interface MessageFormSchema {
34
- type: 'object';
35
- required?: string[];
25
+ export interface MessageFormSchema extends JSONSchemaBase<FormSchemaProperty> {
36
26
  [DialSchemaProperties.DialChatMessageInputDisabled]?: boolean;
37
- properties: Record<string, FormSchemaProperty>;
38
27
  }
@@ -0,0 +1,24 @@
1
+ export declare enum ToolsetTransportType {
2
+ HTTP = "HTTP",
3
+ SSE = "SSE"
4
+ }
5
+ export interface Toolset {
6
+ endpoint: string;
7
+ transport: ToolsetTransportType;
8
+ allowed_tools: string[];
9
+ display_name: string;
10
+ display_version: string;
11
+ reference?: string;
12
+ url?: string;
13
+ id?: string;
14
+ toolset?: string;
15
+ name?: string;
16
+ description?: string;
17
+ icon_url?: string;
18
+ user_roles?: string[];
19
+ description_keywords?: string[];
20
+ max_retry_attempts?: number;
21
+ author?: string;
22
+ created_at?: number;
23
+ updated_at?: number;
24
+ }