@epam/ai-dial-chat-shared 1.3.0-dev.35 → 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,67 @@
|
|
|
1
|
+
import { CustomVisualizerData, CustomVisualizerDataLayout } from './custom-visualizer';
|
|
2
|
+
/**
|
|
3
|
+
* A single application → grouped visualizer mapping from the
|
|
4
|
+
* `APPLICATION_VISUALIZERS` registry. Field semantics are fixed by
|
|
5
|
+
* already-deployed visualizer applications and operator configurations
|
|
6
|
+
* carried over from legacy Chat 0.x, which is why `contentType` is optional
|
|
7
|
+
* here while `CustomVisualizer.contentType` is required.
|
|
8
|
+
*/
|
|
9
|
+
export interface ApplicationVisualizer {
|
|
10
|
+
/**
|
|
11
|
+
* The postMessage protocol namespace, NOT a display label. Every message
|
|
12
|
+
* exchanged with the iframe is prefixed `${title}/…`, and the iframe-side
|
|
13
|
+
* visualizer application must be constructed with this identical string
|
|
14
|
+
* as its `appName`. A mismatch is a silent failure — the iframe loads but
|
|
15
|
+
* never receives data. Also used as the inline frame's header text.
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/** Human-readable description of the visualizer. Accepted for operator-configuration parity; not consumed by host logic. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Icon URL or identifier for the visualizer. Accepted for operator-configuration parity; not consumed by host logic. */
|
|
21
|
+
icon?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Comma-separated list of MIME types this entry claims (e.g.
|
|
24
|
+
* `'application/vnd.plotly.v1+json'` or
|
|
25
|
+
* `'application/vnd.plotly.v1+json, application/vnd.vega.v5+json'`).
|
|
26
|
+
* Stored verbatim; splitting happens at lookup time. When omitted, the
|
|
27
|
+
* entry claims every attachment that carries a URL.
|
|
28
|
+
*/
|
|
29
|
+
contentType?: string;
|
|
30
|
+
/** Absolute HTTP(S) URL of the visualizer iframe. */
|
|
31
|
+
url: string;
|
|
32
|
+
/** Milliseconds to wait for a `send()` request's `/RESPONSE` before rejecting. Defaults to `10000`. Does NOT bound the initial handshake. */
|
|
33
|
+
requestTimeout?: number;
|
|
34
|
+
/** Suggested initial width of the visualizer surface in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
35
|
+
width?: number;
|
|
36
|
+
/** Suggested initial height of the visualizer surface in pixels. Forwarded as-is in `CustomVisualizerDataLayout`, and used by the host to size the inline frame. */
|
|
37
|
+
height?: number;
|
|
38
|
+
/** Suggested height on mobile viewports in pixels. Forwarded as-is in `CustomVisualizerDataLayout`, and used by the host to size the inline frame on mobile. */
|
|
39
|
+
mobileHeight?: number;
|
|
40
|
+
/** Whether the host should pass auth info to the visualizer. Accepted for operator-configuration parity; inert, because 1.0 auth is server-side and the browser holds no access token. */
|
|
41
|
+
passAuthInfo?: boolean;
|
|
42
|
+
/** Whether the host should pass an explicit access token. Accepted for operator-configuration parity; inert, because 1.0 auth is server-side and the browser holds no access token. */
|
|
43
|
+
passExplicitToken?: boolean;
|
|
44
|
+
/** When `true`, the host renders the inline frame without its border, rounded corners, background, and header divider. */
|
|
45
|
+
borderless?: boolean;
|
|
46
|
+
/** When `true`, the host hides the inline frame's header title text; the header actions stay visible. */
|
|
47
|
+
withoutTitle?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** The `APPLICATION_VISUALIZERS` registry: application id → grouped visualizer entry. */
|
|
50
|
+
export type ApplicationVisualizerRegistry = Record<string, ApplicationVisualizer>;
|
|
51
|
+
/** A single attachment handed to a grouped visualizer inside `SEND_GROUPED_VISUALIZE_DATA`. */
|
|
52
|
+
export interface GroupedAttachmentItem {
|
|
53
|
+
/** Absolute URL of the attachment, resolved by the host before sending. */
|
|
54
|
+
url: string;
|
|
55
|
+
/** The attachment's own MIME type. */
|
|
56
|
+
mimeType: string;
|
|
57
|
+
/** Presentation layout plus the opaque per-attachment payload. */
|
|
58
|
+
visualizerData: CustomVisualizerData;
|
|
59
|
+
}
|
|
60
|
+
/** Payload of a `SEND_GROUPED_VISUALIZE_DATA` request: every claimed attachment plus the shared presentation layout. */
|
|
61
|
+
export interface GroupedAttachmentsData {
|
|
62
|
+
/** One item per claimed attachment, in the message's attachment order. */
|
|
63
|
+
attachments: GroupedAttachmentItem[];
|
|
64
|
+
/** Presentation layout hints shared by every item. */
|
|
65
|
+
layout: CustomVisualizerDataLayout;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=application-visualizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-visualizer.d.ts","sourceRoot":"","sources":["../../src/models/application-visualizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAE7B;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,4HAA4H;IAC5H,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yHAAyH;IACzH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,6IAA6I;IAC7I,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oHAAoH;IACpH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oKAAoK;IACpK,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gKAAgK;IAChK,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0LAA0L;IAC1L,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uLAAuL;IACvL,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0HAA0H;IAC1H,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yGAAyG;IACzG,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,yFAAyF;AACzF,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAChD,MAAM,EACN,qBAAqB,CACtB,CAAC;AAEF,+FAA+F;AAC/F,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,cAAc,EAAE,oBAAoB,CAAC;CACtC;AAED,wHAAwH;AACxH,MAAM,WAAW,sBAAsB;IACrC,0EAA0E;IAC1E,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,sDAAsD;IACtD,MAAM,EAAE,0BAA0B,CAAC;CACpC"}
|
package/models/auth.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Authenticated user's profile as returned by the identity provider. */
|
|
2
|
+
export interface UserProfile {
|
|
3
|
+
/** Subject identifier — unique, stable ID for the user within the provider. */
|
|
4
|
+
sub: string;
|
|
5
|
+
/** ID of the identity provider that authenticated the user. */
|
|
6
|
+
providerId: string;
|
|
7
|
+
/**
|
|
8
|
+
* Allowlisted claims, keyed by claim name. A dot-notation provider
|
|
9
|
+
* `rolesClaim` (e.g. `"realm_access.roles"`) is stored under one flat key
|
|
10
|
+
* equal to that literal string, never as a nested object — look it up
|
|
11
|
+
* with `claims[rolesClaim]`, not a nested path.
|
|
12
|
+
*/
|
|
13
|
+
claims: Record<string, unknown>;
|
|
14
|
+
/** DIAL Core storage bucket for the authenticated user. Empty string when the bucket has not been resolved yet. */
|
|
15
|
+
bucket?: string;
|
|
16
|
+
/** Whether the user's roles claim intersects the provider's configured adminRoles. */
|
|
17
|
+
isAdmin: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Describes an available identity provider. */
|
|
20
|
+
export interface ProviderInfo {
|
|
21
|
+
/** Unique provider identifier used in API calls. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Human-readable display name shown in the UI. */
|
|
24
|
+
label: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/models/auth.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,mHAAmH;IACnH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf"}
|
package/models/chat.d.ts
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { AttachmentErrorReason, AttachmentType } from '../types/attachment';
|
|
2
|
+
import { MIMEType } from '../types/mime-type';
|
|
3
|
+
import { Annotation } from './annotation';
|
|
4
|
+
import { DeploymentConfigurationSchema } from './deployment-configuration';
|
|
5
|
+
import { ResponseFormat } from './deployment-features';
|
|
6
|
+
/** Metadata returned by the DIAL file/conversation listing API for a single resource node. */
|
|
7
|
+
export interface ConversationMetadata {
|
|
8
|
+
/** Display name of the resource. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Optional author identifier. */
|
|
11
|
+
author?: string;
|
|
12
|
+
/** Path of the parent folder in the resource tree. */
|
|
13
|
+
parentPath: string;
|
|
14
|
+
/** Storage bucket the resource belongs to. */
|
|
15
|
+
bucket: string;
|
|
16
|
+
/** Full resource URL used to fetch or reference the item. */
|
|
17
|
+
url: string;
|
|
18
|
+
/** Node type as returned by the backend (e.g. `'ITEM'`, `'FOLDER'`). */
|
|
19
|
+
nodeType: string;
|
|
20
|
+
/** Resource type discriminator (e.g. `'Conversation'`). */
|
|
21
|
+
resourceType: string;
|
|
22
|
+
/** ETag for optimistic concurrency / cache validation. */
|
|
23
|
+
etag?: string;
|
|
24
|
+
/** Unix timestamp (ms) when the resource was created. */
|
|
25
|
+
createdAt?: number;
|
|
26
|
+
/** Unix timestamp (ms) of the last modification. */
|
|
27
|
+
updatedAt?: number;
|
|
28
|
+
/** Permission strings granted to the current user for this resource. */
|
|
29
|
+
permissions?: string[];
|
|
30
|
+
}
|
|
31
|
+
/** Identifies the author of a chat message. */
|
|
32
|
+
export declare enum MessageRole {
|
|
33
|
+
User = "user",
|
|
34
|
+
Assistant = "assistant",
|
|
35
|
+
/** In-conversation system event; never sent to DIAL Core. */
|
|
36
|
+
Status = "status"
|
|
37
|
+
}
|
|
38
|
+
/** User-submitted thumbs-up or thumbs-down rating for an assistant message. */
|
|
39
|
+
export declare enum MessageRating {
|
|
40
|
+
Like = 1,
|
|
41
|
+
Dislike = -1
|
|
42
|
+
}
|
|
43
|
+
/** Status of a single agent stage. */
|
|
44
|
+
export declare enum StageStatus {
|
|
45
|
+
/** The stage completed successfully. */
|
|
46
|
+
Completed = "completed",
|
|
47
|
+
/** The stage encountered an error. */
|
|
48
|
+
Failed = "failed"
|
|
49
|
+
}
|
|
50
|
+
/** Lifecycle status of an assistant message generated by a DIAL Core background Responses job. */
|
|
51
|
+
export declare enum BackgroundGenerationStatus {
|
|
52
|
+
/** The job is running (or its result has not been saved yet); the message is still being generated. */
|
|
53
|
+
Pending = "pending",
|
|
54
|
+
/** The job finished and its final answer is saved. */
|
|
55
|
+
Completed = "completed",
|
|
56
|
+
/** The user stopped the generation; the message holds whatever output was available. */
|
|
57
|
+
Stopped = "stopped",
|
|
58
|
+
/** The job failed, expired, or could not be started; see `streamErrorMessage`. */
|
|
59
|
+
Failed = "failed"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Server-owned association between an assistant message and the DIAL Core background job
|
|
63
|
+
* producing it. Present only on messages generated through the background path; its
|
|
64
|
+
* `generationId` identifies the message across saves, because messages have no ids.
|
|
65
|
+
*/
|
|
66
|
+
export interface BackgroundGeneration {
|
|
67
|
+
/** Client-supplied generation id of the request that started the job. */
|
|
68
|
+
generationId: string;
|
|
69
|
+
/** Current lifecycle status of the job's message. */
|
|
70
|
+
status: BackgroundGenerationStatus;
|
|
71
|
+
/** Server time (epoch ms) at which the pending placeholder was saved. */
|
|
72
|
+
startedAt: number;
|
|
73
|
+
}
|
|
74
|
+
/** Permitted scalar/array types for a single form field value. */
|
|
75
|
+
export type MessageFormValueType = number | string | boolean | string[];
|
|
76
|
+
/** Key-value map of field identifiers to form field values, submitted from an embedded form widget. */
|
|
77
|
+
export type MessageFormValue = Record<string, MessageFormValueType | undefined>;
|
|
78
|
+
/** Discriminator values for `StatusMessageCustomContent.event_type`. */
|
|
79
|
+
export declare enum StatusEvent {
|
|
80
|
+
ModelChanged = "model_changed"
|
|
81
|
+
}
|
|
82
|
+
/** Extra payload attached to a `MessageRole.Status` message. */
|
|
83
|
+
export interface StatusMessageCustomContent {
|
|
84
|
+
/** Machine-readable event discriminator. */
|
|
85
|
+
event_type: StatusEvent;
|
|
86
|
+
/** ID of the deployment that was active before the change, or `null` for the first selection. */
|
|
87
|
+
previous_deployment_id: string | null;
|
|
88
|
+
/** ID of the deployment selected after the change. */
|
|
89
|
+
new_deployment_id: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A skill referenced from `custom_content.skills` — DIAL Core's `RequestSkill`
|
|
93
|
+
* schema ([ai-dial-core#1956](https://github.com/epam/ai-dial-core/pull/1956)): an object with a non-blank `url`; Core rejects any other
|
|
94
|
+
* entry shape (e.g. a bare string) with 400.
|
|
95
|
+
*/
|
|
96
|
+
export interface RequestSkill {
|
|
97
|
+
/** The skill's resource URL (`skills/{bucket}/{path}`) — the same form the skill listing and `CatalogItem.id` use. */
|
|
98
|
+
url: string;
|
|
99
|
+
}
|
|
100
|
+
/** Extra DIAL API payload attached to a message. */
|
|
101
|
+
export interface MessageCustomContent {
|
|
102
|
+
/** Files or media items associated with this message. */
|
|
103
|
+
attachments?: MessageAttachment[];
|
|
104
|
+
/** Annotations produced by the model, each optionally citing a source document. */
|
|
105
|
+
annotations?: Annotation[];
|
|
106
|
+
/** Form field values submitted via an embedded form widget. */
|
|
107
|
+
form_value?: MessageFormValue;
|
|
108
|
+
/**
|
|
109
|
+
* JSON Schema for a button/form widget embedded in an assistant response.
|
|
110
|
+
* Populated from the streaming delta's `custom_content.form_schema`.
|
|
111
|
+
*/
|
|
112
|
+
form_schema?: DeploymentConfigurationSchema;
|
|
113
|
+
/**
|
|
114
|
+
* Configuration value submitted with the next user turn when a button is selected.
|
|
115
|
+
* Keys match the `propertyKey` from the `form_schema` (e.g. `{ button: 3 }`).
|
|
116
|
+
*/
|
|
117
|
+
configuration_value?: Record<string, unknown>;
|
|
118
|
+
/** Accumulated agent execution stages streamed via `custom_content.stages`. */
|
|
119
|
+
stages?: Stage[];
|
|
120
|
+
/**
|
|
121
|
+
* Opaque app-managed state echoed back verbatim on the next turn, per the DIAL
|
|
122
|
+
* stateful-app contract. Overwritten (not merged) by each new streaming delta.
|
|
123
|
+
*/
|
|
124
|
+
state?: Record<string, unknown>;
|
|
125
|
+
/**
|
|
126
|
+
* Skills used with this message; each entry carries the skill's resource URL.
|
|
127
|
+
* Present on user requests and, per Core's contract, on assistant responses
|
|
128
|
+
* ("skills referenced by the model as part of the response").
|
|
129
|
+
*/
|
|
130
|
+
skills?: RequestSkill[];
|
|
131
|
+
}
|
|
132
|
+
/** A single message in a conversation. */
|
|
133
|
+
export interface Message {
|
|
134
|
+
/** Who authored the message. */
|
|
135
|
+
role: MessageRole;
|
|
136
|
+
/** Plain-text (or Markdown) message body. */
|
|
137
|
+
content: string;
|
|
138
|
+
/** ISO-8601 timestamp of when the message was created. */
|
|
139
|
+
timestamp: string;
|
|
140
|
+
/** DIAL Core response identifier used for the rate API. Present on the final chunk. */
|
|
141
|
+
responseId?: string;
|
|
142
|
+
/** Extra DIAL API payload; present on user requests and assistant responses. */
|
|
143
|
+
custom_content?: MessageCustomContent;
|
|
144
|
+
/** User-submitted rating for this message. */
|
|
145
|
+
rating?: MessageRating;
|
|
146
|
+
/** Deployment ID on `MessageRole.Assistant` and `MessageRole.Status` messages. */
|
|
147
|
+
deploymentId?: string;
|
|
148
|
+
streamErrorMessage?: string;
|
|
149
|
+
/** Set on an assistant message whose generation the user stopped; the content is whatever had streamed by then. */
|
|
150
|
+
wasStoppedByUser?: boolean;
|
|
151
|
+
/** Set on an assistant message produced by a DIAL Core background job; absent on every other message. */
|
|
152
|
+
backgroundGeneration?: BackgroundGeneration;
|
|
153
|
+
/** Allows extra SDK-level properties to pass through when serializing to DIAL Core. */
|
|
154
|
+
[key: string]: unknown;
|
|
155
|
+
}
|
|
156
|
+
/** In-conversation system event message, always with `role: MessageRole.Status`. */
|
|
157
|
+
export interface StatusMessage extends Omit<Message, 'role' | 'custom_content'> {
|
|
158
|
+
/** Always `MessageRole.Status` for status messages. */
|
|
159
|
+
role: MessageRole.Status;
|
|
160
|
+
/** Status event payload. */
|
|
161
|
+
custom_content?: StatusMessageCustomContent;
|
|
162
|
+
}
|
|
163
|
+
/** A single agent execution stage produced during a streaming response. */
|
|
164
|
+
export interface Stage {
|
|
165
|
+
/** Zero-based ordering key; used to merge/upsert incoming stage updates. */
|
|
166
|
+
index: number;
|
|
167
|
+
/** Human-readable label for this stage (e.g. `"Lookup available terms"`). */
|
|
168
|
+
name: string;
|
|
169
|
+
/** `null` while the stage is running; a `StageStatus` value when it has settled. */
|
|
170
|
+
status: StageStatus | null;
|
|
171
|
+
/** Additional text content for this stage, accumulated from streaming chunks. */
|
|
172
|
+
content?: string;
|
|
173
|
+
/** File or content attachments associated with this stage. */
|
|
174
|
+
attachments?: MessageAttachment[];
|
|
175
|
+
/**
|
|
176
|
+
* Short source/category label shown beside the step name (e.g. `"MCP"`).
|
|
177
|
+
* Rendered only when present — never inferred from `name`.
|
|
178
|
+
*/
|
|
179
|
+
tag?: string;
|
|
180
|
+
/**
|
|
181
|
+
* `index` of the stage that produced this one, in the same message's stage
|
|
182
|
+
* array. In a streaming delta it names the parent's streaming `index` and is
|
|
183
|
+
* sent only on the chunk that opens the child; in a complete non-streaming
|
|
184
|
+
* array without indexes it names the parent's array position. Absent for a
|
|
185
|
+
* top-level stage; `0` is a valid parent.
|
|
186
|
+
*/
|
|
187
|
+
parent_stage_index?: number;
|
|
188
|
+
}
|
|
189
|
+
/** A single LangChain-style tool-call request emitted by the model, present on a `ToolStateMessage` with `type: 'ai'`. */
|
|
190
|
+
export interface ToolCallRequest {
|
|
191
|
+
/** Name of the tool being called. */
|
|
192
|
+
name: string;
|
|
193
|
+
/** Arguments passed to the tool call. */
|
|
194
|
+
args: Record<string, unknown>;
|
|
195
|
+
/** Correlates this call to its result message via that message's `tool_call_id`. */
|
|
196
|
+
id: string;
|
|
197
|
+
}
|
|
198
|
+
/** One entry in `custom_content.state.tool_messages` — either the model's tool-call request or the tool's result. */
|
|
199
|
+
export interface ToolStateMessage {
|
|
200
|
+
/** LangChain message type: `'ai'` for the request, `'tool'` for the result. */
|
|
201
|
+
type: string;
|
|
202
|
+
/** Present on `type: 'tool'` result messages — the tool's own name. */
|
|
203
|
+
name?: string;
|
|
204
|
+
/** Present on `type: 'ai'` messages that requested one or more tool calls. */
|
|
205
|
+
tool_calls?: ToolCallRequest[];
|
|
206
|
+
/** Present on `type: 'tool'` result messages — correlates to the request's `id`. */
|
|
207
|
+
tool_call_id?: string;
|
|
208
|
+
/** Text content — the tool's result body on `type: 'tool'` messages. */
|
|
209
|
+
content?: string;
|
|
210
|
+
}
|
|
211
|
+
/** A single OpenAI-style tool-call request, present on a `ToolExecutionHistoryMessage` with `role: 'assistant'`. */
|
|
212
|
+
export interface OpenAiToolCall {
|
|
213
|
+
/** Correlates this call to its result message via that message's `tool_call_id`. */
|
|
214
|
+
id: string;
|
|
215
|
+
/** Always `'function'` for a tool call. */
|
|
216
|
+
type: string;
|
|
217
|
+
/** The invoked function's name and raw (unparsed) JSON-encoded arguments. */
|
|
218
|
+
function: {
|
|
219
|
+
name: string;
|
|
220
|
+
/** JSON-encoded arguments object — parse before use. */
|
|
221
|
+
arguments: string;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
/** One entry in `custom_content.state.tool_execution_history` — either the model's tool-call request or the tool's result, in OpenAI chat-completion message shape (as opposed to `ToolStateMessage`'s LangChain shape). */
|
|
225
|
+
export interface ToolExecutionHistoryMessage {
|
|
226
|
+
/** `'assistant'` for the request, `'tool'` for the result. */
|
|
227
|
+
role: string;
|
|
228
|
+
/** Present on `role: 'assistant'` messages that requested one or more tool calls. */
|
|
229
|
+
tool_calls?: OpenAiToolCall[];
|
|
230
|
+
/** Present on `role: 'tool'` result messages — correlates to the request's `id`. */
|
|
231
|
+
tool_call_id?: string;
|
|
232
|
+
/** Text content — the tool's result body on `role: 'tool'` messages. */
|
|
233
|
+
content?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Orchestrator-specific execution state, kept wire-verbatim snake_case like
|
|
237
|
+
* every other pass-through field under `custom_content` (e.g. `stages`) —
|
|
238
|
+
* not part of any standard DIAL Core contract. Different orchestrators emit
|
|
239
|
+
* different shapes: `tool_messages` (LangChain-style) is known from the
|
|
240
|
+
* StatGPT agent, gated behind its own `show_debug_stages` flag;
|
|
241
|
+
* `tool_execution_history` (OpenAI chat-completion-style) is known from a
|
|
242
|
+
* different agent. Both are optional and independent — a given orchestrator
|
|
243
|
+
* emits at most one of them.
|
|
244
|
+
*/
|
|
245
|
+
export interface MessageState {
|
|
246
|
+
/** The model's tool-call requests and their results for this turn, LangChain-style. */
|
|
247
|
+
tool_messages?: ToolStateMessage[];
|
|
248
|
+
/** The model's tool-call requests and their results for this turn, OpenAI chat-completion-style. */
|
|
249
|
+
tool_execution_history?: ToolExecutionHistoryMessage[];
|
|
250
|
+
}
|
|
251
|
+
/** Incremental content delta inside a streaming SSE chunk. */
|
|
252
|
+
export interface StreamChunkDelta {
|
|
253
|
+
/** Partial text token appended to the assistant message. */
|
|
254
|
+
content?: string;
|
|
255
|
+
/** Role field — only present in the first chunk of a response. */
|
|
256
|
+
role?: string;
|
|
257
|
+
/** DIAL Core response identifier used for the rate API. Present on the final chunk. */
|
|
258
|
+
responseId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Partial custom content carried in this chunk.
|
|
261
|
+
* `form_schema`, `attachments`, and `stages` may arrive in separate chunks or together in the final chunk.
|
|
262
|
+
*/
|
|
263
|
+
custom_content?: {
|
|
264
|
+
/** Incremental stage updates; merge by `index` into the accumulating stage list. */
|
|
265
|
+
stages?: Stage[];
|
|
266
|
+
/** JSON Schema for a button/form widget; arrives once the model decides to embed a form. */
|
|
267
|
+
form_schema?: DeploymentConfigurationSchema;
|
|
268
|
+
/** AI-generated files produced by the model; typically present in the final chunk. */
|
|
269
|
+
attachments?: MessageAttachment[];
|
|
270
|
+
/** Partial annotation updates; merge by `index` into the accumulating annotation list. */
|
|
271
|
+
annotations?: Annotation[];
|
|
272
|
+
/** Opaque app-managed state for the DIAL stateful-app contract; overwrites any previous value. */
|
|
273
|
+
state?: Record<string, unknown>;
|
|
274
|
+
};
|
|
275
|
+
/** Raw custom fields in the DIAL wire format. */
|
|
276
|
+
custom_fields?: {
|
|
277
|
+
/** Raw annotations in the DIAL wire format; must be normalized before use. */
|
|
278
|
+
annotations?: unknown[];
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/** A single server-sent event chunk from the streaming completions endpoint. */
|
|
282
|
+
export interface StreamChunk {
|
|
283
|
+
/** Unique identifier for the completion stream. */
|
|
284
|
+
id: string;
|
|
285
|
+
/** Discriminator — always `'chat.completion.chunk'` for streaming responses. */
|
|
286
|
+
object: 'chat.completion.chunk';
|
|
287
|
+
/** One choice per requested completion (usually one entry). */
|
|
288
|
+
choices: Array<{
|
|
289
|
+
/** Partial token delta for this chunk. */
|
|
290
|
+
delta: StreamChunkDelta;
|
|
291
|
+
/** Set to a non-null string (e.g. `'stop'`) when the stream ends. */
|
|
292
|
+
finish_reason: string | null;
|
|
293
|
+
/** Zero-based index of this choice. */
|
|
294
|
+
index: number;
|
|
295
|
+
}>;
|
|
296
|
+
/**
|
|
297
|
+
* Present when DIAL Core signals an error inside the SSE stream instead of
|
|
298
|
+
* (or in addition to) a non-2xx HTTP status.
|
|
299
|
+
*/
|
|
300
|
+
error?: {
|
|
301
|
+
/** Human-readable error description. */
|
|
302
|
+
message: string;
|
|
303
|
+
/** Machine-readable error category (e.g. `'invalid_request_error'`). */
|
|
304
|
+
type?: string;
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
/** Generic async-operation status, reusable for any request lifecycle. */
|
|
308
|
+
export declare enum RequestStatus {
|
|
309
|
+
/** No request has been made yet. */
|
|
310
|
+
Idle = "idle",
|
|
311
|
+
/** A request is in-flight. */
|
|
312
|
+
Loading = "loading",
|
|
313
|
+
/** The most recent request failed. */
|
|
314
|
+
Error = "error"
|
|
315
|
+
}
|
|
316
|
+
/** Represents a file or content item that can be displayed as an attachment. */
|
|
317
|
+
export interface DisplayAttachment {
|
|
318
|
+
/** Unique client-side identifier. */
|
|
319
|
+
id: string;
|
|
320
|
+
/** Display name (usually the original filename). */
|
|
321
|
+
name: string;
|
|
322
|
+
/** MIME type of the attachment (e.g. `'image/png'`, `'application/pdf'`). */
|
|
323
|
+
contentType: MIMEType | string;
|
|
324
|
+
/** Content category used to select the correct icon and thumbnail. */
|
|
325
|
+
type: AttachmentType;
|
|
326
|
+
/** Upload / processing lifecycle state. */
|
|
327
|
+
status: RequestStatus;
|
|
328
|
+
/** Reason the upload failed; only set when `status === RequestStatus.Error`. */
|
|
329
|
+
errorReason?: AttachmentErrorReason;
|
|
330
|
+
/** Object URL for image preview; only set when `type === AttachmentType.Image`. */
|
|
331
|
+
previewUrl?: string;
|
|
332
|
+
/** Resolved playback URL for audio; only set when `type === AttachmentType.Audio`. */
|
|
333
|
+
playUrl?: string;
|
|
334
|
+
/** Remote URL for an attachment that has already been uploaded. */
|
|
335
|
+
url?: string;
|
|
336
|
+
/** Alternate reference URL (e.g. from the DIAL API `reference_url` field); used when `url` is absent. */
|
|
337
|
+
referenceUrl?: string;
|
|
338
|
+
/** Inline base-64 encoded content; present when the attachment carries data directly rather than via a URL. */
|
|
339
|
+
data?: string;
|
|
340
|
+
}
|
|
341
|
+
/** Attachment selected locally by the user before it is sent to the backend. */
|
|
342
|
+
export interface Attachment extends DisplayAttachment {
|
|
343
|
+
/** The underlying browser `File` object selected by the user. */
|
|
344
|
+
file: File;
|
|
345
|
+
}
|
|
346
|
+
/** Result of successfully uploading an {@link Attachment}. */
|
|
347
|
+
export interface UploadedAttachmentResult {
|
|
348
|
+
/** The DIAL Core file URL the attachment was uploaded to. */
|
|
349
|
+
url: string;
|
|
350
|
+
/** The name actually stored on DIAL Core; differs from the attachment's original name when it contained characters the storage path forbids, or when a ` (n)` suffix was needed to avoid replacing an existing file. */
|
|
351
|
+
name: string;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Attachment payload stored in message custom content.
|
|
355
|
+
* Used inside `Message.custom_content.attachments` for both user requests
|
|
356
|
+
* and assistant responses.
|
|
357
|
+
*/
|
|
358
|
+
export interface MessageAttachment {
|
|
359
|
+
/** Zero-based position in the attachment list. */
|
|
360
|
+
index?: number;
|
|
361
|
+
/** MIME type of the attachment content. May be absent in streamed runtime payloads. */
|
|
362
|
+
type?: MIMEType | string;
|
|
363
|
+
/** Display name shown in the UI. */
|
|
364
|
+
title: string;
|
|
365
|
+
/** Inline base-64 encoded content (mutually exclusive with `url`). */
|
|
366
|
+
data?: string;
|
|
367
|
+
/** Remote URL pointing to the attachment content. */
|
|
368
|
+
url?: string;
|
|
369
|
+
/** MIME type of the referenced resource (used with `reference_url`). */
|
|
370
|
+
reference_type?: MIMEType | string;
|
|
371
|
+
/** URL of an alternate reference resource (e.g. a download link). */
|
|
372
|
+
reference_url?: string;
|
|
373
|
+
}
|
|
374
|
+
/** A full conversation including its messages and configuration. */
|
|
375
|
+
export interface Conversation {
|
|
376
|
+
/** Unique conversation identifier. */
|
|
377
|
+
id: string;
|
|
378
|
+
/** Identifier of the folder this conversation lives in. */
|
|
379
|
+
folderId: string;
|
|
380
|
+
/** Human-readable conversation title. */
|
|
381
|
+
name: string;
|
|
382
|
+
/** The AI model used for this conversation. */
|
|
383
|
+
model: {
|
|
384
|
+
id: string;
|
|
385
|
+
};
|
|
386
|
+
/** System prompt prepended to every request. */
|
|
387
|
+
prompt: string;
|
|
388
|
+
/** Sampling temperature passed to the model (0–1). */
|
|
389
|
+
temperature: number;
|
|
390
|
+
/** Optional Responses-API output-token cap, forwarded as `max_output_tokens`. Never derived from deployment limits or Chat Completions defaults. */
|
|
391
|
+
maxOutputTokens?: number;
|
|
392
|
+
/** Ordered list of messages in the conversation. */
|
|
393
|
+
messages: Message[];
|
|
394
|
+
/** Unix timestamp (ms) of the most recent activity. */
|
|
395
|
+
lastActivityDate: number;
|
|
396
|
+
/** Unix timestamp (ms) of the last save. */
|
|
397
|
+
updatedAt: number;
|
|
398
|
+
/** Add-on IDs enabled for this conversation. */
|
|
399
|
+
selectedAddons: string[];
|
|
400
|
+
/** Override model ID used when an assistant model is selected. */
|
|
401
|
+
assistantModelId: string;
|
|
402
|
+
/** Response format used when rendering messages. */
|
|
403
|
+
responseFormat?: ResponseFormat;
|
|
404
|
+
/** Open, feature-keyed container for conversation-level view state. This change owns only the `annotations` key; any other key is opaque and preserved as-is. */
|
|
405
|
+
customViewState?: Record<string, unknown>;
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/models/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,C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AW,YAAY;IAC3B,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACtB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,oJAAoJ;IACpJ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,uDAAuD;IACvD,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,iKAAiK;IACjK,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Filter tab identifier; also used as conversation source and group key. */
|
|
2
|
+
export declare enum FilterTab {
|
|
3
|
+
All = "all",
|
|
4
|
+
Pinned = "pinned",
|
|
5
|
+
MyChats = "my-chats",
|
|
6
|
+
Shared = "shared",
|
|
7
|
+
Organization = "organization"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=conversation-classification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-classification.d.ts","sourceRoot":"","sources":["../../src/models/conversation-classification.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/** Lifecycle status of a queued export/import job. */
|
|
2
|
+
export declare enum ConversationTransferJobStatus {
|
|
3
|
+
InProgress = "inProgress",
|
|
4
|
+
Success = "success",
|
|
5
|
+
/** Delivered its file, but not everything the user asked for made it in. */
|
|
6
|
+
Warning = "warning",
|
|
7
|
+
Failed = "failed",
|
|
8
|
+
Canceled = "canceled"
|
|
9
|
+
}
|
|
10
|
+
/** Whether a transfer job's subject is a single named conversation or the whole history. */
|
|
11
|
+
export declare enum ConversationTransferSubjectKind {
|
|
12
|
+
Single = "single",
|
|
13
|
+
All = "all"
|
|
14
|
+
}
|
|
15
|
+
/** What a transfer job operates on — structured data, never pre-rendered translated text. */
|
|
16
|
+
export type ConversationTransferSubject = {
|
|
17
|
+
kind: ConversationTransferSubjectKind.Single;
|
|
18
|
+
/** The conversation's own name. */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Folder breadcrumb the conversation originated from, if nested. */
|
|
21
|
+
sourceBreadcrumb?: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: ConversationTransferSubjectKind.All;
|
|
24
|
+
};
|
|
25
|
+
/** Reason a transfer job failed. Translation-free; hosts map each member to their own copy. */
|
|
26
|
+
export declare enum ConversationTransferErrorCode {
|
|
27
|
+
Unauthorized = "unauthorized",
|
|
28
|
+
NotFound = "notFound",
|
|
29
|
+
UnsupportedFormat = "unsupportedFormat",
|
|
30
|
+
MissingBucket = "missingBucket",
|
|
31
|
+
FileTooLarge = "fileTooLarge",
|
|
32
|
+
Unknown = "unknown"
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Reason a transfer job completed with a non-fatal warning. Translation-free;
|
|
36
|
+
* hosts map each member to their own copy.
|
|
37
|
+
*/
|
|
38
|
+
export declare enum ConversationTransferWarningCode {
|
|
39
|
+
AttachmentSkipped = "attachmentSkipped"
|
|
40
|
+
}
|
|
41
|
+
/** What one unit of a transfer job's discoverable work represents. */
|
|
42
|
+
export declare enum ConversationTransferUnitKind {
|
|
43
|
+
Attachment = "attachment",
|
|
44
|
+
Conversation = "conversation"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Countable progress within the phase a job is currently working through —
|
|
48
|
+
* downloaded/uploaded attachments, or fetched/saved conversations. Describes
|
|
49
|
+
* only that phase, never the job as a whole.
|
|
50
|
+
*/
|
|
51
|
+
export interface ConversationTransferProgressUnits {
|
|
52
|
+
/** Units settled so far in the current phase. */
|
|
53
|
+
completed: number;
|
|
54
|
+
/** Units the current phase will settle in total. */
|
|
55
|
+
total: number;
|
|
56
|
+
/** What a unit represents. */
|
|
57
|
+
kind: ConversationTransferUnitKind;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A transfer job's completion, always determinate — there is no indeterminate
|
|
61
|
+
* state, so a job is renderable as a real percentage from its first frame.
|
|
62
|
+
*/
|
|
63
|
+
export interface ConversationTransferProgress {
|
|
64
|
+
/**
|
|
65
|
+
* Completion as an integer 0–100. Monotonically non-decreasing for the life
|
|
66
|
+
* of a job id: a write that would lower it is discarded rather than applied,
|
|
67
|
+
* so a discovered unit count can subdivide the work still to do but can
|
|
68
|
+
* never move the indicator backwards.
|
|
69
|
+
*/
|
|
70
|
+
percent: number;
|
|
71
|
+
/**
|
|
72
|
+
* Readout for the phase currently advancing, for assistive technology.
|
|
73
|
+
* Absent while the phase's unit count is unknown.
|
|
74
|
+
*/
|
|
75
|
+
units?: ConversationTransferProgressUnits;
|
|
76
|
+
}
|
|
77
|
+
/** A queued export or import job. */
|
|
78
|
+
export interface ConversationTransferJob {
|
|
79
|
+
id: string;
|
|
80
|
+
subject: ConversationTransferSubject;
|
|
81
|
+
status: ConversationTransferJobStatus;
|
|
82
|
+
/** Name of the file this job writes (export) or reads (import), known at enqueue time. */
|
|
83
|
+
fileName: string;
|
|
84
|
+
/** Determinate completion of this job. */
|
|
85
|
+
progress: ConversationTransferProgress;
|
|
86
|
+
/** Why the job failed. Set only alongside {@link ConversationTransferJobStatus.Failed}. */
|
|
87
|
+
errorCode?: ConversationTransferErrorCode;
|
|
88
|
+
/**
|
|
89
|
+
* What was incomplete about an otherwise-delivered job. Set only alongside
|
|
90
|
+
* {@link ConversationTransferJobStatus.Warning}.
|
|
91
|
+
*/
|
|
92
|
+
warningCode?: ConversationTransferWarningCode;
|
|
93
|
+
/** Untranslated names of skipped attachments, when available for this warning. */
|
|
94
|
+
warningNames?: string[];
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=conversation-transfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-transfer.d.ts","sourceRoot":"","sources":["../../src/models/conversation-transfer.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oBAAY,6BAA6B;IACvC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,4EAA4E;IAC5E,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,4FAA4F;AAC5F,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,6FAA6F;AAC7F,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAC7C,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,+BAA+B,CAAC,GAAG,CAAA;CAAE,CAAC;AAElD,+FAA+F;AAC/F,oBAAY,6BAA6B;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,OAAO,YAAY;CACpB;AAED;;;GAGG;AACH,oBAAY,+BAA+B;IACzC,iBAAiB,sBAAsB;CACxC;AAED,sEAAsE;AACtE,oBAAY,4BAA4B;IACtC,UA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