@epam/ai-dial-shared 0.41.0-rc.4 → 0.41.0-rc.41

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/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.41.0-rc.4",
5
+ "version": "0.41.0-rc.41",
6
6
  "dependencies": {},
7
7
  "type": "module",
8
8
  "bugs": {
@@ -7,21 +7,30 @@ export declare enum DialSchemaProperties {
7
7
  DialWidget = "dial:widget",
8
8
  DialChatMessageInputDisabled = "dial:chatMessageInputDisabled"
9
9
  }
10
- export type MessageFormValueType = number | string | boolean;
10
+ export type MessageFormValueType = number | string | boolean | string[];
11
11
  export interface FormSchemaButtonOption {
12
12
  title: string;
13
- const: MessageFormValueType;
13
+ const: Exclude<MessageFormValueType, string[]>;
14
14
  [DialSchemaProperties.DialWidgetOptions]?: {
15
15
  confirmationMessage?: string;
16
16
  populateText?: string;
17
17
  submit?: boolean;
18
18
  };
19
19
  }
20
+ export interface FormSchemaDefinition {
21
+ enumNames: string[];
22
+ enum: string[];
23
+ }
20
24
  export type MessageFormValue = Record<string, MessageFormValueType | undefined>;
21
25
  export interface FormSchemaProperty extends JSONSchemaPropertyBase {
22
26
  [DialSchemaProperties.DialWidget]?: FormSchemaPropertyWidget;
23
27
  oneOf?: FormSchemaButtonOption[];
28
+ uniqueItems?: boolean;
29
+ items?: {
30
+ $ref: string;
31
+ };
24
32
  }
25
33
  export interface MessageFormSchema extends JSONSchemaBase<FormSchemaProperty> {
26
34
  [DialSchemaProperties.DialChatMessageInputDisabled]?: boolean;
35
+ definitions?: Record<string, FormSchemaDefinition>;
27
36
  }