@epam/ai-dial-chat-hooks 1.3.0-dev.16 → 1.3.0-dev.161
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 +30 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-error/api-error.js +2 -2
- 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/api-transport/create-unauthorized-middleware.js +4 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- package/attachment/useAttachmentAction/useAttachmentAction.js +5 -8
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
- package/attachments.d.ts +2 -94
- package/catalog/catalog-derivations.d.ts +27 -0
- package/catalog/catalog-derivations.d.ts.map +1 -0
- package/catalog/catalog-derivations.js +1 -1
- package/catalog/catalog-primary-action.d.ts +47 -0
- package/catalog/catalog-primary-action.d.ts.map +1 -0
- package/catalog/create-publish-api.d.ts +34 -0
- package/catalog/create-publish-api.d.ts.map +1 -0
- package/catalog/create-publish-api.js +4 -0
- 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 +42 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/entity-details.d.ts +146 -0
- package/catalog/entity-details.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.d.ts +29 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.js +3 -4
- package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.d.ts +81 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.js +1 -1
- package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.d.ts +113 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.js +1 -5
- package/catalog/mcp-endpoint-url.d.ts +18 -0
- package/catalog/mcp-endpoint-url.d.ts.map +1 -0
- package/catalog/publish.d.ts +35 -0
- package/catalog/publish.d.ts.map +1 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +107 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +90 -71
- package/catalog/useCatalogItemDetails.d.ts +70 -0
- package/catalog/useCatalogItemDetails.d.ts.map +1 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- package/catalog/usePublishFolders/usePublishFolders.js +1 -1
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.d.ts +64 -0
- package/catalog/useSkillItemDetails.d.ts.map +1 -0
- package/catalog/useSkillItemDetails.js +3 -3
- package/catalog.d.ts +2 -1436
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
- package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
- package/conversation/conversation-draft/conversation-draft-store.js +84 -0
- package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
- package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
- package/conversation/conversation-transfer/async.d.ts +10 -0
- package/conversation/conversation-transfer/async.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.js +31 -9
- package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
- package/conversation/conversation-transfer/date.d.ts +5 -0
- package/conversation/conversation-transfer/date.d.ts.map +1 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/export-conversation.js +19 -18
- package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.js +65 -69
- package/conversation/conversation-transfer/progress.d.ts +60 -0
- package/conversation/conversation-transfer/progress.d.ts.map +1 -0
- package/conversation/conversation-transfer/progress.js +1 -1
- package/conversation/conversation-transfer/queue.d.ts +54 -0
- package/conversation/conversation-transfer/queue.d.ts.map +1 -0
- package/conversation/conversation-transfer/types.d.ts +36 -0
- package/conversation/conversation-transfer/types.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.d.ts +31 -0
- package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-export.js +1 -7
- package/conversation/conversation-transfer/zip-import.d.ts +17 -0
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
- package/conversation/conversation-transfer/zip-import.js +1 -1
- package/conversation/create-chat-stream-api.d.ts +109 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.js +57 -47
- 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 +38 -0
- package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.js +1 -1
- 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 +67 -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/stage.d.ts +77 -0
- package/conversation/stage.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 +35 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
- package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
- package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.js +59 -60
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
- package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
- package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
- package/conversation/useConversationHandlers/message-utils.js +2 -2
- package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
- package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
- package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
- package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
- package/conversation/useConversationImport/useConversationImport.js +24 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +31 -30
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.js +2 -6
- package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
- package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
- package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
- package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.d.ts +7 -0
- package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
- package/conversation/useConversationStream/conversation-path.js +2 -2
- package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
- package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
- package/conversation/useConversationStream/frame-scheduler.js +17 -17
- package/conversation/useConversationStream/generation-resume.d.ts +98 -0
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
- package/conversation/useConversationStream/generation-resume.js +64 -65
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.js +248 -241
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
- package/conversation-overlay.d.ts +2 -7
- package/conversation-overlay.js +1 -2
- package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
- package/conversation-sources.d.ts +2 -25
- package/conversation-sources.js +1 -2
- package/conversation-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- package/conversation.js +34 -32
- package/entry-points/attachments.d.ts +3 -0
- package/entry-points/attachments.d.ts.map +1 -0
- package/entry-points/catalog.d.ts +25 -0
- package/entry-points/catalog.d.ts.map +1 -0
- package/entry-points/conversation-overlay.d.ts +2 -0
- package/entry-points/conversation-overlay.d.ts.map +1 -0
- package/entry-points/conversation-sources.d.ts +2 -0
- package/entry-points/conversation-sources.d.ts.map +1 -0
- package/entry-points/conversation-transfer.d.ts +7 -0
- package/entry-points/conversation-transfer.d.ts.map +1 -0
- package/entry-points/conversation.d.ts +36 -0
- package/entry-points/conversation.d.ts.map +1 -0
- package/entry-points/file-manager-canvas.d.ts +2 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +31 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/mcp-apps.d.ts +6 -0
- package/entry-points/mcp-apps.d.ts.map +1 -0
- package/entry-points/oauth.d.ts +10 -0
- package/entry-points/oauth.d.ts.map +1 -0
- package/entry-points/offline-credentials.d.ts +5 -0
- package/entry-points/offline-credentials.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +9 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -0
- package/entry-points/scroll-anchoring.d.ts +2 -0
- package/entry-points/scroll-anchoring.d.ts.map +1 -0
- package/entry-points/sharing.d.ts +3 -0
- package/entry-points/sharing.d.ts.map +1 -0
- package/entry-points/skill-editor.d.ts +9 -0
- package/entry-points/skill-editor.d.ts.map +1 -0
- package/entry-points/skills-state.d.ts +2 -0
- package/entry-points/skills-state.d.ts.map +1 -0
- package/entry-points/source-content.d.ts +2 -0
- package/entry-points/source-content.d.ts.map +1 -0
- package/entry-points/usage-limits.d.ts +8 -0
- package/entry-points/usage-limits.d.ts.map +1 -0
- package/entry-points/usage.d.ts +3 -0
- package/entry-points/usage.d.ts.map +1 -0
- package/entry-points/utils.d.ts +17 -0
- package/entry-points/utils.d.ts.map +1 -0
- package/entry-points/viewport-layout.d.ts +4 -0
- package/entry-points/viewport-layout.d.ts.map +1 -0
- package/file-manager-canvas.d.ts +2 -418
- package/file-manager-canvas.js +1 -2
- package/file-manager.d.ts +2 -1250
- package/file-manager.js +21 -21
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +123 -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 +21 -0
- package/files/attachment-types.d.ts.map +1 -0
- package/files/attachment-types.js +1 -1
- package/files/create-files-api.d.ts +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-files-api.js +1 -1
- package/files/create-upload-file-with-progress.d.ts +27 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.js +42 -34
- package/files/dial-file-manager-copy-move.util.d.ts +15 -0
- package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.d.ts +55 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.js +97 -69
- package/files/dial-file-manager-path.util.d.ts +48 -0
- package/files/dial-file-manager-path.util.d.ts.map +1 -0
- package/files/dial-file-manager.model.d.ts +36 -0
- package/files/dial-file-manager.model.d.ts.map +1 -0
- package/files/dial-file-manager.types.d.ts +335 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- 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-to-attachment.js +3 -3
- package/files/dial-file.d.ts +17 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/dial-files-api.d.ts +71 -0
- package/files/dial-files-api.d.ts.map +1 -0
- package/files/download-destination.d.ts +31 -0
- package/files/download-destination.d.ts.map +1 -0
- package/files/download-progress.d.ts +33 -0
- package/files/download-progress.d.ts.map +1 -0
- package/files/download-progress.js +28 -0
- package/files/file-manager-variant.d.ts +3 -0
- package/files/file-manager-variant.d.ts.map +1 -0
- package/files/file-name.d.ts +19 -0
- package/files/file-name.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/resolve-dial-file-api-path.d.ts +12 -0
- package/files/resolve-dial-file-api-path.d.ts.map +1 -0
- package/files/source-content.d.ts +28 -0
- package/files/source-content.d.ts.map +1 -0
- package/files/source-content.js +1 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.js +95 -107
- package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- package/files/useDialFileManager/useDialFileManager.js +5 -2
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
- package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
- package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.js +230 -159
- package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +105 -97
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
- package/index.d.ts +167 -6990
- package/index.d.ts.map +1 -0
- package/index.js +115 -101
- package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
- package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
- package/mcp-apps/mcp-apps-api-client.js +18 -17
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
- package/mcp-apps.d.ts +2 -256
- package/oauth/authorize-url.d.ts +16 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- package/oauth/authorize-url.js +1 -1
- package/oauth/handshake.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- package/oauth/handshake.js +3 -10
- package/oauth/models.d.ts +81 -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/popup.js +19 -17
- package/oauth/toolset-id.d.ts +53 -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/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
- package/oauth.d.ts +2 -472
- package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
- package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
- package/offline-credentials/map-offline-credentials-response.js +15 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
- package/offline-credentials.d.ts +2 -0
- package/offline-credentials.js +5 -0
- package/package.json +31 -17
- package/prompt/export-prompt.d.ts +31 -0
- package/prompt/export-prompt.d.ts.map +1 -0
- package/prompt/prompt-resource.d.ts +30 -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/check-scheduled-task-auth-session-error.d.ts +27 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
- package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
- package/scheduled-task/scheduled-task-description.d.ts +38 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-description.js +1 -1
- 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-preparation.d.ts +19 -0
- package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-trigger.js +9 -8
- package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
- package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.js +67 -79
- package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-tasks.js +1 -1
- package/scheduled-tasks.d.ts +2 -250
- package/scheduled-tasks.js +2 -1
- package/scroll-anchoring.d.ts +2 -50
- package/scroll-anchoring.js +1 -2
- package/shared/application-schema.d.ts +16 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/application-schema.js +3 -3
- package/shared/browser-timezone.d.ts +7 -0
- package/shared/browser-timezone.d.ts.map +1 -0
- package/shared/cron-day-of-month.d.ts +21 -0
- package/shared/cron-day-of-month.d.ts.map +1 -0
- package/shared/cron-day-of-month.js +10 -10
- 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/locale.js +2 -2
- package/shared/string-utils.d.ts +11 -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/sharing.d.ts +2 -65
- package/skill/skill-archive.d.ts +7 -0
- package/skill/skill-archive.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-batch-validation.js +18 -17
- 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 +46 -0
- package/skill/skill-types.d.ts.map +1 -0
- package/skill/skill-types.js +1 -1
- package/skill/skill.d.ts +160 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/skill.js +12 -15
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
- package/skill/useSkillEditorLoad.d.ts +74 -0
- package/skill/useSkillEditorLoad.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.d.ts +125 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.js +1 -5
- package/skill/useSkillFileActions.d.ts +60 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillFilePreview.d.ts +38 -0
- package/skill/useSkillFilePreview.d.ts.map +1 -0
- package/skill/useSkillsState/useSkillsState.d.ts +35 -0
- package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
- package/skill-editor.d.ts +2 -655
- package/skills-state.d.ts +2 -40
- package/skills-state.js +1 -2
- package/source-content.d.ts +2 -29
- package/source-content.js +1 -2
- package/usage/map-usage-data-to-dashboard.d.ts +39 -0
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
- package/usage/map-user-usage-to-model-limits.d.ts +62 -0
- package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
- package/usage/usage-banner-source.d.ts +24 -0
- package/usage/usage-banner-source.d.ts.map +1 -0
- package/usage/usage-banner-source.js +60 -0
- package/usage/usage-period.d.ts +7 -0
- package/usage/usage-period.d.ts.map +1 -0
- package/usage/usage-period.js +6 -0
- package/usage/usage-reset-time.d.ts +69 -0
- package/usage/usage-reset-time.d.ts.map +1 -0
- package/usage/usage-reset-time.js +72 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
- package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
- package/usage/useUsageData/useUsageData.d.ts +28 -0
- package/usage/useUsageData/useUsageData.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
- package/usage-limits.d.ts +2 -0
- package/usage-limits.js +8 -0
- package/usage.d.ts +2 -125
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
- package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.js +3 -3
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
- package/useShareLink/useShareLink.d.ts +23 -0
- package/useShareLink/useShareLink.d.ts.map +1 -0
- package/useShareLink/useShareLink.js +1 -0
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
- package/useToolsMenu/useToolsMenu.d.ts +31 -0
- package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
- package/useViewportWidth/useViewportWidth.d.ts +3 -0
- package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
- package/utils.d.ts +2 -404
- package/viewport-layout.d.ts +2 -27
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Attachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/** A stable snapshot of one eligible native text selection. */
|
|
3
|
+
export interface MessageSelectionReplySnapshot {
|
|
4
|
+
/** Scope that owned the selection when it was captured. */
|
|
5
|
+
conversationId: string;
|
|
6
|
+
/** Message text root containing the captured range. */
|
|
7
|
+
body: HTMLDivElement;
|
|
8
|
+
/** Captured native range. */
|
|
9
|
+
range: Range;
|
|
10
|
+
/** Native selected text preserved for the generated file. */
|
|
11
|
+
text: string;
|
|
12
|
+
/** Visible fragment of the selected range. */
|
|
13
|
+
rect: DOMRect;
|
|
14
|
+
}
|
|
15
|
+
/** Parameters accepted by {@link useMessageSelectionReply}. */
|
|
16
|
+
export interface UseMessageSelectionReplyParams {
|
|
17
|
+
/** Identifier used to discard selection and queued files after a scope change. */
|
|
18
|
+
conversationId: string;
|
|
19
|
+
/** Whether the host currently permits a Reply attachment. */
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
/** Files from the host's ordinary page-drop queue. */
|
|
22
|
+
droppedFiles: File[];
|
|
23
|
+
/** Acknowledges the captured page-drop batch after the composer accepts it. */
|
|
24
|
+
onDroppedFilesConsumed: () => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Captures eligible message text and creates Reply files for an existing composer
|
|
28
|
+
* attachment flow without acquiring host deployment, upload or localization knowledge.
|
|
29
|
+
*/
|
|
30
|
+
export declare const useMessageSelectionReply: ({ conversationId, enabled, droppedFiles, onDroppedFilesConsumed, }: UseMessageSelectionReplyParams) => {
|
|
31
|
+
contentRef: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
32
|
+
actionRef: import('react').RefObject<HTMLDivElement | null>;
|
|
33
|
+
selection: MessageSelectionReplySnapshot | null;
|
|
34
|
+
onReply: () => void;
|
|
35
|
+
dismiss: () => void;
|
|
36
|
+
pendingFiles: File[];
|
|
37
|
+
onFilesConsumed: () => void;
|
|
38
|
+
focusRequestId: number | undefined;
|
|
39
|
+
onAttachmentsChange: (attachments: Attachment[]) => void;
|
|
40
|
+
addedRevision: number;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=useMessageSelectionReply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMessageSelectionReply.d.ts","sourceRoot":"","sources":["../../../src/conversation/useMessageSelectionReply/useMessageSelectionReply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAU5D,+DAA+D;AAC/D,MAAM,WAAW,6BAA6B;IAC5C,2DAA2D;IAC3D,cAAc,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,IAAI,EAAE,cAAc,CAAC;IACrB,6BAA6B;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAC;CACf;AAED,+DAA+D;AAC/D,MAAM,WAAW,8BAA8B;IAC7C,kFAAkF;IAClF,cAAc,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,OAAO,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,+EAA+E;IAC/E,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC;AA2CD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,oEAKtC,8BAA8B;uBAyBtB,cAAc,GAAG,IAAI;;;;;;;;uCA6QwB,UAAU,EAAE;;CA0BnE,CAAC"}
|
|
@@ -112,16 +112,10 @@ var o = "button,input,textarea,select,iframe,[role=\"button\"],[contenteditable=
|
|
|
112
112
|
"End",
|
|
113
113
|
"PageUp",
|
|
114
114
|
"PageDown"
|
|
115
|
-
].includes(e.key) || (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "a"))
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (g.current) {
|
|
120
|
-
if (e.key === "Escape") {
|
|
121
|
-
O();
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
if (e.key === "Tab" && !e.shiftKey && !h.current?.contains(document.activeElement)) {
|
|
115
|
+
].includes(e.key) || (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "a")) r = !0, O(), _.current = null;
|
|
116
|
+
else if (g.current) {
|
|
117
|
+
if (e.key === "Escape") O();
|
|
118
|
+
else if (e.key === "Tab" && !e.shiftKey && !h.current?.contains(document.activeElement)) {
|
|
125
119
|
let t = h.current?.querySelector("button");
|
|
126
120
|
t && (e.preventDefault(), t.focus());
|
|
127
121
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Reason a {@link useTranscribeAudio} call failed, translation-free — the host maps it to text. */
|
|
2
|
+
export declare enum AudioTranscriptionErrorReason {
|
|
3
|
+
/** No usable ASR model or deployment is configured for the current bucket. */
|
|
4
|
+
Unavailable = "unavailable",
|
|
5
|
+
/** The recording exceeds the caller's configured size limit. */
|
|
6
|
+
TooLarge = "tooLarge",
|
|
7
|
+
/** Recognition is rate-limited, unavailable, or exhausted short gateway retries. */
|
|
8
|
+
Busy = "busy",
|
|
9
|
+
/** Recognition failed for any other reason. */
|
|
10
|
+
Failed = "failed"
|
|
11
|
+
}
|
|
12
|
+
/** Thrown by `transcribeAudio`; carries a machine-readable `reason` instead of translated text. */
|
|
13
|
+
export declare class AudioTranscriptionError extends Error {
|
|
14
|
+
readonly reason: AudioTranscriptionErrorReason;
|
|
15
|
+
/** The size limit that was exceeded, present only when `reason` is `TooLarge`. */
|
|
16
|
+
readonly limitBytes?: number;
|
|
17
|
+
constructor(reason: AudioTranscriptionErrorReason, limitBytes?: number);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=audio-transcription-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-transcription-error.d.ts","sourceRoot":"","sources":["../../../src/conversation/useTranscribeAudio/audio-transcription-error.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,oBAAY,6BAA6B;IACvC,8EAA8E;IAC9E,WAAW,gBAAgB;IAC3B,gEAAgE;IAChE,QAAQ,aAAa;IACrB,oFAAoF;IACpF,IAAI,SAAS;IACb,+CAA+C;IAC/C,MAAM,WAAW;CAClB;AAED,mGAAmG;AACnG,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,MAAM,EAAE,6BAA6B,CAAC;IAC/C,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEjB,MAAM,EAAE,6BAA6B,EAAE,UAAU,CAAC,EAAE,MAAM;CAMvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcription-retry.d.ts","sourceRoot":"","sources":["../../../src/conversation/useTranscribeAudio/transcription-retry.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,OAAO,CAAC,MAAM,CAAC,EAChC,QAAQ,WAAW,KAClB,OAAO,CAAC,MAAM,CAmChB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FilesApi, TranscriptionApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Request shape the host's selected-deployment recognition call accepts. */
|
|
3
|
+
export interface TranscribeWithDeploymentParams {
|
|
4
|
+
audioUrl: string;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
deployment: string;
|
|
7
|
+
signal: AbortSignal;
|
|
8
|
+
}
|
|
9
|
+
/** Parameters for {@link useTranscribeAudio}. */
|
|
10
|
+
export interface UseTranscribeAudioParams {
|
|
11
|
+
/** Already-configured generated-client instance used for the ASR-model path. */
|
|
12
|
+
transcriptionApi?: Pick<TranscriptionApi, 'transcribeAudio'>;
|
|
13
|
+
/** Already-configured generated-client instance used to upload the recording. */
|
|
14
|
+
filesApi: Pick<FilesApi, 'uploadFile'>;
|
|
15
|
+
/**
|
|
16
|
+
* Host-configured call for the selected-deployment path. The generated
|
|
17
|
+
* chat-completions client cannot express this endpoint's `custom_content`
|
|
18
|
+
* request shape, so the host supplies its own raw request.
|
|
19
|
+
*/
|
|
20
|
+
transcribeWithDeployment?: (params: TranscribeWithDeploymentParams) => Promise<string>;
|
|
21
|
+
/** DIAL Core bucket the recording is uploaded into. */
|
|
22
|
+
bucket: string | undefined | null;
|
|
23
|
+
/** Recognizes via `transcriptionApi` when set; otherwise `selectedDeploymentId` is used. */
|
|
24
|
+
asrModelId?: string;
|
|
25
|
+
/** Deployment id used for recognition when `asrModelId` is not set. */
|
|
26
|
+
selectedDeploymentId?: string | null;
|
|
27
|
+
/** Recordings larger than this are rejected with `TooLarge` before upload. */
|
|
28
|
+
maxSizeBytes: number;
|
|
29
|
+
}
|
|
30
|
+
/** Return value of {@link useTranscribeAudio}. */
|
|
31
|
+
export interface UseTranscribeAudioResult {
|
|
32
|
+
/** Uploads and recognizes one complete recording; rejects with an {@link AudioTranscriptionError}. */
|
|
33
|
+
transcribeAudio: (file: File, signal: AbortSignal) => Promise<string>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Uploads a complete voice recording to DIAL Core storage and recognizes it,
|
|
37
|
+
* preferring the configured ASR model and falling back to the selected
|
|
38
|
+
* deployment. Retries transient upstream failures. Error text is not this
|
|
39
|
+
* library's concern — callers translate `AudioTranscriptionErrorReason` at
|
|
40
|
+
* the call site.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useTranscribeAudio: ({ transcriptionApi, filesApi, transcribeWithDeployment, bucket, asrModelId, selectedDeploymentId, maxSizeBytes, }: UseTranscribeAudioParams) => UseTranscribeAudioResult;
|
|
43
|
+
//# sourceMappingURL=useTranscribeAudio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranscribeAudio.d.ts","sourceRoot":"","sources":["../../../src/conversation/useTranscribeAudio/useTranscribeAudio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAShF,6EAA6E;AAC7E,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,wBAAwB;IACvC,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC7D,iFAAiF;IACjF,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACvC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CACzB,MAAM,EAAE,8BAA8B,KACnC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,uDAAuD;IACvD,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAClC,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,8EAA8E;IAC9E,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,kDAAkD;AAClD,MAAM,WAAW,wBAAwB;IACvC,sGAAsG;IACtG,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,mHAQhC,wBAAwB,KAAG,wBAyE7B,CAAC"}
|
|
@@ -1,41 +1,44 @@
|
|
|
1
1
|
import { AudioTranscriptionError as e, AudioTranscriptionErrorReason as t } from "./audio-transcription-error.js";
|
|
2
2
|
import { withTranscriptionRetry as n } from "./transcription-retry.js";
|
|
3
|
-
import {
|
|
3
|
+
import { normalizeMimeType as r } from "@epam/ai-dial-chat-shared";
|
|
4
|
+
import { useCallback as i } from "react";
|
|
4
5
|
//#region src/conversation/useTranscribeAudio/useTranscribeAudio.ts
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
7
|
-
if (
|
|
6
|
+
var a = ({ transcriptionApi: a, filesApi: o, transcribeWithDeployment: s, bucket: c, asrModelId: l, selectedDeploymentId: u, maxSizeBytes: d }) => ({ transcribeAudio: i(async (i, f) => {
|
|
7
|
+
if (f.throwIfAborted(), !c || !l && !u) throw new e(t.Unavailable);
|
|
8
|
+
if (i.size > d) throw new e(t.TooLarge, d);
|
|
8
9
|
try {
|
|
9
|
-
let
|
|
10
|
-
bucket:
|
|
11
|
-
path:
|
|
12
|
-
file:
|
|
13
|
-
}, { signal:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
let d = `uploads/${(/* @__PURE__ */ new Date()).toISOString().slice(0, 7)}/${encodeURIComponent(i.name)}`, { url: p } = await o.uploadFile({
|
|
11
|
+
bucket: c,
|
|
12
|
+
path: d,
|
|
13
|
+
file: i
|
|
14
|
+
}, { signal: f });
|
|
15
|
+
f.throwIfAborted();
|
|
16
|
+
let m = r(i.type);
|
|
17
|
+
if (l) {
|
|
18
|
+
if (!a) throw new e(t.Unavailable);
|
|
19
|
+
return await n(async () => (await a.transcribeAudio({ transcribeAudioDto: {
|
|
20
|
+
audioUrl: p,
|
|
21
|
+
mimeType: m
|
|
22
|
+
} }, { signal: f })).transcript ?? "", f);
|
|
20
23
|
}
|
|
21
|
-
if (!
|
|
22
|
-
return await n(() =>
|
|
23
|
-
audioUrl:
|
|
24
|
-
mimeType:
|
|
25
|
-
deployment:
|
|
26
|
-
signal:
|
|
27
|
-
}),
|
|
24
|
+
if (!u || !s) throw new e(t.Unavailable);
|
|
25
|
+
return await n(() => s({
|
|
26
|
+
audioUrl: p,
|
|
27
|
+
mimeType: m,
|
|
28
|
+
deployment: u,
|
|
29
|
+
signal: f
|
|
30
|
+
}), f);
|
|
28
31
|
} catch (n) {
|
|
29
|
-
throw
|
|
32
|
+
throw f.aborted || n instanceof e ? n : new e(t.Failed);
|
|
30
33
|
}
|
|
31
34
|
}, [
|
|
32
|
-
s,
|
|
33
35
|
c,
|
|
34
36
|
l,
|
|
35
37
|
u,
|
|
38
|
+
d,
|
|
39
|
+
o,
|
|
36
40
|
a,
|
|
37
|
-
|
|
38
|
-
o
|
|
41
|
+
s
|
|
39
42
|
]) });
|
|
40
43
|
//#endregion
|
|
41
|
-
export {
|
|
44
|
+
export { a as useTranscribeAudio };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** Maps chat messages to the DIAL Chat Overlay protocol's message shape. */
|
|
5
|
-
export declare const toOverlayMessages: (messages: Message[]) => OverlayChatMessage[];
|
|
6
|
-
|
|
7
|
-
export { }
|
|
1
|
+
export * from './entry-points/conversation-overlay.js'
|
|
2
|
+
export {}
|
package/conversation-overlay.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as toOverlayMessages };
|
|
1
|
+
export { toOverlayMessages } from "./conversation/overlay-messages.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AttachmentDisplayResolvers, DisplayAttachment, Message } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { QuotationSource } from '@epam/ai-dial-source-panel';
|
|
3
|
+
/** Return value of {@link useConversationSources}. */
|
|
4
|
+
export interface UseConversationSourcesResult {
|
|
5
|
+
/** Deduplicated attachments the user uploaded across the conversation. */
|
|
6
|
+
uploaded: DisplayAttachment[];
|
|
7
|
+
/** Deduplicated attachments the assistant generated across the conversation. */
|
|
8
|
+
generated: DisplayAttachment[];
|
|
9
|
+
/** Quotation sources referenced by assistant messages, deduplicated by URL; PDF sources are qualified with `#page=N`. */
|
|
10
|
+
sources: QuotationSource[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Derives uploaded (user), generated (assistant) attachment lists, and
|
|
14
|
+
* quotation sources from a conversation's message array. All lists are
|
|
15
|
+
* memoised on the `messages` reference. `resolvers` are forwarded to
|
|
16
|
+
* `@epam/ai-dial-chat-shared`'s attachment mapper for preview/play URL
|
|
17
|
+
* resolution — pass an empty object when the host has no such resolution.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useConversationSources: (messages: Message[], resolvers?: AttachmentDisplayResolvers) => UseConversationSourcesResult;
|
|
20
|
+
//# sourceMappingURL=useConversationSources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConversationSources.d.ts","sourceRoot":"","sources":["../../../src/conversation-sources/useConversationSources/useConversationSources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,0BAA0B,EAC1B,iBAAiB,EACjB,OAAO,EACR,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAuBlE,sDAAsD;AACtD,MAAM,WAAW,4BAA4B;IAC3C,0EAA0E;IAC1E,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,gFAAgF;IAChF,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,yHAAyH;IACzH,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,OAAO,EAAE,EACnB,YAAW,0BAA4C,KACtD,4BA6DF,CAAC"}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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; PDF sources are qualified with `#page=N`. */
|
|
22
|
-
sources: QuotationSource[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { }
|
|
1
|
+
export * from './entry-points/conversation-sources.js'
|
|
2
|
+
export {}
|
package/conversation-sources.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as useConversationSources };
|
|
1
|
+
export { useConversationSources } from "./conversation-sources/useConversationSources/useConversationSources.js";
|
|
@@ -1,190 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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), drops any
|
|
143
|
-
* reference still pointing into another user's bucket, regenerates each
|
|
144
|
-
* conversation's id/path with a fresh UUID (collision-free save, no replace
|
|
145
|
-
* dialog), and persists every conversation through the injected
|
|
146
|
-
* `conversationsApi`. One job per imported file, not per conversation.
|
|
147
|
-
*/
|
|
148
|
-
export declare const useConversationImport: ({ conversationsApi, filesApi, bucket, onImported, classifyTransferError, resolveErrorTraceId, onSuccess, onWarning, onError, }: UseConversationImportParams) => UseConversationImportResult;
|
|
149
|
-
|
|
150
|
-
/** Parameters for {@link useConversationImport}. */
|
|
151
|
-
export declare interface UseConversationImportParams {
|
|
152
|
-
/** Already-configured generated-client instance used to persist imported conversations. */
|
|
153
|
-
conversationsApi: Pick<ConversationsApi, 'saveConversation'>;
|
|
154
|
-
/** Already-configured generated-client instance used to list/upload attachments. */
|
|
155
|
-
filesApi: Pick<FilesApi, 'listFiles' | 'uploadFile'>;
|
|
156
|
-
/** The current user's DIAL Core storage bucket. Import fails with `MissingBucket` when `undefined`. */
|
|
157
|
-
bucket: string | undefined;
|
|
158
|
-
/** Called after at least one conversation in a job was imported successfully. */
|
|
159
|
-
onImported?: () => Promise<void> | void;
|
|
160
|
-
/** Classifies a thrown error as unauthorized. Host-owned error taxonomy; defaults to never. */
|
|
161
|
-
classifyTransferError?: (error: unknown) => {
|
|
162
|
-
isUnauthorized?: boolean;
|
|
163
|
-
};
|
|
164
|
-
/** Resolves a trace id for a failing request, for display in an error notification. */
|
|
165
|
-
resolveErrorTraceId?: (error: unknown) => Promise<string | undefined>;
|
|
166
|
-
/** Called when a job completes with at least one successfully imported conversation. */
|
|
167
|
-
onSuccess?: (event: ConversationTransferSuccessEvent) => void;
|
|
168
|
-
/** Called when a job succeeds but had to skip an attachment. */
|
|
169
|
-
onWarning?: (event: ConversationTransferWarningEvent) => void;
|
|
170
|
-
/** Called when a job fails, or when some conversations within it failed. */
|
|
171
|
-
onError?: (event: ConversationTransferErrorEvent) => void;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/** Return value of {@link useConversationImport}. */
|
|
175
|
-
export declare interface UseConversationImportResult {
|
|
176
|
-
/** Import jobs, most recently added last. Multiple jobs can be in progress concurrently. */
|
|
177
|
-
jobs: ConversationTransferJob[];
|
|
178
|
-
/** Parses the given file and starts importing it as a new job. */
|
|
179
|
-
importConversations: (file: File) => Promise<void>;
|
|
180
|
-
/** Aborts a job's underlying requests and marks it canceled, keeping it in `jobs`. */
|
|
181
|
-
cancelJob: (jobId: string) => void;
|
|
182
|
-
/** Removes a job from the queue. If still in progress, aborts its underlying requests. */
|
|
183
|
-
dismissJob: (jobId: string) => void;
|
|
184
|
-
/** Re-attempts a failed or canceled job in place (same job id, reusing the already-parsed file). */
|
|
185
|
-
retryJob: (jobId: string) => void;
|
|
186
|
-
/** Aborts all in-progress jobs and clears the entire queue. */
|
|
187
|
-
dismissAll: () => void;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export { }
|
|
1
|
+
export * from './entry-points/conversation-transfer.js'
|
|
2
|
+
export {}
|