@epam/ai-dial-chat-hooks 1.1.0-dev.383 → 1.1.0-dev.390

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 (319) hide show
  1. package/api-error-DuLNy43N.js +45 -0
  2. package/attachment-types-AAoN9E95.js +7760 -0
  3. package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
  4. package/attachments.js +2 -0
  5. package/browser-Btsa0Lmr.js +607 -0
  6. package/catalog.d.ts +946 -0
  7. package/catalog.js +3 -0
  8. package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
  9. package/conversation-sources.js +2 -0
  10. package/conversation-transfer.d.ts +189 -0
  11. package/conversation-transfer.js +3 -0
  12. package/conversation.d.ts +907 -0
  13. package/conversation.js +2 -0
  14. package/cron-weekday-B4w29eAC.js +4 -0
  15. package/date-BeuD8G79.js +4 -0
  16. package/deployment-id-CxWgJTs9.js +6 -0
  17. package/file-manager.d.ts +1344 -0
  18. package/file-manager.js +4 -0
  19. package/formatting-CZyyxBG3.js +4 -0
  20. package/index.d.ts +4945 -126
  21. package/index.js +27 -19152
  22. package/oauth.d.ts +440 -0
  23. package/oauth.js +3 -0
  24. package/package.json +142 -21
  25. package/prompt-resource-Bt1I-8ri.js +41 -0
  26. package/scheduled-task-trigger-D9RZCk52.js +145 -0
  27. package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
  28. package/scheduled-tasks.js +2 -0
  29. package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
  30. package/scroll-anchoring.js +2 -0
  31. package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
  32. package/sharing.js +3 -0
  33. package/skill-editor.d.ts +503 -0
  34. package/skill-editor.js +3 -0
  35. package/skill-manifest-CCX8s4nn.js +4035 -0
  36. package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
  37. package/skills-state.js +2 -0
  38. package/string-utils-iBi2Y55C.js +10 -0
  39. package/toolset-id-CkxRHyU0.js +10 -0
  40. package/useAttachmentValidation-CkMTd5lA.js +102 -0
  41. package/useConversationImport-C2h1GBY4.js +807 -0
  42. package/useConversationScroll-CliIMnjP.js +122 -0
  43. package/useConversationSources-DKaKvjXZ.js +47 -0
  44. package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
  45. package/usePanelMaxWidth-BEZYuqF9.js +44 -0
  46. package/useShareLink-xkiaxATt.js +44 -0
  47. package/useShareRecipientsCount-BgwCLKY0.js +37 -0
  48. package/useSkillFileActions-BU5PzZ_8.js +373 -0
  49. package/useSkillFilePreview-BYfZUJhr.js +1005 -0
  50. package/useSkillsState-BoLlwmzb.js +52 -0
  51. package/useToolsMenu-BXdahO0i.js +1874 -0
  52. package/useToolsetLogin-GhFtKs4D.js +276 -0
  53. package/useUsageData-D7BxloKZ.js +201 -0
  54. package/utils.d.ts +373 -0
  55. package/utils.js +7 -0
  56. package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
  57. package/viewport-layout.js +2 -0
  58. package/api-error/api-error.d.ts +0 -18
  59. package/api-error/api-error.d.ts.map +0 -1
  60. package/api-transport/create-csrf-middleware.d.ts +0 -15
  61. package/api-transport/create-csrf-middleware.d.ts.map +0 -1
  62. package/api-transport/create-unauthorized-middleware.d.ts +0 -40
  63. package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
  64. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
  65. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
  66. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
  67. package/catalog/catalog-derivations.d.ts +0 -27
  68. package/catalog/catalog-derivations.d.ts.map +0 -1
  69. package/catalog/catalog-primary-action.d.ts +0 -47
  70. package/catalog/catalog-primary-action.d.ts.map +0 -1
  71. package/catalog/create-publish-api.d.ts +0 -32
  72. package/catalog/create-publish-api.d.ts.map +0 -1
  73. package/catalog/deployment-endpoint-url.d.ts +0 -19
  74. package/catalog/deployment-endpoint-url.d.ts.map +0 -1
  75. package/catalog/deployment-id.d.ts +0 -21
  76. package/catalog/deployment-id.d.ts.map +0 -1
  77. package/catalog/entity-details.d.ts +0 -132
  78. package/catalog/entity-details.d.ts.map +0 -1
  79. package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
  80. package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
  81. package/catalog/map-deployment-limits-to-input.d.ts +0 -15
  82. package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
  83. package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
  84. package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
  85. package/catalog/map-entity-details-to-catalog.d.ts +0 -23
  86. package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
  87. package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
  88. package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
  89. package/catalog/map-skill-to-catalog-item.d.ts +0 -87
  90. package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
  91. package/catalog/mcp-endpoint-url.d.ts +0 -18
  92. package/catalog/mcp-endpoint-url.d.ts.map +0 -1
  93. package/catalog/publish.d.ts +0 -17
  94. package/catalog/publish.d.ts.map +0 -1
  95. package/catalog/useCatalogItemDetails.d.ts +0 -73
  96. package/catalog/useCatalogItemDetails.d.ts.map +0 -1
  97. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
  98. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
  99. package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
  100. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
  101. package/conversation/announcement-message.d.ts +0 -34
  102. package/conversation/announcement-message.d.ts.map +0 -1
  103. package/conversation/conversation-transfer/async.d.ts +0 -10
  104. package/conversation/conversation-transfer/async.d.ts.map +0 -1
  105. package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
  106. package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
  107. package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
  108. package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
  109. package/conversation/conversation-transfer/date.d.ts +0 -5
  110. package/conversation/conversation-transfer/date.d.ts.map +0 -1
  111. package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
  112. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
  113. package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
  114. package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
  115. package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
  116. package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
  117. package/conversation/conversation-transfer/progress.d.ts +0 -60
  118. package/conversation/conversation-transfer/progress.d.ts.map +0 -1
  119. package/conversation/conversation-transfer/queue.d.ts +0 -54
  120. package/conversation/conversation-transfer/queue.d.ts.map +0 -1
  121. package/conversation/conversation-transfer/types.d.ts +0 -36
  122. package/conversation/conversation-transfer/types.d.ts.map +0 -1
  123. package/conversation/conversation-transfer/zip-export.d.ts +0 -31
  124. package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
  125. package/conversation/conversation-transfer/zip-import.d.ts +0 -17
  126. package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
  127. package/conversation/create-chat-stream-api.d.ts +0 -38
  128. package/conversation/create-chat-stream-api.d.ts.map +0 -1
  129. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
  130. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
  131. package/conversation/display-name-watch.d.ts +0 -4
  132. package/conversation/display-name-watch.d.ts.map +0 -1
  133. package/conversation/footer-message.d.ts +0 -10
  134. package/conversation/footer-message.d.ts.map +0 -1
  135. package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
  136. package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
  137. package/conversation/greeting.d.ts +0 -18
  138. package/conversation/greeting.d.ts.map +0 -1
  139. package/conversation/message-factory.d.ts +0 -7
  140. package/conversation/message-factory.d.ts.map +0 -1
  141. package/conversation/message-utils.d.ts +0 -27
  142. package/conversation/message-utils.d.ts.map +0 -1
  143. package/conversation/overlay-messages.d.ts +0 -5
  144. package/conversation/overlay-messages.d.ts.map +0 -1
  145. package/conversation/quick-app-conversation-starters.d.ts +0 -10
  146. package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
  147. package/conversation/starter-option.d.ts +0 -21
  148. package/conversation/starter-option.d.ts.map +0 -1
  149. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
  150. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
  151. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
  152. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
  153. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
  154. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
  155. package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
  156. package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
  157. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
  158. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
  159. package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
  160. package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
  161. package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
  162. package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
  163. package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
  164. package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
  165. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
  166. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
  167. package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
  168. package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
  169. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
  170. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
  171. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
  172. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
  173. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
  174. package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
  175. package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
  176. package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
  177. package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
  178. package/conversation/useConversationStream/conversation-path.d.ts +0 -7
  179. package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
  180. package/conversation/useConversationStream/generation-resume.d.ts +0 -39
  181. package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
  182. package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
  183. package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
  184. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
  185. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
  186. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
  187. package/files/annotation.d.ts +0 -10
  188. package/files/annotation.d.ts.map +0 -1
  189. package/files/attachment-canvas.d.ts +0 -104
  190. package/files/attachment-canvas.d.ts.map +0 -1
  191. package/files/attachment-dto-to-display.d.ts +0 -10
  192. package/files/attachment-dto-to-display.d.ts.map +0 -1
  193. package/files/attachment-types.d.ts +0 -14
  194. package/files/attachment-types.d.ts.map +0 -1
  195. package/files/create-files-api.d.ts +0 -52
  196. package/files/create-files-api.d.ts.map +0 -1
  197. package/files/create-upload-file-with-progress.d.ts +0 -24
  198. package/files/create-upload-file-with-progress.d.ts.map +0 -1
  199. package/files/dial-file-manager-copy-move.util.d.ts +0 -15
  200. package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
  201. package/files/dial-file-manager-mapping.util.d.ts +0 -35
  202. package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
  203. package/files/dial-file-manager-path.util.d.ts +0 -39
  204. package/files/dial-file-manager-path.util.d.ts.map +0 -1
  205. package/files/dial-file-manager.model.d.ts +0 -26
  206. package/files/dial-file-manager.model.d.ts.map +0 -1
  207. package/files/dial-file-manager.types.d.ts +0 -317
  208. package/files/dial-file-manager.types.d.ts.map +0 -1
  209. package/files/dial-file-to-attachment.d.ts +0 -26
  210. package/files/dial-file-to-attachment.d.ts.map +0 -1
  211. package/files/dial-file.d.ts +0 -17
  212. package/files/dial-file.d.ts.map +0 -1
  213. package/files/dial-files-api.d.ts +0 -71
  214. package/files/dial-files-api.d.ts.map +0 -1
  215. package/files/download-destination.d.ts +0 -31
  216. package/files/download-destination.d.ts.map +0 -1
  217. package/files/file-manager-variant.d.ts +0 -4
  218. package/files/file-manager-variant.d.ts.map +0 -1
  219. package/files/file-name.d.ts +0 -19
  220. package/files/file-name.d.ts.map +0 -1
  221. package/files/prepare-download-destination.d.ts +0 -8
  222. package/files/prepare-download-destination.d.ts.map +0 -1
  223. package/files/resolve-dial-file-api-path.d.ts +0 -13
  224. package/files/resolve-dial-file-api-path.d.ts.map +0 -1
  225. package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
  226. package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
  227. package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
  228. package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
  229. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
  230. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
  231. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
  232. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
  233. package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
  234. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
  235. package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
  236. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
  237. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
  238. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
  239. package/index.d.ts.map +0 -1
  240. package/oauth/authorize-url.d.ts +0 -16
  241. package/oauth/authorize-url.d.ts.map +0 -1
  242. package/oauth/handshake.d.ts +0 -30
  243. package/oauth/handshake.d.ts.map +0 -1
  244. package/oauth/models.d.ts +0 -81
  245. package/oauth/models.d.ts.map +0 -1
  246. package/oauth/popup.d.ts +0 -30
  247. package/oauth/popup.d.ts.map +0 -1
  248. package/oauth/toolset-id.d.ts +0 -23
  249. package/oauth/toolset-id.d.ts.map +0 -1
  250. package/oauth/types.d.ts +0 -84
  251. package/oauth/types.d.ts.map +0 -1
  252. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
  253. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
  254. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
  255. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
  256. package/prompt/export-prompt.d.ts +0 -31
  257. package/prompt/export-prompt.d.ts.map +0 -1
  258. package/prompt/prompt-resource.d.ts +0 -30
  259. package/prompt/prompt-resource.d.ts.map +0 -1
  260. package/prompt/prompt.d.ts +0 -34
  261. package/prompt/prompt.d.ts.map +0 -1
  262. package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
  263. package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
  264. package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
  265. package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
  266. package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
  267. package/shared/application-schema.d.ts +0 -10
  268. package/shared/application-schema.d.ts.map +0 -1
  269. package/shared/browser-timezone.d.ts +0 -7
  270. package/shared/browser-timezone.d.ts.map +0 -1
  271. package/shared/cron-weekday.d.ts +0 -5
  272. package/shared/cron-weekday.d.ts.map +0 -1
  273. package/shared/custom-apps.d.ts +0 -7
  274. package/shared/custom-apps.d.ts.map +0 -1
  275. package/shared/external-services.d.ts +0 -16
  276. package/shared/external-services.d.ts.map +0 -1
  277. package/shared/formatting.d.ts +0 -5
  278. package/shared/formatting.d.ts.map +0 -1
  279. package/shared/locale.d.ts +0 -45
  280. package/shared/locale.d.ts.map +0 -1
  281. package/shared/string-utils.d.ts +0 -9
  282. package/shared/string-utils.d.ts.map +0 -1
  283. package/shared/toolset-login-events.d.ts +0 -15
  284. package/shared/toolset-login-events.d.ts.map +0 -1
  285. package/skill/skill-file-batch-validation.d.ts +0 -70
  286. package/skill/skill-file-batch-validation.d.ts.map +0 -1
  287. package/skill/skill-file-preview.d.ts +0 -25
  288. package/skill/skill-file-preview.d.ts.map +0 -1
  289. package/skill/skill-manifest.d.ts +0 -28
  290. package/skill/skill-manifest.d.ts.map +0 -1
  291. package/skill/skill-types.d.ts +0 -42
  292. package/skill/skill-types.d.ts.map +0 -1
  293. package/skill/skill.d.ts +0 -114
  294. package/skill/skill.d.ts.map +0 -1
  295. package/skill/useSkillEditorLoad.d.ts +0 -74
  296. package/skill/useSkillEditorLoad.d.ts.map +0 -1
  297. package/skill/useSkillEditorSubmit.d.ts +0 -105
  298. package/skill/useSkillEditorSubmit.d.ts.map +0 -1
  299. package/skill/useSkillFileActions.d.ts +0 -53
  300. package/skill/useSkillFileActions.d.ts.map +0 -1
  301. package/skill/useSkillFilePreview.d.ts +0 -38
  302. package/skill/useSkillFilePreview.d.ts.map +0 -1
  303. package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
  304. package/test-setup.d.ts +0 -2
  305. package/test-setup.d.ts.map +0 -1
  306. package/usage/useUsageData/useUsageData.d.ts +0 -20
  307. package/usage/useUsageData/useUsageData.d.ts.map +0 -1
  308. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
  309. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
  310. package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
  311. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
  312. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
  313. package/useShareLink/useShareLink.d.ts +0 -23
  314. package/useShareLink/useShareLink.d.ts.map +0 -1
  315. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
  316. package/useToolsMenu/useToolsMenu.d.ts +0 -31
  317. package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
  318. package/useViewportWidth/useViewportWidth.d.ts +0 -3
  319. package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
@@ -1 +0,0 @@
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"}
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,71 +0,0 @@
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
@@ -1 +0,0 @@
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,EAC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CAAC,CAAC;CACtC"}
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { DialFileManagerActionProfile, DialFileManagerVariant } from '@epam/ai-dial-chat-shared';
2
- export { DialFileManagerActionProfile, DialFileManagerVariant };
3
- export declare const deriveActionProfile: (variant: DialFileManagerVariant) => DialFileManagerActionProfile;
4
- //# sourceMappingURL=file-manager-variant.d.ts.map
@@ -1 +0,0 @@
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,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,CAAC;AAEhE,eAAO,MAAM,mBAAmB,GAC9B,SAAS,sBAAsB,KAC9B,4BASF,CAAC"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAY/C,CAAC"}
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +0,0 @@
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
- export { getParentFolderPath } from '@epam/ai-dial-chat-shared';
8
- /**
9
- * Resolves a DialFile to the bucket-relative API path used by files BFF endpoints.
10
- * Prefers DIAL resource ids when present; otherwise converts DialFile.path virtual paths.
11
- */
12
- export declare const resolveDialFileApiPath: (file: DialFile, bucket: string, rootLabel: string) => string;
13
- //# sourceMappingURL=resolve-dial-file-api-path.d.ts.map
@@ -1 +0,0 @@
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;AAEF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAOhE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,QAAQ,EACd,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAkBF,CAAC"}
@@ -1,73 +0,0 @@
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
- }
19
- /** Values returned by `useDialFileListing`. */
20
- export interface UseDialFileListingResult {
21
- items: DialFile[];
22
- isLoading: boolean;
23
- error: string | null;
24
- path: string;
25
- /** Bucket-relative path of the currently browsed folder (e.g. `"reports/"`, `""` for root). */
26
- folderPath: string;
27
- onPathChange: (nextPath?: string) => void;
28
- retry: () => void;
29
- onSearchFiles: (folder: string, query: string) => void;
30
- isSearching: boolean;
31
- searchResults: DialFile[] | null;
32
- clearSearchResults: () => void;
33
- expandedPaths: Set<string>;
34
- loadedPaths: Set<string>;
35
- onExpandedPathsChange: (paths: Set<string>) => void;
36
- onFolderPopupPathChange: (nextPath?: string) => void;
37
- folderPopupLoadingPaths: Set<string>;
38
- sharedWithMeIds: string[] | undefined;
39
- sharedByMePaths: Set<string>;
40
- currentFolder: DialFile | undefined;
41
- /** Read-only snapshot of the per-folder listing cache, for `useDialFileUploadBatch`'s overwrite-mode check. */
42
- cache: Map<string, ListFilesItemDto[]>;
43
- /** Read-only snapshot of per-folder permissions, for `useDialFileMutations`'s create-folder inherited permissions. */
44
- listingPermissionsCache: Map<string, string[] | undefined>;
45
- /** Owner-bucket resolution metadata for the Shared tab, populated by the root listing fetch. */
46
- sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
47
- /** Imperatively navigates the current folder — used by mutations after a rename/delete of the browsed folder. */
48
- setFolderPath: React.Dispatch<React.SetStateAction<string>>;
49
- /**
50
- * Deletes the given API-path cache keys so the next listing fetch/expand for
51
- * that folder re-fetches from the server. The only way sibling sub-hooks may
52
- * invalidate the shared cache (design.md D1).
53
- */
54
- invalidateFolders: (apiPaths: string[]) => void;
55
- /** Merges a just-created folder into its parent's cache entry (optimistic display for create-folder). */
56
- mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
57
- /** Forces the listing effect to re-fetch the currently browsed folder. */
58
- bumpRetry: () => void;
59
- }
60
- /**
61
- * Manages DIAL file-storage browsing state: folder listing/navigation, the
62
- * tree's expand/collapse state, search, and the shared per-folder cache that
63
- * `useDialFileUploadBatch`/`useDialFileMutations`/`useDialFileSharing` invalidate
64
- * through `invalidateFolders`/`bumpRetry` after their own mutations settle
65
- * (design.md D1) — this hook is the sole owner/writer of that cache.
66
- *
67
- * Supports three listing sources via `activeTab`:
68
- * - my_files: user's own bucket via `DialFilesApi.listFiles`
69
- * - shared: files shared with the user via `DialFilesApi.listSharedFiles`
70
- * - organization: public bucket via `DialFilesApi.listPublicFiles`
71
- */
72
- export declare const useDialFileListing: ({ filesApi, bucket, rootLabel, activeTab, onNotification, }: UseDialFileListingOptions) => UseDialFileListingResult;
73
- //# sourceMappingURL=useDialFileListing.d.ts.map
@@ -1 +0,0 @@
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;AAEvC,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;AAMtD,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;CAClE;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAA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;;OAIG;IACH,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,yGAAyG;IACzG,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,uBAAuB,EAChC,oBAAoB,CAAC,EAAE,MAAM,EAAE,KAC5B,IAAI,CAAC;IACV,0EAA0E;IAC1E,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAAI,6DAMhC,yBAAyB,KAAG,wBAknB9B,CAAC"}
@@ -1,16 +0,0 @@
1
- import { UseDialFileManagerOptions, UseDialFileManagerResult } from '../dial-file-manager.types';
2
- export type { UseDialFileManagerOptions, UseDialFileManagerResult, } from '../dial-file-manager.types';
3
- /**
4
- * Composes the five file-manager sub-hooks — listing/navigation, upload
5
- * batches, CRUD mutations, sharing, and metadata — into the single flat
6
- * result `DialFileManagerShell`/`DialFileManagerModal`/`DialFileManagerPage`
7
- * consume. Cache ownership and cross-hook invalidation stay inside
8
- * `useDialFileListing`; this composer only wires that hook's
9
- * `invalidateFolders`/`bumpRetry` into its siblings and derives the handful
10
- * of tab/actionProfile UI fields that read outputs from more than one
11
- * sub-hook. Imports neither `react-i18next` nor any application context —
12
- * every translated string reaches it through `labels`,
13
- * `disabledNewButtonTooltip`, and `buildValidationErrorMessage`.
14
- */
15
- export declare const useDialFileManager: ({ filesApi, bucket, rootLabel, activeTab, onNotification, onOperationSuccess, forbiddenSymbolsRegExp, variant, actionProfile, labels, locale, disabledNewButtonTooltip, downloadDestination, buildValidationErrorMessage, }: UseDialFileManagerOptions) => UseDialFileManagerResult;
16
- //# sourceMappingURL=useDialFileManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileManager.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileManager/useDialFileManager.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAYpC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,GAAI,6NAehC,yBAAyB,KAAG,wBA8M9B,CAAC"}
@@ -1,14 +0,0 @@
1
- import { DialFileManagerTabs, ToolbarOptions } from '@epam/ai-dial-react-file-manager';
2
- import { TabModel } from '@epam/ai-dial-ui-kit';
3
- /** Values returned by `useDialFileManagerTabConfig`. */
4
- export interface UseDialFileManagerTabConfigResult {
5
- tabs: ToolbarOptions['tabs'];
6
- }
7
- /**
8
- * Filters the file-manager's tab list down to the host's configured set and
9
- * resets `activeTab` to the highest-priority still-enabled tab when the
10
- * current one becomes excluded. A `fileManagerTabs` of `undefined` means no
11
- * restriction — every tab in `allTabs` stays enabled and no reset ever fires.
12
- */
13
- export declare const useDialFileManagerTabConfig: (activeTab: DialFileManagerTabs, onTabChange: (tab: DialFileManagerTabs) => void, allTabs: TabModel[] | undefined, fileManagerTabs: string[] | undefined) => UseDialFileManagerTabConfigResult;
14
- //# sourceMappingURL=useDialFileManagerTabConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileManagerTabConfig.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,wDAAwD;AACxD,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CAC9B;AAaD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACtC,WAAW,mBAAmB,EAC9B,aAAa,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,EAC/C,SAAS,QAAQ,EAAE,GAAG,SAAS,EAC/B,iBAAiB,MAAM,EAAE,GAAG,SAAS,KACpC,iCA4BF,CAAC"}
@@ -1,28 +0,0 @@
1
- import { DialFile } from '@epam/ai-dial-react-file-manager';
2
- import { FileManagerNotification } from '../dial-file-manager.types';
3
- import { DialFilesApi } from '../dial-files-api';
4
- /** Options accepted by `useDialFileMetadata`. */
5
- export interface UseDialFileMetadataOptions {
6
- /** Injected operation port used for the metadata network call. */
7
- filesApi: DialFilesApi;
8
- /** DIAL Core bucket the current user browses (used only for my_files items). */
9
- bucket: string;
10
- /** Display name of the root folder node, used to resolve virtual paths back to API paths. */
11
- rootLabel: string;
12
- /** Called with a structured event when the metadata fetch fails. */
13
- onNotification?: (notification: FileManagerNotification) => void;
14
- }
15
- /** Values returned by `useDialFileMetadata`. */
16
- export interface UseDialFileMetadataResult {
17
- fileMetadata: DialFile | undefined;
18
- isFileMetadataLoading: boolean;
19
- onGetInfo: (file: DialFile) => void;
20
- clearMetadata: () => void;
21
- }
22
- /**
23
- * Fetches and holds single-file metadata for `fileMetadataPopupOptions` —
24
- * the only sub-hook with no interaction with the shared listing cache, since
25
- * viewing metadata never mutates listing state.
26
- */
27
- export declare const useDialFileMetadata: ({ filesApi, bucket, rootLabel, onNotification, }: UseDialFileMetadataOptions) => UseDialFileMetadataResult;
28
- //# sourceMappingURL=useDialFileMetadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileMetadata.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileMetadata/useDialFileMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,kEAAkE;IAClE,QAAQ,EAAE,YAAY,CAAC;IACvB,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAClE;AAED,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,kDAKjC,0BAA0B,KAAG,yBA2C/B,CAAC"}
@@ -1,68 +0,0 @@
1
- import { CreateFolderResponseDto } from '@epam/ai-dial-chat-api-client';
2
- import { DialCopiedItem, DialDeletedItem, DialFile, DialUploadFileItem, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
3
- import { SharedRootMeta } from '../dial-file-manager.model';
4
- import { FileManagerNotification, FileNameValidationError, FileOperationSuccessEvent } from '../dial-file-manager.types';
5
- import { DialFilesApi } from '../dial-files-api';
6
- import { DownloadDestinationHandlers } from '../download-destination';
7
- /** Options accepted by `useDialFileMutations`. */
8
- export interface UseDialFileMutationsOptions {
9
- /** Injected operation port used for every mutation network call. */
10
- filesApi: DialFilesApi;
11
- /** DIAL Core bucket to browse (used only for the my_files tab). */
12
- bucket: string;
13
- /** Display name for the root folder node. */
14
- rootLabel: string;
15
- /** Active tab — drives owner-bucket resolution for the Shared tab. */
16
- activeTab: DialFileManagerTabs;
17
- /** Bucket-relative path of the currently browsed folder, owned by `useDialFileListing`. */
18
- folderPath: string;
19
- /** Currently browsed folder node, owned by `useDialFileListing`. */
20
- currentFolder: DialFile | undefined;
21
- /** Owner-bucket resolution metadata for the Shared tab, owned by `useDialFileListing`. */
22
- sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
23
- /** Read-only snapshot of `useDialFileListing`'s per-folder permissions cache. */
24
- listingPermissionsCache: Map<string, string[] | undefined>;
25
- /** Deletes the given API-path cache keys so the next fetch re-fetches them. */
26
- invalidateFolders: (apiPaths: string[]) => void;
27
- /** Forces `useDialFileListing`'s fetch effect to re-run. */
28
- bumpRetry: () => void;
29
- /** Merges a newly created folder into its parent's cache entry, owned by `useDialFileListing`. */
30
- mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
31
- /** Imperatively navigates the current folder after a rename/delete of the browsed folder. */
32
- setFolderPath: React.Dispatch<React.SetStateAction<string>>;
33
- /** Called when a mutation should surface a toast notification. */
34
- onNotification?: (notification: FileManagerNotification) => void;
35
- /** Called when a mutation succeeds, instead of invoking an application notification service directly. */
36
- onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
37
- /** Host-injected browser "Save As"/auto-download seam for `onDownloadFiles`. */
38
- downloadDestination: DownloadDestinationHandlers;
39
- /** Regexp of characters forbidden in file/folder names beyond the path separator. */
40
- forbiddenSymbolsRegExp?: RegExp;
41
- }
42
- /** Values returned by `useDialFileMutations`. */
43
- export interface UseDialFileMutationsResult {
44
- isCreatingFolder: boolean;
45
- isDownloading: boolean;
46
- isDeleting: boolean;
47
- isRenaming: boolean;
48
- isCopying: boolean;
49
- isMoving: boolean;
50
- onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
51
- onCreateFolderValidate: (name: string, parentFolder: DialFile) => FileNameValidationError | null;
52
- onDownloadFiles: (dialFiles: DialFile[]) => void;
53
- onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
54
- onRenameValidate: (value: string, item: DialFile) => FileNameValidationError | null;
55
- onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
56
- onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
57
- cancelCopyMove: () => void;
58
- }
59
- /**
60
- * Manages create-folder, download, delete, rename, copy, and move mutations.
61
- * Every mutation invalidates the shared listing cache for its affected
62
- * folders through `invalidateFolders`/`bumpRetry` rather than holding its own
63
- * cache copy; create-folder additionally uses `mergeCreatedFolder` so a newly
64
- * created folder appears immediately even when created from a
65
- * destination-folder popup browsing a different folder than the outer grid.
66
- */
67
- export declare const useDialFileMutations: ({ filesApi, bucket, rootLabel, activeTab, folderPath, currentFolder, sharedRootMetaRef, listingPermissionsCache, invalidateFolders, bumpRetry, mergeCreatedFolder, setFolderPath, onNotification, onOperationSuccess, downloadDestination, forbiddenSymbolsRegExp, }: UseDialFileMutationsOptions) => UseDialFileMutationsResult;
68
- //# sourceMappingURL=useDialFileMutations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileMutations.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileMutations/useDialFileMutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EAExB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAe1C,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAO3E,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,SAAS,EAAE,mBAAm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AI,EAAE,kBAAkB,EACxB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,sBAAsB,EAAE,CACtB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,QAAQ,KACnB,uBAAuB,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,gBAAgB,EAAE,CAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,KACX,uBAAuB,GAAG,IAAI,CAAC;IACpC,aAAa,EAAE,CACb,KAAK,EAAE,cAAc,EAAE,EACvB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,KACtB,IAAI,CAAC;IACV,WAAW,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,EAAE,iBAAiB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,sQAiBlC,2BAA2B,KAAG,0BAqrBhC,CAAC"}
@@ -1,30 +0,0 @@
1
- import { DialFile } from '@epam/ai-dial-react-file-manager';
2
- import { FileManagerNotification } from '../dial-file-manager.types';
3
- import { DialFilesApi } from '../dial-files-api';
4
- /** Options accepted by `useDialFileSharing`. */
5
- export interface UseDialFileSharingOptions {
6
- /** Injected operation port used for every sharing network call. */
7
- filesApi: DialFilesApi;
8
- /** DIAL Core bucket to browse (used only for the my_files tab). */
9
- bucket: string;
10
- /** Display name for the root folder node. */
11
- rootLabel: string;
12
- /** Forces `useDialFileListing`'s fetch effect to re-run after a mutation settles. */
13
- bumpRetry: () => void;
14
- /** Called when a sharing mutation fails and should surface a toast notification. */
15
- onNotification?: (notification: FileManagerNotification) => void;
16
- }
17
- /** Values returned by `useDialFileSharing`. */
18
- export interface UseDialFileSharingResult {
19
- isUnsharing: boolean;
20
- isRemovingAccess: boolean;
21
- onUnshareFiles: (files: DialFile[]) => void;
22
- onRemoveFilesAccess: (files: DialFile[]) => void;
23
- }
24
- /**
25
- * Manages the unshare/remove-access mutations. Bumps `useDialFileListing`'s
26
- * shared retry counter after each mutation settles rather than holding its
27
- * own cache copy.
28
- */
29
- export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
30
- //# sourceMappingURL=useDialFileSharing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileSharing.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileSharing/useDialFileSharing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,gDAAgD;AAChD,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,oFAAoF;IACpF,cAAc,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAClE;AAED,+CAA+C;AAC/C,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CAClD;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,6DAMhC,yBAAyB,KAAG,wBAwE9B,CAAC"}
@@ -1,45 +0,0 @@
1
- import { ListFilesItemDto } from '@epam/ai-dial-chat-api-client';
2
- import { FileUploadBatchState } from '@epam/ai-dial-chat-shared';
3
- import { DialFile, DialUploadFileItem, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
4
- import { SharedRootMeta } from '../dial-file-manager.model';
5
- import { FileManagerNotification, FileUploadValidationResult } from '../dial-file-manager.types';
6
- import { DialFilesApi } from '../dial-files-api';
7
- /** Options accepted by `useDialFileUploadBatch`. */
8
- export interface UseDialFileUploadBatchOptions {
9
- /** Injected operation port used for every upload network call. */
10
- filesApi: DialFilesApi;
11
- /** DIAL Core bucket to browse (used only for the my_files tab). */
12
- bucket: string;
13
- /** Display name for the root folder node. */
14
- rootLabel: string;
15
- /** Active tab — drives owner-bucket resolution for the Shared tab. */
16
- activeTab: DialFileManagerTabs;
17
- /** Read-only snapshot of `useDialFileListing`'s cache, used to decide overwrite vs. create-only upload mode. */
18
- cache: Map<string, ListFilesItemDto[]>;
19
- /** Owner-bucket resolution metadata for the Shared tab, owned by `useDialFileListing`. */
20
- sharedRootMetaRef: React.RefObject<Map<string, SharedRootMeta>>;
21
- /** Deletes the given API-path cache keys so the next fetch re-fetches them. */
22
- invalidateFolders: (apiPaths: string[]) => void;
23
- /** Forces `useDialFileListing`'s fetch effect to re-run. */
24
- bumpRetry: () => void;
25
- /** Called when an upload batch fails or completes and should surface a toast notification. */
26
- onNotification?: (notification: FileManagerNotification) => void;
27
- }
28
- /** Values returned by `useDialFileUploadBatch`. */
29
- export interface UseDialFileUploadBatchResult {
30
- onUploadFiles: (files: DialUploadFileItem[], destinationFolder: string) => void;
31
- onUploadArchive: (file: File, name: string, destinationFolder: string) => void;
32
- onValidateUpload: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => Promise<FileUploadValidationResult>;
33
- uploadBatchState: FileUploadBatchState | null;
34
- cancelUpload: () => void;
35
- clearUploadBatch: () => void;
36
- }
37
- /**
38
- * Manages upload batches (single-file and ZIP-archive extraction), including
39
- * concurrency-limited progress tracking and abort. Invalidates the shared
40
- * listing cache for the destination folder through `invalidateFolders`/
41
- * `bumpRetry` after a batch settles — it never holds its own copy of the
42
- * cache.
43
- */
44
- export declare const useDialFileUploadBatch: ({ filesApi, bucket, rootLabel, activeTab, cache, sharedRootMetaRef, invalidateFolders, bumpRetry, onNotification, }: UseDialFileUploadBatchOptions) => UseDialFileUploadBatchResult;
45
- //# sourceMappingURL=useDialFileUploadBatch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialFileUploadBatch.d.ts","sourceRoot":"","sources":["../../../src/files/useDialFileUploadBatch/useDialFileUploadBatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,QAAQ,EACR,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAKvE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAyCtD,oDAAoD;AACpD,MAAM,WAAW,6BAA6B;IAC5C,kEAAkE;IAClE,QAAQ,EAAE,YAAY,CAAC;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,SAAS,EAAE,mBAAmB,CAAC;IAC/B,gHAAgH;IAChH,KAAK,EAAE,GAAG,CAAC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resolves the OAuth callback location against the current origin. The
4
- * callback path is supplied by the host: this module owns no application
5
- * route.
6
- */
7
- export declare const getToolsetRedirectUri: (callbackPath: string) => string;
8
- /**
9
- * Builds the OAuth authorize URL for a given, already-generated `state`
10
- * value. The caller owns what `state` carries — see `initiateOAuthLogin`.
11
- * Returns `null` rather than throwing for a configuration that cannot
12
- * produce a valid URL, including one whose authorization endpoint is not
13
- * reachable over a secure transport.
14
- */
15
- export declare const buildToolsetAuthorizeUrl: (auth: ToolsetOAuthSettings, redirectUri: string, state: string) => string | null;
16
- //# sourceMappingURL=authorize-url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorize-url.d.ts","sourceRoot":"","sources":["../../src/oauth/authorize-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,cAAc,MAAM,KAAG,MACjB,CAAC;AAwB7C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,oBAAoB,EAC1B,aAAa,MAAM,EACnB,OAAO,MAAM,KACZ,MAAM,GAAG,IA0BX,CAAC"}
@@ -1,30 +0,0 @@
1
- import { ToolsetOAuthResult } from './models';
2
- import { ToolsetCredentialsLevel } from './types';
3
- /** Name of the same-origin `BroadcastChannel` shared by an OAuth flow's opener and its callback popup. */
4
- export declare const getToolsetOAuthChannelName: (flowId: string) => string;
5
- /** Options for {@link waitForToolsetOAuthResult}. */
6
- export interface WaitForToolsetOAuthResultOptions {
7
- /** Resource id echoed back in a success result. */
8
- toolsetId: string;
9
- /** Credentials level echoed back in a success result. */
10
- credentialsLevel: ToolsetCredentialsLevel;
11
- /**
12
- * The host's callback route — the same path the flow's popup was opened
13
- * against. The popup-URL reader treats a same-origin URL as a result only
14
- * when its pathname equals this value, so a host serving more than one
15
- * callback route passes whichever one it actually opened.
16
- */
17
- callbackPath: string;
18
- timeoutMs?: number;
19
- pollIntervalMs?: number;
20
- }
21
- /**
22
- * Waits for the OAuth callback popup to report a result over BroadcastChannel
23
- * or through the completion marker in its same-origin URL. A cross-origin
24
- * provider can make the retained WindowProxy look closed even while the popup
25
- * remains open, so cancellation is confirmed only when the initiating window
26
- * regains focus. Reported results are acknowledged so the callback can close
27
- * itself even when the retained WindowProxy was severed.
28
- */
29
- export declare const waitForToolsetOAuthResult: (popup: Window, flowId: string, { toolsetId, credentialsLevel, callbackPath, timeoutMs, pollIntervalMs, }: WaitForToolsetOAuthResultOptions) => Promise<ToolsetOAuthResult>;
30
- //# sourceMappingURL=handshake.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["../../src/oauth/handshake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EACL,uBAAuB,EAKxB,MAAM,SAAS,CAAC;AAIjB,0GAA0G;AAC1G,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,KAAG,MAChB,CAAC;AA4B7C,qDAAqD;AACrD,MAAM,WAAW,gCAAgC;IAC/C,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,2EAMG,gCAAgC,KAClC,OAAO,CAAC,kBAAkB,CAkHzB,CAAC"}