@epam/ai-dial-chat-hooks 1.3.0-dev.10 → 1.3.0-dev.102

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 (458) 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 +98 -0
  91. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  92. package/conversation/create-chat-stream-api.js +28 -23
  93. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  94. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  95. package/conversation/display-name-watch.d.ts +4 -0
  96. package/conversation/display-name-watch.d.ts.map +1 -0
  97. package/conversation/footer-message.d.ts +10 -0
  98. package/conversation/footer-message.d.ts.map +1 -0
  99. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  100. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  101. package/conversation/get-model-id-from-conversation-id.js +1 -1
  102. package/conversation/greeting.d.ts +18 -0
  103. package/conversation/greeting.d.ts.map +1 -0
  104. package/conversation/message-factory.d.ts +7 -0
  105. package/conversation/message-factory.d.ts.map +1 -0
  106. package/conversation/message-utils.d.ts +67 -0
  107. package/conversation/message-utils.d.ts.map +1 -0
  108. package/conversation/overlay-messages.d.ts +5 -0
  109. package/conversation/overlay-messages.d.ts.map +1 -0
  110. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  111. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  112. package/conversation/stage.d.ts +77 -0
  113. package/conversation/stage.d.ts.map +1 -0
  114. package/conversation/starter-option.d.ts +21 -0
  115. package/conversation/starter-option.d.ts.map +1 -0
  116. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
  117. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  118. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  119. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  120. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  121. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  122. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  123. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  124. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +132 -0
  125. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  126. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  127. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  128. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  129. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  130. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  131. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  132. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  133. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  134. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  135. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  136. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  137. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  138. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  139. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  140. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  141. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +64 -0
  142. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  143. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  144. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  145. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  146. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  147. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  148. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  149. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  150. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  151. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  152. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  153. package/conversation/useConversationStream/generation-resume.d.ts +85 -0
  154. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  155. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  156. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  157. package/conversation/useConversationStream/useConversationStream.js +233 -219
  158. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  159. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  160. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  161. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  162. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  163. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  164. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  165. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  166. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
  167. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  168. package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
  169. package/conversation-overlay.d.ts +2 -7
  170. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  171. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  172. package/conversation-sources.d.ts +2 -25
  173. package/conversation-transfer.d.ts +2 -190
  174. package/conversation.d.ts +2 -1372
  175. package/conversation.js +34 -32
  176. package/entry-points/attachments.d.ts +3 -0
  177. package/entry-points/attachments.d.ts.map +1 -0
  178. package/entry-points/catalog.d.ts +25 -0
  179. package/entry-points/catalog.d.ts.map +1 -0
  180. package/entry-points/conversation-overlay.d.ts +2 -0
  181. package/entry-points/conversation-overlay.d.ts.map +1 -0
  182. package/entry-points/conversation-sources.d.ts +2 -0
  183. package/entry-points/conversation-sources.d.ts.map +1 -0
  184. package/entry-points/conversation-transfer.d.ts +7 -0
  185. package/entry-points/conversation-transfer.d.ts.map +1 -0
  186. package/entry-points/conversation.d.ts +36 -0
  187. package/entry-points/conversation.d.ts.map +1 -0
  188. package/entry-points/file-manager-canvas.d.ts +2 -0
  189. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  190. package/entry-points/file-manager.d.ts +31 -0
  191. package/entry-points/file-manager.d.ts.map +1 -0
  192. package/entry-points/mcp-apps.d.ts +6 -0
  193. package/entry-points/mcp-apps.d.ts.map +1 -0
  194. package/entry-points/oauth.d.ts +10 -0
  195. package/entry-points/oauth.d.ts.map +1 -0
  196. package/entry-points/offline-credentials.d.ts +5 -0
  197. package/entry-points/offline-credentials.d.ts.map +1 -0
  198. package/entry-points/scheduled-tasks.d.ts +9 -0
  199. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  200. package/entry-points/scroll-anchoring.d.ts +2 -0
  201. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  202. package/entry-points/sharing.d.ts +3 -0
  203. package/entry-points/sharing.d.ts.map +1 -0
  204. package/entry-points/skill-editor.d.ts +9 -0
  205. package/entry-points/skill-editor.d.ts.map +1 -0
  206. package/entry-points/skills-state.d.ts +2 -0
  207. package/entry-points/skills-state.d.ts.map +1 -0
  208. package/entry-points/source-content.d.ts +2 -0
  209. package/entry-points/source-content.d.ts.map +1 -0
  210. package/entry-points/usage-limits.d.ts +8 -0
  211. package/entry-points/usage-limits.d.ts.map +1 -0
  212. package/entry-points/usage.d.ts +3 -0
  213. package/entry-points/usage.d.ts.map +1 -0
  214. package/entry-points/utils.d.ts +17 -0
  215. package/entry-points/utils.d.ts.map +1 -0
  216. package/entry-points/viewport-layout.d.ts +4 -0
  217. package/entry-points/viewport-layout.d.ts.map +1 -0
  218. package/file-manager-canvas.d.ts +2 -418
  219. package/file-manager.d.ts +2 -1239
  220. package/file-manager.js +21 -21
  221. package/files/annotation.d.ts +10 -0
  222. package/files/annotation.d.ts.map +1 -0
  223. package/files/attachment-canvas.d.ts +123 -0
  224. package/files/attachment-canvas.d.ts.map +1 -0
  225. package/files/attachment-dto-to-display.d.ts +10 -0
  226. package/files/attachment-dto-to-display.d.ts.map +1 -0
  227. package/files/attachment-types.d.ts +21 -0
  228. package/files/attachment-types.d.ts.map +1 -0
  229. package/files/create-files-api.d.ts +52 -0
  230. package/files/create-files-api.d.ts.map +1 -0
  231. package/files/create-upload-file-with-progress.d.ts +24 -0
  232. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  233. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  234. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  235. package/files/dial-file-manager-mapping.util.d.ts +51 -0
  236. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  237. package/files/dial-file-manager-mapping.util.js +77 -62
  238. package/files/dial-file-manager-path.util.d.ts +48 -0
  239. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  240. package/files/dial-file-manager.model.d.ts +36 -0
  241. package/files/dial-file-manager.model.d.ts.map +1 -0
  242. package/files/dial-file-manager.types.d.ts +327 -0
  243. package/files/dial-file-manager.types.d.ts.map +1 -0
  244. package/files/dial-file-manager.types.js +1 -1
  245. package/files/dial-file-to-attachment.d.ts +26 -0
  246. package/files/dial-file-to-attachment.d.ts.map +1 -0
  247. package/files/dial-file.d.ts +17 -0
  248. package/files/dial-file.d.ts.map +1 -0
  249. package/files/dial-files-api.d.ts +71 -0
  250. package/files/dial-files-api.d.ts.map +1 -0
  251. package/files/download-destination.d.ts +31 -0
  252. package/files/download-destination.d.ts.map +1 -0
  253. package/files/file-manager-variant.d.ts +3 -0
  254. package/files/file-manager-variant.d.ts.map +1 -0
  255. package/files/file-name.d.ts +19 -0
  256. package/files/file-name.d.ts.map +1 -0
  257. package/files/prepare-download-destination.d.ts +8 -0
  258. package/files/prepare-download-destination.d.ts.map +1 -0
  259. package/files/resolve-dial-file-api-path.d.ts +12 -0
  260. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  261. package/files/source-content.d.ts +28 -0
  262. package/files/source-content.d.ts.map +1 -0
  263. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  264. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  265. package/files/useDialFileListing/useDialFileListing.js +64 -51
  266. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  267. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  268. package/files/useDialFileManager/useDialFileManager.js +3 -1
  269. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  270. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  271. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  272. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  273. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  274. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  275. package/files/useDialFileMutations/useDialFileMutations.d.ts +68 -0
  276. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  277. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  278. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  279. package/files/useDialFileSharing/useDialFileSharing.js +45 -39
  280. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  281. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  282. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +8 -4
  283. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  284. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  285. package/index.d.ts +167 -6976
  286. package/index.d.ts.map +1 -0
  287. package/index.js +115 -101
  288. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  289. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  290. package/mcp-apps/mcp-apps-api-client.js +18 -17
  291. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  292. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  293. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
  294. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  295. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  296. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  297. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +29 -29
  298. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  299. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  300. package/mcp-apps.d.ts +2 -256
  301. package/oauth/authorize-url.d.ts +16 -0
  302. package/oauth/authorize-url.d.ts.map +1 -0
  303. package/oauth/handshake.d.ts +30 -0
  304. package/oauth/handshake.d.ts.map +1 -0
  305. package/oauth/models.d.ts +81 -0
  306. package/oauth/models.d.ts.map +1 -0
  307. package/oauth/popup.d.ts +30 -0
  308. package/oauth/popup.d.ts.map +1 -0
  309. package/oauth/popup.js +19 -17
  310. package/oauth/toolset-id.d.ts +53 -0
  311. package/oauth/toolset-id.d.ts.map +1 -0
  312. package/oauth/types.d.ts +84 -0
  313. package/oauth/types.d.ts.map +1 -0
  314. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  315. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  316. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +40 -38
  317. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  318. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  319. package/oauth.d.ts +2 -472
  320. package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
  321. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  322. package/offline-credentials/map-offline-credentials-response.js +15 -0
  323. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  324. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  325. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  326. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
  327. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  328. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
  329. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  330. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  331. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  332. package/offline-credentials.d.ts +2 -0
  333. package/offline-credentials.js +5 -0
  334. package/package.json +31 -17
  335. package/prompt/export-prompt.d.ts +31 -0
  336. package/prompt/export-prompt.d.ts.map +1 -0
  337. package/prompt/prompt-resource.d.ts +30 -0
  338. package/prompt/prompt-resource.d.ts.map +1 -0
  339. package/prompt/prompt.d.ts +34 -0
  340. package/prompt/prompt.d.ts.map +1 -0
  341. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  342. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  343. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  344. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  345. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  346. package/scheduled-task/scheduled-task-description.d.ts +38 -0
  347. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  348. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  349. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  350. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  351. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  352. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  353. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  354. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  355. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  356. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  357. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  358. package/scheduled-task/use-scheduled-task-runs.js +67 -67
  359. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  360. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  361. package/scheduled-tasks.d.ts +2 -250
  362. package/scheduled-tasks.js +2 -1
  363. package/scroll-anchoring.d.ts +2 -50
  364. package/shared/application-schema.d.ts +16 -0
  365. package/shared/application-schema.d.ts.map +1 -0
  366. package/shared/browser-timezone.d.ts +7 -0
  367. package/shared/browser-timezone.d.ts.map +1 -0
  368. package/shared/cron-day-of-month.d.ts +21 -0
  369. package/shared/cron-day-of-month.d.ts.map +1 -0
  370. package/shared/cron-weekday.d.ts +5 -0
  371. package/shared/cron-weekday.d.ts.map +1 -0
  372. package/shared/custom-apps.d.ts +7 -0
  373. package/shared/custom-apps.d.ts.map +1 -0
  374. package/shared/external-services.d.ts +16 -0
  375. package/shared/external-services.d.ts.map +1 -0
  376. package/shared/formatting.d.ts +5 -0
  377. package/shared/formatting.d.ts.map +1 -0
  378. package/shared/locale.d.ts +45 -0
  379. package/shared/locale.d.ts.map +1 -0
  380. package/shared/string-utils.d.ts +11 -0
  381. package/shared/string-utils.d.ts.map +1 -0
  382. package/shared/toolset-login-events.d.ts +15 -0
  383. package/shared/toolset-login-events.d.ts.map +1 -0
  384. package/sharing.d.ts +2 -65
  385. package/skill/skill-archive.d.ts +7 -0
  386. package/skill/skill-archive.d.ts.map +1 -0
  387. package/skill/skill-file-batch-validation.d.ts +70 -0
  388. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  389. package/skill/skill-file-preview.d.ts +25 -0
  390. package/skill/skill-file-preview.d.ts.map +1 -0
  391. package/skill/skill-manifest.d.ts +28 -0
  392. package/skill/skill-manifest.d.ts.map +1 -0
  393. package/skill/skill-types.d.ts +46 -0
  394. package/skill/skill-types.d.ts.map +1 -0
  395. package/skill/skill.d.ts +160 -0
  396. package/skill/skill.d.ts.map +1 -0
  397. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  398. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  399. package/skill/useSkillEditorLoad.d.ts +74 -0
  400. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  401. package/skill/useSkillEditorSubmit.d.ts +125 -0
  402. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  403. package/skill/useSkillFileActions.d.ts +60 -0
  404. package/skill/useSkillFileActions.d.ts.map +1 -0
  405. package/skill/useSkillFilePreview.d.ts +38 -0
  406. package/skill/useSkillFilePreview.d.ts.map +1 -0
  407. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  408. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  409. package/skill-editor.d.ts +2 -655
  410. package/skills-state.d.ts +2 -40
  411. package/source-content.d.ts +2 -29
  412. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  413. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  414. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  415. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  416. package/usage/usage-banner-source.d.ts +23 -0
  417. package/usage/usage-banner-source.d.ts.map +1 -0
  418. package/usage/usage-banner-source.js +36 -0
  419. package/usage/usage-period.d.ts +7 -0
  420. package/usage/usage-period.d.ts.map +1 -0
  421. package/usage/usage-period.js +6 -0
  422. package/usage/usage-reset-time.d.ts +69 -0
  423. package/usage/usage-reset-time.d.ts.map +1 -0
  424. package/usage/usage-reset-time.js +72 -0
  425. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +32 -0
  426. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  427. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +39 -0
  428. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  429. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  430. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  431. package/usage/useUsageData/useUsageData.d.ts +28 -0
  432. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  433. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +56 -0
  434. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  435. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +67 -0
  436. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  437. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  438. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  439. package/usage-limits.d.ts +2 -0
  440. package/usage-limits.js +8 -0
  441. package/usage.d.ts +2 -125
  442. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
  443. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  444. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  445. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  446. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  447. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  448. package/useShareLink/useShareLink.d.ts +23 -0
  449. package/useShareLink/useShareLink.d.ts.map +1 -0
  450. package/useShareLink/useShareLink.js +1 -0
  451. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  452. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  453. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  454. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  455. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  456. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  457. package/utils.d.ts +2 -404
  458. package/viewport-layout.d.ts +2 -27
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial-file-manager.types.d.ts","sourceRoot":"","sources":["../../src/files/dial-file-manager.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;;;GAIG;AACH,oBAAY,6BAA6B;IACvC,kGAAkG;IAClG,gBAAgB,qBAAqB;IACrC,gEAAgE;IAChE,kBAAkB,uBAAuB;IACzC,qDAAqD;IACrD,kBAAkB,uBAAuB;IACzC,mEAAmE;IACnE,kBAAkB,uBAAuB;IACzC,2DAA2D;IAC3D,mBAAmB,wBAAwB;IAC3C,2GAA2G;IAC3G,YAAY,iBAAiB;IAC7B,sHAAsH;IACtH,0BAA0B,+BAA+B;IACzD,+DAA+D;IAC/D,YAAY,iBAAiB;IAC7B,0EAA0E;IAC1E,YAAY,iBAAiB;IAC7B,0FAA0F;IAC1F,qBAAqB,0BAA0B;IAC/C,wEAAwE;IACxE,UAAU,eAAe;IACzB,wFAAwF;IACxF,mBAAmB,wB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C9D,sEAAsE;IACtE,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAEtC,oFAAoF;IACpF,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAE7B,iFAAiF;IACjF,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,kDAAkD;IAClD,WAAW,EAAE,OAAO,CAAC;IACrB,kGAAkG;IAClG,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACjD,uDAAuD;IACvD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,oGAAoG;IACpG,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,kDAAkD;IAClD,qBAAqB,EAAE,OAAO,CAAC;IAC/B,2FAA2F;IAC3F,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6GAA6G;IAC7G,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;;;;;;;;;OAUG;IACH,wBAAwB,EAAE,OAAO,CAAC;CACnC"}
@@ -4,7 +4,7 @@ var e = /* @__PURE__ */ function(e) {
4
4
  }({}), t = /* @__PURE__ */ function(e) {
5
5
  return e.Empty = "empty", e.ForbiddenSymbols = "forbiddenSymbols", e.ReservedName = "reservedName", e.TooLong = "tooLong", e.DuplicateName = "duplicateName", e;
6
6
  }({}), n = /* @__PURE__ */ function(e) {
7
- return e.FolderCreated = "folderCreated", e.FileRenamed = "fileRenamed", e.FileDownloaded = "fileDownloaded", e.FilesDownloaded = "filesDownloaded", e.FileCopied = "fileCopied", e.FilesCopied = "filesCopied", e.FileMoved = "fileMoved", e.FilesMoved = "filesMoved", e.FileDuplicated = "fileDuplicated", e.FilesDuplicated = "filesDuplicated", e;
7
+ return e.FolderCreated = "folderCreated", e.FileRenamed = "fileRenamed", e.FileDownloaded = "fileDownloaded", e.FilesDownloaded = "filesDownloaded", e.FileCopied = "fileCopied", e.FilesCopied = "filesCopied", e.FileMoved = "fileMoved", e.FilesMoved = "filesMoved", e.FileDuplicated = "fileDuplicated", e.FilesDuplicated = "filesDuplicated", e.FilesUnshared = "filesUnshared", e;
8
8
  }({});
9
9
  //#endregion
10
10
  export { e as FileManagerNotificationReason, t as FileNameValidationErrorReason, n as FileOperationKind };
@@ -0,0 +1,26 @@
1
+ import { Attachment } from '@epam/ai-dial-chat-shared';
2
+ import { DialFile } from '@epam/ai-dial-ui-kit';
3
+ /** Options for {@link dialFileToAttachment} and {@link dialFilesToAttachments}. */
4
+ export interface DialFileToAttachmentOptions {
5
+ /**
6
+ * Resolves an image attachment's `previewUrl` from its DIAL resource URL.
7
+ * Left unset, image attachments get no `previewUrl`. The host owns bucket/
8
+ * icon-path REST construction — this hook never builds those URLs itself.
9
+ */
10
+ resolvePreviewUrl?: (url: string) => string | undefined;
11
+ }
12
+ /**
13
+ * Converts a selected ui-kit file into the generic attachment contract.
14
+ * DIAL storage identifiers are resolved at the app edge so the input library
15
+ * remains unaware of buckets, server routes, and external file systems.
16
+ */
17
+ export declare const dialFileToAttachment: (file: DialFile, bucket: string, options?: DialFileToAttachmentOptions) => Attachment | null;
18
+ /** Maps a batch of selected DIAL files to attachments, dropping folders and unresolvable entries. */
19
+ export declare const dialFilesToAttachments: (files: DialFile[], bucket: string, options?: DialFileToAttachmentOptions) => Attachment[];
20
+ /**
21
+ * Converts a DIAL Core folder path (e.g. `files/{bucket}/{path}/`) into an
22
+ * attachment. DIAL Core resolves folder contents server-side when the path is
23
+ * sent as an attachment URL.
24
+ */
25
+ export declare const dialFolderPathToAttachment: (folderPath: string) => Attachment;
26
+ //# sourceMappingURL=dial-file-to-attachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial-file-to-attachment.d.ts","sourceRoot":"","sources":["../../src/files/dial-file-to-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAkBvE,mFAAmF;AACnF,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACzD;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,QAAQ,EACd,QAAQ,MAAM,EACd,UAAU,2BAA2B,KACpC,UAAU,GAAG,IAoBf,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,GACjC,OAAO,QAAQ,EAAE,EACjB,QAAQ,MAAM,EACd,UAAU,2BAA2B,KACpC,UAAU,EAG4D,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,KAAG,UAa/D,CAAC"}
@@ -0,0 +1,17 @@
1
+ /** True when `url` looks like a DIAL Core file id (`files/{bucket}/{path}`). */
2
+ export declare const isDialFileId: (url: string) => boolean;
3
+ /**
4
+ * Converts a DIAL file ID or full resource path to the relative bucket path
5
+ * expected by the files download API.
6
+ */
7
+ export declare const resolveRelativeDialFilePath: (pathOrFileId: string, bucket: string) => string;
8
+ /**
9
+ * Extracts the bucket and decoded relative path from a DIAL file ID
10
+ * (`files/{bucket}/{path}`). Returns `undefined` if the input does not start
11
+ * with `files/` or has no path segment after the bucket.
12
+ */
13
+ export declare const resolveDialFileBucketAndPath: (fileId: string) => {
14
+ bucket: string;
15
+ path: string;
16
+ } | undefined;
17
+ //# sourceMappingURL=dial-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial-file.d.ts","sourceRoot":"","sources":["../../src/files/dial-file.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,OAAmC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,cAAc,MAAM,EACpB,QAAQ,MAAM,KACb,MAmBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,KACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAcrC,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { ArchiveItemDto, CopyFilesResponseDto, CopyItemDto, CreateFolderDto, CreateFolderResponseDto, DeleteFilesResponseDto, DeleteItemDto, DiscardSharedItemDto, DiscardSharedResponseDto, FileMetadataResponseDto, FileUploadResponseDto, ListFilesResponseDto, ListPublicFilesRequest, ListSharedFilesRequest, MoveFilesResponseDto, MoveItemDto, RenameFilesResponseDto, RenameItemDto, RevokeAccessItemDto, RevokeAccessResponseDto, UploadArchiveResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Upload mode passed through to `DialFilesApi.uploadFile` — mirrors the BFF's `uploadMode` form field. */
3
+ export declare enum DialFilesApiUploadMode {
4
+ Overwrite = "overwrite",
5
+ CreateOnly = "create-only"
6
+ }
7
+ /** Options accepted by `DialFilesApi.uploadFile` beyond an already-created `AbortSignal`. */
8
+ export interface DialFilesApiUploadOptions {
9
+ /** Aborts the in-flight upload when triggered. */
10
+ signal?: AbortSignal;
11
+ /** Called with the 0–100 upload progress percentage when the transport reports byte progress. */
12
+ onProgress?: (percent: number) => void;
13
+ /** Controls create-only vs. overwrite semantics for the destination path. */
14
+ uploadMode?: DialFilesApiUploadMode;
15
+ }
16
+ /**
17
+ * Operation port every file-manager hook that performs network I/O accepts as
18
+ * a parameter, replacing direct `server-api/files.api` access. Mirrors
19
+ * `apps/chat/src/server-api/files.api.ts`'s exact function signatures — not
20
+ * the generated client's own method shapes — since that file wraps
21
+ * `uploadFile`/`uploadArchive` with custom XHR-based progress/cancellation
22
+ * that has no equivalent in the generated client.
23
+ */
24
+ export interface DialFilesApi {
25
+ /** Lists files/folders directly under `params.path` within `params.bucket`. */
26
+ listFiles(params: {
27
+ bucket: string;
28
+ path?: string;
29
+ token?: string;
30
+ limit?: number;
31
+ recursive?: boolean;
32
+ permissions?: boolean;
33
+ }, signal?: AbortSignal): Promise<ListFilesResponseDto>;
34
+ /** Lists files/folders under the organization's public root. */
35
+ listPublicFiles(params: ListPublicFilesRequest): Promise<ListFilesResponseDto>;
36
+ /** Lists files/folders shared with the current user. */
37
+ listSharedFiles(params: ListSharedFilesRequest): Promise<ListFilesResponseDto>;
38
+ /** Lists items the current user has shared with others, from their own bucket. */
39
+ listSharedByMe(bucket: string): Promise<ListFilesResponseDto>;
40
+ /** Fetches metadata for a single file or folder. */
41
+ getFileMetadata(params: {
42
+ bucket: string;
43
+ path: string;
44
+ }): Promise<FileMetadataResponseDto>;
45
+ /**
46
+ * Uploads a file, reporting progress via `options.onProgress` when supplied
47
+ * and honoring cancellation via `options.signal` or a bare `AbortSignal`.
48
+ */
49
+ uploadFile(bucket: string, path: string, file: File, options?: AbortSignal | DialFilesApiUploadOptions): Promise<FileUploadResponseDto>;
50
+ /** Uploads a ZIP archive and extracts its entries under `destinationPath`. */
51
+ uploadArchive(file: File, bucket: string, destinationPath: string): Promise<UploadArchiveResponseDto>;
52
+ /** Creates a new folder. */
53
+ createFolder(params: CreateFolderDto): Promise<CreateFolderResponseDto>;
54
+ /** Deletes one or more files/folders. */
55
+ deleteFiles(items: DeleteItemDto[]): Promise<DeleteFilesResponseDto>;
56
+ /** Renames one or more files/folders in place (same parent folder). */
57
+ renameFiles(items: RenameItemDto[]): Promise<RenameFilesResponseDto>;
58
+ /** Copies one or more files/folders to a destination path. */
59
+ copyFiles(items: CopyItemDto[], signal?: AbortSignal): Promise<CopyFilesResponseDto>;
60
+ /** Moves one or more files/folders to a destination path (different parent folder). */
61
+ moveFiles(items: MoveItemDto[], signal?: AbortSignal): Promise<MoveFilesResponseDto>;
62
+ /** Downloads a single file, returning the raw fetch `Response`. */
63
+ downloadFile(bucket: string, path: string, signal?: AbortSignal): Promise<Response>;
64
+ /** Downloads a ZIP archive of the given items, returning the raw fetch `Response`. */
65
+ downloadArchive(items: ArchiveItemDto[]): Promise<Response>;
66
+ /** Revokes access previously granted on the given owned items. */
67
+ revokeAccess(items: RevokeAccessItemDto[]): Promise<RevokeAccessResponseDto>;
68
+ /** Discards items shared with the current user. */
69
+ discardShared(items: DiscardSharedItemDto[]): Promise<DiscardSharedResponseDto>;
70
+ }
71
+ //# sourceMappingURL=dial-files-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial-files-api.d.ts","sourceRoot":"","sources":["../../src/files/dial-files-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAEvC,2GAA2G;AAC3G,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,UAAU,gBAAgB;CAC3B;AAED,6FAA6F;AAC7F,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,iGAAiG;IACjG,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,+EAA+E;IAC/E,SAAS,CACP,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,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oBAAoB,CAAC,CAAC;IACjC,uFAAuF;IACvF,SAAS,CACP,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,mEAAmE;IACnE,YAAY,CACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrB,sFAAsF;IACtF,eAAe,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5D,kEAAkE;IAClE,YAAY,CAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC7E,mDAAmD;IACnD,aAAa,CACX,KAAK,EAAE,oBAAoB,EAAE,GAC5B,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Where a downloaded file's bytes should be written. Mirrors the host's own
3
+ * "Save As" vs. blob-download vs. cancelled-picker outcomes without the lib
4
+ * depending on the host's browser-API implementation.
5
+ */
6
+ export declare enum DownloadDestinationType {
7
+ Blob = "blob",
8
+ Stream = "stream",
9
+ Cancelled = "cancelled"
10
+ }
11
+ /** Discriminated destination a host resolves for a download, passed back into `triggerDownload`. */
12
+ export type DownloadDestination = {
13
+ type: DownloadDestinationType.Blob;
14
+ } | {
15
+ type: DownloadDestinationType.Stream;
16
+ writable: WritableStream<Uint8Array>;
17
+ } | {
18
+ type: DownloadDestinationType.Cancelled;
19
+ };
20
+ /**
21
+ * Host-injected seam for `useDialFileMutations.onDownloadFiles`, replacing a
22
+ * direct import of the app's browser "Save As" / auto-download utilities —
23
+ * that behavior is desktop/web-shell-specific, not file-manager domain logic.
24
+ */
25
+ export interface DownloadDestinationHandlers {
26
+ /** Resolves where a download with the given file name/MIME type should be written. */
27
+ resolveDestination(filename: string, mimeType: string): Promise<DownloadDestination>;
28
+ /** Writes `response` to `destination` and returns the name it was saved under. */
29
+ triggerDownload(response: Response, fallbackName: string, destination: DownloadDestination): Promise<string>;
30
+ }
31
+ //# sourceMappingURL=download-destination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download-destination.d.ts","sourceRoot":"","sources":["../../src/files/download-destination.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oGAAoG;AACpG,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAA;CAAE,GACtC;IACE,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACtC,GACD;IAAE,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAA;CAAE,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,sFAAsF;IACtF,kBAAkB,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC,kFAAkF;IAClF,eAAe,CACb,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,mBAAmB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ import { DialFileManagerActionProfile, DialFileManagerVariant } from '@epam/ai-dial-chat-shared';
2
+ export declare const deriveActionProfile: (variant: DialFileManagerVariant) => DialFileManagerActionProfile;
3
+ //# sourceMappingURL=file-manager-variant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager-variant.d.ts","sourceRoot":"","sources":["../../src/files/file-manager-variant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,mBAAmB,GAC9B,SAAS,sBAAsB,KAC9B,4BASF,CAAC"}
@@ -0,0 +1,19 @@
1
+ /** Splits a file name into its base and extension, using only the last dot. */
2
+ export declare const splitFileNameExtension: (fileName: string) => {
3
+ base: string;
4
+ extension: string;
5
+ };
6
+ export declare const trimFileNameToByteLimit: (name: string, limit?: number) => string;
7
+ /**
8
+ * Sanitizes a filename for upload by replacing forbidden characters with `_`,
9
+ * trimming trailing dots/whitespace from the base name, and capping the result
10
+ * to 255 UTF-8 bytes.
11
+ *
12
+ * Mutates nothing — returns a new string. The caller (onValidateUpload) is
13
+ * responsible for writing the result back to DialUploadFileItem.name so the
14
+ * ui-kit's subsequent conflict detection sees the sanitized name.
15
+ *
16
+ * If the base name is empty after sanitization, returns the original name unchanged.
17
+ */
18
+ export declare const sanitizeFileName: (name: string) => string;
19
+ //# sourceMappingURL=file-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-name.d.ts","sourceRoot":"","sources":["../../src/files/file-name.ts"],"names":[],"mappings":"AAMA,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,GACjC,UAAU,MAAM,KACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAOnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,cAAW,KAAG,MAYnE,CAAC;AAiBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAY/C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { DownloadDestination } from './download-destination';
2
+ /**
3
+ * Resolves where a download should be written: the browser's native "Save
4
+ * As" picker when available (`window.showSaveFilePicker`), otherwise a
5
+ * plain blob download. Returns `Cancelled` if the user dismisses the picker.
6
+ */
7
+ export declare const prepareDownloadDestination: (filename: string, mimeType?: string) => Promise<DownloadDestination>;
8
+ //# sourceMappingURL=prepare-download-destination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-download-destination.d.ts","sourceRoot":"","sources":["../../src/files/prepare-download-destination.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAchC;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GACrC,UAAU,MAAM,EAChB,iBAAqC,KACpC,OAAO,CAAC,mBAAmB,CAkC7B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { DialFile } from '@epam/ai-dial-react-file-manager';
2
+ /**
3
+ * Converts a DialFileManager virtual path to an API folder path.
4
+ * e.g. "/My files" → "", "/My files/reports/" → "reports/"
5
+ */
6
+ export declare const virtualPathToApiPath: (virtualPath: string, rootLabel: string) => string;
7
+ /**
8
+ * Resolves a DialFile to the bucket-relative API path used by files BFF endpoints.
9
+ * Prefers DIAL resource ids when present; otherwise converts DialFile.path virtual paths.
10
+ */
11
+ export declare const resolveDialFileApiPath: (file: DialFile, bucket: string, rootLabel: string) => string;
12
+ //# sourceMappingURL=resolve-dial-file-api-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-dial-file-api-path.d.ts","sourceRoot":"","sources":["../../src/files/resolve-dial-file-api-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAoCjE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,WAAW,MAAM,KAChB,MAiCF,CAAC;AAOF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,QAAQ,EACd,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAkBF,CAAC"}
@@ -0,0 +1,28 @@
1
+ /** Pure source classification. Keep MIME values aligned with attachment-canvas
2
+ * without importing its renderer dependency graph into this entry point. */
3
+ /**
4
+ * Returns the last path segment of `url` — its file name — for both absolute
5
+ * URLs and DIAL-relative resource paths such as
6
+ * `files/<bucket>/qa-routed-source.html`. Any query string or hash is dropped
7
+ * and percent escapes are decoded. Returns an empty string when no segment can
8
+ * be extracted. Used to classify a resource by extension when its display name
9
+ * is a citation title rather than a file name.
10
+ */
11
+ export declare const getUrlFileName: (url: string) => string;
12
+ /**
13
+ * Returns the content type to trust for an external citation source: `contentType`
14
+ * unchanged when it is already an image/audio/PDF/document-renderer marker,
15
+ * otherwise the type implied by `url`'s path extension (`application/pdf` for
16
+ * `.pdf`, the canonical MIME for `.docx`/`.xlsx`/`.pptx`/`.csv`) when that
17
+ * extension is recognized, otherwise `contentType` unchanged.
18
+ *
19
+ * Web-search grounding APIs label every reference — PDFs and Office documents
20
+ * included — as `text/markdown`, so a mislabeled `contentType` must not win
21
+ * over a recognized URL extension: doing so previously sent a PDF's raw bytes
22
+ * into the markdown/text canvas viewer, rendering garbled text instead of
23
+ * opening the PDF/OOXML viewer.
24
+ */
25
+ export declare const resolveExternalSourceContentType: (contentType: string, url: string) => string;
26
+ /** Returns true when an external (non-DIAL) source URL should be opened in the canvas rather than a new browser tab. */
27
+ export declare const isExternalSourcePreviewable: (contentType: string, url: string) => boolean;
28
+ //# sourceMappingURL=source-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-content.d.ts","sourceRoot":"","sources":["../../src/files/source-content.ts"],"names":[],"mappings":"AAAA;4EAC4E;AA8E5E;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAiB5C,CAAC;AAcF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC,GAC3C,aAAa,MAAM,EACnB,KAAK,MAAM,KACV,MASF,CAAC;AAEF,wHAAwH;AACxH,eAAO,MAAM,2BAA2B,GACtC,aAAa,MAAM,EACnB,KAAK,MAAM,KACV,OAQF,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { CreateFolderResponseDto, ListFilesItemDto } from '@epam/ai-dial-chat-api-client';
2
+ import { DialFile, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
3
+ import { SharedRootMeta } from '../dial-file-manager.model';
4
+ import { FileManagerNotification } from '../dial-file-manager.types';
5
+ import { DialFilesApi } from '../dial-files-api';
6
+ /** Options accepted by `useDialFileListing`. */
7
+ export interface UseDialFileListingOptions {
8
+ /** Injected operation port used for every listing/search network call. */
9
+ filesApi: DialFilesApi;
10
+ /** DIAL Core bucket to browse (used only for the my_files tab). */
11
+ bucket: string;
12
+ /** Display name for the root folder node (e.g. `'My files'`). */
13
+ rootLabel: string;
14
+ /** Active tab — drives listing source and per-tab options. */
15
+ activeTab: DialFileManagerTabs;
16
+ /** Called with a structured event when a folder-load operation fails. */
17
+ onNotification?: (notification: FileManagerNotification) => void;
18
+ /** When false, the hook issues no `DialFilesApi` call and reports `isLoading: false`. Defaults to `true`. */
19
+ isActive?: boolean;
20
+ /** Changing this value resets cache and navigation exactly like an `activeTab` change. Defaults to `undefined`. */
21
+ sessionKey?: string;
22
+ }
23
+ /** Values returned by `useDialFileListing`. */
24
+ export interface UseDialFileListingResult {
25
+ items: DialFile[];
26
+ isLoading: boolean;
27
+ error: string | null;
28
+ path: string;
29
+ /** Bucket-relative path of the currently browsed folder (e.g. `"reports/"`, `""` for root). */
30
+ folderPath: string;
31
+ onPathChange: (nextPath?: string) => void;
32
+ retry: () => void;
33
+ onSearchFiles: (folder: string, query: string) => void;
34
+ isSearching: boolean;
35
+ searchResults: DialFile[] | null;
36
+ clearSearchResults: () => void;
37
+ expandedPaths: Set<string>;
38
+ loadedPaths: Set<string>;
39
+ onExpandedPathsChange: (paths: Set<string>) => void;
40
+ onFolderPopupPathChange: (nextPath?: string) => void;
41
+ folderPopupLoadingPaths: Set<string>;
42
+ sharedWithMeIds: string[] | undefined;
43
+ sharedByMePaths: Set<string>;
44
+ currentFolder: DialFile | undefined;
45
+ /** Read-only snapshot of the per-folder listing cache, for `useDialFileUploadBatch`'s overwrite-mode check. */
46
+ cache: Map<string, ListFilesItemDto[]>;
47
+ /** Read-only snapshot of per-folder permissions, for `useDialFileMutations`'s create-folder inherited permissions. */
48
+ listingPermissionsCache: Map<string, string[] | undefined>;
49
+ /** Owner-bucket resolution metadata for the Shared tab, populated by the root listing fetch. */
50
+ sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
51
+ /** Imperatively navigates the current folder — used by mutations after a rename/delete of the browsed folder. */
52
+ setFolderPath: React.Dispatch<React.SetStateAction<string>>;
53
+ /**
54
+ * Deletes the given API-path cache keys so the next listing fetch/expand for
55
+ * that folder re-fetches from the server. The only way sibling sub-hooks may
56
+ * invalidate the shared cache (`openspec/changes/archive/2026-07-21-split-use-dial-file-manager/design.md` D1).
57
+ */
58
+ invalidateFolders: (apiPaths: string[]) => void;
59
+ /** Merges a just-created folder into its parent's cache entry (optimistic display for create-folder). */
60
+ mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
61
+ /** Forces the listing effect to re-fetch the currently browsed folder. */
62
+ bumpRetry: () => void;
63
+ /**
64
+ * Drops the named root rows from the Shared tab's cached listing, so an
65
+ * unshared item disappears at once instead of waiting for the refetch.
66
+ */
67
+ removeSharedRootItems: (names: string[]) => void;
68
+ }
69
+ /**
70
+ * Manages DIAL file-storage browsing state: folder listing/navigation, the
71
+ * tree's expand/collapse state, search, and the shared per-folder cache that
72
+ * `useDialFileUploadBatch`/`useDialFileMutations`/`useDialFileSharing` invalidate
73
+ * through `invalidateFolders`/`bumpRetry` after their own mutations settle
74
+ * (`openspec/changes/archive/2026-07-21-split-use-dial-file-manager/design.md` D1) — this hook is the sole owner/writer of that cache.
75
+ *
76
+ * Supports three listing sources via `activeTab`:
77
+ * - my_files: user's own bucket via `DialFilesApi.listFiles`
78
+ * - shared: files shared with the user via `DialFilesApi.listSharedFiles`
79
+ * - organization: public bucket via `DialFilesApi.listPublicFiles`
80
+ */
81
+ export declare const useDialFileListing: ({ filesApi, bucket, rootLabel, activeTab, onNotification, isActive, sessionKey, }: UseDialFileListingOptions) => UseDialFileListingResult;
82
+ //# sourceMappingURL=useDialFileListing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDialFileListing.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileListing/useDialFileListing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAmB1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,0EAA0E;IAC1E,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,EAAE,mBAAmB,CAAC;IAC/B,yEAAyE;IACzE,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACjE,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mHAAmH;IACnH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,KAAK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