@epam/ai-dial-chat-shared 1.1.0-dev.423 → 1.1.0-dev.426
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/CopyButton/CopyButton.js +31 -0
- package/components/DeploymentIcon/DeploymentIcon.js +62 -0
- package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -0
- package/components/EntityHeader/EntityHeader.js +47 -0
- package/components/EntityTypeLabel/EntityTypeLabel.js +10 -0
- package/components/FeaturedChip/FeaturedChip.js +17 -0
- package/components/InitialsAvatar/InitialsAvatar.js +29 -0
- package/components/InitialsAvatar/InitialsAvatar.module.scss.js +6 -0
- package/components/ItemHeader/ItemHeader.js +35 -0
- package/components/ItemHeader/ItemHeader.module.scss.js +6 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +104 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +10 -0
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.js +71 -0
- package/components/MarkdownRenderer/MDMessageViewer.js +22 -0
- package/components/MarkdownRenderer/MarkdownRenderer.js +280 -0
- package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +11 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +24 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +6 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +77 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -0
- package/components/MarkdownRenderer/Table/TableHeader.js +30 -0
- package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -0
- package/components/MarkdownRenderer/Table/table-serialization.js +6 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +66 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.js +12 -0
- package/components/MarkdownRenderer/markdown-class-names.js +23 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js +18 -0
- package/components/PanelEmptyState/PanelEmptyState.js +24 -0
- package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -0
- package/components/ResourceSummary/ResourceSummary.js +34 -0
- package/components/ResourceSummary/ResourceSummary.module.scss.js +6 -0
- package/constants/dial.js +4 -0
- package/constants/entity-colors.js +17 -0
- package/constants/icon.js +13 -0
- package/constants/mime-types.js +99 -0
- package/constants/resizable-fields.js +4 -0
- package/constants/tag-input.js +4 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +299 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +93 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +36 -0
- package/file-manager/UploadProgressModal/UploadProgressModal.js +56 -0
- package/file-manager/file-manager-variant.js +8 -0
- package/file-manager/path.js +7 -0
- package/file-manager/upload-batch.js +6 -0
- package/file-manager/useGridEditingScroll/useGridEditingScroll.js +45 -0
- package/file-manager.d.ts +461 -0
- package/file-manager.js +2 -1
- package/hooks/useCodeCopy.js +20 -0
- package/hooks/useCollapsedText.js +38 -0
- package/hooks/useHorizontalOverflow.js +25 -0
- package/hooks/useIsMobile.js +12 -0
- package/hooks/useStreamedMarkdownContent.js +32 -0
- package/index.css +1 -1
- package/index.d.ts +2405 -62
- package/index.js +61 -16876
- package/markdown.d.ts +401 -0
- package/markdown.js +11 -0
- package/models/chat.js +14 -0
- package/models/conversation-classification.js +6 -0
- package/models/conversation-transfer.js +14 -0
- package/models/deployment-features.js +6 -0
- package/package.json +48 -3
- package/types/attachment.js +8 -0
- package/types/code-editor.js +6 -0
- package/types/entity-type.js +6 -0
- package/types/mime-type.js +8 -0
- package/utils/avatar-color.js +37 -0
- package/utils/build-css-vars.js +8 -0
- package/utils/copy-to-clipboard.js +69 -0
- package/utils/file-download.js +79 -0
- package/utils/format-file-size.js +4 -0
- package/utils/format-last-used.js +20 -0
- package/utils/format-price.js +18 -0
- package/utils/generate-uuid.js +7 -0
- package/utils/initials.js +7 -0
- package/utils/is-audio-transcription-supported.js +5 -0
- package/utils/latex.js +34 -0
- package/utils/merge-class.js +8 -0
- package/utils/message-attachment-to-display.js +31 -0
- package/utils/message.js +5 -0
- package/utils/mime-type.js +73 -0
- package/utils/prompt-variables.js +42 -0
- package/utils/string-utils.js +14 -0
- package/FileManagerAttachModal-rkWJ1bqK.js +0 -512
- package/components/CopyButton/CopyButton.d.ts +0 -17
- package/components/CopyButton/CopyButton.d.ts.map +0 -1
- package/components/DeploymentIcon/DeploymentIcon.d.ts +0 -36
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +0 -1
- package/components/EntityHeader/EntityHeader.d.ts +0 -34
- package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
- package/components/FeaturedChip/FeaturedChip.d.ts +0 -14
- package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
- package/components/InitialsAvatar/InitialsAvatar.d.ts +0 -15
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +0 -1
- package/components/ItemHeader/ItemHeader.d.ts +0 -36
- package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +0 -53
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +0 -1
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +0 -7
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +0 -1
- package/components/MarkdownRenderer/MDMessageViewer.d.ts +0 -51
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +0 -1
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +0 -140
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +0 -18
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +0 -49
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/TableHeader.d.ts +0 -22
- package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/table-serialization.d.ts +0 -19
- package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +0 -27
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +0 -1
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +0 -9
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +0 -1
- package/components/MarkdownRenderer/markdown-class-names.d.ts +0 -10
- package/components/MarkdownRenderer/markdown-class-names.d.ts.map +0 -1
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +0 -15
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +0 -1
- package/components/PanelEmptyState/PanelEmptyState.d.ts +0 -24
- package/components/PanelEmptyState/PanelEmptyState.d.ts.map +0 -1
- package/components/ResourceSummary/ResourceSummary.d.ts +0 -49
- package/components/ResourceSummary/ResourceSummary.d.ts.map +0 -1
- package/constants/dial.d.ts +0 -3
- package/constants/dial.d.ts.map +0 -1
- package/constants/entity-colors.d.ts +0 -6
- package/constants/entity-colors.d.ts.map +0 -1
- package/constants/icon.d.ts +0 -14
- package/constants/icon.d.ts.map +0 -1
- package/constants/mime-types.d.ts +0 -13
- package/constants/mime-types.d.ts.map +0 -1
- package/constants/resizable-fields.d.ts +0 -3
- package/constants/resizable-fields.d.ts.map +0 -1
- package/constants/tag-input.d.ts +0 -2
- package/constants/tag-input.d.ts.map +0 -1
- package/entry-points/file-manager.d.ts +0 -4
- package/entry-points/file-manager.d.ts.map +0 -1
- package/esm-CopgoDht.js +0 -16197
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +0 -49
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +0 -1
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +0 -89
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +0 -1
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +0 -17
- package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +0 -1
- package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +0 -20
- package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +0 -1
- package/file-manager/attach-result.d.ts +0 -9
- package/file-manager/attach-result.d.ts.map +0 -1
- package/file-manager/file-manager-controller.d.ts +0 -117
- package/file-manager/file-manager-controller.d.ts.map +0 -1
- package/file-manager/file-manager-variant.d.ts +0 -21
- package/file-manager/file-manager-variant.d.ts.map +0 -1
- package/file-manager/file-upload-validation.d.ts +0 -8
- package/file-manager/file-upload-validation.d.ts.map +0 -1
- package/file-manager/index.d.ts +0 -13
- package/file-manager/index.d.ts.map +0 -1
- package/file-manager/labels.d.ts +0 -137
- package/file-manager/labels.d.ts.map +0 -1
- package/file-manager/path.d.ts +0 -12
- package/file-manager/path.d.ts.map +0 -1
- package/file-manager/upload-batch.d.ts +0 -27
- package/file-manager/upload-batch.d.ts.map +0 -1
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +0 -27
- package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +0 -1
- package/hooks/useCodeCopy.d.ts +0 -6
- package/hooks/useCodeCopy.d.ts.map +0 -1
- package/hooks/useCollapsedText.d.ts +0 -27
- package/hooks/useCollapsedText.d.ts.map +0 -1
- package/hooks/useHorizontalOverflow.d.ts +0 -21
- package/hooks/useHorizontalOverflow.d.ts.map +0 -1
- package/hooks/useIsMobile.d.ts +0 -3
- package/hooks/useIsMobile.d.ts.map +0 -1
- package/hooks/useStreamedMarkdownContent.d.ts +0 -3
- package/hooks/useStreamedMarkdownContent.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/index.dom-BKBT_wVu.js +0 -10
- package/lib-CglXTr1t.js +0 -1234
- package/models/annotation.d.ts +0 -87
- package/models/annotation.d.ts.map +0 -1
- package/models/auth.d.ts +0 -26
- package/models/auth.d.ts.map +0 -1
- package/models/chat.d.ts +0 -347
- package/models/chat.d.ts.map +0 -1
- package/models/conversation-classification.d.ts +0 -9
- package/models/conversation-classification.d.ts.map +0 -1
- package/models/conversation-transfer.d.ts +0 -94
- package/models/conversation-transfer.d.ts.map +0 -1
- package/models/custom-visualizer.d.ts +0 -61
- package/models/custom-visualizer.d.ts.map +0 -1
- package/models/deployment-configuration.d.ts +0 -55
- package/models/deployment-configuration.d.ts.map +0 -1
- package/models/deployment-features.d.ts +0 -17
- package/models/deployment-features.d.ts.map +0 -1
- package/models/deployment.d.ts +0 -31
- package/models/deployment.d.ts.map +0 -1
- package/models/dial-model.d.ts +0 -19
- package/models/dial-model.d.ts.map +0 -1
- package/models/entity.d.ts +0 -15
- package/models/entity.d.ts.map +0 -1
- package/models/import-export.d.ts +0 -23
- package/models/import-export.d.ts.map +0 -1
- package/models/theme.d.ts +0 -36
- package/models/theme.d.ts.map +0 -1
- package/models/tool-menu-item.d.ts +0 -13
- package/models/tool-menu-item.d.ts.map +0 -1
- package/rehype-katex-Da1z0EAE.js +0 -22235
- package/types/attachment.d.ts +0 -23
- package/types/attachment.d.ts.map +0 -1
- package/types/code-editor.d.ts +0 -8
- package/types/code-editor.d.ts.map +0 -1
- package/types/entity-type.d.ts +0 -10
- package/types/entity-type.d.ts.map +0 -1
- package/types/mime-type.d.ts +0 -59
- package/types/mime-type.d.ts.map +0 -1
- package/utils/avatar-color.d.ts +0 -10
- package/utils/avatar-color.d.ts.map +0 -1
- package/utils/build-css-vars.d.ts +0 -4
- package/utils/build-css-vars.d.ts.map +0 -1
- package/utils/copy-to-clipboard.d.ts +0 -18
- package/utils/copy-to-clipboard.d.ts.map +0 -1
- package/utils/file-download.d.ts +0 -21
- package/utils/file-download.d.ts.map +0 -1
- package/utils/format-file-size.d.ts +0 -3
- package/utils/format-file-size.d.ts.map +0 -1
- package/utils/format-last-used.d.ts +0 -3
- package/utils/format-last-used.d.ts.map +0 -1
- package/utils/format-price.d.ts +0 -7
- package/utils/format-price.d.ts.map +0 -1
- package/utils/generate-uuid.d.ts +0 -3
- package/utils/generate-uuid.d.ts.map +0 -1
- package/utils/initials.d.ts +0 -3
- package/utils/initials.d.ts.map +0 -1
- package/utils/is-audio-transcription-supported.d.ts +0 -3
- package/utils/is-audio-transcription-supported.d.ts.map +0 -1
- package/utils/latex.d.ts +0 -11
- package/utils/latex.d.ts.map +0 -1
- package/utils/merge-class.d.ts +0 -4
- package/utils/merge-class.d.ts.map +0 -1
- package/utils/message-attachment-to-display.d.ts +0 -22
- package/utils/message-attachment-to-display.d.ts.map +0 -1
- package/utils/message.d.ts +0 -4
- package/utils/message.d.ts.map +0 -1
- package/utils/mime-type.d.ts +0 -13
- package/utils/mime-type.d.ts.map +0 -1
- package/utils/prompt-variables.d.ts +0 -38
- package/utils/prompt-variables.d.ts.map +0 -1
- package/utils/string-utils.d.ts +0 -11
- package/utils/string-utils.d.ts.map +0 -1
- package/web-namespaces-BJylbtYz.js +0 -95
package/models/annotation.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/** Selector that targets a character range in a text string. All indices are inclusive. */
|
|
2
|
-
export interface TextCharacterRangeSelector {
|
|
3
|
-
/** Discriminator — always `'text_character_range'`. */
|
|
4
|
-
type: 'text_character_range';
|
|
5
|
-
/** Zero-based start index (inclusive). */
|
|
6
|
-
start: number;
|
|
7
|
-
/** Zero-based end index (inclusive). */
|
|
8
|
-
end: number;
|
|
9
|
-
}
|
|
10
|
-
/** Selector that targets an axis-aligned bounding box on a specific PDF page. */
|
|
11
|
-
export interface PdfBBoxSelector {
|
|
12
|
-
/** Discriminator — always `'pdf_bbox'`. */
|
|
13
|
-
type: 'pdf_bbox';
|
|
14
|
-
/** 1-based PDF page number. */
|
|
15
|
-
page: number;
|
|
16
|
-
/** Left edge coordinate. */
|
|
17
|
-
x1: number;
|
|
18
|
-
/** Top edge coordinate. */
|
|
19
|
-
y1: number;
|
|
20
|
-
/** Right edge coordinate. */
|
|
21
|
-
x2: number;
|
|
22
|
-
/** Bottom edge coordinate. */
|
|
23
|
-
y2: number;
|
|
24
|
-
}
|
|
25
|
-
/** Selector that targets a paired inline tag (e.g. `<cit data-id="…"></cit>`) by its `id` value. */
|
|
26
|
-
export interface HtmlTagSelector {
|
|
27
|
-
/** Discriminator — always `'html_tag'`. */
|
|
28
|
-
type: 'html_tag';
|
|
29
|
-
/** The tag name (e.g. `'cit'`). */
|
|
30
|
-
tag: string;
|
|
31
|
-
/** Matches the tag's `data-id` attribute value in the message text, used to associate this selector with its rendered position. */
|
|
32
|
-
id: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Discriminated union of all recognised annotation selector shapes.
|
|
36
|
-
* Unknown selector types are preserved as an open record to allow forward-compatibility.
|
|
37
|
-
*/
|
|
38
|
-
export type AnnotationSelector = TextCharacterRangeSelector | PdfBBoxSelector | HtmlTagSelector | {
|
|
39
|
-
type: string;
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
/** Identifies the part of the message (or a related resource) that the annotation refers to. */
|
|
43
|
-
export interface AnnotationTarget {
|
|
44
|
-
/** Source resource being targeted. `null` or absent means the first content part of the response. */
|
|
45
|
-
source?: unknown;
|
|
46
|
-
/** Character-range or document-region selector within the targeted source. */
|
|
47
|
-
selector?: AnnotationSelector;
|
|
48
|
-
}
|
|
49
|
-
/** A file attachment referenced by a citation — same shape as `MessageAttachment` but scoped to annotations. */
|
|
50
|
-
export interface AttachmentResource {
|
|
51
|
-
/** MIME type of the attached file (e.g. `'application/pdf'`). */
|
|
52
|
-
type: string;
|
|
53
|
-
/** Remote URL pointing to the file content. */
|
|
54
|
-
url: string;
|
|
55
|
-
/** Human-readable display name for the file. Used in citation markers. */
|
|
56
|
-
title?: string;
|
|
57
|
-
}
|
|
58
|
-
/** Identifies the cited document attached to the annotation. */
|
|
59
|
-
export interface AnnotationSource {
|
|
60
|
-
/** Always `'attachment'` for file-based sources. */
|
|
61
|
-
type: 'attachment';
|
|
62
|
-
/** The cited file — auto-shared by DIAL Core so the recipient can access it. */
|
|
63
|
-
attachment: AttachmentResource;
|
|
64
|
-
}
|
|
65
|
-
/** Payload of the annotation: the cited text excerpt, its source document, and optional styling hints. */
|
|
66
|
-
export interface AnnotationBody {
|
|
67
|
-
/** Human-readable title of the cited section or document. */
|
|
68
|
-
title?: string;
|
|
69
|
-
/** The literal text excerpt being cited. */
|
|
70
|
-
quote?: string;
|
|
71
|
-
/** The cited source document (present when the annotation references a file). */
|
|
72
|
-
source?: AnnotationSource;
|
|
73
|
-
/** Selectors pointing to the cited region within the source document. */
|
|
74
|
-
selector?: AnnotationSelector | AnnotationSelector[];
|
|
75
|
-
/** Client-defined styling hints (e.g. highlight color). Treated as open-ended; unknown keys are preserved. */
|
|
76
|
-
configuration?: Record<string, unknown>;
|
|
77
|
-
}
|
|
78
|
-
/** A single annotation attached to an assistant message, optionally citing a source document. */
|
|
79
|
-
export interface Annotation {
|
|
80
|
-
/** Zero-based position in the annotation list; used to merge streaming delta updates. */
|
|
81
|
-
index?: number;
|
|
82
|
-
/** Which part of the message text (or a request resource) is annotated. */
|
|
83
|
-
target?: AnnotationTarget;
|
|
84
|
-
/** The annotation payload: quoted text, source document, and optional styling. */
|
|
85
|
-
body?: AnnotationBody;
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=annotation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/models/annotation.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,IAAI,EAAE,sBAAsB,CAAC;IAC7B,0CAA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AED,0GAA0G;AAC1G,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IACrD,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,iGAAiG;AACjG,MAAM,WAAW,UAAU;IACzB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,kFAAkF;IAClF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB"}
|
package/models/auth.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
package/models/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
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
|
-
/** Permitted scalar/array types for a single form field value. */
|
|
51
|
-
export type MessageFormValueType = number | string | boolean | string[];
|
|
52
|
-
/** Key-value map of field identifiers to form field values, submitted from an embedded form widget. */
|
|
53
|
-
export type MessageFormValue = Record<string, MessageFormValueType | undefined>;
|
|
54
|
-
/** Discriminator values for `StatusMessageCustomContent.event_type`. */
|
|
55
|
-
export declare enum StatusEvent {
|
|
56
|
-
ModelChanged = "model_changed"
|
|
57
|
-
}
|
|
58
|
-
/** Extra payload attached to a `MessageRole.Status` message. */
|
|
59
|
-
export interface StatusMessageCustomContent {
|
|
60
|
-
/** Machine-readable event discriminator. */
|
|
61
|
-
event_type: StatusEvent;
|
|
62
|
-
/** ID of the deployment that was active before the change, or `null` for the first selection. */
|
|
63
|
-
previous_deployment_id: string | null;
|
|
64
|
-
/** ID of the deployment selected after the change. */
|
|
65
|
-
new_deployment_id: string;
|
|
66
|
-
}
|
|
67
|
-
/** Extra DIAL API payload attached to a message. */
|
|
68
|
-
export interface MessageCustomContent {
|
|
69
|
-
/** Files or media items associated with this message. */
|
|
70
|
-
attachments?: MessageAttachment[];
|
|
71
|
-
/** Annotations produced by the model, each optionally citing a source document. */
|
|
72
|
-
annotations?: Annotation[];
|
|
73
|
-
/** Form field values submitted via an embedded form widget. */
|
|
74
|
-
form_value?: MessageFormValue;
|
|
75
|
-
/**
|
|
76
|
-
* JSON Schema for a button/form widget embedded in an assistant response.
|
|
77
|
-
* Populated from the streaming delta's `custom_content.form_schema`.
|
|
78
|
-
*/
|
|
79
|
-
form_schema?: DeploymentConfigurationSchema;
|
|
80
|
-
/**
|
|
81
|
-
* Configuration value submitted with the next user turn when a button is selected.
|
|
82
|
-
* Keys match the `propertyKey` from the `form_schema` (e.g. `{ button: 3 }`).
|
|
83
|
-
*/
|
|
84
|
-
configuration_value?: Record<string, unknown>;
|
|
85
|
-
/** Accumulated agent execution stages streamed via `custom_content.stages`. */
|
|
86
|
-
stages?: Stage[];
|
|
87
|
-
/**
|
|
88
|
-
* Opaque app-managed state echoed back verbatim on the next turn, per the DIAL
|
|
89
|
-
* stateful-app contract. Overwritten (not merged) by each new streaming delta.
|
|
90
|
-
*/
|
|
91
|
-
state?: Record<string, unknown>;
|
|
92
|
-
}
|
|
93
|
-
/** A single message in a conversation. */
|
|
94
|
-
export interface Message {
|
|
95
|
-
/** Who authored the message. */
|
|
96
|
-
role: MessageRole;
|
|
97
|
-
/** Plain-text (or Markdown) message body. */
|
|
98
|
-
content: string;
|
|
99
|
-
/** ISO-8601 timestamp of when the message was created. */
|
|
100
|
-
timestamp: string;
|
|
101
|
-
/** DIAL Core response identifier used for the rate API. Present on the final chunk. */
|
|
102
|
-
responseId?: string;
|
|
103
|
-
/** Extra DIAL API payload; present on user requests and assistant responses. */
|
|
104
|
-
custom_content?: MessageCustomContent;
|
|
105
|
-
/** User-submitted rating for this message. */
|
|
106
|
-
rating?: MessageRating;
|
|
107
|
-
/** Deployment ID on `MessageRole.Assistant` and `MessageRole.Status` messages. */
|
|
108
|
-
deploymentId?: string;
|
|
109
|
-
streamErrorMessage?: string;
|
|
110
|
-
/** Allows extra SDK-level properties to pass through when serializing to DIAL Core. */
|
|
111
|
-
[key: string]: unknown;
|
|
112
|
-
}
|
|
113
|
-
/** In-conversation system event message, always with `role: MessageRole.Status`. */
|
|
114
|
-
export interface StatusMessage extends Omit<Message, 'role' | 'custom_content'> {
|
|
115
|
-
/** Always `MessageRole.Status` for status messages. */
|
|
116
|
-
role: MessageRole.Status;
|
|
117
|
-
/** Status event payload. */
|
|
118
|
-
custom_content?: StatusMessageCustomContent;
|
|
119
|
-
}
|
|
120
|
-
/** A single agent execution stage produced during a streaming response. */
|
|
121
|
-
export interface Stage {
|
|
122
|
-
/** Zero-based ordering key; used to merge/upsert incoming stage updates. */
|
|
123
|
-
index: number;
|
|
124
|
-
/** Human-readable label for this stage (e.g. `"Lookup available terms"`). */
|
|
125
|
-
name: string;
|
|
126
|
-
/** `null` while the stage is running; a `StageStatus` value when it has settled. */
|
|
127
|
-
status: StageStatus | null;
|
|
128
|
-
/** Additional text content for this stage, accumulated from streaming chunks. */
|
|
129
|
-
content?: string;
|
|
130
|
-
/** File or content attachments associated with this stage. */
|
|
131
|
-
attachments?: MessageAttachment[];
|
|
132
|
-
/**
|
|
133
|
-
* Short source/category label shown beside the step name (e.g. `"MCP"`).
|
|
134
|
-
* Rendered only when present — never inferred from `name`.
|
|
135
|
-
*/
|
|
136
|
-
tag?: string;
|
|
137
|
-
}
|
|
138
|
-
/** A single LangChain-style tool-call request emitted by the model, present on a `ToolStateMessage` with `type: 'ai'`. */
|
|
139
|
-
export interface ToolCallRequest {
|
|
140
|
-
/** Name of the tool being called. */
|
|
141
|
-
name: string;
|
|
142
|
-
/** Arguments passed to the tool call. */
|
|
143
|
-
args: Record<string, unknown>;
|
|
144
|
-
/** Correlates this call to its result message via that message's `tool_call_id`. */
|
|
145
|
-
id: string;
|
|
146
|
-
}
|
|
147
|
-
/** One entry in `custom_content.state.tool_messages` — either the model's tool-call request or the tool's result. */
|
|
148
|
-
export interface ToolStateMessage {
|
|
149
|
-
/** LangChain message type: `'ai'` for the request, `'tool'` for the result. */
|
|
150
|
-
type: string;
|
|
151
|
-
/** Present on `type: 'tool'` result messages — the tool's own name. */
|
|
152
|
-
name?: string;
|
|
153
|
-
/** Present on `type: 'ai'` messages that requested one or more tool calls. */
|
|
154
|
-
tool_calls?: ToolCallRequest[];
|
|
155
|
-
/** Present on `type: 'tool'` result messages — correlates to the request's `id`. */
|
|
156
|
-
tool_call_id?: string;
|
|
157
|
-
/** Text content — the tool's result body on `type: 'tool'` messages. */
|
|
158
|
-
content?: string;
|
|
159
|
-
}
|
|
160
|
-
/** A single OpenAI-style tool-call request, present on a `ToolExecutionHistoryMessage` with `role: 'assistant'`. */
|
|
161
|
-
export interface OpenAiToolCall {
|
|
162
|
-
/** Correlates this call to its result message via that message's `tool_call_id`. */
|
|
163
|
-
id: string;
|
|
164
|
-
/** Always `'function'` for a tool call. */
|
|
165
|
-
type: string;
|
|
166
|
-
/** The invoked function's name and raw (unparsed) JSON-encoded arguments. */
|
|
167
|
-
function: {
|
|
168
|
-
name: string;
|
|
169
|
-
/** JSON-encoded arguments object — parse before use. */
|
|
170
|
-
arguments: string;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
/** 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). */
|
|
174
|
-
export interface ToolExecutionHistoryMessage {
|
|
175
|
-
/** `'assistant'` for the request, `'tool'` for the result. */
|
|
176
|
-
role: string;
|
|
177
|
-
/** Present on `role: 'assistant'` messages that requested one or more tool calls. */
|
|
178
|
-
tool_calls?: OpenAiToolCall[];
|
|
179
|
-
/** Present on `role: 'tool'` result messages — correlates to the request's `id`. */
|
|
180
|
-
tool_call_id?: string;
|
|
181
|
-
/** Text content — the tool's result body on `role: 'tool'` messages. */
|
|
182
|
-
content?: string;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Orchestrator-specific execution state, kept wire-verbatim snake_case like
|
|
186
|
-
* every other pass-through field under `custom_content` (e.g. `stages`) —
|
|
187
|
-
* not part of any standard DIAL Core contract. Different orchestrators emit
|
|
188
|
-
* different shapes: `tool_messages` (LangChain-style) is known from the
|
|
189
|
-
* StatGPT agent, gated behind its own `show_debug_stages` flag;
|
|
190
|
-
* `tool_execution_history` (OpenAI chat-completion-style) is known from a
|
|
191
|
-
* different agent. Both are optional and independent — a given orchestrator
|
|
192
|
-
* emits at most one of them.
|
|
193
|
-
*/
|
|
194
|
-
export interface MessageState {
|
|
195
|
-
/** The model's tool-call requests and their results for this turn, LangChain-style. */
|
|
196
|
-
tool_messages?: ToolStateMessage[];
|
|
197
|
-
/** The model's tool-call requests and their results for this turn, OpenAI chat-completion-style. */
|
|
198
|
-
tool_execution_history?: ToolExecutionHistoryMessage[];
|
|
199
|
-
}
|
|
200
|
-
/** Incremental content delta inside a streaming SSE chunk. */
|
|
201
|
-
export interface StreamChunkDelta {
|
|
202
|
-
/** Partial text token appended to the assistant message. */
|
|
203
|
-
content?: string;
|
|
204
|
-
/** Role field — only present in the first chunk of a response. */
|
|
205
|
-
role?: string;
|
|
206
|
-
/** DIAL Core response identifier used for the rate API. Present on the final chunk. */
|
|
207
|
-
responseId?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Partial custom content carried in this chunk.
|
|
210
|
-
* `form_schema`, `attachments`, and `stages` may arrive in separate chunks or together in the final chunk.
|
|
211
|
-
*/
|
|
212
|
-
custom_content?: {
|
|
213
|
-
/** Incremental stage updates; merge by `index` into the accumulating stage list. */
|
|
214
|
-
stages?: Stage[];
|
|
215
|
-
/** JSON Schema for a button/form widget; arrives once the model decides to embed a form. */
|
|
216
|
-
form_schema?: DeploymentConfigurationSchema;
|
|
217
|
-
/** AI-generated files produced by the model; typically present in the final chunk. */
|
|
218
|
-
attachments?: MessageAttachment[];
|
|
219
|
-
/** Partial annotation updates; merge by `index` into the accumulating annotation list. */
|
|
220
|
-
annotations?: Annotation[];
|
|
221
|
-
/** Opaque app-managed state for the DIAL stateful-app contract; overwrites any previous value. */
|
|
222
|
-
state?: Record<string, unknown>;
|
|
223
|
-
};
|
|
224
|
-
/** Raw custom fields in the DIAL wire format. */
|
|
225
|
-
custom_fields?: {
|
|
226
|
-
/** Raw annotations in the DIAL wire format; must be normalized before use. */
|
|
227
|
-
annotations?: unknown[];
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
/** A single server-sent event chunk from the streaming completions endpoint. */
|
|
231
|
-
export interface StreamChunk {
|
|
232
|
-
/** Unique identifier for the completion stream. */
|
|
233
|
-
id: string;
|
|
234
|
-
/** Discriminator — always `'chat.completion.chunk'` for streaming responses. */
|
|
235
|
-
object: 'chat.completion.chunk';
|
|
236
|
-
/** One choice per requested completion (usually one entry). */
|
|
237
|
-
choices: Array<{
|
|
238
|
-
/** Partial token delta for this chunk. */
|
|
239
|
-
delta: StreamChunkDelta;
|
|
240
|
-
/** Set to a non-null string (e.g. `'stop'`) when the stream ends. */
|
|
241
|
-
finish_reason: string | null;
|
|
242
|
-
/** Zero-based index of this choice. */
|
|
243
|
-
index: number;
|
|
244
|
-
}>;
|
|
245
|
-
/**
|
|
246
|
-
* Present when DIAL Core signals an error inside the SSE stream instead of
|
|
247
|
-
* (or in addition to) a non-2xx HTTP status.
|
|
248
|
-
*/
|
|
249
|
-
error?: {
|
|
250
|
-
/** Human-readable error description. */
|
|
251
|
-
message: string;
|
|
252
|
-
/** Machine-readable error category (e.g. `'invalid_request_error'`). */
|
|
253
|
-
type?: string;
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
/** Generic async-operation status, reusable for any request lifecycle. */
|
|
257
|
-
export declare enum RequestStatus {
|
|
258
|
-
/** No request has been made yet. */
|
|
259
|
-
Idle = "idle",
|
|
260
|
-
/** A request is in-flight. */
|
|
261
|
-
Loading = "loading",
|
|
262
|
-
/** The most recent request failed. */
|
|
263
|
-
Error = "error"
|
|
264
|
-
}
|
|
265
|
-
/** Represents a file or content item that can be displayed as an attachment. */
|
|
266
|
-
export interface DisplayAttachment {
|
|
267
|
-
/** Unique client-side identifier. */
|
|
268
|
-
id: string;
|
|
269
|
-
/** Display name (usually the original filename). */
|
|
270
|
-
name: string;
|
|
271
|
-
/** MIME type of the attachment (e.g. `'image/png'`, `'application/pdf'`). */
|
|
272
|
-
contentType: MIMEType | string;
|
|
273
|
-
/** Content category used to select the correct icon and thumbnail. */
|
|
274
|
-
type: AttachmentType;
|
|
275
|
-
/** Upload / processing lifecycle state. */
|
|
276
|
-
status: RequestStatus;
|
|
277
|
-
/** Reason the upload failed; only set when `status === RequestStatus.Error`. */
|
|
278
|
-
errorReason?: AttachmentErrorReason;
|
|
279
|
-
/** Object URL for image preview; only set when `type === AttachmentType.Image`. */
|
|
280
|
-
previewUrl?: string;
|
|
281
|
-
/** Resolved playback URL for audio; only set when `type === AttachmentType.Audio`. */
|
|
282
|
-
playUrl?: string;
|
|
283
|
-
/** Remote URL for an attachment that has already been uploaded. */
|
|
284
|
-
url?: string;
|
|
285
|
-
/** Alternate reference URL (e.g. from the DIAL API `reference_url` field); used when `url` is absent. */
|
|
286
|
-
referenceUrl?: string;
|
|
287
|
-
/** Inline base-64 encoded content; present when the attachment carries data directly rather than via a URL. */
|
|
288
|
-
data?: string;
|
|
289
|
-
}
|
|
290
|
-
/** Attachment selected locally by the user before it is sent to the backend. */
|
|
291
|
-
export interface Attachment extends DisplayAttachment {
|
|
292
|
-
/** The underlying browser `File` object selected by the user. */
|
|
293
|
-
file: File;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Attachment payload stored in message custom content.
|
|
297
|
-
* Used inside `Message.custom_content.attachments` for both user requests
|
|
298
|
-
* and assistant responses.
|
|
299
|
-
*/
|
|
300
|
-
export interface MessageAttachment {
|
|
301
|
-
/** Zero-based position in the attachment list. */
|
|
302
|
-
index?: number;
|
|
303
|
-
/** MIME type of the attachment content. May be absent in streamed runtime payloads. */
|
|
304
|
-
type?: MIMEType | string;
|
|
305
|
-
/** Display name shown in the UI. */
|
|
306
|
-
title: string;
|
|
307
|
-
/** Inline base-64 encoded content (mutually exclusive with `url`). */
|
|
308
|
-
data?: string;
|
|
309
|
-
/** Remote URL pointing to the attachment content. */
|
|
310
|
-
url?: string;
|
|
311
|
-
/** MIME type of the referenced resource (used with `reference_url`). */
|
|
312
|
-
reference_type?: MIMEType | string;
|
|
313
|
-
/** URL of an alternate reference resource (e.g. a download link). */
|
|
314
|
-
reference_url?: string;
|
|
315
|
-
}
|
|
316
|
-
/** A full conversation including its messages and configuration. */
|
|
317
|
-
export interface Conversation {
|
|
318
|
-
/** Unique conversation identifier. */
|
|
319
|
-
id: string;
|
|
320
|
-
/** Identifier of the folder this conversation lives in. */
|
|
321
|
-
folderId: string;
|
|
322
|
-
/** Human-readable conversation title. */
|
|
323
|
-
name: string;
|
|
324
|
-
/** The AI model used for this conversation. */
|
|
325
|
-
model: {
|
|
326
|
-
id: string;
|
|
327
|
-
};
|
|
328
|
-
/** System prompt prepended to every request. */
|
|
329
|
-
prompt: string;
|
|
330
|
-
/** Sampling temperature passed to the model (0–1). */
|
|
331
|
-
temperature: number;
|
|
332
|
-
/** Optional Responses-API output-token cap, forwarded as `max_output_tokens`. Never derived from deployment limits or Chat Completions defaults. */
|
|
333
|
-
maxOutputTokens?: number;
|
|
334
|
-
/** Ordered list of messages in the conversation. */
|
|
335
|
-
messages: Message[];
|
|
336
|
-
/** Unix timestamp (ms) of the most recent activity. */
|
|
337
|
-
lastActivityDate: number;
|
|
338
|
-
/** Unix timestamp (ms) of the last save. */
|
|
339
|
-
updatedAt: number;
|
|
340
|
-
/** Add-on IDs enabled for this conversation. */
|
|
341
|
-
selectedAddons: string[];
|
|
342
|
-
/** Override model ID used when an assistant model is selected. */
|
|
343
|
-
assistantModelId: string;
|
|
344
|
-
/** Response format used when rendering messages. */
|
|
345
|
-
responseFormat?: ResponseFormat;
|
|
346
|
-
}
|
|
347
|
-
//# sourceMappingURL=chat.d.ts.map
|
package/models/chat.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,CAAC;AAC/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,8FAA8F;AAC9F,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,GAAG,EAAE,MAAM,CAAC;IACZ,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;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zC,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;CACjC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,94 +0,0 @@
|
|
|
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
|
-
}
|
|
94
|
-
//# sourceMappingURL=conversation-transfer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,iCAAiC,CAAC;CAC3C;AAED,qCAAqC;AACrC,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;IACtC,0FAA0F;IAC1F,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,EAAE,4BAA4B,CAAC;IACvC,2FAA2F;IAC3F,SAAS,CAAC,EAAE,6BAA6B,CAAC;IAC1C;;;OAGG;IACH,WAAW,CAAC,EAAE,+BAA+B,CAAC;CAC/C"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single MIME → visualizer mapping from the `CUSTOM_VISUALIZERS` registry.
|
|
3
|
-
* Field semantics are fixed by already-deployed visualizer applications and
|
|
4
|
-
* operator configurations — see `design.md` D9/D10 in the
|
|
5
|
-
* `add-custom-visualizers` change for why `title` is required and
|
|
6
|
-
* `contentType` accepts a comma-separated list.
|
|
7
|
-
*/
|
|
8
|
-
export interface CustomVisualizer {
|
|
9
|
-
/**
|
|
10
|
-
* The postMessage protocol namespace, NOT a display label. Every message
|
|
11
|
-
* exchanged with the iframe is prefixed `${title}/…`, and the iframe-side
|
|
12
|
-
* visualizer application must be constructed with this identical string
|
|
13
|
-
* as its `appName`. A mismatch is a silent failure — the iframe loads but
|
|
14
|
-
* never receives data.
|
|
15
|
-
*/
|
|
16
|
-
title: string;
|
|
17
|
-
/** Human-readable description of the visualizer (kept for parity with the development schema; not consumed by host UI). */
|
|
18
|
-
description?: string;
|
|
19
|
-
/** Icon URL or identifier for the visualizer (kept for parity with the development schema; not consumed by host UI). */
|
|
20
|
-
icon?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Comma-separated list of one or more MIME types this entry matches (e.g.
|
|
23
|
-
* `'application/vnd.plotly.v1+json'` or
|
|
24
|
-
* `'application/vnd.plotly.v1+json, application/vnd.vega.v5+json'`).
|
|
25
|
-
* Stored verbatim; splitting happens at lookup time.
|
|
26
|
-
*/
|
|
27
|
-
contentType: string;
|
|
28
|
-
/** Absolute HTTP(S) URL of the visualizer iframe. */
|
|
29
|
-
url: string;
|
|
30
|
-
/** Milliseconds to wait for a `send()` request's `/RESPONSE` before rejecting. Defaults to `10000`. Does NOT bound the initial handshake. */
|
|
31
|
-
requestTimeout?: number;
|
|
32
|
-
/** Suggested initial width of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
33
|
-
width?: number;
|
|
34
|
-
/** Suggested initial height of the canvas panel in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
35
|
-
height?: number;
|
|
36
|
-
/** Suggested canvas panel height on mobile viewports in pixels. Forwarded as-is in `CustomVisualizerDataLayout`. */
|
|
37
|
-
mobileHeight?: number;
|
|
38
|
-
/** Whether the host should pass auth info to the visualizer. Accepted for schema parity with development but auth forwarding is not yet wired. */
|
|
39
|
-
passAuthInfo?: boolean;
|
|
40
|
-
/** Whether the host should pass an explicit access token. Accepted for schema parity with development but auth forwarding is not yet wired. */
|
|
41
|
-
passExplicitToken?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/** Presentation-only layout hints forwarded to the visualizer inside `SEND_VISUALIZE_DATA`. */
|
|
44
|
-
export interface CustomVisualizerDataLayout {
|
|
45
|
-
/** Suggested width of the canvas panel in pixels (from the registry entry). */
|
|
46
|
-
width?: number;
|
|
47
|
-
/** Suggested height of the canvas panel in pixels (from the registry entry). */
|
|
48
|
-
height?: number;
|
|
49
|
-
/** Suggested height on mobile-sized screens in pixels (from the registry entry). */
|
|
50
|
-
mobileHeight?: number;
|
|
51
|
-
/** Id of the host's currently active theme. */
|
|
52
|
-
themeId: string;
|
|
53
|
-
}
|
|
54
|
-
/** Payload of a `SEND_VISUALIZE_DATA` request: presentation layout plus the opaque attachment payload. */
|
|
55
|
-
export interface CustomVisualizerData {
|
|
56
|
-
/** Presentation layout hints. */
|
|
57
|
-
layout: CustomVisualizerDataLayout;
|
|
58
|
-
/** Opaque attachment payload consumed by the third-party visualizer. */
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=custom-visualizer.d.ts.map
|