@epam/ai-dial-chat-hooks 1.3.0-dev.35 → 1.3.0-dev.353
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 +32 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-error/api-error.js +31 -23
- 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/attach-constraints.d.ts +31 -0
- package/attachment/attach-constraints.d.ts.map +1 -0
- package/attachment/attach-constraints.js +18 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
- package/attachments.d.ts +2 -94
- package/attachments.js +2 -1
- package/catalog/application-credentials.d.ts +15 -0
- package/catalog/application-credentials.d.ts.map +1 -0
- package/catalog/application-credentials.js +28 -0
- package/catalog/catalog-derivations.d.ts +29 -0
- package/catalog/catalog-derivations.d.ts.map +1 -0
- package/catalog/catalog-derivations.js +13 -6
- package/catalog/catalog-entity-kind.d.ts +31 -0
- package/catalog/catalog-entity-kind.d.ts.map +1 -0
- package/catalog/catalog-entity-kind.js +21 -0
- package/catalog/catalog-preferences.d.ts +8 -0
- package/catalog/catalog-preferences.d.ts.map +1 -0
- package/catalog/catalog-preferences.js +5 -0
- 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 +51 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/deployment-id.js +17 -3
- package/catalog/entity-details.d.ts +148 -0
- package/catalog/entity-details.d.ts.map +1 -0
- package/catalog/favorite-entity-type.d.ts +5 -0
- package/catalog/favorite-entity-type.d.ts.map +1 -0
- package/catalog/favorite-entity-type.js +10 -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 +72 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-deployment-to-catalog-item.js +17 -12
- 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 +69 -24
- 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 +112 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.js +29 -38
- 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/resource-folder.d.ts +8 -0
- package/catalog/resource-folder.d.ts.map +1 -0
- package/catalog/resource-folder.js +13 -0
- package/catalog/resource-save-adapter.d.ts +36 -0
- package/catalog/resource-save-adapter.d.ts.map +1 -0
- package/catalog/resource-save-adapter.js +4 -0
- package/catalog/resource-save-adapters.d.ts +93 -0
- package/catalog/resource-save-adapters.d.ts.map +1 -0
- package/catalog/resource-save-adapters.js +116 -0
- package/catalog/resource-save.d.ts +76 -0
- package/catalog/resource-save.d.ts.map +1 -0
- package/catalog/resource-save.js +52 -0
- package/catalog/usage-limit-rows.d.ts +14 -0
- package/catalog/usage-limit-rows.d.ts.map +1 -0
- package/catalog/usage-limit-rows.js +19 -0
- package/catalog/use-publish-history.d.ts +19 -0
- package/catalog/use-publish-history.d.ts.map +1 -0
- package/catalog/use-publish-history.js +25 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts +57 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts.map +1 -0
- package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.js +67 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +117 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +108 -107
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
- 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/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +72 -77
- 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 +81 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
- package/catalog/usePublishFolders/usePublishFolders.js +32 -29
- package/catalog/useResourceFolders/useResourceFolders.d.ts +33 -0
- package/catalog/useResourceFolders/useResourceFolders.d.ts.map +1 -0
- package/catalog/useResourceFolders/useResourceFolders.js +58 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +64 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.js +173 -0
- 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/catalog.js +37 -23
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- package/conversation/conversation-data-source.d.ts +47 -0
- package/conversation/conversation-data-source.d.ts.map +1 -0
- package/conversation/conversation-data-source.js +11 -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-list.d.ts +6 -0
- package/conversation/conversation-list.d.ts.map +1 -0
- package/conversation/conversation-list.js +5 -0
- package/conversation/conversation-title-stream.d.ts +33 -0
- package/conversation/conversation-title-stream.d.ts.map +1 -0
- package/conversation/conversation-title-stream.js +103 -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 +111 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.js +60 -49
- 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/generation-registry.d.ts +30 -0
- package/conversation/generation-registry.d.ts.map +1 -0
- package/conversation/generation-registry.js +33 -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 +73 -0
- package/conversation/message-utils.d.ts.map +1 -0
- package/conversation/message-utils.js +14 -10
- 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/scheduled-task-grouping.d.ts +53 -0
- package/conversation/scheduled-task-grouping.d.ts.map +1 -0
- package/conversation/scheduled-task-grouping.js +45 -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 +37 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
- 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/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
- package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.js +113 -122
- 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 +41 -41
- 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 +34 -30
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.js +69 -72
- 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 +93 -122
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.js +251 -242
- package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
- package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
- package/conversation/useConversationTitleEnrichmentController.js +155 -0
- package/conversation/useDeploymentChangeTracking.d.ts +14 -0
- package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
- package/conversation/useDeploymentChangeTracking.js +23 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
- package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
- 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 +50 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
- package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
- package/conversation-overlay.d.ts +2 -7
- package/conversation-overlay.js +1 -2
- package/conversation-sources/stage-citations.d.ts +9 -0
- package/conversation-sources/stage-citations.d.ts.map +1 -0
- package/conversation-sources/stage-citations.js +8 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
- package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
- 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 +3 -1
- package/conversation-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- package/conversation.js +44 -32
- package/entry-points/attachments.d.ts +4 -0
- package/entry-points/attachments.d.ts.map +1 -0
- package/entry-points/catalog.d.ts +38 -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 +4 -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 +46 -0
- package/entry-points/conversation.d.ts.map +1 -0
- package/entry-points/external-services.d.ts +6 -0
- package/entry-points/external-services.d.ts.map +1 -0
- package/entry-points/file-manager-canvas.d.ts +3 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +33 -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 +11 -0
- package/entry-points/oauth.d.ts.map +1 -0
- package/entry-points/offline-credentials.d.ts +7 -0
- package/entry-points/offline-credentials.d.ts.map +1 -0
- package/entry-points/project.d.ts +20 -0
- package/entry-points/project.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +15 -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 +7 -0
- package/entry-points/sharing.d.ts.map +1 -0
- package/entry-points/skill-editor.d.ts +11 -0
- package/entry-points/skill-editor.d.ts.map +1 -0
- package/entry-points/skills-state.d.ts +3 -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 +9 -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 +23 -0
- package/entry-points/utils.d.ts.map +1 -0
- package/entry-points/viewport-layout.d.ts +5 -0
- package/entry-points/viewport-layout.d.ts.map +1 -0
- package/external-services/useExternalServiceLogin.d.ts +99 -0
- package/external-services/useExternalServiceLogin.d.ts.map +1 -0
- package/external-services/useExternalServiceLogin.js +93 -0
- package/external-services.d.ts +2 -0
- package/external-services.js +5 -0
- package/file-manager-canvas.d.ts +2 -418
- package/file-manager-canvas.js +3 -2
- package/file-manager.d.ts +2 -1250
- package/file-manager.js +32 -30
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +135 -0
- package/files/attachment-canvas.d.ts.map +1 -0
- package/files/attachment-canvas.js +18 -10
- package/files/attachment-dto-to-display.d.ts +10 -0
- package/files/attachment-dto-to-display.d.ts.map +1 -0
- package/files/attachment-dto-to-display.js +13 -12
- 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/browser-download.d.ts +9 -0
- package/files/browser-download.d.ts.map +1 -0
- package/files/browser-download.js +23 -0
- 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 +44 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.js +50 -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-copy-move.util.js +16 -16
- 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 +337 -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 +36 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/dial-file.js +20 -12
- 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 +97 -109
- 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/useDialFilePreview/useDialFilePreview.d.ts +33 -0
- package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
- package/files/useDialFilePreview/useDialFilePreview.js +45 -0
- 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 +114 -103
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
- 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/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
- package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
- package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
- package/index.d.ts +244 -6996
- package/index.d.ts.map +1 -0
- package/index.js +241 -150
- 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 +30 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
- 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 +42 -42
- 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 +22 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- package/oauth/authorize-url.js +14 -4
- package/oauth/callback-exchange.d.ts +49 -0
- package/oauth/callback-exchange.d.ts.map +1 -0
- package/oauth/callback-exchange.js +29 -0
- 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 +106 -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 +60 -0
- package/oauth/toolset-id.d.ts.map +1 -0
- package/oauth/toolset-id.js +9 -2
- 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 +85 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.js +51 -42
- package/oauth.d.ts +2 -472
- package/oauth.js +9 -8
- package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
- package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
- package/offline-credentials/map-offline-credentials-response.js +17 -0
- package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
- package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
- package/offline-credentials/scheduled-tasks-login-banner.js +17 -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 +61 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -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 +7 -0
- package/package.json +49 -25
- package/project/create-project-chat.d.ts +34 -0
- package/project/create-project-chat.d.ts.map +1 -0
- package/project/create-project-chat.js +27 -0
- package/project/project-conversation-data-source.d.ts +36 -0
- package/project/project-conversation-data-source.d.ts.map +1 -0
- package/project/project-conversation-data-source.js +67 -0
- package/project/project-events.d.ts +14 -0
- package/project/project-events.d.ts.map +1 -0
- package/project/project-events.js +25 -0
- package/project/project-file-preview.d.ts +28 -0
- package/project/project-file-preview.d.ts.map +1 -0
- package/project/project-file-preview.js +20 -0
- package/project/project-form-errors.d.ts +23 -0
- package/project/project-form-errors.d.ts.map +1 -0
- package/project/project-form-errors.js +46 -0
- package/project/project-limits.d.ts +17 -0
- package/project/project-limits.d.ts.map +1 -0
- package/project/project-limits.js +11 -0
- package/project/project-mapping.d.ts +16 -0
- package/project/project-mapping.d.ts.map +1 -0
- package/project/project-mapping.js +43 -0
- package/project/project-refresh.d.ts +12 -0
- package/project/project-refresh.d.ts.map +1 -0
- package/project/project-refresh.js +6 -0
- package/project/project-viewed-marks.d.ts +9 -0
- package/project/project-viewed-marks.d.ts.map +1 -0
- package/project/project-viewed-marks.js +8 -0
- package/project/project-watch-stream.d.ts +26 -0
- package/project/project-watch-stream.d.ts.map +1 -0
- package/project/project-watch-stream.js +39 -0
- package/project/projects-api-client.d.ts +173 -0
- package/project/projects-api-client.d.ts.map +1 -0
- package/project/projects-api-client.js +89 -0
- package/project/use-pinned-project-chats.d.ts +58 -0
- package/project/use-pinned-project-chats.d.ts.map +1 -0
- package/project/use-pinned-project-chats.js +269 -0
- package/project/use-project-actions.d.ts +52 -0
- package/project/use-project-actions.d.ts.map +1 -0
- package/project/use-project-actions.js +92 -0
- package/project/use-project-artifacts.d.ts +24 -0
- package/project/use-project-artifacts.d.ts.map +1 -0
- package/project/use-project-artifacts.js +78 -0
- package/project/use-project-conversations.d.ts +31 -0
- package/project/use-project-conversations.d.ts.map +1 -0
- package/project/use-project-conversations.js +196 -0
- package/project/use-project-draft.d.ts +46 -0
- package/project/use-project-draft.d.ts.map +1 -0
- package/project/use-project-draft.js +54 -0
- package/project/use-project-file-preview.d.ts +42 -0
- package/project/use-project-file-preview.d.ts.map +1 -0
- package/project/use-project-file-preview.js +46 -0
- package/project/use-project-submit.d.ts +49 -0
- package/project/use-project-submit.d.ts.map +1 -0
- package/project/use-project-submit.js +73 -0
- package/project/use-project-watch.d.ts +24 -0
- package/project/use-project-watch.d.ts.map +1 -0
- package/project/use-project-watch.js +41 -0
- package/project/use-project.d.ts +23 -0
- package/project/use-project.d.ts.map +1 -0
- package/project/use-project.js +73 -0
- package/project/use-projects.d.ts +27 -0
- package/project/use-projects.d.ts.map +1 -0
- package/project/use-projects.js +92 -0
- package/project.d.ts +2 -0
- package/project.js +20 -0
- 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 +45 -0
- package/prompt/prompt.d.ts.map +1 -0
- package/prompt/prompt.js +7 -3
- package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
- package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
- package/scheduled-task/active-scheduled-task.d.ts +58 -0
- package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
- package/scheduled-task/active-scheduled-task.js +18 -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 +40 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-description.js +33 -24
- package/scheduled-task/scheduled-task-display.d.ts +106 -0
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-display.js +69 -0
- package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
- package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
- package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-next-occurrence.js +20 -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 +75 -48
- 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 +19 -31
- 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-task/useActiveScheduledTaskDetails.d.ts +18 -0
- package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
- package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
- package/scheduled-task/useStartScheduledTask.d.ts +41 -0
- package/scheduled-task/useStartScheduledTask.d.ts.map +1 -0
- package/scheduled-task/useStartScheduledTask.js +169 -0
- package/scheduled-tasks.d.ts +2 -256
- package/scheduled-tasks.js +13 -6
- package/scroll-anchoring.d.ts +2 -50
- package/scroll-anchoring.js +1 -2
- package/share-invitation/models.d.ts +46 -0
- package/share-invitation/models.d.ts.map +1 -0
- package/share-invitation/share-invitation-error.d.ts +6 -0
- package/share-invitation/share-invitation-error.d.ts.map +1 -0
- package/share-invitation/share-invitation-error.js +37 -0
- package/share-invitation/types.d.ts +10 -0
- package/share-invitation/types.d.ts.map +1 -0
- package/share-invitation/types.js +6 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts +9 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts.map +1 -0
- package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.js +26 -0
- 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/client-channel.d.ts +53 -0
- package/shared/client-channel.d.ts.map +1 -0
- package/shared/client-channel.js +6 -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 +49 -0
- package/shared/locale.d.ts.map +1 -0
- package/shared/locale.js +4 -4
- package/shared/read-sse-events.d.ts +10 -0
- package/shared/read-sse-events.d.ts.map +1 -0
- package/shared/read-sse-events.js +33 -0
- package/shared/serialized-writer.d.ts +12 -0
- package/shared/serialized-writer.d.ts.map +1 -0
- package/shared/serialized-writer.js +44 -0
- package/shared/sleep.d.ts +3 -0
- package/shared/sleep.d.ts.map +1 -0
- package/shared/sleep.js +13 -0
- package/shared/string-utils.d.ts +11 -0
- package/shared/string-utils.d.ts.map +1 -0
- package/shared/theme-colors.d.ts +16 -0
- package/shared/theme-colors.d.ts.map +1 -0
- package/shared/theme-colors.js +14 -0
- package/shared/toolset-login-events.d.ts +15 -0
- package/shared/toolset-login-events.d.ts.map +1 -0
- package/shared/url-cleanup.d.ts +18 -0
- package/shared/url-cleanup.d.ts.map +1 -0
- package/shared/url-cleanup.js +18 -0
- package/shared/usage-stat.d.ts +3 -0
- package/shared/usage-stat.d.ts.map +1 -0
- package/shared/usage-stat.js +4 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.d.ts +22 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.d.ts.map +1 -0
- package/shared/useAppVersionCheck/useAppVersionCheck.js +36 -0
- package/shared/usePersistedState/usePersistedState.d.ts +28 -0
- package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
- package/shared/usePersistedState/usePersistedState.js +24 -0
- package/sharing.d.ts +2 -65
- package/sharing.js +5 -2
- package/signin-interrupt/models.d.ts +48 -0
- package/signin-interrupt/models.d.ts.map +1 -0
- package/signin-interrupt/signin-row-info.d.ts +10 -0
- package/signin-interrupt/signin-row-info.d.ts.map +1 -0
- package/signin-interrupt/signin-row-info.js +21 -0
- package/signin-interrupt/types.d.ts +28 -0
- package/signin-interrupt/types.d.ts.map +1 -0
- package/signin-interrupt/types.js +10 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts +52 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts.map +1 -0
- package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.js +270 -0
- 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 +74 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.js +34 -33
- package/skill/skill-file-preview.d.ts +25 -0
- package/skill/skill-file-preview.d.ts.map +1 -0
- package/skill/skill-lookup.d.ts +20 -0
- package/skill/skill-lookup.d.ts.map +1 -0
- package/skill/skill-lookup.js +12 -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 +139 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.js +164 -87
- package/skill/useSkillFileActions.d.ts +62 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillFileActions.js +36 -21
- 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/useSkillFilePreviewSyncController.d.ts +41 -0
- package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
- package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
- package/skill-editor.d.ts +2 -655
- package/skill-editor.js +3 -1
- package/skills-state.d.ts +2 -40
- package/skills-state.js +3 -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/map-user-usage-to-model-limits.js +21 -21
- 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 +61 -0
- package/usage/usage-gauge.d.ts +3 -0
- package/usage/usage-gauge.d.ts.map +1 -0
- package/usage/usage-gauge.js +4 -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 +78 -0
- package/usage/usage-reset-time.d.ts.map +1 -0
- package/usage/usage-reset-time.js +82 -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 +10 -0
- package/usage.d.ts +2 -125
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
- 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 +18 -17
- 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/utils.js +23 -17
- package/viewport-layout/canvas-width.d.ts +39 -0
- package/viewport-layout/canvas-width.d.ts.map +1 -0
- package/viewport-layout/canvas-width.js +23 -0
- package/viewport-layout.d.ts +2 -27
- package/viewport-layout.js +2 -1
package/catalog.js
CHANGED
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { createPublishApiClient as e, toPublishRuleDto as t } from "./catalog/create-publish-api.js";
|
|
2
2
|
import { buildChatCompletionsUrl as n, buildDeploymentConnectApi as r, buildResponsesUrl as i } from "./catalog/deployment-endpoint-url.js";
|
|
3
|
-
import {
|
|
4
|
-
import { AuthenticationType as
|
|
5
|
-
import { buildResetFields as
|
|
6
|
-
import { mapDeploymentLimitsDtoToCatalogLimits as
|
|
7
|
-
import { DEFAULT_ENTITY_DETAILS_LABELS as
|
|
8
|
-
import { mapDeploymentToCatalogItem as
|
|
9
|
-
import { buildPromptOverview as
|
|
10
|
-
import { PUBLIC_SKILL_BUCKET as
|
|
11
|
-
import { buildSkillContentTree as
|
|
12
|
-
import { McpResourceKind as
|
|
13
|
-
import { getPublicCatalogEntityFolderPath as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
3
|
+
import { createDeploymentLookup as a, decodeDeploymentId as o, encodeDeploymentId as s, findDeploymentByIdOrReference as c, normalizeDeploymentId as l } from "./catalog/deployment-id.js";
|
|
4
|
+
import { AuthenticationType as u } from "./catalog/entity-details.js";
|
|
5
|
+
import { buildResetFields as d, mapDeploymentLimitsToInput as f } from "./catalog/map-deployment-limits-to-input.js";
|
|
6
|
+
import { mapDeploymentLimitsDtoToCatalogLimits as p } from "./catalog/map-deployment-limits-to-catalog.js";
|
|
7
|
+
import { DEFAULT_ENTITY_DETAILS_LABELS as m, mapDeploymentDetailsDtoToEntityDetails as h, mapEntityDetailsToCatalogDetails as g, mapToolsetCredentials as _ } from "./catalog/map-entity-details-to-catalog.js";
|
|
8
|
+
import { mapDeploymentToCatalogItem as v, mapDeploymentToolsetCredentials as y, mapToolsetToCatalogItem as b, resolveDeploymentFolder as x, supportsChatInterface as S } from "./catalog/map-deployment-to-catalog-item.js";
|
|
9
|
+
import { buildPromptOverview as C, isOrganisationPromptItem as w, mapPromptToCatalogItem as T } from "./catalog/map-prompt-to-catalog-item.js";
|
|
10
|
+
import { PUBLIC_SKILL_BUCKET as E, SKILL_LISTING_MAX_PAGES as D, SKILL_LISTING_PAGE_SIZE as O, SKILL_MANIFEST_MAX_BYTES as k, SkillSource as A, parseSkillResourceUrl as j } from "./skill/skill-types.js";
|
|
11
|
+
import { buildSkillContentTree as M, buildSkillOverview as N, mapSkillToCatalogItem as P, readSkillFileBytes as F, readSkillFilePreviewBytes as I, readSkillManifest as L, resolveSkillFileDownloadPath as R, resolveSkillManifestFileId as z } from "./catalog/map-skill-to-catalog-item.js";
|
|
12
|
+
import { McpResourceKind as B, buildApplicationMcpUrl as V, buildConnectApi as H, buildToolsetMcpUrl as U, resolveMcpResourceKind as W } from "./catalog/mcp-endpoint-url.js";
|
|
13
|
+
import { getPublicCatalogEntityFolderPath as G, isPublicCatalogEntityId as K, mapPublishConversationResultDto as q, mapPublishHistoryEntryDto as J, toPublishEntityType as Y } from "./catalog/publish.js";
|
|
14
|
+
import { usePublishHistory as X } from "./catalog/use-publish-history.js";
|
|
15
|
+
import { canEditShareAccess as Z, deriveAvailableTabIds as Q, deriveFavoriteItems as $, filterCatalogItemsBySelector as ee, filterHiddenOwnedItems as te, reconcileFilterTopics as ne } from "./catalog/catalog-derivations.js";
|
|
16
|
+
import { CatalogEntityKind as re, findSchemaDisplayName as ie, resolveCatalogEntityKind as ae } from "./catalog/catalog-entity-kind.js";
|
|
17
|
+
import { FavoriteEntityType as oe, useFavoriteEntitiesState as se } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
|
|
18
|
+
import { resolveFavoriteEntityType as ce } from "./catalog/favorite-entity-type.js";
|
|
19
|
+
import { parseCatalogFilterTopics as le, resolveCatalogActiveTab as ue, resolveCatalogSortKey as de } from "./catalog/catalog-preferences.js";
|
|
20
|
+
import { findWorstCappedRow as fe } from "./catalog/usage-limit-rows.js";
|
|
21
|
+
import { CatalogPrimaryActionType as pe, resolveCatalogPrimaryAction as me } from "./catalog/catalog-primary-action.js";
|
|
22
|
+
import { useCatalogItemDelete as he } from "./catalog/useCatalogItemDelete/useCatalogItemDelete.js";
|
|
23
|
+
import { useCatalogEditNavigation as ge } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
|
|
24
|
+
import { useSkillItemDetails as _e } from "./catalog/useSkillItemDetails.js";
|
|
25
|
+
import { useCatalogItemDetails as ve } from "./catalog/useCatalogItemDetails.js";
|
|
26
|
+
import { useCatalogToolsetCredentials as ye } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
|
|
27
|
+
import { buildApplicationCredentialLoginParams as be, mapApplicationCredentials as xe } from "./catalog/application-credentials.js";
|
|
28
|
+
import { useApplicationCredentials as Se } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
|
|
29
|
+
import { DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS as Ce, useApplicationCredentialActions as we } from "./catalog/useApplicationCredentialActions/useApplicationCredentialActions.js";
|
|
30
|
+
import { useSkillDetailsPanelData as Te } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
|
|
31
|
+
import { hasPublishFolderWriteAccess as Ee, rememberPublishFolderKey as De, usePublishFolders as Oe } from "./catalog/usePublishFolders/usePublishFolders.js";
|
|
32
|
+
import { useResourceFolders as ke } from "./catalog/useResourceFolders/useResourceFolders.js";
|
|
33
|
+
import { parseResourceFolderPath as Ae } from "./catalog/resource-folder.js";
|
|
34
|
+
import { ResourceSaveError as je, isResourceCreateAdapter as Me } from "./catalog/resource-save-adapter.js";
|
|
35
|
+
import { ResourceSaveOutcome as Ne, ResourceSaveVersionError as Pe, SaveDestinationRoot as Fe, createPublishSavedResource as Ie, runResourceSave as Le } from "./catalog/resource-save.js";
|
|
36
|
+
import { createEmbeddedApplicationSaveAdapter as Re, createHostApplicationSaveAdapter as ze, createPromptCreateAdapter as Be, createPromptFolderLister as Ve, createPromptSaveAdapter as He, createSkillFolderLister as Ue, createToolsetCreateAdapter as We, createToolsetSaveAdapter as Ge } from "./catalog/resource-save-adapters.js";
|
|
37
|
+
import { useResourceSavePanel as Ke } from "./catalog/useResourceSavePanel/useResourceSavePanel.js";
|
|
38
|
+
import { SkillPreviewErrorKind as qe, useSkillFilePreview as Je } from "./skill/useSkillFilePreview.js";
|
|
39
|
+
export { u as AuthenticationType, re as CatalogEntityKind, pe as CatalogPrimaryActionType, Ce as DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS, m as DEFAULT_ENTITY_DETAILS_LABELS, oe as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, je as ResourceSaveError, Ne as ResourceSaveOutcome, Pe as ResourceSaveVersionError, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, Fe as SaveDestinationRoot, qe as SkillPreviewErrorKind, A as SkillSource, be as buildApplicationCredentialLoginParams, V as buildApplicationMcpUrl, n as buildChatCompletionsUrl, H as buildConnectApi, r as buildDeploymentConnectApi, C as buildPromptOverview, d as buildResetFields, i as buildResponsesUrl, M as buildSkillContentTree, N as buildSkillOverview, U as buildToolsetMcpUrl, Z as canEditShareAccess, a as createDeploymentLookup, Re as createEmbeddedApplicationSaveAdapter, ze as createHostApplicationSaveAdapter, Be as createPromptCreateAdapter, Ve as createPromptFolderLister, He as createPromptSaveAdapter, e as createPublishApiClient, Ie as createPublishSavedResource, Ue as createSkillFolderLister, We as createToolsetCreateAdapter, Ge as createToolsetSaveAdapter, o as decodeDeploymentId, Q as deriveAvailableTabIds, $ as deriveFavoriteItems, s as encodeDeploymentId, ee as filterCatalogItemsBySelector, te as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, ie as findSchemaDisplayName, fe as findWorstCappedRow, G as getPublicCatalogEntityFolderPath, Ee as hasPublishFolderWriteAccess, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, Me as isResourceCreateAdapter, xe as mapApplicationCredentials, h as mapDeploymentDetailsDtoToEntityDetails, p as mapDeploymentLimitsDtoToCatalogLimits, f as mapDeploymentLimitsToInput, v as mapDeploymentToCatalogItem, y as mapDeploymentToolsetCredentials, g as mapEntityDetailsToCatalogDetails, T as mapPromptToCatalogItem, q as mapPublishConversationResultDto, J as mapPublishHistoryEntryDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, le as parseCatalogFilterTopics, Ae as parseResourceFolderPath, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, ne as reconcileFilterTopics, De as rememberPublishFolderKey, ue as resolveCatalogActiveTab, ae as resolveCatalogEntityKind, me as resolveCatalogPrimaryAction, de as resolveCatalogSortKey, x as resolveDeploymentFolder, ce as resolveFavoriteEntityType, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, Le as runResourceSave, S as supportsChatInterface, Y as toPublishEntityType, t as toPublishRuleDto, we as useApplicationCredentialActions, Se as useApplicationCredentials, ge as useCatalogEditNavigation, he as useCatalogItemDelete, ve as useCatalogItemDetails, ye as useCatalogToolsetCredentials, se as useFavoriteEntitiesState, Oe as usePublishFolders, X as usePublishHistory, ke as useResourceFolders, Ke as useResourceSavePanel, Te as useSkillDetailsPanelData, Je as useSkillFilePreview, _e as useSkillItemDetails };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** A link rendered as the call to action of an announcements-popover entry. */
|
|
2
|
+
export interface AnnouncementListItemLink {
|
|
3
|
+
/** Visible text of the call to action. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Absolute `http`/`https` target the call to action opens. */
|
|
6
|
+
href: string;
|
|
7
|
+
}
|
|
8
|
+
/** One entry of the announcements popover behind the banner's `+N` pill. */
|
|
9
|
+
export interface AnnouncementListItem {
|
|
10
|
+
/** Plain-text heading of the entry. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Supporting copy of the entry, sanitized before it is rendered. */
|
|
13
|
+
description?: string | null;
|
|
14
|
+
/** Optional call to action shown at the end of the entry. */
|
|
15
|
+
link?: AnnouncementListItemLink | null;
|
|
16
|
+
}
|
|
17
|
+
/** Structured announcement banner content. */
|
|
18
|
+
export interface AnnouncementContent {
|
|
19
|
+
title: string | null;
|
|
20
|
+
description: string | null;
|
|
21
|
+
html: string | null;
|
|
22
|
+
/** Entries of the popover the banner opens. */
|
|
23
|
+
items?: readonly AnnouncementListItem[];
|
|
24
|
+
}
|
|
25
|
+
/** Sanitizes announcement HTML to the allowed inline tag/attribute set. */
|
|
26
|
+
export declare const sanitizeAnnouncementHtml: (html: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Sanitizes the legacy `ANNOUNCEMENT_HTML_MESSAGE` banner, which permits the
|
|
29
|
+
* block-level markup the inline pass strips. See
|
|
30
|
+
* `ANNOUNCEMENT_MESSAGE_SANITIZE_OPTIONS` for why the two lists differ.
|
|
31
|
+
*/
|
|
32
|
+
export declare const sanitizeAnnouncementMessageHtml: (html: string) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the operator configured the structured banner (title and/or
|
|
35
|
+
* description) rather than only the legacy HTML message. Drives which of the
|
|
36
|
+
* two banner layouts renders.
|
|
37
|
+
*/
|
|
38
|
+
export declare const hasStructuredAnnouncement: ({ title, description, }: AnnouncementContent) => boolean;
|
|
39
|
+
/** True when the announcement has any renderable content (structured or legacy HTML). */
|
|
40
|
+
export declare const hasAnnouncementContent: (content: AnnouncementContent) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Builds the value persisted under `StorageKey.TextOfClosedAnnouncement` when
|
|
43
|
+
* the user dismisses the banner. Dismissal is content-keyed: the banner stays
|
|
44
|
+
* hidden only while the current announcement produces the same signature, so
|
|
45
|
+
* editing any part of it brings the banner back with no version counter.
|
|
46
|
+
*
|
|
47
|
+
* Every piece of content the banner surface renders feeds the signature — the
|
|
48
|
+
* title, the description, and the popover entries behind the pill, which live
|
|
49
|
+
* inside the banner and are hidden along with it. Publishing a new entry in
|
|
50
|
+
* that list therefore invalidates an earlier dismissal on its own, even when
|
|
51
|
+
* the banner line itself is untouched.
|
|
52
|
+
*
|
|
53
|
+
* A legacy-only announcement returns the raw HTML string — byte-identical to
|
|
54
|
+
* what shipped before the structured fields existed — so dismissals recorded
|
|
55
|
+
* by older builds keep working without a storage migration. `items` is left
|
|
56
|
+
* out of the payload entirely when the list is empty for the same reason: a
|
|
57
|
+
* deployment that never configured the popover keeps matching the signatures
|
|
58
|
+
* its users already have stored.
|
|
59
|
+
*/
|
|
60
|
+
export declare const buildAnnouncementSignature: (content: AnnouncementContent) => string;
|
|
61
|
+
//# sourceMappingURL=announcement-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcement-message.d.ts","sourceRoot":"","sources":["../../src/conversation/announcement-message.ts"],"names":[],"mappings":"AA+BA,+EAA+E;AAC/E,MAAM,WAAW,wBAAwB;IACvC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;CACxC;AAED,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACzC;AAQD,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACgB,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,MAAM,MAAM,KAAG,MACY,CAAC;AAK5E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,yBAGvC,mBAAmB,KAAG,OACqB,CAAC;AAE/C,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,GAAI,SAAS,mBAAmB,KAAG,OACN,CAAC;AA2BjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,mBAAmB,KAC3B,MAgBF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ConversationResponseDto, ConversationsApi } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { ConversationStreamTransport } from './useConversationStream/useConversationStream';
|
|
3
|
+
/** The sidebar list side effects of a conversation page; a conversation outside the sidebar has none. */
|
|
4
|
+
export interface ConversationListSync {
|
|
5
|
+
/** Shows a new title on the conversation's row. */
|
|
6
|
+
updateTitle: (id: string, title: string) => void;
|
|
7
|
+
/** Moves the conversation's row up after activity. */
|
|
8
|
+
bumpActivity: (id: string) => void;
|
|
9
|
+
/** Shows the unread indicator until the conversation is viewed. */
|
|
10
|
+
markUnread: (id: string) => void;
|
|
11
|
+
/** Records that the conversation was seen and clears its unread indicator. */
|
|
12
|
+
markViewed: (id: string) => Promise<void>;
|
|
13
|
+
/** Removes the conversation's row. */
|
|
14
|
+
remove: (id: string) => void;
|
|
15
|
+
/** Re-reads the list, optionally waiting until the given ids appear in it. */
|
|
16
|
+
refresh: (expectedIds?: readonly string[]) => Promise<void>;
|
|
17
|
+
/** The open chat is marked viewed without a sidebar row saying it is unread; a project chat has no row. */
|
|
18
|
+
shouldMarkOpenChatViewed?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Where a conversation page reads and writes its conversation, and where it navigates. */
|
|
21
|
+
export interface ConversationDataSource {
|
|
22
|
+
/** Stream, stop, attach, get and save for `useConversationStream`. */
|
|
23
|
+
transport: ConversationStreamTransport;
|
|
24
|
+
/** Loads a conversation by its id (also the custom-viewer reload). */
|
|
25
|
+
getConversation: (id: string, signal?: AbortSignal) => Promise<ConversationResponseDto>;
|
|
26
|
+
/** Saves a conversation by its stream path (model changes, status messages). */
|
|
27
|
+
saveConversation: (path: string, conversation: ConversationResponseDto) => Promise<ConversationResponseDto>;
|
|
28
|
+
/** Save and delete for `useConversationHandlers`. */
|
|
29
|
+
handlersApi: Pick<ConversationsApi, 'saveConversation' | 'deleteConversation'>;
|
|
30
|
+
/** Watches for the title the first reply produces; returns a cleanup. */
|
|
31
|
+
watchTitle: (id: string, previousName: string, onUpdated: (title: string) => void) => () => void;
|
|
32
|
+
/** The route of a conversation (after duplicate or a custom-viewer create). */
|
|
33
|
+
getConversationRoute: (id: string) => string;
|
|
34
|
+
/** Where a deleted or missing conversation navigates. */
|
|
35
|
+
getExitRoute: () => string;
|
|
36
|
+
/** Whether the conversation opens read-only. */
|
|
37
|
+
isReadOnly: (id: string) => boolean;
|
|
38
|
+
/** Sidebar list side effects; {@link NO_CONVERSATION_LIST_SYNC} when the conversation is not in the sidebar. */
|
|
39
|
+
listSync: ConversationListSync;
|
|
40
|
+
/** Whether a read-only conversation offers Duplicate. */
|
|
41
|
+
canDuplicate: boolean;
|
|
42
|
+
/** Translation key of the toast shown when the conversation cannot be loaded; the page's own when unset. The host resolves it. */
|
|
43
|
+
notFoundMessageKey?: string;
|
|
44
|
+
}
|
|
45
|
+
/** List side effects of a conversation that is not in the sidebar: each one does nothing. */
|
|
46
|
+
export declare const NO_CONVERSATION_LIST_SYNC: ConversationListSync;
|
|
47
|
+
//# sourceMappingURL=conversation-data-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-data-source.d.ts","sourceRoot":"","sources":["../../src/conversation/conversation-data-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAEjG,yGAAyG;AACzG,MAAM,WAAW,oBAAoB;IACnC,mDAAmD;IACnD,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,sDAAsD;IACtD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mEAAmE;IACnE,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,8EAA8E;IAC9E,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,sCAAsC;IACtC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,8EAA8E;IAC9E,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,2GAA2G;IAC3G,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,2FAA2F;AAC3F,MAAM,WAAW,sBAAsB;IACrC,sEAAsE;IACtE,SAAS,EAAE,2BAA2B,CAAC;IACvC,sEAAsE;IACtE,eAAe,EAAE,CACf,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,gFAAgF;IAChF,gBAAgB,EAAE,CAChB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,uBAAuB,KAClC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,qDAAqD;IACrD,WAAW,EAAE,IAAI,CACf,gBAAgB,EAChB,kBAAkB,GAAG,oBAAoB,CAC1C,CAAC;IACF,yEAAyE;IACzE,UAAU,EAAE,CACV,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,KAC/B,MAAM,IAAI,CAAC;IAChB,+EAA+E;IAC/E,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,yDAAyD;IACzD,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,gDAAgD;IAChD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,gHAAgH;IAChH,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,yDAAyD;IACzD,YAAY,EAAE,OAAO,CAAC;IACtB,kIAAkI;IAClI,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,EAAE,oBAOvC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/conversation/conversation-data-source.ts
|
|
2
|
+
var e = {
|
|
3
|
+
updateTitle: () => void 0,
|
|
4
|
+
bumpActivity: () => void 0,
|
|
5
|
+
markUnread: () => void 0,
|
|
6
|
+
markViewed: async () => void 0,
|
|
7
|
+
remove: () => void 0,
|
|
8
|
+
refresh: async () => void 0
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as NO_CONVERSATION_LIST_SYNC };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ConversationDraftStore, MemoryConversationDraftStoreOptions, WebStorageConversationDraftStoreOptions } from './conversation-draft';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a `ConversationDraftStore` over a host-chosen Web `Storage`.
|
|
4
|
+
*
|
|
5
|
+
* Every host-specific fact — which storage, which key (including any user
|
|
6
|
+
* scope), how ids are canonicalised — arrives through `options`. The store owns
|
|
7
|
+
* only the versioned JSON format of its own data
|
|
8
|
+
* (`{ version: 1, drafts: { [id]: ConversationDraft } }`), the `maxEntries`
|
|
9
|
+
* cap with oldest-first eviction, a half-eviction retry when the quota is
|
|
10
|
+
* exceeded, and silent failure: an absent or throwing storage behaves as an
|
|
11
|
+
* empty store that ignores writes.
|
|
12
|
+
*/
|
|
13
|
+
export declare const createWebStorageConversationDraftStore: ({ getStorage, storageKey, maxEntries, normalizeId, }: WebStorageConversationDraftStoreOptions) => ConversationDraftStore;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a `ConversationDraftStore` that keeps drafts in memory for the
|
|
16
|
+
* lifetime of the returned instance. Same semantics as the Web Storage store
|
|
17
|
+
* (`maxEntries`, `normalizeId`, empty-draft removal); suited to hosts that want
|
|
18
|
+
* drafts only for the page lifetime, and to tests.
|
|
19
|
+
*/
|
|
20
|
+
export declare const createMemoryConversationDraftStore: ({ maxEntries, normalizeId, }?: MemoryConversationDraftStoreOptions) => ConversationDraftStore;
|
|
21
|
+
//# sourceMappingURL=conversation-draft-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-draft-store.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-draft/conversation-draft-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EACtB,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAqE9B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sCAAsC,GAAI,sDAKpD,uCAAuC,KAAG,sBA0E5C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,GAAI,+BAGhD,mCAAwC,KAAG,sBAwB7C,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//#region src/conversation/conversation-draft/conversation-draft-store.ts
|
|
2
|
+
var e = (e) => e, t = (e) => e.text.trim() === "" && e.skills.length === 0, n = (e) => {
|
|
3
|
+
if (typeof e != "object" || !e) return !1;
|
|
4
|
+
let t = e;
|
|
5
|
+
return typeof t.text == "string" && Array.isArray(t.skills) && typeof t.updatedAt == "number";
|
|
6
|
+
}, r = (e, t) => Object.hasOwn(e, t) ? e[t] : void 0, i = (e) => Object.keys(e).sort((t, n) => e[t].updatedAt - e[n].updatedAt), a = (e, t) => {
|
|
7
|
+
let n = i(e), r = n.length - Math.max(t, 0);
|
|
8
|
+
if (r <= 0) return e;
|
|
9
|
+
let a = { ...e };
|
|
10
|
+
return n.slice(0, r).forEach((e) => delete a[e]), a;
|
|
11
|
+
}, o = (e, n, r, i) => {
|
|
12
|
+
let o = { ...e };
|
|
13
|
+
return t(r) ? (delete o[n], o) : (o[n] = r, a(o, i));
|
|
14
|
+
}, s = (e) => e instanceof DOMException && (e.name === "QuotaExceededError" || e.name === "NS_ERROR_DOM_QUOTA_REACHED"), c = ({ getStorage: t, storageKey: c, maxEntries: l = 50, normalizeId: u = e }) => {
|
|
15
|
+
let d = () => {
|
|
16
|
+
try {
|
|
17
|
+
return t();
|
|
18
|
+
} catch {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
}, f = () => {
|
|
22
|
+
try {
|
|
23
|
+
let e = d()?.getItem(c);
|
|
24
|
+
if (!e) return {};
|
|
25
|
+
let t = JSON.parse(e);
|
|
26
|
+
return t == null || t.version !== 1 || t.drafts == null || typeof t.drafts != "object" ? {} : Object.fromEntries(Object.entries(t.drafts).filter(([, e]) => n(e)));
|
|
27
|
+
} catch {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}, p = (e, t) => {
|
|
31
|
+
if (Object.keys(t).length === 0) {
|
|
32
|
+
e.removeItem(c);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
let n = {
|
|
36
|
+
version: 1,
|
|
37
|
+
drafts: t
|
|
38
|
+
};
|
|
39
|
+
e.setItem(c, JSON.stringify(n));
|
|
40
|
+
}, m = (e) => {
|
|
41
|
+
let t = d();
|
|
42
|
+
if (t) try {
|
|
43
|
+
p(t, e);
|
|
44
|
+
} catch (n) {
|
|
45
|
+
if (!s(n)) return;
|
|
46
|
+
try {
|
|
47
|
+
let n = i(e);
|
|
48
|
+
p(t, a(e, Math.floor(n.length / 2)));
|
|
49
|
+
} catch {}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
read: (e) => r(f(), u(e)),
|
|
54
|
+
write: (e, t) => m(o(f(), u(e), t, l)),
|
|
55
|
+
remove: (e) => {
|
|
56
|
+
let t = f(), n = u(e);
|
|
57
|
+
Object.hasOwn(t, n) && (delete t[n], m(t));
|
|
58
|
+
},
|
|
59
|
+
clear: () => {
|
|
60
|
+
try {
|
|
61
|
+
d()?.removeItem(c);
|
|
62
|
+
} catch {}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}, l = ({ maxEntries: t = 50, normalizeId: n = e } = {}) => {
|
|
66
|
+
let i = {};
|
|
67
|
+
return {
|
|
68
|
+
read: (e) => r(i, n(e)),
|
|
69
|
+
write: (e, r) => {
|
|
70
|
+
i = o(i, n(e), r, t);
|
|
71
|
+
},
|
|
72
|
+
remove: (e) => {
|
|
73
|
+
let t = n(e);
|
|
74
|
+
if (!Object.hasOwn(i, t)) return;
|
|
75
|
+
let r = { ...i };
|
|
76
|
+
delete r[t], i = r;
|
|
77
|
+
},
|
|
78
|
+
clear: () => {
|
|
79
|
+
i = {};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { l as createMemoryConversationDraftStore, c as createWebStorageConversationDraftStore };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/** An unsent composer draft kept for one conversation. */
|
|
3
|
+
export interface ConversationDraft {
|
|
4
|
+
/** The composer text as the user left it. */
|
|
5
|
+
text: string;
|
|
6
|
+
/** Skills mentioned in the draft, in the same shape a sent message carries. */
|
|
7
|
+
skills: RequestSkill[];
|
|
8
|
+
/** Epoch milliseconds of the last change; the oldest entry is evicted first. */
|
|
9
|
+
updatedAt: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Synchronous, never-throwing persistence contract for conversation drafts.
|
|
13
|
+
*
|
|
14
|
+
* The host creates and owns the instance: it decides the storage medium, the
|
|
15
|
+
* key, the user scope and how conversation ids are canonicalised. A host with
|
|
16
|
+
* async persistence wraps it behind a synchronous in-memory cache, because the
|
|
17
|
+
* restore runs before the user can type and the flush on unmount must finish
|
|
18
|
+
* synchronously.
|
|
19
|
+
*/
|
|
20
|
+
export interface ConversationDraftStore {
|
|
21
|
+
/** Returns the stored draft for `conversationId`, or `undefined` when there is none. */
|
|
22
|
+
read: (conversationId: string) => ConversationDraft | undefined;
|
|
23
|
+
/** Stores `draft` for `conversationId`; an empty draft removes the entry instead. */
|
|
24
|
+
write: (conversationId: string, draft: ConversationDraft) => void;
|
|
25
|
+
/** Removes the draft for `conversationId`. */
|
|
26
|
+
remove: (conversationId: string) => void;
|
|
27
|
+
/** Removes every draft the store holds. */
|
|
28
|
+
clear: () => void;
|
|
29
|
+
}
|
|
30
|
+
/** Options shared by both store factories. */
|
|
31
|
+
export interface MemoryConversationDraftStoreOptions {
|
|
32
|
+
/** Maximum number of drafts kept; the oldest-`updatedAt` entry is evicted beyond it. Defaults to `50`. */
|
|
33
|
+
maxEntries?: number;
|
|
34
|
+
/** Canonicalises a conversation id before it is used as an entry key. Defaults to identity. */
|
|
35
|
+
normalizeId?: (conversationId: string) => string;
|
|
36
|
+
}
|
|
37
|
+
/** Options for `createWebStorageConversationDraftStore`. */
|
|
38
|
+
export interface WebStorageConversationDraftStoreOptions extends MemoryConversationDraftStoreOptions {
|
|
39
|
+
/**
|
|
40
|
+
* Returns the `Storage` to use, or `undefined` when none is available. It is
|
|
41
|
+
* a getter so an absent or throwing storage accessor (SSR, tests, blocked
|
|
42
|
+
* site data) is handled inside the store's guard.
|
|
43
|
+
*/
|
|
44
|
+
getStorage: () => Storage | undefined;
|
|
45
|
+
/** The single key all drafts are written under, including any user scope the host needs. */
|
|
46
|
+
storageKey: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=conversation-draft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-draft.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-draft/conversation-draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,wFAAwF;IACxF,IAAI,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAC;IAChE,qFAAqF;IACrF,KAAK,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClE,8CAA8C;IAC9C,MAAM,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAmC;IAClD,0GAA0G;IAC1G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+FAA+F;IAC/F,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,4DAA4D;AAC5D,MAAM,WAAW,uCAAwC,SAAQ,mCAAmC;IAClG;;;;OAIG;IACH,UAAU,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;IACtC,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConversationDeletionResultDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Returns `true` when a delete-all request removed nothing: some conversations failed and none was deleted or already gone. */
|
|
3
|
+
export declare const isTotalDeletionFailure: (result: Pick<ConversationDeletionResultDto, "failed" | "deleted" | "alreadyAbsent">) => boolean;
|
|
4
|
+
/** Returns the pin state a dragged conversation takes in its target group: `true` to pin, `false` to unpin, `undefined` to leave it. */
|
|
5
|
+
export declare const resolveConversationPinChange: (targetGroupKey: string, isPinned: boolean | undefined) => boolean | undefined;
|
|
6
|
+
//# sourceMappingURL=conversation-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-list.d.ts","sourceRoot":"","sources":["../../src/conversation/conversation-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAGnF,gIAAgI;AAChI,eAAO,MAAM,sBAAsB,GACjC,QAAQ,IAAI,CACV,6BAA6B,EAC7B,QAAQ,GAAG,SAAS,GAAG,eAAe,CACvC,KACA,OAGyB,CAAC;AAE7B,wIAAwI;AACxI,eAAO,MAAM,4BAA4B,GACvC,gBAAgB,MAAM,EACtB,UAAU,OAAO,GAAG,SAAS,KAC5B,OAAO,GAAG,SAIZ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FilterTab as e } from "@epam/ai-dial-chat-shared";
|
|
2
|
+
//#region src/conversation/conversation-list.ts
|
|
3
|
+
var t = (e) => e.failed.length > 0 && e.deleted === 0 && e.alreadyAbsent === 0, n = (t, n) => t === e.Pinned || !n && void 0;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as isTotalDeletionFailure, n as resolveConversationPinChange };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ConversationTitleStreamEventDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Most conversation ids one `streamConversationTitles` request may carry. */
|
|
3
|
+
export declare const CONVERSATION_TITLE_STREAM_MAX_IDS = 500;
|
|
4
|
+
/** Most bytes the serialized ids of one `streamConversationTitles` request may take. */
|
|
5
|
+
export declare const CONVERSATION_TITLE_STREAM_MAX_ID_BYTES: number;
|
|
6
|
+
/** No single event (data lines plus an unterminated line) may exceed this. */
|
|
7
|
+
export declare const CONVERSATION_TITLE_STREAM_MAX_FRAME_BYTES: number;
|
|
8
|
+
/** The stream broke its contract; the attempt must stop without retrying. */
|
|
9
|
+
export declare class ConversationTitleStreamProtocolError extends Error {
|
|
10
|
+
constructor(message: string);
|
|
11
|
+
}
|
|
12
|
+
/** Validates one `data:` payload against the generated event union. */
|
|
13
|
+
export declare const parseConversationTitleStreamEvent: (data: string) => ConversationTitleStreamEventDto;
|
|
14
|
+
/**
|
|
15
|
+
* Incremental SSE framing for already-decoded text: CR, LF and CRLF line
|
|
16
|
+
* endings, comment lines, and multi-line `data:` fields joined by `\n`.
|
|
17
|
+
* Returns the `data` payload of every event completed by `text`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const createSseFrameDecoder: (maxFrameBytes?: number) => {
|
|
20
|
+
push: (text: string) => string[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Reads a title stream body as validated events. The reader is cancelled
|
|
24
|
+
* when iteration stops early (a terminal event, an abort, a protocol error)
|
|
25
|
+
* and released on every exit.
|
|
26
|
+
*/
|
|
27
|
+
export declare const readConversationTitleStream: (body: ReadableStream<Uint8Array>) => AsyncIterable<ConversationTitleStreamEventDto>;
|
|
28
|
+
/**
|
|
29
|
+
* True when an older backend lacks the stream route — the only failure that
|
|
30
|
+
* may switch an identity session to the JSON titles endpoint.
|
|
31
|
+
*/
|
|
32
|
+
export declare const isConversationTitleStreamUnsupported: (error: unknown) => boolean;
|
|
33
|
+
//# sourceMappingURL=conversation-title-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-title-stream.d.ts","sourceRoot":"","sources":["../../src/conversation/conversation-title-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,+BAA+B,EAUrC,MAAM,+BAA+B,CAAC;AAEvC,8EAA8E;AAC9E,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,wFAAwF;AACxF,eAAO,MAAM,sCAAsC,QAAa,CAAC;AACjE,8EAA8E;AAC9E,eAAO,MAAM,yCAAyC,QAAY,CAAC;AAEnE,6EAA6E;AAC7E,qBAAa,oCAAqC,SAAQ,KAAK;gBACjD,OAAO,EAAE,MAAM;CAI5B;AA4BD,uEAAuE;AACvE,eAAO,MAAM,iCAAiC,GAC5C,MAAM,MAAM,KACX,+BA4DF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,sBAAyD;iBAoC1C,MAAM,KAAG,MAAM,EAAE;CAmBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,cAAc,CAAC,UAAU,CAAC,KAC/B,aAAa,CAAC,+BAA+B,CA2B9C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oCAAoC,GAAI,OAAO,OAAO,YAED,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ConversationTitleStreamDoneEventDtoTypeEnum as e, ConversationTitleStreamDoneReason as t, ConversationTitleStreamErrorCode as n, ConversationTitleStreamErrorEventDtoTypeEnum as r, ConversationTitleStreamItemErrorCode as i, ConversationTitleStreamItemErrorEventDtoTypeEnum as a, ConversationTitleStreamTitleEventDtoTypeEnum as o, ConversationTitleStreamUnavailableEventDtoTypeEnum as s, ResponseError as c } from "@epam/ai-dial-chat-api-client";
|
|
2
|
+
//#region src/conversation/conversation-title-stream.ts
|
|
3
|
+
var l = 500, u = 262144, d = 65536, f = class extends Error {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
super(e), this.name = "ConversationTitleStreamProtocolError";
|
|
6
|
+
}
|
|
7
|
+
}, p = {
|
|
8
|
+
401: n.Unauthenticated,
|
|
9
|
+
502: n.UpstreamError,
|
|
10
|
+
503: n.Unavailable
|
|
11
|
+
}, m = (e) => {
|
|
12
|
+
let t = 0;
|
|
13
|
+
for (let n = 0; n < e.length; n++) {
|
|
14
|
+
let r = e.charCodeAt(n);
|
|
15
|
+
r < 128 ? t += 1 : r < 2048 ? t += 2 : r >= 55296 && r <= 56319 ? (t += 4, n++) : t += 3;
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
}, h = (e) => typeof e == "string", g = (e) => Number.isInteger(e) && e >= 0, _ = (e, t) => Object.values(e).includes(t), v = (n) => {
|
|
19
|
+
let c;
|
|
20
|
+
try {
|
|
21
|
+
c = JSON.parse(n);
|
|
22
|
+
} catch {
|
|
23
|
+
throw new f("Malformed event JSON");
|
|
24
|
+
}
|
|
25
|
+
if (typeof c != "object" || !c) throw new f("Event is not an object");
|
|
26
|
+
switch (c.type) {
|
|
27
|
+
case o.Title:
|
|
28
|
+
if (h(c.id) && h(c.title)) return {
|
|
29
|
+
type: c.type,
|
|
30
|
+
id: c.id,
|
|
31
|
+
title: c.title
|
|
32
|
+
};
|
|
33
|
+
break;
|
|
34
|
+
case s.Unavailable:
|
|
35
|
+
if (h(c.id)) return {
|
|
36
|
+
type: c.type,
|
|
37
|
+
id: c.id
|
|
38
|
+
};
|
|
39
|
+
break;
|
|
40
|
+
case a.ItemError:
|
|
41
|
+
if (h(c.id) && _(i, c.code)) return {
|
|
42
|
+
type: c.type,
|
|
43
|
+
id: c.id,
|
|
44
|
+
code: c.code
|
|
45
|
+
};
|
|
46
|
+
break;
|
|
47
|
+
case e.Done:
|
|
48
|
+
if (_(t, c.reason) && g(c.processed) && g(c.total) && c.processed <= c.total) return {
|
|
49
|
+
type: c.type,
|
|
50
|
+
reason: c.reason,
|
|
51
|
+
processed: c.processed,
|
|
52
|
+
total: c.total
|
|
53
|
+
};
|
|
54
|
+
break;
|
|
55
|
+
case r.Error: if (typeof c.status == "number" && p[c.status] === c.code) return {
|
|
56
|
+
type: c.type,
|
|
57
|
+
status: c.status,
|
|
58
|
+
code: c.code
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
throw new f("Unknown or invalid event");
|
|
62
|
+
}, y = (e = d) => {
|
|
63
|
+
let t = "", n = [], r = 0, i = !0, a = (t) => {
|
|
64
|
+
if (t > e) throw new f("Event exceeds 64 KiB");
|
|
65
|
+
}, o = (e, t) => {
|
|
66
|
+
if (i && (i = !1, e.startsWith("") && (e = e.slice(1))), e === "") {
|
|
67
|
+
n.length > 0 && t.push(n.join("\n")), n = [], r = 0;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (e.startsWith(":")) return;
|
|
71
|
+
let o = e.indexOf(":");
|
|
72
|
+
if ((o === -1 ? e : e.slice(0, o)) !== "data") return;
|
|
73
|
+
let s = o === -1 ? "" : e.slice(o + 1);
|
|
74
|
+
s.startsWith(" ") && (s = s.slice(1)), r += m(s) + 1, a(r), n.push(s);
|
|
75
|
+
};
|
|
76
|
+
return { push: (e) => {
|
|
77
|
+
let n = [];
|
|
78
|
+
for (t += e;;) {
|
|
79
|
+
let e = /\r\n|\r|\n/.exec(t);
|
|
80
|
+
if (!e || e[0] === "\r" && e.index === t.length - 1) break;
|
|
81
|
+
o(t.slice(0, e.index), n), t = t.slice(e.index + e[0].length);
|
|
82
|
+
}
|
|
83
|
+
return a(r + m(t)), n;
|
|
84
|
+
} };
|
|
85
|
+
}, b = (e) => ({ async *[Symbol.asyncIterator]() {
|
|
86
|
+
let t = e.getReader(), n = new TextDecoder(), r = y(), i = !1;
|
|
87
|
+
try {
|
|
88
|
+
for (;;) {
|
|
89
|
+
let { done: e, value: a } = await t.read();
|
|
90
|
+
if (e) {
|
|
91
|
+
i = !0;
|
|
92
|
+
for (let e of r.push(n.decode())) yield v(e);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
let o = n.decode(a, { stream: !0 });
|
|
96
|
+
for (let e of r.push(o)) yield v(e);
|
|
97
|
+
}
|
|
98
|
+
} finally {
|
|
99
|
+
i || await t.cancel().catch(() => void 0), t.releaseLock();
|
|
100
|
+
}
|
|
101
|
+
} }), x = (e) => e instanceof c && (e.response.status === 404 || e.response.status === 405);
|
|
102
|
+
//#endregion
|
|
103
|
+
export { d as CONVERSATION_TITLE_STREAM_MAX_FRAME_BYTES, l as CONVERSATION_TITLE_STREAM_MAX_IDS, u as CONVERSATION_TITLE_STREAM_MAX_ID_BYTES, f as ConversationTitleStreamProtocolError, y as createSseFrameDecoder, x as isConversationTitleStreamUnsupported, v as parseConversationTitleStreamEvent, b as readConversationTitleStream };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs `worker` over `items` with at most `limit` concurrent invocations.
|
|
3
|
+
* Preserves no particular result order beyond "worker completed"; a worker
|
|
4
|
+
* that returns `undefined`, or throws, contributes nothing to the result
|
|
5
|
+
* array (used to skip failed/invalid items without aborting the whole
|
|
6
|
+
* batch) — a throwing worker is caught here so the other concurrent items
|
|
7
|
+
* keep being tracked instead of continuing unobserved in the background.
|
|
8
|
+
*/
|
|
9
|
+
export declare const runWithConcurrency: <T, R>(items: T[], limit: number, worker: (item: T) => Promise<R | undefined>) => Promise<R[]>;
|
|
10
|
+
//# sourceMappingURL=async.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/async.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAU,CAAC,EAAE,CAAC,EAC3C,OAAO,CAAC,EAAE,EACV,OAAO,MAAM,EACb,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,KAC1C,OAAO,CAAC,CAAC,EAAE,CAqBb,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Annotation, Conversation } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The reference fields shared by every attachment shape a conversation can
|
|
4
|
+
* carry — `MessageAttachment` on a message or a stage, and
|
|
5
|
+
* `AttachmentResource` on a citation's source.
|
|
6
|
+
*/
|
|
7
|
+
export interface AttachmentReference {
|
|
8
|
+
/** DIAL file id (`files/{bucket}/{path}`), optionally with a trailing `#…` anchor. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** Alternate reference resource, same shape as `url`. */
|
|
11
|
+
reference_url?: string;
|
|
12
|
+
/** Display name shown in the UI. */
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Splits a DIAL file reference into the resource id and its trailing `#…`
|
|
17
|
+
* anchor (e.g. the `#page=3` a PDF citation carries). An anchor outside
|
|
18
|
+
* {@link SAFE_ANCHOR_PATTERN} is reported as absent; the file id is returned
|
|
19
|
+
* either way, so the attachment itself is still transferred.
|
|
20
|
+
*
|
|
21
|
+
* The anchor is display metadata, not part of the stored resource path: the
|
|
22
|
+
* download endpoint 404s on it, so it has to be stripped before a reference
|
|
23
|
+
* is resolved to `{bucket, path}` — and restored afterwards, so an imported
|
|
24
|
+
* citation still opens the page it cited.
|
|
25
|
+
*/
|
|
26
|
+
export declare const splitFileIdAnchor: (url: string) => {
|
|
27
|
+
fileId: string;
|
|
28
|
+
anchor: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Applies `mapAnnotation` to every readable entry of the citation pool,
|
|
32
|
+
* keeping unreadable entries and every other `customViewState` key as they
|
|
33
|
+
* are. Returns `conversation` itself when no entry changed, so a caller can
|
|
34
|
+
* tell by identity that the pool needed no work.
|
|
35
|
+
*/
|
|
36
|
+
export declare const mapAnnotationPool: (conversation: Conversation, mapAnnotation: (annotation: Annotation) => Annotation) => Conversation;
|
|
37
|
+
/** A unique DIAL file reference found in a conversation's messages. */
|
|
38
|
+
export interface AttachmentRef {
|
|
39
|
+
fileId: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Collects unique attachment references across all messages — message
|
|
43
|
+
* attachments, stage attachments, and citation source documents — and the
|
|
44
|
+
* conversation-level citation pool, with any
|
|
45
|
+
* `#…` anchor stripped. The same file can be referenced more than once (by a
|
|
46
|
+
* later turn, by a stage and the message it belongs to, or by several
|
|
47
|
+
* citations), so dedupe by file id and process it only once.
|
|
48
|
+
*/
|
|
49
|
+
export declare const collectAttachmentRefs: (conversation: Conversation) => AttachmentRef[];
|
|
50
|
+
//# sourceMappingURL=attachment-refs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-refs.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/attachment-refs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK1E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAeD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,MAAM,KACV;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CASlC,CAAC;AAqBF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,YAAY,EAC1B,eAAe,CAAC,UAAU,EAAE,UAAU,KAAK,UAAU,KACpD,YAgBF,CAAC;AAEF,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAgDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,cAAc,YAAY,KACzB,aAAa,EAef,CAAC"}
|