@epam/ai-dial-chat-hooks 1.3.0-dev.34 → 1.3.0-dev.37
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/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 -1436
- 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.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 -1250
- 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.types.d.ts +327 -0
- package/files/dial-file-manager.types.d.ts.map +1 -0
- package/files/dial-file-to-attachment.d.ts +26 -0
- package/files/dial-file-to-attachment.d.ts.map +1 -0
- package/files/dial-file.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/useDialFileManager/useDialFileManager.d.ts +16 -0
- package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
- 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/useDialFileSharing/useDialFileSharing.d.ts +34 -0
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
- package/index.d.ts +152 -6996
- package/index.d.ts.map +1 -0
- 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 +15 -15
- 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-tasks.d.ts +28 -0
- package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
- package/scheduled-tasks.d.ts +2 -256
- package/scroll-anchoring.d.ts +2 -50
- package/shared/application-schema.d.ts +16 -0
- package/shared/application-schema.d.ts.map +1 -0
- 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 +54 -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/useUsageData/useUsageData.d.ts +28 -0
- package/usage/useUsageData/useUsageData.d.ts.map +1 -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/viewport-layout.d.ts +2 -27
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DialToolsetAuthSettingsDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { ToolsetCredentialsLevel } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Percent-encodes each `/`-separated segment of a toolset id so it satisfies
|
|
5
|
+
* the backend's `DEPLOYMENT_ID_PATTERN`/`TOOLSET_URL_PATTERN` (spaces and
|
|
6
|
+
* other reserved characters must already be percent-encoded — e.g. `%20`,
|
|
7
|
+
* not a real space — before this value is used against the toolsets API;
|
|
8
|
+
* `/` stays a literal path separator). Externally-sourced ids — the raw,
|
|
9
|
+
* human-readable id an embedded iframe sends over `postMessage`
|
|
10
|
+
* (e.g. `toolsets/<bucket>/My Toolset__1.0`) — arrive unencoded, unlike the
|
|
11
|
+
* already-encoded `id`/`toolset` field `listToolsets()`/`DialToolsetDto`
|
|
12
|
+
* returns. Mirrors `encodeDeploymentId` (`deployment-id.ts`), which exists
|
|
13
|
+
* for the identical reason on the applications side.
|
|
14
|
+
*/
|
|
15
|
+
export declare const encodeToolsetId: (id: string) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Inverse of `encodeToolsetId` — decodes each `/`-separated segment back to
|
|
18
|
+
* its raw, human-readable form. A segment that isn't valid percent-encoding
|
|
19
|
+
* is passed through unchanged rather than throwing, since this decodes
|
|
20
|
+
* externally-sourced ids (broadcast toolset-login events).
|
|
21
|
+
*/
|
|
22
|
+
export declare const decodeToolsetId: (id: string) => string;
|
|
23
|
+
/** Whether a toolset id belongs to the `public` bucket (shared with all users), mirroring the legacy `isEntityIdPublic` check. */
|
|
24
|
+
export declare const isPublicToolsetId: (toolsetId: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Encodes a toolset id to its single-encoded form regardless of whether the
|
|
27
|
+
* value received it in was already percent-encoded or the raw,
|
|
28
|
+
* human-readable form — decoding first then re-encoding once is idempotent
|
|
29
|
+
* either way, since `decodeToolsetId` on a raw (unencoded) id is a no-op.
|
|
30
|
+
* Use this instead of `encodeToolsetId` at a boundary that cannot guarantee
|
|
31
|
+
* which form it receives, such as a `postMessage` payload from an embedded
|
|
32
|
+
* iframe: calling `encodeToolsetId` directly on a value the sender already
|
|
33
|
+
* encoded escapes the existing `%` characters a second time (`%20` becomes
|
|
34
|
+
* `%2520`), which the backend only ever undoes once and so 404s on.
|
|
35
|
+
*/
|
|
36
|
+
export declare const normalizeToolsetId: (toolsetId: string) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Resolves which credentials level a toolset's login applies to, per DIAL
|
|
39
|
+
* Core's public/private toolset convention: a `public`-bucket toolset is
|
|
40
|
+
* shared credentials-wise at `User` level, while a private/workspace toolset
|
|
41
|
+
* is scoped at `Global` level. Every surface that drives a toolset login
|
|
42
|
+
* (the sign-in-interrupt dialog, the QuickApps editor iframe bridge,
|
|
43
|
+
* `useToolsetLogin`) must resolve the level this way rather than assuming one.
|
|
44
|
+
*/
|
|
45
|
+
export declare const resolveToolsetCredentialsLevel: (toolsetId: string) => ToolsetCredentialsLevel.User | ToolsetCredentialsLevel.Global;
|
|
46
|
+
/**
|
|
47
|
+
* Picks the auth-status field matching one credentials level out of a
|
|
48
|
+
* toolset's `authSettings` — DIAL Core reports `userLevelAuthStatus` and
|
|
49
|
+
* `globalAuthStatus` as independent fields rather than one status keyed by
|
|
50
|
+
* level.
|
|
51
|
+
*/
|
|
52
|
+
export declare const selectToolsetAuthStatus: (authSettings: Pick<DialToolsetAuthSettingsDto, "userLevelAuthStatus" | "globalAuthStatus"> | undefined, credentialsLevel: ToolsetCredentialsLevel) => string | undefined;
|
|
53
|
+
//# sourceMappingURL=toolset-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolset-id.d.ts","sourceRoot":"","sources":["../../src/oauth/toolset-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIlD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,KAAG,MAI/B,CAAC;AAEf;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,KAAG,MAU/B,CAAC;AAEf,kIAAkI;AAClI,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,KAAG,OAIrD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,KAAG,MACV,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,WAAW,MAAM,KAChB,uBAAuB,CAAC,IAAI,GAAG,uBAAuB,CAAC,MAGtB,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,cACI,IAAI,CACF,0BAA0B,EAC1B,qBAAqB,GAAG,kBAAkB,CAC3C,GACD,SAAS,EACb,kBAAkB,uBAAuB,KACxC,MAAM,GAAG,SAGwB,CAAC"}
|
package/oauth/types.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enums and constants shared by the OAuth authorization-code popup flow and
|
|
3
|
+
* every host that drives it. These declarations live here (rather than being
|
|
4
|
+
* copied per host) because TypeScript string enums are nominal: a
|
|
5
|
+
* structurally identical host-side copy would not type-check against a lib
|
|
6
|
+
* signature that names the enum.
|
|
7
|
+
*/
|
|
8
|
+
/** Authentication mechanism a toolset requires. */
|
|
9
|
+
export declare enum ToolsetAuthTypes {
|
|
10
|
+
None = "NONE",
|
|
11
|
+
ApiKey = "API_KEY",
|
|
12
|
+
OAuth = "OAUTH"
|
|
13
|
+
}
|
|
14
|
+
/** Sign-in state DIAL Core reports for one credentials level of a toolset. */
|
|
15
|
+
export declare enum ToolsetAuthStatus {
|
|
16
|
+
SignedIn = "SIGNED_IN",
|
|
17
|
+
SignedOut = "SIGNED_OUT",
|
|
18
|
+
Failed = "FAILED"
|
|
19
|
+
}
|
|
20
|
+
/** Scope the credentials submitted by a login apply to. */
|
|
21
|
+
export declare enum ToolsetCredentialsLevel {
|
|
22
|
+
Global = "GLOBAL",
|
|
23
|
+
User = "USER",
|
|
24
|
+
App = "APP"
|
|
25
|
+
}
|
|
26
|
+
/** Whether a toolset authenticates interactively, and whether its client is manually configured. */
|
|
27
|
+
export declare enum WithLogin {
|
|
28
|
+
WithLogin = "with-login",
|
|
29
|
+
WithoutLogin = "without-login",
|
|
30
|
+
WithConfig = "with-config"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Which kind of resource an OAuth flow is authenticating. Three kinds share
|
|
34
|
+
* the same popup/`BroadcastChannel` machinery, which is why this module is
|
|
35
|
+
* named for the concern rather than for toolsets.
|
|
36
|
+
*/
|
|
37
|
+
export declare enum OAuthResourceKind {
|
|
38
|
+
Toolset = "toolset",
|
|
39
|
+
ExternalService = "external-service",
|
|
40
|
+
/**
|
|
41
|
+
* Proactive Scheduled Tasks offline-credentials consent. Unlike
|
|
42
|
+
* `Toolset`/`ExternalService`, this kind has no natural per-resource id —
|
|
43
|
+
* the shared `ToolsetRedirectState.toolsetId` slot is repurposed as a
|
|
44
|
+
* fixed sentinel correlation id (`'offline-credentials'`) purely for the
|
|
45
|
+
* popup/`BroadcastChannel` handshake, never as a real toolset/
|
|
46
|
+
* external-service id.
|
|
47
|
+
*/
|
|
48
|
+
OfflineCredentials = "offline-credentials"
|
|
49
|
+
}
|
|
50
|
+
/** Outcome of calling `initiateOAuthLogin`. */
|
|
51
|
+
export declare enum ToolsetOAuthInitiationResultType {
|
|
52
|
+
/** The popup was opened and navigated to the provider's authorize URL. */
|
|
53
|
+
Started = "started",
|
|
54
|
+
/** The browser blocked the popup before it could be opened. */
|
|
55
|
+
Blocked = "blocked",
|
|
56
|
+
/** The toolset's OAuth configuration is missing required fields. */
|
|
57
|
+
InvalidConfig = "invalid-config"
|
|
58
|
+
}
|
|
59
|
+
/** Outcome reported back to the tab that initiated an OAuth login. */
|
|
60
|
+
export declare enum ToolsetOAuthResultType {
|
|
61
|
+
Success = "success",
|
|
62
|
+
Failure = "failure",
|
|
63
|
+
/** The popup was closed and focus returned to its opener, or the flow timed out. */
|
|
64
|
+
Cancelled = "cancelled"
|
|
65
|
+
}
|
|
66
|
+
/** Reason codes the callback popup can report for a failed OAuth login. */
|
|
67
|
+
export declare enum ToolsetOAuthFailureReason {
|
|
68
|
+
MissingCode = "missing-code",
|
|
69
|
+
MissingRedirectState = "missing-redirect-state",
|
|
70
|
+
StateMismatch = "state-mismatch",
|
|
71
|
+
LoginRequestFailed = "login-request-failed"
|
|
72
|
+
}
|
|
73
|
+
/** Control messages exchanged over a flow-scoped OAuth channel. */
|
|
74
|
+
export declare enum ToolsetOAuthChannelControlType {
|
|
75
|
+
ResultAcknowledged = "result-acknowledged"
|
|
76
|
+
}
|
|
77
|
+
/** Query parameters written into the callback popup URL after an OAuth flow completes. */
|
|
78
|
+
export declare enum ToolsetOAuthCallbackQuery {
|
|
79
|
+
Result = "toolsetOAuthResult",
|
|
80
|
+
FailureReason = "toolsetOAuthFailureReason"
|
|
81
|
+
}
|
|
82
|
+
/** `sessionStorage` key the flow writes its `ToolsetRedirectState` under, in the popup it opens. */
|
|
83
|
+
export declare const TOOLSET_REDIRECT_STATE_KEY = "toolset-redirect-state";
|
|
84
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/oauth/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,mDAAmD;AACnD,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,MAAM,YAAY;IAClB,KAAK,UAAU;CAChB;AAED,8EAA8E;AAC9E,oBAAY,iBAAiB;IAC3B,QAAQ,cAAc;IACtB,SAAS,eAAe;IACxB,MAAM,WAAW;CAClB;AAED,2DAA2D;AAC3D,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,oGAAoG;AACpG,oBAAY,SAAS;IACnB,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,UAAU,gBAAgB;CAC3B;AAED;;;;GAIG;AACH,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,eAAe,qBAAqB;IACpC;;;;;;;OAOG;IACH,kBAAkB,wBAAwB;CAC3C;AAED,+CAA+C;AAC/C,oBAAY,gCAAgC;IAC1C,0EAA0E;IAC1E,OAAO,YAAY;IACnB,+DAA+D;IAC/D,OAAO,YAAY;IACnB,oEAAoE;IACpE,aAAa,mBAAmB;CACjC;AAED,sEAAsE;AACtE,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,oFAAoF;IACpF,SAAS,cAAc;CACxB;AAED,2EAA2E;AAC3E,oBAAY,yBAAyB;IACnC,WAAW,iBAAiB;IAC5B,oBAAoB,2BAA2B;IAC/C,aAAa,mBAAmB;IAChC,kBAAkB,yBAAyB;CAC5C;AAED,mEAAmE;AACnE,oBAAY,8BAA8B;IACxC,kBAAkB,wBAAwB;CAC3C;AAED,0FAA0F;AAC1F,oBAAY,yBAAyB;IACnC,MAAM,uBAAuB;IAC7B,aAAa,8BAA8B;CAC5C;AAED,oGAAoG;AACpG,eAAO,MAAM,0BAA0B,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ToolsetRedirectState } from '../models';
|
|
2
|
+
import { ToolsetCredentialsLevel, ToolsetOAuthFailureReason } from '../types';
|
|
3
|
+
/** Arguments handed to the host's exchange callback. */
|
|
4
|
+
export interface OAuthExchangeParams {
|
|
5
|
+
/** One-time authorization code the provider returned. */
|
|
6
|
+
code: string;
|
|
7
|
+
/** Redirect URI the code was issued against, to be echoed back to the backend. */
|
|
8
|
+
redirectUri: string;
|
|
9
|
+
/** Credentials level resolved from the stored redirect state. */
|
|
10
|
+
credentialsLevel: ToolsetCredentialsLevel;
|
|
11
|
+
/** The full redirect state the flow stored before navigating to the provider. */
|
|
12
|
+
redirectState: ToolsetRedirectState;
|
|
13
|
+
}
|
|
14
|
+
/** Parameters for {@link useOAuthCallbackCompletion}. */
|
|
15
|
+
export interface UseOAuthCallbackCompletionParams {
|
|
16
|
+
/**
|
|
17
|
+
* Query parameters of the callback URL. Read once per mount; the hook takes
|
|
18
|
+
* `code` and `state` from it.
|
|
19
|
+
*/
|
|
20
|
+
searchParams: URLSearchParams;
|
|
21
|
+
/**
|
|
22
|
+
* Path used to build the `redirect_uri` echoed back to the backend when the
|
|
23
|
+
* stored redirect state carries none — every state written by the current
|
|
24
|
+
* flow does, so this only covers states written before that field existed.
|
|
25
|
+
*/
|
|
26
|
+
callbackPath: string;
|
|
27
|
+
/**
|
|
28
|
+
* Performs the code-for-credentials exchange. Resolving `null` reports
|
|
29
|
+
* success; resolving a failure reason reports that reason (for a host-side
|
|
30
|
+
* validation the hook cannot perform, such as an unparseable resource id);
|
|
31
|
+
* rejecting reports `LoginRequestFailed`.
|
|
32
|
+
*/
|
|
33
|
+
exchange: (params: OAuthExchangeParams) => Promise<ToolsetOAuthFailureReason | null>;
|
|
34
|
+
}
|
|
35
|
+
/** State {@link useOAuthCallbackCompletion} exposes for the host page to render. */
|
|
36
|
+
export interface UseOAuthCallbackCompletionResult {
|
|
37
|
+
/** True until the flow has reported an outcome. */
|
|
38
|
+
isInProgress: boolean;
|
|
39
|
+
/** Reason the flow failed, or `null` while in progress or on success. */
|
|
40
|
+
failureReason: ToolsetOAuthFailureReason | null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Completes an OAuth authorization-code flow from inside the callback popup:
|
|
44
|
+
* reads and clears the redirect state written into this popup's own
|
|
45
|
+
* `sessionStorage`, scrubs the authorization code from the visible URL before
|
|
46
|
+
* any request, validates the returned `state`, performs the exchange through
|
|
47
|
+
* the injected callback, then reports the outcome into the popup URL and over
|
|
48
|
+
* the flow channel until acknowledged, closing the popup afterwards. Runs its
|
|
49
|
+
* effect once per mount even under StrictMode double-invocation. Renders
|
|
50
|
+
* nothing and produces no user-visible text — the host page presents and
|
|
51
|
+
* announces the returned state in its own language.
|
|
52
|
+
*/
|
|
53
|
+
export declare const useOAuthCallbackCompletion: ({ searchParams, callbackPath, exchange, }: UseOAuthCallbackCompletionParams) => UseOAuthCallbackCompletionResult;
|
|
54
|
+
//# sourceMappingURL=useOAuthCallbackCompletion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOAuthCallbackCompletion.d.ts","sourceRoot":"","sources":["../../../src/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,uBAAuB,EAGvB,yBAAyB,EAE1B,MAAM,UAAU,CAAC;AAIlB,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,iFAAiF;IACjF,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAED,yDAAyD;AACzD,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,YAAY,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,EAAE,CACR,MAAM,EAAE,mBAAmB,KACxB,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;CAChD;AAED,oFAAoF;AACpF,MAAM,WAAW,gCAAgC;IAC/C,mDAAmD;IACnD,YAAY,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,aAAa,EAAE,yBAAyB,GAAG,IAAI,CAAC;CACjD;AA2ED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,GAAI,2CAIxC,gCAAgC,KAAG,gCAmGrC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DialToolsetDto, ToolsetLoginBodyDto, ToolsetLogoutBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
import { ToolsetOAuthSettings } from '../models';
|
|
3
|
+
import { ToolsetAuthTypes, ToolsetCredentialsLevel } from '../types';
|
|
4
|
+
/** Terminal outcome kinds `login` can resolve. */
|
|
5
|
+
export declare enum ToolsetLoginOutcomeType {
|
|
6
|
+
Success = "success",
|
|
7
|
+
Failure = "failure",
|
|
8
|
+
PopupBlocked = "popup-blocked",
|
|
9
|
+
Cancelled = "cancelled"
|
|
10
|
+
}
|
|
11
|
+
/** Discriminated outcome of one login attempt. */
|
|
12
|
+
export interface ToolsetLoginOutcome {
|
|
13
|
+
/** Which terminal branch the attempt resolved through. */
|
|
14
|
+
type: ToolsetLoginOutcomeType;
|
|
15
|
+
}
|
|
16
|
+
/** Arguments for one `login` call. */
|
|
17
|
+
export interface ToolsetLoginParams {
|
|
18
|
+
/** Already-encoded toolset id/url, as returned by `listToolsets`/`getToolset`. */
|
|
19
|
+
toolsetId: string;
|
|
20
|
+
/** Credentials level the submitted credentials apply to. */
|
|
21
|
+
credentialsLevel: ToolsetCredentialsLevel;
|
|
22
|
+
/** Authentication mechanism the toolset requires. */
|
|
23
|
+
authenticationType: ToolsetAuthTypes;
|
|
24
|
+
/** Required for `ToolsetAuthTypes.ApiKey`. */
|
|
25
|
+
apiKey?: string;
|
|
26
|
+
/** Required for `ToolsetAuthTypes.OAuth`. */
|
|
27
|
+
oauthSettings?: ToolsetOAuthSettings;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the target level's cached status is currently `FAILED` — API key
|
|
30
|
+
* logins log that level out first when true. Ignored when `forceStale` is
|
|
31
|
+
* set, and never consulted for OAuth (OAuth does not log out before
|
|
32
|
+
* retrying).
|
|
33
|
+
*/
|
|
34
|
+
isCurrentlyFailed?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Always logs out the target level first (for both API key and OAuth)
|
|
37
|
+
* regardless of the cached status — set by callers reacting to a
|
|
38
|
+
* DIAL-Core-pushed `toolset/signin` event, which is proof the cached
|
|
39
|
+
* status may be stale even when it still reads `SIGNED_IN`.
|
|
40
|
+
*/
|
|
41
|
+
forceStale?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the user agreed an application may use this credential while they
|
|
44
|
+
* are away. DIAL Core gates every on-behalf-of mint on it, so a toolset
|
|
45
|
+
* signed in without it works interactively and still fails with
|
|
46
|
+
* `consent-required` in the background. Absent means not granted.
|
|
47
|
+
*/
|
|
48
|
+
offlineUsageConsent?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/** Parameters for {@link useToolsetLogin}. */
|
|
51
|
+
export interface UseToolsetLoginParams {
|
|
52
|
+
/**
|
|
53
|
+
* The host's OAuth callback route. Resolved against `window.location.origin`
|
|
54
|
+
* for the `redirect_uri`, and compared against the popup's pathname when
|
|
55
|
+
* reading a completion marker out of its URL.
|
|
56
|
+
*/
|
|
57
|
+
callbackPath: string;
|
|
58
|
+
/** Submits credentials for one toolset at one credentials level. */
|
|
59
|
+
loginToolset: (toolsetId: string, body: ToolsetLoginBodyDto) => Promise<unknown>;
|
|
60
|
+
/** Clears stored credentials for one toolset at one credentials level. */
|
|
61
|
+
logoutToolset: (toolsetId: string, body: ToolsetLogoutBodyDto) => Promise<unknown>;
|
|
62
|
+
/** Re-reads a toolset so a reported cancellation can be checked against the backend. */
|
|
63
|
+
getToolset: (toolsetId: string) => Promise<DialToolsetDto>;
|
|
64
|
+
}
|
|
65
|
+
/** Result returned by {@link useToolsetLogin}. */
|
|
66
|
+
export interface UseToolsetLoginResult {
|
|
67
|
+
/** Runs one API-key or OAuth login attempt and resolves its outcome. */
|
|
68
|
+
login: (params: ToolsetLoginParams) => Promise<ToolsetLoginOutcome>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Shared toolset API-key/OAuth login orchestration, so no two surfaces fork
|
|
72
|
+
* the popup/`BroadcastChannel` handshake or the stale-credential-clearing
|
|
73
|
+
* rule. Every backend call arrives as an injected callback: the hook
|
|
74
|
+
* constructs no client instance and reads no app context. It resolves an
|
|
75
|
+
* outcome and shows nothing itself — mapping an outcome to notifications is
|
|
76
|
+
* the caller's job.
|
|
77
|
+
*/
|
|
78
|
+
export declare const useToolsetLogin: ({ callbackPath, loginToolset, logoutToolset, getToolset, }: UseToolsetLoginParams) => UseToolsetLoginResult;
|
|
79
|
+
//# sourceMappingURL=useToolsetLogin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToolsetLogin.d.ts","sourceRoot":"","sources":["../../../src/oauth/useToolsetLogin/useToolsetLogin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAOtD,OAAO,EAGL,gBAAgB,EAChB,uBAAuB,EAGxB,MAAM,UAAU,CAAC;AAElB,kDAAkD;AAClD,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,kBAAkB;IAC9B,SAAS,cAAc;CACxB;AAED,kDAAkD;AAClD,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,qDAAqD;IACrD,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,EAAE,CACZ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,mBAAmB,KACtB,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,0EAA0E;IAC1E,aAAa,EAAE,CACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,wFAAwF;IACxF,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5D;AAED,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC,wEAAwE;IACxE,KAAK,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACrE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,4DAK7B,qBAAqB,KAAG,qBAqL1B,CAAC"}
|