@epam/ai-dial-chat-hooks 1.3.0-dev.9 → 1.3.0-dev.90

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.
Files changed (455) hide show
  1. package/api-error/api-error.d.ts +30 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-transport/create-csrf-middleware.d.ts +15 -0
  4. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  5. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  7. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  8. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  9. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  10. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  11. package/attachments.d.ts +2 -94
  12. package/catalog/catalog-derivations.d.ts +27 -0
  13. package/catalog/catalog-derivations.d.ts.map +1 -0
  14. package/catalog/catalog-derivations.js +1 -1
  15. package/catalog/catalog-primary-action.d.ts +47 -0
  16. package/catalog/catalog-primary-action.d.ts.map +1 -0
  17. package/catalog/create-publish-api.d.ts +32 -0
  18. package/catalog/create-publish-api.d.ts.map +1 -0
  19. package/catalog/deployment-endpoint-url.d.ts +19 -0
  20. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  21. package/catalog/deployment-id.d.ts +42 -0
  22. package/catalog/deployment-id.d.ts.map +1 -0
  23. package/catalog/entity-details.d.ts +146 -0
  24. package/catalog/entity-details.d.ts.map +1 -0
  25. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  26. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  27. package/catalog/map-deployment-limits-to-input.d.ts +28 -0
  28. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  29. package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
  30. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  31. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  32. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  33. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  34. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  35. package/catalog/map-skill-to-catalog-item.d.ts +113 -0
  36. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  37. package/catalog/mcp-endpoint-url.d.ts +18 -0
  38. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  39. package/catalog/publish.d.ts +35 -0
  40. package/catalog/publish.d.ts.map +1 -0
  41. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  42. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  43. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +107 -0
  44. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  45. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +155 -119
  46. package/catalog/useCatalogItemDetails.d.ts +70 -0
  47. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  48. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  49. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  50. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  51. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  52. package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
  53. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  54. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  55. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  56. package/catalog/useSkillItemDetails.d.ts +64 -0
  57. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  58. package/catalog.d.ts +2 -1433
  59. package/conversation/announcement-message.d.ts +61 -0
  60. package/conversation/announcement-message.d.ts.map +1 -0
  61. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  62. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  63. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  64. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  65. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  66. package/conversation/conversation-transfer/async.d.ts +10 -0
  67. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  68. package/conversation/conversation-transfer/attachment-refs.d.ts +42 -0
  69. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  70. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  71. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  72. package/conversation/conversation-transfer/date.d.ts +5 -0
  73. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  74. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  75. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  76. package/conversation/conversation-transfer/export-conversation.d.ts +10 -0
  77. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  78. package/conversation/conversation-transfer/import-conversation.d.ts +106 -0
  79. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  80. package/conversation/conversation-transfer/progress.d.ts +60 -0
  81. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  82. package/conversation/conversation-transfer/queue.d.ts +54 -0
  83. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  84. package/conversation/conversation-transfer/types.d.ts +36 -0
  85. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  86. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  87. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  88. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  89. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  90. package/conversation/create-chat-stream-api.d.ts +92 -0
  91. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  92. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  93. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  94. package/conversation/display-name-watch.d.ts +4 -0
  95. package/conversation/display-name-watch.d.ts.map +1 -0
  96. package/conversation/footer-message.d.ts +10 -0
  97. package/conversation/footer-message.d.ts.map +1 -0
  98. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  99. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  100. package/conversation/get-model-id-from-conversation-id.js +1 -1
  101. package/conversation/greeting.d.ts +18 -0
  102. package/conversation/greeting.d.ts.map +1 -0
  103. package/conversation/message-factory.d.ts +7 -0
  104. package/conversation/message-factory.d.ts.map +1 -0
  105. package/conversation/message-utils.d.ts +67 -0
  106. package/conversation/message-utils.d.ts.map +1 -0
  107. package/conversation/overlay-messages.d.ts +5 -0
  108. package/conversation/overlay-messages.d.ts.map +1 -0
  109. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  110. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  111. package/conversation/stage.d.ts +77 -0
  112. package/conversation/stage.d.ts.map +1 -0
  113. package/conversation/starter-option.d.ts +21 -0
  114. package/conversation/starter-option.d.ts.map +1 -0
  115. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
  116. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  117. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  118. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  119. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  120. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  121. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  122. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  123. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +132 -0
  124. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  125. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  126. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  127. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  128. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  129. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  130. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  131. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  132. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  133. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  134. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  135. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  136. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  137. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  138. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  139. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  140. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +64 -0
  141. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  142. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  143. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  144. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  145. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  146. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  147. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  148. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  149. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  150. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  151. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  152. package/conversation/useConversationStream/generation-resume.d.ts +85 -0
  153. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  154. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  155. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  156. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  157. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  158. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  159. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  160. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  161. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  162. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  163. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  164. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
  165. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  166. package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
  167. package/conversation-overlay.d.ts +2 -7
  168. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  169. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  170. package/conversation-sources.d.ts +2 -25
  171. package/conversation-transfer.d.ts +2 -190
  172. package/conversation.d.ts +2 -1372
  173. package/conversation.js +34 -32
  174. package/entry-points/attachments.d.ts +3 -0
  175. package/entry-points/attachments.d.ts.map +1 -0
  176. package/entry-points/catalog.d.ts +25 -0
  177. package/entry-points/catalog.d.ts.map +1 -0
  178. package/entry-points/conversation-overlay.d.ts +2 -0
  179. package/entry-points/conversation-overlay.d.ts.map +1 -0
  180. package/entry-points/conversation-sources.d.ts +2 -0
  181. package/entry-points/conversation-sources.d.ts.map +1 -0
  182. package/entry-points/conversation-transfer.d.ts +7 -0
  183. package/entry-points/conversation-transfer.d.ts.map +1 -0
  184. package/entry-points/conversation.d.ts +36 -0
  185. package/entry-points/conversation.d.ts.map +1 -0
  186. package/entry-points/file-manager-canvas.d.ts +2 -0
  187. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  188. package/entry-points/file-manager.d.ts +31 -0
  189. package/entry-points/file-manager.d.ts.map +1 -0
  190. package/entry-points/mcp-apps.d.ts +6 -0
  191. package/entry-points/mcp-apps.d.ts.map +1 -0
  192. package/entry-points/oauth.d.ts +10 -0
  193. package/entry-points/oauth.d.ts.map +1 -0
  194. package/entry-points/offline-credentials.d.ts +5 -0
  195. package/entry-points/offline-credentials.d.ts.map +1 -0
  196. package/entry-points/scheduled-tasks.d.ts +9 -0
  197. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  198. package/entry-points/scroll-anchoring.d.ts +2 -0
  199. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  200. package/entry-points/sharing.d.ts +3 -0
  201. package/entry-points/sharing.d.ts.map +1 -0
  202. package/entry-points/skill-editor.d.ts +9 -0
  203. package/entry-points/skill-editor.d.ts.map +1 -0
  204. package/entry-points/skills-state.d.ts +2 -0
  205. package/entry-points/skills-state.d.ts.map +1 -0
  206. package/entry-points/source-content.d.ts +2 -0
  207. package/entry-points/source-content.d.ts.map +1 -0
  208. package/entry-points/usage-limits.d.ts +8 -0
  209. package/entry-points/usage-limits.d.ts.map +1 -0
  210. package/entry-points/usage.d.ts +3 -0
  211. package/entry-points/usage.d.ts.map +1 -0
  212. package/entry-points/utils.d.ts +17 -0
  213. package/entry-points/utils.d.ts.map +1 -0
  214. package/entry-points/viewport-layout.d.ts +4 -0
  215. package/entry-points/viewport-layout.d.ts.map +1 -0
  216. package/file-manager-canvas.d.ts +2 -418
  217. package/file-manager.d.ts +2 -1239
  218. package/file-manager.js +21 -21
  219. package/files/annotation.d.ts +10 -0
  220. package/files/annotation.d.ts.map +1 -0
  221. package/files/attachment-canvas.d.ts +123 -0
  222. package/files/attachment-canvas.d.ts.map +1 -0
  223. package/files/attachment-dto-to-display.d.ts +10 -0
  224. package/files/attachment-dto-to-display.d.ts.map +1 -0
  225. package/files/attachment-types.d.ts +21 -0
  226. package/files/attachment-types.d.ts.map +1 -0
  227. package/files/create-files-api.d.ts +52 -0
  228. package/files/create-files-api.d.ts.map +1 -0
  229. package/files/create-upload-file-with-progress.d.ts +24 -0
  230. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  231. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  232. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  233. package/files/dial-file-manager-mapping.util.d.ts +51 -0
  234. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  235. package/files/dial-file-manager-mapping.util.js +77 -62
  236. package/files/dial-file-manager-path.util.d.ts +48 -0
  237. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  238. package/files/dial-file-manager.model.d.ts +36 -0
  239. package/files/dial-file-manager.model.d.ts.map +1 -0
  240. package/files/dial-file-manager.types.d.ts +327 -0
  241. package/files/dial-file-manager.types.d.ts.map +1 -0
  242. package/files/dial-file-manager.types.js +1 -1
  243. package/files/dial-file-to-attachment.d.ts +26 -0
  244. package/files/dial-file-to-attachment.d.ts.map +1 -0
  245. package/files/dial-file.d.ts +17 -0
  246. package/files/dial-file.d.ts.map +1 -0
  247. package/files/dial-files-api.d.ts +71 -0
  248. package/files/dial-files-api.d.ts.map +1 -0
  249. package/files/download-destination.d.ts +31 -0
  250. package/files/download-destination.d.ts.map +1 -0
  251. package/files/file-manager-variant.d.ts +3 -0
  252. package/files/file-manager-variant.d.ts.map +1 -0
  253. package/files/file-name.d.ts +19 -0
  254. package/files/file-name.d.ts.map +1 -0
  255. package/files/prepare-download-destination.d.ts +8 -0
  256. package/files/prepare-download-destination.d.ts.map +1 -0
  257. package/files/resolve-dial-file-api-path.d.ts +12 -0
  258. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  259. package/files/source-content.d.ts +28 -0
  260. package/files/source-content.d.ts.map +1 -0
  261. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  262. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  263. package/files/useDialFileListing/useDialFileListing.js +64 -51
  264. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  265. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  266. package/files/useDialFileManager/useDialFileManager.js +3 -1
  267. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  268. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  269. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  270. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  271. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  272. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  273. package/files/useDialFileMutations/useDialFileMutations.d.ts +68 -0
  274. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  275. package/files/useDialFileMutations/useDialFileMutations.js +206 -204
  276. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  277. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  278. package/files/useDialFileSharing/useDialFileSharing.js +45 -39
  279. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  280. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  281. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +8 -4
  282. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  283. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  284. package/index.d.ts +167 -6976
  285. package/index.d.ts.map +1 -0
  286. package/index.js +115 -101
  287. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  288. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  289. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  290. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  291. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
  292. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  293. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  294. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  295. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  296. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  297. package/mcp-apps.d.ts +2 -256
  298. package/oauth/authorize-url.d.ts +16 -0
  299. package/oauth/authorize-url.d.ts.map +1 -0
  300. package/oauth/handshake.d.ts +30 -0
  301. package/oauth/handshake.d.ts.map +1 -0
  302. package/oauth/models.d.ts +81 -0
  303. package/oauth/models.d.ts.map +1 -0
  304. package/oauth/popup.d.ts +30 -0
  305. package/oauth/popup.d.ts.map +1 -0
  306. package/oauth/popup.js +19 -17
  307. package/oauth/toolset-id.d.ts +53 -0
  308. package/oauth/toolset-id.d.ts.map +1 -0
  309. package/oauth/types.d.ts +84 -0
  310. package/oauth/types.d.ts.map +1 -0
  311. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  312. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  313. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +40 -38
  314. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  315. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  316. package/oauth.d.ts +2 -472
  317. package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
  318. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  319. package/offline-credentials/map-offline-credentials-response.js +15 -0
  320. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  321. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  322. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  323. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
  324. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  325. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
  326. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  327. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  328. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  329. package/offline-credentials.d.ts +2 -0
  330. package/offline-credentials.js +5 -0
  331. package/package.json +31 -17
  332. package/prompt/export-prompt.d.ts +31 -0
  333. package/prompt/export-prompt.d.ts.map +1 -0
  334. package/prompt/prompt-resource.d.ts +30 -0
  335. package/prompt/prompt-resource.d.ts.map +1 -0
  336. package/prompt/prompt.d.ts +34 -0
  337. package/prompt/prompt.d.ts.map +1 -0
  338. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  339. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  340. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  341. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  342. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  343. package/scheduled-task/scheduled-task-description.d.ts +38 -0
  344. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  345. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  346. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  347. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  348. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  349. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  350. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  351. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  352. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  353. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  354. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  355. package/scheduled-task/use-scheduled-task-runs.js +67 -67
  356. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  357. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  358. package/scheduled-tasks.d.ts +2 -250
  359. package/scheduled-tasks.js +2 -1
  360. package/scroll-anchoring.d.ts +2 -50
  361. package/shared/application-schema.d.ts +16 -0
  362. package/shared/application-schema.d.ts.map +1 -0
  363. package/shared/browser-timezone.d.ts +7 -0
  364. package/shared/browser-timezone.d.ts.map +1 -0
  365. package/shared/cron-day-of-month.d.ts +21 -0
  366. package/shared/cron-day-of-month.d.ts.map +1 -0
  367. package/shared/cron-weekday.d.ts +5 -0
  368. package/shared/cron-weekday.d.ts.map +1 -0
  369. package/shared/custom-apps.d.ts +7 -0
  370. package/shared/custom-apps.d.ts.map +1 -0
  371. package/shared/external-services.d.ts +16 -0
  372. package/shared/external-services.d.ts.map +1 -0
  373. package/shared/formatting.d.ts +5 -0
  374. package/shared/formatting.d.ts.map +1 -0
  375. package/shared/locale.d.ts +45 -0
  376. package/shared/locale.d.ts.map +1 -0
  377. package/shared/string-utils.d.ts +11 -0
  378. package/shared/string-utils.d.ts.map +1 -0
  379. package/shared/toolset-login-events.d.ts +15 -0
  380. package/shared/toolset-login-events.d.ts.map +1 -0
  381. package/sharing.d.ts +2 -65
  382. package/skill/skill-archive.d.ts +7 -0
  383. package/skill/skill-archive.d.ts.map +1 -0
  384. package/skill/skill-file-batch-validation.d.ts +70 -0
  385. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  386. package/skill/skill-file-preview.d.ts +25 -0
  387. package/skill/skill-file-preview.d.ts.map +1 -0
  388. package/skill/skill-manifest.d.ts +28 -0
  389. package/skill/skill-manifest.d.ts.map +1 -0
  390. package/skill/skill-types.d.ts +46 -0
  391. package/skill/skill-types.d.ts.map +1 -0
  392. package/skill/skill.d.ts +160 -0
  393. package/skill/skill.d.ts.map +1 -0
  394. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  395. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  396. package/skill/useSkillEditorLoad.d.ts +74 -0
  397. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  398. package/skill/useSkillEditorSubmit.d.ts +125 -0
  399. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  400. package/skill/useSkillFileActions.d.ts +60 -0
  401. package/skill/useSkillFileActions.d.ts.map +1 -0
  402. package/skill/useSkillFilePreview.d.ts +38 -0
  403. package/skill/useSkillFilePreview.d.ts.map +1 -0
  404. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  405. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  406. package/skill-editor.d.ts +2 -655
  407. package/skills-state.d.ts +2 -40
  408. package/source-content.d.ts +2 -29
  409. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  410. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  411. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  412. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  413. package/usage/usage-banner-source.d.ts +23 -0
  414. package/usage/usage-banner-source.d.ts.map +1 -0
  415. package/usage/usage-banner-source.js +36 -0
  416. package/usage/usage-period.d.ts +7 -0
  417. package/usage/usage-period.d.ts.map +1 -0
  418. package/usage/usage-period.js +6 -0
  419. package/usage/usage-reset-time.d.ts +69 -0
  420. package/usage/usage-reset-time.d.ts.map +1 -0
  421. package/usage/usage-reset-time.js +72 -0
  422. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +32 -0
  423. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  424. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +39 -0
  425. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  426. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  427. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  428. package/usage/useUsageData/useUsageData.d.ts +28 -0
  429. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  430. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +56 -0
  431. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  432. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +67 -0
  433. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  434. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  435. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  436. package/usage-limits.d.ts +2 -0
  437. package/usage-limits.js +8 -0
  438. package/usage.d.ts +2 -125
  439. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
  440. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  441. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  442. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  443. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  444. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  445. package/useShareLink/useShareLink.d.ts +23 -0
  446. package/useShareLink/useShareLink.d.ts.map +1 -0
  447. package/useShareLink/useShareLink.js +1 -0
  448. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  449. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  450. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  451. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  452. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  453. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  454. package/utils.d.ts +2 -404
  455. package/viewport-layout.d.ts +2 -27
@@ -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":"AAGA,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;AAqFD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,GAAI,2CAIxC,gCAAgC,KAAG,gCAqGrC,CAAC"}
@@ -1,22 +1,27 @@
1
1
  import { TOOLSET_REDIRECT_STATE_KEY as e, ToolsetCredentialsLevel as t, ToolsetOAuthCallbackQuery as n, ToolsetOAuthChannelControlType as r, ToolsetOAuthFailureReason as i, ToolsetOAuthResultType as a } from "../types.js";
2
2
  import { getToolsetOAuthChannelName as o } from "../handshake.js";
3
- import { useEffect as s, useRef as c, useState as l } from "react";
3
+ import { decodeJsonFromBase64 as s } from "@epam/ai-dial-chat-shared";
4
+ import { useEffect as c, useRef as l, useState as u } from "react";
4
5
  //#region src/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.ts
5
- var u = 500, d = (e) => typeof e == "object" && !!e && "type" in e && e.type === r.ResultAcknowledged, f = () => {
6
+ var d = 500, f = (e) => typeof e == "object" && !!e && "type" in e && e.type === r.ResultAcknowledged, p = () => {
6
7
  let t = sessionStorage.getItem(e);
7
8
  if (!t) return null;
8
9
  try {
9
- return JSON.parse(t);
10
+ return s(t);
10
11
  } catch {
11
- return null;
12
+ try {
13
+ return JSON.parse(t);
14
+ } catch {
15
+ return null;
16
+ }
12
17
  }
13
- }, p = (e) => {
18
+ }, m = (e) => {
14
19
  try {
15
20
  window.history.replaceState({}, document.title, `${e.pathname}${e.search}`);
16
21
  } catch {}
17
- }, m = (e, t) => {
22
+ }, h = (e, t) => {
18
23
  let r = new URL(window.location.pathname, window.location.origin);
19
- if (r.searchParams.set(n.Result, t.type), t.type === a.Failure && r.searchParams.set(n.FailureReason, t.reason), p(r), !e) {
24
+ if (r.searchParams.set(n.Result, t.type), t.type === a.Failure && r.searchParams.set(n.FailureReason, t.reason), m(r), !e) {
20
25
  window.close();
21
26
  return;
22
27
  }
@@ -25,70 +30,67 @@ var u = 500, d = (e) => typeof e == "object" && !!e && "type" in e && e.type ===
25
30
  n.postMessage(t);
26
31
  let r = setInterval(() => {
27
32
  n.postMessage(t);
28
- }, u);
33
+ }, d);
29
34
  n.onmessage = (e) => {
30
- d(e.data) && (clearInterval(r), n.close(), window.close());
35
+ f(e.data) && (clearInterval(r), n.close(), window.close());
31
36
  };
32
37
  } catch {}
33
- }, h = ({ searchParams: n, callbackPath: r, exchange: o }) => {
34
- let [u, d] = l(!0), [h, g] = l(null), _ = c(!1), v = c(o);
38
+ }, g = ({ searchParams: n, callbackPath: r, exchange: o }) => {
39
+ let [s, d] = u(!0), [f, g] = u(null), _ = l(!1), v = l(o);
35
40
  v.current = o;
36
- let y = c(r);
37
- return y.current = r, s(() => {
38
- if (_.current) return;
39
- _.current = !0;
40
- let r = (e, t) => {
41
- m(e, t), d(!1), g(t.type === a.Failure ? t.reason : null);
42
- };
43
- (async () => {
44
- let o = n.get("code"), s = n.get("state"), c = f();
41
+ let y = l(r);
42
+ return y.current = r, c(() => {
43
+ _.current || (_.current = !0, (async () => {
44
+ let r = n.get("code"), o = n.get("state"), s = p();
45
45
  sessionStorage.removeItem(e);
46
- let l = c?.state ?? s ?? void 0;
47
- if (p(new URL(window.location.pathname, window.location.origin)), !o || !c?.toolsetId) {
48
- r(l, {
46
+ let c = s?.state ?? o ?? void 0, l = (e, t) => {
47
+ h(e, t), d(!1), g(t.type === a.Failure ? t.reason : null);
48
+ };
49
+ if (m(new URL(window.location.pathname, window.location.origin)), !r || !s?.toolsetId) {
50
+ l(c, {
49
51
  type: a.Failure,
50
- reason: c?.toolsetId ? i.MissingCode : i.MissingRedirectState
52
+ reason: s?.toolsetId ? i.MissingCode : i.MissingRedirectState
51
53
  });
52
54
  return;
53
55
  }
54
- if (c.state != null && c.state !== s) {
55
- r(l, {
56
+ if (s.state != null && s.state !== o) {
57
+ l(c, {
56
58
  type: a.Failure,
57
59
  reason: i.StateMismatch
58
60
  });
59
61
  return;
60
62
  }
61
- let u = c.credentialsLevel ?? t.User, d = c.redirectUri ?? `${window.location.origin}${y.current}`;
63
+ let u = s.credentialsLevel ?? t.User, f = s.redirectUri ?? `${window.location.origin}${y.current}`;
62
64
  try {
63
65
  let e = await v.current({
64
- code: o,
65
- redirectUri: d,
66
+ code: r,
67
+ redirectUri: f,
66
68
  credentialsLevel: u,
67
- redirectState: c
69
+ redirectState: s
68
70
  });
69
71
  if (e != null) {
70
- r(l, {
72
+ l(c, {
71
73
  type: a.Failure,
72
74
  reason: e
73
75
  });
74
76
  return;
75
77
  }
76
- r(l, {
78
+ l(c, {
77
79
  type: a.Success,
78
- toolsetId: c.toolsetId,
80
+ toolsetId: s.toolsetId,
79
81
  credentialsLevel: u
80
82
  });
81
83
  } catch {
82
- r(l, {
84
+ l(c, {
83
85
  type: a.Failure,
84
86
  reason: i.LoginRequestFailed
85
87
  });
86
88
  }
87
- })();
89
+ })());
88
90
  }, [n]), {
89
- isInProgress: u,
90
- failureReason: h
91
+ isInProgress: s,
92
+ failureReason: f
91
93
  };
92
94
  };
93
95
  //#endregion
94
- export { h as useOAuthCallbackCompletion };
96
+ export { g as useOAuthCallbackCompletion };
@@ -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"}