@epam/ai-dial-shared 0.37.0-rc.4 → 0.37.0-rc.40
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 +23 -9
- package/package.json +1 -1
- package/src/types/chat.d.ts +4 -3
- 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/overlay/overlay.d.ts +1 -0
- package/src/types/toolsets.d.ts +47 -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,24 @@ 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
|
-
|
|
125
|
-
|
|
122
|
+
|
|
123
|
+
var ToolsetTransportType;
|
|
124
|
+
(function (ToolsetTransportType) {
|
|
125
|
+
ToolsetTransportType["HTTP"] = "HTTP";
|
|
126
|
+
ToolsetTransportType["SSE"] = "SSE";
|
|
127
|
+
})(ToolsetTransportType || (ToolsetTransportType = {}));
|
|
128
|
+
var ToolsetAuthTypes;
|
|
129
|
+
(function (ToolsetAuthTypes) {
|
|
130
|
+
ToolsetAuthTypes["OAUTH"] = "OAUTH";
|
|
131
|
+
ToolsetAuthTypes["API_KEY"] = "API_KEY";
|
|
132
|
+
ToolsetAuthTypes["NONE"] = "NONE";
|
|
133
|
+
})(ToolsetAuthTypes || (ToolsetAuthTypes = {}));
|
|
134
|
+
var ToolsetAuthStatus;
|
|
135
|
+
(function (ToolsetAuthStatus) {
|
|
136
|
+
ToolsetAuthStatus["SIGNED_IN"] = "SIGNED_IN";
|
|
137
|
+
ToolsetAuthStatus["SIGNED_OUT"] = "SIGNED_OUT";
|
|
138
|
+
ToolsetAuthStatus["FAILED"] = "FAILED";
|
|
139
|
+
})(ToolsetAuthStatus || (ToolsetAuthStatus = {}));
|
|
126
140
|
|
|
127
141
|
const validateFeature = (feature) => {
|
|
128
142
|
return Object.values(Feature).includes(feature);
|
|
@@ -322,4 +336,4 @@ var VisualizerConnectorRequests;
|
|
|
322
336
|
VisualizerConnectorRequests["setVisualizerOptions"] = "SET_VISUALIZER_OPTIONS";
|
|
323
337
|
})(VisualizerConnectorRequests || (VisualizerConnectorRequests = {}));
|
|
324
338
|
|
|
325
|
-
export { DeferredRequest, DialSchemaProperties, Feature, FeatureType,
|
|
339
|
+
export { DeferredRequest, DialSchemaProperties, Feature, FeatureType, FormSchemaPropertyWidget, LikeState, MessageButtonPlacement, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, ToolsetAuthStatus, ToolsetAuthTypes, ToolsetTransportType, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
|
package/package.json
CHANGED
package/src/types/chat.d.ts
CHANGED
|
@@ -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;
|
|
@@ -133,7 +134,7 @@ export interface Playback {
|
|
|
133
134
|
isPlayback?: boolean;
|
|
134
135
|
messagesStack: Message[];
|
|
135
136
|
activePlaybackIndex: number;
|
|
136
|
-
customViewState?: Record<string,
|
|
137
|
+
customViewState?: Record<string, unknown>;
|
|
137
138
|
}
|
|
138
139
|
export interface Conversation extends ShareEntity, ConversationInfo {
|
|
139
140
|
messages: Message[];
|
|
@@ -145,5 +146,5 @@ export interface Conversation extends ShareEntity, ConversationInfo {
|
|
|
145
146
|
selectedAddons: string[];
|
|
146
147
|
assistantModelId?: string;
|
|
147
148
|
isMessageStreaming?: boolean;
|
|
148
|
-
customViewState?: Record<string,
|
|
149
|
+
customViewState?: Record<string, unknown>;
|
|
149
150
|
}
|
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
|
}
|
|
@@ -24,6 +24,7 @@ interface OverlaySignInOptions {
|
|
|
24
24
|
autoSignIn: boolean;
|
|
25
25
|
signInProvider?: string;
|
|
26
26
|
signInInNewWindow?: boolean;
|
|
27
|
+
validationUserEmail?: string;
|
|
27
28
|
}
|
|
28
29
|
export declare enum MessageButtonPlacement {
|
|
29
30
|
PREPEND_DEFAULT_BUTTONS = "PREPEND_DEFAULT_BUTTONS",// Buttons to show before default buttons
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare enum ToolsetTransportType {
|
|
2
|
+
HTTP = "HTTP",
|
|
3
|
+
SSE = "SSE"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ToolsetAuthTypes {
|
|
6
|
+
OAUTH = "OAUTH",
|
|
7
|
+
API_KEY = "API_KEY",
|
|
8
|
+
NONE = "NONE"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ToolsetAuthStatus {
|
|
11
|
+
SIGNED_IN = "SIGNED_IN",
|
|
12
|
+
SIGNED_OUT = "SIGNED_OUT",
|
|
13
|
+
FAILED = "FAILED"
|
|
14
|
+
}
|
|
15
|
+
export interface Toolset {
|
|
16
|
+
endpoint: string;
|
|
17
|
+
transport: ToolsetTransportType;
|
|
18
|
+
allowed_tools: string[];
|
|
19
|
+
display_name: string;
|
|
20
|
+
display_version: string;
|
|
21
|
+
reference?: string;
|
|
22
|
+
url?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
toolset?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
icon_url?: string;
|
|
28
|
+
user_roles?: string[];
|
|
29
|
+
description_keywords?: string[];
|
|
30
|
+
max_retry_attempts?: number;
|
|
31
|
+
owner?: string;
|
|
32
|
+
author?: string;
|
|
33
|
+
created_at?: number;
|
|
34
|
+
updated_at?: number;
|
|
35
|
+
auth_settings: {
|
|
36
|
+
authentication_type: ToolsetAuthTypes;
|
|
37
|
+
redirect_uri?: string;
|
|
38
|
+
api_key_header?: string;
|
|
39
|
+
client_id?: string;
|
|
40
|
+
client_secret?: string;
|
|
41
|
+
authorization_endpoint?: string;
|
|
42
|
+
code_challenge?: string;
|
|
43
|
+
code_challenge_method?: string;
|
|
44
|
+
global_auth_status?: ToolsetAuthStatus;
|
|
45
|
+
user_level_auth_status?: ToolsetAuthStatus;
|
|
46
|
+
};
|
|
47
|
+
}
|