@epam/ai-dial-chat-hooks 1.3.0-dev.34 → 1.3.0-dev.343
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 +65 -68
- 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
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { DialFileManagerActionProfile, DialFileManagerVariant, FileUploadValidationResult, FileDownloadBatchState, FileUploadBatchState, FileUploadFailureReason } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { DialCopiedItem, DialDeletedItem, DialFile, DialFileManagerActions, DialFileManagerTabs, DialUploadFileItem, FileManagerColumnKey } from '@epam/ai-dial-react-file-manager';
|
|
3
|
+
import { NotificationVariant } from '@epam/ai-dial-ui-kit';
|
|
4
|
+
import { DialFilesApi } from './dial-files-api';
|
|
5
|
+
import { DownloadDestinationHandlers } from './download-destination';
|
|
6
|
+
/**
|
|
7
|
+
* Library-owned identifier for why a file-manager hook is surfacing an
|
|
8
|
+
* `onNotification` event, replacing a pre-translated toast message. The host
|
|
9
|
+
* maps each reason to its own translated string.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum FileManagerNotificationReason {
|
|
12
|
+
/** A folder listing fetch (initial load, expand, invalidate-refetch, or popup preload) failed. */
|
|
13
|
+
FolderLoadFailed = "folderLoadFailed",
|
|
14
|
+
/** A single-file/folder metadata fetch (`onGetInfo`) failed. */
|
|
15
|
+
MetadataLoadFailed = "metadataLoadFailed",
|
|
16
|
+
/** `onCreateFolder`'s `createFolder` call failed. */
|
|
17
|
+
FolderCreateFailed = "folderCreateFailed",
|
|
18
|
+
/** `onDownloadFiles` failed for a single file/folder selection. */
|
|
19
|
+
DownloadFileFailed = "downloadFileFailed",
|
|
20
|
+
/** `onDownloadFiles` failed for a multi-item selection. */
|
|
21
|
+
DownloadFilesFailed = "downloadFilesFailed",
|
|
22
|
+
/** `onDeleteFiles` deleted at least one item successfully; `count`/`name`/`folder` describe the result. */
|
|
23
|
+
FilesDeleted = "filesDeleted",
|
|
24
|
+
/** `onDeleteFiles` completed with at least one failure alongside a success; `names`/`restCount` list the failures. */
|
|
25
|
+
FilesDeletePartiallyFailed = "filesDeletePartiallyFailed",
|
|
26
|
+
/** `onDeleteFiles`'s `deleteFiles` request itself rejected. */
|
|
27
|
+
DeleteFailed = "deleteFailed",
|
|
28
|
+
/** `onMoveToFiles`'s rename branch failed for every item in the batch. */
|
|
29
|
+
RenameFailed = "renameFailed",
|
|
30
|
+
/** `onMoveToFiles`'s rename branch failed for some items; `count` is the failed count. */
|
|
31
|
+
RenamePartiallyFailed = "renamePartiallyFailed",
|
|
32
|
+
/** `onMoveToFiles`'s move branch failed for every item in the batch. */
|
|
33
|
+
MoveFailed = "moveFailed",
|
|
34
|
+
/** `onMoveToFiles`'s move branch failed for some items; `count` is the failed count. */
|
|
35
|
+
MovePartiallyFailed = "movePartiallyFailed",
|
|
36
|
+
/** `onCopyFiles` failed for every item in the batch. */
|
|
37
|
+
CopyFailed = "copyFailed",
|
|
38
|
+
/** `onCopyFiles` failed for some items; `count` is the failed count. */
|
|
39
|
+
CopyPartiallyFailed = "copyPartiallyFailed",
|
|
40
|
+
/** `useDialFileSharing`'s `onUnshareFiles` request failed. */
|
|
41
|
+
UnshareFailed = "unshareFailed",
|
|
42
|
+
/** `useDialFileSharing`'s `onRemoveFilesAccess` request failed. */
|
|
43
|
+
RemoveAccessFailed = "removeAccessFailed",
|
|
44
|
+
/** `useDialFileUploadBatch`'s plain-file batch had zero successful uploads. */
|
|
45
|
+
UploadFailed = "uploadFailed",
|
|
46
|
+
/** `useDialFileUploadBatch`'s plain-file batch completed (fully or partially successful). */
|
|
47
|
+
UploadCompleted = "uploadCompleted",
|
|
48
|
+
/** `onUploadArchive` extracted zero entries successfully; `names`/`restCount` list the failures. */
|
|
49
|
+
UploadArchiveFailed = "uploadArchiveFailed",
|
|
50
|
+
/** `onUploadArchive` extracted some entries successfully and some failed; `count`/`names`/`restCount` describe the failures. */
|
|
51
|
+
UploadArchivePartiallyFailed = "uploadArchivePartiallyFailed",
|
|
52
|
+
/** `onUploadArchive`'s `uploadArchive` request itself rejected. */
|
|
53
|
+
UploadArchiveRequestFailed = "uploadArchiveRequestFailed",
|
|
54
|
+
/** A copy/move targeted a destination in a different All-view section from its source items; no request was made. */
|
|
55
|
+
CrossSectionTransferUnsupported = "crossSectionTransferUnsupported"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Structured toast event emitted by file-manager hooks. `reason` carries a
|
|
59
|
+
* library-owned identifier the host translates; `message` is an optional
|
|
60
|
+
* pre-rendered fallback for notifications a hook composes without a `reason`
|
|
61
|
+
* (e.g. hosts still authoring their own text for hooks not yet covered by a
|
|
62
|
+
* `FileManagerNotificationReason` member). The remaining fields carry the
|
|
63
|
+
* data a host needs to interpolate its translated string for reasons whose
|
|
64
|
+
* wording depends on more than the reason itself.
|
|
65
|
+
*/
|
|
66
|
+
export interface FileManagerNotification {
|
|
67
|
+
variant: NotificationVariant;
|
|
68
|
+
title?: string;
|
|
69
|
+
message?: string;
|
|
70
|
+
reason?: FileManagerNotificationReason;
|
|
71
|
+
/** Number of items the notification covers (e.g. a partial-failure count). */
|
|
72
|
+
count?: number;
|
|
73
|
+
/** Name of the affected entity or first successfully affected item. */
|
|
74
|
+
name?: string;
|
|
75
|
+
/** Source or destination folder name the notification refers to. */
|
|
76
|
+
folder?: string;
|
|
77
|
+
/** Up to the first 5 names affected by a partial/full failure list (e.g. archive extraction, delete). */
|
|
78
|
+
names?: string[];
|
|
79
|
+
/** Count of additional affected items beyond `names`' limit. */
|
|
80
|
+
restCount?: number;
|
|
81
|
+
/** Reason shared by every failed file of an `UploadFailed` batch; unset when the failed files have different reasons. */
|
|
82
|
+
failureReason?: FileUploadFailureReason;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Reason a file/folder name failed `onCreateFolderValidate`/
|
|
86
|
+
* `onRenameValidate`'s validation, used as the discriminant of
|
|
87
|
+
* `FileNameValidationError`.
|
|
88
|
+
*/
|
|
89
|
+
export declare enum FileNameValidationErrorReason {
|
|
90
|
+
Empty = "empty",
|
|
91
|
+
ForbiddenSymbols = "forbiddenSymbols",
|
|
92
|
+
ReservedName = "reservedName",
|
|
93
|
+
TooLong = "tooLong",
|
|
94
|
+
DuplicateName = "duplicateName"
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Discriminated validation failure returned by `onCreateFolderValidate`/
|
|
98
|
+
* `onRenameValidate` instead of a pre-translated message; `null` means the
|
|
99
|
+
* name is valid. The host maps each `reason` to its own translated string.
|
|
100
|
+
*/
|
|
101
|
+
export type FileNameValidationError = {
|
|
102
|
+
reason: FileNameValidationErrorReason.Empty;
|
|
103
|
+
} | {
|
|
104
|
+
reason: FileNameValidationErrorReason.ForbiddenSymbols;
|
|
105
|
+
symbols: string;
|
|
106
|
+
} | {
|
|
107
|
+
reason: FileNameValidationErrorReason.ReservedName;
|
|
108
|
+
} | {
|
|
109
|
+
reason: FileNameValidationErrorReason.TooLong;
|
|
110
|
+
maxLength: number;
|
|
111
|
+
} | {
|
|
112
|
+
reason: FileNameValidationErrorReason.DuplicateName;
|
|
113
|
+
existingName: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Kind of mutation `useDialFileMutations` just completed successfully, for
|
|
117
|
+
* `onOperationSuccess`. Delete has no member here — its success feedback
|
|
118
|
+
* stays a structured `onNotification` event since it needs a count/folder,
|
|
119
|
+
* not a single named entity.
|
|
120
|
+
*/
|
|
121
|
+
export declare enum FileOperationKind {
|
|
122
|
+
FolderCreated = "folderCreated",
|
|
123
|
+
FileRenamed = "fileRenamed",
|
|
124
|
+
FileDownloaded = "fileDownloaded",
|
|
125
|
+
FilesDownloaded = "filesDownloaded",
|
|
126
|
+
FileCopied = "fileCopied",
|
|
127
|
+
FilesCopied = "filesCopied",
|
|
128
|
+
FileMoved = "fileMoved",
|
|
129
|
+
FilesMoved = "filesMoved",
|
|
130
|
+
/** A copy whose every item landed in its own source folder (Duplicate). */
|
|
131
|
+
FileDuplicated = "fileDuplicated",
|
|
132
|
+
FilesDuplicated = "filesDuplicated",
|
|
133
|
+
/** One or more shared-with-me items were removed from the Shared tab. */
|
|
134
|
+
FilesUnshared = "filesUnshared"
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Structured success event `useDialFileMutations` emits through
|
|
138
|
+
* `onOperationSuccess` instead of calling an application notification
|
|
139
|
+
* service directly.
|
|
140
|
+
*/
|
|
141
|
+
export interface FileOperationSuccessEvent {
|
|
142
|
+
/** Which mutation just succeeded. */
|
|
143
|
+
kind: FileOperationKind;
|
|
144
|
+
/** Name of the affected entity or first successfully affected item, when applicable. */
|
|
145
|
+
name?: string;
|
|
146
|
+
/** Number of items the operation covered, when applicable. */
|
|
147
|
+
count?: number;
|
|
148
|
+
/**
|
|
149
|
+
* Destination folder as a slash-joined virtual path starting at the root
|
|
150
|
+
* label (e.g. `My files/reports`), for copy/move/duplicate operations.
|
|
151
|
+
*/
|
|
152
|
+
destinationFolderName?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the affected item is a folder rather than a file. Set for rename,
|
|
155
|
+
* copy, move, and duplicate events; on a multi-item event it describes the
|
|
156
|
+
* first successfully affected item (the one `name` refers to).
|
|
157
|
+
*/
|
|
158
|
+
isFolder?: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface UseDialFileManagerOptions {
|
|
161
|
+
/** Injected operation port used for every file-manager network call. */
|
|
162
|
+
filesApi: DialFilesApi;
|
|
163
|
+
/** DIAL Core bucket to browse (used only for my_files tab). */
|
|
164
|
+
bucket: string;
|
|
165
|
+
/** Display name for the root folder node. Defaults to `'My files'`. */
|
|
166
|
+
rootLabel?: string;
|
|
167
|
+
/** Active tab — drives listing source and per-tab options. Defaults to MyFiles. */
|
|
168
|
+
activeTab?: DialFileManagerTabs;
|
|
169
|
+
/** When false, the listing issues no `DialFilesApi` call and reports `isLoading: false`. Defaults to `true`. */
|
|
170
|
+
isActive?: boolean;
|
|
171
|
+
/** Changing this value resets cache and navigation exactly like an `activeTab` change. Defaults to `undefined`. */
|
|
172
|
+
sessionKey?: string;
|
|
173
|
+
/** Called when a file-manager action should surface a toast notification. */
|
|
174
|
+
onNotification?: (notification: FileManagerNotification) => void;
|
|
175
|
+
/** Called when a mutation succeeds, instead of invoking an application notification service directly. */
|
|
176
|
+
onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
|
|
177
|
+
/** Regexp of characters forbidden in file/folder names (e.g. NOT_ALLOWED_SYMBOLS_REGEXP). */
|
|
178
|
+
forbiddenSymbolsRegExp?: RegExp;
|
|
179
|
+
/** Which host is driving this hook instance. Defaults to `Attach`. */
|
|
180
|
+
variant?: DialFileManagerVariant;
|
|
181
|
+
/** Gates which actions are exposed. Defaults to the value derived from `variant`. */
|
|
182
|
+
actionProfile?: DialFileManagerActionProfile;
|
|
183
|
+
/**
|
|
184
|
+
* Host-supplied action label text, keyed by `DialFileManagerActions`. The
|
|
185
|
+
* hook computes which actions are visible/enabled per tab/variant/
|
|
186
|
+
* actionProfile and intersects that gating with this map — an action the
|
|
187
|
+
* gating allows but this map omits is left out of `actionLabels`.
|
|
188
|
+
*/
|
|
189
|
+
labels: Partial<Record<DialFileManagerActions, string>>;
|
|
190
|
+
/** BCP-47 locale string for date formatting, replacing `i18n.language`. */
|
|
191
|
+
locale: string;
|
|
192
|
+
/** Translated tooltip shown on the disabled New/Upload button. */
|
|
193
|
+
disabledNewButtonTooltip: string;
|
|
194
|
+
/** Host-injected browser "Save As"/auto-download seam for `onDownloadFiles`. */
|
|
195
|
+
downloadDestination: DownloadDestinationHandlers;
|
|
196
|
+
/**
|
|
197
|
+
* Builds a translated message from a structured validation-error reason,
|
|
198
|
+
* for `onCreateFolderValidate`/`onRenameValidate`. `item` is passed for a
|
|
199
|
+
* rename (so the host can distinguish file vs. folder wording) and
|
|
200
|
+
* omitted for folder creation.
|
|
201
|
+
*/
|
|
202
|
+
buildValidationErrorMessage: (error: FileNameValidationError, item?: DialFile) => string;
|
|
203
|
+
}
|
|
204
|
+
export interface UseDialFileManagerResult {
|
|
205
|
+
/** Hierarchical items for DialFileManager's `items` prop. */
|
|
206
|
+
items: DialFile[];
|
|
207
|
+
/** True while the current folder is loading. */
|
|
208
|
+
isLoading: boolean;
|
|
209
|
+
/** Non-null when the last fetch failed. */
|
|
210
|
+
error: string | null;
|
|
211
|
+
/** Current path in DialFileManager format (e.g. `"/My files"`, `"/My files/reports/"`). */
|
|
212
|
+
path: string;
|
|
213
|
+
/** Pass directly to DialFileManager's `onPathChange`. */
|
|
214
|
+
onPathChange: (nextPath?: string) => void;
|
|
215
|
+
/** Re-runs the fetch for the current `folderPath`. */
|
|
216
|
+
retry: () => void;
|
|
217
|
+
/**
|
|
218
|
+
* Search: called by DialFileManager when the user types in the search box.
|
|
219
|
+
* `folder` is accepted for API parity with DialFileManager but is intentionally
|
|
220
|
+
* unused — this hook always searches from the active-tab root stored in
|
|
221
|
+
* `folderPath`, not from the passed-in `folder` (see design decision D3).
|
|
222
|
+
*/
|
|
223
|
+
onSearchFiles: (folder: string, query: string) => void;
|
|
224
|
+
/** Search: true while a search request is in flight. */
|
|
225
|
+
isSearching: boolean;
|
|
226
|
+
/** Search: flat, unfiltered recursive listing of the current folder, or null when search is not active. */
|
|
227
|
+
searchResults: DialFile[] | null;
|
|
228
|
+
/** Search: clears results and exits search mode. */
|
|
229
|
+
clearSearchResults: () => void;
|
|
230
|
+
/** Tree: controlled set of expanded folder virtual paths. */
|
|
231
|
+
expandedPaths: Set<string>;
|
|
232
|
+
/** Tree: expanded or destination-popup virtual paths whose children are already cached. */
|
|
233
|
+
loadedPaths: Set<string>;
|
|
234
|
+
/** Tree: called by DialFileManager when a folder is expanded/collapsed. */
|
|
235
|
+
onExpandedPathsChange: (paths: Set<string>) => void;
|
|
236
|
+
/** Destination folder popup: preloads the browsed folder without changing the outer grid path. */
|
|
237
|
+
onFolderPopupPathChange: (nextPath?: string) => void;
|
|
238
|
+
/** Destination folder popup: normalized virtual paths currently being preloaded. */
|
|
239
|
+
folderPopupLoadingPaths: Set<string>;
|
|
240
|
+
/** Upload: start a new batch. */
|
|
241
|
+
onUploadFiles: (files: DialUploadFileItem[], destinationFolder: string) => void;
|
|
242
|
+
/** Upload: extracts and uploads a ZIP archive's entries to the destination folder. */
|
|
243
|
+
onUploadArchive: (file: File, name: string, destinationFolder: string) => void;
|
|
244
|
+
/** Upload: validate file names before upload (called by DialFileManager). */
|
|
245
|
+
onValidateUpload: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => Promise<FileUploadValidationResult>;
|
|
246
|
+
/** Upload: current batch state (null when idle). */
|
|
247
|
+
uploadBatchState: FileUploadBatchState | null;
|
|
248
|
+
/** Upload: abort all in-flight and queued uploads. */
|
|
249
|
+
cancelUpload: () => void;
|
|
250
|
+
/** Upload: abort one queued or in-flight upload by its entry id. */
|
|
251
|
+
cancelUploadFile: (id: string) => void;
|
|
252
|
+
/** Upload: empty the upload queue. */
|
|
253
|
+
clearUploadBatch: () => void;
|
|
254
|
+
/** Folder creation: called when user confirms a new folder name. */
|
|
255
|
+
onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
|
|
256
|
+
/** Folder creation: inline synchronous validation (returns error message or null). */
|
|
257
|
+
onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
|
|
258
|
+
/** True while a folder creation request is in flight. */
|
|
259
|
+
isCreatingFolder: boolean;
|
|
260
|
+
/** Download: called when user triggers download on one or more items; returns without waiting for the transfer. */
|
|
261
|
+
onDownloadFiles: (dialFiles: DialFile[]) => void;
|
|
262
|
+
/** True while at least one download is in progress. Does not block other actions. */
|
|
263
|
+
isDownloading: boolean;
|
|
264
|
+
/** Download: current batch state (null when idle). */
|
|
265
|
+
downloadBatchState: FileDownloadBatchState | null;
|
|
266
|
+
/** Download: abort one in-flight download by its entry id. */
|
|
267
|
+
cancelDownloadFile: (id: string) => void;
|
|
268
|
+
/** Download: abort every in-flight download. */
|
|
269
|
+
cancelAllDownloads: () => void;
|
|
270
|
+
/** Download: empty the download batch. */
|
|
271
|
+
clearDownloadBatch: () => void;
|
|
272
|
+
/** Delete: called when user confirms deletion of one or more items. */
|
|
273
|
+
onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
274
|
+
/** True while a delete request is in flight. */
|
|
275
|
+
isDeleting: boolean;
|
|
276
|
+
/** Rename: inline validation — returns error string or null. */
|
|
277
|
+
onRenameValidate: (value: string, item: DialFile) => string | null;
|
|
278
|
+
/** Rename: called when user confirms an inline rename. Also dispatches cross-folder move (see D3). */
|
|
279
|
+
onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
|
|
280
|
+
/** True while a rename request is in flight. */
|
|
281
|
+
isRenaming: boolean;
|
|
282
|
+
/** Copy: called when user confirms a copy-paste. */
|
|
283
|
+
onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
|
|
284
|
+
/** True while a copy request is in flight. */
|
|
285
|
+
isCopying: boolean;
|
|
286
|
+
/** True while the cross-folder-move branch of onMoveToFiles is in flight. */
|
|
287
|
+
isMoving: boolean;
|
|
288
|
+
/** Aborts whichever of copy/move is currently in flight. */
|
|
289
|
+
cancelCopyMove: () => void;
|
|
290
|
+
/** True when the current folder grants WRITE (upload + new folder). */
|
|
291
|
+
uploadEnabled: boolean;
|
|
292
|
+
/** True when Upload/New must be disabled. */
|
|
293
|
+
isNewButtonDisabled: boolean;
|
|
294
|
+
/** Tooltip for disabled New/Upload when `isNewButtonDisabled` is true. */
|
|
295
|
+
disabledNewButtonTooltip: string;
|
|
296
|
+
/** Columns to show in the grid — tab-dependent. */
|
|
297
|
+
visibleColumns: FileManagerColumnKey[];
|
|
298
|
+
/** BCP-47 locale string for date formatting, sourced from i18n.language. */
|
|
299
|
+
dateLocale: string;
|
|
300
|
+
/** Fixed date format options for the UpdatedAt column. */
|
|
301
|
+
dateOptions: Intl.DateTimeFormatOptions;
|
|
302
|
+
/** Action labels for grid/tree/bulk — Delete present only on my_files tab. */
|
|
303
|
+
actionLabels: Partial<Record<DialFileManagerActions, string>>;
|
|
304
|
+
/** Root-level shared item paths, populated only on the Shared tab. */
|
|
305
|
+
sharedWithMeIds: string[] | undefined;
|
|
306
|
+
/** Share: paths the user has shared with others, populated only on my_files tab. */
|
|
307
|
+
sharedByMePaths: Set<string>;
|
|
308
|
+
/** Unshare: called when user removes a shared-with-me item (Shared tab only). */
|
|
309
|
+
onUnshareFiles: (files: DialFile[]) => void;
|
|
310
|
+
/** True while an unshare request is in flight. */
|
|
311
|
+
isUnsharing: boolean;
|
|
312
|
+
/** Remove access: called when user revokes access to an owned shared item (my_files tab only). */
|
|
313
|
+
onRemoveFilesAccess: (files: DialFile[]) => void;
|
|
314
|
+
/** True while a remove-access request is in flight. */
|
|
315
|
+
isRemovingAccess: boolean;
|
|
316
|
+
/** Metadata: populated once onGetInfo resolves; passed to fileMetadataPopupOptions.fileMetadata. */
|
|
317
|
+
fileMetadata: DialFile | undefined;
|
|
318
|
+
/** True while a metadata request is in flight. */
|
|
319
|
+
isFileMetadataLoading: boolean;
|
|
320
|
+
/** Metadata: called by DialFileManager.onGetInfo to fetch and display a file's details. */
|
|
321
|
+
onGetInfo: (file: DialFile) => void;
|
|
322
|
+
/** Metadata: resets fileMetadata/isFileMetadataLoading; passed to fileMetadataPopupOptions.clearMetadata. */
|
|
323
|
+
clearMetadata: () => void;
|
|
324
|
+
/**
|
|
325
|
+
* True while any mutating file-manager operation is in flight: the OR of
|
|
326
|
+
* `isCreatingFolder`, `isDeleting`, `isRenaming`, `isCopying`,
|
|
327
|
+
* `isMoving`, `isUnsharing`, `isRemovingAccess`, and any upload still queued or running.
|
|
328
|
+
*
|
|
329
|
+
* Deliberately excludes three flags, each already fully contained by its own
|
|
330
|
+
* scoped loading UI:
|
|
331
|
+
* - `isLoading` — a read (listing fetch), not a mutation.
|
|
332
|
+
* - `isSearching` — scoped to ui-kit's own search-progress UI.
|
|
333
|
+
* - `isFileMetadataLoading` — has its own `loading` state in `fileMetadataPopupOptions`.
|
|
334
|
+
*/
|
|
335
|
+
isAnyOperationInProgress: boolean;
|
|
336
|
+
}
|
|
337
|
+
//# sourceMappingURL=dial-file-manager.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-file-manager.types.d.ts","sourceRoot":"","sources":["../../src/files/dial-file-manager.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;;;GAIG;AACH,oBAAY,6BAA6B;IACvC,kGAAkG;IAClG,gBAAgB,qBAAqB;IACrC,gEAAgE;IAChE,kBAAkB,uBAAuB;IACzC,qDAAqD;IACrD,kBAAkB,uBAAuB;IACzC,mEAAmE;IACnE,kBAAkB,uBAAuB;IACzC,2DAA2D;IAC3D,mBAAmB,wBAAwB;IAC3C,2GAA2G;IAC3G,YAAY,iBAAiB;IAC7B,sHAAsH;IACtH,0BAA0B,+BAA+B;IACzD,+DAA+D;IAC/D,YAAY,iBAAiB;IAC7B,0EAA0E;IAC1E,YAAY,iBAAiB;IAC7B,0FAA0F;IAC1F,qBAAqB,0BAA0B;IAC/C,wEAAwE;IACxE,UAAU,eAAe;IACzB,wFAAwF;IACxF,mBAAmB,wBAAwB;IAC3C,wDAAwD;IACxD,UAAU,eAAe;IACzB,wEAAwE;IACxE,mBAAmB,wBAAwB;IAC3C,8DAA8D;IAC9D,aAAa,kBAAkB;IAC/B,mEAAmE;IACnE,kBAAkB,uBAAuB;IACzC,+EAA+E;IAC/E,YAAY,iBAAiB;IAC7B,6FAA6F;IAC7F,eAAe,oBA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YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,sEAAsE;IACtE,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAEtC,oFAAoF;IACpF,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAE7B,iFAAiF;IACjF,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,kDAAkD;IAClD,WAAW,EAAE,OAAO,CAAC;IACrB,kGAAkG;IAClG,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACjD,uDAAuD;IACvD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,oGAAoG;IACpG,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,kDAAkD;IAClD,qBAAqB,EAAE,OAAO,CAAC;IAC/B,2FAA2F;IAC3F,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6GAA6G;IAC7G,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;;;;;;;;;OAUG;IACH,wBAAwB,EAAE,OAAO,CAAC;CACnC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Attachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { DialFile } from '@epam/ai-dial-ui-kit';
|
|
3
|
+
/** Options for {@link dialFileToAttachment} and {@link dialFilesToAttachments}. */
|
|
4
|
+
export interface DialFileToAttachmentOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Resolves an image attachment's `previewUrl` from its DIAL resource URL.
|
|
7
|
+
* Left unset, image attachments get no `previewUrl`. The host owns bucket/
|
|
8
|
+
* icon-path REST construction — this hook never builds those URLs itself.
|
|
9
|
+
*/
|
|
10
|
+
resolvePreviewUrl?: (url: string) => string | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Converts a selected ui-kit file into the generic attachment contract.
|
|
14
|
+
* DIAL storage identifiers are resolved at the app edge so the input library
|
|
15
|
+
* remains unaware of buckets, server routes, and external file systems.
|
|
16
|
+
*/
|
|
17
|
+
export declare const dialFileToAttachment: (file: DialFile, bucket: string, options?: DialFileToAttachmentOptions) => Attachment | null;
|
|
18
|
+
/** Maps a batch of selected DIAL files to attachments, dropping folders and unresolvable entries. */
|
|
19
|
+
export declare const dialFilesToAttachments: (files: DialFile[], bucket: string, options?: DialFileToAttachmentOptions) => Attachment[];
|
|
20
|
+
/**
|
|
21
|
+
* Converts a DIAL Core folder path (e.g. `files/{bucket}/{path}/`) into an
|
|
22
|
+
* attachment. DIAL Core resolves folder contents server-side when the path is
|
|
23
|
+
* sent as an attachment URL.
|
|
24
|
+
*/
|
|
25
|
+
export declare const dialFolderPathToAttachment: (folderPath: string) => Attachment;
|
|
26
|
+
//# sourceMappingURL=dial-file-to-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-file-to-attachment.d.ts","sourceRoot":"","sources":["../../src/files/dial-file-to-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAkBvE,mFAAmF;AACnF,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACzD;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,QAAQ,EACd,QAAQ,MAAM,EACd,UAAU,2BAA2B,KACpC,UAAU,GAAG,IAoBf,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,GACjC,OAAO,QAAQ,EAAE,EACjB,QAAQ,MAAM,EACd,UAAU,2BAA2B,KACpC,UAAU,EAG4D,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,KAAG,UAa/D,CAAC"}
|
|
@@ -22,15 +22,15 @@ var a = (e, n) => {
|
|
|
22
22
|
...u == null ? {} : { previewUrl: u }
|
|
23
23
|
};
|
|
24
24
|
}, s = (e, t, n) => e.map((e) => o(e, t, n)).filter((e) => e != null), c = (t) => {
|
|
25
|
-
let i =
|
|
25
|
+
let i = t.replace(/\/$/, "").split("/").filter(Boolean).pop() ?? "", a = e(i);
|
|
26
26
|
return {
|
|
27
27
|
id: t,
|
|
28
|
-
name:
|
|
28
|
+
name: a,
|
|
29
29
|
contentType: "application/octet-stream",
|
|
30
30
|
type: n.File,
|
|
31
31
|
status: r.Idle,
|
|
32
32
|
url: t,
|
|
33
|
-
file: new File([],
|
|
33
|
+
file: new File([], a)
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DialFile } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
/** True when `url` looks like a DIAL Core file id (`files/{bucket}/{path}`). */
|
|
3
|
+
export declare const isDialFileId: (url: string) => boolean;
|
|
4
|
+
/** True when `url` is a DIAL Core folder id: a file id ending with `/`, ignoring any `#...` fragment. */
|
|
5
|
+
export declare const isDialFolderId: (url: string) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Converts a DIAL file ID or full resource path to the relative bucket path
|
|
8
|
+
* expected by the files download API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const resolveRelativeDialFilePath: (pathOrFileId: string, bucket: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Extracts the bucket and decoded relative path from a DIAL file ID
|
|
13
|
+
* (`files/{bucket}/{path}`). Returns `undefined` if the input does not start
|
|
14
|
+
* with `files/` or has no path segment after the bucket.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resolveDialFileBucketAndPath: (fileId: string) => {
|
|
17
|
+
bucket: string;
|
|
18
|
+
path: string;
|
|
19
|
+
} | undefined;
|
|
20
|
+
/** What a file-manager selection consists of, for picking its confirmation copy. */
|
|
21
|
+
export declare enum FileSelectionKind {
|
|
22
|
+
/** Exactly one file. */
|
|
23
|
+
File = "file",
|
|
24
|
+
/** Exactly one folder. */
|
|
25
|
+
Folder = "folder",
|
|
26
|
+
/** Zero or several items. */
|
|
27
|
+
Multiple = "multiple"
|
|
28
|
+
}
|
|
29
|
+
/** Returns whether a selection is one file, one folder or several items. */
|
|
30
|
+
export declare const getFileSelectionKind: (items: readonly Pick<DialFile, "nodeType">[]) => FileSelectionKind;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the DIAL folder path (`files/{bucket}/{path}/`) for a file-manager
|
|
33
|
+
* folder, or `null` when it carries neither `url` nor `id`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const resolveDialFolderPath: (file: Pick<DialFile, "url" | "id" | "bucket">, bucket: string) => string | null;
|
|
36
|
+
//# sourceMappingURL=dial-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-file.d.ts","sourceRoot":"","sources":["../../src/files/dial-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGvE,gFAAgF;AAChF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,OAAmC,CAAC;AAE/E,yGAAyG;AACzG,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,OACS,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,cAAc,MAAM,EACpB,QAAQ,MAAM,KACb,MAmBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,KACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAcrC,CAAC;AAEF,oFAAoF;AACpF,oBAAY,iBAAiB;IAC3B,wBAAwB;IACxB,IAAI,SAAS;IACb,0BAA0B;IAC1B,MAAM,WAAW;IACjB,6BAA6B;IAC7B,QAAQ,aAAa;CACtB;AAED,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,GAC/B,OAAO,SAAS,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,KAC3C,iBAKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,CAAC,EAC7C,QAAQ,MAAM,KACb,MAAM,GAAG,IAcX,CAAC"}
|
package/files/dial-file.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { safeDecodeURI as e } from "../shared/string-utils.js";
|
|
2
|
+
import { DialFileNodeType as t } from "@epam/ai-dial-ui-kit";
|
|
2
3
|
//#region src/files/dial-file.ts
|
|
3
|
-
var
|
|
4
|
+
var n = (e) => e.startsWith("files/"), r = (e) => n(e) && e.split("#")[0].endsWith("/"), i = (t, r) => {
|
|
4
5
|
let i = `files/${r}/`;
|
|
5
|
-
if (
|
|
6
|
-
if (t
|
|
7
|
-
let
|
|
6
|
+
if (t.startsWith(i)) return e(t.slice(i.length));
|
|
7
|
+
if (n(t)) {
|
|
8
|
+
let n = t.slice(6), i = n.indexOf("/");
|
|
8
9
|
if (i >= 0) {
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
10
|
+
let t = n.slice(0, i), a = n.slice(i + 1);
|
|
11
|
+
if (t === r) return e(a);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
if (!
|
|
16
|
-
let
|
|
14
|
+
return t;
|
|
15
|
+
}, a = (e) => {
|
|
16
|
+
if (!n(e)) return;
|
|
17
|
+
let t = e.slice(6), r = t.indexOf("/");
|
|
17
18
|
if (r < 0) return;
|
|
18
|
-
let i =
|
|
19
|
+
let i = t.slice(0, r), a = t.slice(r + 1), o;
|
|
19
20
|
try {
|
|
20
21
|
o = decodeURIComponent(a);
|
|
21
22
|
} catch {
|
|
@@ -25,6 +26,13 @@ var t = (e) => e.startsWith("files/"), n = (n, r) => {
|
|
|
25
26
|
bucket: i,
|
|
26
27
|
path: o
|
|
27
28
|
};
|
|
29
|
+
}, o = /* @__PURE__ */ function(e) {
|
|
30
|
+
return e.File = "file", e.Folder = "folder", e.Multiple = "multiple", e;
|
|
31
|
+
}({}), s = (e) => e.length === 1 ? e[0].nodeType === t.FOLDER ? "folder" : "file" : "multiple", c = (e, t) => {
|
|
32
|
+
let r = e.url ?? e.id ?? "";
|
|
33
|
+
if (!r) return null;
|
|
34
|
+
let i = (n(r) ? r : `files/${e.bucket ?? t}/${r.replace(/^\/+/, "")}`).split("/").filter((e) => e !== ".." && e !== ".").join("/");
|
|
35
|
+
return i.endsWith("/") ? i : `${i}/`;
|
|
28
36
|
};
|
|
29
37
|
//#endregion
|
|
30
|
-
export {
|
|
38
|
+
export { o as FileSelectionKind, s as getFileSelectionKind, n as isDialFileId, r as isDialFolderId, a as resolveDialFileBucketAndPath, c as resolveDialFolderPath, i as resolveRelativeDialFilePath };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ArchiveItemDto, CopyFilesResponseDto, CopyItemDto, CreateFolderDto, CreateFolderResponseDto, DeleteFilesResponseDto, DeleteItemDto, DiscardSharedItemDto, DiscardSharedResponseDto, FileMetadataResponseDto, FileUploadResponseDto, ListFilesResponseDto, ListPublicFilesRequest, ListSharedFilesRequest, MoveFilesResponseDto, MoveItemDto, RenameFilesResponseDto, RenameItemDto, RevokeAccessItemDto, RevokeAccessResponseDto, UploadArchiveResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Upload mode passed through to `DialFilesApi.uploadFile` — mirrors the BFF's `uploadMode` form field. */
|
|
3
|
+
export declare enum DialFilesApiUploadMode {
|
|
4
|
+
Overwrite = "overwrite",
|
|
5
|
+
CreateOnly = "create-only"
|
|
6
|
+
}
|
|
7
|
+
/** Options accepted by `DialFilesApi.uploadFile` beyond an already-created `AbortSignal`. */
|
|
8
|
+
export interface DialFilesApiUploadOptions {
|
|
9
|
+
/** Aborts the in-flight upload when triggered. */
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
/** Called with the 0–100 upload progress percentage when the transport reports byte progress. */
|
|
12
|
+
onProgress?: (percent: number) => void;
|
|
13
|
+
/** Controls create-only vs. overwrite semantics for the destination path. */
|
|
14
|
+
uploadMode?: DialFilesApiUploadMode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Operation port every file-manager hook that performs network I/O accepts as
|
|
18
|
+
* a parameter, replacing direct `server-api/files.api` access. Mirrors
|
|
19
|
+
* `apps/chat/src/server-api/files.api.ts`'s exact function signatures — not
|
|
20
|
+
* the generated client's own method shapes — since that file wraps
|
|
21
|
+
* `uploadFile`/`uploadArchive` with custom XHR-based progress/cancellation
|
|
22
|
+
* that has no equivalent in the generated client.
|
|
23
|
+
*/
|
|
24
|
+
export interface DialFilesApi {
|
|
25
|
+
/** Lists files/folders directly under `params.path` within `params.bucket`. */
|
|
26
|
+
listFiles(params: {
|
|
27
|
+
bucket: string;
|
|
28
|
+
path?: string;
|
|
29
|
+
token?: string;
|
|
30
|
+
limit?: number;
|
|
31
|
+
recursive?: boolean;
|
|
32
|
+
permissions?: boolean;
|
|
33
|
+
}, signal?: AbortSignal): Promise<ListFilesResponseDto>;
|
|
34
|
+
/** Lists files/folders under the organization's public root. */
|
|
35
|
+
listPublicFiles(params: ListPublicFilesRequest): Promise<ListFilesResponseDto>;
|
|
36
|
+
/** Lists files/folders shared with the current user. */
|
|
37
|
+
listSharedFiles(params: ListSharedFilesRequest): Promise<ListFilesResponseDto>;
|
|
38
|
+
/** Lists items the current user has shared with others, from their own bucket. */
|
|
39
|
+
listSharedByMe(bucket: string): Promise<ListFilesResponseDto>;
|
|
40
|
+
/** Fetches metadata for a single file or folder. */
|
|
41
|
+
getFileMetadata(params: {
|
|
42
|
+
bucket: string;
|
|
43
|
+
path: string;
|
|
44
|
+
}): Promise<FileMetadataResponseDto>;
|
|
45
|
+
/**
|
|
46
|
+
* Uploads a file, reporting progress via `options.onProgress` when supplied
|
|
47
|
+
* and honoring cancellation via `options.signal` or a bare `AbortSignal`.
|
|
48
|
+
*/
|
|
49
|
+
uploadFile(bucket: string, path: string, file: File, options?: AbortSignal | DialFilesApiUploadOptions): Promise<FileUploadResponseDto>;
|
|
50
|
+
/** Uploads a ZIP archive and extracts its entries under `destinationPath`. */
|
|
51
|
+
uploadArchive(file: File, bucket: string, destinationPath: string): Promise<UploadArchiveResponseDto>;
|
|
52
|
+
/** Creates a new folder. */
|
|
53
|
+
createFolder(params: CreateFolderDto): Promise<CreateFolderResponseDto>;
|
|
54
|
+
/** Deletes one or more files/folders. */
|
|
55
|
+
deleteFiles(items: DeleteItemDto[]): Promise<DeleteFilesResponseDto>;
|
|
56
|
+
/** Renames one or more files/folders in place (same parent folder). */
|
|
57
|
+
renameFiles(items: RenameItemDto[]): Promise<RenameFilesResponseDto>;
|
|
58
|
+
/** Copies one or more files/folders to a destination path. */
|
|
59
|
+
copyFiles(items: CopyItemDto[], signal?: AbortSignal): Promise<CopyFilesResponseDto>;
|
|
60
|
+
/** Moves one or more files/folders to a destination path (different parent folder). */
|
|
61
|
+
moveFiles(items: MoveItemDto[], signal?: AbortSignal): Promise<MoveFilesResponseDto>;
|
|
62
|
+
/** Downloads a single file, returning the raw fetch `Response`. */
|
|
63
|
+
downloadFile(bucket: string, path: string, signal?: AbortSignal): Promise<Response>;
|
|
64
|
+
/** Downloads a ZIP archive of the given items, returning the raw fetch `Response`; `signal` aborts the request and its body. */
|
|
65
|
+
downloadArchive(items: ArchiveItemDto[], signal?: AbortSignal): Promise<Response>;
|
|
66
|
+
/** Revokes access previously granted on the given owned items. */
|
|
67
|
+
revokeAccess(items: RevokeAccessItemDto[]): Promise<RevokeAccessResponseDto>;
|
|
68
|
+
/** Discards items shared with the current user. */
|
|
69
|
+
discardShared(items: DiscardSharedItemDto[]): Promise<DiscardSharedResponseDto>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=dial-files-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-files-api.d.ts","sourceRoot":"","sources":["../../src/files/dial-files-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,2GAA2G;AAC3G,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,UAAU,gBAAgB;CAC3B;AAED,6FAA6F;AAC7F,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,iGAAiG;IACjG,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,+EAA+E;IAC/E,SAAS,CACP,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EACD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,gEAAgE;IAChE,eAA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AAC;IACjC,mEAAmE;IACnE,YAAY,CACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrB,gIAAgI;IAChI,eAAe,CACb,KAAK,EAAE,cAAc,EAAE,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrB,kEAAkE;IAClE,YAAY,CAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC7E,mDAAmD;IACnD,aAAa,CACX,KAAK,EAAE,oBAAoB,EAAE,GAC5B,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a downloaded file's bytes should be written. Mirrors the host's own
|
|
3
|
+
* "Save As" vs. blob-download vs. cancelled-picker outcomes without the lib
|
|
4
|
+
* depending on the host's browser-API implementation.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum DownloadDestinationType {
|
|
7
|
+
Blob = "blob",
|
|
8
|
+
Stream = "stream",
|
|
9
|
+
Cancelled = "cancelled"
|
|
10
|
+
}
|
|
11
|
+
/** Discriminated destination a host resolves for a download, passed back into `triggerDownload`. */
|
|
12
|
+
export type DownloadDestination = {
|
|
13
|
+
type: DownloadDestinationType.Blob;
|
|
14
|
+
} | {
|
|
15
|
+
type: DownloadDestinationType.Stream;
|
|
16
|
+
writable: WritableStream<Uint8Array>;
|
|
17
|
+
} | {
|
|
18
|
+
type: DownloadDestinationType.Cancelled;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Host-injected seam for `useDialFileMutations.onDownloadFiles`, replacing a
|
|
22
|
+
* direct import of the app's browser "Save As" / auto-download utilities —
|
|
23
|
+
* that behavior is desktop/web-shell-specific, not file-manager domain logic.
|
|
24
|
+
*/
|
|
25
|
+
export interface DownloadDestinationHandlers {
|
|
26
|
+
/** Resolves where a download with the given file name/MIME type should be written. */
|
|
27
|
+
resolveDestination(filename: string, mimeType: string): Promise<DownloadDestination>;
|
|
28
|
+
/** Writes `response` to `destination` and returns the name it was saved under. */
|
|
29
|
+
triggerDownload(response: Response, fallbackName: string, destination: DownloadDestination): Promise<string>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=download-destination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-destination.d.ts","sourceRoot":"","sources":["../../src/files/download-destination.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oGAAoG;AACpG,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAA;CAAE,GACtC;IACE,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,GACD;IAAE,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAA;CAAE,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,sFAAsF;IACtF,kBAAkB,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC,kFAAkF;IAClF,eAAe,CACb,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,mBAAmB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a `Response` that streams the same bytes as `response` and calls
|
|
3
|
+
* `onBytes` with the running total of bytes read; headers and status are kept,
|
|
4
|
+
* so `Content-Disposition` naming still works. A response without a body is
|
|
5
|
+
* returned unchanged.
|
|
6
|
+
*/
|
|
7
|
+
export declare const withDownloadProgress: (response: Response, onBytes: (received: number) => void) => Response;
|
|
8
|
+
/** The response's `Content-Length` as a positive byte count, or `undefined` when it is absent or not a positive number. */
|
|
9
|
+
export declare const getContentLength: (response: Response) => number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Percent of `total` received, or `undefined` when the total is unknown. An
|
|
12
|
+
* estimated total (an archive) is capped at 99 so the row never reads 100
|
|
13
|
+
* before the stream actually ends.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getDownloadPercent: (received: number, total: number | undefined, isEstimate: boolean) => number | undefined;
|
|
16
|
+
/** An error for a non-OK download `Response` that keeps it, so `getApiErrorDetails` reads its status and body. */
|
|
17
|
+
export declare const createDownloadResponseError: (response: Response) => Error;
|
|
18
|
+
/** The size an item contributes to an archive estimate: a file with a known size. */
|
|
19
|
+
interface ArchiveSizedItem {
|
|
20
|
+
/** Whether the item is a file or a folder. */
|
|
21
|
+
isFolder: boolean;
|
|
22
|
+
/** The file's size in bytes, when known. */
|
|
23
|
+
contentLength?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Estimated archive size: the sum of the selected files' sizes, or `undefined`
|
|
27
|
+
* when any item is a folder (its contents are not known up front) or has no
|
|
28
|
+
* size. The zip is stored uncompressed, so the sum undershoots only by the
|
|
29
|
+
* per-entry headers.
|
|
30
|
+
*/
|
|
31
|
+
export declare const estimateArchiveSize: (items: ArchiveSizedItem[]) => number | undefined;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=download-progress.d.ts.map
|