@epam/ai-dial-chat-hooks 1.0.0 → 1.0.1
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/api-error/api-error.d.ts +18 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-transport/create-csrf-middleware.d.ts +15 -0
- package/api-transport/create-csrf-middleware.d.ts.map +1 -0
- package/api-transport/create-unauthorized-middleware.d.ts +40 -0
- package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -2
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -1
- package/catalog/deployment-endpoint-url.d.ts +19 -0
- package/catalog/deployment-endpoint-url.d.ts.map +1 -0
- package/catalog/deployment-id.d.ts +21 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/entity-details.d.ts +132 -0
- package/catalog/entity-details.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts +33 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.d.ts +15 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- package/catalog/map-deployment-to-catalog-item.d.ts +60 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.d.ts +23 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
- package/catalog/map-prompt-to-catalog-item.d.ts +45 -0
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.d.ts +87 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/mcp-endpoint-url.d.ts +18 -0
- package/catalog/mcp-endpoint-url.d.ts.map +1 -0
- package/catalog/publish.d.ts +17 -0
- package/catalog/publish.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
- package/conversation/announcement-message.d.ts +28 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -1
- package/conversation/conversation-transfer/queue.d.ts +1 -1
- package/conversation/conversation-transfer/queue.d.ts.map +1 -1
- package/conversation/conversation-transfer/types.d.ts +0 -27
- package/conversation/conversation-transfer/types.d.ts.map +1 -1
- package/conversation/create-chat-stream-api.d.ts +38 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
- package/conversation/display-name-watch.d.ts +4 -0
- package/conversation/display-name-watch.d.ts.map +1 -0
- package/conversation/footer-message.d.ts +10 -0
- package/conversation/footer-message.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.d.ts +27 -0
- package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
- package/conversation/greeting.d.ts +18 -0
- package/conversation/greeting.d.ts.map +1 -0
- package/conversation/message-factory.d.ts +7 -0
- package/conversation/message-factory.d.ts.map +1 -0
- package/conversation/message-utils.d.ts +27 -0
- package/conversation/message-utils.d.ts.map +1 -0
- package/conversation/overlay-messages.d.ts +5 -0
- package/conversation/overlay-messages.d.ts.map +1 -0
- package/conversation/quick-app-conversation-starters.d.ts +10 -0
- package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
- package/conversation/starter-option.d.ts +21 -0
- package/conversation/starter-option.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +34 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +37 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.d.ts +2 -1
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
- package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -1
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -1
- package/conversation/useConversationImport/useConversationImport.d.ts +2 -1
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -1
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +58 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.d.ts +0 -2
- package/conversation/useConversationStream/conversation-path.d.ts.map +1 -1
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -1
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +90 -0
- package/files/attachment-canvas.d.ts.map +1 -0
- package/files/attachment-dto-to-display.d.ts +10 -0
- package/files/attachment-dto-to-display.d.ts.map +1 -0
- package/files/attachment-types.d.ts +14 -0
- package/files/attachment-types.d.ts.map +1 -0
- package/files/create-files-api.d.ts +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.d.ts +24 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
- package/files/dial-file-manager-path.util.d.ts.map +1 -1
- package/files/dial-file-to-attachment.d.ts +26 -0
- package/files/dial-file-to-attachment.d.ts.map +1 -0
- package/files/dial-file.d.ts +17 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/file-path.d.ts +3 -0
- package/files/file-path.d.ts.map +1 -0
- package/files/prepare-download-destination.d.ts +8 -0
- package/files/prepare-download-destination.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -1
- package/index.d.ts +77 -1
- package/index.d.ts.map +1 -1
- package/index.js +17482 -1867
- package/oauth/authorize-url.d.ts +16 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- package/oauth/handshake.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- package/oauth/models.d.ts +74 -0
- package/oauth/models.d.ts.map +1 -0
- package/oauth/popup.d.ts +30 -0
- package/oauth/popup.d.ts.map +1 -0
- package/oauth/toolset-id.d.ts +23 -0
- package/oauth/toolset-id.d.ts.map +1 -0
- package/oauth/types.d.ts +84 -0
- package/oauth/types.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +72 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/package.json +20 -8
- package/prompt/export-prompt.d.ts +31 -0
- package/prompt/export-prompt.d.ts.map +1 -0
- package/prompt/prompt-resource.d.ts +31 -0
- package/prompt/prompt-resource.d.ts.map +1 -0
- package/prompt/prompt.d.ts +34 -0
- package/prompt/prompt.d.ts.map +1 -0
- package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
- package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
- package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +27 -0
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
- package/shared/application-schema.d.ts +10 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/browser-timezone.d.ts +7 -0
- package/shared/browser-timezone.d.ts.map +1 -0
- package/shared/cron-weekday.d.ts +5 -0
- package/shared/cron-weekday.d.ts.map +1 -0
- package/shared/custom-apps.d.ts +7 -0
- package/shared/custom-apps.d.ts.map +1 -0
- package/shared/external-services.d.ts +16 -0
- package/shared/external-services.d.ts.map +1 -0
- package/shared/formatting.d.ts +5 -0
- package/shared/formatting.d.ts.map +1 -0
- package/shared/locale.d.ts +45 -0
- package/shared/locale.d.ts.map +1 -0
- package/shared/string-utils.d.ts +9 -0
- package/shared/string-utils.d.ts.map +1 -0
- package/shared/toolset-login-events.d.ts +15 -0
- package/shared/toolset-login-events.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.d.ts +70 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -0
- package/skill/skill-file-preview.d.ts +25 -0
- package/skill/skill-file-preview.d.ts.map +1 -0
- package/skill/skill-manifest.d.ts +28 -0
- package/skill/skill-manifest.d.ts.map +1 -0
- package/skill/skill-types.d.ts +42 -0
- package/skill/skill-types.d.ts.map +1 -0
- package/skill/skill.d.ts +114 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/useSkillEditorLoad.d.ts +74 -0
- package/skill/useSkillEditorLoad.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.d.ts +105 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillFileActions.d.ts +53 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillsState/useSkillsState.d.ts +35 -0
- package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
- package/usage/useUsageData/useUsageData.d.ts +20 -0
- package/usage/useUsageData/useUsageData.d.ts.map +1 -0
- package/useToolsMenu/useToolsMenu.d.ts +7 -16
- package/useToolsMenu/useToolsMenu.d.ts.map +1 -1
- package/files/string-utils.d.ts +0 -3
- package/files/string-utils.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/mcp-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oEAAoE;AACpE,oBAAY,eAAe;IACzB,qDAAqD;IACrD,OAAO,YAAY;IACnB,wEAAwE;IACxE,WAAW,gBAAgB;CAC5B;AAmBD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAE9E,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAUlF,mIAAmI;AACnI,eAAO,MAAM,sBAAsB,GACjC,MAAM,iBAAiB,EACvB,cAAc,OAAO,KACpB,eAAe,GAAG,IAMpB,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,IAAI,MAAM,EACV,MAAM,eAAe,KACpB,qBAWF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PublishConversationResultDto, PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
4
|
+
/**
|
|
5
|
+
* The publish API's entity-type path param values. Re-declared as a plain
|
|
6
|
+
* string-literal union rather than importing the generated
|
|
7
|
+
* `PublishCatalogEntityEntityTypeEnum`, so this module has no dependency on
|
|
8
|
+
* the app's own `server-api` layer.
|
|
9
|
+
*/
|
|
10
|
+
export type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill';
|
|
11
|
+
/** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
|
|
12
|
+
export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
|
|
13
|
+
/** Maps a publish-history API response entry to the catalog lib's `PublishHistoryEntry` model. */
|
|
14
|
+
export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
|
|
15
|
+
/** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
|
|
16
|
+
export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
|
|
17
|
+
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,SAAS,GACT,aAAa,GACb,QAAQ,GACR,OAAO,CAAC;AAYZ,qIAAqI;AACrI,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,KACtB,wBAAwB,GAAG,SAA2C,CAAC;AAE1E,kGAAkG;AAClG,eAAO,MAAM,yBAAyB,GACpC,KAAK,sBAAsB,KAC1B,mBAID,CAAC;AAEH,iHAAiH;AACjH,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,mBAKD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Entity kind used to route a favorite toggle to the correct backend section. */
|
|
2
|
+
export declare enum FavoriteEntityType {
|
|
3
|
+
Deployment = "deployment",
|
|
4
|
+
Toolset = "toolset",
|
|
5
|
+
Prompt = "prompt",
|
|
6
|
+
Skill = "skill"
|
|
7
|
+
}
|
|
8
|
+
/** Raw favorites payload returned by `loadFavorites`. */
|
|
9
|
+
export interface FavoritesPayload {
|
|
10
|
+
deployments: string[];
|
|
11
|
+
toolsets: string[];
|
|
12
|
+
prompts: string[];
|
|
13
|
+
skills: string[];
|
|
14
|
+
}
|
|
15
|
+
/** Parameters for {@link useFavoriteEntitiesState}. */
|
|
16
|
+
export interface UseFavoriteEntitiesStateParams {
|
|
17
|
+
/** Fetches the initial set of favorite ids from the server. */
|
|
18
|
+
loadFavorites: () => Promise<FavoritesPayload>;
|
|
19
|
+
/** Persists a single favorite toggle for the given entity type. */
|
|
20
|
+
updateFavorite: (id: string, isFavorite: boolean, entityType: FavoriteEntityType) => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
/** Result returned by {@link useFavoriteEntitiesState}. */
|
|
23
|
+
export interface UseFavoriteEntitiesStateResult {
|
|
24
|
+
/** Union of all installed entity ids across every category. */
|
|
25
|
+
favoriteIds: ReadonlySet<string>;
|
|
26
|
+
/** True until the initial load has settled. */
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
/** Optimistically toggles a favorite and rolls back on persistence failure. */
|
|
29
|
+
toggleFavorite: (id: string, isFavorite: boolean, entityType?: FavoriteEntityType) => Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Manages the set of favorited entity ids: loads on mount, applies optimistic
|
|
33
|
+
* toggle with exact-inverse rollback on failure, and re-throws persistence
|
|
34
|
+
* errors so callers can react. Does not import any app context or server-api.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useFavoriteEntitiesState: ({ loadFavorites, updateFavorite, }: UseFavoriteEntitiesStateParams) => UseFavoriteEntitiesStateResult;
|
|
37
|
+
//# sourceMappingURL=useFavoriteEntitiesState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFavoriteEntitiesState.d.ts","sourceRoot":"","sources":["../../../src/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC7C,+DAA+D;IAC/D,aAAa,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/C,mEAAmE;IACnE,cAAc,EAAE,CACd,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,EACnB,UAAU,EAAE,kBAAkB,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,2DAA2D;AAC3D,MAAM,WAAW,8BAA8B;IAC7C,+DAA+D;IAC/D,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,cAAc,EAAE,CACd,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,EACnB,UAAU,CAAC,EAAE,kBAAkB,KAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,oCAGtC,8BAA8B,KAAG,8BA4EnC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Structured announcement banner content. */
|
|
2
|
+
export interface AnnouncementContent {
|
|
3
|
+
title: string | null;
|
|
4
|
+
description: string | null;
|
|
5
|
+
html: string | null;
|
|
6
|
+
}
|
|
7
|
+
/** Sanitizes announcement HTML to the allowed tag/attribute set. */
|
|
8
|
+
export declare const sanitizeAnnouncementHtml: (html: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the operator configured the structured banner (title and/or
|
|
11
|
+
* description) rather than only the legacy HTML message. Drives which of the
|
|
12
|
+
* two banner layouts renders.
|
|
13
|
+
*/
|
|
14
|
+
export declare const hasStructuredAnnouncement: ({ title, description, }: AnnouncementContent) => boolean;
|
|
15
|
+
/** True when the announcement has any renderable content (structured or legacy HTML). */
|
|
16
|
+
export declare const hasAnnouncementContent: (content: AnnouncementContent) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Builds the value persisted under `StorageKey.TextOfClosedAnnouncement` when
|
|
19
|
+
* the user dismisses the banner. Dismissal is content-keyed: the banner stays
|
|
20
|
+
* hidden only while the current announcement produces the same signature, so
|
|
21
|
+
* editing any part of it brings the banner back with no version counter.
|
|
22
|
+
*
|
|
23
|
+
* A legacy-only announcement returns the raw HTML string — byte-identical to
|
|
24
|
+
* what shipped before the structured fields existed — so dismissals recorded
|
|
25
|
+
* by older builds keep working without a storage migration.
|
|
26
|
+
*/
|
|
27
|
+
export declare const buildAnnouncementSignature: (content: AnnouncementContent) => string;
|
|
28
|
+
//# sourceMappingURL=announcement-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcement-message.d.ts","sourceRoot":"","sources":["../../src/conversation/announcement-message.ts"],"names":[],"mappings":"AAYA,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAQD,oEAAoE;AACpE,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACgB,CAAC;AAKzE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,yBAGvC,mBAAmB,KAAG,OACqB,CAAC;AAE/C,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,GAAI,SAAS,mBAAmB,KAAG,OACN,CAAC;AAEjE;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,mBAAmB,KAC3B,MASF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-conversation.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/import-conversation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"import-conversation.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/import-conversation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEZ,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAG7B,oFAAoF;AACpF,qBAAa,4BAA6B,SAAQ,KAAK;gBACzC,OAAO,EAAE,MAAM;CAI5B;AAOD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,YA2BlD,CAAC;AAeF,MAAM,WAAW,qBAAqB;IACpC,kFAAkF;IAClF,YAAY,EAAE,YAAY,CAAC;IAC3B,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAgBD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,cAAc,YAAY,EAC1B,QAAQ,MAAM,KACb,qBA6CF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,cAAc,YAAY,KACzB,MAAM,GAAG,SAMX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,KAAG,MACV,CAAC;AAE9C,qGAAqG;AACrG,MAAM,WAAW,yBAAyB;IACxC,0EAA0E;IAC1E,GAAG,EAAE,MAAM,CAAC;IACZ,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,cAAc,YAAY,EAC1B,WAAW,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,KAChD,YAgCD,CAAC;AAEH,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,KAAG,MAChB,CAAC;AAEpC,0GAA0G;AAC1G,MAAM,WAAW,uBAAuB;IACtC,yGAAyG;IACzG,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,KAAK,EAAE,UAAU,CAAC;IAClB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,SAAS,EAAE,mBAAmB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,cAAc,YAAY,EAC1B,iBAAiB,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EACxC,WAAW,mBAAmB,KAC7B;IAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CA2B3D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConversationTransferJob, ConversationTransferSubject } from '
|
|
1
|
+
import { ConversationTransferJob, ConversationTransferSubject } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
/** Shared job-queue primitive underlying both `useConversationExport` and `useConversationImport`. */
|
|
3
3
|
export interface ConversationTransferQueue {
|
|
4
4
|
/** Queued jobs, most recently added last. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/queue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EACjC,MAAM,2BAA2B,CAAC;AAGnC,sGAAsG;AACtG,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,oEAAoE;IACpE,MAAM,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,MAAM,CAAC;IACzD,yDAAyD;IACzD,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC5E,8EAA8E;IAC9E,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,oFAAoF;IACpF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uDAAuD;IACvD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,CACR,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,KACxC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAO,yBAgF/C,CAAC"}
|
|
@@ -9,33 +9,6 @@ export declare enum ExportFileNameKind {
|
|
|
9
9
|
SingleConversationWithAttachments = "chat_with_attachments",
|
|
10
10
|
AllConversationsHistory = "chat_conversations_history"
|
|
11
11
|
}
|
|
12
|
-
/** Lifecycle status of a queued export/import job. */
|
|
13
|
-
export declare enum ConversationTransferJobStatus {
|
|
14
|
-
InProgress = "inProgress",
|
|
15
|
-
Success = "success",
|
|
16
|
-
Failed = "failed"
|
|
17
|
-
}
|
|
18
|
-
/** Whether a transfer job's subject is a single named conversation or the whole history. */
|
|
19
|
-
export declare enum ConversationTransferSubjectKind {
|
|
20
|
-
Single = "single",
|
|
21
|
-
All = "all"
|
|
22
|
-
}
|
|
23
|
-
/** What a transfer job operates on — structured data, never pre-rendered translated text. */
|
|
24
|
-
export type ConversationTransferSubject = {
|
|
25
|
-
kind: ConversationTransferSubjectKind.Single;
|
|
26
|
-
/** The conversation's own name. */
|
|
27
|
-
title: string;
|
|
28
|
-
/** Folder breadcrumb the conversation originated from, if nested. */
|
|
29
|
-
sourceBreadcrumb?: string;
|
|
30
|
-
} | {
|
|
31
|
-
kind: ConversationTransferSubjectKind.All;
|
|
32
|
-
};
|
|
33
|
-
/** A queued export or import job. */
|
|
34
|
-
export interface ConversationTransferJob {
|
|
35
|
-
id: string;
|
|
36
|
-
subject: ConversationTransferSubject;
|
|
37
|
-
status: ConversationTransferJobStatus;
|
|
38
|
-
}
|
|
39
12
|
/** Library-owned reason a transfer job failed. */
|
|
40
13
|
export declare enum ConversationTransferErrorCode {
|
|
41
14
|
Unauthorized = "unauthorized",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,sBAAsB;IAChC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;CAC1C;AAED,8EAA8E;AAC9E,oBAAY,kBAAkB;IAC5B,kBAAkB,sBAAsB;IACxC,iCAAiC,0BAA0B;IAC3D,uBAAuB,+BAA+B;CACvD;AAED,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,sBAAsB;IAChC,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;CAC1C;AAED,8EAA8E;AAC9E,oBAAY,kBAAkB;IAC5B,kBAAkB,sBAAsB;IACxC,iCAAiC,0BAA0B;IAC3D,uBAAuB,+BAA+B;CACvD;AAED,kDAAkD;AAClD,oBAAY,6BAA6B;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACpB;AAED,oEAAoE;AACpE,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,6BAA6B,CAAC;IACpC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uEAAuE;AACvE,oBAAY,+BAA+B;IACzC,iBAAiB,sBAAsB;CACxC;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,+BAA+B,CAAC;IACtC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SendCompletionDtoModeEnum } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { MessageCustomContent, StreamChunk } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
/** Callbacks {@link streamCompletion} reports streamed completion events through. */
|
|
4
|
+
export interface ChatStreamCompletionOptions {
|
|
5
|
+
onChunk: (chunk: StreamChunk) => void;
|
|
6
|
+
onComplete: () => void;
|
|
7
|
+
onError: (error: Error) => void;
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}
|
|
10
|
+
/** Host capabilities {@link createChatStreamApi} needs to stream and stop completions. */
|
|
11
|
+
export interface CreateChatStreamApiDeps {
|
|
12
|
+
/** Returns the currently held CSRF token, or `null` when none is set. */
|
|
13
|
+
getCsrfToken: () => string | null;
|
|
14
|
+
/** Stores a CSRF token captured from a response header. */
|
|
15
|
+
setCsrfToken: (token: string | null) => void;
|
|
16
|
+
/** Base path for the completion/stop endpoints, e.g. `/api/v1/conversations`. */
|
|
17
|
+
completionsBasePath: string;
|
|
18
|
+
/** Resolves the caller's current timezone, attached as `X-Timezone` when non-empty. */
|
|
19
|
+
getTimezone?: () => string | undefined;
|
|
20
|
+
/** `fetch` implementation to issue requests through. Defaults to the global `fetch`. */
|
|
21
|
+
fetchImpl?: typeof fetch;
|
|
22
|
+
}
|
|
23
|
+
/** DIAL Core completion streaming transport produced by {@link createChatStreamApi}. */
|
|
24
|
+
export interface ChatStreamApi {
|
|
25
|
+
streamCompletion: (path: string, message: string | undefined, model: string, options: ChatStreamCompletionOptions, customContent?: MessageCustomContent, generationId?: string, mode?: SendCompletionDtoModeEnum, messageIndex?: number, clientChannelId?: string) => void;
|
|
26
|
+
stopCompletion: (dto: {
|
|
27
|
+
generationId: string;
|
|
28
|
+
path: string;
|
|
29
|
+
}) => Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Builds the streamed-completion transport `apps/chat/src/server-api/chat-stream.api.ts`
|
|
33
|
+
* exposes today: SSE parsing across partial chunks, CSRF header attachment
|
|
34
|
+
* and rotation, and an optional timezone header, backed by an injected
|
|
35
|
+
* `fetch` implementation and base path.
|
|
36
|
+
*/
|
|
37
|
+
export declare const createChatStreamApi: (deps: CreateChatStreamApiDeps) => ChatStreamApi;
|
|
38
|
+
//# sourceMappingURL=create-chat-stream-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-stream-api.d.ts","sourceRoot":"","sources":["../../src/conversation/create-chat-stream-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAInC,qFAAqF;AACrF,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,0FAA0F;AAC1F,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAClC,2DAA2D;IAC3D,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,iFAAiF;IACjF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACvC,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AA0BD,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,CAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,aAAa,CAAC,EAAE,oBAAoB,EACpC,YAAY,CAAC,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,yBAAyB,EAChC,YAAY,CAAC,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,KACrB,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,GAAG,EAAE;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,uBAAuB,KAC5B,aAuIF,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
3
|
+
import { RecipientsCountEntry } from '../../useShareRecipientsCount/useShareRecipientsCount';
|
|
4
|
+
/** Distilled row-action state for a single conversation item. */
|
|
5
|
+
export interface ConversationRowActionState {
|
|
6
|
+
/** `true` when the item is read-only (shared-with-me, published-with-me, or explicitly readonly). */
|
|
7
|
+
isReadonly: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Deduplicated list of folder paths (as joined slash-delimited strings)
|
|
10
|
+
* to which this conversation has been published. Empty when the conversation
|
|
11
|
+
* is unowned, readonly, or publish history is unavailable.
|
|
12
|
+
*/
|
|
13
|
+
publishedFolders: string[];
|
|
14
|
+
/**
|
|
15
|
+
* `true` when the revoke-access action should be shown: either the
|
|
16
|
+
* recipient count is unknown (lookup pending/failed) or at least one
|
|
17
|
+
* recipient exists.
|
|
18
|
+
*/
|
|
19
|
+
isRevokeVisible: boolean;
|
|
20
|
+
/** `true` when publish is applicable (no published folders yet). */
|
|
21
|
+
isPublishApplicable: boolean;
|
|
22
|
+
/** `true` when unpublish is applicable (at least one published folder exists). */
|
|
23
|
+
isUnpublishApplicable: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Derives the row-action visibility state for a single conversation item.
|
|
27
|
+
*
|
|
28
|
+
* Extracted from `getActions` in `ConversationPanelView` to isolate the
|
|
29
|
+
* readonly / publish / unpublish / revoke decision logic from the
|
|
30
|
+
* `DropdownItem` construction and `t()` calls that remain in the app.
|
|
31
|
+
*
|
|
32
|
+
* @param item - Conversation DTO fields relevant to ownership classification.
|
|
33
|
+
* @param publishHistory - Resolved publish-history entries, or `undefined`
|
|
34
|
+
* when history is unavailable or should be treated as empty (e.g. while
|
|
35
|
+
* loading or when the item is readonly).
|
|
36
|
+
* @param recipients - Current share-recipients count entry for this item.
|
|
37
|
+
*/
|
|
38
|
+
export declare const deriveConversationRowActionState: (item: Pick<ConversationListItemDto, "sharedWithMe" | "publishedWithMe" | "isReadonly">, publishHistory: PublishHistoryEntry[] | undefined, recipients: RecipientsCountEntry) => ConversationRowActionState;
|
|
39
|
+
//# sourceMappingURL=deriveConversationRowActionState.d.ts.map
|
package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deriveConversationRowActionState.d.ts","sourceRoot":"","sources":["../../../src/conversation/deriveConversationRowActionState/deriveConversationRowActionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,uDAAuD,CAAC;AAE/D,iEAAiE;AACjE,MAAM,WAAW,0BAA0B;IACzC,qGAAqG;IACrG,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kFAAkF;IAClF,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC,GAC3C,MAAM,IAAI,CACR,uBAAuB,EACvB,cAAc,GAAG,iBAAiB,GAAG,YAAY,CAClD,EACD,gBAAgB,mBAAmB,EAAE,GAAG,SAAS,EACjD,YAAY,oBAAoB,KAC/B,0BA6BF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Conversation } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/** True when the first user/assistant exchange is complete and LLM naming may still run. */
|
|
3
|
+
export declare const shouldWatchForDisplayNameUpdate: (conversation: Conversation) => boolean;
|
|
4
|
+
//# sourceMappingURL=display-name-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-name-watch.d.ts","sourceRoot":"","sources":["../../src/conversation/display-name-watch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,4FAA4F;AAC5F,eAAO,MAAM,+BAA+B,GAC1C,cAAc,YAAY,KACzB,OAQF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Sanitizes footer message HTML to the allowed tag/attribute set. */
|
|
2
|
+
export declare const sanitizeFooterHtml: (html: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* Normalises a version string for display. The server falls back to a bare
|
|
5
|
+
* `package.json` version (`0.45.0`), while a CI-supplied `CHAT_VERSION` is
|
|
6
|
+
* often already tagged (`v0.45.0`) — prefixing unconditionally would render
|
|
7
|
+
* `vv0.45.0`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatAppVersion: (version: string) => string;
|
|
10
|
+
//# sourceMappingURL=footer-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-message.d.ts","sourceRoot":"","sources":["../../src/conversation/footer-message.ts"],"names":[],"mappings":"AAOA,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MACgB,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,KAAG,MAGlD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the deployment/model ID from a DIAL Core conversation ID.
|
|
3
|
+
*
|
|
4
|
+
* The backend builds conversation paths as `{deploymentId}__{title}` then runs
|
|
5
|
+
* `encodeDialResourcePath` which splits on `/` and encodes each segment. This
|
|
6
|
+
* means both the deployment ID and the title may introduce extra `/`-separated
|
|
7
|
+
* URL segments:
|
|
8
|
+
*
|
|
9
|
+
* - Deployment `anthropic/claude-3`, title `My chat`
|
|
10
|
+
* → `conversations/bucket/anthropic/claude-3__My%20chat`
|
|
11
|
+
*
|
|
12
|
+
* - Deployment `uuid`, title `calc 6/2/2026` (title contains slashes)
|
|
13
|
+
* → `conversations/bucket/uuid__calc%206/2/2026`
|
|
14
|
+
*
|
|
15
|
+
* The `__` separator is present in the first filename segment. Versioned
|
|
16
|
+
* application deployments use `{name}__{version}__{title}`, so the version
|
|
17
|
+
* suffix still belongs to the deployment ID.
|
|
18
|
+
*
|
|
19
|
+
* In regular model conversations, the separator is always present in exactly
|
|
20
|
+
* one segment — the first one that contains it. Segments before that segment
|
|
21
|
+
* are deployment ID path prefixes; segments from that point onward are the
|
|
22
|
+
* title (possibly overflowing into further `/`-separated segments).
|
|
23
|
+
*
|
|
24
|
+
* Returns `undefined` when the format is unrecognised.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getModelIdFromConversationId: (id: string) => string | undefined;
|
|
27
|
+
//# sourceMappingURL=get-model-id-from-conversation-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-id-from-conversation-id.d.ts","sourceRoot":"","sources":["../../src/conversation/get-model-id-from-conversation-id.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,4BAA4B,GACvC,IAAI,MAAM,KACT,MAAM,GAAG,SAkCX,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Pre-translated greeting phrase strings for each time-of-day period. */
|
|
2
|
+
export interface GreetingTranslations {
|
|
3
|
+
morningWithName: string;
|
|
4
|
+
morningNoName: string;
|
|
5
|
+
afternoonWithName: string;
|
|
6
|
+
afternoonNoName: string;
|
|
7
|
+
eveningWithName: string;
|
|
8
|
+
eveningNoName: string;
|
|
9
|
+
nightWithName: string;
|
|
10
|
+
nightNoName: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns a time-of-day greeting string.
|
|
14
|
+
* Hour ranges: morning 5–11, afternoon 12–16, evening 17–20, night 21–4.
|
|
15
|
+
* When firstName is provided the with-name variant is returned; otherwise the no-name variant.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getTimeOfDayGreeting: (hour: number, translations: GreetingTranslations, firstName?: string) => string;
|
|
18
|
+
//# sourceMappingURL=greeting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greeting.d.ts","sourceRoot":"","sources":["../../src/conversation/greeting.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,MAAM,EACZ,cAAc,oBAAoB,EAClC,YAAY,MAAM,KACjB,MAeF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusMessage } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a status message recording a deployment change in the conversation timeline.
|
|
4
|
+
* Status messages are never forwarded to DIAL Core.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createDeploymentChangedMessage: (previousDeploymentId: string | null, newDeploymentId: string) => StatusMessage;
|
|
7
|
+
//# sourceMappingURL=message-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-factory.d.ts","sourceRoot":"","sources":["../../src/conversation/message-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAEd,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GACzC,sBAAsB,MAAM,GAAG,IAAI,EACnC,iBAAiB,MAAM,KACtB,aAcF,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Message, ResponseFormat } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/**
|
|
3
|
+
* Returns `true` when `message` is the actively-streaming assistant response.
|
|
4
|
+
* Only the last message in the list can be streaming, and only while
|
|
5
|
+
* `isAssistantTyping` is `true`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isMessageStreaming: (message: Message, messageIndex: number, totalMessages: number, isAssistantTyping: boolean) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the `new_deployment_id` from the last `model_changed` status message
|
|
10
|
+
* in the list, or `null` if none exists.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getLastDeploymentId: (messages: Message[]) => string | null;
|
|
13
|
+
/** True when `message` is an assistant message carrying at least one stage. */
|
|
14
|
+
export declare const messageHasStages: (message: Message) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the `configuration_value` stored on the last user message, or
|
|
17
|
+
* `undefined` if none exists. Used to restore the tools menu toggle state
|
|
18
|
+
* when a conversation is (re-)loaded, mirroring `getLastDeploymentId`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const getLastUserMessageToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Normalises a stored response-format string to the current enum. Legacy data
|
|
23
|
+
* may contain `'Markdown'` or `'PlainText'` (capital-first) instead of the
|
|
24
|
+
* current enum values `'markdown'` / `'plain_text'`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const normalizeResponseFormat: (value: string | undefined) => ResponseFormat;
|
|
27
|
+
//# sourceMappingURL=message-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../src/conversation/message-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAEP,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,cAAc,MAAM,EACpB,eAAe,MAAM,EACrB,mBAAmB,OAAO,KACzB,OAGqC,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,OAAO,EAAE,KAAG,MAAM,GAAG,IAUlE,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,KAAG,OAED,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,GAC9C,UAAU,OAAO,EAAE,KAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAO5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,GAAG,SAAS,KACxB,cAIF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OverlayChatMessage } from '@epam/ai-dial-chat-overlay';
|
|
2
|
+
import { Message } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
/** Maps chat messages to the DIAL Chat Overlay protocol's message shape. */
|
|
4
|
+
export declare const toOverlayMessages: (messages: Message[]) => OverlayChatMessage[];
|
|
5
|
+
//# sourceMappingURL=overlay-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-messages.d.ts","sourceRoot":"","sources":["../../src/conversation/overlay-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,GAAI,UAAU,OAAO,EAAE,KAAG,kBAAkB,EAKrE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StarterOption } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/** Resolved Quick App conversation-starter settings. */
|
|
3
|
+
export interface QuickAppConversationStartersSettings {
|
|
4
|
+
starters: StarterOption[];
|
|
5
|
+
introText: string | undefined;
|
|
6
|
+
isChatMessageInputDisabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Parses a Quick App's raw `conversationStarters` schema value into starter options. */
|
|
9
|
+
export declare const getQuickAppConversationStarters: (conversationStarters: unknown) => QuickAppConversationStartersSettings;
|
|
10
|
+
//# sourceMappingURL=quick-app-conversation-starters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-app-conversation-starters.d.ts","sourceRoot":"","sources":["../../src/conversation/quick-app-conversation-starters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wDAAwD;AACxD,MAAM,WAAW,oCAAoC;IACnD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAWD,yFAAyF;AACzF,eAAO,MAAM,+BAA+B,GAC1C,sBAAsB,OAAO,KAC5B,oCAyCF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeploymentConfigurationSchema, StarterOption } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the text to populate in the input when a starter button is selected.
|
|
4
|
+
* Falls back to the button title if `populateText` is empty.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getStarterPopulateText: (starter: StarterOption) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Extracts starter options, the schema property key (`'starter'` or `'button'`),
|
|
9
|
+
* and the optional description text from a deployment configuration schema.
|
|
10
|
+
*
|
|
11
|
+
* - `propertyKey` — `'starter'` or `'button'`; used to build `configuration_value`.
|
|
12
|
+
* - `description` — human-readable prompt shown above the buttons (only present for `button` properties).
|
|
13
|
+
*
|
|
14
|
+
* Returns an empty starters array and `undefined` fields when no matching property is found.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getStartersFromSchema: (schema: DeploymentConfigurationSchema | null | undefined) => {
|
|
17
|
+
starters: StarterOption[];
|
|
18
|
+
propertyKey: string | undefined;
|
|
19
|
+
description: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=starter-option.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"starter-option.d.ts","sourceRoot":"","sources":["../../src/conversation/starter-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,aAAa,KAAG,MACH,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,QAAQ,6BAA6B,GAAG,IAAI,GAAG,SAAS,KACvD;IACD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CA8BjC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Parameters for `useActiveConversationSync`. */
|
|
3
|
+
export interface UseActiveConversationSyncParams {
|
|
4
|
+
/**
|
|
5
|
+
* The raw context id of the currently active conversation, as tracked by
|
|
6
|
+
* the host app. `undefined` when no conversation is active.
|
|
7
|
+
*/
|
|
8
|
+
activeConversationId: string | undefined;
|
|
9
|
+
/** Raw conversation list from the API. */
|
|
10
|
+
items: ConversationListItemDto[];
|
|
11
|
+
/** Refetches the full conversation list. */
|
|
12
|
+
refreshConversations: () => Promise<void>;
|
|
13
|
+
/** Marks a scheduler-created conversation as viewed by raw context id. */
|
|
14
|
+
markConversationViewed: (id: string) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns `true` when two ids refer to the same conversation despite
|
|
17
|
+
* possible encoding differences. App-specific.
|
|
18
|
+
*/
|
|
19
|
+
conversationIdsMatch: (a: string, b: string) => boolean;
|
|
20
|
+
/** Converts a raw context id to the panel-space id. App-specific. */
|
|
21
|
+
toPanelConversationId: (id: string) => string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Synchronises the active conversation with the conversation list and returns
|
|
25
|
+
* the panel-space id of the active conversation, or `undefined` when none is active.
|
|
26
|
+
*
|
|
27
|
+
* Side effects:
|
|
28
|
+
* 1. If the active conversation is not present in the list, requests a
|
|
29
|
+
* refresh. The list and refresh callback are intentionally excluded from
|
|
30
|
+
* the dependency array to avoid a refresh-loop on every list update.
|
|
31
|
+
* 2. Marks the active conversation as viewed whenever it or the list changes.
|
|
32
|
+
*/
|
|
33
|
+
export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
|
|
34
|
+
//# sourceMappingURL=useActiveConversationSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActiveConversationSync.d.ts","sourceRoot":"","sources":["../../../src/conversation/useActiveConversationSync/useActiveConversationSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAG7E,kDAAkD;AAClD,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,0EAA0E;IAC1E,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD;;;OAGG;IACH,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACxD,qEAAqE;IACrE,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,GAAI,6HAOvC,+BAA+B,KAAG,MAAM,GAAG,SAyC7C,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** State and controls returned by `useAsyncConfirmDialog`. */
|
|
2
|
+
export interface AsyncConfirmDialogControls<T> {
|
|
3
|
+
/**
|
|
4
|
+
* The value currently awaiting confirmation, or `null` when no dialog is
|
|
5
|
+
* open.
|
|
6
|
+
*/
|
|
7
|
+
pending: T | null;
|
|
8
|
+
/** `true` when `pending` is not `null`. */
|
|
9
|
+
isPending: boolean;
|
|
10
|
+
/** `true` while the async operation started by `confirm` is in-flight. */
|
|
11
|
+
isRunning: boolean;
|
|
12
|
+
/** Error message set when the last `confirm` run threw, or `null` otherwise. */
|
|
13
|
+
error: string | null;
|
|
14
|
+
/** Opens the dialog by setting `pending` to `value` and clearing any prior error. */
|
|
15
|
+
open: (value: T) => void;
|
|
16
|
+
/** Closes the dialog by resetting `pending`, `error`, and `isRunning` to their initial values. */
|
|
17
|
+
close: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Runs `run(pending)` while enforcing a re-entry guard.
|
|
20
|
+
*
|
|
21
|
+
* - No-op when `isRunning` is already `true` or `pending` is `null`.
|
|
22
|
+
* - On success: calls `close()` to reset all state.
|
|
23
|
+
* - On failure: sets `error` to `onError(caughtError)` and leaves `pending`
|
|
24
|
+
* set so the caller may retry.
|
|
25
|
+
*/
|
|
26
|
+
confirm: (run: (value: T) => Promise<void>, onError: (error: unknown) => string) => Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Generic single-slot pending / loading / error state machine for
|
|
30
|
+
* confirmation dialogs that trigger an async operation.
|
|
31
|
+
*
|
|
32
|
+
* Replaces the `[pendingXxx, setXxx] / [isXxxing, setIsXxxing] / [xxxError,
|
|
33
|
+
* setXxxError]` triads that previously appeared inline at each call site in
|
|
34
|
+
* `ConversationPanelView` and `ConversationPanelMenu`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useAsyncConfirmDialog: <T>() => AsyncConfirmDialogControls<T>;
|
|
37
|
+
//# sourceMappingURL=useAsyncConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsyncConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.ts"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C;;;OAGG;IACH,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAClB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,gFAAgF;IAChF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qFAAqF;IACrF,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,kGAAkG;IAClG,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,CACP,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,KAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,OAAK,0BAA0B,CAAC,CAAC,CAgEvE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConversationsApi, FilesApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
-
import {
|
|
2
|
+
import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { ConversationExportMode, ConversationTransferErrorEvent, ConversationTransferSuccessEvent, ConversationTransferWarningEvent } from '../conversation-transfer/types';
|
|
3
4
|
interface ExportErrorClassification {
|
|
4
5
|
isUnauthorized?: boolean;
|
|
5
6
|
isNotFound?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationExport.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationExport/useConversationExport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,QAAQ,EACT,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"useConversationExport.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationExport/useConversationExport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,QAAQ,EACT,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,uBAAuB,EAI7B,MAAM,2BAA2B,CAAC;AAenC,OAAO,EACL,sBAAsB,EAEtB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EAErC,KAAK,gCAAgC,EAEtC,MAAM,gCAAgC,CAAC;AASxC,UAAU,yBAAyB;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAUD,oDAAoD;AACpD,MAAM,WAAW,2BAA2B;IAC1C,+EAA+E;IAC/E,gBAAgB,EAAE,IAAI,CACpB,gBAAgB,EAChB,iBAAiB,GAAG,mBAAmB,CACxC,CAAC;IACF,iFAAiF;IACjF,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IAC5C,yFAAyF;IACzF,yBAAyB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9D,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,yBAAyB,CAAC;IACtE,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE,gDAAgD;IAChD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,6FAA6F;IAC7F,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CAC3D;AAED,qDAAqD;AACrD,MAAM,WAAW,2BAA2B;IAC1C,4FAA4F;IAC5F,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,2EAA2E;IAC3E,YAAY,EAAE,CACZ,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,sBAAsB,KACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,0FAA0F;IAC1F,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,wEAAwE;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+DAA+D;IAC/D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,uIASnC,2BAA2B,KAAG,2BAkVhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter-option.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/starter-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"starter-option.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/starter-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,aAAa,EACtB,cAAc,MAAM,KACnB,MAQF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,aAAa,EACtB,cAAc,MAAM,KACnB,MAQF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationHandlers.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/useConversationHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useConversationHandlers.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/useConversationHandlers.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConversationsApi, FilesApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
-
import {
|
|
2
|
+
import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { ConversationTransferErrorEvent, ConversationTransferSuccessEvent, ConversationTransferWarningEvent } from '../conversation-transfer/types';
|
|
3
4
|
/** Parameters for {@link useConversationImport}. */
|
|
4
5
|
export interface UseConversationImportParams {
|
|
5
6
|
/** Already-configured generated-client instance used to persist imported conversations. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationImport.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationImport/useConversationImport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,QAAQ,EACT,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"useConversationImport.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationImport/useConversationImport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAChB,QAAQ,EACT,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,uBAAuB,EAK7B,MAAM,2BAA2B,CAAC;AAkBnC,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EAErC,KAAK,gCAAgC,EACtC,MAAM,gCAAgC,CAAC;AAgExC,oDAAoD;AACpD,MAAM,WAAW,2BAA2B;IAC1C,2FAA2F;IAC3F,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;IAC7D,oFAAoF;IACpF,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,YAAY,CAAC,CAAC;IACrD,uGAAuG;IACvG,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACxC,+FAA+F;IAC/F,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACzE,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE,wFAAwF;IACxF,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,gEAAgE;IAChE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,4EAA4E;IAC5E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CAC3D;AA2GD,qDAAqD;AACrD,MAAM,WAAW,2BAA2B;IAC1C,4FAA4F;IAC5F,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,kEAAkE;IAClE,mBAAmB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,0FAA0F;IAC1F,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,wFAAwF;IACxF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+DAA+D;IAC/D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,gIAUnC,2BAA2B,KAAG,2BAiPhC,CAAC"}
|