@epam/ai-dial-chat-hooks 1.3.0-dev.16 → 1.3.0-dev.160

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 (517) hide show
  1. package/api-error/api-error.d.ts +30 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-error/api-error.js +2 -2
  4. package/api-transport/create-csrf-middleware.d.ts +15 -0
  5. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  7. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  8. package/api-transport/create-unauthorized-middleware.js +4 -1
  9. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  10. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  11. package/attachment/useAttachmentAction/useAttachmentAction.js +5 -8
  12. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  13. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  14. package/attachments.d.ts +2 -94
  15. package/catalog/catalog-derivations.d.ts +27 -0
  16. package/catalog/catalog-derivations.d.ts.map +1 -0
  17. package/catalog/catalog-derivations.js +1 -1
  18. package/catalog/catalog-primary-action.d.ts +47 -0
  19. package/catalog/catalog-primary-action.d.ts.map +1 -0
  20. package/catalog/create-publish-api.d.ts +34 -0
  21. package/catalog/create-publish-api.d.ts.map +1 -0
  22. package/catalog/create-publish-api.js +4 -0
  23. package/catalog/deployment-endpoint-url.d.ts +19 -0
  24. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  25. package/catalog/deployment-id.d.ts +42 -0
  26. package/catalog/deployment-id.d.ts.map +1 -0
  27. package/catalog/entity-details.d.ts +146 -0
  28. package/catalog/entity-details.d.ts.map +1 -0
  29. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  30. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  31. package/catalog/map-deployment-limits-to-input.d.ts +29 -0
  32. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  33. package/catalog/map-deployment-limits-to-input.js +3 -4
  34. package/catalog/map-deployment-to-catalog-item.d.ts +61 -0
  35. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  36. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  37. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  38. package/catalog/map-entity-details-to-catalog.js +1 -1
  39. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  40. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  41. package/catalog/map-skill-to-catalog-item.d.ts +113 -0
  42. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  43. package/catalog/map-skill-to-catalog-item.js +1 -5
  44. package/catalog/mcp-endpoint-url.d.ts +18 -0
  45. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  46. package/catalog/publish.d.ts +35 -0
  47. package/catalog/publish.d.ts.map +1 -0
  48. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  49. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  50. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +107 -0
  51. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  52. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +90 -71
  53. package/catalog/useCatalogItemDetails.d.ts +70 -0
  54. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  55. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  56. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  57. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  58. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  59. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  60. package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
  61. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  62. package/catalog/usePublishFolders/usePublishFolders.js +1 -1
  63. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  64. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  65. package/catalog/useSkillItemDetails.d.ts +64 -0
  66. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  67. package/catalog/useSkillItemDetails.js +3 -3
  68. package/catalog.d.ts +2 -1436
  69. package/conversation/announcement-message.d.ts +61 -0
  70. package/conversation/announcement-message.d.ts.map +1 -0
  71. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  72. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  73. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  74. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  75. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  76. package/conversation/conversation-transfer/async.d.ts +10 -0
  77. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  78. package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
  79. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  80. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  81. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  82. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  83. package/conversation/conversation-transfer/date.d.ts +5 -0
  84. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  85. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  86. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  87. package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
  88. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  89. package/conversation/conversation-transfer/export-conversation.js +19 -18
  90. package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
  91. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  92. package/conversation/conversation-transfer/import-conversation.js +65 -69
  93. package/conversation/conversation-transfer/progress.d.ts +60 -0
  94. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  95. package/conversation/conversation-transfer/progress.js +1 -1
  96. package/conversation/conversation-transfer/queue.d.ts +54 -0
  97. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  98. package/conversation/conversation-transfer/types.d.ts +36 -0
  99. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  100. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  101. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  102. package/conversation/conversation-transfer/zip-export.js +1 -7
  103. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  104. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  105. package/conversation/conversation-transfer/zip-import.js +1 -1
  106. package/conversation/create-chat-stream-api.d.ts +109 -0
  107. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  108. package/conversation/create-chat-stream-api.js +57 -47
  109. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  110. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  111. package/conversation/display-name-watch.d.ts +4 -0
  112. package/conversation/display-name-watch.d.ts.map +1 -0
  113. package/conversation/footer-message.d.ts +10 -0
  114. package/conversation/footer-message.d.ts.map +1 -0
  115. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  116. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  117. package/conversation/get-model-id-from-conversation-id.js +1 -1
  118. package/conversation/greeting.d.ts +18 -0
  119. package/conversation/greeting.d.ts.map +1 -0
  120. package/conversation/message-factory.d.ts +7 -0
  121. package/conversation/message-factory.d.ts.map +1 -0
  122. package/conversation/message-utils.d.ts +67 -0
  123. package/conversation/message-utils.d.ts.map +1 -0
  124. package/conversation/overlay-messages.d.ts +5 -0
  125. package/conversation/overlay-messages.d.ts.map +1 -0
  126. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  127. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  128. package/conversation/stage.d.ts +77 -0
  129. package/conversation/stage.d.ts.map +1 -0
  130. package/conversation/starter-option.d.ts +21 -0
  131. package/conversation/starter-option.d.ts.map +1 -0
  132. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +35 -0
  133. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  134. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  135. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  136. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  137. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  138. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  139. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  140. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  141. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  142. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  143. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  144. package/conversation/useConversationExport/useConversationExport.js +59 -60
  145. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  146. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  147. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  148. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  149. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  150. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  151. package/conversation/useConversationHandlers/message-utils.js +2 -2
  152. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  153. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  154. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  155. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  156. package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
  157. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  158. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  159. package/conversation/useConversationImport/useConversationImport.js +24 -24
  160. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  161. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  162. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  163. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  164. package/conversation/useConversationPanelItems/useConversationPanelItems.js +31 -30
  165. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  166. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  167. package/conversation/useConversationScroll/useConversationScroll.js +2 -6
  168. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  169. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  170. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  171. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  172. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  173. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  174. package/conversation/useConversationStream/conversation-path.js +2 -2
  175. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  176. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  177. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  178. package/conversation/useConversationStream/generation-resume.d.ts +98 -0
  179. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  180. package/conversation/useConversationStream/generation-resume.js +64 -65
  181. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  182. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  183. package/conversation/useConversationStream/useConversationStream.js +248 -241
  184. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  185. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  186. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  187. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  188. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  189. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  190. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  191. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  192. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  193. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +43 -0
  194. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  195. package/conversation/useTranscribeAudio/useTranscribeAudio.js +30 -27
  196. package/conversation-overlay.d.ts +2 -7
  197. package/conversation-overlay.js +1 -2
  198. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  199. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  200. package/conversation-sources.d.ts +2 -25
  201. package/conversation-sources.js +1 -2
  202. package/conversation-transfer.d.ts +2 -190
  203. package/conversation.d.ts +2 -1372
  204. package/conversation.js +34 -32
  205. package/entry-points/attachments.d.ts +3 -0
  206. package/entry-points/attachments.d.ts.map +1 -0
  207. package/entry-points/catalog.d.ts +25 -0
  208. package/entry-points/catalog.d.ts.map +1 -0
  209. package/entry-points/conversation-overlay.d.ts +2 -0
  210. package/entry-points/conversation-overlay.d.ts.map +1 -0
  211. package/entry-points/conversation-sources.d.ts +2 -0
  212. package/entry-points/conversation-sources.d.ts.map +1 -0
  213. package/entry-points/conversation-transfer.d.ts +7 -0
  214. package/entry-points/conversation-transfer.d.ts.map +1 -0
  215. package/entry-points/conversation.d.ts +36 -0
  216. package/entry-points/conversation.d.ts.map +1 -0
  217. package/entry-points/file-manager-canvas.d.ts +2 -0
  218. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  219. package/entry-points/file-manager.d.ts +31 -0
  220. package/entry-points/file-manager.d.ts.map +1 -0
  221. package/entry-points/mcp-apps.d.ts +6 -0
  222. package/entry-points/mcp-apps.d.ts.map +1 -0
  223. package/entry-points/oauth.d.ts +10 -0
  224. package/entry-points/oauth.d.ts.map +1 -0
  225. package/entry-points/offline-credentials.d.ts +5 -0
  226. package/entry-points/offline-credentials.d.ts.map +1 -0
  227. package/entry-points/scheduled-tasks.d.ts +9 -0
  228. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  229. package/entry-points/scroll-anchoring.d.ts +2 -0
  230. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  231. package/entry-points/sharing.d.ts +3 -0
  232. package/entry-points/sharing.d.ts.map +1 -0
  233. package/entry-points/skill-editor.d.ts +9 -0
  234. package/entry-points/skill-editor.d.ts.map +1 -0
  235. package/entry-points/skills-state.d.ts +2 -0
  236. package/entry-points/skills-state.d.ts.map +1 -0
  237. package/entry-points/source-content.d.ts +2 -0
  238. package/entry-points/source-content.d.ts.map +1 -0
  239. package/entry-points/usage-limits.d.ts +8 -0
  240. package/entry-points/usage-limits.d.ts.map +1 -0
  241. package/entry-points/usage.d.ts +3 -0
  242. package/entry-points/usage.d.ts.map +1 -0
  243. package/entry-points/utils.d.ts +17 -0
  244. package/entry-points/utils.d.ts.map +1 -0
  245. package/entry-points/viewport-layout.d.ts +4 -0
  246. package/entry-points/viewport-layout.d.ts.map +1 -0
  247. package/file-manager-canvas.d.ts +2 -418
  248. package/file-manager-canvas.js +1 -2
  249. package/file-manager.d.ts +2 -1250
  250. package/file-manager.js +21 -21
  251. package/files/annotation.d.ts +10 -0
  252. package/files/annotation.d.ts.map +1 -0
  253. package/files/attachment-canvas.d.ts +123 -0
  254. package/files/attachment-canvas.d.ts.map +1 -0
  255. package/files/attachment-dto-to-display.d.ts +10 -0
  256. package/files/attachment-dto-to-display.d.ts.map +1 -0
  257. package/files/attachment-types.d.ts +21 -0
  258. package/files/attachment-types.d.ts.map +1 -0
  259. package/files/attachment-types.js +1 -1
  260. package/files/create-files-api.d.ts +52 -0
  261. package/files/create-files-api.d.ts.map +1 -0
  262. package/files/create-files-api.js +1 -1
  263. package/files/create-upload-file-with-progress.d.ts +27 -0
  264. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  265. package/files/create-upload-file-with-progress.js +42 -34
  266. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  267. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  268. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  269. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  270. package/files/dial-file-manager-mapping.util.js +97 -69
  271. package/files/dial-file-manager-path.util.d.ts +48 -0
  272. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  273. package/files/dial-file-manager.model.d.ts +36 -0
  274. package/files/dial-file-manager.model.d.ts.map +1 -0
  275. package/files/dial-file-manager.types.d.ts +335 -0
  276. package/files/dial-file-manager.types.d.ts.map +1 -0
  277. package/files/dial-file-to-attachment.d.ts +26 -0
  278. package/files/dial-file-to-attachment.d.ts.map +1 -0
  279. package/files/dial-file-to-attachment.js +3 -3
  280. package/files/dial-file.d.ts +17 -0
  281. package/files/dial-file.d.ts.map +1 -0
  282. package/files/dial-files-api.d.ts +71 -0
  283. package/files/dial-files-api.d.ts.map +1 -0
  284. package/files/download-destination.d.ts +31 -0
  285. package/files/download-destination.d.ts.map +1 -0
  286. package/files/download-progress.d.ts +33 -0
  287. package/files/download-progress.d.ts.map +1 -0
  288. package/files/download-progress.js +28 -0
  289. package/files/file-manager-variant.d.ts +3 -0
  290. package/files/file-manager-variant.d.ts.map +1 -0
  291. package/files/file-name.d.ts +19 -0
  292. package/files/file-name.d.ts.map +1 -0
  293. package/files/prepare-download-destination.d.ts +8 -0
  294. package/files/prepare-download-destination.d.ts.map +1 -0
  295. package/files/resolve-dial-file-api-path.d.ts +12 -0
  296. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  297. package/files/source-content.d.ts +28 -0
  298. package/files/source-content.d.ts.map +1 -0
  299. package/files/source-content.js +1 -1
  300. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  301. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  302. package/files/useDialFileListing/useDialFileListing.js +95 -107
  303. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  304. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  305. package/files/useDialFileManager/useDialFileManager.js +5 -2
  306. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  307. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  308. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  309. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  310. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  311. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  312. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  313. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  314. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  315. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  316. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  317. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  318. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  319. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  320. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  321. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  322. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +105 -97
  323. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  324. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  325. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  326. package/index.d.ts +167 -6990
  327. package/index.d.ts.map +1 -0
  328. package/index.js +115 -101
  329. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  330. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  331. package/mcp-apps/mcp-apps-api-client.js +18 -17
  332. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  333. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  334. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +29 -0
  335. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  336. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  337. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  338. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
  339. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  340. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  341. package/mcp-apps.d.ts +2 -256
  342. package/oauth/authorize-url.d.ts +16 -0
  343. package/oauth/authorize-url.d.ts.map +1 -0
  344. package/oauth/authorize-url.js +1 -1
  345. package/oauth/handshake.d.ts +30 -0
  346. package/oauth/handshake.d.ts.map +1 -0
  347. package/oauth/handshake.js +3 -10
  348. package/oauth/models.d.ts +81 -0
  349. package/oauth/models.d.ts.map +1 -0
  350. package/oauth/popup.d.ts +30 -0
  351. package/oauth/popup.d.ts.map +1 -0
  352. package/oauth/popup.js +19 -17
  353. package/oauth/toolset-id.d.ts +53 -0
  354. package/oauth/toolset-id.d.ts.map +1 -0
  355. package/oauth/types.d.ts +84 -0
  356. package/oauth/types.d.ts.map +1 -0
  357. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  358. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  359. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  360. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  361. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  362. package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
  363. package/oauth.d.ts +2 -472
  364. package/offline-credentials/map-offline-credentials-response.d.ts +17 -0
  365. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  366. package/offline-credentials/map-offline-credentials-response.js +15 -0
  367. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  368. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  369. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  370. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +57 -0
  371. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  372. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +34 -0
  373. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  374. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  375. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  376. package/offline-credentials.d.ts +2 -0
  377. package/offline-credentials.js +5 -0
  378. package/package.json +31 -17
  379. package/prompt/export-prompt.d.ts +31 -0
  380. package/prompt/export-prompt.d.ts.map +1 -0
  381. package/prompt/prompt-resource.d.ts +30 -0
  382. package/prompt/prompt-resource.d.ts.map +1 -0
  383. package/prompt/prompt.d.ts +34 -0
  384. package/prompt/prompt.d.ts.map +1 -0
  385. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  386. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  387. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  388. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  389. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  390. package/scheduled-task/scheduled-task-description.d.ts +38 -0
  391. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  392. package/scheduled-task/scheduled-task-description.js +1 -1
  393. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  394. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  395. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  396. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  397. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  398. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  399. package/scheduled-task/scheduled-task-trigger.js +9 -8
  400. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  401. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  402. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  403. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  404. package/scheduled-task/use-scheduled-task-runs.js +67 -79
  405. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  406. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  407. package/scheduled-task/use-scheduled-tasks.js +1 -1
  408. package/scheduled-tasks.d.ts +2 -250
  409. package/scheduled-tasks.js +2 -1
  410. package/scroll-anchoring.d.ts +2 -50
  411. package/scroll-anchoring.js +1 -2
  412. package/shared/application-schema.d.ts +16 -0
  413. package/shared/application-schema.d.ts.map +1 -0
  414. package/shared/application-schema.js +3 -3
  415. package/shared/browser-timezone.d.ts +7 -0
  416. package/shared/browser-timezone.d.ts.map +1 -0
  417. package/shared/cron-day-of-month.d.ts +21 -0
  418. package/shared/cron-day-of-month.d.ts.map +1 -0
  419. package/shared/cron-day-of-month.js +10 -10
  420. package/shared/cron-weekday.d.ts +5 -0
  421. package/shared/cron-weekday.d.ts.map +1 -0
  422. package/shared/custom-apps.d.ts +7 -0
  423. package/shared/custom-apps.d.ts.map +1 -0
  424. package/shared/external-services.d.ts +16 -0
  425. package/shared/external-services.d.ts.map +1 -0
  426. package/shared/formatting.d.ts +5 -0
  427. package/shared/formatting.d.ts.map +1 -0
  428. package/shared/locale.d.ts +45 -0
  429. package/shared/locale.d.ts.map +1 -0
  430. package/shared/locale.js +2 -2
  431. package/shared/string-utils.d.ts +11 -0
  432. package/shared/string-utils.d.ts.map +1 -0
  433. package/shared/toolset-login-events.d.ts +15 -0
  434. package/shared/toolset-login-events.d.ts.map +1 -0
  435. package/sharing.d.ts +2 -65
  436. package/skill/skill-archive.d.ts +7 -0
  437. package/skill/skill-archive.d.ts.map +1 -0
  438. package/skill/skill-file-batch-validation.d.ts +70 -0
  439. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  440. package/skill/skill-file-batch-validation.js +18 -17
  441. package/skill/skill-file-preview.d.ts +25 -0
  442. package/skill/skill-file-preview.d.ts.map +1 -0
  443. package/skill/skill-manifest.d.ts +28 -0
  444. package/skill/skill-manifest.d.ts.map +1 -0
  445. package/skill/skill-types.d.ts +46 -0
  446. package/skill/skill-types.d.ts.map +1 -0
  447. package/skill/skill-types.js +1 -1
  448. package/skill/skill.d.ts +160 -0
  449. package/skill/skill.d.ts.map +1 -0
  450. package/skill/skill.js +12 -15
  451. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  452. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  453. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  454. package/skill/useSkillEditorLoad.d.ts +74 -0
  455. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  456. package/skill/useSkillEditorSubmit.d.ts +125 -0
  457. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  458. package/skill/useSkillEditorSubmit.js +1 -5
  459. package/skill/useSkillFileActions.d.ts +60 -0
  460. package/skill/useSkillFileActions.d.ts.map +1 -0
  461. package/skill/useSkillFilePreview.d.ts +38 -0
  462. package/skill/useSkillFilePreview.d.ts.map +1 -0
  463. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  464. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  465. package/skill-editor.d.ts +2 -655
  466. package/skills-state.d.ts +2 -40
  467. package/skills-state.js +1 -2
  468. package/source-content.d.ts +2 -29
  469. package/source-content.js +1 -2
  470. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  471. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  472. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  473. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  474. package/usage/usage-banner-source.d.ts +24 -0
  475. package/usage/usage-banner-source.d.ts.map +1 -0
  476. package/usage/usage-banner-source.js +60 -0
  477. package/usage/usage-period.d.ts +7 -0
  478. package/usage/usage-period.d.ts.map +1 -0
  479. package/usage/usage-period.js +6 -0
  480. package/usage/usage-reset-time.d.ts +69 -0
  481. package/usage/usage-reset-time.d.ts.map +1 -0
  482. package/usage/usage-reset-time.js +72 -0
  483. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  484. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  485. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  486. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  487. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  488. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  489. package/usage/useUsageData/useUsageData.d.ts +28 -0
  490. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  491. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  492. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  493. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  494. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  495. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  496. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  497. package/usage-limits.d.ts +2 -0
  498. package/usage-limits.js +8 -0
  499. package/usage.d.ts +2 -125
  500. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +128 -0
  501. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  502. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  503. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  504. package/usePageFileDrag/usePageFileDrag.js +3 -3
  505. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  506. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  507. package/useShareLink/useShareLink.d.ts +23 -0
  508. package/useShareLink/useShareLink.d.ts.map +1 -0
  509. package/useShareLink/useShareLink.js +1 -0
  510. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  511. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  512. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  513. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  514. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  515. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  516. package/utils.d.ts +2 -404
  517. package/viewport-layout.d.ts +2 -27
@@ -2,8 +2,9 @@
2
2
  var e = { "Content-Type": "application/json" }, t = 409, n = "The response could not be saved. It is still shown here, but may be lost if you reload or leave this page. Copy it before continuing.", r = class extends Error {
3
3
  static type = "conversation_save_failed";
4
4
  status;
5
- constructor(e) {
6
- super(n), this.name = "GenerationPersistenceError", this.status = e;
5
+ terminalMarker;
6
+ constructor(e, t) {
7
+ super(n), this.name = "GenerationPersistenceError", this.status = e, this.terminalMarker = t;
7
8
  }
8
9
  }, i = "A response is already being generated in this conversation. Wait for it to finish or stop it before sending another message.", a = class extends Error {
9
10
  constructor(e = i) {
@@ -17,15 +18,16 @@ var e = { "Content-Type": "application/json" }, t = 409, n = "The response could
17
18
  constructor(e) {
18
19
  super("The completion stream was interrupted", { cause: e }), this.name = "StreamInterruptedError";
19
20
  }
20
- }, c = 45e3, l = (e, t) => {
21
+ }, c = class extends Error {
22
+ status;
23
+ constructor(e) {
24
+ super(`stopCompletion failed: ${e}`), this.name = "StopCompletionError", this.status = e;
25
+ }
26
+ }, l = 45e3, u = (e, t) => {
21
27
  let n = Date.now(), r, i = !1, a = () => {
22
28
  if (i) return;
23
29
  let o = Date.now() - n;
24
- if (o >= e) {
25
- t();
26
- return;
27
- }
28
- clearTimeout(r), r = setTimeout(a, e - o);
30
+ o >= e ? t() : (clearTimeout(r), r = setTimeout(a, e - o));
29
31
  }, o = () => {
30
32
  document.visibilityState === "visible" && a();
31
33
  }, s = typeof window < "u" && typeof document < "u";
@@ -37,26 +39,30 @@ var e = { "Content-Type": "application/json" }, t = 409, n = "The response could
37
39
  i || (i = !0, clearTimeout(r), s && (document.removeEventListener("visibilitychange", o), window.removeEventListener("online", a), window.removeEventListener("pageshow", a)));
38
40
  }
39
41
  };
40
- }, u = (e) => typeof e == "object" && !!e && e.name === "AbortError", d = (e) => {
42
+ }, d = (e) => typeof e == "object" && !!e && e.name === "AbortError", f = (e) => {
41
43
  let { status: t } = e;
42
44
  return typeof t == "number" ? t : void 0;
43
- }, f = (e, t, n) => {
45
+ }, p = (e) => {
46
+ let { streamErrorMessage: t, wasStoppedByUser: n } = e;
47
+ if (n === !0) return { wasStoppedByUser: !0 };
48
+ if (typeof t == "string") return { streamErrorMessage: t };
49
+ }, m = (e, t, n) => {
44
50
  let i = e.trim();
45
51
  if (!i || i.startsWith(":") || !i.startsWith("data: ")) return;
46
52
  let a = i.slice(6);
47
53
  if (a !== "[DONE]") try {
48
54
  let e = JSON.parse(a);
49
55
  if (e.error) {
50
- n(e.error.type === r.type ? new r(d(e.error)) : new o(e.error.message));
56
+ n(e.error.type === r.type ? new r(f(e.error), p(e.error)) : new o(e.error.display_message ?? e.error.message));
51
57
  return;
52
58
  }
53
59
  t(e);
54
60
  } catch {}
55
- }, p = (n) => {
61
+ }, h = (n) => {
56
62
  let { completionsBasePath: r } = n, i = (...e) => (n.fetchImpl ?? fetch)(...e);
57
63
  return {
58
- streamCompletion: (o, c, d, p, m, h, g, _, v) => {
59
- let { onChunk: y, onComplete: b, onError: x, signal: S } = p;
64
+ streamCompletion: (c, l, f, p, h, g, _, v, y) => {
65
+ let { onChunk: b, onComplete: x, onError: S, signal: C } = p;
60
66
  (async () => {
61
67
  let p;
62
68
  try {
@@ -64,65 +70,69 @@ var e = { "Content-Type": "application/json" }, t = 409, n = "The response could
64
70
  p = await i(`${r}/completions`, {
65
71
  method: "POST",
66
72
  credentials: "include",
67
- signal: S,
73
+ signal: C,
68
74
  headers: {
69
75
  ...e,
70
76
  ...n.getCsrfToken() == null ? {} : { "X-CSRF-Token": n.getCsrfToken() },
71
77
  ...t ? { "X-Timezone": t } : {}
72
78
  },
73
79
  body: JSON.stringify({
74
- path: o,
75
- message: c ?? "",
76
- model: d,
77
- custom_content: m || {},
78
- ...h != null && { generationId: h },
79
- ...g != null && { mode: g },
80
- ..._ != null && { messageIndex: _ },
81
- ...v != null && { clientChannelId: v }
80
+ path: c,
81
+ message: l ?? "",
82
+ model: f,
83
+ custom_content: h || {},
84
+ ...g != null && { generationId: g },
85
+ ..._ != null && { mode: _ },
86
+ ...v != null && { messageIndex: v },
87
+ ...y != null && { clientChannelId: y }
82
88
  })
83
89
  });
84
90
  } catch (e) {
85
- if (u(e)) return;
86
- x(new s(e));
91
+ if (d(e)) return;
92
+ S(new s(e));
87
93
  return;
88
94
  }
89
- let C = p.headers.get("x-csrf-token");
90
- if (C && n.setCsrfToken(C), !p.ok) {
95
+ let w = p.headers.get("x-csrf-token");
96
+ if (w && n.setCsrfToken(w), !p.ok) {
91
97
  if (p.status === t) {
92
- x(new a());
98
+ S(new a());
93
99
  return;
94
100
  }
95
- x(/* @__PURE__ */ Error(`Stream request failed with status ${p.status}`));
101
+ S(/* @__PURE__ */ Error(`Stream request failed with status ${p.status}`));
96
102
  return;
97
103
  }
98
104
  if (!p.body) {
99
- x(/* @__PURE__ */ Error("No response body"));
105
+ S(/* @__PURE__ */ Error("No response body"));
100
106
  return;
101
107
  }
102
- let w = p.body.getReader(), T = new TextDecoder(), E = "", D = !1, O = !1, k = (e) => {
103
- D || (D = !0, A.stop(), x(e));
104
- }, A = l(n.idleTimeoutMs ?? 45e3, () => {
105
- O = !0, k(new s()), w.cancel().catch(() => void 0);
108
+ let T = p.body.getReader(), E = new TextDecoder(), D = "", O = !1, k = !1, A, j = (e) => {
109
+ O || (O = !0, P.stop(), S(e));
110
+ }, M = (e) => {
111
+ e instanceof o ? A ??= e : j(e);
112
+ }, N = (e) => {
113
+ A ?? b(e);
114
+ }, P = u(n.idleTimeoutMs ?? 45e3, () => {
115
+ k = !0, j(A ?? new s()), T.cancel().catch(() => void 0);
106
116
  });
107
117
  try {
108
118
  for (;;) {
109
- let { done: e, value: t } = await w.read();
110
- if (O) break;
119
+ let { done: e, value: t } = await T.read();
120
+ if (k) break;
111
121
  if (e) {
112
- E.trim() && f(E, y, k);
122
+ D.trim() && m(D, N, M);
113
123
  break;
114
124
  }
115
- A.touch(), E += T.decode(t, { stream: !0 });
116
- let n = E.split("\n");
117
- E = n.pop() ?? "";
118
- for (let e of n) f(e, y, k);
125
+ P.touch(), D += E.decode(t, { stream: !0 });
126
+ let n = D.split("\n");
127
+ D = n.pop() ?? "";
128
+ for (let e of n) m(e, N, M);
119
129
  }
120
- D || (D = !0, b());
130
+ A ? j(A) : O || (O = !0, x());
121
131
  } catch (e) {
122
- if (u(e)) return;
123
- k(new s(e));
132
+ if (d(e)) return;
133
+ j(A ?? new s(e));
124
134
  } finally {
125
- A.stop(), w.releaseLock();
135
+ P.stop(), T.releaseLock();
126
136
  }
127
137
  })();
128
138
  },
@@ -136,9 +146,9 @@ var e = { "Content-Type": "application/json" }, t = 409, n = "The response could
136
146
  },
137
147
  body: JSON.stringify(t)
138
148
  }), o = a.headers.get("x-csrf-token");
139
- if (o && n.setCsrfToken(o), !a.ok) throw Error(`stopCompletion failed: ${a.status}`);
149
+ if (o && n.setCsrfToken(o), !a.ok) throw new c(a.status);
140
150
  }
141
151
  };
142
152
  };
143
153
  //#endregion
144
- export { i as DEFAULT_GENERATION_CONFLICT_MESSAGE, n as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, c as DEFAULT_STREAM_IDLE_TIMEOUT_MS, a as GenerationConflictError, r as GenerationPersistenceError, s as StreamInterruptedError, o as StreamUpstreamError, p as createChatStreamApi };
154
+ export { i as DEFAULT_GENERATION_CONFLICT_MESSAGE, n as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, l as DEFAULT_STREAM_IDLE_TIMEOUT_MS, a as GenerationConflictError, r as GenerationPersistenceError, c as StopCompletionError, s as StreamInterruptedError, o as StreamUpstreamError, h as createChatStreamApi };
@@ -0,0 +1,39 @@
1
+ import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
2
+ import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
3
+ import { RecipientsCountEntry } from '../../useShareRecipientsCount/useShareRecipientsCount';
4
+ /** Distilled row-action state for a single conversation item. */
5
+ export interface ConversationRowActionState {
6
+ /** `true` when the item is read-only (shared-with-me, published-with-me, or explicitly readonly). */
7
+ isReadonly: boolean;
8
+ /**
9
+ * Deduplicated list of folder paths (as joined slash-delimited strings)
10
+ * to which this conversation has been published. Empty when the conversation
11
+ * is unowned, readonly, or publish history is unavailable.
12
+ */
13
+ publishedFolders: string[];
14
+ /**
15
+ * `true` when the revoke-access action should be shown: either the
16
+ * recipient count is unknown (lookup pending/failed) or at least one
17
+ * recipient exists.
18
+ */
19
+ isRevokeVisible: boolean;
20
+ /** `true` when publish is applicable (no published folders yet). */
21
+ isPublishApplicable: boolean;
22
+ /** `true` when unpublish is applicable (at least one published folder exists). */
23
+ isUnpublishApplicable: boolean;
24
+ }
25
+ /**
26
+ * Derives the row-action visibility state for a single conversation item.
27
+ *
28
+ * Extracted from `getActions` in `ConversationPanelView` to isolate the
29
+ * readonly / publish / unpublish / revoke decision logic from the
30
+ * `DropdownItem` construction and `t()` calls that remain in the app.
31
+ *
32
+ * @param item - Conversation DTO fields relevant to ownership classification.
33
+ * @param publishHistory - Resolved publish-history entries, or `undefined`
34
+ * when history is unavailable or should be treated as empty (e.g. while
35
+ * loading or when the item is readonly).
36
+ * @param recipients - Current share-recipients count entry for this item.
37
+ */
38
+ export declare const deriveConversationRowActionState: (item: Pick<ConversationListItemDto, "sharedWithMe" | "publishedWithMe" | "isReadonly">, publishHistory: PublishHistoryEntry[] | undefined, recipients: RecipientsCountEntry) => ConversationRowActionState;
39
+ //# sourceMappingURL=deriveConversationRowActionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deriveConversationRowActionState.d.ts","sourceRoot":"","sources":["../../../src/conversation/deriveConversationRowActionState/deriveConversationRowActionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,uDAAuD,CAAC;AAE/D,iEAAiE;AACjE,MAAM,WAAW,0BAA0B;IACzC,qGAAqG;IACrG,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kFAAkF;IAClF,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC,GAC3C,MAAM,IAAI,CACR,uBAAuB,EACvB,cAAc,GAAG,iBAAiB,GAAG,YAAY,CAClD,EACD,gBAAgB,mBAAmB,EAAE,GAAG,SAAS,EACjD,YAAY,oBAAoB,KAC/B,0BA6BF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Conversation } from '@epam/ai-dial-chat-shared';
2
+ /** True when the first user/assistant exchange is complete and LLM naming may still run. */
3
+ export declare const shouldWatchForDisplayNameUpdate: (conversation: Conversation) => boolean;
4
+ //# sourceMappingURL=display-name-watch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-name-watch.d.ts","sourceRoot":"","sources":["../../src/conversation/display-name-watch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,4FAA4F;AAC5F,eAAO,MAAM,+BAA+B,GAC1C,cAAc,YAAY,KACzB,OAQF,CAAC"}
@@ -0,0 +1,10 @@
1
+ /** Sanitizes footer message HTML to the allowed tag/attribute set. */
2
+ export declare const sanitizeFooterHtml: (html: string) => string;
3
+ /**
4
+ * Normalises a version string for display. The server falls back to a bare
5
+ * `package.json` version (`0.45.0`), while a CI-supplied `CHAT_VERSION` is
6
+ * often already tagged (`v0.45.0`) — prefixing unconditionally would render
7
+ * `vv0.45.0`.
8
+ */
9
+ export declare const formatAppVersion: (version: string) => string;
10
+ //# sourceMappingURL=footer-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footer-message.d.ts","sourceRoot":"","sources":["../../src/conversation/footer-message.ts"],"names":[],"mappings":"AAOA,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MACgB,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,KAAG,MAGlD,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /**
3
+ * Extracts the deployment/model ID from a DIAL Core conversation ID.
4
+ *
5
+ * The backend builds conversation paths as `{deploymentId}__{title}` then runs
6
+ * `encodeDialResourcePath` which splits on `/` and encodes each segment. This
7
+ * means both the deployment ID and the title may introduce extra `/`-separated
8
+ * URL segments:
9
+ *
10
+ * - Deployment `anthropic/claude-3`, title `My chat`
11
+ * → `conversations/bucket/anthropic/claude-3__My%20chat`
12
+ *
13
+ * - Deployment `uuid`, title `calc 6/2/2026` (title contains slashes)
14
+ * → `conversations/bucket/uuid__calc%206/2/2026`
15
+ *
16
+ * The `__` separator is present in the first filename segment. Versioned
17
+ * application deployments use `{name}__{version}__{title}`, so the version
18
+ * suffix still belongs to the deployment ID.
19
+ *
20
+ * In regular model conversations, the separator is always present in exactly
21
+ * one segment — the first one that contains it. Segments before that segment
22
+ * are deployment ID path prefixes; segments from that point onward are the
23
+ * title (possibly overflowing into further `/`-separated segments).
24
+ *
25
+ * Returns `undefined` when the format is unrecognised.
26
+ */
27
+ export declare const getModelIdFromConversationId: (id: string) => string | undefined;
28
+ /**
29
+ * Returns every deployment id a conversation id may belong to, longest first,
30
+ * or an empty array when the format is unrecognised.
31
+ */
32
+ export declare const getModelIdCandidatesFromConversationId: (id: string) => string[];
33
+ /**
34
+ * Returns the deployment a conversation belongs to, resolved from its id
35
+ * alone, or `undefined` when no candidate matches `deployments`.
36
+ */
37
+ export declare const findDeploymentForConversationId: (deployments: DeploymentItemDto[], conversationId: string) => DeploymentItemDto | undefined;
38
+ //# sourceMappingURL=get-model-id-from-conversation-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-model-id-from-conversation-id.d.ts","sourceRoot":"","sources":["../../src/conversation/get-model-id-from-conversation-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AA+CvE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,4BAA4B,GACvC,IAAI,MAAM,KACT,MAAM,GAAG,SA0CX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,GACjD,IAAI,MAAM,KACT,MAAM,EAYR,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,GAC1C,aAAa,iBAAiB,EAAE,EAChC,gBAAgB,MAAM,KACrB,iBAAiB,GAAG,SAGL,CAAC"}
@@ -8,7 +8,7 @@ var t = "__", n = /[-+]/, r = /^\d+$/, i = ".scheduler", a = "applications", o =
8
8
  if (n.length < 3) return;
9
9
  let r = n.slice(2), o = r[0] === i ? r.slice(2) : r, c = o.findIndex((e) => e.includes(t));
10
10
  if (c === -1) return;
11
- let l = o[c], u = o.slice(0, c).filter(Boolean), d = s(l, u.at(-2) === a), f = [...u, d].filter(Boolean);
11
+ let l = o[c], u = o.slice(0, c).filter(Boolean), d = s(l, u.slice(0, -1).includes(a)), f = [...u, d].filter(Boolean);
12
12
  return f.length > 0 ? f.join("/") : void 0;
13
13
  }, l = (e) => {
14
14
  let t = c(e);
@@ -0,0 +1,18 @@
1
+ /** Pre-translated greeting phrase strings for each time-of-day period. */
2
+ export interface GreetingTranslations {
3
+ morningWithName: string;
4
+ morningNoName: string;
5
+ afternoonWithName: string;
6
+ afternoonNoName: string;
7
+ eveningWithName: string;
8
+ eveningNoName: string;
9
+ nightWithName: string;
10
+ nightNoName: string;
11
+ }
12
+ /**
13
+ * Returns a time-of-day greeting string.
14
+ * Hour ranges: morning 5–11, afternoon 12–16, evening 17–20, night 21–4.
15
+ * When firstName is provided the with-name variant is returned; otherwise the no-name variant.
16
+ */
17
+ export declare const getTimeOfDayGreeting: (hour: number, translations: GreetingTranslations, firstName?: string) => string;
18
+ //# sourceMappingURL=greeting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greeting.d.ts","sourceRoot":"","sources":["../../src/conversation/greeting.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,MAAM,EACZ,cAAc,oBAAoB,EAClC,YAAY,MAAM,KACjB,MAeF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StatusMessage } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * Creates a status message recording a deployment change in the conversation timeline.
4
+ * Status messages are never forwarded to DIAL Core.
5
+ */
6
+ export declare const createDeploymentChangedMessage: (previousDeploymentId: string | null, newDeploymentId: string) => StatusMessage;
7
+ //# sourceMappingURL=message-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-factory.d.ts","sourceRoot":"","sources":["../../src/conversation/message-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAEd,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GACzC,sBAAsB,MAAM,GAAG,IAAI,EACnC,iBAAiB,MAAM,KACtB,aAcF,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { DeploymentConfigurationSchema, Message, ResponseFormat } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * Returns `true` when `message` is the actively-streaming assistant response.
4
+ * Only the last message in the list can be streaming, and only while
5
+ * `isAssistantTyping` is `true`.
6
+ */
7
+ export declare const isMessageStreaming: (message: Message, messageIndex: number, totalMessages: number, isAssistantTyping: boolean) => boolean;
8
+ /**
9
+ * Returns the deployment the conversation was last running on: scanning
10
+ * backwards, the `new_deployment_id` of a `model_changed` status message or
11
+ * the `deploymentId` a message carries in its own right, whichever comes
12
+ * later. `null` when neither is present.
13
+ *
14
+ * Reading only the status messages loses the switch whenever a regenerate or
15
+ * an edit truncates past one: the marker is appended at the end of the
16
+ * timeline, so truncating at an earlier message drops it, and the model the
17
+ * user picked reverted on the next page load even though the answer had been
18
+ * regenerated on it ([#8712](https://github.com/epam/ai-dial-chat/issues/8712)). The assistant message the backend writes
19
+ * carries the deployment that produced it, which survives that truncation
20
+ * because it *is* the regenerated message.
21
+ */
22
+ export declare const getLastDeploymentId: (messages: Message[]) => string | null;
23
+ /** True when `message` is an assistant message carrying at least one stage. */
24
+ export declare const messageHasStages: (message: Message) => boolean;
25
+ /**
26
+ * Returns the `configuration_value` stored on the last user message, or
27
+ * `undefined` if none exists. Used to restore the tools menu toggle state
28
+ * when a conversation is (re-)loaded, mirroring `getLastDeploymentId`.
29
+ */
30
+ export declare const getLastUserMessageToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
31
+ /**
32
+ * Returns the boolean values an assistant message's `form_schema` sets, keyed
33
+ * by property name, or `undefined` when no property resolves to a boolean.
34
+ * Lets a DIAL app switch a tools-menu toggle (e.g. `deep_research`) per
35
+ * message — on while a run is in progress, off once its result is delivered.
36
+ * Not filtered by tool id: `restoreToolConfiguration` ignores unknown ids.
37
+ */
38
+ export declare const getToolConfigurationFromFormSchema: (formSchema: DeploymentConfigurationSchema | undefined) => Record<string, boolean> | undefined;
39
+ /**
40
+ * Returns the tool configuration a (re-)loaded conversation should show: the
41
+ * last user message's `configuration_value`, overlaid in order by the
42
+ * `form_schema` values of the assistant messages after it. An app that turned
43
+ * a toggle off in its final response must not see it re-armed on reload just
44
+ * because the user message that started the run had it on.
45
+ */
46
+ export declare const getLatestToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
47
+ /**
48
+ * Returns the tool values the conversation's last message sets through its
49
+ * `form_schema`, restricted to `toolIds`, plus a key identifying that exact
50
+ * application. `undefined` when the last message is not an assistant message
51
+ * or sets no known tool.
52
+ *
53
+ * Streamed chunks and reloads re-create an identical `form_schema`; comparing
54
+ * keys rather than object identity applies an app's value once and leaves a
55
+ * later user toggle alone until the app sends a different value.
56
+ */
57
+ export declare const getFormSchemaToolSyncKey: (conversationId: string, messages: Message[], toolIds: readonly string[]) => {
58
+ key: string;
59
+ values: Record<string, boolean>;
60
+ } | undefined;
61
+ /**
62
+ * Normalises a stored response-format string to the current enum. Legacy data
63
+ * may contain `'Markdown'` or `'PlainText'` (capital-first) instead of the
64
+ * current enum values `'markdown'` / `'plain_text'`.
65
+ */
66
+ export declare const normalizeResponseFormat: (value: string | undefined) => ResponseFormat;
67
+ //# sourceMappingURL=message-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../src/conversation/message-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,6BAA6B,EAElC,OAAO,EAEP,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,cAAc,MAAM,EACpB,eAAe,MAAM,EACrB,mBAAmB,OAAO,KACzB,OAGqC,CAAC;AAEzC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,OAAO,EAAE,KAAG,MAAM,GAAG,IAYlE,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,KAAG,OAED,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,GAC9C,UAAU,OAAO,EAAE,KAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAO5B,CAAC;AA2BF;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,GAC7C,YAAY,6BAA6B,GAAG,SAAS,KACpD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAQ5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,UAAU,OAAO,EAAE,KAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAkB5B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,UAAU,OAAO,EAAE,EACnB,SAAS,SAAS,MAAM,EAAE,KACzB;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,SAoBrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,GAAG,SAAS,KACxB,cAIF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { OverlayChatMessage } from '@epam/ai-dial-chat-overlay';
2
+ import { Message } from '@epam/ai-dial-chat-shared';
3
+ /** Maps chat messages to the DIAL Chat Overlay protocol's message shape. */
4
+ export declare const toOverlayMessages: (messages: Message[]) => OverlayChatMessage[];
5
+ //# sourceMappingURL=overlay-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay-messages.d.ts","sourceRoot":"","sources":["../../src/conversation/overlay-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,2BAA2B,CAAC;AAsCnC,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,GAAI,UAAU,OAAO,EAAE,KAAG,kBAAkB,EAStE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { StarterOption } from '@epam/ai-dial-chat-shared';
2
+ /** Resolved Quick App conversation-starter settings. */
3
+ export interface QuickAppConversationStartersSettings {
4
+ starters: StarterOption[];
5
+ introText: string | undefined;
6
+ isChatMessageInputDisabled: boolean;
7
+ }
8
+ /** Parses a Quick App's raw `conversationStarters` schema value into starter options. */
9
+ export declare const getQuickAppConversationStarters: (conversationStarters: unknown) => QuickAppConversationStartersSettings;
10
+ //# sourceMappingURL=quick-app-conversation-starters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-app-conversation-starters.d.ts","sourceRoot":"","sources":["../../src/conversation/quick-app-conversation-starters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wDAAwD;AACxD,MAAM,WAAW,oCAAoC;IACnD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAWD,yFAAyF;AACzF,eAAO,MAAM,+BAA+B,GAC1C,sBAAsB,OAAO,KAC5B,oCAuCF,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { Stage } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * One stage attachment as it arrives from the REST API or the SSE stream,
4
+ * before normalization: every field is optional and may be `null`.
5
+ */
6
+ export interface RawStageAttachment {
7
+ /** Zero-based position in the attachment list. */
8
+ index?: number | null;
9
+ /** MIME type of the attachment content. */
10
+ type?: string | null;
11
+ /** Display name shown in the UI. */
12
+ title?: string | null;
13
+ /** Inline base-64 encoded content. */
14
+ data?: string | null;
15
+ /** Remote URL pointing to the attachment content. */
16
+ url?: string | null;
17
+ /** MIME type of the referenced resource. */
18
+ reference_type?: string | null;
19
+ /** URL of an alternate reference resource. */
20
+ reference_url?: string | null;
21
+ }
22
+ /**
23
+ * One stage as it arrives from the REST API or the SSE stream, before
24
+ * normalization. Structurally satisfied by the generated `StageDto` and by a
25
+ * raw stream delta, both of which omit `index`/`name`/`status` on the chunk
26
+ * that opens a stage.
27
+ */
28
+ export interface RawStage {
29
+ /** Ordering key. Defaults to `0` when absent. */
30
+ index?: number | null;
31
+ /** Stage title. `null` on the chunk that opens the stage. */
32
+ name?: string | null;
33
+ /** Terminal state as a raw wire string; anything other than `'completed'`/`'failed'` means still running. */
34
+ status?: string | null;
35
+ /** Additional stage text. */
36
+ content?: string | null;
37
+ /** Short source/category label shown beside the stage name. */
38
+ tag?: string | null;
39
+ /** Files produced or referenced by this stage. */
40
+ attachments?: RawStageAttachment[] | null;
41
+ /**
42
+ * `index` of the parent stage (its array position in a complete unindexed
43
+ * array). Nullish means top level; `0` is a valid parent.
44
+ */
45
+ parent_stage_index?: number | null;
46
+ }
47
+ /**
48
+ * Message-like payload carrying stages under either the wire's snake_case
49
+ * `custom_content` or a host's camelCased `customContent`.
50
+ */
51
+ export interface RawStageSource {
52
+ /** Custom content as the DIAL wire format spells it. */
53
+ custom_content?: {
54
+ stages?: RawStage[] | null;
55
+ } | null;
56
+ /** Custom content as a camelCasing host spells it. */
57
+ customContent?: {
58
+ stages?: RawStage[] | null;
59
+ } | null;
60
+ }
61
+ /**
62
+ * Returns a renderable `Stage` for one raw payload: `index` defaults to `0`,
63
+ * `name` to `''`, an unrecognized `status` to `null` (still running), and
64
+ * `content`/`tag`/`attachments`/`parent_stage_index` are passed through when
65
+ * present (a parent of `0` included).
66
+ */
67
+ export declare const toStage: (stage: RawStage) => Stage;
68
+ /**
69
+ * Returns the normalized stages of a complete raw stage array or a
70
+ * message-like payload (reading `custom_content.stages`, falling back to
71
+ * `customContent.stages`), or `undefined` when there are none. An entry
72
+ * without an `index` takes its array position — the identity a complete
73
+ * non-streaming array's `parent_stage_index` refers to — while explicit
74
+ * (possibly sparse) indexes are kept. Not for partial stream deltas.
75
+ */
76
+ export declare const mapStages: (source: RawStage[] | RawStageSource | null | undefined) => Stage[] | undefined;
77
+ //# sourceMappingURL=stage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/conversation/stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAG1E;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,+DAA+D;IAC/D,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,kDAAkD;IAClD,WAAW,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,cAAc,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACvD,sDAAsD;IACtD,aAAa,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvD;AAwBD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,QAAQ,KAAG,KAYxC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GACpB,QAAQ,QAAQ,EAAE,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,KACrD,KAAK,EAAE,GAAG,SAUZ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { DeploymentConfigurationSchema, StarterOption } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * Returns the text to populate in the input when a starter button is selected.
4
+ * Falls back to the button title if `populateText` is empty.
5
+ */
6
+ export declare const getStarterPopulateText: (starter: StarterOption) => string;
7
+ /**
8
+ * Extracts starter options, the schema property key (`'starter'` or `'button'`),
9
+ * and the optional description text from a deployment configuration schema.
10
+ *
11
+ * - `propertyKey` — `'starter'` or `'button'`; used to build `configuration_value`.
12
+ * - `description` — human-readable prompt shown above the buttons (only present for `button` properties).
13
+ *
14
+ * Returns an empty starters array and `undefined` fields when no matching property is found.
15
+ */
16
+ export declare const getStartersFromSchema: (schema: DeploymentConfigurationSchema | null | undefined) => {
17
+ starters: StarterOption[];
18
+ propertyKey: string | undefined;
19
+ description: string | undefined;
20
+ };
21
+ //# sourceMappingURL=starter-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"starter-option.d.ts","sourceRoot":"","sources":["../../src/conversation/starter-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,aAAa,KAAG,MACH,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,QAAQ,6BAA6B,GAAG,IAAI,GAAG,SAAS,KACvD;IACD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CA8BjC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Parameters for `useActiveConversationSync`. */
3
+ export interface UseActiveConversationSyncParams {
4
+ /**
5
+ * The raw context id of the currently active conversation, as tracked by
6
+ * the host app. `undefined` when no conversation is active.
7
+ */
8
+ activeConversationId: string | undefined;
9
+ /** Raw conversation list from the API. */
10
+ items: ConversationListItemDto[];
11
+ /** Refetches the full conversation list. */
12
+ refreshConversations: () => Promise<void>;
13
+ /** Marks a scheduler-created conversation as viewed by raw context id. */
14
+ markConversationViewed: (id: string) => Promise<void>;
15
+ /**
16
+ * Returns `true` when two ids refer to the same conversation despite
17
+ * possible encoding differences. App-specific.
18
+ */
19
+ conversationIdsMatch: (a: string, b: string) => boolean;
20
+ /** Converts a raw context id to the panel-space id. App-specific. */
21
+ toPanelConversationId: (id: string) => string;
22
+ }
23
+ /**
24
+ * Synchronises the active conversation with the conversation list and returns
25
+ * the panel-space id of the active conversation, or `undefined` when none is active.
26
+ *
27
+ * Side effects:
28
+ * 1. If the active conversation is not present in the list, requests a
29
+ * refresh. The list and refresh callback are intentionally excluded from
30
+ * the dependency array to avoid a refresh-loop on every list update.
31
+ * 2. Marks the active conversation as viewed when its matching identity becomes
32
+ * available. List refreshes and persistence rollback do not retry the write.
33
+ */
34
+ export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
35
+ //# sourceMappingURL=useActiveConversationSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActiveConversationSync.d.ts","sourceRoot":"","sources":["../../../src/conversation/useActiveConversationSync/useActiveConversationSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAG7E,kDAAkD;AAClD,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,0EAA0E;IAC1E,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD;;;OAGG;IACH,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IACxD,qEAAqE;IACrE,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GAAI,6HAOvC,+BAA+B,KAAG,MAAM,GAAG,SAkC7C,CAAC"}