@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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Why the BFF rejected a project create or edit, as the form explains it. */
|
|
2
|
+
export declare enum ProjectFormErrorReason {
|
|
3
|
+
NameTaken = "name-taken",
|
|
4
|
+
NameInvalid = "name-invalid",
|
|
5
|
+
TooManyFiles = "too-many-files",
|
|
6
|
+
FilesRejected = "files-rejected",
|
|
7
|
+
UnknownFile = "unknown-file"
|
|
8
|
+
}
|
|
9
|
+
/** The project form field a rejection belongs to. */
|
|
10
|
+
export declare enum ProjectFormErrorField {
|
|
11
|
+
Name = "name",
|
|
12
|
+
Context = "context"
|
|
13
|
+
}
|
|
14
|
+
/** Where a rejected create or edit request's message goes on the project form. */
|
|
15
|
+
export interface ProjectFormError {
|
|
16
|
+
/** Field the message is shown under. */
|
|
17
|
+
field: ProjectFormErrorField;
|
|
18
|
+
/** Why the request was rejected; the host resolves the message. */
|
|
19
|
+
reason: ProjectFormErrorReason;
|
|
20
|
+
}
|
|
21
|
+
/** Returns the form field and reason a `ProjectCreateErrorCode` maps to, or `null` when the rejection belongs in a toast. */
|
|
22
|
+
export declare const getProjectFormError: (code: string | undefined) => ProjectFormError | null;
|
|
23
|
+
//# sourceMappingURL=project-form-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-form-errors.d.ts","sourceRoot":"","sources":["../../src/project/project-form-errors.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,oBAAY,sBAAsB;IAChC,SAAS,eAAe;IACxB,WAAW,iBAAiB;IAC5B,YAAY,mBAAmB;IAC/B,aAAa,mBAAmB;IAChC,WAAW,iBAAiB;CAC7B;AAED,qDAAqD;AACrD,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,kFAAkF;AAClF,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,mEAAmE;IACnE,MAAM,EAAE,sBAAsB,CAAC;CAChC;AAyCD,6HAA6H;AAC7H,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,GAAG,SAAS,KACvB,gBAAgB,GAAG,IACmC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProjectCreateErrorCode as e } from "@epam/ai-dial-chat-api-client";
|
|
2
|
+
//#region src/project/project-form-errors.ts
|
|
3
|
+
var t = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.NameTaken = "name-taken", e.NameInvalid = "name-invalid", e.TooManyFiles = "too-many-files", e.FilesRejected = "files-rejected", e.UnknownFile = "unknown-file", e;
|
|
5
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.Name = "name", e.Context = "context", e;
|
|
7
|
+
}({}), r = {
|
|
8
|
+
[e.NameTaken]: {
|
|
9
|
+
field: "name",
|
|
10
|
+
reason: "name-taken"
|
|
11
|
+
},
|
|
12
|
+
[e.InvalidName]: {
|
|
13
|
+
field: "name",
|
|
14
|
+
reason: "name-invalid"
|
|
15
|
+
},
|
|
16
|
+
[e.TooManyFiles]: {
|
|
17
|
+
field: "context",
|
|
18
|
+
reason: "too-many-files"
|
|
19
|
+
},
|
|
20
|
+
[e.UnsupportedFileType]: {
|
|
21
|
+
field: "context",
|
|
22
|
+
reason: "files-rejected"
|
|
23
|
+
},
|
|
24
|
+
[e.FileTooLarge]: {
|
|
25
|
+
field: "context",
|
|
26
|
+
reason: "files-rejected"
|
|
27
|
+
},
|
|
28
|
+
[e.CapacityExceeded]: {
|
|
29
|
+
field: "context",
|
|
30
|
+
reason: "files-rejected"
|
|
31
|
+
},
|
|
32
|
+
[e.InvalidFileName]: {
|
|
33
|
+
field: "context",
|
|
34
|
+
reason: "files-rejected"
|
|
35
|
+
},
|
|
36
|
+
[e.DuplicateFileName]: {
|
|
37
|
+
field: "context",
|
|
38
|
+
reason: "files-rejected"
|
|
39
|
+
},
|
|
40
|
+
[e.UnknownFile]: {
|
|
41
|
+
field: "context",
|
|
42
|
+
reason: "unknown-file"
|
|
43
|
+
}
|
|
44
|
+
}, i = (e) => (e == null ? void 0 : r[e]) ?? null;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { n as ProjectFormErrorField, t as ProjectFormErrorReason, i as getProjectFormError };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Defaults matching the BFF's `PROJECT_CONTEXT_*` defaults, used before the client config loads. */
|
|
2
|
+
export declare const DEFAULT_PROJECT_CONTEXT_FILE_MAX_BYTES = 1048576;
|
|
3
|
+
export declare const DEFAULT_PROJECT_CONTEXT_TOTAL_MAX_BYTES = 10485760;
|
|
4
|
+
export declare const DEFAULT_PROJECT_CONTEXT_ALLOWED_EXTENSIONS: string[];
|
|
5
|
+
/** Returns `value` when it is a positive finite number, otherwise `fallback`. */
|
|
6
|
+
export declare const resolveByteLimit: (value: unknown, fallback: number) => number;
|
|
7
|
+
/**
|
|
8
|
+
* Returns `value` lower-cased when it is a non-empty array of non-empty
|
|
9
|
+
* strings, otherwise `fallback`. An older BFF omits the field entirely.
|
|
10
|
+
*/
|
|
11
|
+
export declare const resolveExtensionList: (value: unknown, fallback: string[]) => string[];
|
|
12
|
+
/**
|
|
13
|
+
* Returns every MIME type `MIME_TYPE_EXT_MAP` maps to one of `extensions`,
|
|
14
|
+
* for the file manager's MIME-based `allowedTypes` filter.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getMimeTypesForExtensions: (extensions: string[], mimeTypeExtensions: Record<string, string>) => string[];
|
|
17
|
+
//# sourceMappingURL=project-limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-limits.d.ts","sourceRoot":"","sources":["../../src/project/project-limits.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,eAAO,MAAM,sCAAsC,UAAY,CAAC;AAChE,eAAO,MAAM,uCAAuC,WAAa,CAAC;AAClE,eAAO,MAAM,0CAA0C,UAItD,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,EAAE,UAAU,MAAM,KAAG,MAGtD,CAAC;AAEf;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,OAAO,EACd,UAAU,MAAM,EAAE,KACjB,MAAM,EAKK,CAAC;AAEf;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GACpC,YAAY,MAAM,EAAE,EACpB,oBAAoB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACzC,MAAM,EAOR,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/project/project-limits.ts
|
|
2
|
+
var e = 1048576, t = 10485760, n = [
|
|
3
|
+
"csv",
|
|
4
|
+
"pdf",
|
|
5
|
+
"xlsx"
|
|
6
|
+
], r = (e, t) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : t, i = (e, t) => Array.isArray(e) && e.length > 0 && e.every((e) => typeof e == "string" && e.length > 0) ? e.map((e) => e.toLowerCase()) : t, a = (e, t) => {
|
|
7
|
+
let n = new Set(e.map((e) => e.toLowerCase()));
|
|
8
|
+
return Object.entries(t).filter(([, e]) => n.has(e)).map(([e]) => e);
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as DEFAULT_PROJECT_CONTEXT_ALLOWED_EXTENSIONS, e as DEFAULT_PROJECT_CONTEXT_FILE_MAX_BYTES, t as DEFAULT_PROJECT_CONTEXT_TOTAL_MAX_BYTES, a as getMimeTypesForExtensions, r as resolveByteLimit, i as resolveExtensionList };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProjectSource as ProjectSourceDto, ProjectArtifactItemDto, ProjectDetailsDto, ProjectDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { FilterTab } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
import { ProjectItem, ProjectOutputItem, ProjectSource, ProjectViewModel, StoredProjectContextFile } from '@epam/ai-dial-projects';
|
|
4
|
+
/** Maps a BFF project source onto the Projects lib's source. */
|
|
5
|
+
export declare const mapProjectSource: (source: ProjectSourceDto) => ProjectSource;
|
|
6
|
+
/** Maps a BFF project source onto the conversation list's Origin filter tab. */
|
|
7
|
+
export declare const mapProjectSourceToFilterTab: (source: ProjectSourceDto) => FilterTab;
|
|
8
|
+
/** Maps a BFF project to the card item the Projects lib renders; the sort date falls back to the creation time. */
|
|
9
|
+
export declare const mapProjectDtoToItem: (project: ProjectDto) => ProjectItem;
|
|
10
|
+
/** Maps a project's BFF details to the content the project view renders; content types come from the file names. */
|
|
11
|
+
export declare const mapProjectDetailsToViewModel: (project: ProjectDetailsDto) => ProjectViewModel;
|
|
12
|
+
/** Maps a project's stored context files to the cards the project form renders; ids are `stored:{name}`. */
|
|
13
|
+
export declare const mapStoredContextFiles: (project: ProjectDetailsDto) => StoredProjectContextFile[];
|
|
14
|
+
/** Maps a project's BFF artifact listing to the output cards the project view renders, keeping its order; content types come from the file names. */
|
|
15
|
+
export declare const mapProjectArtifactsToOutputs: (items: ProjectArtifactItemDto[]) => ProjectOutputItem[];
|
|
16
|
+
//# sourceMappingURL=project-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-mapping.d.ts","sourceRoot":"","sources":["../../src/project/project-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,SAAS,EAIV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAchC,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB,KAAG,aACnC,CAAC;AAQ1B,gFAAgF;AAChF,eAAO,MAAM,2BAA2B,GACtC,QAAQ,gBAAgB,KACvB,SAAwC,CAAC;AAE5C,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,GAAI,SAAS,UAAU,KAAG,WAMxD,CAAC;AAEH,oHAAoH;AACpH,eAAO,MAAM,4BAA4B,GACvC,SAAS,iBAAiB,KACzB,gBAQD,CAAC;AAEH,4GAA4G;AAC5G,eAAO,MAAM,qBAAqB,GAChC,SAAS,iBAAiB,KACzB,wBAAwB,EAYvB,CAAC;AAEL,qJAAqJ;AACrJ,eAAO,MAAM,4BAA4B,GACvC,OAAO,sBAAsB,EAAE,KAC9B,iBAAiB,EAIf,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ProjectSource as e } from "@epam/ai-dial-chat-api-client";
|
|
2
|
+
import { FilterTab as t, RequestStatus as n, getAttachmentTypeFromMime as r, inferMimeTypeFromPath as i } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { ProjectSource as a } from "@epam/ai-dial-projects";
|
|
4
|
+
//#region src/project/project-mapping.ts
|
|
5
|
+
var o = "", s = {
|
|
6
|
+
[e.Personal]: a.Personal,
|
|
7
|
+
[e.Shared]: a.Shared,
|
|
8
|
+
[e.Organization]: a.Organization
|
|
9
|
+
}, c = (e) => s[e], l = {
|
|
10
|
+
[e.Personal]: t.MyChats,
|
|
11
|
+
[e.Shared]: t.Shared,
|
|
12
|
+
[e.Organization]: t.Organization
|
|
13
|
+
}, u = (e) => l[e], d = (e) => ({
|
|
14
|
+
id: e.id,
|
|
15
|
+
name: e.name,
|
|
16
|
+
source: c(e.source),
|
|
17
|
+
parentPath: e.parentPath,
|
|
18
|
+
updatedAt: e.updatedAt ?? e.createdAt
|
|
19
|
+
}), f = (e) => ({
|
|
20
|
+
name: e.name,
|
|
21
|
+
description: e.description,
|
|
22
|
+
instructions: e.instructions,
|
|
23
|
+
contextFiles: e.contextFiles.map(({ name: e }) => ({
|
|
24
|
+
name: e,
|
|
25
|
+
contentType: i(e) ?? o
|
|
26
|
+
}))
|
|
27
|
+
}), p = (e) => e.contextFiles.map(({ name: e, size: t }) => {
|
|
28
|
+
let a = i(e) ?? o;
|
|
29
|
+
return {
|
|
30
|
+
id: `stored:${e}`,
|
|
31
|
+
name: e,
|
|
32
|
+
size: t,
|
|
33
|
+
contentType: a,
|
|
34
|
+
type: r(a),
|
|
35
|
+
status: n.Idle,
|
|
36
|
+
isStored: !0
|
|
37
|
+
};
|
|
38
|
+
}), m = (e) => e.map(({ name: e }) => ({
|
|
39
|
+
name: e,
|
|
40
|
+
contentType: i(e) ?? o
|
|
41
|
+
}));
|
|
42
|
+
//#endregion
|
|
43
|
+
export { m as mapProjectArtifactsToOutputs, f as mapProjectDetailsToViewModel, d as mapProjectDtoToItem, c as mapProjectSource, u as mapProjectSourceToFilterTab, p as mapStoredContextFiles };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How a silent refresh of one loaded project ended. */
|
|
2
|
+
export declare enum ProjectRefreshOutcome {
|
|
3
|
+
/** The details were replaced with the fresh read. */
|
|
4
|
+
Updated = "updated",
|
|
5
|
+
/** The project no longer exists; the page should leave it. */
|
|
6
|
+
NotFound = "not-found",
|
|
7
|
+
/** The read failed; the loaded details are kept. */
|
|
8
|
+
Failed = "failed",
|
|
9
|
+
/** No project was loaded, or a newer refresh or an id change superseded this one. */
|
|
10
|
+
Skipped = "skipped"
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=project-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-refresh.d.ts","sourceRoot":"","sources":["../../src/project/project-refresh.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,oBAAY,qBAAqB;IAC/B,qDAAqD;IACrD,OAAO,YAAY;IACnB,8DAA8D;IAC9D,QAAQ,cAAc;IACtB,oDAAoD;IACpD,MAAM,WAAW;IACjB,qFAAqF;IACrF,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectConversationItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** Conversation id → its `updatedAt` when the viewer marked it viewed. */
|
|
3
|
+
export type ViewedMarks = Map<string, number | undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* Returns whether a listed conversation shows as unread once the viewer's
|
|
6
|
+
* marks apply, and drops a mark that the listing's newer `updatedAt` outdated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const applyViewedMark: (marks: ViewedMarks, { id, updatedAt, isUnread, }: Pick<ProjectConversationItemDto, "id" | "updatedAt" | "isUnread">) => boolean;
|
|
9
|
+
//# sourceMappingURL=project-viewed-marks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-viewed-marks.d.ts","sourceRoot":"","sources":["../../src/project/project-viewed-marks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,0EAA0E;AAC1E,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,WAAW,EAClB,8BAIG,IAAI,CAAC,0BAA0B,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,KACnE,OAaF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/project/project-viewed-marks.ts
|
|
2
|
+
var e = (e, { id: t, updatedAt: n, isUnread: r }) => {
|
|
3
|
+
if (!e.has(t)) return r;
|
|
4
|
+
let i = e.get(t);
|
|
5
|
+
return n != null && i != null && n > i && (e.delete(t), r);
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as applyViewedMark };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ProjectWatchEvent } from './project-events';
|
|
2
|
+
import { ProjectsApiClient } from './projects-api-client';
|
|
3
|
+
/** Delays before each reconnect attempt of a dropped watch stream. */
|
|
4
|
+
export declare const WATCH_RECONNECT_DELAYS_MS: number[];
|
|
5
|
+
/** One run of a projects watch stream, from its first open until it gives up or `signal` aborts. */
|
|
6
|
+
export interface ProjectWatchRun {
|
|
7
|
+
/** The client's stream opener. */
|
|
8
|
+
watchProjects: NonNullable<ProjectsApiClient['watchProjects']>;
|
|
9
|
+
/** The project ids to watch. */
|
|
10
|
+
ids: string[];
|
|
11
|
+
/** Ends the run: the open stream is released and no reconnect fires. */
|
|
12
|
+
signal: AbortSignal;
|
|
13
|
+
/** Called with each well-formed event. */
|
|
14
|
+
onEvent: (event: ProjectWatchEvent) => void;
|
|
15
|
+
/** Called after a dropped stream was reopened, so the caller can catch up on the gap. */
|
|
16
|
+
onReconnected: () => void;
|
|
17
|
+
/** Called once when the watch cannot be opened or kept open, for the rest of the visit. */
|
|
18
|
+
onUnavailable: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Keeps a projects watch open: a stream that drops is reopened with a bounded
|
|
22
|
+
* backoff, and a watch whose first open fails (a Core without project events,
|
|
23
|
+
* a project no longer readable) or whose retries run out gives up.
|
|
24
|
+
*/
|
|
25
|
+
export declare const runProjectWatch: ({ watchProjects, ids, signal, onEvent, onReconnected, onUnavailable, }: ProjectWatchRun) => void;
|
|
26
|
+
//# sourceMappingURL=project-watch-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-watch-stream.d.ts","sourceRoot":"","sources":["../../src/project/project-watch-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,sEAAsE;AACtE,eAAO,MAAM,yBAAyB,UAAkC,CAAC;AAEzE,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,aAAa,EAAE,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/D,gCAAgC;IAChC,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,wEAAwE;IACxE,MAAM,EAAE,WAAW,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,yFAAyF;IACzF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,2FAA2F;IAC3F,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,wEAO7B,eAAe,KAAG,IA2CpB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { parseProjectWatchEvent as e } from "./project-events.js";
|
|
2
|
+
import { readSseEvents as t } from "../shared/read-sse-events.js";
|
|
3
|
+
//#region src/project/project-watch-stream.ts
|
|
4
|
+
var n = [
|
|
5
|
+
1e3,
|
|
6
|
+
2e3,
|
|
7
|
+
4e3,
|
|
8
|
+
8e3,
|
|
9
|
+
16e3
|
|
10
|
+
], r = ({ watchProjects: r, ids: i, signal: a, onEvent: o, onReconnected: s, onUnavailable: c }) => {
|
|
11
|
+
let l;
|
|
12
|
+
a.addEventListener("abort", () => clearTimeout(l), { once: !0 });
|
|
13
|
+
let u = (t) => {
|
|
14
|
+
let n = e(t);
|
|
15
|
+
return n != null && o(n), a.aborted;
|
|
16
|
+
}, d = (e) => {
|
|
17
|
+
let t = n[e];
|
|
18
|
+
t == null ? c() : l = setTimeout(() => {
|
|
19
|
+
f(e, !0);
|
|
20
|
+
}, t);
|
|
21
|
+
}, f = async (e, n) => {
|
|
22
|
+
let o;
|
|
23
|
+
try {
|
|
24
|
+
o = await r(i, a);
|
|
25
|
+
} catch {
|
|
26
|
+
if (a.aborted) return;
|
|
27
|
+
if (!n) {
|
|
28
|
+
c();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
d(e + 1);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
n && s(), await t(o, u), !a.aborted && d(0);
|
|
35
|
+
};
|
|
36
|
+
f(0, !1);
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { n as WATCH_RECONNECT_DELAYS_MS, r as runProjectWatch };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { AttachmentDto, ConversationResponseDto, CreateConversationDto, CreateProjectResponseDto, ListProjectsResponseDto, ProjectArtifactListResponseDto, ProjectConversationListResponseDto, ProjectConversationTitlesResponseDto, ProjectDetailsDto, RenameConversationResponseDto, UpdateProjectResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
3
|
+
/** A generated-client `Raw` answer, of which only the native response is read. */
|
|
4
|
+
interface RawApiResponse {
|
|
5
|
+
raw: Response;
|
|
6
|
+
}
|
|
7
|
+
/** Narrow configured generated-client (`ProjectsApi`) surface the project hooks require. */
|
|
8
|
+
export interface ProjectsConfiguredClient {
|
|
9
|
+
listProjects: (options?: RequestInit) => Promise<ListProjectsResponseDto>;
|
|
10
|
+
getProject: (request: {
|
|
11
|
+
id: string;
|
|
12
|
+
}, options?: RequestInit) => Promise<ProjectDetailsDto>;
|
|
13
|
+
createProject: (request: {
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
instructions?: string;
|
|
17
|
+
fileNames?: string;
|
|
18
|
+
files?: Blob[];
|
|
19
|
+
}, options?: RequestInit) => Promise<CreateProjectResponseDto>;
|
|
20
|
+
updateProject: (request: {
|
|
21
|
+
id: string;
|
|
22
|
+
ifMatch: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
instructions?: string;
|
|
26
|
+
fileNames?: string;
|
|
27
|
+
removedFileNames?: string;
|
|
28
|
+
files?: Blob[];
|
|
29
|
+
}, options?: RequestInit) => Promise<UpdateProjectResponseDto>;
|
|
30
|
+
deleteProject: (request: {
|
|
31
|
+
id: string;
|
|
32
|
+
ifMatch: string;
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
downloadProjectRaw: (request: {
|
|
35
|
+
id: string;
|
|
36
|
+
}, options?: RequestInit) => Promise<RawApiResponse>;
|
|
37
|
+
downloadProjectFileRaw: (request: {
|
|
38
|
+
id: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
}, options?: RequestInit) => Promise<RawApiResponse>;
|
|
41
|
+
listProjectConversations: (request: {
|
|
42
|
+
id: string;
|
|
43
|
+
}, options?: RequestInit) => Promise<ProjectConversationListResponseDto>;
|
|
44
|
+
getProjectConversationTitles: (request: {
|
|
45
|
+
id: string;
|
|
46
|
+
projectConversationTitlesBodyDto: {
|
|
47
|
+
names: string[];
|
|
48
|
+
};
|
|
49
|
+
}, options?: RequestInit) => Promise<ProjectConversationTitlesResponseDto>;
|
|
50
|
+
listProjectArtifacts: (request: {
|
|
51
|
+
id: string;
|
|
52
|
+
}, options?: RequestInit) => Promise<ProjectArtifactListResponseDto>;
|
|
53
|
+
createProjectConversation: (request: {
|
|
54
|
+
id: string;
|
|
55
|
+
createConversationDto: CreateConversationDto;
|
|
56
|
+
}) => Promise<ConversationResponseDto>;
|
|
57
|
+
getProjectConversation: (request: {
|
|
58
|
+
id: string;
|
|
59
|
+
conversationName: string;
|
|
60
|
+
}, options?: RequestInit) => Promise<ConversationResponseDto>;
|
|
61
|
+
saveProjectConversation: (request: {
|
|
62
|
+
id: string;
|
|
63
|
+
conversationName: string;
|
|
64
|
+
saveConversationBodyDto: {
|
|
65
|
+
conversation: ConversationResponseDto;
|
|
66
|
+
};
|
|
67
|
+
}) => Promise<ConversationResponseDto>;
|
|
68
|
+
renameProjectConversation: (request: {
|
|
69
|
+
id: string;
|
|
70
|
+
conversationName: string;
|
|
71
|
+
renameConversationBodyDto: {
|
|
72
|
+
newTitle: string;
|
|
73
|
+
};
|
|
74
|
+
}) => Promise<RenameConversationResponseDto>;
|
|
75
|
+
deleteProjectConversation: (request: {
|
|
76
|
+
id: string;
|
|
77
|
+
conversationName: string;
|
|
78
|
+
}) => Promise<void>;
|
|
79
|
+
markProjectConversationViewed: (request: {
|
|
80
|
+
id: string;
|
|
81
|
+
conversationName: string;
|
|
82
|
+
}) => Promise<void>;
|
|
83
|
+
attachToProjectGenerationRaw: (request: {
|
|
84
|
+
id: string;
|
|
85
|
+
attachGenerationDto: {
|
|
86
|
+
path: string;
|
|
87
|
+
};
|
|
88
|
+
}, options?: RequestInit) => Promise<RawApiResponse>;
|
|
89
|
+
watchProjectsRaw: (request: {
|
|
90
|
+
watchProjectsBodyDto: {
|
|
91
|
+
ids: string[];
|
|
92
|
+
};
|
|
93
|
+
}, options?: RequestInit) => Promise<RawApiResponse>;
|
|
94
|
+
}
|
|
95
|
+
/** Text fields of a project create or edit request. */
|
|
96
|
+
export interface ProjectFields {
|
|
97
|
+
/** Project name; also the last path segment of its id. */
|
|
98
|
+
name: string;
|
|
99
|
+
/** Plain-text description; when omitted, a save keeps the stored one. */
|
|
100
|
+
description?: string;
|
|
101
|
+
/** Markdown instructions, stored as the `PROJECT.md` body. */
|
|
102
|
+
instructions: string;
|
|
103
|
+
}
|
|
104
|
+
/** One project edit: the fields, the added files only, the stored files to drop and the loaded version. */
|
|
105
|
+
export interface ProjectUpdateRequest {
|
|
106
|
+
/** The project's DIAL id. */
|
|
107
|
+
id: string;
|
|
108
|
+
/** The edited text fields. */
|
|
109
|
+
fields: ProjectFields;
|
|
110
|
+
/** Files added in this edit. */
|
|
111
|
+
newFiles: File[];
|
|
112
|
+
/** Names of the stored context files to remove. */
|
|
113
|
+
removedFileNames: string[];
|
|
114
|
+
/** The loaded project's `contentVersion`; a conversation written meanwhile does not change it. */
|
|
115
|
+
contentVersion: string;
|
|
116
|
+
}
|
|
117
|
+
/** The first message of a new top-level or project conversation. */
|
|
118
|
+
export interface ConversationCreateRequest {
|
|
119
|
+
/** The first user message. */
|
|
120
|
+
firstMessage: string;
|
|
121
|
+
/** Model or application the conversation starts with. */
|
|
122
|
+
deploymentId: string;
|
|
123
|
+
/** Attachments of the first message. */
|
|
124
|
+
attachments?: AttachmentDto[];
|
|
125
|
+
/** Tool configuration of the first message. */
|
|
126
|
+
configurationValue?: Record<string, unknown>;
|
|
127
|
+
/** Form values of the first message. */
|
|
128
|
+
formValue?: Record<string, unknown>;
|
|
129
|
+
/** Skills requested with the first message. */
|
|
130
|
+
skills?: RequestSkill[];
|
|
131
|
+
}
|
|
132
|
+
/** App-agnostic project requests over a configured generated client. */
|
|
133
|
+
export interface ProjectsApiClient {
|
|
134
|
+
listProjects: (signal?: AbortSignal) => Promise<ListProjectsResponseDto>;
|
|
135
|
+
getProject: (id: string, signal?: AbortSignal) => Promise<ProjectDetailsDto>;
|
|
136
|
+
createProject: (fields: ProjectFields, files: File[], signal?: AbortSignal) => Promise<CreateProjectResponseDto>;
|
|
137
|
+
updateProject: (request: ProjectUpdateRequest, signal?: AbortSignal) => Promise<UpdateProjectResponseDto>;
|
|
138
|
+
deleteProject: (id: string, contentVersion: string) => Promise<void>;
|
|
139
|
+
downloadProjectArchive: (id: string, signal?: AbortSignal) => Promise<Response>;
|
|
140
|
+
downloadProjectContextFile: (id: string, fileName: string, signal?: AbortSignal) => Promise<Response>;
|
|
141
|
+
/** Lists the files the agents saved under the project's `artifacts/` folder, newest first. */
|
|
142
|
+
listProjectArtifacts: (projectId: string, signal?: AbortSignal) => Promise<ProjectArtifactListResponseDto>;
|
|
143
|
+
listProjectConversations: (projectId: string, signal?: AbortSignal) => Promise<ProjectConversationListResponseDto>;
|
|
144
|
+
getProjectConversationTitles: (projectId: string, names: string[], signal?: AbortSignal) => Promise<ProjectConversationTitlesResponseDto>;
|
|
145
|
+
createProjectConversation: (projectId: string, request: ConversationCreateRequest) => Promise<ConversationResponseDto>;
|
|
146
|
+
getProjectConversation: (conversationId: string, signal?: AbortSignal) => Promise<ConversationResponseDto>;
|
|
147
|
+
saveProjectConversation: (conversationId: string, conversation: ConversationResponseDto) => Promise<ConversationResponseDto>;
|
|
148
|
+
renameProjectConversation: (conversationId: string, newTitle: string) => Promise<RenameConversationResponseDto>;
|
|
149
|
+
deleteProjectConversation: (conversationId: string) => Promise<void>;
|
|
150
|
+
/** Records that the caller has seen the conversation's current version; a host without it keeps no read state. */
|
|
151
|
+
markProjectConversationViewed?: (conversationId: string) => Promise<void>;
|
|
152
|
+
attachToProjectGeneration: (projectId: string, path: string, signal?: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
|
|
153
|
+
/** Opens the SSE stream of changes to the given projects; a host without it gets no live updates. */
|
|
154
|
+
watchProjects?: (ids: string[], signal?: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Splits a project conversation id `projects/{bucket}/{projectPath…}/conversations/{name}`
|
|
158
|
+
* into the project id and the conversation file name; `null` for any other id.
|
|
159
|
+
*/
|
|
160
|
+
export declare const splitProjectConversationId: (conversationId: string) => {
|
|
161
|
+
projectId: string;
|
|
162
|
+
conversationName: string;
|
|
163
|
+
} | null;
|
|
164
|
+
/** The create-conversation body of a first message, the same for a top-level and a project conversation. */
|
|
165
|
+
export declare const buildCreateConversationDto: ({ firstMessage, deploymentId, attachments, configurationValue, formValue, skills, }: ConversationCreateRequest) => CreateConversationDto;
|
|
166
|
+
/**
|
|
167
|
+
* Composes the project requests over a configured generated `ProjectsApi`.
|
|
168
|
+
* File names travel as JSON fields, positionally paired with `files`,
|
|
169
|
+
* because the BFF never trusts a multipart part's own filename.
|
|
170
|
+
*/
|
|
171
|
+
export declare const createProjectsApiClient: (client: ProjectsConfiguredClient) => Required<ProjectsApiClient>;
|
|
172
|
+
export {};
|
|
173
|
+
//# sourceMappingURL=projects-api-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects-api-client.d.ts","sourceRoot":"","sources":["../../src/project/projects-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC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ACrE,kHAAkH;IAClH,6BAA6B,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,yBAAyB,EAAE,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IACzC,qGAAqG;IACrG,aAAa,CAAC,EAAE,CACd,GAAG,EAAE,MAAM,EAAE,EACb,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;CAC1C;AAKD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GACrC,gBAAgB,MAAM,KACrB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GAAG,IAapD,CAAC;AAYF,4GAA4G;AAC5G,eAAO,MAAM,0BAA0B,GAAI,qFAOxC,yBAAyB,KAAG,qBAe7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,wBAAwB,KAC/B,QAAQ,CAAC,iBAAiB,CA6F3B,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//#region src/project/projects-api-client.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
let t = e.split("/");
|
|
4
|
+
return t.length < 5 || t[0] !== "projects" || t[t.length - 2] !== "conversations" ? null : {
|
|
5
|
+
projectId: t.slice(0, -2).join("/"),
|
|
6
|
+
conversationName: t[t.length - 1]
|
|
7
|
+
};
|
|
8
|
+
}, t = (t) => {
|
|
9
|
+
let n = e(t);
|
|
10
|
+
if (!n) throw Error("Not a project conversation id");
|
|
11
|
+
return {
|
|
12
|
+
id: n.projectId,
|
|
13
|
+
conversationName: n.conversationName
|
|
14
|
+
};
|
|
15
|
+
}, n = (e) => e ? [{ signal: e }] : [], r = ({ firstMessage: e, deploymentId: t, attachments: n, configurationValue: r, formValue: i, skills: a }) => ({
|
|
16
|
+
firstMessage: e,
|
|
17
|
+
deploymentId: t,
|
|
18
|
+
...n?.length || r || i || a?.length ? { custom_content: {
|
|
19
|
+
...n?.length ? { attachments: n } : {},
|
|
20
|
+
...r ? { configuration_value: r } : {},
|
|
21
|
+
...i ? { form_value: i } : {},
|
|
22
|
+
...a?.length ? { skills: a } : {}
|
|
23
|
+
} } : {}
|
|
24
|
+
}), i = (e) => ({
|
|
25
|
+
listProjects: (t) => e.listProjects(...n(t)),
|
|
26
|
+
getProject: (t, r) => e.getProject({ id: t }, ...n(r)),
|
|
27
|
+
createProject: ({ name: t, description: r, instructions: i }, a, o) => e.createProject({
|
|
28
|
+
name: t,
|
|
29
|
+
description: r,
|
|
30
|
+
instructions: i,
|
|
31
|
+
fileNames: JSON.stringify(a.map((e) => e.name)),
|
|
32
|
+
files: a
|
|
33
|
+
}, ...n(o)),
|
|
34
|
+
updateProject: ({ id: t, fields: r, newFiles: i, removedFileNames: a, contentVersion: o }, s) => e.updateProject({
|
|
35
|
+
id: t,
|
|
36
|
+
ifMatch: o,
|
|
37
|
+
name: r.name,
|
|
38
|
+
description: r.description,
|
|
39
|
+
instructions: r.instructions,
|
|
40
|
+
fileNames: JSON.stringify(i.map((e) => e.name)),
|
|
41
|
+
removedFileNames: JSON.stringify(a),
|
|
42
|
+
files: i
|
|
43
|
+
}, ...n(s)),
|
|
44
|
+
deleteProject: (t, n) => e.deleteProject({
|
|
45
|
+
id: t,
|
|
46
|
+
ifMatch: n
|
|
47
|
+
}),
|
|
48
|
+
downloadProjectArchive: async (t, r) => (await e.downloadProjectRaw({ id: t }, ...n(r))).raw,
|
|
49
|
+
downloadProjectContextFile: async (t, r, i) => (await e.downloadProjectFileRaw({
|
|
50
|
+
id: t,
|
|
51
|
+
fileName: r
|
|
52
|
+
}, ...n(i))).raw,
|
|
53
|
+
listProjectArtifacts: (t, r) => e.listProjectArtifacts({ id: t }, ...n(r)),
|
|
54
|
+
listProjectConversations: (t, r) => e.listProjectConversations({ id: t }, ...n(r)),
|
|
55
|
+
getProjectConversationTitles: (t, r, i) => e.getProjectConversationTitles({
|
|
56
|
+
id: t,
|
|
57
|
+
projectConversationTitlesBodyDto: { names: r }
|
|
58
|
+
}, ...n(i)),
|
|
59
|
+
createProjectConversation: (t, n) => e.createProjectConversation({
|
|
60
|
+
id: t,
|
|
61
|
+
createConversationDto: r(n)
|
|
62
|
+
}),
|
|
63
|
+
getProjectConversation: (r, i) => e.getProjectConversation(t(r), ...n(i)),
|
|
64
|
+
saveProjectConversation: (n, r) => e.saveProjectConversation({
|
|
65
|
+
...t(n),
|
|
66
|
+
saveConversationBodyDto: { conversation: r }
|
|
67
|
+
}),
|
|
68
|
+
renameProjectConversation: (n, r) => e.renameProjectConversation({
|
|
69
|
+
...t(n),
|
|
70
|
+
renameConversationBodyDto: { newTitle: r }
|
|
71
|
+
}),
|
|
72
|
+
deleteProjectConversation: (n) => e.deleteProjectConversation(t(n)),
|
|
73
|
+
markProjectConversationViewed: (n) => e.markProjectConversationViewed(t(n)),
|
|
74
|
+
attachToProjectGeneration: async (t, r, i) => {
|
|
75
|
+
let { raw: a } = await e.attachToProjectGenerationRaw({
|
|
76
|
+
id: t,
|
|
77
|
+
attachGenerationDto: { path: r }
|
|
78
|
+
}, ...n(i));
|
|
79
|
+
if (!a.body) throw Error("Attach endpoint returned no response body");
|
|
80
|
+
return a.body;
|
|
81
|
+
},
|
|
82
|
+
watchProjects: async (t, r) => {
|
|
83
|
+
let { raw: i } = await e.watchProjectsRaw({ watchProjectsBodyDto: { ids: t } }, ...n(r));
|
|
84
|
+
if (!i.body) throw Error("Watch endpoint returned no response body");
|
|
85
|
+
return i.body;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { r as buildCreateConversationDto, i as createProjectsApiClient, e as splitProjectConversationId };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ProjectDetailsDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { ProjectsApiClient } from './projects-api-client';
|
|
3
|
+
/** Most chats listed under one pinned project. */
|
|
4
|
+
export declare const PINNED_PROJECT_CHATS_LIMIT = 10;
|
|
5
|
+
/** What `usePinnedProjectChats` needs from the host besides the ids. */
|
|
6
|
+
export interface PinnedProjectChatsOptions {
|
|
7
|
+
/** No request is sent and `projects` is empty while `false`. */
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
/** The project no longer exists (a watch `DELETE`, or `404` on a read). Called at most once per id. */
|
|
10
|
+
onProjectDeleted: (projectId: string) => void;
|
|
11
|
+
}
|
|
12
|
+
/** A chat listed under a pinned project. */
|
|
13
|
+
export interface PinnedProjectChat {
|
|
14
|
+
/** The conversation's DIAL id. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Display title; the file-name title when its body could not be read. */
|
|
17
|
+
title: string;
|
|
18
|
+
/** The caller has not seen the conversation's current version. */
|
|
19
|
+
isUnread?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** A loaded pinned project and its newest chats. */
|
|
22
|
+
export interface PinnedProjectChats {
|
|
23
|
+
/** The project's details as last read; `canEdit`, `canManage`, `contentVersion` and `conversationCount` feed the host's actions. */
|
|
24
|
+
project: ProjectDetailsDto;
|
|
25
|
+
/** At most `PINNED_PROJECT_CHATS_LIMIT` chats, newest first. */
|
|
26
|
+
chats: PinnedProjectChat[];
|
|
27
|
+
/** The project has more chats than `chats` holds. */
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** What `usePinnedProjectChats` returns. */
|
|
31
|
+
export interface PinnedProjectChatsResult {
|
|
32
|
+
/** Loaded projects, in `projectIds` order; an id whose load failed is absent while it is retried. */
|
|
33
|
+
projects: PinnedProjectChats[];
|
|
34
|
+
/** True until every id of the current `projectIds` settled once. */
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
/** Clears a chat's unread state locally until a read reports a newer version. Sends no request. */
|
|
37
|
+
markViewed: (conversationId: string) => void;
|
|
38
|
+
/** Silently re-reads one loaded project, through the same per-project gate as a watch event. */
|
|
39
|
+
refresh: (projectId: string) => void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Loads each pinned project's details and newest chats through the injected
|
|
43
|
+
* client, and keeps them current with one watch stream over every pinned
|
|
44
|
+
* project. A changed project is refreshed silently, one refresh at a time per
|
|
45
|
+
* project plus one trailing run; a deleted one is dropped and reported. A
|
|
46
|
+
* first load that fails with anything but a `404` is retried with a bounded
|
|
47
|
+
* backoff, and the project stays out of the watch until it loads. A dropped
|
|
48
|
+
* stream is reopened with a bounded backoff and followed by a refresh of every
|
|
49
|
+
* project; a watch that cannot be opened is not retried for the same projects.
|
|
50
|
+
* Requests are aborted on unmount, when `enabled` turns false, and for an id
|
|
51
|
+
* that leaves `projectIds`.
|
|
52
|
+
*
|
|
53
|
+
* @param client - Configured project requests, from `createProjectsApiClient`; it must be referentially stable, because a new object reloads.
|
|
54
|
+
* @param projectIds - The pinned project ids, in display order.
|
|
55
|
+
* @param options - Whether the tree is enabled and the delete callback; the callback is read at event time, so a new identity never resubscribes.
|
|
56
|
+
*/
|
|
57
|
+
export declare const usePinnedProjectChats: (client: Pick<ProjectsApiClient, "getProject" | "listProjectConversations" | "getProjectConversationTitles" | "watchProjects">, projectIds: string[], { enabled, onProjectDeleted }: PinnedProjectChatsOptions) => PinnedProjectChatsResult;
|
|
58
|
+
//# sourceMappingURL=use-pinned-project-chats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pinned-project-chats.d.ts","sourceRoot":"","sources":["../../src/project/use-pinned-project-chats.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,kDAAkD;AAClD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAW7C,wEAAwE;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