@epam/ai-dial-chat-shared 1.3.0-dev.10 → 1.3.0-dev.102
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/ConfirmationFooter.js +3 -1
- package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
- package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
- package/components/ConfirmationView/ConfirmationView.js +15 -14
- 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/DeleteConfirmationDialog/DeleteConfirmationDialog.js +34 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.js +37 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +6 -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/EntityHeader/EntityHeader.js +1 -1
- 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 +40 -0
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
- package/components/ItemHeader/ItemHeader.js +4 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +55 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +25 -25
- 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 +66 -0
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
- package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +139 -0
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/MarkdownRenderer.js +140 -133
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +1 -1
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
- package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
- package/components/MarkdownRenderer/PlainTextRenderer.js +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +3 -3
- 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/MarkdownRenderer/markdown-whitespace.js +18 -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 +33 -0
- package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
- package/components/TextRefinementField/TextRefinementField.js +27 -17
- 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 +19 -0
- package/entry-points/markdown.d.ts.map +1 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +58 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +193 -190
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +2 -1
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +1 -1
- 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 +158 -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.css +3 -2
- package/index.d.ts +79 -3072
- package/index.d.ts.map +1 -0
- package/index.js +68 -64
- package/markdown.d.ts +2 -465
- package/markdown.js +3 -2
- 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/inline-segment.d.ts +11 -0
- package/models/inline-segment.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 +3 -3
- 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/base64-json.d.ts +14 -0
- package/utils/base64-json.d.ts.map +1 -0
- package/utils/base64-json.js +4 -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/inline-segments.d.ts +38 -0
- package/utils/inline-segments.d.ts.map +1 -0
- package/utils/inline-segments.js +53 -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/markdown-html.d.ts +14 -0
- package/utils/markdown-html.d.ts.map +1 -0
- package/utils/markdown-html.js +11 -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 @@
|
|
|
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,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** An element rendered inline within message text, paired with the source text it stands for. */
|
|
3
|
+
export interface InlineTextSegment {
|
|
4
|
+
/** Literal source text the element replaces, rendered instead of `node` where an element cannot appear (inside code or link text). */
|
|
5
|
+
text: string;
|
|
6
|
+
/** Element rendered at the segment's position in the text. */
|
|
7
|
+
node: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/** One run of message text: a plain markdown string or an inline element segment. */
|
|
10
|
+
export type TextSegment = string | InlineTextSegment;
|
|
11
|
+
//# sourceMappingURL=inline-segment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-segment.d.ts","sourceRoot":"","sources":["../../src/models/inline-segment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,iGAAiG;AACjG,MAAM,WAAW,iBAAiB;IAChC,sIAAsI;IACtI,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,qFAAqF;AACrF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,iBAAiB,CAAC"}
|
|
@@ -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'. */
|
|
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,mDAAmD;IACnD,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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.102",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
36
|
-
"@epam/ai-dial-react-file-manager": "^0.
|
|
35
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.16",
|
|
36
|
+
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.9",
|
|
37
37
|
"ag-grid-community": "^35.3.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
@@ -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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encodes any JSON-serializable value as Unicode-safe base64 — the wrap
|
|
3
|
+
* exists to satisfy clear-text-storage security scanning on web storage, and
|
|
4
|
+
* it is an encoding, not encryption. Going through the UTF-8 bytes (rather
|
|
5
|
+
* than `btoa` on the string itself) keeps any non-Latin1 content encodable:
|
|
6
|
+
* `btoa` alone throws on characters above `U+00FF` (e.g. Cyrillic or CJK).
|
|
7
|
+
*/
|
|
8
|
+
export declare const encodeJsonToBase64: (value: unknown) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Decodes base64 written by {@link encodeJsonToBase64}; throws on any
|
|
11
|
+
* malformed input, so the caller owns the failure handling.
|
|
12
|
+
*/
|
|
13
|
+
export declare const decodeJsonFromBase64: <T>(raw: string) => T;
|
|
14
|
+
//# sourceMappingURL=base64-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64-json.d.ts","sourceRoot":"","sources":["../../src/utils/base64-json.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,MAC2B,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,KAAK,MAAM,KAAG,CAK9C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/utils/base64-json.ts
|
|
2
|
+
var e = (e) => btoa(String.fromCharCode(...new TextEncoder().encode(JSON.stringify(e)))), t = (e) => JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0))));
|
|
3
|
+
//#endregion
|
|
4
|
+
export { t as decodeJsonFromBase64, e as encodeJsonToBase64 };
|
|
@@ -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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BadgeColor } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { CatalogEntityType } from '../types/entity-type';
|
|
3
|
+
/** Returns the kit badge colour for an entity type — the same visual tokens as `ENTITY_TYPE_COLOR`. */
|
|
4
|
+
export declare const getEntityTypeBadgeColor: (type: CatalogEntityType) => BadgeColor;
|
|
5
|
+
//# sourceMappingURL=entity-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/utils/entity-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOzD,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,GAClC,MAAM,iBAAiB,KACtB,UAcF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `name` with a file extension appended when it lacks one.
|
|
3
|
+
* Priority: extension already present on `name` → extension from `contentType` via `MIME_TYPE_EXT_MAP` → extension from the last segment of `url`.
|
|
4
|
+
* A trailing `.` in `name` or the `url` segment is only trusted when it looks
|
|
5
|
+
* like a real extension (letters/digits only) — otherwise it is treated as
|
|
6
|
+
* ordinary punctuation (e.g. a title such as `"Report vs. Summary"`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const ensureDownloadFilename: (name: string, url: string | undefined, contentType: string | undefined) => string;
|
|
9
|
+
/** Returns the file extension (without a leading dot) for a fenced-code-block language identifier, defaulting to `txt`. */
|
|
10
|
+
export declare const getFileExtensionForLanguage: (language: string) => string;
|
|
11
|
+
/** Creates a temporary anchor element and clicks it to trigger a browser download for `href`. */
|
|
12
|
+
export declare const triggerAnchorDownload: (href: string, filename: string) => void;
|
|
13
|
+
/** Triggers a browser download of `blob`, using a temporary object URL that is revoked afterward. */
|
|
14
|
+
export declare const triggerBlobDownload: (blob: Blob, filename: string) => void;
|
|
15
|
+
/** Decodes a base64 string into raw bytes, or `undefined` if the string is not valid base64. */
|
|
16
|
+
export declare const tryBase64ToBytes: (base64: string) => Uint8Array | undefined;
|
|
17
|
+
/** Decodes an inline `data` payload into a `Blob` of `mimeType`, treating the payload as raw UTF-8 text when it is not valid base64. */
|
|
18
|
+
export declare const base64ToBlob: (data: string, mimeType: string) => Blob;
|
|
19
|
+
/** Triggers a browser download of `content` as a text file named `filename`. */
|
|
20
|
+
export declare const downloadTextFile: (content: string, filename: string, mimeType?: string) => void;
|
|
21
|
+
//# sourceMappingURL=file-download.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-download.d.ts","sourceRoot":"","sources":["../../src/utils/file-download.ts"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,KAAK,MAAM,GAAG,SAAS,EACvB,aAAa,MAAM,GAAG,SAAS,KAC9B,MAeF,CAAC;AA2CF,2HAA2H;AAC3H,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,MACT,CAAC;AASvD,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAWtE,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,UAAU,MAAM,KAAG,IAIlE,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,UAAU,GAAG,SAW9D,CAAC;AAEF,wIAAwI;AACxI,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAG7D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,UAAU,MAAM,EAChB,iBAAqC,KACpC,IAEF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-file-size.d.ts","sourceRoot":"","sources":["../../src/utils/format-file-size.ts"],"names":[],"mappings":"AAIA,sFAAsF;AACtF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAQ9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA,uJAAuJ;AACvJ,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
|