@epam/ai-dial-chat-shared 1.3.0-dev.34 → 1.3.0-dev.37
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/components/ConfirmationDialog/ConfirmationDialog.d.ts +41 -0
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
- package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
- package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
- package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
- package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
- package/components/CopyButton/CopyButton.d.ts +19 -0
- package/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
- package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
- package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
- package/components/EntityHeader/EntityHeader.d.ts +38 -0
- package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
- package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
- package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
- package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
- package/components/ItemHeader/ItemHeader.d.ts +36 -0
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts +62 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +137 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
- package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
- package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
- package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
- package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
- package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
- package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
- package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
- package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
- package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
- package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
- package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
- package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
- package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
- package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
- package/constants/breakpoint.d.ts +9 -0
- package/constants/breakpoint.d.ts.map +1 -0
- package/constants/dial.d.ts +5 -0
- package/constants/dial.d.ts.map +1 -0
- package/constants/entity-colors.d.ts +6 -0
- package/constants/entity-colors.d.ts.map +1 -0
- package/constants/icon.d.ts +14 -0
- package/constants/icon.d.ts.map +1 -0
- package/constants/markdown-editor.d.ts +2 -0
- package/constants/markdown-editor.d.ts.map +1 -0
- package/constants/mime-types.d.ts +27 -0
- package/constants/mime-types.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +13 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/constants/resizable-fields.d.ts +5 -0
- package/constants/resizable-fields.d.ts.map +1 -0
- package/constants/select-list.d.ts +4 -0
- package/constants/select-list.d.ts.map +1 -0
- package/constants/tag-input.d.ts +2 -0
- package/constants/tag-input.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +5 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/markdown.d.ts +18 -0
- package/entry-points/markdown.d.ts.map +1 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
- package/file-manager/attach-result.d.ts +9 -0
- package/file-manager/attach-result.d.ts.map +1 -0
- package/file-manager/file-manager-controller.d.ts +121 -0
- package/file-manager/file-manager-controller.d.ts.map +1 -0
- package/file-manager/file-manager-variant.d.ts +21 -0
- package/file-manager/file-manager-variant.d.ts.map +1 -0
- package/file-manager/file-upload-validation.d.ts +8 -0
- package/file-manager/file-upload-validation.d.ts.map +1 -0
- package/file-manager/index.d.ts +10 -0
- package/file-manager/index.d.ts.map +1 -0
- package/file-manager/labels.d.ts +156 -0
- package/file-manager/labels.d.ts.map +1 -0
- package/file-manager/path.d.ts +12 -0
- package/file-manager/path.d.ts.map +1 -0
- package/file-manager/upload-batch.d.ts +29 -0
- package/file-manager/upload-batch.d.ts.map +1 -0
- package/file-manager/upload-queue.d.ts +5 -0
- package/file-manager/upload-queue.d.ts.map +1 -0
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
- package/file-manager.d.ts +2 -506
- package/hooks/useAvailableHeightCap.d.ts +30 -0
- package/hooks/useAvailableHeightCap.d.ts.map +1 -0
- package/hooks/useCodeCopy.d.ts +6 -0
- package/hooks/useCodeCopy.d.ts.map +1 -0
- package/hooks/useCollapsedText.d.ts +27 -0
- package/hooks/useCollapsedText.d.ts.map +1 -0
- package/hooks/useHorizontalOverflow.d.ts +21 -0
- package/hooks/useHorizontalOverflow.d.ts.map +1 -0
- package/hooks/useIsMobile.d.ts +3 -0
- package/hooks/useIsMobile.d.ts.map +1 -0
- package/hooks/useStreamedMarkdownContent.d.ts +3 -0
- package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
- package/hooks/useTextRefinement.d.ts +44 -0
- package/hooks/useTextRefinement.d.ts.map +1 -0
- package/hooks/useUnsavedChangesGuard.d.ts +14 -0
- package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
- package/index.d.ts +77 -3167
- package/index.d.ts.map +1 -0
- package/markdown.d.ts +2 -465
- package/models/annotation.d.ts +143 -0
- package/models/annotation.d.ts.map +1 -0
- package/models/application-visualizer.d.ts +67 -0
- package/models/application-visualizer.d.ts.map +1 -0
- package/models/auth.d.ts +26 -0
- package/models/auth.d.ts.map +1 -0
- package/models/chat.d.ts +407 -0
- package/models/chat.d.ts.map +1 -0
- package/models/conversation-classification.d.ts +9 -0
- package/models/conversation-classification.d.ts.map +1 -0
- package/models/conversation-transfer.d.ts +96 -0
- package/models/conversation-transfer.d.ts.map +1 -0
- package/models/custom-visualizer.d.ts +61 -0
- package/models/custom-visualizer.d.ts.map +1 -0
- package/models/deployment-configuration.d.ts +55 -0
- package/models/deployment-configuration.d.ts.map +1 -0
- package/models/deployment-features.d.ts +17 -0
- package/models/deployment-features.d.ts.map +1 -0
- package/models/deployment.d.ts +31 -0
- package/models/deployment.d.ts.map +1 -0
- package/models/dial-model.d.ts +19 -0
- package/models/dial-model.d.ts.map +1 -0
- package/models/entity.d.ts +15 -0
- package/models/entity.d.ts.map +1 -0
- package/models/import-export.d.ts +23 -0
- package/models/import-export.d.ts.map +1 -0
- package/models/locale.d.ts +19 -0
- package/models/locale.d.ts.map +1 -0
- package/models/text-refinement.d.ts +18 -0
- package/models/text-refinement.d.ts.map +1 -0
- package/models/theme.d.ts +36 -0
- package/models/theme.d.ts.map +1 -0
- package/models/tool-menu-item.d.ts +13 -0
- package/models/tool-menu-item.d.ts.map +1 -0
- package/package.json +1 -1
- package/types/attachment.d.ts +25 -0
- package/types/attachment.d.ts.map +1 -0
- package/types/code-editor.d.ts +8 -0
- package/types/code-editor.d.ts.map +1 -0
- package/types/entity-type.d.ts +10 -0
- package/types/entity-type.d.ts.map +1 -0
- package/types/file-manager-node.d.ts +17 -0
- package/types/file-manager-node.d.ts.map +1 -0
- package/types/mime-type.d.ts +59 -0
- package/types/mime-type.d.ts.map +1 -0
- package/utils/annotation.d.ts +29 -0
- package/utils/annotation.d.ts.map +1 -0
- package/utils/avatar-color.d.ts +10 -0
- package/utils/avatar-color.d.ts.map +1 -0
- package/utils/build-css-vars.d.ts +4 -0
- package/utils/build-css-vars.d.ts.map +1 -0
- package/utils/copy-to-clipboard.d.ts +18 -0
- package/utils/copy-to-clipboard.d.ts.map +1 -0
- package/utils/entity-field-limits.d.ts +11 -0
- package/utils/entity-field-limits.d.ts.map +1 -0
- package/utils/entity-type.d.ts +5 -0
- package/utils/entity-type.d.ts.map +1 -0
- package/utils/file-download.d.ts +21 -0
- package/utils/file-download.d.ts.map +1 -0
- package/utils/format-file-size.d.ts +3 -0
- package/utils/format-file-size.d.ts.map +1 -0
- package/utils/format-last-used.d.ts +3 -0
- package/utils/format-last-used.d.ts.map +1 -0
- package/utils/format-price.d.ts +7 -0
- package/utils/format-price.d.ts.map +1 -0
- package/utils/generate-uuid.d.ts +3 -0
- package/utils/generate-uuid.d.ts.map +1 -0
- package/utils/initials.d.ts +3 -0
- package/utils/initials.d.ts.map +1 -0
- package/utils/is-audio-transcription-supported.d.ts +3 -0
- package/utils/is-audio-transcription-supported.d.ts.map +1 -0
- package/utils/is-skill-selection-unsupported.d.ts +3 -0
- package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
- package/utils/latex.d.ts +21 -0
- package/utils/latex.d.ts.map +1 -0
- package/utils/merge-class.d.ts +4 -0
- package/utils/merge-class.d.ts.map +1 -0
- package/utils/message-attachment-to-display.d.ts +22 -0
- package/utils/message-attachment-to-display.d.ts.map +1 -0
- package/utils/message.d.ts +4 -0
- package/utils/message.d.ts.map +1 -0
- package/utils/mime-type.d.ts +22 -0
- package/utils/mime-type.d.ts.map +1 -0
- package/utils/prompt-variables.d.ts +62 -0
- package/utils/prompt-variables.d.ts.map +1 -0
- package/utils/string-utils.d.ts +11 -0
- package/utils/string-utils.d.ts.map +1 -0
- package/utils/syntax-highlighting.d.ts +8 -0
- package/utils/syntax-highlighting.d.ts.map +1 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single MIME → visualizer mapping from the `CUSTOM_VISUALIZERS` registry.
|
|
3
|
+
* Field semantics are fixed by already-deployed visualizer applications and
|
|
4
|
+
* operator configurations — see `openspec/changes/archive/2026-07-30-add-custom-visualizers/design.md` D9/D10 in the
|
|
5
|
+
* `add-custom-visualizers` change for why `title` is required and
|
|
6
|
+
* `contentType` accepts a comma-separated list.
|
|
7
|
+
*/
|
|
8
|
+
export interface CustomVisualizer {
|
|
9
|
+
/**
|
|
10
|
+
* The postMessage protocol namespace, NOT a display label. Every message
|
|
11
|
+
* exchanged with the iframe is prefixed `${title}/…`, and the iframe-side
|
|
12
|
+
* visualizer application must be constructed with this identical string
|
|
13
|
+
* as its `appName`. A mismatch is a silent failure — the iframe loads but
|
|
14
|
+
* never receives data.
|
|
15
|
+
*/
|
|
16
|
+
title: string;
|
|
17
|
+
/** Human-readable description of the visualizer (kept for parity with the development schema; not consumed by host UI). */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** Icon URL or identifier for the visualizer (kept for parity with the development schema; not consumed by host UI). */
|
|
20
|
+
icon?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Comma-separated list of one or more MIME types this entry matches (e.g.
|
|
23
|
+
* `'application/vnd.plotly.v1+json'` or
|
|
24
|
+
* `'application/vnd.plotly.v1+json, application/vnd.vega.v5+json'`).
|
|
25
|
+
* Stored verbatim; splitting happens at lookup time.
|
|
26
|
+
*/
|
|
27
|
+
contentType: string;
|
|
28
|
+
/** Absolute HTTP(S) URL of the visualizer iframe. */
|
|
29
|
+
url: string;
|
|
30
|
+
/** Milliseconds to wait for a `send()` request's `/RESPONSE` before rejecting. Defaults to `10000`. Does NOT bound the initial handshake. */
|
|
31
|
+
requestTimeout?: number;
|
|
32
|
+
/** Suggested initial width of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
33
|
+
width?: number;
|
|
34
|
+
/** Suggested initial height of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
35
|
+
height?: number;
|
|
36
|
+
/** Suggested canvas panel height on mobile viewports in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
37
|
+
mobileHeight?: number;
|
|
38
|
+
/** Whether the host should pass auth info to the visualizer. Accepted for schema parity with development but auth forwarding is not yet wired. */
|
|
39
|
+
passAuthInfo?: boolean;
|
|
40
|
+
/** Whether the host should pass an explicit access token. Accepted for schema parity with development but auth forwarding is not yet wired. */
|
|
41
|
+
passExplicitToken?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** Presentation-only layout hints forwarded to the visualizer inside `SEND_VISUALIZE_DATA`. */
|
|
44
|
+
export interface CustomVisualizerDataLayout {
|
|
45
|
+
/** Suggested width of the canvas panel in pixels (from the registry entry). */
|
|
46
|
+
width?: number;
|
|
47
|
+
/** Suggested height of the canvas panel in pixels (from the registry entry). */
|
|
48
|
+
height?: number;
|
|
49
|
+
/** Suggested height on mobile-sized screens in pixels (from the registry entry). */
|
|
50
|
+
mobileHeight?: number;
|
|
51
|
+
/** Id of the host's currently active theme. */
|
|
52
|
+
themeId: string;
|
|
53
|
+
}
|
|
54
|
+
/** Payload of a `SEND_VISUALIZE_DATA` request: presentation layout plus the opaque attachment payload. */
|
|
55
|
+
export interface CustomVisualizerData {
|
|
56
|
+
/** Presentation layout hints. */
|
|
57
|
+
layout: CustomVisualizerDataLayout;
|
|
58
|
+
/** Opaque attachment payload consumed by the third-party visualizer. */
|
|
59
|
+
[key: string]: unknown;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=custom-visualizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-visualizer.d.ts","sourceRoot":"","sources":["../../src/models/custom-visualizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,2HAA2H;IAC3H,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wHAAwH;IACxH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,6IAA6I;IAC7I,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+GAA+G;IAC/G,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oHAAoH;IACpH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kJAAkJ;IAClJ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+IAA+I;IAC/I,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,+FAA+F;AAC/F,MAAM,WAAW,0BAA0B;IACzC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,0GAA0G;AAC1G,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,MAAM,EAAE,0BAA0B,CAAC;IACnC,wEAAwE;IACxE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** DIAL-specific options for a single starter button entry. */
|
|
2
|
+
export interface StarterWidgetOptions {
|
|
3
|
+
/** Text to populate in the input field when the starter is selected. */
|
|
4
|
+
populateText: string | null;
|
|
5
|
+
/** When true, automatically submits the message after populating the input. */
|
|
6
|
+
submit: boolean;
|
|
7
|
+
/** Optional confirmation message shown before submission. */
|
|
8
|
+
confirmationMessage: string | null;
|
|
9
|
+
}
|
|
10
|
+
/** A quick-start conversation button entry in the `starter` property's `oneOf` array. */
|
|
11
|
+
export interface StarterOption {
|
|
12
|
+
/** Numeric index used as the schema `const` value. */
|
|
13
|
+
const: number;
|
|
14
|
+
/** Display label for the starter button. */
|
|
15
|
+
title: string;
|
|
16
|
+
/** DIAL widget options controlling input population and auto-submit behaviour. */
|
|
17
|
+
'dial:widgetOptions': StarterWidgetOptions;
|
|
18
|
+
}
|
|
19
|
+
/** A single property entry in a deployment's configuration JSON Schema. */
|
|
20
|
+
export interface DeploymentConfigurationSchemaProperty {
|
|
21
|
+
/** Default value for this property. */
|
|
22
|
+
default?: unknown;
|
|
23
|
+
/** Human-readable description of this property. */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** DIAL-specific widget hint (e.g. "buttons"). */
|
|
26
|
+
'dial:widget'?: string;
|
|
27
|
+
/** List of allowed value variants (JSON Schema oneOf). For the `starter` property these are {@link StarterOption} entries. */
|
|
28
|
+
oneOf?: StarterOption[] | unknown[];
|
|
29
|
+
/** Index signature for additional JSON Schema keywords. */
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* JSON Schema object returned by the DIAL Core deployment configuration endpoint
|
|
34
|
+
* (`GET /v1/deployments/{deployment_name}/configuration`).
|
|
35
|
+
* Only present for deployments whose `features.configuration` flag is `true`.
|
|
36
|
+
*/
|
|
37
|
+
export interface DeploymentConfigurationSchema {
|
|
38
|
+
/** JSON Schema type (typically "object"). */
|
|
39
|
+
type?: string;
|
|
40
|
+
/** Human-readable schema title. */
|
|
41
|
+
title?: string;
|
|
42
|
+
/** Whether additional properties are allowed, or a schema for them. */
|
|
43
|
+
additionalProperties?: boolean | Record<string, unknown>;
|
|
44
|
+
/** Named configuration properties supported by this deployment. */
|
|
45
|
+
properties?: Record<string, DeploymentConfigurationSchemaProperty>;
|
|
46
|
+
/**
|
|
47
|
+
* When `true`, the application does not accept free-form text input.
|
|
48
|
+
* Users interact only via form/action buttons defined in the schema.
|
|
49
|
+
* Mapped from `dial:chatMessageInputDisabled` by the backend.
|
|
50
|
+
*/
|
|
51
|
+
isChatMessageInputDisabled?: boolean;
|
|
52
|
+
/** Index signature for additional JSON Schema keywords. */
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=deployment-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-configuration.d.ts","sourceRoot":"","sources":["../../src/models/deployment-configuration.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,6DAA6D;IAC7D,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C;AAED,2EAA2E;AAC3E,MAAM,WAAW,qCAAqC;IACpD,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8HAA8H;IAC9H,KAAK,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qCAAqC,CAAC,CAAC;IACnE;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,2DAA2D;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Response format options for conversation messages. */
|
|
2
|
+
export declare enum ResponseFormat {
|
|
3
|
+
/** Messages are rendered as Markdown. */
|
|
4
|
+
Markdown = "markdown",
|
|
5
|
+
/** Messages are rendered as plain text. */
|
|
6
|
+
PlainText = "plain_text"
|
|
7
|
+
}
|
|
8
|
+
/** Feature flags for a deployment, controlling which per-conversation settings are available. */
|
|
9
|
+
export interface DeploymentFeatures {
|
|
10
|
+
/** Whether the deployment supports a custom system prompt. */
|
|
11
|
+
systemPrompt: boolean;
|
|
12
|
+
/** Whether the deployment supports temperature control. */
|
|
13
|
+
temperature: boolean;
|
|
14
|
+
/** Whether the deployment supports response format selection. */
|
|
15
|
+
responseFormat?: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=deployment-features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-features.d.ts","sourceRoot":"","sources":["../../src/models/deployment-features.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,oBAAY,cAAc;IACxB,yCAAyC;IACzC,QAAQ,aAAa;IACrB,2CAA2C;IAC3C,SAAS,eAAe;CACzB;AAED,iGAAiG;AACjG,MAAM,WAAW,kBAAkB;IACjC,8DAA8D;IAC9D,YAAY,EAAE,OAAO,CAAC;IACtB,2DAA2D;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,iEAAiE;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DeploymentFeatures } from './deployment-features';
|
|
2
|
+
/** A host-agnostic view model for a single deployment shown in UI components. */
|
|
3
|
+
export interface DeploymentItem {
|
|
4
|
+
/** Unique stable identifier from DIAL Core. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Human-readable display name. Falls back to `id` when absent. */
|
|
7
|
+
displayName?: string;
|
|
8
|
+
/** URL-safe icon reference. Resolved to a usable `<img src>` by the host app before passing. */
|
|
9
|
+
iconUrl?: string;
|
|
10
|
+
/** Deployment kind — used to choose a fallback icon. Typically `'model'` or `'application'`. */
|
|
11
|
+
type?: string;
|
|
12
|
+
/** MIME types accepted as input attachments (e.g. `['audio/*', 'image/*']`). Undefined when not specified by DIAL Core. */
|
|
13
|
+
inputAttachmentTypes?: string[];
|
|
14
|
+
/** Feature flags for this deployment, controlling which per-conversation settings are available. */
|
|
15
|
+
features?: DeploymentFeatures;
|
|
16
|
+
/** Maximum number of attachments allowed per message. Undefined when not specified by DIAL Core. */
|
|
17
|
+
maxInputAttachments?: number;
|
|
18
|
+
/** Human-readable description of the deployment. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Timestamp of last update time from DIAL Core (e.g. 1714768496000). */
|
|
21
|
+
updatedAt?: number;
|
|
22
|
+
/** Display version string. */
|
|
23
|
+
displayVersion?: string;
|
|
24
|
+
/** Whether this deployment is featured (configured via env). */
|
|
25
|
+
isFeatured?: boolean;
|
|
26
|
+
/** Whether this deployment is hidden (configured via env). */
|
|
27
|
+
isHidden?: boolean;
|
|
28
|
+
/** Topics associated with the deployment. */
|
|
29
|
+
topics?: string[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../src/models/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gGAAgG;IAChG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2HAA2H;IAC3H,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,oGAAoG;IACpG,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,oGAAoG;IACpG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** A model entry as returned by the DIAL Core `/v1/models` endpoint. */
|
|
2
|
+
export interface DialModel {
|
|
3
|
+
/** Unique model identifier used in API calls. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Discriminator — always `'model'`. */
|
|
6
|
+
object: string;
|
|
7
|
+
/** Unix timestamp (s) when the model was created. */
|
|
8
|
+
created?: number;
|
|
9
|
+
/** Identifier of the model owner/provider. */
|
|
10
|
+
owned_by?: string;
|
|
11
|
+
/** Index signature for additional provider-specific fields. */
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/** Response envelope for the DIAL Core model-listing endpoint. */
|
|
15
|
+
export interface DialModelListResponse {
|
|
16
|
+
/** List of available models. */
|
|
17
|
+
data: DialModel[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=dial-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-model.d.ts","sourceRoot":"","sources":["../../src/models/dial-model.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,SAAS;IACxB,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CatalogEntityType } from '../types/entity-type';
|
|
2
|
+
/** Minimal entity identity fields rendered by `EntityHeader`. */
|
|
3
|
+
export interface EntityHeaderItem {
|
|
4
|
+
/** Entity category. */
|
|
5
|
+
type: CatalogEntityType;
|
|
6
|
+
/** Display name. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Version string shown next to the name. */
|
|
9
|
+
version: string;
|
|
10
|
+
/** URL of the icon displayed inside the logo mark. */
|
|
11
|
+
iconUrl?: string;
|
|
12
|
+
/** Whether the entity is marked as featured. */
|
|
13
|
+
isFeatured?: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/models/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Conversation } from './chat';
|
|
2
|
+
/** A minimal conversation-folder record carried in an export file. */
|
|
3
|
+
export interface ExportFolder {
|
|
4
|
+
/** Unique folder identifier. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Display name of the folder. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Identifier of the parent folder, if nested. */
|
|
9
|
+
folderId?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Versioned JSON envelope produced by conversation export, and read back on
|
|
13
|
+
* import.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExportFormat {
|
|
16
|
+
/** Format version discriminator. Only `5` is currently produced or accepted. */
|
|
17
|
+
version: 5;
|
|
18
|
+
/** Exported conversations. */
|
|
19
|
+
history: Conversation[];
|
|
20
|
+
/** Folders the exported conversations belong to. */
|
|
21
|
+
folders: ExportFolder[];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=import-export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-export.d.ts","sourceRoot":"","sources":["../../src/models/import-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,OAAO,EAAE,CAAC,CAAC;IACX,8BAA8B;IAC9B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,oDAAoD;IACpD,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** One additional (non-primary) locale's translation of an entity's name and description. */
|
|
2
|
+
export interface LocalizedTextEntry {
|
|
3
|
+
/** Stable client-side id for list rendering; not part of the persisted locale map. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Locale code this entry translates into (e.g. `'de'`). */
|
|
6
|
+
language: string;
|
|
7
|
+
/** Translated name for this locale. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Translated description for this locale. */
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
12
|
+
/** A selectable language option for an additional-locale row. */
|
|
13
|
+
export interface LocaleOption {
|
|
14
|
+
/** Locale code (e.g. `'de'`). */
|
|
15
|
+
code: string;
|
|
16
|
+
/** Display label for the option (e.g. `'DE'`). */
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/models/locale.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Translatable copy for `TextRefinementField`; every key has an English default. */
|
|
2
|
+
export interface TextRefinementLabels {
|
|
3
|
+
/** Refinement copy. Defaults to 'Refine with AI'. */
|
|
4
|
+
refineWithAiLabel?: string;
|
|
5
|
+
/** Refinement copy. Defaults to 'Undo'. */
|
|
6
|
+
refineUndoLabel?: string;
|
|
7
|
+
/** Refinement copy. Defaults to 'Could not refine this text. Please try again.'. */
|
|
8
|
+
refineErrorLabel?: string;
|
|
9
|
+
/** Refinement copy. Defaults to 'Refining text'. */
|
|
10
|
+
refinePendingAriaLabel?: string;
|
|
11
|
+
/** Refinement copy. Defaults to 'Text refined. Undo is available.'. */
|
|
12
|
+
refineSuccessAriaLabel?: string;
|
|
13
|
+
/** Refinement copy. Defaults to 'Original text restored.'. */
|
|
14
|
+
refineUndoAriaLabel?: string;
|
|
15
|
+
/** Refinement copy. Defaults to 'No changes were needed.'. */
|
|
16
|
+
refineUnchangedAriaLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=text-refinement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-refinement.d.ts","sourceRoot":"","sources":["../../src/models/text-refinement.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uEAAuE;IACvE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,8DAA8D;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,8DAA8D;IAC9D,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Root theme configuration loaded from the server at startup. */
|
|
2
|
+
export interface ThemeConfiguration {
|
|
3
|
+
/** Available themes the user can switch between. */
|
|
4
|
+
themes: Theme[];
|
|
5
|
+
/** Global image/icon assets shared across all themes. */
|
|
6
|
+
images: ThemeImages;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Theme-specific images and icons
|
|
10
|
+
*/
|
|
11
|
+
export interface ThemeImages {
|
|
12
|
+
/** Fallback icon URL used when an add-on has no custom image. */
|
|
13
|
+
'default-addon': string;
|
|
14
|
+
/** Fallback icon URL used when a model has no custom image. */
|
|
15
|
+
'default-model': string;
|
|
16
|
+
/** Browser tab favicon URL. */
|
|
17
|
+
favicon: string;
|
|
18
|
+
/** Light theme logo URL */
|
|
19
|
+
'chat-logo-light'?: string;
|
|
20
|
+
/** Dark theme logo URL */
|
|
21
|
+
'chat-logo-dark'?: string;
|
|
22
|
+
/** Dynamic favicon URL (PNG format, 32x32 recommended) */
|
|
23
|
+
'chat-favicon'?: string;
|
|
24
|
+
}
|
|
25
|
+
/** A single selectable UI theme. */
|
|
26
|
+
export interface Theme {
|
|
27
|
+
/** Unique theme identifier (e.g. `'dark'`, `'light'`). */
|
|
28
|
+
id: string;
|
|
29
|
+
/** Human-readable name shown in the theme picker. */
|
|
30
|
+
displayName: string;
|
|
31
|
+
/** CSS custom-property overrides keyed by variable name (without `--` prefix). */
|
|
32
|
+
colors: Record<string, string>;
|
|
33
|
+
/** URL of the application logo asset for this theme. */
|
|
34
|
+
'app-logo': string;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/models/theme.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,yDAAyD;IACzD,MAAM,EAAE,WAAW,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,eAAe,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,eAAe,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,oCAAoC;AACpC,MAAM,WAAW,KAAK;IACpB,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Resolved tool toggle item rendered in the conversation input tools submenu. */
|
|
3
|
+
export interface ToolMenuItem {
|
|
4
|
+
/** Unique tool identifier matching the deployment configuration schema property key. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Human-readable label displayed next to the tool icon. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Icon element rendered inline before the label. */
|
|
9
|
+
icon: ReactNode;
|
|
10
|
+
/** Whether the tool is currently toggled on. */
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tool-menu-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-menu-item.d.ts","sourceRoot":"","sources":["../../src/models/tool-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,wFAAwF;IACxF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,EAAE,SAAS,CAAC;IAChB,gDAAgD;IAChD,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Discriminates why an attachment upload failed. Only set when `status === RequestStatus.Error`. */
|
|
2
|
+
export declare enum AttachmentErrorReason {
|
|
3
|
+
/** Upload failed because the device was offline. */
|
|
4
|
+
Network = "network",
|
|
5
|
+
/** File MIME type is not in the deployment's inputAttachmentTypes list. */
|
|
6
|
+
UnsupportedType = "unsupported-type",
|
|
7
|
+
/** File size exceeds the configured maximum attachment size. */
|
|
8
|
+
FileTooLarge = "file-too-large"
|
|
9
|
+
}
|
|
10
|
+
/** Discriminates the kind of content an attachment carries. */
|
|
11
|
+
export declare enum AttachmentType {
|
|
12
|
+
/** Generic file attachment (non-image, non-audio). */
|
|
13
|
+
File = "file",
|
|
14
|
+
/** Raster or vector image. */
|
|
15
|
+
Image = "image",
|
|
16
|
+
/** Audio file that can be played inline. */
|
|
17
|
+
Audio = "audio",
|
|
18
|
+
/** A saved prompt snippet. */
|
|
19
|
+
Prompt = "prompt",
|
|
20
|
+
/** Text pasted directly by the user. */
|
|
21
|
+
Pasted = "pasted",
|
|
22
|
+
/** A link to a file or webpage. */
|
|
23
|
+
Link = "link"
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/types/attachment.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,oBAAY,qBAAqB;IAC/B,oDAAoD;IACpD,OAAO,YAAY;IACnB,2EAA2E;IAC3E,eAAe,qBAAqB;IACpC,gEAAgE;IAChE,YAAY,mBAAmB;CAChC;AAED,+DAA+D;AAC/D,oBAAY,cAAc;IACxB,sDAAsD;IACtD,IAAI,SAAS;IACb,8BAA8B;IAC9B,KAAK,UAAU;IACf,4CAA4C;IAC5C,KAAK,UAAU;IACf,8BAA8B;IAC9B,MAAM,WAAW;IACjB,wCAAwC;IACxC,MAAM,WAAW;IACjB,mCAAmC;IACnC,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../src/types/code-editor.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oBAAY,cAAc;IACxB,sCAAsC;IACtC,IAAI,SAAS;IACb,uCAAuC;IACvC,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Entity type for a catalog item. Values are uppercase for direct color-map lookup. */
|
|
2
|
+
export declare enum CatalogEntityType {
|
|
3
|
+
Model = "MODEL",
|
|
4
|
+
Agent = "AGENT",
|
|
5
|
+
Toolset = "TOOLSET",
|
|
6
|
+
Skill = "SKILL",
|
|
7
|
+
/** Reusable text prompt. Carries a body instead of a runtime. */
|
|
8
|
+
Prompt = "PROMPT"
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=entity-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,iEAAiE;IACjE,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DialFileNodeType } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
/**
|
|
3
|
+
* Minimal node shape file-manager selection predicates are evaluated against.
|
|
4
|
+
* Satisfied by both grid rows and `DialFile` controller items, so one
|
|
5
|
+
* predicate can gate manual grid clicks and programmatic selection changes.
|
|
6
|
+
*/
|
|
7
|
+
export interface FileManagerSelectableNode {
|
|
8
|
+
/** Virtual path of the node. */
|
|
9
|
+
path: string;
|
|
10
|
+
/** Distinguishes folders from files. */
|
|
11
|
+
nodeType: DialFileNodeType;
|
|
12
|
+
/** MIME type of a file node, when known. */
|
|
13
|
+
contentType?: string;
|
|
14
|
+
/** Size in bytes of a file node, when known. */
|
|
15
|
+
contentLength?: number;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=file-manager-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-manager-node.d.ts","sourceRoot":"","sources":["../../src/types/file-manager-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** Well-known MIME type constants used in DIAL API attachments. */
|
|
2
|
+
export declare enum MIMEType {
|
|
3
|
+
/** GitHub-flavoured Markdown. */
|
|
4
|
+
Markdown = "text/markdown",
|
|
5
|
+
/** Plain unformatted text. */
|
|
6
|
+
Plain = "text/plain",
|
|
7
|
+
/** HTML markup. */
|
|
8
|
+
HTML = "text/html",
|
|
9
|
+
/** XHTML markup. */
|
|
10
|
+
XHTML = "application/xhtml+xml",
|
|
11
|
+
/** Cascading Style Sheets. */
|
|
12
|
+
CSS = "text/css",
|
|
13
|
+
/** JavaScript source. */
|
|
14
|
+
JavaScript = "text/javascript",
|
|
15
|
+
/** TypeScript source (non-standard but widely used). */
|
|
16
|
+
TypeScript = "text/typescript",
|
|
17
|
+
/** CSV spreadsheet data. */
|
|
18
|
+
CSV = "text/csv",
|
|
19
|
+
/** JSON data. */
|
|
20
|
+
JSON = "application/json",
|
|
21
|
+
/** XML document (application type). */
|
|
22
|
+
XML = "application/xml",
|
|
23
|
+
/** PDF document. */
|
|
24
|
+
PDF = "application/pdf",
|
|
25
|
+
/** ZIP archive. */
|
|
26
|
+
ZIP = "application/zip",
|
|
27
|
+
/** GZIP-compressed data. */
|
|
28
|
+
GZIP = "application/gzip",
|
|
29
|
+
/** JPEG raster image. */
|
|
30
|
+
JPEG = "image/jpeg",
|
|
31
|
+
/** PNG raster image. */
|
|
32
|
+
PNG = "image/png",
|
|
33
|
+
/** GIF image. */
|
|
34
|
+
GIF = "image/gif",
|
|
35
|
+
/** WebP image. */
|
|
36
|
+
WebP = "image/webp",
|
|
37
|
+
/** BMP bitmap image. */
|
|
38
|
+
BMP = "image/bmp",
|
|
39
|
+
/** SVG vector image. */
|
|
40
|
+
SVG = "image/svg+xml",
|
|
41
|
+
/** MPEG audio (`.mp3`). */
|
|
42
|
+
MP3 = "audio/mpeg",
|
|
43
|
+
/** WAV audio. */
|
|
44
|
+
WAV = "audio/wav",
|
|
45
|
+
/** Ogg audio. */
|
|
46
|
+
OGG = "audio/ogg"
|
|
47
|
+
}
|
|
48
|
+
/** Well-known file extension constants used as fallback when a MIME type is unavailable. */
|
|
49
|
+
export declare enum FileExtension {
|
|
50
|
+
/** PDF document. */
|
|
51
|
+
PDF = "pdf",
|
|
52
|
+
/** Markdown document (`.md`). */
|
|
53
|
+
Markdown = "md",
|
|
54
|
+
/** Markdown document, alternate extension (`.markdown`). */
|
|
55
|
+
MarkdownAlt = "markdown",
|
|
56
|
+
/** JSON document. */
|
|
57
|
+
JSON = "json"
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=mime-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/types/mime-type.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oBAAY,QAAQ;IAElB,iCAAiC;IACjC,QAAQ,kBAAkB;IAC1B,8BAA8B;IAC9B,KAAK,eAAe;IACpB,mBAAmB;IACnB,IAAI,cAAc;IAClB,oBAAoB;IACpB,KAAK,0BAA0B;IAC/B,8BAA8B;IAC9B,GAAG,aAAa;IAChB,yBAAyB;IACzB,UAAU,oBAAoB;IAC9B,wDAAwD;IACxD,UAAU,oBAAoB;IAC9B,4BAA4B;IAC5B,GAAG,aAAa;IAGhB,iBAAiB;IACjB,IAAI,qBAAqB;IACzB,uCAAuC;IACvC,GAAG,oBAAoB;IACvB,oBAAoB;IACpB,GAAG,oBAAoB;IACvB,mBAAmB;IACnB,GAAG,oBAAoB;IACvB,4BAA4B;IAC5B,IAAI,qBAAqB;IAGzB,yBAAyB;IACzB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;IACjB,kBAAkB;IAClB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,wBAAwB;IACxB,GAAG,kBAAkB;IAGrB,2BAA2B;IAC3B,GAAG,eAAe;IAClB,iBAAiB;IACjB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;CAClB;AAED,4FAA4F;AAC5F,oBAAY,aAAa;IACvB,oBAAoB;IACpB,GAAG,QAAQ;IACX,iCAAiC;IACjC,QAAQ,OAAO;IACf,4DAA4D;IAC5D,WAAW,aAAa;IACxB,qBAAqB;IACrB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Annotation, AnnotationSelector } from '../models/annotation';
|
|
2
|
+
import { MessageAttachment } from '../models/chat';
|
|
3
|
+
/** Returns whether `value` is shaped like an annotation selector. */
|
|
4
|
+
export declare const isAnnotationSelector: (value: unknown) => value is AnnotationSelector;
|
|
5
|
+
/**
|
|
6
|
+
* Repairs persisted `html_tag` annotations created by older normalizers that
|
|
7
|
+
* defaulted every non-HTML source to PDF. An explicit, recognized file
|
|
8
|
+
* extension is more reliable than that historical fallback; opaque URLs keep
|
|
9
|
+
* their stored type so genuine PDF citations without an extension still work.
|
|
10
|
+
*/
|
|
11
|
+
export declare const normalizePersistedHtmlTagAttachmentType: (annotation: Annotation) => Annotation;
|
|
12
|
+
/**
|
|
13
|
+
* Normalizes raw annotations from the API wire format (stored in
|
|
14
|
+
* `message.custom_fields.annotations`) to the internal `Annotation` model.
|
|
15
|
+
*
|
|
16
|
+
* Recognizes two wire shapes:
|
|
17
|
+
* - `target.source.attachment_index` (integer) + a `pdf_region` selector
|
|
18
|
+
* with `{ left, top, width, height }` coordinates, resolved against
|
|
19
|
+
* `attachments` and converted to `body.source.attachment.url` + a
|
|
20
|
+
* `pdf_bbox` selector with `{ x1, y1, x2, y2 }` coordinates.
|
|
21
|
+
* - `target.selector` of type `html_tag` (`{ tag, id }`) with a flat
|
|
22
|
+
* `body.source = { type: 'attachment', url }` — normalized to
|
|
23
|
+
* `body.source.attachment.url`/`.title` directly, with no attachment-list
|
|
24
|
+
* lookup, preserving optional indexes and document selectors.
|
|
25
|
+
*
|
|
26
|
+
* Annotations matching neither shape are omitted from the result.
|
|
27
|
+
*/
|
|
28
|
+
export declare const normalizeRawAnnotations: (rawAnnotations: unknown[], attachments: MessageAttachment[]) => Annotation[];
|
|
29
|
+
//# sourceMappingURL=annotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/utils/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAmCxD,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,OAAO,KACb,KAAK,IAAI,kBAKoB,CAAC;AAmJjC;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,GAClD,YAAY,UAAU,KACrB,UAsBF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,GAClC,gBAAgB,OAAO,EAAE,EACzB,aAAa,iBAAiB,EAAE,KAC/B,UAAU,EAeT,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A background/foreground colour pair for an initials avatar badge. */
|
|
2
|
+
export interface AvatarColorEntry {
|
|
3
|
+
/** CSS colour value for the badge background — a theme token with a hex fallback. */
|
|
4
|
+
background: string;
|
|
5
|
+
/** CSS colour value for the initials text — a theme token with a hex fallback. */
|
|
6
|
+
foreground: string;
|
|
7
|
+
}
|
|
8
|
+
/** Returns a deterministic colour-pair for the given display name. */
|
|
9
|
+
export declare const pickAvatarColor: (name: string) => AvatarColorEntry;
|
|
10
|
+
//# sourceMappingURL=avatar-color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-color.d.ts","sourceRoot":"","sources":["../../src/utils/avatar-color.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;CACpB;AAsCD,sEAAsE;AACtE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,gBAM9C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/** Builds a `CSSProperties` object from a record of CSS custom property names to values, omitting entries with `undefined` or empty-string values. */
|
|
3
|
+
export declare const buildCssVars: (vars: Record<string, string | number | undefined>) => CSSProperties;
|
|
4
|
+
//# sourceMappingURL=build-css-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-css-vars.d.ts","sourceRoot":"","sources":["../../src/utils/build-css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,sJAAsJ;AACtJ,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,KAChD,aAQF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders markdown to sanitized HTML whose styling travels inline, so a
|
|
3
|
+
* rich-text target it is pasted into shows the tables, headings, and code
|
|
4
|
+
* blocks the way the conversation does.
|
|
5
|
+
*/
|
|
6
|
+
export declare const markdownToRichTextHtml: (content: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Copies markdown `content` to the clipboard as rich text, so pasting into a
|
|
9
|
+
* rich-text target (Word, Gmail, Slack) keeps the formatting. Both the
|
|
10
|
+
* `text/html` and the `text/plain` flavour are written, so a plain-text
|
|
11
|
+
* target (Notepad, a terminal, a code editor) pastes the raw markdown instead
|
|
12
|
+
* of nothing. Falls back to {@link copyToClipboard}, and therefore to the raw
|
|
13
|
+
* markdown, when the multi-format Clipboard API isn't available.
|
|
14
|
+
*/
|
|
15
|
+
export declare const copyMarkdownAsRichText: (content: string) => Promise<boolean>;
|
|
16
|
+
/** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
|
|
17
|
+
export declare const copyToClipboard: (text: string) => Promise<boolean>;
|
|
18
|
+
//# sourceMappingURL=copy-to-clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../src/utils/copy-to-clipboard.ts"],"names":[],"mappings":"AA+HA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,MAUtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,OAAO,CAAC,OAAO,CAoCvE,CAAC;AAEF,0IAA0I;AAC1I,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAY7D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Maximum length of an entity's name or display name. */
|
|
2
|
+
export declare const ENTITY_NAME_MAX_LENGTH = 256;
|
|
3
|
+
/** Maximum length of an entity's description. */
|
|
4
|
+
export declare const ENTITY_DESCRIPTION_MAX_LENGTH = 2000;
|
|
5
|
+
/** Maximum length of an entity's instructions (prompt body, system prompt, skill instructions). */
|
|
6
|
+
export declare const ENTITY_INSTRUCTIONS_MAX_LENGTH = 50000;
|
|
7
|
+
/** Whether `value` is longer than `maxLength` characters. */
|
|
8
|
+
export declare const exceedsMaxLength: (value: string, maxLength: number) => boolean;
|
|
9
|
+
/** Whether `value` contains a control character (line break, tab, NUL, …) that a single-line name must not carry. */
|
|
10
|
+
export declare const hasControlCharacters: (value: string) => boolean;
|
|
11
|
+
//# sourceMappingURL=entity-field-limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-field-limits.d.ts","sourceRoot":"","sources":["../../src/utils/entity-field-limits.ts"],"names":[],"mappings":"AAOA,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,iDAAiD;AACjD,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,mGAAmG;AACnG,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AAIpD,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,KAAG,OAC1C,CAAC;AAE3B,qHAAqH;AACrH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,OACd,CAAC"}
|