@epam/ai-dial-chat-hooks 1.1.0-dev.383 → 1.1.0-dev.390
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-DuLNy43N.js +45 -0
- package/attachment-types-AAoN9E95.js +7760 -0
- package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
- package/attachments.js +2 -0
- package/browser-Btsa0Lmr.js +607 -0
- package/catalog.d.ts +946 -0
- package/catalog.js +3 -0
- package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
- package/conversation-sources.js +2 -0
- package/conversation-transfer.d.ts +189 -0
- package/conversation-transfer.js +3 -0
- package/conversation.d.ts +907 -0
- package/conversation.js +2 -0
- package/cron-weekday-B4w29eAC.js +4 -0
- package/date-BeuD8G79.js +4 -0
- package/deployment-id-CxWgJTs9.js +6 -0
- package/file-manager.d.ts +1344 -0
- package/file-manager.js +4 -0
- package/formatting-CZyyxBG3.js +4 -0
- package/index.d.ts +4945 -126
- package/index.js +27 -19152
- package/oauth.d.ts +440 -0
- package/oauth.js +3 -0
- package/package.json +142 -21
- package/prompt-resource-Bt1I-8ri.js +41 -0
- package/scheduled-task-trigger-D9RZCk52.js +145 -0
- package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
- package/scheduled-tasks.js +2 -0
- package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
- package/scroll-anchoring.js +2 -0
- package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
- package/sharing.js +3 -0
- package/skill-editor.d.ts +503 -0
- package/skill-editor.js +3 -0
- package/skill-manifest-CCX8s4nn.js +4035 -0
- package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
- package/skills-state.js +2 -0
- package/string-utils-iBi2Y55C.js +10 -0
- package/toolset-id-CkxRHyU0.js +10 -0
- package/useAttachmentValidation-CkMTd5lA.js +102 -0
- package/useConversationImport-C2h1GBY4.js +807 -0
- package/useConversationScroll-CliIMnjP.js +122 -0
- package/useConversationSources-DKaKvjXZ.js +47 -0
- package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
- package/usePanelMaxWidth-BEZYuqF9.js +44 -0
- package/useShareLink-xkiaxATt.js +44 -0
- package/useShareRecipientsCount-BgwCLKY0.js +37 -0
- package/useSkillFileActions-BU5PzZ_8.js +373 -0
- package/useSkillFilePreview-BYfZUJhr.js +1005 -0
- package/useSkillsState-BoLlwmzb.js +52 -0
- package/useToolsMenu-BXdahO0i.js +1874 -0
- package/useToolsetLogin-GhFtKs4D.js +276 -0
- package/useUsageData-D7BxloKZ.js +201 -0
- package/utils.d.ts +373 -0
- package/utils.js +7 -0
- package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
- package/viewport-layout.js +2 -0
- package/api-error/api-error.d.ts +0 -18
- package/api-error/api-error.d.ts.map +0 -1
- package/api-transport/create-csrf-middleware.d.ts +0 -15
- package/api-transport/create-csrf-middleware.d.ts.map +0 -1
- package/api-transport/create-unauthorized-middleware.d.ts +0 -40
- package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
- package/catalog/catalog-derivations.d.ts +0 -27
- package/catalog/catalog-derivations.d.ts.map +0 -1
- package/catalog/catalog-primary-action.d.ts +0 -47
- package/catalog/catalog-primary-action.d.ts.map +0 -1
- package/catalog/create-publish-api.d.ts +0 -32
- package/catalog/create-publish-api.d.ts.map +0 -1
- package/catalog/deployment-endpoint-url.d.ts +0 -19
- package/catalog/deployment-endpoint-url.d.ts.map +0 -1
- package/catalog/deployment-id.d.ts +0 -21
- package/catalog/deployment-id.d.ts.map +0 -1
- package/catalog/entity-details.d.ts +0 -132
- package/catalog/entity-details.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-input.d.ts +0 -15
- package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
- package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
- package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-entity-details-to-catalog.d.ts +0 -23
- package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
- package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
- package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-skill-to-catalog-item.d.ts +0 -87
- package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
- package/catalog/mcp-endpoint-url.d.ts +0 -18
- package/catalog/mcp-endpoint-url.d.ts.map +0 -1
- package/catalog/publish.d.ts +0 -17
- package/catalog/publish.d.ts.map +0 -1
- package/catalog/useCatalogItemDetails.d.ts +0 -73
- package/catalog/useCatalogItemDetails.d.ts.map +0 -1
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
- package/conversation/announcement-message.d.ts +0 -34
- package/conversation/announcement-message.d.ts.map +0 -1
- package/conversation/conversation-transfer/async.d.ts +0 -10
- package/conversation/conversation-transfer/async.d.ts.map +0 -1
- package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
- package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
- package/conversation/conversation-transfer/date.d.ts +0 -5
- package/conversation/conversation-transfer/date.d.ts.map +0 -1
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
- package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
- package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
- package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/progress.d.ts +0 -60
- package/conversation/conversation-transfer/progress.d.ts.map +0 -1
- package/conversation/conversation-transfer/queue.d.ts +0 -54
- package/conversation/conversation-transfer/queue.d.ts.map +0 -1
- package/conversation/conversation-transfer/types.d.ts +0 -36
- package/conversation/conversation-transfer/types.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-export.d.ts +0 -31
- package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-import.d.ts +0 -17
- package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
- package/conversation/create-chat-stream-api.d.ts +0 -38
- package/conversation/create-chat-stream-api.d.ts.map +0 -1
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
- package/conversation/display-name-watch.d.ts +0 -4
- package/conversation/display-name-watch.d.ts.map +0 -1
- package/conversation/footer-message.d.ts +0 -10
- package/conversation/footer-message.d.ts.map +0 -1
- package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
- package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
- package/conversation/greeting.d.ts +0 -18
- package/conversation/greeting.d.ts.map +0 -1
- package/conversation/message-factory.d.ts +0 -7
- package/conversation/message-factory.d.ts.map +0 -1
- package/conversation/message-utils.d.ts +0 -27
- package/conversation/message-utils.d.ts.map +0 -1
- package/conversation/overlay-messages.d.ts +0 -5
- package/conversation/overlay-messages.d.ts.map +0 -1
- package/conversation/quick-app-conversation-starters.d.ts +0 -10
- package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
- package/conversation/starter-option.d.ts +0 -21
- package/conversation/starter-option.d.ts.map +0 -1
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
- package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
- package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
- package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
- package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
- package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
- package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
- package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
- package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
- package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
- package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
- package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
- package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
- package/conversation/useConversationStream/conversation-path.d.ts +0 -7
- package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
- package/conversation/useConversationStream/generation-resume.d.ts +0 -39
- package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
- package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
- package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
- package/files/annotation.d.ts +0 -10
- package/files/annotation.d.ts.map +0 -1
- package/files/attachment-canvas.d.ts +0 -104
- package/files/attachment-canvas.d.ts.map +0 -1
- package/files/attachment-dto-to-display.d.ts +0 -10
- package/files/attachment-dto-to-display.d.ts.map +0 -1
- package/files/attachment-types.d.ts +0 -14
- package/files/attachment-types.d.ts.map +0 -1
- package/files/create-files-api.d.ts +0 -52
- package/files/create-files-api.d.ts.map +0 -1
- package/files/create-upload-file-with-progress.d.ts +0 -24
- package/files/create-upload-file-with-progress.d.ts.map +0 -1
- package/files/dial-file-manager-copy-move.util.d.ts +0 -15
- package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
- package/files/dial-file-manager-mapping.util.d.ts +0 -35
- package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
- package/files/dial-file-manager-path.util.d.ts +0 -39
- package/files/dial-file-manager-path.util.d.ts.map +0 -1
- package/files/dial-file-manager.model.d.ts +0 -26
- package/files/dial-file-manager.model.d.ts.map +0 -1
- package/files/dial-file-manager.types.d.ts +0 -317
- package/files/dial-file-manager.types.d.ts.map +0 -1
- package/files/dial-file-to-attachment.d.ts +0 -26
- package/files/dial-file-to-attachment.d.ts.map +0 -1
- package/files/dial-file.d.ts +0 -17
- package/files/dial-file.d.ts.map +0 -1
- package/files/dial-files-api.d.ts +0 -71
- package/files/dial-files-api.d.ts.map +0 -1
- package/files/download-destination.d.ts +0 -31
- package/files/download-destination.d.ts.map +0 -1
- package/files/file-manager-variant.d.ts +0 -4
- package/files/file-manager-variant.d.ts.map +0 -1
- package/files/file-name.d.ts +0 -19
- package/files/file-name.d.ts.map +0 -1
- package/files/prepare-download-destination.d.ts +0 -8
- package/files/prepare-download-destination.d.ts.map +0 -1
- package/files/resolve-dial-file-api-path.d.ts +0 -13
- package/files/resolve-dial-file-api-path.d.ts.map +0 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
- package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
- package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
- package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
- package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
- package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/oauth/authorize-url.d.ts +0 -16
- package/oauth/authorize-url.d.ts.map +0 -1
- package/oauth/handshake.d.ts +0 -30
- package/oauth/handshake.d.ts.map +0 -1
- package/oauth/models.d.ts +0 -81
- package/oauth/models.d.ts.map +0 -1
- package/oauth/popup.d.ts +0 -30
- package/oauth/popup.d.ts.map +0 -1
- package/oauth/toolset-id.d.ts +0 -23
- package/oauth/toolset-id.d.ts.map +0 -1
- package/oauth/types.d.ts +0 -84
- package/oauth/types.d.ts.map +0 -1
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
- package/prompt/export-prompt.d.ts +0 -31
- package/prompt/export-prompt.d.ts.map +0 -1
- package/prompt/prompt-resource.d.ts +0 -30
- package/prompt/prompt-resource.d.ts.map +0 -1
- package/prompt/prompt.d.ts +0 -34
- package/prompt/prompt.d.ts.map +0 -1
- package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
- package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
- package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
- package/shared/application-schema.d.ts +0 -10
- package/shared/application-schema.d.ts.map +0 -1
- package/shared/browser-timezone.d.ts +0 -7
- package/shared/browser-timezone.d.ts.map +0 -1
- package/shared/cron-weekday.d.ts +0 -5
- package/shared/cron-weekday.d.ts.map +0 -1
- package/shared/custom-apps.d.ts +0 -7
- package/shared/custom-apps.d.ts.map +0 -1
- package/shared/external-services.d.ts +0 -16
- package/shared/external-services.d.ts.map +0 -1
- package/shared/formatting.d.ts +0 -5
- package/shared/formatting.d.ts.map +0 -1
- package/shared/locale.d.ts +0 -45
- package/shared/locale.d.ts.map +0 -1
- package/shared/string-utils.d.ts +0 -9
- package/shared/string-utils.d.ts.map +0 -1
- package/shared/toolset-login-events.d.ts +0 -15
- package/shared/toolset-login-events.d.ts.map +0 -1
- package/skill/skill-file-batch-validation.d.ts +0 -70
- package/skill/skill-file-batch-validation.d.ts.map +0 -1
- package/skill/skill-file-preview.d.ts +0 -25
- package/skill/skill-file-preview.d.ts.map +0 -1
- package/skill/skill-manifest.d.ts +0 -28
- package/skill/skill-manifest.d.ts.map +0 -1
- package/skill/skill-types.d.ts +0 -42
- package/skill/skill-types.d.ts.map +0 -1
- package/skill/skill.d.ts +0 -114
- package/skill/skill.d.ts.map +0 -1
- package/skill/useSkillEditorLoad.d.ts +0 -74
- package/skill/useSkillEditorLoad.d.ts.map +0 -1
- package/skill/useSkillEditorSubmit.d.ts +0 -105
- package/skill/useSkillEditorSubmit.d.ts.map +0 -1
- package/skill/useSkillFileActions.d.ts +0 -53
- package/skill/useSkillFileActions.d.ts.map +0 -1
- package/skill/useSkillFilePreview.d.ts +0 -38
- package/skill/useSkillFilePreview.d.ts.map +0 -1
- package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
- package/test-setup.d.ts +0 -2
- package/test-setup.d.ts.map +0 -1
- package/usage/useUsageData/useUsageData.d.ts +0 -20
- package/usage/useUsageData/useUsageData.d.ts.map +0 -1
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
- package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
- package/useShareLink/useShareLink.d.ts +0 -23
- package/useShareLink/useShareLink.d.ts.map +0 -1
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
- package/useToolsMenu/useToolsMenu.d.ts +0 -31
- package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
- package/useViewportWidth/useViewportWidth.d.ts +0 -3
- package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
package/catalog.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, Q as g, R as _, S as v, T as y, U as b, V as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, b as O, c as k, d as A, f as j, g as M, h as N, i as P, j as F, k as I, l as L, m as R, n as z, o as B, p as V, q as H, r as U, s as W, t as G, u as K, v as q, w as J, x as Y, y as X, z as Z } from "./useSkillFilePreview-BYfZUJhr.js";
|
|
2
|
+
import { n as Q, t as $ } from "./deployment-id-CxWgJTs9.js";
|
|
3
|
+
export { H as AuthenticationType, W as CatalogPrimaryActionType, P as FavoriteEntityType, E as McpResourceKind, I as PUBLIC_SKILL_BUCKET, e as SKILL_LISTING_MAX_PAGES, F as SKILL_LISTING_PAGE_SIZE, f as SKILL_MANIFEST_MAX_BYTES, G as SkillPreviewErrorKind, p as SkillSource, q as buildApplicationMcpUrl, l as buildChatCompletionsUrl, X as buildConnectApi, w as buildDeploymentConnectApi, a as buildPromptOverview, C as buildResponsesUrl, v as buildSkillContentTree, n as buildSkillOverview, O as buildToolsetMcpUrl, T as createPublishApiClient, L as deriveAvailableTabIds, K as deriveFavoriteItems, $ as encodeDeploymentId, A as filterCatalogItemsBySelector, j as filterHiddenOwnedItems, Q as findDeploymentByIdOrReference, c as isOrganisationPromptItem, s as mapDeploymentDetailsDtoToEntityDetails, u as mapDeploymentLimitsDtoToCatalogLimits, o as mapDeploymentLimitsToInput, _ as mapDeploymentToCatalogItem, Z as mapDeploymentToolsetCredentials, b as mapEntityDetailsToCatalogDetails, d as mapPromptToCatalogItem, R as mapPublishConversationResultDto, N as mapPublishHistoryEntryDto, J as mapSkillToCatalogItem, S as mapToolsetCredentials, t as mapToolsetToCatalogItem, h as parseSkillResourceUrl, y as readSkillFileBytes, i as readSkillManifest, V as reconcileFilterTopics, k as resolveCatalogPrimaryAction, x as resolveDeploymentFolder, Y as resolveMcpResourceKind, r as resolveSkillFileDownloadPath, m as resolveSkillManifestFileId, M as toPublishEntityType, g as toPublishRuleDto, B as useCatalogItemDetails, D as useFavoriteEntitiesState, U as usePublishFolders, z as useSkillFilePreview };
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { AttachmentDisplayResolvers
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { AttachmentDisplayResolvers } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { DisplayAttachment } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { Message } from '@epam/ai-dial-chat-shared';
|
|
4
|
+
import { QuotationSource } from '@epam/ai-dial-source-panel';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Derives uploaded (user), generated (assistant) attachment lists, and
|
|
8
|
+
* quotation sources from a conversation's message array. All lists are
|
|
9
|
+
* memoised on the `messages` reference. `resolvers` are forwarded to
|
|
10
|
+
* `@epam/ai-dial-chat-shared`'s attachment mapper for preview/play URL
|
|
11
|
+
* resolution — pass an empty object when the host has no such resolution.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useConversationSources: (messages: Message[], resolvers?: AttachmentDisplayResolvers) => UseConversationSourcesResult;
|
|
14
|
+
|
|
15
|
+
/** Return value of {@link useConversationSources}. */
|
|
16
|
+
export declare interface UseConversationSourcesResult {
|
|
17
|
+
/** Deduplicated attachments the user uploaded across the conversation. */
|
|
18
|
+
uploaded: DisplayAttachment[];
|
|
19
|
+
/** Deduplicated attachments the assistant generated across the conversation. */
|
|
20
|
+
generated: DisplayAttachment[];
|
|
21
|
+
/** Quotation sources referenced by assistant messages, deduplicated by URL. */
|
|
22
|
+
sources: QuotationSource[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { }
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { ConversationsApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { ConversationTransferErrorCode } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
|
|
4
|
+
import { ConversationTransferWarningCode } from '@epam/ai-dial-chat-shared';
|
|
5
|
+
import { FilesApi } from '@epam/ai-dial-chat-api-client';
|
|
6
|
+
|
|
7
|
+
/** Whether an export includes the conversation's attachments. */
|
|
8
|
+
export declare enum ConversationExportMode {
|
|
9
|
+
WithAttachments = "withAttachments",
|
|
10
|
+
WithoutAttachments = "withoutAttachments"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ConversationTransferErrorCode }
|
|
14
|
+
|
|
15
|
+
/** Structured, translation-free error report for a transfer job. */
|
|
16
|
+
export declare interface ConversationTransferErrorEvent {
|
|
17
|
+
jobId: string;
|
|
18
|
+
code: ConversationTransferErrorCode;
|
|
19
|
+
/** Conversation title(s) relevant to the error, when applicable. */
|
|
20
|
+
titles?: string[];
|
|
21
|
+
/** Resolved trace id for the failing request, when the host's `resolveErrorTraceId` supplies one. */
|
|
22
|
+
traceId?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Structured, translation-free success report for a transfer job. */
|
|
26
|
+
export declare interface ConversationTransferSuccessEvent {
|
|
27
|
+
jobId: string;
|
|
28
|
+
/** Conversation title(s) affected, when applicable. */
|
|
29
|
+
titles?: string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ConversationTransferWarningCode }
|
|
33
|
+
|
|
34
|
+
/** Structured, translation-free warning report for a transfer job. */
|
|
35
|
+
export declare interface ConversationTransferWarningEvent {
|
|
36
|
+
jobId: string;
|
|
37
|
+
code: ConversationTransferWarningCode;
|
|
38
|
+
/** Names relevant to the warning (e.g. skipped attachment file names). */
|
|
39
|
+
names?: string[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Default ceiling on the summed byte length of an export's attachments.
|
|
44
|
+
*
|
|
45
|
+
* The bound is on *input* bytes even though what it protects is peak heap:
|
|
46
|
+
* the archive pipeline holds roughly three copies at once — every attachment
|
|
47
|
+
* in memory, `zipSync`'s output buffer (already-compressed media barely
|
|
48
|
+
* shrinks), and the copy `buildDialArchive` makes before handing it to `Blob`.
|
|
49
|
+
* 512 MiB of input therefore peaks near 1.5 GiB, which fits a 64-bit desktop
|
|
50
|
+
* tab. Sizing this against the ~2 GiB single-`ArrayBuffer` ceiling would be
|
|
51
|
+
* the wrong bound — that limits one buffer, not the three held together.
|
|
52
|
+
*/
|
|
53
|
+
export declare const DEFAULT_MAX_ARCHIVE_BYTES: number;
|
|
54
|
+
|
|
55
|
+
/** Placeholder app name used in every export file name — this branch has no app display-name config yet. */
|
|
56
|
+
export declare const EXPORT_APP_NAME = "ai_dial";
|
|
57
|
+
|
|
58
|
+
declare interface ExportErrorClassification {
|
|
59
|
+
isUnauthorized?: boolean;
|
|
60
|
+
isNotFound?: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Which export file was produced, used to derive its file name/extension. */
|
|
64
|
+
export declare enum ExportFileNameKind {
|
|
65
|
+
SingleConversation = "chat_conversation",
|
|
66
|
+
SingleConversationWithAttachments = "chat_with_attachments",
|
|
67
|
+
AllConversationsHistory = "chat_conversations_history"
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Formats a `Date` as `YYYY-MM` using its local-time components. */
|
|
71
|
+
export declare const formatDateYM: (date: Date) => string;
|
|
72
|
+
|
|
73
|
+
/** Formats a `Date` as `YYYY-MM-DD` using its local-time components. */
|
|
74
|
+
export declare const formatDateYMD: (date: Date) => string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Formats a list of names for the aggregate success/failure notifications,
|
|
78
|
+
* each individually quoted and comma-separated (e.g. `"A", "B", "C"`) so the
|
|
79
|
+
* i18n template only needs to append the trailing verb phrase.
|
|
80
|
+
*/
|
|
81
|
+
export declare const formatQuotedNameList: (names: string[]) => string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Owns the export job queue: fetches conversation data through the injected
|
|
85
|
+
* generated-client operations, builds the JSON v5 / ZIP output via the pure
|
|
86
|
+
* export utils, reports determinate per-job progress and structured
|
|
87
|
+
* success/warning/error events, and tracks each job's lifecycle (in progress /
|
|
88
|
+
* success / failed / canceled) independently so multiple exports can run
|
|
89
|
+
* concurrently.
|
|
90
|
+
*/
|
|
91
|
+
export declare const useConversationExport: ({ conversationsApi, filesApi, normalizeConversationPath, classifyTransferError, resolveErrorTraceId, maxArchiveBytes, onSuccess, onWarning, onError, }: UseConversationExportParams) => UseConversationExportResult;
|
|
92
|
+
|
|
93
|
+
/** Parameters for {@link useConversationExport}. */
|
|
94
|
+
export declare interface UseConversationExportParams {
|
|
95
|
+
/** Already-configured generated-client instance used to read conversations. */
|
|
96
|
+
conversationsApi: Pick<ConversationsApi, 'getConversation' | 'listConversations'>;
|
|
97
|
+
/** Already-configured generated-client instance used to download attachments. */
|
|
98
|
+
filesApi: Pick<FilesApi, 'downloadFileRaw'>;
|
|
99
|
+
/** Resolves a conversation id to the bucket-qualified path `getConversation` expects. */
|
|
100
|
+
normalizeConversationPath: (conversationId: string) => string;
|
|
101
|
+
/** Classifies a thrown error as unauthorized/not-found. Host-owned error taxonomy; defaults to neither. */
|
|
102
|
+
classifyTransferError?: (error: unknown) => ExportErrorClassification;
|
|
103
|
+
/** Resolves a trace id for a failing request, for display in an error notification. */
|
|
104
|
+
resolveErrorTraceId?: (error: unknown) => Promise<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Ceiling on the summed byte length of an export's attachments; a larger
|
|
107
|
+
* export fails with `FileTooLarge` instead of being zipped. Defaults to
|
|
108
|
+
* {@link DEFAULT_MAX_ARCHIVE_BYTES}.
|
|
109
|
+
*/
|
|
110
|
+
maxArchiveBytes?: number;
|
|
111
|
+
/** Called when a job completes successfully. */
|
|
112
|
+
onSuccess?: (event: ConversationTransferSuccessEvent) => void;
|
|
113
|
+
/** Called when a job succeeds but had to skip something (e.g. an unreachable attachment). */
|
|
114
|
+
onWarning?: (event: ConversationTransferWarningEvent) => void;
|
|
115
|
+
/** Called when a job fails. */
|
|
116
|
+
onError?: (event: ConversationTransferErrorEvent) => void;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** Return value of {@link useConversationExport}. */
|
|
120
|
+
export declare interface UseConversationExportResult {
|
|
121
|
+
/** Export jobs, most recently added last. Multiple jobs can be in progress concurrently. */
|
|
122
|
+
jobs: ConversationTransferJob[];
|
|
123
|
+
/** Enqueues a single-conversation export job and starts it immediately. */
|
|
124
|
+
exportSingle: (conversationId: string, title: string, mode: ConversationExportMode) => Promise<void>;
|
|
125
|
+
/** Enqueues an export-all job and starts it immediately. */
|
|
126
|
+
exportAll: () => Promise<void>;
|
|
127
|
+
/** Aborts a job's underlying requests and marks it canceled, keeping it in `jobs`. */
|
|
128
|
+
cancelJob: (jobId: string) => void;
|
|
129
|
+
/** Removes a job from the queue. If still in progress, aborts its underlying requests. */
|
|
130
|
+
dismissJob: (jobId: string) => void;
|
|
131
|
+
/** Re-attempts a failed or canceled job in place (same job id, same parameters). */
|
|
132
|
+
retryJob: (jobId: string) => void;
|
|
133
|
+
/** Aborts all in-progress jobs and clears the entire queue. */
|
|
134
|
+
dismissAll: () => void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Owns the import job queue: parses a selected export file (`.json` or
|
|
139
|
+
* `.dial`/`.zip`, v5 envelope, old- or new-chat origin) once per file, then
|
|
140
|
+
* re-uploads any archive attachments to `uploads/<YYYY-MM>/` —
|
|
141
|
+
* disambiguating a name collision with a ` (n)` suffix instead of rejecting
|
|
142
|
+
* it — rewrites attachment references (and renamed titles), regenerates each
|
|
143
|
+
* conversation's id/path with a fresh UUID (collision-free save, no replace
|
|
144
|
+
* dialog), and persists every conversation through the injected
|
|
145
|
+
* `conversationsApi`. One job per imported file, not per conversation.
|
|
146
|
+
*/
|
|
147
|
+
export declare const useConversationImport: ({ conversationsApi, filesApi, bucket, onImported, classifyTransferError, resolveErrorTraceId, onSuccess, onWarning, onError, }: UseConversationImportParams) => UseConversationImportResult;
|
|
148
|
+
|
|
149
|
+
/** Parameters for {@link useConversationImport}. */
|
|
150
|
+
export declare interface UseConversationImportParams {
|
|
151
|
+
/** Already-configured generated-client instance used to persist imported conversations. */
|
|
152
|
+
conversationsApi: Pick<ConversationsApi, 'saveConversation'>;
|
|
153
|
+
/** Already-configured generated-client instance used to list/upload attachments. */
|
|
154
|
+
filesApi: Pick<FilesApi, 'listFiles' | 'uploadFile'>;
|
|
155
|
+
/** The current user's DIAL Core storage bucket. Import fails with `MissingBucket` when `undefined`. */
|
|
156
|
+
bucket: string | undefined;
|
|
157
|
+
/** Called after at least one conversation in a job was imported successfully. */
|
|
158
|
+
onImported?: () => Promise<void> | void;
|
|
159
|
+
/** Classifies a thrown error as unauthorized. Host-owned error taxonomy; defaults to never. */
|
|
160
|
+
classifyTransferError?: (error: unknown) => {
|
|
161
|
+
isUnauthorized?: boolean;
|
|
162
|
+
};
|
|
163
|
+
/** Resolves a trace id for a failing request, for display in an error notification. */
|
|
164
|
+
resolveErrorTraceId?: (error: unknown) => Promise<string | undefined>;
|
|
165
|
+
/** Called when a job completes with at least one successfully imported conversation. */
|
|
166
|
+
onSuccess?: (event: ConversationTransferSuccessEvent) => void;
|
|
167
|
+
/** Called when a job succeeds but had to skip an attachment. */
|
|
168
|
+
onWarning?: (event: ConversationTransferWarningEvent) => void;
|
|
169
|
+
/** Called when a job fails, or when some conversations within it failed. */
|
|
170
|
+
onError?: (event: ConversationTransferErrorEvent) => void;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Return value of {@link useConversationImport}. */
|
|
174
|
+
export declare interface UseConversationImportResult {
|
|
175
|
+
/** Import jobs, most recently added last. Multiple jobs can be in progress concurrently. */
|
|
176
|
+
jobs: ConversationTransferJob[];
|
|
177
|
+
/** Parses the given file and starts importing it as a new job. */
|
|
178
|
+
importConversations: (file: File) => Promise<void>;
|
|
179
|
+
/** Aborts a job's underlying requests and marks it canceled, keeping it in `jobs`. */
|
|
180
|
+
cancelJob: (jobId: string) => void;
|
|
181
|
+
/** Removes a job from the queue. If still in progress, aborts its underlying requests. */
|
|
182
|
+
dismissJob: (jobId: string) => void;
|
|
183
|
+
/** Re-attempts a failed or canceled job in place (same job id, reusing the already-parsed file). */
|
|
184
|
+
retryJob: (jobId: string) => void;
|
|
185
|
+
/** Aborts all in-progress jobs and clears the entire queue. */
|
|
186
|
+
dismissAll: () => void;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export { }
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as e, t } from "./date-BeuD8G79.js";
|
|
2
|
+
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u } from "./useConversationImport-C2h1GBY4.js";
|
|
3
|
+
export { s as ConversationExportMode, l as ConversationTransferErrorCode, r as ConversationTransferWarningCode, o as DEFAULT_MAX_ARCHIVE_BYTES, n as EXPORT_APP_NAME, a as ExportFileNameKind, t as formatDateYM, e as formatDateYMD, i as formatQuotedNameList, c as useConversationExport, u as useConversationImport };
|