@epam/ai-dial-shared 0.24.0-rc.2 → 0.24.0-rc.20
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 +14 -1
- package/package.json +1 -1
- package/src/types/chat.d.ts +7 -0
- package/src/types/features.d.ts +1 -0
- package/src/types/message-form-schema.d.ts +8 -3
package/index.esm.js
CHANGED
|
@@ -16,6 +16,7 @@ var Feature;
|
|
|
16
16
|
Feature["Likes"] = "likes";
|
|
17
17
|
Feature["ConversationsSharing"] = "conversations-sharing";
|
|
18
18
|
Feature["PromptsSharing"] = "prompts-sharing";
|
|
19
|
+
Feature["ApplicationsSharing"] = "applications-sharing";
|
|
19
20
|
Feature["InputFiles"] = "input-files";
|
|
20
21
|
Feature["InputLinks"] = "input-links";
|
|
21
22
|
Feature["AttachmentsManager"] = "attachments-manager";
|
|
@@ -47,6 +48,7 @@ const availableFeatures = {
|
|
|
47
48
|
[Feature.Likes]: true,
|
|
48
49
|
[Feature.ConversationsSharing]: true,
|
|
49
50
|
[Feature.PromptsSharing]: true,
|
|
51
|
+
[Feature.ApplicationsSharing]: true,
|
|
50
52
|
[Feature.InputFiles]: true,
|
|
51
53
|
[Feature.InputLinks]: true,
|
|
52
54
|
[Feature.AttachmentsManager]: true,
|
|
@@ -88,11 +90,22 @@ var PublishActions;
|
|
|
88
90
|
PublishActions["DELETE"] = "DELETE";
|
|
89
91
|
PublishActions["ADD_IF_ABSENT"] = "ADD_IF_ABSENT";
|
|
90
92
|
})(PublishActions || (PublishActions = {}));
|
|
93
|
+
var SharePermission;
|
|
94
|
+
(function (SharePermission) {
|
|
95
|
+
SharePermission["READ"] = "READ";
|
|
96
|
+
SharePermission["WRITE"] = "WRITE";
|
|
97
|
+
})(SharePermission || (SharePermission = {}));
|
|
91
98
|
|
|
92
99
|
var FormSchemaPropertyWidget;
|
|
93
100
|
(function (FormSchemaPropertyWidget) {
|
|
94
101
|
FormSchemaPropertyWidget["buttons"] = "buttons";
|
|
95
102
|
})(FormSchemaPropertyWidget || (FormSchemaPropertyWidget = {}));
|
|
103
|
+
var DialSchemaProperties;
|
|
104
|
+
(function (DialSchemaProperties) {
|
|
105
|
+
DialSchemaProperties["DialWidgetOptions"] = "dial:widgetOptions";
|
|
106
|
+
DialSchemaProperties["DialWidget"] = "dial:widget";
|
|
107
|
+
DialSchemaProperties["DialChatMessageInputDisabled"] = "dial:chatMessageInputDisabled";
|
|
108
|
+
})(DialSchemaProperties || (DialSchemaProperties = {}));
|
|
96
109
|
var FormSchemaPropertyType;
|
|
97
110
|
(function (FormSchemaPropertyType) {
|
|
98
111
|
FormSchemaPropertyType["array"] = "array";
|
|
@@ -253,4 +266,4 @@ var VisualizerConnectorRequests;
|
|
|
253
266
|
VisualizerConnectorRequests["setVisualizerOptions"] = "SET_VISUALIZER_OPTIONS";
|
|
254
267
|
})(VisualizerConnectorRequests || (VisualizerConnectorRequests = {}));
|
|
255
268
|
|
|
256
|
-
export { DeferredRequest, Feature, FormSchemaPropertyType, FormSchemaPropertyWidget, LikeState, OverlayEvents, OverlayRequests, PublishActions, Role, Task, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, availableFeatures, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
|
|
269
|
+
export { DeferredRequest, DialSchemaProperties, Feature, FormSchemaPropertyType, FormSchemaPropertyWidget, LikeState, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, availableFeatures, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
|
package/package.json
CHANGED
package/src/types/chat.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export interface Message {
|
|
|
46
46
|
state?: object;
|
|
47
47
|
form_schema?: MessageFormSchema;
|
|
48
48
|
form_value?: MessageFormValue;
|
|
49
|
+
configuration_schema?: MessageFormSchema;
|
|
50
|
+
configuration_value?: MessageFormValue;
|
|
49
51
|
};
|
|
50
52
|
like?: LikeState;
|
|
51
53
|
errorMessage?: string;
|
|
@@ -78,12 +80,17 @@ export interface EntityPublicationInfo {
|
|
|
78
80
|
version?: string;
|
|
79
81
|
versionGroup?: string;
|
|
80
82
|
}
|
|
83
|
+
export declare enum SharePermission {
|
|
84
|
+
READ = "READ",
|
|
85
|
+
WRITE = "WRITE"
|
|
86
|
+
}
|
|
81
87
|
export interface ShareInterface {
|
|
82
88
|
isShared?: boolean;
|
|
83
89
|
sharedWithMe?: boolean;
|
|
84
90
|
isPublished?: boolean;
|
|
85
91
|
publishedWithMe?: boolean;
|
|
86
92
|
publicationInfo?: EntityPublicationInfo;
|
|
93
|
+
permissions?: SharePermission[];
|
|
87
94
|
}
|
|
88
95
|
export interface ShareEntity extends Entity, ShareInterface {
|
|
89
96
|
}
|
package/src/types/features.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare enum Feature {
|
|
|
15
15
|
Likes = "likes",
|
|
16
16
|
ConversationsSharing = "conversations-sharing",
|
|
17
17
|
PromptsSharing = "prompts-sharing",
|
|
18
|
+
ApplicationsSharing = "applications-sharing",
|
|
18
19
|
InputFiles = "input-files",
|
|
19
20
|
InputLinks = "input-links",
|
|
20
21
|
AttachmentsManager = "attachments-manager",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export declare enum FormSchemaPropertyWidget {
|
|
2
2
|
buttons = "buttons"
|
|
3
3
|
}
|
|
4
|
+
export declare enum DialSchemaProperties {
|
|
5
|
+
DialWidgetOptions = "dial:widgetOptions",
|
|
6
|
+
DialWidget = "dial:widget",
|
|
7
|
+
DialChatMessageInputDisabled = "dial:chatMessageInputDisabled"
|
|
8
|
+
}
|
|
4
9
|
export interface FormSchemaButtonOption {
|
|
5
10
|
title: string;
|
|
6
11
|
const: number;
|
|
7
|
-
|
|
12
|
+
[DialSchemaProperties.DialWidgetOptions]?: {
|
|
8
13
|
confirmationMessage?: string;
|
|
9
14
|
populateText?: string;
|
|
10
15
|
submit?: boolean;
|
|
@@ -17,7 +22,7 @@ export declare enum FormSchemaPropertyType {
|
|
|
17
22
|
number = "number"
|
|
18
23
|
}
|
|
19
24
|
export interface FormSchemaProperty {
|
|
20
|
-
|
|
25
|
+
[DialSchemaProperties.DialWidget]?: FormSchemaPropertyWidget;
|
|
21
26
|
oneOf?: FormSchemaButtonOption[];
|
|
22
27
|
description?: string;
|
|
23
28
|
type: FormSchemaPropertyType;
|
|
@@ -25,6 +30,6 @@ export interface FormSchemaProperty {
|
|
|
25
30
|
export interface MessageFormSchema {
|
|
26
31
|
type: 'object';
|
|
27
32
|
required?: string[];
|
|
28
|
-
|
|
33
|
+
[DialSchemaProperties.DialChatMessageInputDisabled]?: boolean;
|
|
29
34
|
properties: Record<string, FormSchemaProperty>;
|
|
30
35
|
}
|