@epam/ai-dial-shared 0.37.0-rc.7 → 0.37.0-rc.8
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 +11 -9
- package/package.json +1 -1
- package/src/types/chat.d.ts +2 -1
- package/src/types/features.d.ts +3 -1
- package/src/types/index.d.ts +1 -0
- package/src/types/json-schema.d.ts +17 -0
- package/src/types/message-form-schema.d.ts +3 -14
- package/src/types/toolsets.d.ts +24 -0
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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,
|
|
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
package/src/types/chat.d.ts
CHANGED
package/src/types/features.d.ts
CHANGED
|
@@ -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;
|
package/src/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
+
}
|