@epam/ai-dial-chat-hooks 1.3.0-dev.5 → 1.3.0-dev.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-error/api-error.d.ts +30 -0
- package/api-error/api-error.d.ts.map +1 -0
- package/api-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/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
- package/attachments.d.ts +2 -94
- package/catalog/catalog-derivations.d.ts +27 -0
- package/catalog/catalog-derivations.d.ts.map +1 -0
- package/catalog/catalog-primary-action.d.ts +47 -0
- package/catalog/catalog-primary-action.d.ts.map +1 -0
- package/catalog/create-publish-api.d.ts +32 -0
- package/catalog/create-publish-api.d.ts.map +1 -0
- package/catalog/deployment-endpoint-url.d.ts +19 -0
- package/catalog/deployment-endpoint-url.d.ts.map +1 -0
- package/catalog/deployment-id.d.ts +42 -0
- package/catalog/deployment-id.d.ts.map +1 -0
- package/catalog/entity-details.d.ts +146 -0
- package/catalog/entity-details.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
- package/catalog/map-deployment-limits-to-input.d.ts +28 -0
- package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
- package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
- package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-entity-details-to-catalog.d.ts +81 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
- package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
- package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
- package/catalog/map-skill-to-catalog-item.d.ts +113 -0
- package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
- package/catalog/mcp-endpoint-url.d.ts +18 -0
- package/catalog/mcp-endpoint-url.d.ts.map +1 -0
- package/catalog/publish.d.ts +35 -0
- package/catalog/publish.d.ts.map +1 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
- package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +100 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +139 -122
- package/catalog/useCatalogItemDetails.d.ts +70 -0
- package/catalog/useCatalogItemDetails.d.ts.map +1 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -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.d.ts +2 -1433
- package/conversation/announcement-message.d.ts +61 -0
- package/conversation/announcement-message.d.ts.map +1 -0
- package/conversation/conversation-transfer/async.d.ts +10 -0
- package/conversation/conversation-transfer/async.d.ts.map +1 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts +42 -0
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
- 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 +10 -0
- package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/import-conversation.d.ts +106 -0
- package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
- package/conversation/conversation-transfer/progress.d.ts +60 -0
- package/conversation/conversation-transfer/progress.d.ts.map +1 -0
- 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-import.d.ts +17 -0
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
- package/conversation/create-chat-stream-api.d.ts +92 -0
- package/conversation/create-chat-stream-api.d.ts.map +1 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
- package/conversation/display-name-watch.d.ts +4 -0
- package/conversation/display-name-watch.d.ts.map +1 -0
- package/conversation/footer-message.d.ts +10 -0
- package/conversation/footer-message.d.ts.map +1 -0
- package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
- package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
- package/conversation/greeting.d.ts +18 -0
- package/conversation/greeting.d.ts.map +1 -0
- package/conversation/message-factory.d.ts +7 -0
- package/conversation/message-factory.d.ts.map +1 -0
- package/conversation/message-utils.d.ts +67 -0
- package/conversation/message-utils.d.ts.map +1 -0
- package/conversation/overlay-messages.d.ts +5 -0
- package/conversation/overlay-messages.d.ts.map +1 -0
- package/conversation/quick-app-conversation-starters.d.ts +10 -0
- package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
- package/conversation/stage.d.ts +77 -0
- package/conversation/stage.d.ts.map +1 -0
- package/conversation/starter-option.d.ts +21 -0
- package/conversation/starter-option.d.ts.map +1 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
- package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
- 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/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/useConversationImport/useConversationImport.d.ts +54 -0
- package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +64 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
- 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/frame-scheduler.d.ts +14 -0
- package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
- package/conversation/useConversationStream/generation-resume.d.ts +85 -0
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
- package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
- package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -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/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
- package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
- package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
- package/conversation-overlay.d.ts +2 -7
- 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-transfer.d.ts +2 -190
- package/conversation.d.ts +2 -1372
- package/entry-points/attachments.d.ts +3 -0
- package/entry-points/attachments.d.ts.map +1 -0
- package/entry-points/catalog.d.ts +25 -0
- package/entry-points/catalog.d.ts.map +1 -0
- package/entry-points/conversation-overlay.d.ts +2 -0
- package/entry-points/conversation-overlay.d.ts.map +1 -0
- package/entry-points/conversation-sources.d.ts +2 -0
- package/entry-points/conversation-sources.d.ts.map +1 -0
- package/entry-points/conversation-transfer.d.ts +7 -0
- package/entry-points/conversation-transfer.d.ts.map +1 -0
- package/entry-points/conversation.d.ts +33 -0
- package/entry-points/conversation.d.ts.map +1 -0
- package/entry-points/file-manager-canvas.d.ts +2 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -0
- package/entry-points/file-manager.d.ts +31 -0
- package/entry-points/file-manager.d.ts.map +1 -0
- package/entry-points/mcp-apps.d.ts +6 -0
- package/entry-points/mcp-apps.d.ts.map +1 -0
- package/entry-points/oauth.d.ts +10 -0
- package/entry-points/oauth.d.ts.map +1 -0
- package/entry-points/scheduled-tasks.d.ts +8 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -0
- package/entry-points/scroll-anchoring.d.ts +2 -0
- package/entry-points/scroll-anchoring.d.ts.map +1 -0
- package/entry-points/sharing.d.ts +3 -0
- package/entry-points/sharing.d.ts.map +1 -0
- package/entry-points/skill-editor.d.ts +9 -0
- package/entry-points/skill-editor.d.ts.map +1 -0
- package/entry-points/skills-state.d.ts +2 -0
- package/entry-points/skills-state.d.ts.map +1 -0
- package/entry-points/source-content.d.ts +2 -0
- package/entry-points/source-content.d.ts.map +1 -0
- package/entry-points/usage-limits.d.ts +8 -0
- package/entry-points/usage-limits.d.ts.map +1 -0
- package/entry-points/usage.d.ts +3 -0
- package/entry-points/usage.d.ts.map +1 -0
- package/entry-points/utils.d.ts +17 -0
- package/entry-points/utils.d.ts.map +1 -0
- package/entry-points/viewport-layout.d.ts +4 -0
- package/entry-points/viewport-layout.d.ts.map +1 -0
- package/file-manager-canvas.d.ts +2 -418
- package/file-manager.d.ts +2 -1237
- package/file-manager.js +25 -25
- package/files/annotation.d.ts +10 -0
- package/files/annotation.d.ts.map +1 -0
- package/files/attachment-canvas.d.ts +123 -0
- package/files/attachment-canvas.d.ts.map +1 -0
- package/files/attachment-dto-to-display.d.ts +10 -0
- package/files/attachment-dto-to-display.d.ts.map +1 -0
- package/files/attachment-types.d.ts +21 -0
- package/files/attachment-types.d.ts.map +1 -0
- package/files/create-files-api.d.ts +52 -0
- package/files/create-files-api.d.ts.map +1 -0
- package/files/create-upload-file-with-progress.d.ts +24 -0
- package/files/create-upload-file-with-progress.d.ts.map +1 -0
- package/files/dial-file-manager-copy-move.util.d.ts +15 -0
- package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
- package/files/dial-file-manager-mapping.util.d.ts +35 -0
- package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
- 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.model.js +7 -3
- package/files/dial-file-manager.types.d.ts +327 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- package/files/dial-file-manager.types.js +1 -1
- 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.d.ts +17 -0
- package/files/dial-file.d.ts.map +1 -0
- package/files/dial-files-api.d.ts +71 -0
- package/files/dial-files-api.d.ts.map +1 -0
- package/files/download-destination.d.ts +31 -0
- package/files/download-destination.d.ts.map +1 -0
- package/files/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/useDialFileListing/useDialFileListing.d.ts +82 -0
- package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
- package/files/useDialFileListing/useDialFileListing.js +24 -14
- package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- package/files/useDialFileManager/useDialFileManager.js +148 -140
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
- package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts +68 -0
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
- package/files/useDialFileMutations/useDialFileMutations.js +206 -204
- package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileSharing/useDialFileSharing.js +45 -39
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +8 -4
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
- package/index.d.ts +159 -6974
- package/index.d.ts.map +1 -0
- package/index.js +124 -117
- 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/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
- package/mcp-apps.d.ts +2 -256
- package/oauth/authorize-url.d.ts +16 -0
- package/oauth/authorize-url.d.ts.map +1 -0
- package/oauth/handshake.d.ts +30 -0
- package/oauth/handshake.d.ts.map +1 -0
- package/oauth/models.d.ts +81 -0
- package/oauth/models.d.ts.map +1 -0
- package/oauth/popup.d.ts +30 -0
- package/oauth/popup.d.ts.map +1 -0
- package/oauth/toolset-id.d.ts +53 -0
- package/oauth/toolset-id.d.ts.map +1 -0
- package/oauth/types.d.ts +84 -0
- package/oauth/types.d.ts.map +1 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
- package/oauth.d.ts +2 -472
- package/package.json +26 -17
- package/prompt/export-prompt.d.ts +31 -0
- package/prompt/export-prompt.d.ts.map +1 -0
- package/prompt/prompt-resource.d.ts +30 -0
- package/prompt/prompt-resource.d.ts.map +1 -0
- package/prompt/prompt.d.ts +34 -0
- package/prompt/prompt.d.ts.map +1 -0
- package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
- package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-description.d.ts +38 -0
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -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-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-tasks-api-client.d.ts +67 -0
- package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
- package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
- package/scheduled-task/use-scheduled-task-runs.js +67 -67
- package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- package/scheduled-tasks.d.ts +2 -250
- package/scroll-anchoring.d.ts +2 -50
- package/shared/application-schema.d.ts +18 -0
- package/shared/application-schema.d.ts.map +1 -0
- package/shared/application-schema.js +2 -2
- package/shared/browser-timezone.d.ts +7 -0
- package/shared/browser-timezone.d.ts.map +1 -0
- package/shared/cron-day-of-month.d.ts +21 -0
- package/shared/cron-day-of-month.d.ts.map +1 -0
- package/shared/cron-weekday.d.ts +5 -0
- package/shared/cron-weekday.d.ts.map +1 -0
- package/shared/custom-apps.d.ts +7 -0
- package/shared/custom-apps.d.ts.map +1 -0
- package/shared/external-services.d.ts +16 -0
- package/shared/external-services.d.ts.map +1 -0
- package/shared/formatting.d.ts +5 -0
- package/shared/formatting.d.ts.map +1 -0
- package/shared/locale.d.ts +45 -0
- package/shared/locale.d.ts.map +1 -0
- package/shared/string-utils.d.ts +11 -0
- package/shared/string-utils.d.ts.map +1 -0
- package/shared/toolset-login-events.d.ts +15 -0
- package/shared/toolset-login-events.d.ts.map +1 -0
- package/sharing.d.ts +2 -65
- package/skill/skill-archive.d.ts +7 -0
- package/skill/skill-archive.d.ts.map +1 -0
- package/skill/skill-file-batch-validation.d.ts +70 -0
- package/skill/skill-file-batch-validation.d.ts.map +1 -0
- package/skill/skill-file-preview.d.ts +25 -0
- package/skill/skill-file-preview.d.ts.map +1 -0
- package/skill/skill-manifest.d.ts +28 -0
- package/skill/skill-manifest.d.ts.map +1 -0
- package/skill/skill-types.d.ts +46 -0
- package/skill/skill-types.d.ts.map +1 -0
- package/skill/skill.d.ts +160 -0
- package/skill/skill.d.ts.map +1 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
- package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
- package/skill/useSkillEditorLoad.d.ts +74 -0
- package/skill/useSkillEditorLoad.d.ts.map +1 -0
- package/skill/useSkillEditorSubmit.d.ts +125 -0
- package/skill/useSkillEditorSubmit.d.ts.map +1 -0
- package/skill/useSkillFileActions.d.ts +60 -0
- package/skill/useSkillFileActions.d.ts.map +1 -0
- package/skill/useSkillFilePreview.d.ts +38 -0
- package/skill/useSkillFilePreview.d.ts.map +1 -0
- package/skill/useSkillsState/useSkillsState.d.ts +35 -0
- package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
- package/skill-editor.d.ts +2 -655
- package/skills-state.d.ts +2 -40
- package/source-content.d.ts +2 -29
- package/usage/map-usage-data-to-dashboard.d.ts +39 -0
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
- package/usage/map-user-usage-to-model-limits.d.ts +62 -0
- package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
- package/usage/usage-banner-source.d.ts +23 -0
- package/usage/usage-banner-source.d.ts.map +1 -0
- package/usage/usage-banner-source.js +36 -0
- package/usage/usage-period.d.ts +7 -0
- package/usage/usage-period.d.ts.map +1 -0
- package/usage/usage-period.js +6 -0
- package/usage/usage-reset-time.d.ts +69 -0
- package/usage/usage-reset-time.d.ts.map +1 -0
- package/usage/usage-reset-time.js +72 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +32 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +39 -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 +56 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +67 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
- package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
- package/usage-limits.d.ts +2 -0
- package/usage-limits.js +8 -0
- package/usage.d.ts +2 -125
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
- package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
- package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
- package/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/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 +10 -10
- package/viewport-layout.d.ts +2 -27
package/catalog.d.ts
CHANGED
|
@@ -1,1433 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { CatalogContentTreeNode } from '@epam/ai-dial-catalog';
|
|
4
|
-
import { CatalogCreateSearch } from '@epam/ai-dial-catalog';
|
|
5
|
-
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
6
|
-
import { CatalogItem } from '@epam/ai-dial-catalog';
|
|
7
|
-
import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
|
|
8
|
-
import { CatalogItemCredentials } from '@epam/ai-dial-catalog';
|
|
9
|
-
import { CatalogItemDetailsFetchResult } from '@epam/ai-dial-catalog';
|
|
10
|
-
import { CatalogItemLimits } from '@epam/ai-dial-catalog';
|
|
11
|
-
import { CatalogItemOverview } from '@epam/ai-dial-catalog';
|
|
12
|
-
import { CatalogItemTabData } from '@epam/ai-dial-catalog';
|
|
13
|
-
import { CredentialsLevel } from '@epam/ai-dial-catalog';
|
|
14
|
-
import { DeploymentDetailsDto } from '@epam/ai-dial-chat-api-client';
|
|
15
|
-
import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
|
|
16
|
-
import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
17
|
-
import { DialToolsetAuthSettingsDto } from '@epam/ai-dial-chat-api-client';
|
|
18
|
-
import { DialToolsetDto } from '@epam/ai-dial-chat-api-client';
|
|
19
|
-
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
20
|
-
import { ExternalServicesApi } from '@epam/ai-dial-chat-api-client';
|
|
21
|
-
import { LimitStatsDto } from '@epam/ai-dial-chat-api-client';
|
|
22
|
-
import { ListFilesResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
23
|
-
import { NotificationVariant } from '@epam/ai-dial-ui-kit';
|
|
24
|
-
import { OfflineCredentialsApi } from '@epam/ai-dial-chat-api-client';
|
|
25
|
-
import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
26
|
-
import { PublicationRule } from '@epam/ai-dial-publish-panel';
|
|
27
|
-
import { PublishApi } from '@epam/ai-dial-chat-api-client';
|
|
28
|
-
import { PublishCatalogEntityDto } from '@epam/ai-dial-chat-api-client';
|
|
29
|
-
import { PublishConversationResultDto } from '@epam/ai-dial-chat-api-client';
|
|
30
|
-
import { PublishFolderNode } from '@epam/ai-dial-publish-panel';
|
|
31
|
-
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
32
|
-
import { PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
33
|
-
import { PublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
34
|
-
import { PublishRuleDto } from '@epam/ai-dial-chat-api-client';
|
|
35
|
-
import { SkillFileListResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
36
|
-
import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
|
|
37
|
-
import { ToolsetLoginBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
38
|
-
import { ToolsetLogoutBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
39
|
-
import { UnpublishCatalogEntityDto } from '@epam/ai-dial-chat-api-client';
|
|
40
|
-
import { UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
41
|
-
import { UsageLimitProgressRow } from '@epam/ai-dial-catalog';
|
|
42
|
-
|
|
43
|
-
/** Feature-support flags for an agent (application) deployment. */
|
|
44
|
-
export declare interface AgentCapabilities {
|
|
45
|
-
hasTools?: boolean;
|
|
46
|
-
hasMcp?: boolean;
|
|
47
|
-
hasCaching?: boolean;
|
|
48
|
-
hasParallelToolCalls?: boolean;
|
|
49
|
-
hasUrlAttachments?: boolean;
|
|
50
|
-
hasFolderAttachments?: boolean;
|
|
51
|
-
hasSeed?: boolean;
|
|
52
|
-
hasSystemPrompt?: boolean;
|
|
53
|
-
hasResume?: boolean;
|
|
54
|
-
hasConfiguration?: boolean;
|
|
55
|
-
hasChatCompletion?: boolean;
|
|
56
|
-
hasResponsesApi?: boolean;
|
|
57
|
-
hasSkills?: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** Input-attachment configuration for an agent (application) deployment. */
|
|
61
|
-
export declare interface AgentConfiguration {
|
|
62
|
-
inputAttachmentTypes?: string[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** Full details payload for an agent (application)-type deployment. */
|
|
66
|
-
export declare interface AgentEntityDetails {
|
|
67
|
-
specification?: AgentSpecification;
|
|
68
|
-
configuration?: AgentConfiguration;
|
|
69
|
-
capabilities?: AgentCapabilities;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** Catalog-facing specification fields for an agent (application) deployment. */
|
|
73
|
-
export declare interface AgentSpecification {
|
|
74
|
-
provider?: string;
|
|
75
|
-
vendor?: string;
|
|
76
|
-
license?: string;
|
|
77
|
-
knowledgeCutoffDate?: string;
|
|
78
|
-
parameters?: string;
|
|
79
|
-
hostedBy?: string;
|
|
80
|
-
createdAt?: number;
|
|
81
|
-
routes?: string[];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** Toolset authentication mechanism as reported by DIAL Core. */
|
|
85
|
-
export declare enum AuthenticationType {
|
|
86
|
-
None = "NONE",
|
|
87
|
-
ApiKey = "API_KEY",
|
|
88
|
-
OAuth = "OAUTH"
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** Builds the MCP endpoint URL for an application-deployment resource. */
|
|
92
|
-
export declare const buildApplicationMcpUrl: (baseUrl: string, id: string) => string;
|
|
93
|
-
|
|
94
|
-
/** Builds the OpenAI-compatible Chat Completions endpoint URL for a deployment. */
|
|
95
|
-
export declare const buildChatCompletionsUrl: (baseUrl: string, id: string) => string;
|
|
96
|
-
|
|
97
|
-
/** Builds the "Connect" tab's resource/endpoint/snippet data for the MCP endpoint of the given resource kind. */
|
|
98
|
-
export declare const buildConnectApi: (baseUrl: string, id: string, kind: McpResourceKind) => CatalogItemApiDetails;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Builds the "Connect" tab's endpoint list for a model or application
|
|
102
|
-
* deployment: the OpenAI-compatible Chat Completions endpoint and/or the
|
|
103
|
-
* Responses API endpoint, each included only when the deployment reports
|
|
104
|
-
* supporting it. DIAL Core routes both APIs the same way for models and
|
|
105
|
-
* custom applications, keyed by the deployment id.
|
|
106
|
-
*/
|
|
107
|
-
export declare const buildDeploymentConnectApi: (baseUrl: string, id: string, { hasChatCompletion, hasResponsesApi }: DeploymentGenerationApiSupport) => CatalogItemApiDetails | undefined;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Builds the Overview tab data for a prompt: who authored it and when it last
|
|
111
|
-
* changed. The description is not repeated here — the Details tab already
|
|
112
|
-
* shows it above the body.
|
|
113
|
-
*/
|
|
114
|
-
export declare const buildPromptOverview: (prompt: PromptResponseDto, labels: PromptOverviewLabels) => CatalogItemOverview;
|
|
115
|
-
|
|
116
|
-
export declare const buildResetFields: (stats: LimitStatsDto, formatResetTime: FormatResetTime | undefined) => Pick<UsageLimitProgressRow, "resetLabel" | "resetIsoValue" | "resetAriaLabel">;
|
|
117
|
-
|
|
118
|
-
/** Builds the Responses API endpoint URL for a deployment. */
|
|
119
|
-
export declare const buildResponsesUrl: (baseUrl: string) => string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Builds the Content tab's hierarchical file tree for a skill from
|
|
123
|
-
* `listSkillFiles({ recursive: true })`'s flat listing. Every entry's path is
|
|
124
|
-
* first stripped of the skill's own path prefix and its internal `files`
|
|
125
|
-
* storage directory (see `stripSkillPathPrefix`) — the skill's own root
|
|
126
|
-
* folder and that `files` directory are Core storage implementation details,
|
|
127
|
-
* not authored structure, so neither appears as a wrapping node. An entry
|
|
128
|
-
* that strips to nothing (the skill root, or the bare `files` directory
|
|
129
|
-
* itself) contributes no node. Every folder entry is attached under its own
|
|
130
|
-
* stripped path so an empty grouping folder still appears; every file entry
|
|
131
|
-
* attaches under the folder chain its stripped path implies, synthesizing
|
|
132
|
-
* any intermediate folder the listing never enumerated on its own. An
|
|
133
|
-
* empty-folder marker (`.dial_folder`) only proves its folder exists and
|
|
134
|
-
* never becomes a file node. A file
|
|
135
|
-
* node's `id` is the listing entry's own (unstripped) path, so it round-trips
|
|
136
|
-
* back to `downloadSkillFile` without being re-derived; a folder node's `id`
|
|
137
|
-
* is the stripped path and only keys client-side expand/collapse state.
|
|
138
|
-
*/
|
|
139
|
-
export declare const buildSkillContentTree: (files: SkillMetadataItemDto[], skillPath: string) => CatalogContentTreeNode[];
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Builds the Overview tab data for a skill: a Specification section from its
|
|
143
|
-
* parsed manifest frontmatter, followed by a Details section covering who
|
|
144
|
-
* authored it, when it last changed, and its file inventory. Grouping folders
|
|
145
|
-
* in the file listing are excluded from both the count and the rows. Sizes are
|
|
146
|
-
* not shown — the skill metadata carries no content-length field.
|
|
147
|
-
*
|
|
148
|
-
* `skill` is the authoritative `getSkillMetadata` response when that request
|
|
149
|
-
* fulfilled; the caller falls back to the catalog listing entry only when it
|
|
150
|
-
* rejected (`useSkillItemDetails`'s `onFetchSkillDetails`). Either way, this
|
|
151
|
-
* function never fills a gap in one source from the other — an absent
|
|
152
|
-
* `author` omits the row and an absent `updatedAt` leaves the updated row's
|
|
153
|
-
* value empty, exactly as `skill` carries it.
|
|
154
|
-
*/
|
|
155
|
-
export declare const buildSkillOverview: (skill: SkillMetadataItemDto | undefined, files: SkillMetadataItemDto[], about: SkillAboutDetails | undefined, labels: SkillOverviewLabels) => CatalogItemOverview;
|
|
156
|
-
|
|
157
|
-
/** Builds the MCP endpoint URL for a toolset resource. */
|
|
158
|
-
export declare const buildToolsetMcpUrl: (baseUrl: string, id: string) => string;
|
|
159
|
-
|
|
160
|
-
/** Injected API port for catalog item detail fetching. Mirrors exact server-api wrapper signatures. */
|
|
161
|
-
export declare interface CatalogDetailsApi extends SkillDetailsApi {
|
|
162
|
-
/** Fetches deployment-level details for a model, agent, toolset, or application. */
|
|
163
|
-
getDeploymentDetails(deploymentId: string): Promise<DeploymentDetailsDto>;
|
|
164
|
-
/** Fetches rate-limit data for a deployment. */
|
|
165
|
-
getDeploymentLimits(deploymentId: string): Promise<DeploymentLimitsResponseDto>;
|
|
166
|
-
/** Fetches a personal or shared prompt by its full `prompts/{bucket}/{path}` resource id. */
|
|
167
|
-
getPrompt(id: string): Promise<PromptResponseDto>;
|
|
168
|
-
/** Fetches a public (organisation) prompt by its bucket-relative path. */
|
|
169
|
-
getPublicPrompt(path: string): Promise<PromptResponseDto>;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/** Localized copy `useCatalogEditNavigation` needs for the Create menu and delete errors. */
|
|
173
|
-
export declare interface CatalogEditNavigationLabels {
|
|
174
|
-
createToolset: string;
|
|
175
|
-
createCustomApp: string;
|
|
176
|
-
createSkill: string;
|
|
177
|
-
createSkillWriteInstructions: string;
|
|
178
|
-
createSkillUpload: string;
|
|
179
|
-
createPrompt: string;
|
|
180
|
-
deleteError: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/** A host notification `useCatalogEditNavigation` asks to be shown for a failed delete. */
|
|
184
|
-
export declare interface CatalogEditNavigationNotification {
|
|
185
|
-
message: string;
|
|
186
|
-
requestId?: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Injected editor-route URL builders, already closed over the host's own
|
|
191
|
-
* route paths and query-parameter scheme. The lib knows nothing about either
|
|
192
|
-
* — it only asks for "the URL to edit/create this kind of item".
|
|
193
|
-
*/
|
|
194
|
-
export declare interface CatalogEditNavigationUrls {
|
|
195
|
-
/** URL to edit an existing prompt. */
|
|
196
|
-
buildPromptEditUrl(promptId: string): string;
|
|
197
|
-
/** URL to create a new prompt. */
|
|
198
|
-
buildPromptCreateUrl(): string;
|
|
199
|
-
/** URL to edit an existing skill. */
|
|
200
|
-
buildSkillEditUrl(skillId: string): string;
|
|
201
|
-
/** URL to create a new skill. */
|
|
202
|
-
buildSkillCreateUrl(): string;
|
|
203
|
-
/** URL to edit an existing toolset. */
|
|
204
|
-
buildToolsetEditUrl(toolsetId: string): string;
|
|
205
|
-
/** URL to create a new toolset. */
|
|
206
|
-
buildToolsetCreateUrl(): string;
|
|
207
|
-
/** URL to edit an existing custom (schema-less) app. */
|
|
208
|
-
buildCustomAppEditUrl(appId: string): string;
|
|
209
|
-
/** URL to create a new custom (schema-less) app. */
|
|
210
|
-
buildCustomAppCreateUrl(): string;
|
|
211
|
-
/** URL to edit an existing schema-based app (quick app or any other runner) under the given schema. */
|
|
212
|
-
buildQuickAppEditUrl(schemaId: string, appId: string): string;
|
|
213
|
-
/** URL to create a new schema-based app (quick app or any other runner) under the given schema. */
|
|
214
|
-
buildQuickAppCreateUrl(schemaId: string): string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** Primary action resolved for a deployment (model, agent, toolset, or skill). */
|
|
218
|
-
export declare interface CatalogPrimaryActionDeployment {
|
|
219
|
-
/** Discriminant. */
|
|
220
|
-
kind: CatalogPrimaryActionType.Deployment;
|
|
221
|
-
/** Deployment entity id. */
|
|
222
|
-
id: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** Primary action resolved for a prompt. */
|
|
226
|
-
export declare interface CatalogPrimaryActionPrompt {
|
|
227
|
-
/** Discriminant. */
|
|
228
|
-
kind: CatalogPrimaryActionType.Prompt;
|
|
229
|
-
/** Prompt entity id. */
|
|
230
|
-
id: string;
|
|
231
|
-
/** Display name of the prompt. */
|
|
232
|
-
name: string;
|
|
233
|
-
/** Short description of the prompt. */
|
|
234
|
-
description: string;
|
|
235
|
-
/** Resolved prompt body (seeded from details or fetched). */
|
|
236
|
-
content: string;
|
|
237
|
-
/** Whether the prompt body contains at least one `{{parameter}}` placeholder. */
|
|
238
|
-
hasParameters: boolean;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/** Discriminated union of catalog primary-action results. */
|
|
242
|
-
export declare type CatalogPrimaryActionResult = CatalogPrimaryActionDeployment | CatalogPrimaryActionPrompt;
|
|
243
|
-
|
|
244
|
-
/** Discriminant for primary-action result variants. */
|
|
245
|
-
export declare enum CatalogPrimaryActionType {
|
|
246
|
-
Deployment = "deployment",
|
|
247
|
-
Prompt = "prompt"
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* The publish API's entity-type path param values. Re-declared as a plain
|
|
252
|
-
* string-literal union rather than importing the generated
|
|
253
|
-
* `PublishCatalogEntityEntityTypeEnum`, so this module has no dependency on
|
|
254
|
-
* the app's own `server-api` layer.
|
|
255
|
-
*/
|
|
256
|
-
export declare type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill';
|
|
257
|
-
|
|
258
|
-
/** Labels and formatter callbacks for the conversation-input limits mapping utility. */
|
|
259
|
-
export declare interface ConversationInputLimitsLabels {
|
|
260
|
-
/** Heading of the group listing the selected deployment's token limits. */
|
|
261
|
-
tokenGroup: string;
|
|
262
|
-
/** Heading of the group listing the caller's cost budget and spend against it. */
|
|
263
|
-
costGroup: string;
|
|
264
|
-
/** Label for the current-UTC-day row, used by both groups. */
|
|
265
|
-
periodDay: string;
|
|
266
|
-
/** Label for the current-UTC-week row, used by both groups. */
|
|
267
|
-
periodWeek: string;
|
|
268
|
-
/** Label for the current-UTC-month row, used by both groups. */
|
|
269
|
-
periodMonth: string;
|
|
270
|
-
/** Formats the combined used/total display value for a capped row. */
|
|
271
|
-
formatValueLabel: (used: string, total: string) => string;
|
|
272
|
-
/** Formats the ARIA label for a capped progress row. */
|
|
273
|
-
formatProgressAriaLabel: (params: {
|
|
274
|
-
label: string;
|
|
275
|
-
used: string;
|
|
276
|
-
total: string;
|
|
277
|
-
}) => string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Wraps the generated `PublishApi` in the positional-argument surface the
|
|
282
|
-
* catalog and conversation publish flows call, so each host app re-exports one
|
|
283
|
-
* client instead of re-declaring the same four wrappers. Mirrors
|
|
284
|
-
* {@link createFilesApiClient}.
|
|
285
|
-
*/
|
|
286
|
-
export declare const createPublishApiClient: (publishApi: PublishApi) => PublishApiClient;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Inverse of `encodeDeploymentId` — decodes each `/`-separated segment back
|
|
290
|
-
* to its raw, human-readable form. A segment that isn't valid
|
|
291
|
-
* percent-encoding is passed through unchanged rather than throwing, since
|
|
292
|
-
* this decodes externally-sourced ids (the settings iframe's postMessage
|
|
293
|
-
* protocol).
|
|
294
|
-
*/
|
|
295
|
-
export declare const decodeDeploymentId: (id: string) => string;
|
|
296
|
-
|
|
297
|
-
/** The English Overview labels `mapEntityDetailsToCatalogDetails` uses when a host passes none. */
|
|
298
|
-
export declare const DEFAULT_ENTITY_DETAILS_LABELS: EntityDetailsLabels;
|
|
299
|
-
|
|
300
|
-
/** Translated folder-path labels for the Personal/Shared/Public deployment groupings. */
|
|
301
|
-
export declare interface DeploymentFolderLabels {
|
|
302
|
-
personal: string;
|
|
303
|
-
shared: string;
|
|
304
|
-
public: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/** Which generation APIs a deployment reports supporting. */
|
|
308
|
-
export declare interface DeploymentGenerationApiSupport {
|
|
309
|
-
hasChatCompletion?: boolean;
|
|
310
|
-
hasResponsesApi?: boolean;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/** Labels and formatter callbacks for the deployment-limits mapping utility. */
|
|
314
|
-
export declare interface DeploymentLimitsLabels {
|
|
315
|
-
/** Heading of the group every token stat row is listed under. */
|
|
316
|
-
tokenGroup: string;
|
|
317
|
-
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
318
|
-
tokensPerDay: string;
|
|
319
|
-
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
320
|
-
tokensPerWeek: string;
|
|
321
|
-
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
322
|
-
tokensPerMonth: string;
|
|
323
|
-
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
324
|
-
followsCostLimit: string;
|
|
325
|
-
/** Formats the combined used/total display value for a capped row. */
|
|
326
|
-
formatValueLabel: (used: string, total: string) => string;
|
|
327
|
-
/** Formats the ARIA label for a capped progress row. */
|
|
328
|
-
formatProgressAriaLabel: (params: {
|
|
329
|
-
label: string;
|
|
330
|
-
used: string;
|
|
331
|
-
total: string;
|
|
332
|
-
}) => string;
|
|
333
|
-
/** Formats the ARIA label for an unlimited row, which has no total to announce. */
|
|
334
|
-
formatFollowsCostLimitAriaLabel: (params: {
|
|
335
|
-
label: string;
|
|
336
|
-
used: string;
|
|
337
|
-
}) => string;
|
|
338
|
-
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
339
|
-
formatResetTime?: FormatResetTime;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Returns the subset of `tabOrder` entries whose entity type is present in
|
|
344
|
-
* `items`, preserving tab order.
|
|
345
|
-
*/
|
|
346
|
-
export declare const deriveAvailableTabIds: <T extends CatalogEntityType>(items: readonly CatalogItem[], tabOrder: readonly T[]) => T[];
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Returns items marked as a user favorite that are not hidden, in original order.
|
|
350
|
-
*/
|
|
351
|
-
export declare const deriveFavoriteItems: (items: readonly CatalogItem[]) => CatalogItem[];
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Percent-encodes each `/`-separated segment of a deployment/application id
|
|
355
|
-
* so it satisfies the backend's `DEPLOYMENT_ID_PATTERN` (spaces and other
|
|
356
|
-
* reserved characters must be percent-encoded; `/` stays a literal path
|
|
357
|
-
* separator). Applications created via `POST /api/v1/applications` return an
|
|
358
|
-
* id built from the raw, human-readable name (e.g. `applications/<bucket>/My
|
|
359
|
-
* App__1.0`), which is only ever consumed by the settings iframe's postMessage
|
|
360
|
-
* protocol elsewhere — anywhere that id is used as a chat `deploymentId`, it
|
|
361
|
-
* must be encoded first.
|
|
362
|
-
*/
|
|
363
|
-
export declare const encodeDeploymentId: (id: string) => string;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Overview section titles and spec labels rendered by
|
|
367
|
-
* `mapEntityDetailsToCatalogDetails`. Hosts pass translated strings; every
|
|
368
|
-
* field defaults to the English text in {@link DEFAULT_ENTITY_DETAILS_LABELS}.
|
|
369
|
-
*/
|
|
370
|
-
export declare interface EntityDetailsLabels {
|
|
371
|
-
/** Default: `'Capabilities'`. */
|
|
372
|
-
capabilitiesTitle: string;
|
|
373
|
-
/** Default: `'Specification'`. */
|
|
374
|
-
specificationTitle: string;
|
|
375
|
-
/** Default: `'Configuration'`. */
|
|
376
|
-
configurationTitle: string;
|
|
377
|
-
/** Default: `'Tools'`. */
|
|
378
|
-
tools: string;
|
|
379
|
-
/** Default: `'Parallel tool calls'`. */
|
|
380
|
-
parallelToolCalls: string;
|
|
381
|
-
/** Default: `'Reasoning efforts'`. */
|
|
382
|
-
reasoningEfforts: string;
|
|
383
|
-
/** Default: `'Skills'`. */
|
|
384
|
-
skills: string;
|
|
385
|
-
/** Default: `'Provider'`. */
|
|
386
|
-
provider: string;
|
|
387
|
-
/** Default: `'Vendor'`. */
|
|
388
|
-
vendor: string;
|
|
389
|
-
/** Default: `'License'`. */
|
|
390
|
-
license: string;
|
|
391
|
-
/** Default: `'Knowledge cutoff date'`. */
|
|
392
|
-
knowledgeCutoffDate: string;
|
|
393
|
-
/** Default: `'Parameters'`. */
|
|
394
|
-
parameters: string;
|
|
395
|
-
/** Default: `'Hosted by'`. */
|
|
396
|
-
hostedBy: string;
|
|
397
|
-
/** Default: `'Release date'`. */
|
|
398
|
-
releaseDate: string;
|
|
399
|
-
/** Default: `'Context window'`. */
|
|
400
|
-
contextWindow: string;
|
|
401
|
-
/** Default: `'Max output tokens'`. */
|
|
402
|
-
maxOutputTokens: string;
|
|
403
|
-
/** Default: `'Input modalities'`. */
|
|
404
|
-
inputModalities: string;
|
|
405
|
-
/** Default: `'Input attachments'`. */
|
|
406
|
-
inputAttachments: string;
|
|
407
|
-
/** Default: `'Routes'`. */
|
|
408
|
-
routes: string;
|
|
409
|
-
/** Default: `'Configuration schema'`. */
|
|
410
|
-
configurationSchema: string;
|
|
411
|
-
/** Default: `'Authentication'`. */
|
|
412
|
-
authentication: string;
|
|
413
|
-
/** Default: `'Authorization endpoint'`. */
|
|
414
|
-
authorizationEndpoint: string;
|
|
415
|
-
/** Default: `'Token endpoint'`. */
|
|
416
|
-
tokenEndpoint: string;
|
|
417
|
-
/** Default: `'OAuth scopes'`. */
|
|
418
|
-
oauthScopes: string;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/** Discriminated-union entity details for a deployment, keyed by catalog entity type. */
|
|
422
|
-
export declare type EntitySpecificDetails = {
|
|
423
|
-
type: 'MODEL';
|
|
424
|
-
data: ModelEntityDetails;
|
|
425
|
-
} | {
|
|
426
|
-
type: 'AGENT';
|
|
427
|
-
data: AgentEntityDetails;
|
|
428
|
-
} | {
|
|
429
|
-
type: 'TOOLSET';
|
|
430
|
-
data: ToolsetEntityDetails;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
/** Entity kind used to route a favorite toggle to the correct backend section. */
|
|
434
|
-
export declare enum FavoriteEntityType {
|
|
435
|
-
Deployment = "deployment",
|
|
436
|
-
Toolset = "toolset",
|
|
437
|
-
Prompt = "prompt",
|
|
438
|
-
Skill = "skill"
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/** Raw favorites payload returned by `loadFavorites`. */
|
|
442
|
-
export declare interface FavoritesPayload {
|
|
443
|
-
deployments: string[];
|
|
444
|
-
toolsets: string[];
|
|
445
|
-
prompts: string[];
|
|
446
|
-
skills: string[];
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Filters catalog items to those whose type is in `visibleTypes`.
|
|
451
|
-
* Call only when selector mode is active; otherwise pass through the original array.
|
|
452
|
-
*/
|
|
453
|
-
export declare const filterCatalogItemsBySelector: (items: readonly CatalogItem[], visibleTypes: ReadonlySet<CatalogEntityType>) => CatalogItem[];
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Filters out items owned by the current user when `hideOwned` is true.
|
|
457
|
-
* Always returns a new array so callers may safely assign to mutable collections.
|
|
458
|
-
*/
|
|
459
|
-
export declare const filterHiddenOwnedItems: (items: readonly CatalogItem[], hideOwned: boolean) => CatalogItem[];
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Finds a deployment matching `idOrReference` by `id` first, falling back to
|
|
463
|
-
* `reference` when no `id` matches. DIAL Core sometimes addresses a
|
|
464
|
-
* deployment by `reference` in places that store a deployment id (e.g. a
|
|
465
|
-
* conversation's or message's `model.id`), so lookups against the fetched
|
|
466
|
-
* deployments list must accept either value.
|
|
467
|
-
*/
|
|
468
|
-
export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
|
|
469
|
-
|
|
470
|
-
/** Formats a raw `resetsAt` into display strings, or returns `undefined` when it cannot be formatted. */
|
|
471
|
-
declare type FormatResetTime = (resetsAt: string | undefined) => ResetTimeDisplay | undefined;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* The publish folder a public catalog entity id sits in: the segments between
|
|
475
|
-
* the `public` bucket and the entity name, decoded to the plain text the
|
|
476
|
-
* publish API takes. Empty for a copy published at the public root, and for an
|
|
477
|
-
* id that is not public at all.
|
|
478
|
-
*/
|
|
479
|
-
export declare const getPublicCatalogEntityFolderPath: (entityId: string) => string[];
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Whether a prompt item came from the organisation namespace, which the public
|
|
483
|
-
* prompt endpoints serve. Personal prompts resolve through the caller's own
|
|
484
|
-
* bucket, while shared prompts carry their owner's bucket in the resource URL.
|
|
485
|
-
*/
|
|
486
|
-
export declare const isOrganisationPromptItem: (item: CatalogItem) => boolean;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Whether a catalog entity id addresses the shared `public` bucket
|
|
490
|
-
* (`{resourceType}/public/{folder…}/{name}`), i.e. the id names a published
|
|
491
|
-
* copy rather than the author's own source item.
|
|
492
|
-
*
|
|
493
|
-
* The bucket is always the second segment, so a personal item that happens to
|
|
494
|
-
* own a folder called `public` (`applications/{bucket}/public/{name}`) is not
|
|
495
|
-
* matched. An id with no bucket segment at all — a plain model id such as
|
|
496
|
-
* `gpt-4` — is not public.
|
|
497
|
-
*/
|
|
498
|
-
export declare const isPublicCatalogEntityId: (entityId: string) => boolean;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Converts the backend `DeploymentDetailsDto` (model/application/toolset,
|
|
502
|
-
* fetched by id) into the strongly-typed `EntitySpecificDetails` domain model
|
|
503
|
-
* consumed by `mapEntityDetailsToCatalogDetails`.
|
|
504
|
-
*/
|
|
505
|
-
export declare const mapDeploymentDetailsDtoToEntityDetails: (dto: DeploymentDetailsDto) => EntitySpecificDetails;
|
|
506
|
-
|
|
507
|
-
/** Maps a deployment limits DTO to display-ready catalog limits, or `undefined` when no qualifying stats exist. */
|
|
508
|
-
export declare const mapDeploymentLimitsDtoToCatalogLimits: (dto: DeploymentLimitsResponseDto | undefined, labels: DeploymentLimitsLabels) => CatalogItemLimits | undefined;
|
|
509
|
-
|
|
510
|
-
/** Maps a deployment's day, week, and month token limits and the caller's cost budget to display-ready rows, or `undefined` when none qualify. */
|
|
511
|
-
export declare const mapDeploymentLimitsToInput: (dto: DeploymentLimitsResponseDto | undefined, labels: ConversationInputLimitsLabels, formatResetTime?: FormatResetTime) => CatalogItemLimits | undefined;
|
|
512
|
-
|
|
513
|
-
/** Maps a deployment listing row into the catalog UI's `CatalogItem` shape. */
|
|
514
|
-
export declare const mapDeploymentToCatalogItem: (deployment: DeploymentItemDto, { favoriteIds, entityDetails, folderLabels, editableSchemaIds, isCustomAppsEditable, activeLocale, primaryLocale, resolveIconUrl, }: MapDeploymentToCatalogItemOptions) => CatalogItem;
|
|
515
|
-
|
|
516
|
-
/** Parameters for {@link mapDeploymentToCatalogItem}. */
|
|
517
|
-
export declare interface MapDeploymentToCatalogItemOptions {
|
|
518
|
-
favoriteIds?: ReadonlySet<string>;
|
|
519
|
-
entityDetails?: EntitySpecificDetails;
|
|
520
|
-
folderLabels: DeploymentFolderLabels;
|
|
521
|
-
editableSchemaIds?: string[];
|
|
522
|
-
isCustomAppsEditable?: boolean;
|
|
523
|
-
/** The viewer's active display locale, used to resolve `displayName`/`description`. */
|
|
524
|
-
activeLocale: string;
|
|
525
|
-
/** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
|
|
526
|
-
primaryLocale: string;
|
|
527
|
-
/** Resolves a deployment's raw `iconUrl` to a displayable URL. Host-owned. */
|
|
528
|
-
resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Maps a toolset's auth settings (from a deployment listing row) into the
|
|
533
|
-
* lib's credential-status shape, including both `USER` and `GLOBAL` sign-in
|
|
534
|
-
* status, whether the toolset is public, and whether the current user (if an
|
|
535
|
-
* admin) may manage both levels. Named apart from
|
|
536
|
-
* `map-entity-details-to-catalog.ts`'s `mapToolsetCredentials` (a different
|
|
537
|
-
* input shape, `ToolsetEntityDetails`) to avoid an ambiguous `export *`
|
|
538
|
-
* collision between the two modules.
|
|
539
|
-
*
|
|
540
|
-
* For a non-admin on a public toolset that already has `GLOBAL` credentials
|
|
541
|
-
* signed in, the lib's own `LoginWithMyCreds` CTA fires unconditionally off
|
|
542
|
-
* `isPublic` alone, regardless of whether org-wide credentials already cover
|
|
543
|
-
* everyone (`node_modules/@epam/ai-dial-catalog/dist/index.js`, the `ct`
|
|
544
|
-
* helper). Global auth is sufficient to use the toolset — a personal login
|
|
545
|
-
* is optional, not required — so this suppresses that CTA by reporting
|
|
546
|
-
* `authenticationType: None`, which is the lib's own documented signal to
|
|
547
|
-
* hide the credentials control entirely.
|
|
548
|
-
*/
|
|
549
|
-
export declare const mapDeploymentToolsetCredentials: (toolsetId: string, authSettings: DialToolsetAuthSettingsDto | undefined, isAdmin: boolean) => CatalogItemCredentials | undefined;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Converts a strongly-typed entity domain model into the lib's `CatalogItemTabData` shape.
|
|
553
|
-
* Section titles and spec labels come from `labels`, merged over
|
|
554
|
-
* {@link DEFAULT_ENTITY_DETAILS_LABELS} — the lib cannot import a host's
|
|
555
|
-
* translation keys, so the host passes its translated strings in.
|
|
556
|
-
*/
|
|
557
|
-
export declare const mapEntityDetailsToCatalogDetails: (details: EntitySpecificDetails, labels?: Partial<EntityDetailsLabels>) => CatalogItemTabData;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Maps a prompt DTO into a catalog item.
|
|
561
|
-
*
|
|
562
|
-
* `prompt.id` is already the full `prompts/{bucket}/{path}` resource path —
|
|
563
|
-
* the owner bucket for a shared-with-me prompt, the caller's own bucket
|
|
564
|
-
* otherwise — the same shape every other resource type's `CatalogItem.id`
|
|
565
|
-
* carries, so no per-source qualification is needed here.
|
|
566
|
-
*/
|
|
567
|
-
export declare const mapPromptToCatalogItem: (prompt: PromptResponseDto, { folderLabels, overviewLabels, source, favoriteIds, }: MapPromptToCatalogItemOptions) => CatalogItem;
|
|
568
|
-
|
|
569
|
-
/** Parameters for {@link mapPromptToCatalogItem}. */
|
|
570
|
-
export declare interface MapPromptToCatalogItemOptions {
|
|
571
|
-
/** Personal/Shared/Public folder labels; i18n stays at the app edge. */
|
|
572
|
-
folderLabels: DeploymentFolderLabels;
|
|
573
|
-
/** Author/updated/section-title labels for the Overview tab; i18n stays at the app edge. */
|
|
574
|
-
overviewLabels: PromptOverviewLabels;
|
|
575
|
-
/** Namespace the prompt came from; drives ownership flags and the folder prefix. */
|
|
576
|
-
source: PromptSource;
|
|
577
|
-
/** Favorited resource ids from the user config, keyed by prompt path. */
|
|
578
|
-
favoriteIds: ReadonlySet<string>;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
|
|
582
|
-
export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
|
|
583
|
-
|
|
584
|
-
/** Maps a publish-history API response entry to the catalog lib's `PublishHistoryEntry` model. */
|
|
585
|
-
export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Maps a skill's DIAL Core metadata into a catalog item. The full
|
|
589
|
-
* `skills/{bucket}/{path}` resource URL is used as `CatalogItem.id` rather
|
|
590
|
-
* than the bucket-relative path: the catalog lists two buckets, and the same
|
|
591
|
-
* relative path can exist in both.
|
|
592
|
-
*/
|
|
593
|
-
export declare const mapSkillToCatalogItem: (skill: SkillMetadataItemDto, { folderLabels, source, favoriteIds }: MapSkillToCatalogItemOptions) => CatalogItem;
|
|
594
|
-
|
|
595
|
-
/** Parameters for {@link mapSkillToCatalogItem}. */
|
|
596
|
-
export declare interface MapSkillToCatalogItemOptions {
|
|
597
|
-
/** Personal/Shared/Public folder labels; i18n stays at the app edge. */
|
|
598
|
-
folderLabels: DeploymentFolderLabels;
|
|
599
|
-
/** Namespace the skill came from; drives ownership flags and the folder prefix. */
|
|
600
|
-
source: SkillSource;
|
|
601
|
-
/** Favorited resource ids from the user config, keyed by skill resource URL. */
|
|
602
|
-
favoriteIds: ReadonlySet<string>;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Maps a toolset's specification into the lib's credential-status shape,
|
|
607
|
-
* for refreshing the details panel after login/logout. Includes both
|
|
608
|
-
* `USER` and `GLOBAL` status, whether the toolset is public, and whether
|
|
609
|
-
* the current user (if an admin) may manage both levels.
|
|
610
|
-
*/
|
|
611
|
-
export declare const mapToolsetCredentials: (toolsetId: string, data: ToolsetEntityDetails, isAdmin: boolean) => CatalogItemCredentials | undefined;
|
|
612
|
-
|
|
613
|
-
/** Maps a toolset listing row into the catalog UI's `CatalogItem` shape. */
|
|
614
|
-
export declare const mapToolsetToCatalogItem: (toolset: DialToolsetDto, { favoriteIds, isAdmin, folderLabels, activeLocale, primaryLocale, resolveIconUrl, }: MapToolsetToCatalogItemOptions) => CatalogItem;
|
|
615
|
-
|
|
616
|
-
/** Parameters for {@link mapToolsetToCatalogItem}. */
|
|
617
|
-
export declare interface MapToolsetToCatalogItemOptions {
|
|
618
|
-
favoriteIds?: ReadonlySet<string>;
|
|
619
|
-
isAdmin?: boolean;
|
|
620
|
-
folderLabels?: DeploymentFolderLabels;
|
|
621
|
-
/** The viewer's active display locale, used to resolve `displayName`/`description`. */
|
|
622
|
-
activeLocale: string;
|
|
623
|
-
/** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
|
|
624
|
-
primaryLocale: string;
|
|
625
|
-
/** Resolves a toolset's raw `iconUrl` to a displayable URL. Host-owned. */
|
|
626
|
-
resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/** Resource families that DIAL Core exposes an MCP endpoint for. */
|
|
630
|
-
export declare enum McpResourceKind {
|
|
631
|
-
/** Toolsets, served under `/v1/toolset/{id}/mcp`. */
|
|
632
|
-
Toolset = "toolset",
|
|
633
|
-
/** Application deployments, served under `/v1/deployments/{id}/mcp`. */
|
|
634
|
-
Application = "application"
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
/** API-resource identifiers for a model deployment. */
|
|
638
|
-
export declare interface ModelApiDetails {
|
|
639
|
-
modelId?: string;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/** Feature-support flags for a model deployment. */
|
|
643
|
-
export declare interface ModelCapabilities {
|
|
644
|
-
hasTools?: boolean;
|
|
645
|
-
hasMcp?: boolean;
|
|
646
|
-
hasCaching?: boolean;
|
|
647
|
-
hasParallelToolCalls?: boolean;
|
|
648
|
-
hasUrlAttachments?: boolean;
|
|
649
|
-
hasFolderAttachments?: boolean;
|
|
650
|
-
hasSeed?: boolean;
|
|
651
|
-
hasSystemPrompt?: boolean;
|
|
652
|
-
hasResume?: boolean;
|
|
653
|
-
hasChatCompletion?: boolean;
|
|
654
|
-
hasResponsesApi?: boolean;
|
|
655
|
-
hasSkills?: boolean;
|
|
656
|
-
reasoningEfforts?: string[];
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/** Full details payload for a model-type deployment. */
|
|
660
|
-
export declare interface ModelEntityDetails {
|
|
661
|
-
capabilities?: ModelCapabilities;
|
|
662
|
-
specification?: ModelSpecification;
|
|
663
|
-
pricing?: ModelPricing;
|
|
664
|
-
api?: ModelApiDetails;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
/** One priced unit for a model deployment. */
|
|
668
|
-
export declare interface ModelPriceRow {
|
|
669
|
-
/** DIAL Core pricing key, e.g. `prompt`, `completion`, `cache_read`. */
|
|
670
|
-
key: string;
|
|
671
|
-
/** Per-unit price formatted for display, e.g. `$3/M tokens`. */
|
|
672
|
-
price: string;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/** A model deployment's full price list. */
|
|
676
|
-
export declare interface ModelPricing {
|
|
677
|
-
/** Every price DIAL Core reports for the deployment, `unit` excluded. */
|
|
678
|
-
prices?: ModelPriceRow[];
|
|
679
|
-
/** DIAL Core billing unit the prices are quoted in, e.g. `token` or `char_without_whitespace`; absent means tokens. */
|
|
680
|
-
unit?: string;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
/** Catalog-facing specification fields for a model deployment. */
|
|
684
|
-
export declare interface ModelSpecification {
|
|
685
|
-
provider?: string;
|
|
686
|
-
vendor?: string;
|
|
687
|
-
license?: string;
|
|
688
|
-
knowledgeCutoffDate?: string;
|
|
689
|
-
parameters?: string;
|
|
690
|
-
contextWindowTokens?: number;
|
|
691
|
-
maxOutputTokens?: number;
|
|
692
|
-
inputTypes?: string[];
|
|
693
|
-
hostedBy?: string;
|
|
694
|
-
createdAt?: number;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/**
|
|
698
|
-
* Encodes a deployment/application id to its single-encoded form regardless
|
|
699
|
-
* of whether the value it received was already percent-encoded or the raw,
|
|
700
|
-
* human-readable form — decoding first then re-encoding once is idempotent
|
|
701
|
-
* either way, since `decodeDeploymentId` on a raw (unencoded) id is a no-op.
|
|
702
|
-
* Use this instead of `encodeDeploymentId` at a boundary that cannot
|
|
703
|
-
* guarantee which form it receives, such as a `postMessage` payload from the
|
|
704
|
-
* settings iframe: calling `encodeDeploymentId` directly on a value the
|
|
705
|
-
* sender already encoded escapes the existing `%` characters a second time
|
|
706
|
-
* (`%20` becomes `%2520`), which the backend only ever undoes once and so
|
|
707
|
-
* 404s on.
|
|
708
|
-
*/
|
|
709
|
-
export declare const normalizeDeploymentId: (id: string) => string;
|
|
710
|
-
|
|
711
|
-
/** A skill resource URL split into the bucket and the path within it. */
|
|
712
|
-
export declare interface ParsedSkillResourceUrl {
|
|
713
|
-
/** DIAL Core bucket name. */
|
|
714
|
-
bucket: string;
|
|
715
|
-
/** Path to the skill within that bucket. */
|
|
716
|
-
path: string;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Splits a `skills/{bucket}/{path}` resource URL into its parts, mirroring the
|
|
721
|
-
* backend's parser. Returns `null` for a different prefix, an empty bucket, or
|
|
722
|
-
* an empty path, so callers can treat "not a skill URL" as one case.
|
|
723
|
-
*/
|
|
724
|
-
export declare const parseSkillResourceUrl: (url: string) => ParsedSkillResourceUrl | null;
|
|
725
|
-
|
|
726
|
-
/** Translated labels for the Overview tab's author/updated rows and section title. */
|
|
727
|
-
export declare interface PromptOverviewLabels {
|
|
728
|
-
authorLabel: string;
|
|
729
|
-
updatedLabel: string;
|
|
730
|
-
sectionTitle: string;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/** Which prompt namespace a catalog prompt item came from. */
|
|
734
|
-
declare enum PromptSource {
|
|
735
|
-
/** The caller's own prompt, editable and deletable by them. */
|
|
736
|
-
Personal = "personal",
|
|
737
|
-
/** Shared with the caller by another user; permissions determine editability. */
|
|
738
|
-
SharedWithMe = "sharedWithMe",
|
|
739
|
-
/** Organisation-wide prompt; read-only for every user. */
|
|
740
|
-
Public = "public"
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* DIAL Core bucket holding organisation-wide skills.
|
|
745
|
-
*
|
|
746
|
-
* @deprecated Use `PUBLIC_BUCKET` from `@epam/ai-dial-chat-shared`.
|
|
747
|
-
*/
|
|
748
|
-
export declare const PUBLIC_SKILL_BUCKET = "public";
|
|
749
|
-
|
|
750
|
-
/** The DIAL publish API surface produced by {@link createPublishApiClient}. */
|
|
751
|
-
export declare interface PublishApiClient {
|
|
752
|
-
/** Submits a publication request for one catalog entity into `folderPath`. */
|
|
753
|
-
publishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: PublishCatalogEntityDto) => Promise<PublishResultDto>;
|
|
754
|
-
/**
|
|
755
|
-
* Submits a removal request for one already-published folder of a catalog
|
|
756
|
-
* entity. The removal takes effect only after an administrator approves it,
|
|
757
|
-
* so callers must report a pending request rather than a completed removal.
|
|
758
|
-
*/
|
|
759
|
-
unpublishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: UnpublishCatalogEntityDto) => Promise<UnpublishResultDto>;
|
|
760
|
-
/** Reads the folders one catalog entity is already published to. */
|
|
761
|
-
getCatalogPublishHistory: (entityType: CatalogPublishEntityType, entityId: string) => Promise<PublishHistoryEntryDto[]>;
|
|
762
|
-
/** Reads a destination folder's already-configured access rules. */
|
|
763
|
-
getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Reads a skill file response as raw bytes, or `null` when the body is
|
|
768
|
-
* larger than `SKILL_MANIFEST_MAX_BYTES`. The declared `content-length` is
|
|
769
|
-
* checked first so an oversized body is never read into memory at all; the
|
|
770
|
-
* actual byte length is checked again after reading, for a response with no
|
|
771
|
-
* (or an inaccurate) declared length. Applies identically to every skill
|
|
772
|
-
* file, text or binary — not only `SKILL.md`.
|
|
773
|
-
*/
|
|
774
|
-
export declare const readSkillFileBytes: (response: Response) => Promise<Uint8Array | null>;
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Reads a skill file response as raw bytes with no size ceiling, for the
|
|
778
|
-
* supporting-file **preview** path.
|
|
779
|
-
*
|
|
780
|
-
* Previews are user-initiated, one file at a time, and a realistic binary
|
|
781
|
-
* (a PDF, an image) routinely exceeds `SKILL_MANIFEST_MAX_BYTES` — a cap
|
|
782
|
-
* sized for `SKILL.md` frontmatter, not for binaries — so applying that cap
|
|
783
|
-
* here rejected virtually every real PDF before it was ever decoded. This
|
|
784
|
-
* reader therefore never returns `null`: file size is not a failure class on
|
|
785
|
-
* the preview path.
|
|
786
|
-
*
|
|
787
|
-
* `readSkillFileBytes` and `readSkillManifest` keep their
|
|
788
|
-
* `SKILL_MANIFEST_MAX_BYTES` ceiling, because they feed the manifest parse
|
|
789
|
-
* and the textual Content-tab read, where an oversized body must never be
|
|
790
|
-
* decoded into a string.
|
|
791
|
-
*/
|
|
792
|
-
export declare const readSkillFilePreviewBytes: (response: Response) => Promise<Uint8Array>;
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Reads a skill manifest response as text, or `null` when the body is larger
|
|
796
|
-
* than `SKILL_MANIFEST_MAX_BYTES`. The size is checked before decoding, so an
|
|
797
|
-
* oversized manifest is never turned into a string.
|
|
798
|
-
*/
|
|
799
|
-
export declare const readSkillManifest: (response: Response) => Promise<string | null>;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Returns the intersection of `persistedTopics` with topics that appear in
|
|
803
|
-
* `items`. Returns a new Set and never mutates either input.
|
|
804
|
-
*/
|
|
805
|
-
export declare const reconcileFilterTopics: (persistedTopics: ReadonlySet<string>, items: readonly CatalogItem[]) => Set<string>;
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* One reset time, already parsed and formatted by the host. Declared
|
|
809
|
-
* structurally here so this library never imports an application type; the
|
|
810
|
-
* host passes a value that satisfies this shape (e.g. `apps/chat`'s own
|
|
811
|
-
* `ResetTimeDisplay`).
|
|
812
|
-
*/
|
|
813
|
-
declare interface ResetTimeDisplay {
|
|
814
|
-
/** Exclusive end of the period as an epoch ms value, for the host's boundary scheduling. */
|
|
815
|
-
resetsAtMs: number;
|
|
816
|
-
/** Machine-readable instant for a `<time dateTime>` attribute. */
|
|
817
|
-
isoValue: string;
|
|
818
|
-
/** Visible reset line. */
|
|
819
|
-
label: string;
|
|
820
|
-
/** Accessible expansion of the reset line. */
|
|
821
|
-
ariaLabel: string;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* Resolves the primary action for a catalog item.
|
|
826
|
-
*
|
|
827
|
-
* For prompts: prefers already-seeded content from `item.details`; otherwise
|
|
828
|
-
* calls `fetchPrompt` once to retrieve the body. Sets `hasParameters` based on
|
|
829
|
-
* whether the content contains prompt-parameter placeholders.
|
|
830
|
-
*
|
|
831
|
-
* For all other entity types: returns a deployment result with the item id.
|
|
832
|
-
*
|
|
833
|
-
* The function does not navigate, select a deployment, show notifications, or
|
|
834
|
-
* import route constants — those remain the caller's responsibility.
|
|
835
|
-
*
|
|
836
|
-
* @throws When `fetchPrompt` rejects (propagated to the caller without wrapping).
|
|
837
|
-
*/
|
|
838
|
-
export declare const resolveCatalogPrimaryAction: (item: CatalogItem, fetchPrompt: (item: CatalogItem) => Promise<PromptResponseDto>) => Promise<CatalogPrimaryActionResult>;
|
|
839
|
-
|
|
840
|
-
/** Resolves a deployment's display folder, including organization applications without a folder path. */
|
|
841
|
-
export declare const resolveDeploymentFolder: (deployment: Pick<DeploymentItemDto, "isMy" | "sharedWithMe" | "applicationFolder"> & Partial<Pick<DeploymentItemDto, "type">>, labels: DeploymentFolderLabels) => string[];
|
|
842
|
-
|
|
843
|
-
/** Returns the MCP resource kind a catalog item's Connect endpoint belongs to, or `null` when the item exposes no MCP endpoint. */
|
|
844
|
-
export declare const resolveMcpResourceKind: (type: CatalogEntityType, supportsMcp?: boolean) => McpResourceKind | null;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* Converts an opaque file-listing id into the path expected by the single-file
|
|
848
|
-
* download endpoint. Core may prefix listing paths with the skill path and its
|
|
849
|
-
* internal `files` directory, while the endpoint accepts a path relative to
|
|
850
|
-
* that directory. File-relative ids are returned unchanged.
|
|
851
|
-
*/
|
|
852
|
-
export declare const resolveSkillFileDownloadPath: (fileId: string, skillPath: string) => string | null;
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* Resolves the manifest file's opaque listing id across DIAL Core versions.
|
|
856
|
-
* Some return file-relative paths (`SKILL.md`), while others prefix the
|
|
857
|
-
* skill's path and its internal `files` directory. The returned id is kept
|
|
858
|
-
* verbatim so it matches the corresponding tree node exactly.
|
|
859
|
-
*/
|
|
860
|
-
export declare const resolveSkillManifestFileId: (files: SkillMetadataItemDto[], skillPath: string) => string;
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* Upper bound on `nextToken` follow-ups per listing, so a pathological bucket
|
|
864
|
-
* cannot spin the client forever.
|
|
865
|
-
*/
|
|
866
|
-
export declare const SKILL_LISTING_MAX_PAGES = 10;
|
|
867
|
-
|
|
868
|
-
/** Items requested per skill-listing page. */
|
|
869
|
-
export declare const SKILL_LISTING_PAGE_SIZE = 1000;
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* Largest manifest the details panel will decode. A `SKILL.md` past this is
|
|
873
|
-
* treated as unreadable rather than rendered.
|
|
874
|
-
*/
|
|
875
|
-
export declare const SKILL_MANIFEST_MAX_BYTES: number;
|
|
876
|
-
|
|
877
|
-
/** Structured fields lifted from a skill manifest's frontmatter. */
|
|
878
|
-
declare interface SkillAboutDetails {
|
|
879
|
-
whenToUse?: string;
|
|
880
|
-
allowedTools?: string[];
|
|
881
|
-
bundledResources?: string[];
|
|
882
|
-
skillPrompt?: string;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
/** Injected API port for skill detail fetching. Mirrors exact server-api wrapper signatures. */
|
|
886
|
-
export declare interface SkillDetailsApi {
|
|
887
|
-
/** Downloads a raw skill file, returning the raw fetch `Response`. */
|
|
888
|
-
downloadSkillFile(bucket: string, path: string, filePath: string, signal?: AbortSignal): Promise<Response>;
|
|
889
|
-
/** Lists files inside a skill package. */
|
|
890
|
-
listSkillFiles(params: {
|
|
891
|
-
bucket: string;
|
|
892
|
-
filePath: string;
|
|
893
|
-
path?: string;
|
|
894
|
-
token?: string;
|
|
895
|
-
limit?: number;
|
|
896
|
-
recursive?: boolean;
|
|
897
|
-
}, signal?: AbortSignal): Promise<SkillFileListResponseDto>;
|
|
898
|
-
/**
|
|
899
|
-
* Fetches a single skill's own authoritative metadata (`author`,
|
|
900
|
-
* `updatedAt`, and the rest of `SkillMetadataItemDto`) — not the catalog
|
|
901
|
-
* listing entry, which may be sparse for a shared skill.
|
|
902
|
-
*/
|
|
903
|
-
getSkillMetadata(bucket: string, path: string, signal?: AbortSignal): Promise<SkillMetadataItemDto>;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/** A skill's parsed manifest details. */
|
|
907
|
-
export declare interface SkillEntityDetails {
|
|
908
|
-
about?: SkillAboutDetails;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* In-memory bytes for a Skill supporting file, plus its MIME type when known
|
|
913
|
-
* (e.g. from a browser upload's `File.type`).
|
|
914
|
-
*/
|
|
915
|
-
declare interface SkillFileContent {
|
|
916
|
-
/** The file's raw bytes. */
|
|
917
|
-
bytes: Uint8Array;
|
|
918
|
-
/**
|
|
919
|
-
* MIME type from the original browser `File.type`. Omit for edit-mode ZIP
|
|
920
|
-
* entries, which carry no MIME metadata — the type is then inferred from
|
|
921
|
-
* the file's path.
|
|
922
|
-
*/
|
|
923
|
-
mimeType?: string;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
/** Translated labels for the skill Overview tab's Specification/Details sections. */
|
|
927
|
-
export declare interface SkillOverviewLabels {
|
|
928
|
-
whenToUseLabel: string;
|
|
929
|
-
allowedToolsLabel: string;
|
|
930
|
-
bundledResourcesLabel: string;
|
|
931
|
-
specificationSectionTitle: string;
|
|
932
|
-
authorLabel: string;
|
|
933
|
-
updatedLabel: string;
|
|
934
|
-
fileCountLabel: string;
|
|
935
|
-
detailsSectionTitle: string;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/** Discriminant for the kind of error a `useSkillFilePreview` load can produce. */
|
|
939
|
-
export declare enum SkillPreviewErrorKind {
|
|
940
|
-
/** HTTP 403 — the caller lacks permission to read this file. */
|
|
941
|
-
Forbidden = "forbidden",
|
|
942
|
-
/** Any non-403 load failure. */
|
|
943
|
-
Generic = "generic"
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
/** Which skill namespace a catalog skill item came from. */
|
|
947
|
-
export declare enum SkillSource {
|
|
948
|
-
/** A skill in the caller's own bucket. */
|
|
949
|
-
Personal = "personal",
|
|
950
|
-
/** A skill another user shared with the caller. */
|
|
951
|
-
SharedWithMe = "sharedWithMe",
|
|
952
|
-
/** An organisation-wide skill; read-only for every user. */
|
|
953
|
-
Public = "public"
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/** Sign-in status at both the personal and org-wide (global) level for a toolset. */
|
|
957
|
-
export declare interface ToolsetAuthStatusDetails {
|
|
958
|
-
global?: string;
|
|
959
|
-
appLevel?: string;
|
|
960
|
-
userLevel?: string;
|
|
961
|
-
scopesSupported?: string[];
|
|
962
|
-
authorizationEndpoint?: string;
|
|
963
|
-
tokenEndpoint?: string;
|
|
964
|
-
apiKeyHeader?: string;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/** Feature-support flags for a toolset. */
|
|
968
|
-
export declare interface ToolsetCapabilities {
|
|
969
|
-
hasMcp?: boolean;
|
|
970
|
-
hasCaching?: boolean;
|
|
971
|
-
hasSystemPrompt?: boolean;
|
|
972
|
-
hasResume?: boolean;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
/** Localized copy `useCatalogToolsetCredentials` needs for every outcome it can notify. */
|
|
976
|
-
export declare interface ToolsetCredentialsLabels {
|
|
977
|
-
loginSuccessTitle: string;
|
|
978
|
-
loginSuccess: ToolsetCredentialsMessageLabels;
|
|
979
|
-
apiKeyAddedSuccessTitle: string;
|
|
980
|
-
apiKeyAddedSuccess: ToolsetCredentialsMessageLabels;
|
|
981
|
-
logoutSuccessTitle: string;
|
|
982
|
-
logoutSuccess: ToolsetCredentialsMessageLabels;
|
|
983
|
-
apiKeyDeletedSuccessTitle: string;
|
|
984
|
-
apiKeyDeletedSuccess: ToolsetCredentialsMessageLabels;
|
|
985
|
-
popupBlockedError: string;
|
|
986
|
-
loginFailedError: string;
|
|
987
|
-
logoutFailedError: string;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
/** Formats one credentials-level outcome's notification body. */
|
|
991
|
-
export declare interface ToolsetCredentialsMessageLabels {
|
|
992
|
-
user: (params: {
|
|
993
|
-
name: string;
|
|
994
|
-
version?: string;
|
|
995
|
-
}) => string;
|
|
996
|
-
org: (params: {
|
|
997
|
-
name: string;
|
|
998
|
-
version?: string;
|
|
999
|
-
}) => string;
|
|
1000
|
-
global: (params: {
|
|
1001
|
-
name: string;
|
|
1002
|
-
version?: string;
|
|
1003
|
-
}) => string;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/** A host notification `useCatalogToolsetCredentials` asks to be shown. */
|
|
1007
|
-
export declare interface ToolsetCredentialsNotification {
|
|
1008
|
-
variant: NotificationVariant;
|
|
1009
|
-
title?: string;
|
|
1010
|
-
message: string;
|
|
1011
|
-
requestId?: string;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
/** Full details payload for a toolset-type deployment. */
|
|
1015
|
-
export declare interface ToolsetEntityDetails {
|
|
1016
|
-
specification?: ToolsetSpecification;
|
|
1017
|
-
capabilities?: ToolsetCapabilities;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
/** Catalog-facing specification fields for a toolset. */
|
|
1021
|
-
export declare interface ToolsetSpecification {
|
|
1022
|
-
provider?: string;
|
|
1023
|
-
vendor?: string;
|
|
1024
|
-
license?: string;
|
|
1025
|
-
knowledgeCutoffDate?: string;
|
|
1026
|
-
parameters?: string;
|
|
1027
|
-
authentication?: AuthenticationType;
|
|
1028
|
-
permissions?: string[];
|
|
1029
|
-
hostedBy?: string;
|
|
1030
|
-
authStatus?: ToolsetAuthStatusDetails;
|
|
1031
|
-
createdAt?: number;
|
|
1032
|
-
/** Names of all tools the underlying MCP server supports, not just the allow-listed subset in `permissions`. */
|
|
1033
|
-
allTools?: string[];
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
/** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
|
|
1037
|
-
export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Converts a `PublicationRule` (publish-panel lib model) to the generated
|
|
1041
|
-
* client's `PublishRuleDto` shape. The two differ only in how the comparison
|
|
1042
|
-
* function is typed, so the value passes through unchanged.
|
|
1043
|
-
*/
|
|
1044
|
-
export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto;
|
|
1045
|
-
|
|
1046
|
-
/** Loads fresh service statuses without coupling proactive credentials to a live completion. */
|
|
1047
|
-
export declare const useApplicationCredentials: ({ appId, externalServicesClient, offlineCredentialsClient, }: UseApplicationCredentialsParams) => {
|
|
1048
|
-
services: ApplicationExternalServiceDto[];
|
|
1049
|
-
isOfflineConnected: boolean;
|
|
1050
|
-
isLoading: boolean;
|
|
1051
|
-
hasError: boolean;
|
|
1052
|
-
refresh: () => Promise<void>;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
/** Configured operations for loading application credential metadata. */
|
|
1056
|
-
export declare interface UseApplicationCredentialsParams {
|
|
1057
|
-
/** Application identifier passed through to the configured client. */
|
|
1058
|
-
appId: string;
|
|
1059
|
-
/** Host-configured external-services API. */
|
|
1060
|
-
externalServicesClient: Pick<ExternalServicesApi, 'listExternalServices'>;
|
|
1061
|
-
/** Host-configured offline-credentials API. */
|
|
1062
|
-
offlineCredentialsClient: Pick<OfflineCredentialsApi, 'getOfflineCredentials'>;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
/**
|
|
1066
|
-
* Owns the catalog's edit/delete/create-menu navigation: routing the details
|
|
1067
|
-
* panel's Edit action to the right editor URL for each item type, deleting an
|
|
1068
|
-
* item through the endpoint its type owns and refetching/notifying on
|
|
1069
|
-
* completion, and building the Create dropdown's options.
|
|
1070
|
-
*/
|
|
1071
|
-
export declare const useCatalogEditNavigation: ({ deployments, isCustomAppsEnabled, isSchemaAppsEnabled, isHideCustomAppCreationEnabled, isToolsetsEnabled, isPromptsEnabled, schemas, urls, onNavigate, deletePrompt, deleteToolset, deleteSkill, deleteApplication, refetchPrompts, refetchToolsets, refetchSkills, refetchDeployments, onDeleteSuccess, labels, onNotify, onSkillUploadClick, }: UseCatalogEditNavigationParams) => UseCatalogEditNavigationResult;
|
|
1072
|
-
|
|
1073
|
-
/** Parameters accepted by {@link useCatalogEditNavigation}. */
|
|
1074
|
-
export declare interface UseCatalogEditNavigationParams {
|
|
1075
|
-
deployments: DeploymentItemDto[];
|
|
1076
|
-
isCustomAppsEnabled: boolean;
|
|
1077
|
-
isSchemaAppsEnabled: boolean;
|
|
1078
|
-
isHideCustomAppCreationEnabled: boolean;
|
|
1079
|
-
isToolsetsEnabled: boolean;
|
|
1080
|
-
isPromptsEnabled: boolean;
|
|
1081
|
-
/** Application type schemas (runners) loaded at startup; each one except the custom-app schema gets its own Create option. */
|
|
1082
|
-
schemas: ApplicationSchemaSummaryDto[];
|
|
1083
|
-
/** Already-configured editor-route URL builders. */
|
|
1084
|
-
urls: CatalogEditNavigationUrls;
|
|
1085
|
-
/** Navigates the host to a URL built by `urls`. */
|
|
1086
|
-
onNavigate: (url: string) => void;
|
|
1087
|
-
/** Already-configured DIAL Core operation: deletes a personal or shared prompt. */
|
|
1088
|
-
deletePrompt: (id: string) => Promise<unknown>;
|
|
1089
|
-
/** Already-configured DIAL Core operation: deletes a toolset. */
|
|
1090
|
-
deleteToolset: (id: string) => Promise<unknown>;
|
|
1091
|
-
/** Already-configured DIAL Core operation: deletes a skill package. */
|
|
1092
|
-
deleteSkill: (bucket: string, path: string) => Promise<unknown>;
|
|
1093
|
-
/** Already-configured DIAL Core operation: deletes a deployment/application. */
|
|
1094
|
-
deleteApplication: (id: string) => Promise<unknown>;
|
|
1095
|
-
refetchPrompts: () => Promise<void>;
|
|
1096
|
-
refetchToolsets: () => Promise<void>;
|
|
1097
|
-
refetchSkills: () => Promise<void>;
|
|
1098
|
-
refetchDeployments: () => Promise<void>;
|
|
1099
|
-
/** Called after a successful delete, so the host can notify with its own entity/operation vocabulary. */
|
|
1100
|
-
onDeleteSuccess: (item: CatalogItem) => void;
|
|
1101
|
-
/** Localized notification copy, resolved by the host. */
|
|
1102
|
-
labels: CatalogEditNavigationLabels;
|
|
1103
|
-
/** Called to surface a host notification when a delete fails. */
|
|
1104
|
-
onNotify: (notification: CatalogEditNavigationNotification) => void;
|
|
1105
|
-
/** Called when the Create menu's Skill → Upload option is picked. */
|
|
1106
|
-
onSkillUploadClick: () => void;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
/** Return value of {@link useCatalogEditNavigation}. */
|
|
1110
|
-
export declare interface UseCatalogEditNavigationResult {
|
|
1111
|
-
handleEdit: (item: CatalogItem) => void;
|
|
1112
|
-
handleDelete: (item: CatalogItem) => Promise<void>;
|
|
1113
|
-
/** The Create dropdown's items: runners and static options sorted together by label, all filtered by `createSearch.value`. */
|
|
1114
|
-
createOptions: DropdownItem[];
|
|
1115
|
-
/** The Create menu's search field state, or `undefined` when no runner option is offered. */
|
|
1116
|
-
createSearch: CatalogCreateSearch | undefined;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* Headless hook that encapsulates catalog item detail fetching.
|
|
1121
|
-
* Extracts the inline dispatch logic from `CatalogView` into a reusable,
|
|
1122
|
-
* library-isolated unit.
|
|
1123
|
-
*/
|
|
1124
|
-
export declare const useCatalogItemDetails: ({ api, skills, isAdmin, dialCoreExternalUrl, skillOverviewLabels, promptOverviewLabels, deploymentLimitsLabels, entityDetailsLabels, }: UseCatalogItemDetailsOptions) => UseCatalogItemDetailsResult;
|
|
1125
|
-
|
|
1126
|
-
/** Options accepted by `useCatalogItemDetails`. */
|
|
1127
|
-
export declare interface UseCatalogItemDetailsOptions {
|
|
1128
|
-
/** Configured API adapter used for all network calls. */
|
|
1129
|
-
api: CatalogDetailsApi;
|
|
1130
|
-
/**
|
|
1131
|
-
* Combined array of all skills visible to this user
|
|
1132
|
-
* (personal + shared + public) for overview metadata lookup.
|
|
1133
|
-
*/
|
|
1134
|
-
skills: SkillMetadataItemDto[];
|
|
1135
|
-
/** Whether the current user has admin privileges (affects toolset credential visibility). */
|
|
1136
|
-
isAdmin: boolean;
|
|
1137
|
-
/** DIAL Core external base URL used for Connect-tab endpoint construction. */
|
|
1138
|
-
dialCoreExternalUrl: string | null | undefined;
|
|
1139
|
-
/** Labels for skill overview section headers. */
|
|
1140
|
-
skillOverviewLabels: SkillOverviewLabels;
|
|
1141
|
-
/** Labels for prompt overview section headers. */
|
|
1142
|
-
promptOverviewLabels: PromptOverviewLabels;
|
|
1143
|
-
/** Labels for deployment limits table. */
|
|
1144
|
-
deploymentLimitsLabels: DeploymentLimitsLabels;
|
|
1145
|
-
/**
|
|
1146
|
-
* Overview section titles and spec labels for models, agents and toolsets,
|
|
1147
|
-
* merged over the English defaults. Memoise it like the other label objects:
|
|
1148
|
-
* a new object on every render recreates `onFetchDetails`.
|
|
1149
|
-
*/
|
|
1150
|
-
entityDetailsLabels?: Partial<EntityDetailsLabels>;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
/** Returned callbacks from `useCatalogItemDetails`. All callbacks are stable for stable inputs. */
|
|
1154
|
-
export declare interface UseCatalogItemDetailsResult {
|
|
1155
|
-
/**
|
|
1156
|
-
* Fetches full detail data for a catalog item.
|
|
1157
|
-
* Returns `undefined` on failure (error handled by caller).
|
|
1158
|
-
*/
|
|
1159
|
-
onFetchDetails(item: CatalogItem): Promise<CatalogItemDetailsFetchResult | undefined>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Loads the text content of a file inside the currently open skill's package.
|
|
1162
|
-
* Returns `undefined` when the file cannot be read or is a directory.
|
|
1163
|
-
*/
|
|
1164
|
-
onLoadContentFile(fileId: string): Promise<string | undefined>;
|
|
1165
|
-
/**
|
|
1166
|
-
* Downloads and returns preview bytes for a file inside the currently open skill's package.
|
|
1167
|
-
* Throws on HTTP errors, unparseable ids, and size-limit violations.
|
|
1168
|
-
*/
|
|
1169
|
-
onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* Owns the catalog's toolset credential login/logout flow: wires the shared
|
|
1174
|
-
* OAuth/API-key login orchestration (`useToolsetLogin`) to this host's DIAL
|
|
1175
|
-
* Core operations, resolves each outcome to a notification and toolset
|
|
1176
|
-
* refetch, and owns the notification copy for every credential level /
|
|
1177
|
-
* API-key / org-fallback combination.
|
|
1178
|
-
*/
|
|
1179
|
-
export declare const useCatalogToolsetCredentials: ({ isAdmin, toolsets, refetchToolsets, callbackPath, loginToolset, logoutToolset, getToolset, labels, onNotify, }: UseCatalogToolsetCredentialsParams) => UseCatalogToolsetCredentialsResult;
|
|
1180
|
-
|
|
1181
|
-
/** Parameters accepted by {@link useCatalogToolsetCredentials}. */
|
|
1182
|
-
export declare interface UseCatalogToolsetCredentialsParams {
|
|
1183
|
-
isAdmin: boolean;
|
|
1184
|
-
toolsets: DialToolsetDto[];
|
|
1185
|
-
refetchToolsets: () => Promise<void>;
|
|
1186
|
-
/** Route the OAuth popup redirects back to once the provider completes. */
|
|
1187
|
-
callbackPath: string;
|
|
1188
|
-
/** Already-configured DIAL Core operation: submits credentials for one toolset. */
|
|
1189
|
-
loginToolset: (toolsetId: string, body: ToolsetLoginBodyDto) => Promise<unknown>;
|
|
1190
|
-
/** Already-configured DIAL Core operation: clears credentials for one toolset. */
|
|
1191
|
-
logoutToolset: (toolsetId: string, body: ToolsetLogoutBodyDto) => Promise<unknown>;
|
|
1192
|
-
/** Already-configured DIAL Core operation: re-reads one toolset. */
|
|
1193
|
-
getToolset: (toolsetId: string) => Promise<DialToolsetDto>;
|
|
1194
|
-
/** Localized notification copy, resolved by the host. */
|
|
1195
|
-
labels: ToolsetCredentialsLabels;
|
|
1196
|
-
/** Called to surface a host notification. */
|
|
1197
|
-
onNotify: (notification: ToolsetCredentialsNotification) => void;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
/** Return value of {@link useCatalogToolsetCredentials}. */
|
|
1201
|
-
export declare interface UseCatalogToolsetCredentialsResult {
|
|
1202
|
-
handleLogin: (item: CatalogItem, params: {
|
|
1203
|
-
level: CredentialsLevel;
|
|
1204
|
-
apiKey?: string;
|
|
1205
|
-
}) => Promise<void>;
|
|
1206
|
-
handleLogout: (item: CatalogItem, params: {
|
|
1207
|
-
level: CredentialsLevel;
|
|
1208
|
-
}) => Promise<void>;
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
/**
|
|
1212
|
-
* Manages the set of favorited entity ids: loads on mount, applies optimistic
|
|
1213
|
-
* toggle with exact-inverse rollback on failure, and re-throws persistence
|
|
1214
|
-
* errors so callers can react. Does not import any app context or server-api.
|
|
1215
|
-
*/
|
|
1216
|
-
export declare const useFavoriteEntitiesState: ({ loadFavorites, updateFavorite, }: UseFavoriteEntitiesStateParams) => UseFavoriteEntitiesStateResult;
|
|
1217
|
-
|
|
1218
|
-
/** Parameters for {@link useFavoriteEntitiesState}. */
|
|
1219
|
-
export declare interface UseFavoriteEntitiesStateParams {
|
|
1220
|
-
/** Fetches the initial set of favorite ids from the server. */
|
|
1221
|
-
loadFavorites: () => Promise<FavoritesPayload>;
|
|
1222
|
-
/** Persists a single favorite toggle for the given entity type. */
|
|
1223
|
-
updateFavorite: (id: string, isFavorite: boolean, entityType: FavoriteEntityType) => Promise<void>;
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/** Result returned by {@link useFavoriteEntitiesState}. */
|
|
1227
|
-
export declare interface UseFavoriteEntitiesStateResult {
|
|
1228
|
-
/** Union of all installed entity ids across every category. */
|
|
1229
|
-
favoriteIds: ReadonlySet<string>;
|
|
1230
|
-
/** True until the initial load has settled. */
|
|
1231
|
-
isLoading: boolean;
|
|
1232
|
-
/** Optimistically toggles a favorite and rolls back on persistence failure. */
|
|
1233
|
-
toggleFavorite: (id: string, isFavorite: boolean, entityType?: FavoriteEntityType) => Promise<void>;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* Loads the Organization/public bucket's folder tree lazily (one listing per
|
|
1238
|
-
* expanded folder, cached by API path) for the Publish flow's folder picker,
|
|
1239
|
-
* shared by catalog-entity publish and conversation publish. Scoped to folders
|
|
1240
|
-
* only — unlike `useDialFileManager`, it does not list files, rename,
|
|
1241
|
-
* copy/move, or upload.
|
|
1242
|
-
*
|
|
1243
|
-
* Destinations the user has already published to are merged into that tree
|
|
1244
|
-
* from `rememberedFolderKeys`. Publishing creates a DIAL Core publication
|
|
1245
|
-
* *request*, so a folder picked during publish is not a listable resource in
|
|
1246
|
-
* the public files bucket this tree is built from — the remembered list is
|
|
1247
|
-
* what keeps such a folder selectable for the next publish instead of
|
|
1248
|
-
* vanishing when the panel is reopened.
|
|
1249
|
-
*
|
|
1250
|
-
* Takes `listPublicFiles` as a parameter and hands remembered destinations
|
|
1251
|
-
* back through a callback, so it imports no app context and no storage API.
|
|
1252
|
-
*/
|
|
1253
|
-
export declare const usePublishFolders: ({ listPublicFiles, rememberedFolderKeys, onRememberedFolderKeysChange, }: UsePublishFoldersParams) => UsePublishFoldersResult;
|
|
1254
|
-
|
|
1255
|
-
/** Parameters for {@link usePublishFolders}. */
|
|
1256
|
-
export declare interface UsePublishFoldersParams {
|
|
1257
|
-
/** Lists one folder level of the Organization/public files bucket. */
|
|
1258
|
-
listPublicFiles: (params: {
|
|
1259
|
-
path?: string;
|
|
1260
|
-
}) => Promise<ListFilesResponseDto>;
|
|
1261
|
-
/**
|
|
1262
|
-
* Folder path keys (`path.join('/')`) the user has published to before.
|
|
1263
|
-
* Owned by the host, which is also what persists them — this hook never
|
|
1264
|
-
* touches browser storage (library isolation).
|
|
1265
|
-
*/
|
|
1266
|
-
rememberedFolderKeys?: string[];
|
|
1267
|
-
/**
|
|
1268
|
-
* Called with the next remembered-key list when {@link
|
|
1269
|
-
* UsePublishFoldersResult.rememberPublishFolder} records a destination.
|
|
1270
|
-
* Omit it for a host that does not persist destinations.
|
|
1271
|
-
*/
|
|
1272
|
-
onRememberedFolderKeysChange?: (folderKeys: string[]) => void;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
/** Result returned by {@link usePublishFolders}. */
|
|
1276
|
-
export declare interface UsePublishFoldersResult {
|
|
1277
|
-
/** Folder tree loaded so far from the Organization/public bucket. */
|
|
1278
|
-
folderItems: PublishFolderNode[];
|
|
1279
|
-
/** Folder path keys currently expanded in the tree. */
|
|
1280
|
-
expandedPaths: Set<string>;
|
|
1281
|
-
/** Folder path keys whose children have already been fetched. */
|
|
1282
|
-
loadedPaths: Set<string>;
|
|
1283
|
-
/** Folder path keys currently being fetched. */
|
|
1284
|
-
loadingPaths: Set<string>;
|
|
1285
|
-
/** Called by the folder tree when the set of expanded folders changes. */
|
|
1286
|
-
onExpandedPathsChange: (paths: Set<string>) => void;
|
|
1287
|
-
/**
|
|
1288
|
-
* Adds a folder under `parentPath` to the in-memory tree only — it is
|
|
1289
|
-
* never created on the backend here. The path becomes real once the user
|
|
1290
|
-
* actually publishes to it: the publish request writes to the nested
|
|
1291
|
-
* `folderPath`, which DIAL Core storage creates implicitly, the same way
|
|
1292
|
-
* writing a file to a new prefix does. This avoids leaving an orphaned
|
|
1293
|
-
* empty folder behind when the user picks a new-folder name and then
|
|
1294
|
-
* cancels the publish. Because the folder exists only locally, it is kept
|
|
1295
|
-
* apart from the listing cache, so a listing that arrives afterwards
|
|
1296
|
-
* cannot drop it again.
|
|
1297
|
-
*/
|
|
1298
|
-
onCreatePublishFolder: (parentPath: string[], name: string) => Promise<void>;
|
|
1299
|
-
/**
|
|
1300
|
-
* Records `folderPath` as the most recent publish destination (moving it to
|
|
1301
|
-
* the front if already remembered), so it keeps appearing in the tree on
|
|
1302
|
-
* later publishes. Call it after a successful publish.
|
|
1303
|
-
*/
|
|
1304
|
-
rememberPublishFolder: (folderPath: string[]) => void;
|
|
1305
|
-
/** Heuristic write-access check for a folder path (see the TODO above). */
|
|
1306
|
-
hasPublishWriteAccess: (folderPath: string[]) => boolean;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* Headless data pipeline behind a skill details side panel: resolves the
|
|
1311
|
-
* selected skill from the listings, maps it to a catalog item with its
|
|
1312
|
-
* ownership flags and folder prefix, fetches its details with cancellation,
|
|
1313
|
-
* and merges the fetch result into the item.
|
|
1314
|
-
*/
|
|
1315
|
-
export declare const useSkillDetailsPanelData: ({ api, skills, sharedWithMe, publicSkills, skillId, folderLabels, skillOverviewLabels, favoriteIds, }: UseSkillDetailsPanelDataOptions) => UseSkillDetailsPanelDataResult;
|
|
1316
|
-
|
|
1317
|
-
/** Options accepted by `useSkillDetailsPanelData`. */
|
|
1318
|
-
export declare interface UseSkillDetailsPanelDataOptions {
|
|
1319
|
-
/** Configured API adapter used for all network calls. */
|
|
1320
|
-
api: SkillDetailsApi;
|
|
1321
|
-
/** The user's own skills. */
|
|
1322
|
-
skills: SkillMetadataItemDto[];
|
|
1323
|
-
/** Skills shared with the user. */
|
|
1324
|
-
sharedWithMe?: SkillMetadataItemDto[];
|
|
1325
|
-
/** Public skills. */
|
|
1326
|
-
publicSkills?: SkillMetadataItemDto[];
|
|
1327
|
-
/**
|
|
1328
|
-
* Resource URL (`skills/{bucket}/{path}`) of the skill whose details are
|
|
1329
|
-
* shown; `null` when the panel is closed, which resolves no item.
|
|
1330
|
-
*/
|
|
1331
|
-
skillId: string | null;
|
|
1332
|
-
/** Personal/Shared/Public folder labels for the mapped item's folder path. */
|
|
1333
|
-
folderLabels: DeploymentFolderLabels;
|
|
1334
|
-
/** Labels for the skill overview section headers. */
|
|
1335
|
-
skillOverviewLabels: SkillOverviewLabels;
|
|
1336
|
-
/** Favorited resource ids, keyed by skill resource URL. */
|
|
1337
|
-
favoriteIds: ReadonlySet<string>;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
/** Returned by `useSkillDetailsPanelData`. */
|
|
1341
|
-
export declare interface UseSkillDetailsPanelDataResult {
|
|
1342
|
-
/**
|
|
1343
|
-
* The selected skill as a catalog item with its fetched details merged in;
|
|
1344
|
-
* `null` while no skill is selected or the skill is not in the listings.
|
|
1345
|
-
*/
|
|
1346
|
-
detailsPanelItem: CatalogItem | null;
|
|
1347
|
-
/** Whether the details fetch for the current item is in flight. */
|
|
1348
|
-
isDetailsLoading: boolean;
|
|
1349
|
-
/** Whether the resolved skill is currently favorited. */
|
|
1350
|
-
isStarred: boolean;
|
|
1351
|
-
/**
|
|
1352
|
-
* Downloads and returns preview bytes for a file inside the open skill's
|
|
1353
|
-
* package. Throws on HTTP errors, unparseable ids, and size-limit
|
|
1354
|
-
* violations.
|
|
1355
|
-
*/
|
|
1356
|
-
onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* Headless hook that manages the skill-file preview loading lifecycle.
|
|
1361
|
-
* Starts a new load on mount and whenever `fileId` changes; classifies errors
|
|
1362
|
-
* as `Forbidden` (HTTP 403) or `Generic`; discards settlements from superseded
|
|
1363
|
-
* or unmounted loads.
|
|
1364
|
-
*/
|
|
1365
|
-
export declare const useSkillFilePreview: ({ fileId, onLoadFile, }: UseSkillFilePreviewOptions) => UseSkillFilePreviewResult;
|
|
1366
|
-
|
|
1367
|
-
/** Options accepted by `useSkillFilePreview`. */
|
|
1368
|
-
export declare interface UseSkillFilePreviewOptions {
|
|
1369
|
-
/**
|
|
1370
|
-
* Opaque id of the selected skill file. Changing this resets all state
|
|
1371
|
-
* and starts a new load; stale resolutions from the previous id are discarded.
|
|
1372
|
-
*/
|
|
1373
|
-
fileId: string;
|
|
1374
|
-
/**
|
|
1375
|
-
* App-owned loader; resolves with the raw file bytes when the request
|
|
1376
|
-
* succeeds. The hook never constructs a URL or imports a REST client.
|
|
1377
|
-
*/
|
|
1378
|
-
onLoadFile: (fileId: string) => Promise<SkillFileContent>;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
/** State returned by `useSkillFilePreview`. */
|
|
1382
|
-
export declare interface UseSkillFilePreviewResult {
|
|
1383
|
-
/** `true` while the async load is in flight. */
|
|
1384
|
-
isLoading: boolean;
|
|
1385
|
-
/** Resolved file content, or `null` while loading or after an error. */
|
|
1386
|
-
content: SkillFileContent | null;
|
|
1387
|
-
/** Classified load error, or `null` while loading or after a success. */
|
|
1388
|
-
error: SkillPreviewErrorKind | null;
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* Headless hook that encapsulates skill detail fetching: manifest download and
|
|
1393
|
-
* parse, package file listing, authoritative metadata fetching, overview
|
|
1394
|
-
* construction, and in-package file loads. `useCatalogItemDetails` delegates
|
|
1395
|
-
* its skill branch here; hosts that only surface skill details consume this
|
|
1396
|
-
* hook directly, without the deployment and prompt ports the full catalog
|
|
1397
|
-
* pipeline requires.
|
|
1398
|
-
*/
|
|
1399
|
-
export declare const useSkillItemDetails: ({ api, skills, skillOverviewLabels, }: UseSkillItemDetailsOptions) => UseSkillItemDetailsResult;
|
|
1400
|
-
|
|
1401
|
-
/** Options accepted by `useSkillItemDetails`. */
|
|
1402
|
-
export declare interface UseSkillItemDetailsOptions {
|
|
1403
|
-
/** Configured API adapter used for all network calls. */
|
|
1404
|
-
api: SkillDetailsApi;
|
|
1405
|
-
/**
|
|
1406
|
-
* Combined array of all skills visible to this user
|
|
1407
|
-
* (personal + shared + public) for overview metadata lookup.
|
|
1408
|
-
*/
|
|
1409
|
-
skills: SkillMetadataItemDto[];
|
|
1410
|
-
/** Labels for skill overview section headers. */
|
|
1411
|
-
skillOverviewLabels: SkillOverviewLabels;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
/** Returned callbacks from `useSkillItemDetails`. All callbacks are stable for stable inputs. */
|
|
1415
|
-
export declare interface UseSkillItemDetailsResult {
|
|
1416
|
-
/**
|
|
1417
|
-
* Fetches full detail data for a skill catalog item.
|
|
1418
|
-
* Returns `undefined` on failure (error handled by caller).
|
|
1419
|
-
*/
|
|
1420
|
-
onFetchSkillDetails(item: CatalogItem): Promise<CatalogItemDetailsFetchResult | undefined>;
|
|
1421
|
-
/**
|
|
1422
|
-
* Loads the text content of a file inside the currently open skill's package.
|
|
1423
|
-
* Returns `undefined` when the file cannot be read or is a directory.
|
|
1424
|
-
*/
|
|
1425
|
-
onLoadContentFile(fileId: string): Promise<string | undefined>;
|
|
1426
|
-
/**
|
|
1427
|
-
* Downloads and returns preview bytes for a file inside the currently open skill's package.
|
|
1428
|
-
* Throws on HTTP errors, unparseable ids, and size-limit violations.
|
|
1429
|
-
*/
|
|
1430
|
-
onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
export { }
|
|
1
|
+
export * from './entry-points/catalog.js'
|
|
2
|
+
export {}
|