@epam/ai-dial-chat-hooks 1.3.0-dev.37 → 1.3.0-dev.372

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 (578) hide show
  1. package/api-error/api-error.d.ts +2 -0
  2. package/api-error/api-error.d.ts.map +1 -1
  3. package/api-error/api-error.js +31 -23
  4. package/api-transport/create-unauthorized-middleware.js +4 -1
  5. package/attachment/attach-constraints.d.ts +31 -0
  6. package/attachment/attach-constraints.d.ts.map +1 -0
  7. package/attachment/attach-constraints.js +18 -0
  8. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
  9. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
  10. package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
  11. package/attachments.js +2 -1
  12. package/catalog/application-credentials.d.ts +15 -0
  13. package/catalog/application-credentials.d.ts.map +1 -0
  14. package/catalog/application-credentials.js +28 -0
  15. package/catalog/catalog-derivations.d.ts +5 -3
  16. package/catalog/catalog-derivations.d.ts.map +1 -1
  17. package/catalog/catalog-derivations.js +13 -6
  18. package/catalog/catalog-entity-kind.d.ts +31 -0
  19. package/catalog/catalog-entity-kind.d.ts.map +1 -0
  20. package/catalog/catalog-entity-kind.js +21 -0
  21. package/catalog/catalog-preferences.d.ts +8 -0
  22. package/catalog/catalog-preferences.d.ts.map +1 -0
  23. package/catalog/catalog-preferences.js +5 -0
  24. package/catalog/create-publish-api.d.ts +3 -1
  25. package/catalog/create-publish-api.d.ts.map +1 -1
  26. package/catalog/create-publish-api.js +4 -0
  27. package/catalog/deployment-id.d.ts +13 -4
  28. package/catalog/deployment-id.d.ts.map +1 -1
  29. package/catalog/deployment-id.js +17 -3
  30. package/catalog/entity-details.d.ts +2 -0
  31. package/catalog/entity-details.d.ts.map +1 -1
  32. package/catalog/favorite-entity-type.d.ts +5 -0
  33. package/catalog/favorite-entity-type.d.ts.map +1 -0
  34. package/catalog/favorite-entity-type.js +10 -0
  35. package/catalog/map-deployment-limits-to-input.d.ts +4 -3
  36. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -1
  37. package/catalog/map-deployment-limits-to-input.js +3 -4
  38. package/catalog/map-deployment-to-catalog-item.d.ts +12 -1
  39. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -1
  40. package/catalog/map-deployment-to-catalog-item.js +22 -15
  41. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
  42. package/catalog/map-entity-details-to-catalog.js +69 -24
  43. package/catalog/map-skill-to-catalog-item.d.ts +4 -5
  44. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -1
  45. package/catalog/map-skill-to-catalog-item.js +29 -38
  46. package/catalog/publish.d.ts +1 -1
  47. package/catalog/publish.d.ts.map +1 -1
  48. package/catalog/resource-folder.d.ts +8 -0
  49. package/catalog/resource-folder.d.ts.map +1 -0
  50. package/catalog/resource-folder.js +13 -0
  51. package/catalog/resource-name-conflict.d.ts +22 -0
  52. package/catalog/resource-name-conflict.d.ts.map +1 -0
  53. package/catalog/resource-name-conflict.js +32 -0
  54. package/catalog/resource-save-adapter.d.ts +36 -0
  55. package/catalog/resource-save-adapter.d.ts.map +1 -0
  56. package/catalog/resource-save-adapter.js +4 -0
  57. package/catalog/resource-save-adapters.d.ts +93 -0
  58. package/catalog/resource-save-adapters.d.ts.map +1 -0
  59. package/catalog/resource-save-adapters.js +116 -0
  60. package/catalog/resource-save.d.ts +76 -0
  61. package/catalog/resource-save.d.ts.map +1 -0
  62. package/catalog/resource-save.js +52 -0
  63. package/catalog/unpublishable-folders.d.ts +21 -0
  64. package/catalog/unpublishable-folders.d.ts.map +1 -0
  65. package/catalog/unpublishable-folders.js +21 -0
  66. package/catalog/usage-limit-rows.d.ts +14 -0
  67. package/catalog/usage-limit-rows.d.ts.map +1 -0
  68. package/catalog/usage-limit-rows.js +19 -0
  69. package/catalog/use-publish-history.d.ts +19 -0
  70. package/catalog/use-publish-history.d.ts.map +1 -0
  71. package/catalog/use-publish-history.js +25 -0
  72. package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts +57 -0
  73. package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.d.ts.map +1 -0
  74. package/catalog/useApplicationCredentialActions/useApplicationCredentialActions.js +67 -0
  75. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +23 -6
  76. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -1
  77. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +108 -107
  78. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
  79. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
  80. package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
  81. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -1
  82. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +72 -77
  83. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  84. package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -0
  85. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
  86. package/catalog/usePublishFolders/usePublishFolders.js +32 -29
  87. package/catalog/useResourceFolders/useResourceFolders.d.ts +33 -0
  88. package/catalog/useResourceFolders/useResourceFolders.d.ts.map +1 -0
  89. package/catalog/useResourceFolders/useResourceFolders.js +58 -0
  90. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +64 -0
  91. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -0
  92. package/catalog/useResourceSavePanel/useResourceSavePanel.js +173 -0
  93. package/catalog/useSkillItemDetails.js +3 -3
  94. package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.d.ts +43 -0
  95. package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.d.ts.map +1 -0
  96. package/catalog/useUnpublishConfirmation/useUnpublishConfirmation.js +46 -0
  97. package/catalog/useUnpublishableFolders/useUnpublishableFolders.d.ts +22 -0
  98. package/catalog/useUnpublishableFolders/useUnpublishableFolders.d.ts.map +1 -0
  99. package/catalog/useUnpublishableFolders/useUnpublishableFolders.js +53 -0
  100. package/catalog.js +41 -23
  101. package/conversation/conversation-data-source.d.ts +47 -0
  102. package/conversation/conversation-data-source.d.ts.map +1 -0
  103. package/conversation/conversation-data-source.js +11 -0
  104. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  105. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  106. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  107. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  108. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  109. package/conversation/conversation-list.d.ts +6 -0
  110. package/conversation/conversation-list.d.ts.map +1 -0
  111. package/conversation/conversation-list.js +5 -0
  112. package/conversation/conversation-title-stream.d.ts +33 -0
  113. package/conversation/conversation-title-stream.d.ts.map +1 -0
  114. package/conversation/conversation-title-stream.js +103 -0
  115. package/conversation/conversation-transfer/attachment-refs.d.ts +10 -2
  116. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -1
  117. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  118. package/conversation/conversation-transfer/export-conversation.d.ts +5 -1
  119. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -1
  120. package/conversation/conversation-transfer/export-conversation.js +19 -18
  121. package/conversation/conversation-transfer/import-conversation.d.ts +11 -6
  122. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -1
  123. package/conversation/conversation-transfer/import-conversation.js +65 -69
  124. package/conversation/conversation-transfer/progress.js +1 -1
  125. package/conversation/conversation-transfer/zip-export.js +1 -7
  126. package/conversation/conversation-transfer/zip-import.js +1 -1
  127. package/conversation/create-chat-stream-api.d.ts +24 -3
  128. package/conversation/create-chat-stream-api.d.ts.map +1 -1
  129. package/conversation/create-chat-stream-api.js +67 -56
  130. package/conversation/generation-registry.d.ts +30 -0
  131. package/conversation/generation-registry.d.ts.map +1 -0
  132. package/conversation/generation-registry.js +33 -0
  133. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -1
  134. package/conversation/get-model-id-from-conversation-id.js +1 -1
  135. package/conversation/message-utils.d.ts +6 -0
  136. package/conversation/message-utils.d.ts.map +1 -1
  137. package/conversation/message-utils.js +14 -10
  138. package/conversation/scheduled-task-grouping.d.ts +53 -0
  139. package/conversation/scheduled-task-grouping.d.ts.map +1 -0
  140. package/conversation/scheduled-task-grouping.js +45 -0
  141. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +4 -2
  142. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -1
  143. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
  144. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -1
  145. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  146. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  147. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  148. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  149. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
  150. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
  151. package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
  152. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
  153. package/conversation/useConversationExport/useConversationExport.js +113 -122
  154. package/conversation/useConversationHandlers/message-utils.js +2 -2
  155. package/conversation/useConversationHandlers/useConversationHandlers.js +41 -41
  156. package/conversation/useConversationImport/useConversationImport.js +24 -24
  157. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +18 -5
  158. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -1
  159. package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
  160. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -1
  161. package/conversation/useConversationScroll/useConversationScroll.js +69 -72
  162. package/conversation/useConversationStream/conversation-path.js +2 -2
  163. package/conversation/useConversationStream/conversation-stream.types.d.ts +142 -0
  164. package/conversation/useConversationStream/conversation-stream.types.d.ts.map +1 -0
  165. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  166. package/conversation/useConversationStream/generation-resume.d.ts +24 -2
  167. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
  168. package/conversation/useConversationStream/generation-resume.js +110 -121
  169. package/conversation/useConversationStream/stream-errors.d.ts +10 -0
  170. package/conversation/useConversationStream/stream-errors.d.ts.map +1 -0
  171. package/conversation/useConversationStream/stream-errors.js +10 -0
  172. package/conversation/useConversationStream/stream-session.d.ts +51 -0
  173. package/conversation/useConversationStream/stream-session.d.ts.map +1 -0
  174. package/conversation/useConversationStream/stream-session.js +179 -0
  175. package/conversation/useConversationStream/useConversationReloadErrors.d.ts +25 -0
  176. package/conversation/useConversationStream/useConversationReloadErrors.d.ts.map +1 -0
  177. package/conversation/useConversationStream/useConversationReloadErrors.js +38 -0
  178. package/conversation/useConversationStream/useConversationStream.d.ts +3 -136
  179. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -1
  180. package/conversation/useConversationStream/useConversationStream.js +141 -325
  181. package/conversation/useConversationStream/useStopGeneration.d.ts +29 -0
  182. package/conversation/useConversationStream/useStopGeneration.d.ts.map +1 -0
  183. package/conversation/useConversationStream/useStopGeneration.js +48 -0
  184. package/conversation/useConversationStream/useStreamPathState.d.ts +39 -0
  185. package/conversation/useConversationStream/useStreamPathState.d.ts.map +1 -0
  186. package/conversation/useConversationStream/useStreamPathState.js +55 -0
  187. package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
  188. package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
  189. package/conversation/useConversationTitleEnrichmentController.js +155 -0
  190. package/conversation/useDeploymentChangeTracking.d.ts +14 -0
  191. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
  192. package/conversation/useDeploymentChangeTracking.js +23 -0
  193. package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
  194. package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
  195. package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
  196. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  197. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +8 -1
  198. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -1
  199. package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
  200. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
  201. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
  202. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
  203. package/conversation-overlay.js +1 -2
  204. package/conversation-sources/stage-citations.d.ts +9 -0
  205. package/conversation-sources/stage-citations.d.ts.map +1 -0
  206. package/conversation-sources/stage-citations.js +8 -0
  207. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
  208. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
  209. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
  210. package/conversation-sources.js +3 -1
  211. package/conversation.js +45 -33
  212. package/entry-points/attachments.d.ts +1 -0
  213. package/entry-points/attachments.d.ts.map +1 -1
  214. package/entry-points/catalog.d.ts +17 -0
  215. package/entry-points/catalog.d.ts.map +1 -1
  216. package/entry-points/conversation-sources.d.ts +2 -0
  217. package/entry-points/conversation-sources.d.ts.map +1 -1
  218. package/entry-points/conversation.d.ts +13 -0
  219. package/entry-points/conversation.d.ts.map +1 -1
  220. package/entry-points/external-services.d.ts +6 -0
  221. package/entry-points/external-services.d.ts.map +1 -0
  222. package/entry-points/file-manager-canvas.d.ts +1 -0
  223. package/entry-points/file-manager-canvas.d.ts.map +1 -1
  224. package/entry-points/file-manager.d.ts +2 -0
  225. package/entry-points/file-manager.d.ts.map +1 -1
  226. package/entry-points/oauth.d.ts +1 -0
  227. package/entry-points/oauth.d.ts.map +1 -1
  228. package/entry-points/offline-credentials.d.ts +7 -0
  229. package/entry-points/offline-credentials.d.ts.map +1 -0
  230. package/entry-points/project.d.ts +20 -0
  231. package/entry-points/project.d.ts.map +1 -0
  232. package/entry-points/scheduled-tasks.d.ts +7 -0
  233. package/entry-points/scheduled-tasks.d.ts.map +1 -1
  234. package/entry-points/sharing.d.ts +4 -0
  235. package/entry-points/sharing.d.ts.map +1 -1
  236. package/entry-points/skill-editor.d.ts +2 -0
  237. package/entry-points/skill-editor.d.ts.map +1 -1
  238. package/entry-points/skills-state.d.ts +1 -0
  239. package/entry-points/skills-state.d.ts.map +1 -1
  240. package/entry-points/usage-limits.d.ts +9 -0
  241. package/entry-points/usage-limits.d.ts.map +1 -0
  242. package/entry-points/utils.d.ts +6 -0
  243. package/entry-points/utils.d.ts.map +1 -1
  244. package/entry-points/viewport-layout.d.ts +1 -0
  245. package/entry-points/viewport-layout.d.ts.map +1 -1
  246. package/external-services/useExternalServiceLogin.d.ts +99 -0
  247. package/external-services/useExternalServiceLogin.d.ts.map +1 -0
  248. package/external-services/useExternalServiceLogin.js +93 -0
  249. package/external-services.d.ts +2 -0
  250. package/external-services.js +5 -0
  251. package/file-manager-canvas.js +3 -2
  252. package/file-manager.js +32 -30
  253. package/files/attachment-canvas.d.ts +12 -0
  254. package/files/attachment-canvas.d.ts.map +1 -1
  255. package/files/attachment-canvas.js +18 -10
  256. package/files/attachment-dto-to-display.d.ts.map +1 -1
  257. package/files/attachment-dto-to-display.js +13 -12
  258. package/files/attachment-types.js +1 -1
  259. package/files/browser-download.d.ts +9 -0
  260. package/files/browser-download.d.ts.map +1 -0
  261. package/files/browser-download.js +23 -0
  262. package/files/create-files-api.d.ts +3 -4
  263. package/files/create-files-api.d.ts.map +1 -1
  264. package/files/create-files-api.js +1 -1
  265. package/files/create-upload-file-with-progress.d.ts +21 -1
  266. package/files/create-upload-file-with-progress.d.ts.map +1 -1
  267. package/files/create-upload-file-with-progress.js +50 -34
  268. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -1
  269. package/files/dial-file-manager-copy-move.util.js +28 -28
  270. package/files/dial-file-manager-mapping.util.d.ts +23 -3
  271. package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
  272. package/files/dial-file-manager-mapping.util.js +97 -69
  273. package/files/dial-file-manager.types.d.ts +15 -5
  274. package/files/dial-file-manager.types.d.ts.map +1 -1
  275. package/files/dial-file-to-attachment.js +3 -3
  276. package/files/dial-file.d.ts +19 -0
  277. package/files/dial-file.d.ts.map +1 -1
  278. package/files/dial-file.js +20 -12
  279. package/files/dial-files-api.d.ts +2 -2
  280. package/files/dial-files-api.d.ts.map +1 -1
  281. package/files/download-progress.d.ts +33 -0
  282. package/files/download-progress.d.ts.map +1 -0
  283. package/files/download-progress.js +28 -0
  284. package/files/source-content.js +1 -1
  285. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -1
  286. package/files/useDialFileListing/useDialFileListing.js +97 -109
  287. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -1
  288. package/files/useDialFileManager/useDialFileManager.js +5 -2
  289. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -1
  290. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  291. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  292. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  293. package/files/useDialFileMutations/useDialFileMutations.d.ts +9 -0
  294. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -1
  295. package/files/useDialFileMutations/useDialFileMutations.js +232 -159
  296. package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
  297. package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
  298. package/files/useDialFilePreview/useDialFilePreview.js +45 -0
  299. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -1
  300. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
  301. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
  302. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
  303. package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
  304. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  305. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
  306. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
  307. package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
  308. package/index.d.ts +96 -0
  309. package/index.d.ts.map +1 -1
  310. package/index.js +244 -149
  311. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -1
  312. package/mcp-apps/mcp-apps-api-client.js +18 -17
  313. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +3 -2
  314. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -1
  315. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
  316. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -1
  317. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +45 -45
  318. package/oauth/authorize-url.d.ts +7 -1
  319. package/oauth/authorize-url.d.ts.map +1 -1
  320. package/oauth/authorize-url.js +14 -4
  321. package/oauth/callback-exchange.d.ts +49 -0
  322. package/oauth/callback-exchange.d.ts.map +1 -0
  323. package/oauth/callback-exchange.js +29 -0
  324. package/oauth/handshake.js +3 -10
  325. package/oauth/models.d.ts +25 -0
  326. package/oauth/models.d.ts.map +1 -1
  327. package/oauth/popup.d.ts.map +1 -1
  328. package/oauth/popup.js +19 -17
  329. package/oauth/toolset-id.d.ts +7 -0
  330. package/oauth/toolset-id.d.ts.map +1 -1
  331. package/oauth/toolset-id.js +9 -2
  332. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -1
  333. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  334. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +7 -1
  335. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -1
  336. package/oauth/useToolsetLogin/useToolsetLogin.js +51 -42
  337. package/oauth.js +9 -8
  338. package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
  339. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  340. package/offline-credentials/map-offline-credentials-response.js +17 -0
  341. package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
  342. package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
  343. package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
  344. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  345. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  346. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  347. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
  348. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  349. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
  350. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  351. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  352. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  353. package/offline-credentials.d.ts +2 -0
  354. package/offline-credentials.js +7 -0
  355. package/package.json +49 -25
  356. package/project/create-project-chat.d.ts +34 -0
  357. package/project/create-project-chat.d.ts.map +1 -0
  358. package/project/create-project-chat.js +27 -0
  359. package/project/project-conversation-data-source.d.ts +36 -0
  360. package/project/project-conversation-data-source.d.ts.map +1 -0
  361. package/project/project-conversation-data-source.js +67 -0
  362. package/project/project-events.d.ts +14 -0
  363. package/project/project-events.d.ts.map +1 -0
  364. package/project/project-events.js +25 -0
  365. package/project/project-file-preview.d.ts +32 -0
  366. package/project/project-file-preview.d.ts.map +1 -0
  367. package/project/project-file-preview.js +25 -0
  368. package/project/project-form-errors.d.ts +23 -0
  369. package/project/project-form-errors.d.ts.map +1 -0
  370. package/project/project-form-errors.js +46 -0
  371. package/project/project-limits.d.ts +17 -0
  372. package/project/project-limits.d.ts.map +1 -0
  373. package/project/project-limits.js +11 -0
  374. package/project/project-mapping.d.ts +16 -0
  375. package/project/project-mapping.d.ts.map +1 -0
  376. package/project/project-mapping.js +43 -0
  377. package/project/project-refresh.d.ts +12 -0
  378. package/project/project-refresh.d.ts.map +1 -0
  379. package/project/project-refresh.js +6 -0
  380. package/project/project-viewed-marks.d.ts +9 -0
  381. package/project/project-viewed-marks.d.ts.map +1 -0
  382. package/project/project-viewed-marks.js +8 -0
  383. package/project/project-watch-stream.d.ts +26 -0
  384. package/project/project-watch-stream.d.ts.map +1 -0
  385. package/project/project-watch-stream.js +39 -0
  386. package/project/projects-api-client.d.ts +179 -0
  387. package/project/projects-api-client.d.ts.map +1 -0
  388. package/project/projects-api-client.js +90 -0
  389. package/project/use-pinned-project-chats.d.ts +58 -0
  390. package/project/use-pinned-project-chats.d.ts.map +1 -0
  391. package/project/use-pinned-project-chats.js +269 -0
  392. package/project/use-project-actions.d.ts +53 -0
  393. package/project/use-project-actions.d.ts.map +1 -0
  394. package/project/use-project-actions.js +92 -0
  395. package/project/use-project-artifacts.d.ts +24 -0
  396. package/project/use-project-artifacts.d.ts.map +1 -0
  397. package/project/use-project-artifacts.js +78 -0
  398. package/project/use-project-conversations.d.ts +32 -0
  399. package/project/use-project-conversations.d.ts.map +1 -0
  400. package/project/use-project-conversations.js +200 -0
  401. package/project/use-project-draft.d.ts +46 -0
  402. package/project/use-project-draft.d.ts.map +1 -0
  403. package/project/use-project-draft.js +54 -0
  404. package/project/use-project-file-preview.d.ts +47 -0
  405. package/project/use-project-file-preview.d.ts.map +1 -0
  406. package/project/use-project-file-preview.js +50 -0
  407. package/project/use-project-submit.d.ts +49 -0
  408. package/project/use-project-submit.d.ts.map +1 -0
  409. package/project/use-project-submit.js +73 -0
  410. package/project/use-project-watch.d.ts +24 -0
  411. package/project/use-project-watch.d.ts.map +1 -0
  412. package/project/use-project-watch.js +41 -0
  413. package/project/use-project.d.ts +23 -0
  414. package/project/use-project.d.ts.map +1 -0
  415. package/project/use-project.js +73 -0
  416. package/project/use-projects.d.ts +27 -0
  417. package/project/use-projects.d.ts.map +1 -0
  418. package/project/use-projects.js +92 -0
  419. package/project.d.ts +2 -0
  420. package/project.js +20 -0
  421. package/prompt/prompt.d.ts +11 -0
  422. package/prompt/prompt.d.ts.map +1 -1
  423. package/prompt/prompt.js +7 -3
  424. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  425. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  426. package/scheduled-task/active-scheduled-task.js +18 -0
  427. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  428. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  429. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  430. package/scheduled-task/scheduled-task-description.d.ts +2 -0
  431. package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
  432. package/scheduled-task/scheduled-task-description.js +33 -24
  433. package/scheduled-task/scheduled-task-display.d.ts +106 -0
  434. package/scheduled-task/scheduled-task-display.d.ts.map +1 -0
  435. package/scheduled-task/scheduled-task-display.js +69 -0
  436. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  437. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  438. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  439. package/scheduled-task/scheduled-task-preparation.d.ts +1 -1
  440. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
  441. package/scheduled-task/scheduled-task-trigger.js +75 -48
  442. package/scheduled-task/use-scheduled-task-runs.js +19 -31
  443. package/scheduled-task/use-scheduled-tasks.d.ts +2 -2
  444. package/scheduled-task/use-scheduled-tasks.js +1 -1
  445. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  446. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  447. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  448. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  449. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  450. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  451. package/scheduled-task/useStartScheduledTask.d.ts +41 -0
  452. package/scheduled-task/useStartScheduledTask.d.ts.map +1 -0
  453. package/scheduled-task/useStartScheduledTask.js +169 -0
  454. package/scheduled-tasks.js +13 -6
  455. package/scroll-anchoring.js +1 -2
  456. package/share-invitation/models.d.ts +46 -0
  457. package/share-invitation/models.d.ts.map +1 -0
  458. package/share-invitation/share-invitation-error.d.ts +6 -0
  459. package/share-invitation/share-invitation-error.d.ts.map +1 -0
  460. package/share-invitation/share-invitation-error.js +37 -0
  461. package/share-invitation/types.d.ts +10 -0
  462. package/share-invitation/types.d.ts.map +1 -0
  463. package/share-invitation/types.js +6 -0
  464. package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts +9 -0
  465. package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.d.ts.map +1 -0
  466. package/share-invitation/useAcceptShareInvitation/useAcceptShareInvitation.js +26 -0
  467. package/shared/application-schema.js +3 -3
  468. package/shared/client-channel.d.ts +53 -0
  469. package/shared/client-channel.d.ts.map +1 -0
  470. package/shared/client-channel.js +6 -0
  471. package/shared/cron-day-of-month.js +10 -10
  472. package/shared/external-services.d.ts +1 -1
  473. package/shared/locale.d.ts +6 -2
  474. package/shared/locale.d.ts.map +1 -1
  475. package/shared/locale.js +4 -4
  476. package/shared/read-sse-events.d.ts +10 -0
  477. package/shared/read-sse-events.d.ts.map +1 -0
  478. package/shared/read-sse-events.js +33 -0
  479. package/shared/serialized-writer.d.ts +12 -0
  480. package/shared/serialized-writer.d.ts.map +1 -0
  481. package/shared/serialized-writer.js +44 -0
  482. package/shared/sleep.d.ts +3 -0
  483. package/shared/sleep.d.ts.map +1 -0
  484. package/shared/sleep.js +13 -0
  485. package/shared/theme-colors.d.ts +16 -0
  486. package/shared/theme-colors.d.ts.map +1 -0
  487. package/shared/theme-colors.js +14 -0
  488. package/shared/url-cleanup.d.ts +18 -0
  489. package/shared/url-cleanup.d.ts.map +1 -0
  490. package/shared/url-cleanup.js +18 -0
  491. package/shared/usage-stat.d.ts +3 -0
  492. package/shared/usage-stat.d.ts.map +1 -0
  493. package/shared/usage-stat.js +4 -0
  494. package/shared/useAppVersionCheck/useAppVersionCheck.d.ts +22 -0
  495. package/shared/useAppVersionCheck/useAppVersionCheck.d.ts.map +1 -0
  496. package/shared/useAppVersionCheck/useAppVersionCheck.js +36 -0
  497. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  498. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  499. package/shared/usePersistedState/usePersistedState.js +24 -0
  500. package/sharing.js +5 -2
  501. package/signin-interrupt/models.d.ts +48 -0
  502. package/signin-interrupt/models.d.ts.map +1 -0
  503. package/signin-interrupt/signin-row-info.d.ts +10 -0
  504. package/signin-interrupt/signin-row-info.d.ts.map +1 -0
  505. package/signin-interrupt/signin-row-info.js +21 -0
  506. package/signin-interrupt/types.d.ts +28 -0
  507. package/signin-interrupt/types.d.ts.map +1 -0
  508. package/signin-interrupt/types.js +10 -0
  509. package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts +52 -0
  510. package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.d.ts.map +1 -0
  511. package/signin-interrupt/useSigninInterrupt/useSigninInterrupt.js +270 -0
  512. package/skill/skill-file-batch-validation.d.ts +4 -0
  513. package/skill/skill-file-batch-validation.d.ts.map +1 -1
  514. package/skill/skill-file-batch-validation.js +34 -33
  515. package/skill/skill-lookup.d.ts +20 -0
  516. package/skill/skill-lookup.d.ts.map +1 -0
  517. package/skill/skill-lookup.js +12 -0
  518. package/skill/skill-types.js +1 -1
  519. package/skill/skill.d.ts +5 -1
  520. package/skill/skill.d.ts.map +1 -1
  521. package/skill/skill.js +27 -28
  522. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  523. package/skill/useSkillEditorSubmit.d.ts +15 -1
  524. package/skill/useSkillEditorSubmit.d.ts.map +1 -1
  525. package/skill/useSkillEditorSubmit.js +164 -87
  526. package/skill/useSkillFileActions.d.ts +2 -0
  527. package/skill/useSkillFileActions.d.ts.map +1 -1
  528. package/skill/useSkillFileActions.js +36 -21
  529. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  530. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  531. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  532. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  533. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  534. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  535. package/skill-editor.js +11 -9
  536. package/skills-state.js +3 -2
  537. package/source-content.js +1 -2
  538. package/usage/map-usage-data-to-dashboard.d.ts +1 -16
  539. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -1
  540. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -1
  541. package/usage/map-user-usage-to-model-limits.js +24 -24
  542. package/usage/usage-banner-source.d.ts +24 -0
  543. package/usage/usage-banner-source.d.ts.map +1 -0
  544. package/usage/usage-banner-source.js +61 -0
  545. package/usage/usage-gauge.d.ts +3 -0
  546. package/usage/usage-gauge.d.ts.map +1 -0
  547. package/usage/usage-gauge.js +4 -0
  548. package/usage/usage-period.d.ts +7 -0
  549. package/usage/usage-period.d.ts.map +1 -0
  550. package/usage/usage-period.js +6 -0
  551. package/usage/usage-reset-time.d.ts +78 -0
  552. package/usage/usage-reset-time.d.ts.map +1 -0
  553. package/usage/usage-reset-time.js +82 -0
  554. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  555. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  556. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  557. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  558. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  559. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  560. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  561. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  562. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  563. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  564. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  565. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  566. package/usage-limits.d.ts +2 -0
  567. package/usage-limits.js +10 -0
  568. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +2 -0
  569. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -1
  570. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  571. package/usePageFileDrag/usePageFileDrag.js +3 -3
  572. package/useShareLink/useShareLink.d.ts.map +1 -1
  573. package/useShareLink/useShareLink.js +18 -17
  574. package/utils.js +23 -17
  575. package/viewport-layout/canvas-width.d.ts +39 -0
  576. package/viewport-layout/canvas-width.d.ts.map +1 -0
  577. package/viewport-layout/canvas-width.js +23 -0
  578. package/viewport-layout.js +2 -1
@@ -1,49 +1,38 @@
1
- import { ConversationExportMode as e, ConversationTransferWarningCode as t, ExportFileNameKind as n } from "../conversation-transfer/types.js";
2
- import { EXPORT_APP_NAME as r, buildExportEnvelope as i, buildExportFileName as a, serializeExportEnvelope as o, stripConversationAttachments as s } from "../conversation-transfer/export-conversation.js";
3
- import { collectAttachmentRefs as c } from "../conversation-transfer/attachment-refs.js";
1
+ import { collectAttachmentRefs as e } from "../conversation-transfer/attachment-refs.js";
2
+ import { ConversationExportMode as t, ConversationTransferWarningCode as n, ExportFileNameKind as r } from "../conversation-transfer/types.js";
3
+ import { EXPORT_APP_NAME as i, buildExportEnvelope as a, buildExportFileName as o, serializeExportEnvelope as s, stripConversationAttachments as c } from "../conversation-transfer/export-conversation.js";
4
4
  import { resolveDialFileBucketAndPath as l } from "../conversation-transfer/dial-file-resolve.js";
5
- import { runWithConcurrency as u } from "../conversation-transfer/async.js";
6
- import { ConversationTransferKind as d, ConversationTransferPhase as f, buildTransferProgress as p } from "../conversation-transfer/progress.js";
7
- import { useConversationTransferQueue as m } from "../conversation-transfer/queue.js";
8
- import { buildDialArchive as h } from "../conversation-transfer/zip-export.js";
9
- import { ConversationTransferErrorCode as g, ConversationTransferSubjectKind as _, ConversationTransferUnitKind as v, triggerBlobDownload as y } from "@epam/ai-dial-chat-shared";
10
- import { useCallback as b } from "react";
11
- import { ResponseError as x } from "@epam/ai-dial-chat-api-client";
5
+ import { sleep as u } from "../../shared/sleep.js";
6
+ import { runWithConcurrency as d } from "../conversation-transfer/async.js";
7
+ import { ConversationTransferKind as f, ConversationTransferPhase as p, buildTransferProgress as m } from "../conversation-transfer/progress.js";
8
+ import { useConversationTransferQueue as h } from "../conversation-transfer/queue.js";
9
+ import { buildDialArchive as g } from "../conversation-transfer/zip-export.js";
10
+ import { ResponseError as _ } from "@epam/ai-dial-chat-api-client";
11
+ import { ConversationTransferErrorCode as v, ConversationTransferSubjectKind as y, ConversationTransferUnitKind as b, triggerBlobDownload as x } from "@epam/ai-dial-chat-shared";
12
+ import { useCallback as S } from "react";
12
13
  //#region src/conversation/useConversationExport/useConversationExport.ts
13
- var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instanceof x && e.response.status === w, O = (e, t) => {
14
+ var C = 5, w = 536870912, T = 429, E = 5, D = 2e3, O = (e) => e instanceof _ && e.response.status === T, k = (e, t) => {
14
15
  let n = Number(e.response.headers.get("Retry-After"));
15
- return Number.isFinite(n) && n > 0 ? n * 1e3 : E * t;
16
- }, k = (e, t) => new Promise((n) => {
17
- if (t.aborted) {
18
- n();
19
- return;
20
- }
21
- let r = setTimeout(n, e);
22
- t.addEventListener("abort", () => {
23
- clearTimeout(r), n();
24
- }, { once: !0 });
25
- }), A = async (e, t, n) => {
16
+ return Number.isFinite(n) && n > 0 ? n * 1e3 : D * t;
17
+ }, A = async (e, t, n) => {
26
18
  for (let r = 1;; r += 1) try {
27
19
  return await e.getConversation({ path: t }, { signal: n });
28
20
  } catch (e) {
29
- if (n.aborted || !D(e) || r >= T) throw e;
30
- await k(O(e, r), n);
21
+ if (n.aborted || !O(e) || r >= E) throw e;
22
+ await u(k(e, r), n);
31
23
  }
32
- }, j = (e) => !e.sharedWithMe && !e.publishedWithMe, M = (e) => e instanceof RangeError, N = (t) => t === e.WithoutAttachments ? d.ExportSingle : d.ExportSingleWithAttachments, P = ({ conversationsApi: x, filesApi: w, normalizeConversationPath: T, classifyTransferError: E = () => ({}), resolveErrorTraceId: D = async () => void 0, maxArchiveBytes: O = C, onSuccess: k, onWarning: P, onError: F }) => {
33
- let I = m(), L = b(async (e, t, n) => {
24
+ }, j = (e) => !e.sharedWithMe && !e.publishedWithMe, M = (e) => e instanceof RangeError, N = (e) => e === t.WithoutAttachments ? f.ExportSingle : f.ExportSingleWithAttachments, P = ({ conversationsApi: u, filesApi: _, normalizeConversationPath: T, classifyTransferError: E = () => ({}), resolveErrorTraceId: D = async () => void 0, maxArchiveBytes: O = w, onSuccess: k, onWarning: P, onError: F }) => {
25
+ let I = h(), L = S(async (e, t, n) => {
34
26
  let r = !1, i = !1, a = 0, o = () => {
35
27
  a += 1, n(a, e.length);
36
28
  };
37
29
  return {
38
- entries: await u(e, S, async (e) => {
30
+ entries: await d(e, C, async (e) => {
39
31
  if (t.aborted || i) return;
40
32
  let n = l(e.fileId);
41
- if (!n) {
42
- r = !0, o();
43
- return;
44
- }
45
- try {
46
- let e = await w.downloadFileRaw({
33
+ if (!n) r = !0, o();
34
+ else try {
35
+ let e = await _.downloadFileRaw({
47
36
  bucket: n.bucket,
48
37
  path: n.path
49
38
  }, { signal: t }), r = new Uint8Array(await e.raw.arrayBuffer());
@@ -64,98 +53,99 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
64
53
  anySkipped: !t.aborted && !i && r,
65
54
  isUnauthorized: !t.aborted && i
66
55
  };
67
- }, [E, w]), R = b(async (n, r, a, l, u, d) => {
68
- let m = N(l), _;
56
+ }, [E, _]), R = S(async (r, i, o, l, d, f) => {
57
+ let h = N(l), _;
69
58
  try {
70
- _ = await A(x, T(r), d);
59
+ _ = await A(u, T(i), f);
71
60
  } catch (e) {
72
- if (d.aborted) return;
61
+ if (f.aborted) return;
73
62
  if (E(e).isUnauthorized) F?.({
74
- jobId: n,
75
- code: g.Unauthorized
76
- }), I.failJob(n, g.Unauthorized);
63
+ jobId: r,
64
+ code: v.Unauthorized
65
+ }), I.failJob(r, v.Unauthorized);
77
66
  else {
78
67
  let t = await D(e);
79
68
  F?.({
80
- jobId: n,
81
- code: g.Unknown,
82
- titles: [a],
69
+ jobId: r,
70
+ code: v.Unknown,
71
+ titles: [o],
83
72
  traceId: t
84
- }), I.failJob(n, g.Unknown);
73
+ }), I.failJob(r, v.Unknown);
85
74
  }
86
75
  console.error("Failed to fetch conversation for export", e);
87
76
  return;
88
77
  }
89
- if (!d.aborted) {
90
- I.setJobProgress(n, p({
91
- kind: m,
92
- phase: f.Prepare
78
+ if (!f.aborted) {
79
+ I.setJobProgress(r, m({
80
+ kind: h,
81
+ phase: p.Prepare
93
82
  }));
94
83
  try {
95
- if (l === e.WithoutAttachments) {
96
- y(o(i([s(_)], [])), u), k?.({
97
- jobId: n,
98
- titles: [a]
99
- }), I.succeedJob(n);
84
+ if (l === t.WithoutAttachments) {
85
+ let e = a([c(_)], []), t = s(e);
86
+ x(t, d), k?.({
87
+ jobId: r,
88
+ titles: [o]
89
+ }), I.succeedJob(r);
100
90
  return;
101
91
  }
102
- let r = c(_), { entries: b, anySkipped: x, isUnauthorized: S } = await L(r, d, (e, t) => {
103
- I.setJobProgress(n, p({
104
- kind: m,
105
- phase: f.Transfer,
92
+ let i = e(_), { entries: u, anySkipped: y, isUnauthorized: S } = await L(i, f, (e, t) => {
93
+ I.setJobProgress(r, m({
94
+ kind: h,
95
+ phase: p.Transfer,
106
96
  completed: e,
107
97
  total: t
108
98
  }, {
109
99
  completed: e,
110
100
  total: t,
111
- kind: v.Attachment
101
+ kind: b.Attachment
112
102
  }));
113
103
  });
114
- if (d.aborted) return;
104
+ if (f.aborted) return;
115
105
  if (S) {
116
106
  F?.({
117
- jobId: n,
118
- code: g.Unauthorized
119
- }), I.failJob(n, g.Unauthorized);
107
+ jobId: r,
108
+ code: v.Unauthorized
109
+ }), I.failJob(r, v.Unauthorized);
120
110
  return;
121
111
  }
122
- I.setJobProgress(n, p({
123
- kind: m,
124
- phase: f.Transfer,
125
- completed: r.length,
126
- total: r.length
112
+ I.setJobProgress(r, m({
113
+ kind: h,
114
+ phase: p.Transfer,
115
+ completed: i.length,
116
+ total: i.length
127
117
  }));
128
- let C = b.reduce((e, t) => e + t.data.byteLength, 0);
118
+ let C = u.reduce((e, t) => e + t.data.byteLength, 0);
129
119
  if (C > O) {
130
120
  F?.({
131
- jobId: n,
132
- code: g.FileTooLarge,
133
- titles: [a]
134
- }), I.failJob(n, g.FileTooLarge), console.error(`Refused to build an export archive of ${C} bytes: over the ${O}-byte limit`);
121
+ jobId: r,
122
+ code: v.FileTooLarge,
123
+ titles: [o]
124
+ }), I.failJob(r, v.FileTooLarge), console.error(`Refused to build an export archive of ${C} bytes: over the ${O}-byte limit`);
135
125
  return;
136
126
  }
137
- let { blob: w, skippedPaths: T } = h(i([_], []), b), E = x || T.length > 0;
138
- E && P?.({
139
- jobId: n,
140
- code: t.AttachmentSkipped
141
- }), y(w, u), k?.({
142
- jobId: n,
143
- titles: [a]
144
- }), E ? I.warnJob(n, t.AttachmentSkipped) : I.succeedJob(n);
127
+ let w = a([_], []), { blob: T, skippedPaths: E } = g(w, u), D = y || E.length > 0;
128
+ D && P?.({
129
+ jobId: r,
130
+ code: n.AttachmentSkipped
131
+ }), x(T, d), k?.({
132
+ jobId: r,
133
+ titles: [o]
134
+ }), D ? I.warnJob(r, n.AttachmentSkipped) : I.succeedJob(r);
145
135
  } catch (e) {
146
- if (d.aborted) return;
147
- let t = M(e) ? g.FileTooLarge : g.Unknown, r = await D(e);
136
+ if (f.aborted) return;
137
+ let t = M(e) ? v.FileTooLarge : v.Unknown, n = await D(e);
148
138
  F?.({
149
- jobId: n,
139
+ jobId: r,
150
140
  code: t,
151
- titles: [a],
152
- traceId: r
153
- }), I.failJob(n, t), console.error("Failed to build conversation export archive", e);
141
+ titles: [o],
142
+ traceId: n
143
+ }), I.failJob(r, t), console.error("Failed to build conversation export archive", e);
154
144
  }
155
145
  }
156
146
  }, [
157
147
  E,
158
- x,
148
+ u,
159
149
  L,
160
150
  O,
161
151
  T,
@@ -164,50 +154,50 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
164
154
  P,
165
155
  I,
166
156
  D
167
- ]), z = b((t, i, o) => {
168
- let s = a(o === e.WithoutAttachments ? n.SingleConversation : n.SingleConversationWithAttachments, r), c = I.addJob({
169
- kind: _.Single,
170
- title: i
157
+ ]), z = S((e, n, a) => {
158
+ let s = o(a === t.WithoutAttachments ? r.SingleConversation : r.SingleConversationWithAttachments, i), c = I.addJob({
159
+ kind: y.Single,
160
+ title: n
171
161
  }, s);
172
- return I.startJob(c, (e) => R(c, t, i, o, s, e));
173
- }, [I, R]), B = b(async (e, t, n) => {
174
- let r = d.ExportAll, a = [], c;
162
+ return I.startJob(c, (t) => R(c, e, n, a, s, t));
163
+ }, [I, R]), B = S(async (e, t, n) => {
164
+ let r = f.ExportAll, i = [], o;
175
165
  do {
176
166
  if (n.aborted) return;
177
167
  let t;
178
168
  try {
179
- t = await x.listConversations({ nextToken: c }, { signal: n });
169
+ t = await u.listConversations({ nextToken: o }, { signal: n });
180
170
  } catch (t) {
181
171
  if (n.aborted) return;
182
172
  if (E(t).isUnauthorized) F?.({
183
173
  jobId: e,
184
- code: g.Unauthorized
185
- }), I.failJob(e, g.Unauthorized);
174
+ code: v.Unauthorized
175
+ }), I.failJob(e, v.Unauthorized);
186
176
  else {
187
177
  let n = await D(t);
188
178
  F?.({
189
179
  jobId: e,
190
- code: g.Unknown,
180
+ code: v.Unknown,
191
181
  traceId: n
192
- }), I.failJob(e, g.Unknown);
182
+ }), I.failJob(e, v.Unknown);
193
183
  }
194
184
  console.error("Failed to list conversations for export", t);
195
185
  return;
196
186
  }
197
- a.push(...t.items.filter(j).map((e) => ({
187
+ i.push(...t.items.filter(j).map((e) => ({
198
188
  id: e.id,
199
189
  title: e.title
200
- }))), c = t.nextToken;
201
- } while (c);
202
- I.setJobProgress(e, p({
190
+ }))), o = t.nextToken;
191
+ } while (o);
192
+ I.setJobProgress(e, m({
203
193
  kind: r,
204
- phase: f.Prepare
194
+ phase: p.Prepare
205
195
  }));
206
196
  let l = [];
207
- for (let t of a) {
197
+ for (let t of i) {
208
198
  if (n.aborted) return;
209
199
  try {
210
- let e = await A(x, T(t.id), n);
200
+ let e = await A(u, T(t.id), n);
211
201
  l.push(e);
212
202
  } catch (r) {
213
203
  if (n.aborted) return;
@@ -215,15 +205,15 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
215
205
  if (i.isUnauthorized) {
216
206
  F?.({
217
207
  jobId: e,
218
- code: g.Unauthorized
219
- }), I.failJob(e, g.Unauthorized);
208
+ code: v.Unauthorized
209
+ }), I.failJob(e, v.Unauthorized);
220
210
  return;
221
211
  }
222
212
  if (i.isNotFound) {
223
213
  let n = await D(r);
224
214
  F?.({
225
215
  jobId: e,
226
- code: g.NotFound,
216
+ code: v.NotFound,
227
217
  titles: [t.title],
228
218
  traceId: n
229
219
  }), console.error("Skipped a conversation during export-all: not found", r);
@@ -232,27 +222,28 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
232
222
  let a = await D(r);
233
223
  F?.({
234
224
  jobId: e,
235
- code: g.Unknown,
225
+ code: v.Unknown,
236
226
  traceId: a
237
- }), I.failJob(e, g.Unknown), console.error("Aborted export-all: failed to fetch conversation", r);
227
+ }), I.failJob(e, v.Unknown), console.error("Aborted export-all: failed to fetch conversation", r);
238
228
  return;
239
229
  } finally {
240
- I.setJobProgress(e, p({
230
+ I.setJobProgress(e, m({
241
231
  kind: r,
242
- phase: f.Transfer,
232
+ phase: p.Transfer,
243
233
  completed: l.length,
244
- total: a.length
234
+ total: i.length
245
235
  }, {
246
236
  completed: l.length,
247
- total: a.length,
248
- kind: v.Conversation
237
+ total: i.length,
238
+ kind: b.Conversation
249
239
  }));
250
240
  }
251
241
  }
252
242
  if (!n.aborted) try {
253
- y(o(i(l.map(s), [])), t), k?.({ jobId: e }), I.succeedJob(e);
243
+ let n = a(l.map(c), []), r = s(n);
244
+ x(r, t), k?.({ jobId: e }), I.succeedJob(e);
254
245
  } catch (t) {
255
- let n = M(t) ? g.FileTooLarge : g.Unknown, r = await D(t);
246
+ let n = M(t) ? v.FileTooLarge : v.Unknown, r = await D(t);
256
247
  F?.({
257
248
  jobId: e,
258
249
  code: n,
@@ -261,14 +252,14 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
261
252
  }
262
253
  }, [
263
254
  E,
264
- x,
255
+ u,
265
256
  T,
266
257
  F,
267
258
  k,
268
259
  I,
269
260
  D
270
- ]), V = b(() => {
271
- let e = a(n.AllConversationsHistory, r), t = I.addJob({ kind: _.All }, e);
261
+ ]), V = S(() => {
262
+ let e = o(r.AllConversationsHistory, i), t = I.addJob({ kind: y.All }, e);
272
263
  return I.startJob(t, (n) => B(t, e, n));
273
264
  }, [I, B]);
274
265
  return {
@@ -282,4 +273,4 @@ var S = 5, C = 512 * 1024 * 1024, w = 429, T = 5, E = 2e3, D = (e) => e instance
282
273
  };
283
274
  };
284
275
  //#endregion
285
- export { C as DEFAULT_MAX_ARCHIVE_BYTES, P as useConversationExport };
276
+ export { w as DEFAULT_MAX_ARCHIVE_BYTES, P as useConversationExport };
@@ -3,10 +3,10 @@ import { MessageRole as e } from "@epam/ai-dial-chat-shared";
3
3
  var t = (e) => e != null && Object.keys(e).length > 0, n = (e, n) => t(n) ? {
4
4
  ...e,
5
5
  configuration_value: n
6
- } : e, r = (e, t) => (e?.length ?? 0) === (t?.length ?? 0) ? (e ?? []).some((e, n) => e.url !== t?.[n]?.url) : !0, i = (e, t, n, i, a) => {
6
+ } : e, r = (e, t) => (e?.length ?? 0) !== (t?.length ?? 0) || (e ?? []).some((e, n) => e.url !== t?.[n]?.url), i = (e, t, n, i, a) => {
7
7
  if (t !== e.content || i.length > 0) return !0;
8
8
  let o = e.custom_content?.attachments?.length ?? 0;
9
- return n.length === o ? a != null && r(e.custom_content?.skills, a) : !0;
9
+ return n.length !== o || a != null && r(e.custom_content?.skills, a);
10
10
  }, a = (t) => t == null || t.role !== e.Assistant || !!t.wasStoppedByUser || t.streamErrorMessage != null, o = (e, t, n, r, o, s) => {
11
11
  let c = e[t];
12
12
  return c ? i(c, n, r, o, s) || a(e[t + 1]) : !1;
@@ -4,34 +4,34 @@ import { createMessagePair as n } from "./message-factory.js";
4
4
  import { hasActiveToolConfig as r, shouldRerunGenerationOnEdit as i, withToolConfiguration as a } from "./message-utils.js";
5
5
  import { getStarterDisplayText as o, getStarterSubmitText as s } from "./starter-option.js";
6
6
  import { getConversationPath as c } from "../useConversationStream/conversation-path.js";
7
- import { MessageRole as l, generateUUID as u } from "@epam/ai-dial-chat-shared";
8
- import { useCallback as d, useState as f } from "react";
9
- import { SendCompletionDtoModeEnum as p } from "@epam/ai-dial-chat-api-client";
7
+ import { SendCompletionDtoModeEnum as l } from "@epam/ai-dial-chat-api-client";
8
+ import { MessageRole as u, generateUUID as d } from "@epam/ai-dial-chat-shared";
9
+ import { useCallback as f, useState as p } from "react";
10
10
  //#region src/conversation/useConversationHandlers/useConversationHandlers.ts
11
11
  var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startStream: v, state: { setConversation: y, conversationRef: b }, filesApi: x, conversationsApi: S, rateApi: C, resolveModelId: w, onConversationDeleted: T, showNetworkError: E, toolConfigurationValue: D }) => {
12
- let [O, k] = f(null), [A, j] = f(/* @__PURE__ */ new Set()), [M, N] = f(null), { handleUploadAttachment: P } = e({
12
+ let [O, k] = p(null), [A, j] = p(/* @__PURE__ */ new Set()), [M, N] = p(null), { handleUploadAttachment: P } = e({
13
13
  filesApi: x,
14
14
  bucket: g,
15
15
  onNetworkError: E
16
- }), F = d(async (e, i, a) => {
16
+ }), F = f(async (e, i, a) => {
17
17
  if (!h || !m) return;
18
18
  let o = t(i), s = r(D), c = o?.length || s || a?.length ? {
19
19
  ...o?.length ? { attachments: o } : {},
20
20
  ...s ? { configuration_value: D } : {},
21
21
  ...a?.length ? { skills: a } : {}
22
- } : void 0, l = w(), { userMessage: d, assistantMessage: f } = n(e, c, l);
22
+ } : void 0, u = w(), { userMessage: f, assistantMessage: p } = n(e, c, u);
23
23
  y((e) => {
24
24
  if (!e) return e;
25
25
  let t = {
26
26
  ...e,
27
27
  messages: [
28
28
  ...e.messages,
29
- d,
30
- f
29
+ f,
30
+ p
31
31
  ]
32
32
  };
33
33
  return b.current = t, t;
34
- }), v(h, e, m.messages.length + 1, l, c, u(), p.Append);
34
+ }), v(h, e, m.messages.length + 1, u, c, d(), l.Append);
35
35
  }, [
36
36
  m,
37
37
  h,
@@ -40,11 +40,11 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
40
40
  y,
41
41
  v,
42
42
  D
43
- ]), I = d((e) => {
43
+ ]), I = f((e) => {
44
44
  let t = b.current;
45
- if (_ || !h || !t || e === -1 || t.messages[e]?.role !== l.Assistant) return;
45
+ if (_ || !h || !t || e === -1 || t.messages[e]?.role !== u.Assistant) return;
46
46
  let n = t.messages[e - 1];
47
- if (!n || n.role !== l.User) return;
47
+ if (!n || n.role !== u.User) return;
48
48
  let r = w(), i = a(n.custom_content, D), o = {
49
49
  ...t.messages[e],
50
50
  content: "",
@@ -64,7 +64,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
64
64
  o
65
65
  ]
66
66
  };
67
- b.current = s, y(s), j((t) => new Set([...t].filter((t) => t < e))), v(h, n.content, e, r, i, u(), p.Regenerate);
67
+ b.current = s, y(s), j((t) => new Set([...t].filter((t) => t < e))), v(h, n.content, e, r, i, d(), l.Regenerate);
68
68
  }, [
69
69
  h,
70
70
  b,
@@ -73,16 +73,16 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
73
73
  y,
74
74
  v,
75
75
  D
76
- ]), L = d((e) => {
76
+ ]), L = f((e) => {
77
77
  _ || k(e);
78
- }, [_]), R = d(() => {
78
+ }, [_]), R = f(() => {
79
79
  if (!h || O == null) return;
80
80
  let e = O;
81
81
  k(null);
82
82
  let t = b.current;
83
83
  if (!t || e === -1) return;
84
- let n = c(h), r = t.messages[e + 1]?.role === l.Assistant ? t.messages.filter((t, n) => n !== e && n !== e + 1) : t.messages.filter((t, n) => n !== e);
85
- if (r.length === 0 || r.length === 1 && r[0].role === l.Status) {
84
+ let n = c(h), r = t.messages[e + 1]?.role === u.Assistant ? t.messages.filter((t, n) => n !== e && n !== e + 1) : t.messages.filter((t, n) => n !== e);
85
+ if (r.length === 0 || r.length === 1 && r[0].role === u.Status) {
86
86
  S.deleteConversation({ path: n }), T?.();
87
87
  return;
88
88
  }
@@ -101,7 +101,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
101
101
  T,
102
102
  O,
103
103
  y
104
- ]), z = d(async (e, t, n) => {
104
+ ]), z = f(async (e, t, n) => {
105
105
  let r = b.current;
106
106
  if (!h || !r) return !1;
107
107
  let i = r.messages[e];
@@ -148,12 +148,12 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
148
148
  S,
149
149
  C,
150
150
  y
151
- ]), B = d((e, t, i) => {
151
+ ]), B = f((e, t, i) => {
152
152
  let a = b.current;
153
153
  if (!h || !a) return;
154
- let c = o(e, i), l = s(e, i), d = t ? { [t]: e.const } : void 0, f = r(D), m = d || f ? {
155
- ...d ? { form_value: d } : {},
156
- ...f ? { configuration_value: D } : {}
154
+ let c = o(e, i), u = s(e, i), f = t ? { [t]: e.const } : void 0, p = r(D), m = f || p ? {
155
+ ...f ? { form_value: f } : {},
156
+ ...p ? { configuration_value: D } : {}
157
157
  } : void 0, g = w(), { userMessage: _, assistantMessage: x } = n(c, m, g);
158
158
  y((e) => {
159
159
  if (!e) return e;
@@ -166,7 +166,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
166
166
  ]
167
167
  };
168
168
  return b.current = t, t;
169
- }), v(h, l, a.messages.length + 1, g, m, u(), p.Append);
169
+ }), v(h, u, a.messages.length + 1, g, m, d(), l.Append);
170
170
  }, [
171
171
  h,
172
172
  b,
@@ -182,9 +182,9 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
182
182
  handleDeleteMessage: L,
183
183
  handleConfirmDelete: R,
184
184
  handleRateMessage: z,
185
- handleButtonSelect: d((e, t, n) => {
185
+ handleButtonSelect: f((e, t, n) => {
186
186
  let r = b.current;
187
- !h || !r || _ || (e["dial:widgetOptions"].confirmationMessage ? N({
187
+ h && r && !_ && (e["dial:widgetOptions"].confirmationMessage ? N({
188
188
  starter: e,
189
189
  propertyKey: t,
190
190
  description: n
@@ -195,52 +195,52 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
195
195
  _,
196
196
  B
197
197
  ]),
198
- handleConfirmStarter: d(() => {
198
+ handleConfirmStarter: f(() => {
199
199
  if (!M) return;
200
200
  let { starter: e, propertyKey: t, description: n } = M;
201
201
  N(null), B(e, t, n);
202
202
  }, [M, B]),
203
- handleStartEdit: d((e) => {
204
- j((t) => new Set([...t, e]));
203
+ handleStartEdit: f((e) => {
204
+ j((t) => /* @__PURE__ */ new Set([...t, e]));
205
205
  }, []),
206
- handleCancelEdit: d((e) => {
206
+ handleCancelEdit: f((e) => {
207
207
  j((t) => {
208
208
  let n = new Set(t);
209
209
  return n.delete(e), n;
210
210
  });
211
211
  }, []),
212
- handleEditMessage: d(async (e, n, r, o, s) => {
212
+ handleEditMessage: f(async (e, n, r, o, s) => {
213
213
  let c = b.current;
214
214
  if (_ || !h || !c) return;
215
- let d = e;
216
- if (d === -1 || c.messages[d].role !== l.User) return;
217
- let f = c.messages[d];
218
- if (!i(c.messages, d, n, r, o, s)) {
215
+ let f = e;
216
+ if (f === -1 || c.messages[f].role !== u.User) return;
217
+ let p = c.messages[f];
218
+ if (!i(c.messages, f, n, r, o, s)) {
219
219
  j((e) => {
220
220
  let t = new Set(e);
221
- return t.delete(d), t;
221
+ return t.delete(f), t;
222
222
  });
223
223
  return;
224
224
  }
225
- let m = t(o), g = new Set(r.map((e) => e.id)), x = [...(f.custom_content?.attachments ?? []).filter((e) => {
225
+ let m = t(o), g = new Set(r.map((e) => e.id)), x = [...(p.custom_content?.attachments ?? []).filter((e) => {
226
226
  let t = e.url ?? e.data ?? e.title;
227
227
  return g.has(t);
228
- }), ...m ?? []], { attachments: S, skills: C, ...T } = f.custom_content ?? {}, E = s ?? C, O;
228
+ }), ...m ?? []], { attachments: S, skills: C, ...T } = p.custom_content ?? {}, E = s ?? C, O;
229
229
  O = x.length > 0 || E?.length ? {
230
230
  ...T,
231
231
  ...x.length > 0 ? { attachments: x } : {},
232
232
  ...E?.length ? { skills: E } : {}
233
233
  } : Object.keys(T).length > 0 ? T : void 0, O = a(O, D);
234
234
  let k = {
235
- ...f,
235
+ ...p,
236
236
  content: n,
237
237
  custom_content: O
238
238
  }, A = Date.now(), M = {
239
- role: l.Assistant,
239
+ role: u.Assistant,
240
240
  content: "",
241
241
  timestamp: new Date(A).toISOString()
242
242
  }, N = [
243
- ...c.messages.slice(0, d),
243
+ ...c.messages.slice(0, f),
244
244
  k,
245
245
  M
246
246
  ], P = {
@@ -249,7 +249,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
249
249
  };
250
250
  b.current = P, y(P);
251
251
  let F = w();
252
- v(h, n, N.length - 1, F, O, u(), p.Edit), j(/* @__PURE__ */ new Set());
252
+ v(h, n, N.length - 1, F, O, d(), l.Edit), j(/* @__PURE__ */ new Set());
253
253
  }, [
254
254
  h,
255
255
  b,
@@ -21,8 +21,9 @@ var x = 5, S = 5, C = (e) => /\.(dial|zip)$/i.test(e.name), w = (e) => new Promi
21
21
  isArchive: !0
22
22
  };
23
23
  }
24
+ let t = await w(e);
24
25
  return {
25
- history: a(await w(e)).history,
26
+ history: a(t).history,
26
27
  attachments: /* @__PURE__ */ new Map(),
27
28
  isArchive: !1
28
29
  };
@@ -168,32 +169,31 @@ var x = 5, S = 5, C = (e) => /\.(dial|zip)$/i.test(e.name), w = (e) => new Promi
168
169
  k(A.length + j.length);
169
170
  }
170
171
  if (!m.aborted) {
171
- if (N) {
172
- D?.({
172
+ if (N) D?.({
173
+ jobId: n,
174
+ code: g.Unauthorized
175
+ }), O.failJob(n, g.Unauthorized);
176
+ else {
177
+ if (A.length > 0) {
178
+ try {
179
+ await h?.();
180
+ } catch {}
181
+ C?.({
182
+ jobId: n,
183
+ titles: A
184
+ });
185
+ }
186
+ j.length > 0 && D?.({
173
187
  jobId: n,
174
- code: g.Unauthorized
175
- }), O.failJob(n, g.Unauthorized);
176
- return;
177
- }
178
- if (A.length > 0) {
179
- try {
180
- await h?.();
181
- } catch {}
182
- C?.({
188
+ code: g.Unknown,
189
+ titles: j,
190
+ traceId: P
191
+ }), M.size > 0 && w?.({
183
192
  jobId: n,
184
- titles: A
185
- });
193
+ code: t.AttachmentSkipped,
194
+ names: [...M]
195
+ }), j.length > 0 ? O.failJob(n, g.Unknown) : M.size > 0 ? O.warnJob(n, t.AttachmentSkipped, [...M]) : O.succeedJob(n);
186
196
  }
187
- j.length > 0 && D?.({
188
- jobId: n,
189
- code: g.Unknown,
190
- titles: j,
191
- traceId: P
192
- }), M.size > 0 && w?.({
193
- jobId: n,
194
- code: t.AttachmentSkipped,
195
- names: [...M]
196
- }), j.length > 0 ? O.failJob(n, g.Unknown) : M.size > 0 ? O.warnJob(n, t.AttachmentSkipped, [...M]) : O.succeedJob(n);
197
197
  }
198
198
  }, [
199
199
  u,