@epam/ai-dial-chat-hooks 1.3.0-dev.34 → 1.3.0-dev.342
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
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import { CatalogEntityType as e } from "@epam/ai-dial-chat-shared";
|
|
2
|
+
import { getCatalogItemTabs as t } from "@epam/ai-dial-catalog";
|
|
1
3
|
//#region src/catalog/catalog-derivations.ts
|
|
2
|
-
var
|
|
3
|
-
let
|
|
4
|
-
return
|
|
5
|
-
},
|
|
4
|
+
var n = (e, n) => e.filter((e) => t(e).some((e) => n.has(e)) && e.supportsChat !== !1), r = (e, t) => t ? e.filter((e) => !e.isMyApp) : [...e], i = (e) => e.filter((e) => e.isUserFavorite && !e.isHidden), a = (e, n) => {
|
|
5
|
+
let r = new Set(e.flatMap(t));
|
|
6
|
+
return n.filter((e) => r.has(e));
|
|
7
|
+
}, o = (e, t) => {
|
|
6
8
|
let n = new Set(t.flatMap((e) => e.topics));
|
|
7
9
|
return new Set(Array.from(e).filter((e) => n.has(e)));
|
|
8
|
-
}
|
|
10
|
+
}, s = /* @__PURE__ */ new Set([
|
|
11
|
+
e.Agent,
|
|
12
|
+
e.Prompt,
|
|
13
|
+
e.Skill,
|
|
14
|
+
e.Toolset
|
|
15
|
+
]), c = (e) => s.has(e);
|
|
9
16
|
//#endregion
|
|
10
|
-
export {
|
|
17
|
+
export { c as canEditShareAccess, a as deriveAvailableTabIds, i as deriveFavoriteItems, n as filterCatalogItemsBySelector, r as filterHiddenOwnedItems, o as reconcileFilterTopics };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { QuickAppSchemaLike } from '../shared/application-schema';
|
|
3
|
+
/** What a catalog item is, with an `Agent` item narrowed by its application schema. */
|
|
4
|
+
export declare enum CatalogEntityKind {
|
|
5
|
+
/** A model deployment. */
|
|
6
|
+
Model = "model",
|
|
7
|
+
/** An application whose kind cannot be told: unknown deployment, or a schema that is not loaded. */
|
|
8
|
+
Agent = "agent",
|
|
9
|
+
/** An application of the QuickApp schema. */
|
|
10
|
+
QuickApp = "quickApp",
|
|
11
|
+
/** An application of another known schema, named by that schema's display name. */
|
|
12
|
+
SchemaApp = "schemaApp",
|
|
13
|
+
/** An application with no schema. */
|
|
14
|
+
CustomApp = "customApp",
|
|
15
|
+
/** A toolset. */
|
|
16
|
+
Toolset = "toolset",
|
|
17
|
+
/** A skill. */
|
|
18
|
+
Skill = "skill",
|
|
19
|
+
/** A prompt. */
|
|
20
|
+
Prompt = "prompt"
|
|
21
|
+
}
|
|
22
|
+
/** Minimal deployment shape needed to tell the kind of an `Agent` catalog item. */
|
|
23
|
+
export interface CatalogEntityKindDeployment {
|
|
24
|
+
/** Id of the application schema driving the application; absent or `null` for a custom app. */
|
|
25
|
+
applicationTypeSchemaId?: string | null;
|
|
26
|
+
}
|
|
27
|
+
/** Returns the display name of the schema with `schemaId`, or `undefined` when it is not in `schemas` or has none. */
|
|
28
|
+
export declare const findSchemaDisplayName: (schemas: QuickAppSchemaLike[], schemaId: string | null | undefined) => string | undefined;
|
|
29
|
+
/** Returns the kind of a catalog item, telling a quick, schema or custom app apart by its deployment's schema. */
|
|
30
|
+
export declare const resolveCatalogEntityKind: (type: CatalogEntityType, deployment?: CatalogEntityKindDeployment, schemas?: QuickAppSchemaLike[]) => CatalogEntityKind;
|
|
31
|
+
//# sourceMappingURL=catalog-entity-kind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-entity-kind.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-entity-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AAEtC,uFAAuF;AACvF,oBAAY,iBAAiB;IAC3B,0BAA0B;IAC1B,KAAK,UAAU;IACf,oGAAoG;IACpG,KAAK,UAAU;IACf,6CAA6C;IAC7C,QAAQ,aAAa;IACrB,mFAAmF;IACnF,SAAS,cAAc;IACvB,qCAAqC;IACrC,SAAS,cAAc;IACvB,iBAAiB;IACjB,OAAO,YAAY;IACnB,eAAe;IACf,KAAK,UAAU;IACf,gBAAgB;IAChB,MAAM,WAAW;CAClB;AAED,mFAAmF;AACnF,MAAM,WAAW,2BAA2B;IAC1C,+FAA+F;IAC/F,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAUD,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,GAChC,SAAS,kBAAkB,EAAE,EAC7B,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,KAClC,MAAM,GAAG,SAGG,CAAC;AAEhB,kHAAkH;AAClH,eAAO,MAAM,wBAAwB,GACnC,MAAM,iBAAiB,EACvB,aAAa,2BAA2B,EACxC,UAAS,kBAAkB,EAAO,KACjC,iBAcF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isQuickAppSchema as e } from "../shared/application-schema.js";
|
|
2
|
+
import { CatalogEntityType as t } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
//#region src/catalog/catalog-entity-kind.ts
|
|
4
|
+
var n = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Model = "model", e.Agent = "agent", e.QuickApp = "quickApp", e.SchemaApp = "schemaApp", e.CustomApp = "customApp", e.Toolset = "toolset", e.Skill = "skill", e.Prompt = "prompt", e;
|
|
6
|
+
}({}), r = {
|
|
7
|
+
[t.Model]: "model",
|
|
8
|
+
[t.Agent]: "agent",
|
|
9
|
+
[t.Toolset]: "toolset",
|
|
10
|
+
[t.Skill]: "skill",
|
|
11
|
+
[t.Prompt]: "prompt"
|
|
12
|
+
}, i = (e, t) => t ? e.find((e) => e.id === t)?.displayName : void 0, a = (n, i, a = []) => {
|
|
13
|
+
if (n !== t.Agent) return r[n];
|
|
14
|
+
if (i == null) return "agent";
|
|
15
|
+
let o = i.applicationTypeSchemaId;
|
|
16
|
+
if (!o) return "customApp";
|
|
17
|
+
let s = a.find((e) => e.id === o) ?? { id: o };
|
|
18
|
+
return e(s) ? "quickApp" : s.displayName ? "schemaApp" : "agent";
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as CatalogEntityKind, i as findSchemaDisplayName, a as resolveCatalogEntityKind };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CatalogSortKey } from '@epam/ai-dial-catalog';
|
|
2
|
+
/** Returns the stored catalog sort key when it is a known `CatalogSortKey`, otherwise `CatalogSortKey.RecentlyUpdated`. */
|
|
3
|
+
export declare const resolveCatalogSortKey: (stored: unknown) => CatalogSortKey;
|
|
4
|
+
/** Returns the string topics of a stored catalog topic filter as a set; anything that is not an array yields an empty set. */
|
|
5
|
+
export declare const parseCatalogFilterTopics: (stored: unknown) => Set<string>;
|
|
6
|
+
/** Returns the stored catalog tab when it is still available, otherwise the first available tab id. */
|
|
7
|
+
export declare const resolveCatalogActiveTab: (stored: unknown, availableTabIds: readonly string[]) => string | undefined;
|
|
8
|
+
//# sourceMappingURL=catalog-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-preferences.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,2HAA2H;AAC3H,eAAO,MAAM,qBAAqB,GAAI,QAAQ,OAAO,KAAG,cAGpB,CAAC;AAErC,8HAA8H;AAC9H,eAAO,MAAM,wBAAwB,GAAI,QAAQ,OAAO,KAAG,GAAG,CAAC,MAAM,CAKlE,CAAC;AAEJ,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,GAClC,QAAQ,OAAO,EACf,iBAAiB,SAAS,MAAM,EAAE,KACjC,MAAM,GAAG,SAGY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CatalogSortKey as e } from "@epam/ai-dial-catalog";
|
|
2
|
+
//#region src/catalog/catalog-preferences.ts
|
|
3
|
+
var t = (t) => Object.values(e).includes(t) ? t : e.RecentlyUpdated, n = (e) => new Set(Array.isArray(e) ? e.filter((e) => typeof e == "string") : []), r = (e, t) => typeof e == "string" && t.includes(e) ? e : t[0];
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as parseCatalogFilterTopics, r as resolveCatalogActiveTab, t as resolveCatalogSortKey };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CatalogItem } from '@epam/ai-dial-catalog';
|
|
2
|
+
import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
3
|
+
/** Discriminant for primary-action result variants. */
|
|
4
|
+
export declare enum CatalogPrimaryActionType {
|
|
5
|
+
Deployment = "deployment",
|
|
6
|
+
Prompt = "prompt"
|
|
7
|
+
}
|
|
8
|
+
/** Primary action resolved for a deployment (model, agent, toolset, or skill). */
|
|
9
|
+
export interface CatalogPrimaryActionDeployment {
|
|
10
|
+
/** Discriminant. */
|
|
11
|
+
kind: CatalogPrimaryActionType.Deployment;
|
|
12
|
+
/** Deployment entity id. */
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
/** Primary action resolved for a prompt. */
|
|
16
|
+
export interface CatalogPrimaryActionPrompt {
|
|
17
|
+
/** Discriminant. */
|
|
18
|
+
kind: CatalogPrimaryActionType.Prompt;
|
|
19
|
+
/** Prompt entity id. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Display name of the prompt. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Short description of the prompt. */
|
|
24
|
+
description: string;
|
|
25
|
+
/** Resolved prompt body (seeded from details or fetched). */
|
|
26
|
+
content: string;
|
|
27
|
+
/** Whether the prompt body contains at least one `{{parameter}}` placeholder. */
|
|
28
|
+
hasParameters: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Discriminated union of catalog primary-action results. */
|
|
31
|
+
export type CatalogPrimaryActionResult = CatalogPrimaryActionDeployment | CatalogPrimaryActionPrompt;
|
|
32
|
+
/**
|
|
33
|
+
* Resolves the primary action for a catalog item.
|
|
34
|
+
*
|
|
35
|
+
* For prompts: prefers already-seeded content from `item.details`; otherwise
|
|
36
|
+
* calls `fetchPrompt` once to retrieve the body. Sets `hasParameters` based on
|
|
37
|
+
* whether the content contains prompt-parameter placeholders.
|
|
38
|
+
*
|
|
39
|
+
* For all other entity types: returns a deployment result with the item id.
|
|
40
|
+
*
|
|
41
|
+
* The function does not navigate, select a deployment, show notifications, or
|
|
42
|
+
* import route constants — those remain the caller's responsibility.
|
|
43
|
+
*
|
|
44
|
+
* @throws When `fetchPrompt` rejects (propagated to the caller without wrapping).
|
|
45
|
+
*/
|
|
46
|
+
export declare const resolveCatalogPrimaryAction: (item: CatalogItem, fetchPrompt: (item: CatalogItem) => Promise<PromptResponseDto>) => Promise<CatalogPrimaryActionResult>;
|
|
47
|
+
//# sourceMappingURL=catalog-primary-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-primary-action.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-primary-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,uDAAuD;AACvD,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,kFAAkF;AAClF,MAAM,WAAW,8BAA8B;IAC7C,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAC1C,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,4CAA4C;AAC5C,MAAM,WAAW,0BAA0B;IACzC,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC;IACtC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,MAAM,0BAA0B,GACpC,8BAA8B,GAAG,0BAA0B,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,WAAW,EACjB,aAAa,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,iBAAiB,CAAC,KAC7D,OAAO,CAAC,0BAA0B,CAmBpC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { PublicationRule } from '@epam/ai-dial-publish-panel';
|
|
3
|
+
import { CatalogPublishEntityType } from './publish';
|
|
4
|
+
/**
|
|
5
|
+
* Converts a `PublicationRule` (publish-panel lib model) to the generated
|
|
6
|
+
* client's `PublishRuleDto` shape. The two differ only in how the comparison
|
|
7
|
+
* function is typed, so the value passes through unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto;
|
|
10
|
+
/** The DIAL publish API surface produced by {@link createPublishApiClient}. */
|
|
11
|
+
export interface PublishApiClient {
|
|
12
|
+
/** Submits a publication request for one catalog entity into `folderPath`. */
|
|
13
|
+
publishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: PublishCatalogEntityDto) => Promise<PublishResultDto>;
|
|
14
|
+
/**
|
|
15
|
+
* Submits a removal request for one already-published folder of a catalog
|
|
16
|
+
* entity. The removal takes effect only after an administrator approves it,
|
|
17
|
+
* so callers must report a pending request rather than a completed removal.
|
|
18
|
+
*/
|
|
19
|
+
unpublishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: UnpublishCatalogEntityDto) => Promise<UnpublishResultDto>;
|
|
20
|
+
/** Reads the folders one catalog entity is already published to. */
|
|
21
|
+
getCatalogPublishHistory: (entityType: CatalogPublishEntityType, entityId: string) => Promise<PublishHistoryEntryDto[]>;
|
|
22
|
+
/** Reads whether the caller may request removal of one catalog entity. */
|
|
23
|
+
getCatalogUnpublishAccess: (entityType: CatalogPublishEntityType, entityId: string) => Promise<UnpublishAccessDto>;
|
|
24
|
+
/** Reads a destination folder's already-configured access rules. */
|
|
25
|
+
getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Wraps the generated `PublishApi` in the positional-argument surface the
|
|
29
|
+
* catalog and conversation publish flows call, so each host app re-exports one
|
|
30
|
+
* client instead of re-declaring the same four wrappers. Mirrors
|
|
31
|
+
* {@link createFilesApiClient}.
|
|
32
|
+
*/
|
|
33
|
+
export declare const createPublishApiClient: (publishApi: PublishApi) => PublishApiClient;
|
|
34
|
+
//# sourceMappingURL=create-publish-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,KAAG,cAIvD,CAAC;AAEH,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,oBAAoB,EAAE,CACpB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,KAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,CACtB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,yBAAyB,KAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,oEAAoE;IACpE,wBAAwB,EAAE,CACxB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACvC,0EAA0E;IAC1E,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,oEAAoE;IACpE,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACrE;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,UAAU,KACrB,gBAwBD,CAAC"}
|
|
@@ -18,6 +18,10 @@ var e = (e) => ({
|
|
|
18
18
|
entityType: t,
|
|
19
19
|
entityId: n
|
|
20
20
|
}),
|
|
21
|
+
getCatalogUnpublishAccess: (t, n) => e.getCatalogUnpublishAccess({
|
|
22
|
+
entityType: t,
|
|
23
|
+
entityId: n
|
|
24
|
+
}),
|
|
21
25
|
getPublishRules: async (t) => (await e.getPublishRules({ folderPath: t })).rules.map(({ function: e, ...t }) => ({
|
|
22
26
|
...t,
|
|
23
27
|
function: e
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
|
|
2
|
+
/** Builds the OpenAI-compatible Chat Completions endpoint URL for a deployment. */
|
|
3
|
+
export declare const buildChatCompletionsUrl: (baseUrl: string, id: string) => string;
|
|
4
|
+
/** Builds the Responses API endpoint URL for a deployment. */
|
|
5
|
+
export declare const buildResponsesUrl: (baseUrl: string) => string;
|
|
6
|
+
/** Which generation APIs a deployment reports supporting. */
|
|
7
|
+
export interface DeploymentGenerationApiSupport {
|
|
8
|
+
hasChatCompletion?: boolean;
|
|
9
|
+
hasResponsesApi?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Builds the "Connect" tab's endpoint list for a model or application
|
|
13
|
+
* deployment: the OpenAI-compatible Chat Completions endpoint and/or the
|
|
14
|
+
* Responses API endpoint, each included only when the deployment reports
|
|
15
|
+
* supporting it. DIAL Core routes both APIs the same way for models and
|
|
16
|
+
* custom applications, keyed by the deployment id.
|
|
17
|
+
*/
|
|
18
|
+
export declare const buildDeploymentConnectApi: (baseUrl: string, id: string, { hasChatCompletion, hasResponsesApi }: DeploymentGenerationApiSupport) => CatalogItemApiDetails | undefined;
|
|
19
|
+
//# sourceMappingURL=deployment-endpoint-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAuB/B,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MAC2B,CAAC;AAElG,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MACC,CAAC;AAEtD,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,MAAM,EACf,IAAI,MAAM,EACV,wCAAwC,8BAA8B,KACrE,qBAAqB,GAAG,SAqC1B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Percent-encodes each `/`-separated segment of a deployment/application id
|
|
4
|
+
* so it satisfies the backend's `DEPLOYMENT_ID_PATTERN` (spaces and other
|
|
5
|
+
* reserved characters must be percent-encoded; `/` stays a literal path
|
|
6
|
+
* separator). Applications created via `POST /api/v1/applications` return an
|
|
7
|
+
* id built from the raw, human-readable name (e.g. `applications/<bucket>/My
|
|
8
|
+
* App__1.0`), which is only ever consumed by the settings iframe's postMessage
|
|
9
|
+
* protocol elsewhere — anywhere that id is used as a chat `deploymentId`, it
|
|
10
|
+
* must be encoded first.
|
|
11
|
+
*/
|
|
12
|
+
export declare const encodeDeploymentId: (id: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Inverse of `encodeDeploymentId` — decodes each `/`-separated segment back
|
|
15
|
+
* to its raw, human-readable form. A segment that isn't valid
|
|
16
|
+
* percent-encoding is passed through unchanged rather than throwing, since
|
|
17
|
+
* this decodes externally-sourced ids (the settings iframe's postMessage
|
|
18
|
+
* protocol).
|
|
19
|
+
*/
|
|
20
|
+
export declare const decodeDeploymentId: (id: string) => string;
|
|
21
|
+
/**
|
|
22
|
+
* Encodes a deployment/application id to its single-encoded form regardless
|
|
23
|
+
* of whether the value it received was already percent-encoded or the raw,
|
|
24
|
+
* human-readable form — decoding first then re-encoding once is idempotent
|
|
25
|
+
* either way, since `decodeDeploymentId` on a raw (unencoded) id is a no-op.
|
|
26
|
+
* Use this instead of `encodeDeploymentId` at a boundary that cannot
|
|
27
|
+
* guarantee which form it receives, such as a `postMessage` payload from the
|
|
28
|
+
* settings iframe: calling `encodeDeploymentId` directly on a value the
|
|
29
|
+
* sender already encoded escapes the existing `%` characters a second time
|
|
30
|
+
* (`%20` becomes `%2520`), which the backend only ever undoes once and so
|
|
31
|
+
* 404s on.
|
|
32
|
+
*/
|
|
33
|
+
export declare const normalizeDeploymentId: (id: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Indexes a deployment-list snapshot for repeated lookups. Rebuild when the
|
|
36
|
+
* list changes. Preserves the exact-id, exact-reference, normalized-id
|
|
37
|
+
* precedence and first-match behavior of `findDeploymentByIdOrReference`.
|
|
38
|
+
*/
|
|
39
|
+
export declare const createDeploymentLookup: (deployments: DeploymentItemDto[]) => (idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Finds a deployment matching `idOrReference` by `id` first, falling back to
|
|
42
|
+
* `reference` when no `id` matches, and finally to an `id` match that ignores
|
|
43
|
+
* percent-encoding. DIAL Core sometimes addresses a deployment by `reference`
|
|
44
|
+
* in places that store a deployment id (e.g. a conversation's or message's
|
|
45
|
+
* `model.id`), and a conversation created by a Custom Viewer (a DIAL Loop
|
|
46
|
+
* agent) may store the raw, human-readable application id while the listing
|
|
47
|
+
* returns it encoded ([#9275](https://github.com/epam/ai-dial-chat/issues/9275)), so lookups against the fetched deployments
|
|
48
|
+
* list must accept any of these forms.
|
|
49
|
+
*/
|
|
50
|
+
export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
|
|
51
|
+
//# sourceMappingURL=deployment-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-id.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAIlC,CAAC;AAEf;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAUlC,CAAC;AAEf;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACP,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,iBAAiB,EAAE,MAenE,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAQxB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAUtB,CAAC"}
|
package/catalog/deployment-id.js
CHANGED
|
@@ -5,8 +5,22 @@ var e = (e) => e.split("/").map((e) => encodeURIComponent(e)).join("/"), t = (e)
|
|
|
5
5
|
} catch {
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
}).join("/"), n = (n) => e(t(n)), r = (e
|
|
9
|
-
|
|
8
|
+
}).join("/"), n = (n) => e(t(n)), r = (e) => {
|
|
9
|
+
let t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
10
|
+
for (let a of e) {
|
|
11
|
+
t.has(a.id) || t.set(a.id, a), a.reference && !r.has(a.reference) && r.set(a.reference, a);
|
|
12
|
+
let e = n(a.id);
|
|
13
|
+
i.has(e) || i.set(e, a);
|
|
14
|
+
}
|
|
15
|
+
return (e) => {
|
|
16
|
+
if (e) return t.get(e) ?? r.get(e) ?? i.get(n(e));
|
|
17
|
+
};
|
|
18
|
+
}, i = (e, t) => {
|
|
19
|
+
if (!t) return;
|
|
20
|
+
let r = e.find((e) => e.id === t) ?? e.find((e) => e.reference === t);
|
|
21
|
+
if (r) return r;
|
|
22
|
+
let i = n(t);
|
|
23
|
+
return e.find((e) => n(e.id) === i);
|
|
10
24
|
};
|
|
11
25
|
//#endregion
|
|
12
|
-
export { t as decodeDeploymentId, e as encodeDeploymentId,
|
|
26
|
+
export { r as createDeploymentLookup, t as decodeDeploymentId, e as encodeDeploymentId, i as findDeploymentByIdOrReference, n as normalizeDeploymentId };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/** Toolset authentication mechanism as reported by DIAL Core. */
|
|
2
|
+
export declare enum AuthenticationType {
|
|
3
|
+
None = "NONE",
|
|
4
|
+
ApiKey = "API_KEY",
|
|
5
|
+
OAuth = "OAUTH"
|
|
6
|
+
}
|
|
7
|
+
/** Feature-support flags for a model deployment. */
|
|
8
|
+
export interface ModelCapabilities {
|
|
9
|
+
hasTools?: boolean;
|
|
10
|
+
hasMcp?: boolean;
|
|
11
|
+
hasCaching?: boolean;
|
|
12
|
+
hasParallelToolCalls?: boolean;
|
|
13
|
+
hasUrlAttachments?: boolean;
|
|
14
|
+
hasFolderAttachments?: boolean;
|
|
15
|
+
hasSeed?: boolean;
|
|
16
|
+
hasSystemPrompt?: boolean;
|
|
17
|
+
hasResume?: boolean;
|
|
18
|
+
hasChatCompletion?: boolean;
|
|
19
|
+
hasResponsesApi?: boolean;
|
|
20
|
+
hasSkills?: boolean;
|
|
21
|
+
reasoningEfforts?: string[];
|
|
22
|
+
}
|
|
23
|
+
/** Catalog-facing specification fields for a model deployment. */
|
|
24
|
+
export interface ModelSpecification {
|
|
25
|
+
provider?: string;
|
|
26
|
+
vendor?: string;
|
|
27
|
+
license?: string;
|
|
28
|
+
knowledgeCutoffDate?: string;
|
|
29
|
+
parameters?: string;
|
|
30
|
+
contextWindowTokens?: number;
|
|
31
|
+
maxOutputTokens?: number;
|
|
32
|
+
inputTypes?: string[];
|
|
33
|
+
hostedBy?: string;
|
|
34
|
+
createdAt?: number;
|
|
35
|
+
}
|
|
36
|
+
/** One priced unit for a model deployment. */
|
|
37
|
+
export interface ModelPriceRow {
|
|
38
|
+
/** DIAL Core pricing key, e.g. `prompt`, `completion`, `cache_read`. */
|
|
39
|
+
key: string;
|
|
40
|
+
/** Per-unit price formatted for display, e.g. `$3/M tokens`. */
|
|
41
|
+
price: string;
|
|
42
|
+
/** Condition under which a tiered price applies, formatted for display, e.g. `prompt tokens > 200K`; absent for a flat price. */
|
|
43
|
+
condition?: string;
|
|
44
|
+
}
|
|
45
|
+
/** A model deployment's full price list. */
|
|
46
|
+
export interface ModelPricing {
|
|
47
|
+
/** Every price DIAL Core reports for the deployment, `unit` excluded. */
|
|
48
|
+
prices?: ModelPriceRow[];
|
|
49
|
+
/** DIAL Core billing unit the prices are quoted in, e.g. `token` or `char_without_whitespace`; absent means tokens. */
|
|
50
|
+
unit?: string;
|
|
51
|
+
}
|
|
52
|
+
/** API-resource identifiers for a model deployment. */
|
|
53
|
+
export interface ModelApiDetails {
|
|
54
|
+
modelId?: string;
|
|
55
|
+
}
|
|
56
|
+
/** Full details payload for a model-type deployment. */
|
|
57
|
+
export interface ModelEntityDetails {
|
|
58
|
+
capabilities?: ModelCapabilities;
|
|
59
|
+
specification?: ModelSpecification;
|
|
60
|
+
pricing?: ModelPricing;
|
|
61
|
+
api?: ModelApiDetails;
|
|
62
|
+
}
|
|
63
|
+
/** Catalog-facing specification fields for an agent (application) deployment. */
|
|
64
|
+
export interface AgentSpecification {
|
|
65
|
+
provider?: string;
|
|
66
|
+
vendor?: string;
|
|
67
|
+
license?: string;
|
|
68
|
+
knowledgeCutoffDate?: string;
|
|
69
|
+
parameters?: string;
|
|
70
|
+
hostedBy?: string;
|
|
71
|
+
createdAt?: number;
|
|
72
|
+
routes?: string[];
|
|
73
|
+
}
|
|
74
|
+
/** Feature-support flags for an agent (application) deployment. */
|
|
75
|
+
export interface AgentCapabilities {
|
|
76
|
+
hasTools?: boolean;
|
|
77
|
+
hasMcp?: boolean;
|
|
78
|
+
hasCaching?: boolean;
|
|
79
|
+
hasParallelToolCalls?: boolean;
|
|
80
|
+
hasUrlAttachments?: boolean;
|
|
81
|
+
hasFolderAttachments?: boolean;
|
|
82
|
+
hasSeed?: boolean;
|
|
83
|
+
hasSystemPrompt?: boolean;
|
|
84
|
+
hasResume?: boolean;
|
|
85
|
+
hasConfiguration?: boolean;
|
|
86
|
+
hasChatCompletion?: boolean;
|
|
87
|
+
hasResponsesApi?: boolean;
|
|
88
|
+
hasSkills?: boolean;
|
|
89
|
+
}
|
|
90
|
+
/** Input-attachment configuration for an agent (application) deployment. */
|
|
91
|
+
export interface AgentConfiguration {
|
|
92
|
+
inputAttachmentTypes?: string[];
|
|
93
|
+
}
|
|
94
|
+
/** Full details payload for an agent (application)-type deployment. */
|
|
95
|
+
export interface AgentEntityDetails {
|
|
96
|
+
specification?: AgentSpecification;
|
|
97
|
+
configuration?: AgentConfiguration;
|
|
98
|
+
capabilities?: AgentCapabilities;
|
|
99
|
+
}
|
|
100
|
+
/** Sign-in status at both the personal and org-wide (global) level for a toolset. */
|
|
101
|
+
export interface ToolsetAuthStatusDetails {
|
|
102
|
+
global?: string;
|
|
103
|
+
appLevel?: string;
|
|
104
|
+
userLevel?: string;
|
|
105
|
+
scopesSupported?: string[];
|
|
106
|
+
authorizationEndpoint?: string;
|
|
107
|
+
tokenEndpoint?: string;
|
|
108
|
+
apiKeyHeader?: string;
|
|
109
|
+
}
|
|
110
|
+
/** Catalog-facing specification fields for a toolset. */
|
|
111
|
+
export interface ToolsetSpecification {
|
|
112
|
+
provider?: string;
|
|
113
|
+
vendor?: string;
|
|
114
|
+
license?: string;
|
|
115
|
+
knowledgeCutoffDate?: string;
|
|
116
|
+
parameters?: string;
|
|
117
|
+
authentication?: AuthenticationType;
|
|
118
|
+
permissions?: string[];
|
|
119
|
+
hostedBy?: string;
|
|
120
|
+
authStatus?: ToolsetAuthStatusDetails;
|
|
121
|
+
createdAt?: number;
|
|
122
|
+
/** Names of all tools the underlying MCP server supports, not just the allow-listed subset in `permissions`. */
|
|
123
|
+
allTools?: string[];
|
|
124
|
+
}
|
|
125
|
+
/** Feature-support flags for a toolset. */
|
|
126
|
+
export interface ToolsetCapabilities {
|
|
127
|
+
hasMcp?: boolean;
|
|
128
|
+
hasCaching?: boolean;
|
|
129
|
+
hasSystemPrompt?: boolean;
|
|
130
|
+
hasResume?: boolean;
|
|
131
|
+
}
|
|
132
|
+
/** Full details payload for a toolset-type deployment. */
|
|
133
|
+
export interface ToolsetEntityDetails {
|
|
134
|
+
specification?: ToolsetSpecification;
|
|
135
|
+
capabilities?: ToolsetCapabilities;
|
|
136
|
+
}
|
|
137
|
+
/** Discriminated-union entity details for a deployment, keyed by catalog entity type. */
|
|
138
|
+
export type EntitySpecificDetails = {
|
|
139
|
+
type: 'MODEL';
|
|
140
|
+
data: ModelEntityDetails;
|
|
141
|
+
} | {
|
|
142
|
+
type: 'AGENT';
|
|
143
|
+
data: AgentEntityDetails;
|
|
144
|
+
} | {
|
|
145
|
+
type: 'TOOLSET';
|
|
146
|
+
data: ToolsetEntityDetails;
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=entity-details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { FavoriteEntityType } from './useFavoriteEntitiesState/useFavoriteEntitiesState';
|
|
3
|
+
/** Returns the user-config section a catalog item's favorite state is stored in. */
|
|
4
|
+
export declare const resolveFavoriteEntityType: (type?: CatalogEntityType) => FavoriteEntityType;
|
|
5
|
+
//# sourceMappingURL=favorite-entity-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"favorite-entity-type.d.ts","sourceRoot":"","sources":["../../src/catalog/favorite-entity-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAezF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,GACpC,OAAO,iBAAiB,KACvB,kBAKF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FavoriteEntityType as e } from "./useFavoriteEntitiesState/useFavoriteEntitiesState.js";
|
|
2
|
+
import { CatalogEntityType as t } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
//#region src/catalog/favorite-entity-type.ts
|
|
4
|
+
var n = {
|
|
5
|
+
[t.Toolset]: e.Toolset,
|
|
6
|
+
[t.Prompt]: e.Prompt,
|
|
7
|
+
[t.Skill]: e.Skill
|
|
8
|
+
}, r = (t) => t == null ? e.Deployment : n[t] ?? e.Deployment;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as resolveFavoriteEntityType };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CatalogItemLimits } from '@epam/ai-dial-catalog';
|
|
2
|
+
import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
3
|
+
import { FormatResetTime } from '../usage/map-usage-data-to-dashboard';
|
|
4
|
+
/** Labels and formatter callbacks for the deployment-limits mapping utility. */
|
|
5
|
+
export interface DeploymentLimitsLabels {
|
|
6
|
+
/** Heading of the group every token stat row is listed under. */
|
|
7
|
+
tokenGroup: string;
|
|
8
|
+
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
9
|
+
tokensPerDay: string;
|
|
10
|
+
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
11
|
+
tokensPerWeek: string;
|
|
12
|
+
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
13
|
+
tokensPerMonth: string;
|
|
14
|
+
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
15
|
+
followsCostLimit: string;
|
|
16
|
+
/** Formats the combined used/total display value for a capped row. */
|
|
17
|
+
formatValueLabel: (used: string, total: string) => string;
|
|
18
|
+
/** Formats the ARIA label for a capped progress row. */
|
|
19
|
+
formatProgressAriaLabel: (params: {
|
|
20
|
+
label: string;
|
|
21
|
+
used: string;
|
|
22
|
+
total: string;
|
|
23
|
+
}) => string;
|
|
24
|
+
/** Formats the ARIA label for an unlimited row, which has no total to announce. */
|
|
25
|
+
formatFollowsCostLimitAriaLabel: (params: {
|
|
26
|
+
label: string;
|
|
27
|
+
used: string;
|
|
28
|
+
}) => string;
|
|
29
|
+
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
30
|
+
formatResetTime?: FormatResetTime;
|
|
31
|
+
}
|
|
32
|
+
/** Maps a deployment limits DTO to display-ready catalog limits, or `undefined` when no qualifying stats exist. */
|
|
33
|
+
export declare const mapDeploymentLimitsDtoToCatalogLimits: (dto: DeploymentLimitsResponseDto | undefined, labels: DeploymentLimitsLabels) => CatalogItemLimits | undefined;
|
|
34
|
+
//# sourceMappingURL=map-deployment-limits-to-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-deployment-limits-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAG5E,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,gBAAgB,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,wDAAwD;IACxD,uBAAuB,EAAE,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,MAAM,CAAC;IACb,mFAAmF;IACnF,+BAA+B,EAAE,CAAC,MAAM,EAAE;QACxC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,MAAM,CAAC;IACb,sGAAsG;IACtG,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAgID,mHAAmH;AACnH,eAAO,MAAM,qCAAqC,GAChD,KAAK,2BAA2B,GAAG,SAAS,EAC5C,QAAQ,sBAAsB,KAC7B,iBAAiB,GAAG,SAsBtB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CatalogItemLimits, UsageLimitProgressRow } from '@epam/ai-dial-catalog';
|
|
2
|
+
import { LimitStatsDto } from '@epam/ai-dial-chat-api-client';
|
|
3
|
+
import { FormatResetTime } from '../usage/map-usage-data-to-dashboard';
|
|
4
|
+
import { UsageLimitsSources } from '../usage/useDeploymentUsageLimits/useDeploymentUsageLimits';
|
|
5
|
+
/** Labels and formatter callbacks for the conversation-input limits mapping utility. */
|
|
6
|
+
export interface ConversationInputLimitsLabels {
|
|
7
|
+
/** Heading of the group listing the selected deployment's token limits. */
|
|
8
|
+
tokenGroup: string;
|
|
9
|
+
/** Heading of the group listing the caller's cost budget and spend against it. */
|
|
10
|
+
costGroup: string;
|
|
11
|
+
/** Label for the current-UTC-day row, used by both groups. */
|
|
12
|
+
periodDay: string;
|
|
13
|
+
/** Label for the current-UTC-week row, used by both groups. */
|
|
14
|
+
periodWeek: string;
|
|
15
|
+
/** Label for the current-UTC-month row, used by both groups. */
|
|
16
|
+
periodMonth: string;
|
|
17
|
+
/** Formats the combined used/total display value for a capped row. */
|
|
18
|
+
formatValueLabel: (used: string, total: string) => string;
|
|
19
|
+
/** Formats the ARIA label for a capped progress row. */
|
|
20
|
+
formatProgressAriaLabel: (params: {
|
|
21
|
+
label: string;
|
|
22
|
+
used: string;
|
|
23
|
+
total: string;
|
|
24
|
+
}) => string;
|
|
25
|
+
}
|
|
26
|
+
export declare const buildResetFields: (stats: LimitStatsDto, formatResetTime: FormatResetTime | undefined) => Pick<UsageLimitProgressRow, "resetLabel" | "resetIsoValue" | "resetAriaLabel">;
|
|
27
|
+
/** Maps the deployment's day, week, and month token limits (from `sources.deployment`) and the account cost budget (from `sources.account`) to display-ready rows, or `undefined` when none qualify. */
|
|
28
|
+
export declare const mapDeploymentLimitsToInput: (sources: UsageLimitsSources, labels: ConversationInputLimitsLabels, formatResetTime?: FormatResetTime) => CatalogItemLimits | undefined;
|
|
29
|
+
//# sourceMappingURL=map-deployment-limits-to-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-deployment-limits-to-input.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAErG,wFAAwF;AACxF,MAAM,WAAW,6BAA6B;IAC5C,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,wDAAwD;IACxD,uBAAuB,EAAE,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,MAAM,CAAC;CACd;AAgGD,eAAO,MAAM,gBAAgB,GAC3B,OAAO,aAAa,EACpB,iBAAiB,eAAe,GAAG,SAAS,KAC3C,IAAI,CACL,qBAAqB,EACrB,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAYlD,CAAC;AA4GF,wMAAwM;AACxM,eAAO,MAAM,0BAA0B,GACrC,SAAS,kBAAkB,EAC3B,QAAQ,6BAA6B,EACrC,kBAAkB,eAAe,KAChC,iBAAiB,GAAG,SAqCtB,CAAC"}
|
|
@@ -61,7 +61,7 @@ var n = [
|
|
|
61
61
|
return r >= 1 ? t.LimitReached : r >= a && e !== t.LimitReached ? t.RunningLow : e;
|
|
62
62
|
}, void 0), _ = (e, t, n, r, i, a, o) => {
|
|
63
63
|
let s = t.flatMap((t) => {
|
|
64
|
-
let n = e[t.key];
|
|
64
|
+
let n = e?.[t.key];
|
|
65
65
|
return !u(n) || !h(n) ? [] : (o.push(n), [p(n, r[t.labelField], r, i, a)]);
|
|
66
66
|
});
|
|
67
67
|
return s.length > 0 ? {
|
|
@@ -69,11 +69,10 @@ var n = [
|
|
|
69
69
|
rows: s
|
|
70
70
|
} : void 0;
|
|
71
71
|
}, v = (t, i, a) => {
|
|
72
|
-
|
|
73
|
-
let o = [], u = [_(t, n, i.tokenGroup, i, {
|
|
72
|
+
let o = [], u = [_(t.deployment, n, i.tokenGroup, i, {
|
|
74
73
|
format: (e) => s.format(l(e)),
|
|
75
74
|
formatFull: (e) => c.format(e)
|
|
76
|
-
}, a, o), _(t, r, i.costGroup, i, {
|
|
75
|
+
}, a, o), _(t.account, r, i.costGroup, i, {
|
|
77
76
|
format: e,
|
|
78
77
|
formatFull: e
|
|
79
78
|
}, a, o)].filter((e) => e != null);
|