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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/api-error-DuLNy43N.js +45 -0
  2. package/attachment-types-AAoN9E95.js +7760 -0
  3. package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
  4. package/attachments.js +2 -0
  5. package/browser-Btsa0Lmr.js +607 -0
  6. package/catalog.d.ts +946 -0
  7. package/catalog.js +3 -0
  8. package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
  9. package/conversation-sources.js +2 -0
  10. package/conversation-transfer.d.ts +189 -0
  11. package/conversation-transfer.js +3 -0
  12. package/conversation.d.ts +907 -0
  13. package/conversation.js +2 -0
  14. package/cron-weekday-B4w29eAC.js +4 -0
  15. package/date-BeuD8G79.js +4 -0
  16. package/deployment-id-CxWgJTs9.js +6 -0
  17. package/file-manager.d.ts +1344 -0
  18. package/file-manager.js +4 -0
  19. package/formatting-CZyyxBG3.js +4 -0
  20. package/index.d.ts +4945 -126
  21. package/index.js +27 -19152
  22. package/oauth.d.ts +440 -0
  23. package/oauth.js +3 -0
  24. package/package.json +142 -21
  25. package/prompt-resource-Bt1I-8ri.js +41 -0
  26. package/scheduled-task-trigger-D9RZCk52.js +145 -0
  27. package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
  28. package/scheduled-tasks.js +2 -0
  29. package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
  30. package/scroll-anchoring.js +2 -0
  31. package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
  32. package/sharing.js +3 -0
  33. package/skill-editor.d.ts +503 -0
  34. package/skill-editor.js +3 -0
  35. package/skill-manifest-CCX8s4nn.js +4035 -0
  36. package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
  37. package/skills-state.js +2 -0
  38. package/string-utils-iBi2Y55C.js +10 -0
  39. package/toolset-id-CkxRHyU0.js +10 -0
  40. package/useAttachmentValidation-CkMTd5lA.js +102 -0
  41. package/useConversationImport-C2h1GBY4.js +807 -0
  42. package/useConversationScroll-CliIMnjP.js +122 -0
  43. package/useConversationSources-DKaKvjXZ.js +47 -0
  44. package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
  45. package/usePanelMaxWidth-BEZYuqF9.js +44 -0
  46. package/useShareLink-xkiaxATt.js +44 -0
  47. package/useShareRecipientsCount-BgwCLKY0.js +37 -0
  48. package/useSkillFileActions-BU5PzZ_8.js +373 -0
  49. package/useSkillFilePreview-BYfZUJhr.js +1005 -0
  50. package/useSkillsState-BoLlwmzb.js +52 -0
  51. package/useToolsMenu-BXdahO0i.js +1874 -0
  52. package/useToolsetLogin-GhFtKs4D.js +276 -0
  53. package/useUsageData-D7BxloKZ.js +201 -0
  54. package/utils.d.ts +373 -0
  55. package/utils.js +7 -0
  56. package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
  57. package/viewport-layout.js +2 -0
  58. package/api-error/api-error.d.ts +0 -18
  59. package/api-error/api-error.d.ts.map +0 -1
  60. package/api-transport/create-csrf-middleware.d.ts +0 -15
  61. package/api-transport/create-csrf-middleware.d.ts.map +0 -1
  62. package/api-transport/create-unauthorized-middleware.d.ts +0 -40
  63. package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
  64. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
  65. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
  66. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
  67. package/catalog/catalog-derivations.d.ts +0 -27
  68. package/catalog/catalog-derivations.d.ts.map +0 -1
  69. package/catalog/catalog-primary-action.d.ts +0 -47
  70. package/catalog/catalog-primary-action.d.ts.map +0 -1
  71. package/catalog/create-publish-api.d.ts +0 -32
  72. package/catalog/create-publish-api.d.ts.map +0 -1
  73. package/catalog/deployment-endpoint-url.d.ts +0 -19
  74. package/catalog/deployment-endpoint-url.d.ts.map +0 -1
  75. package/catalog/deployment-id.d.ts +0 -21
  76. package/catalog/deployment-id.d.ts.map +0 -1
  77. package/catalog/entity-details.d.ts +0 -132
  78. package/catalog/entity-details.d.ts.map +0 -1
  79. package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
  80. package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
  81. package/catalog/map-deployment-limits-to-input.d.ts +0 -15
  82. package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
  83. package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
  84. package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
  85. package/catalog/map-entity-details-to-catalog.d.ts +0 -23
  86. package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
  87. package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
  88. package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
  89. package/catalog/map-skill-to-catalog-item.d.ts +0 -87
  90. package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
  91. package/catalog/mcp-endpoint-url.d.ts +0 -18
  92. package/catalog/mcp-endpoint-url.d.ts.map +0 -1
  93. package/catalog/publish.d.ts +0 -17
  94. package/catalog/publish.d.ts.map +0 -1
  95. package/catalog/useCatalogItemDetails.d.ts +0 -73
  96. package/catalog/useCatalogItemDetails.d.ts.map +0 -1
  97. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
  98. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
  99. package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
  100. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
  101. package/conversation/announcement-message.d.ts +0 -34
  102. package/conversation/announcement-message.d.ts.map +0 -1
  103. package/conversation/conversation-transfer/async.d.ts +0 -10
  104. package/conversation/conversation-transfer/async.d.ts.map +0 -1
  105. package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
  106. package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
  107. package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
  108. package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
  109. package/conversation/conversation-transfer/date.d.ts +0 -5
  110. package/conversation/conversation-transfer/date.d.ts.map +0 -1
  111. package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
  112. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
  113. package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
  114. package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
  115. package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
  116. package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
  117. package/conversation/conversation-transfer/progress.d.ts +0 -60
  118. package/conversation/conversation-transfer/progress.d.ts.map +0 -1
  119. package/conversation/conversation-transfer/queue.d.ts +0 -54
  120. package/conversation/conversation-transfer/queue.d.ts.map +0 -1
  121. package/conversation/conversation-transfer/types.d.ts +0 -36
  122. package/conversation/conversation-transfer/types.d.ts.map +0 -1
  123. package/conversation/conversation-transfer/zip-export.d.ts +0 -31
  124. package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
  125. package/conversation/conversation-transfer/zip-import.d.ts +0 -17
  126. package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
  127. package/conversation/create-chat-stream-api.d.ts +0 -38
  128. package/conversation/create-chat-stream-api.d.ts.map +0 -1
  129. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
  130. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
  131. package/conversation/display-name-watch.d.ts +0 -4
  132. package/conversation/display-name-watch.d.ts.map +0 -1
  133. package/conversation/footer-message.d.ts +0 -10
  134. package/conversation/footer-message.d.ts.map +0 -1
  135. package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
  136. package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
  137. package/conversation/greeting.d.ts +0 -18
  138. package/conversation/greeting.d.ts.map +0 -1
  139. package/conversation/message-factory.d.ts +0 -7
  140. package/conversation/message-factory.d.ts.map +0 -1
  141. package/conversation/message-utils.d.ts +0 -27
  142. package/conversation/message-utils.d.ts.map +0 -1
  143. package/conversation/overlay-messages.d.ts +0 -5
  144. package/conversation/overlay-messages.d.ts.map +0 -1
  145. package/conversation/quick-app-conversation-starters.d.ts +0 -10
  146. package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
  147. package/conversation/starter-option.d.ts +0 -21
  148. package/conversation/starter-option.d.ts.map +0 -1
  149. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
  150. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
  151. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
  152. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
  153. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
  154. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
  155. package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
  156. package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
  157. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
  158. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
  159. package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
  160. package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
  161. package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
  162. package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
  163. package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
  164. package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
  165. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
  166. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
  167. package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
  168. package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
  169. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
  170. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
  171. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
  172. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
  173. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
  174. package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
  175. package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
  176. package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
  177. package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
  178. package/conversation/useConversationStream/conversation-path.d.ts +0 -7
  179. package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
  180. package/conversation/useConversationStream/generation-resume.d.ts +0 -39
  181. package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
  182. package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
  183. package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
  184. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
  185. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
  186. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
  187. package/files/annotation.d.ts +0 -10
  188. package/files/annotation.d.ts.map +0 -1
  189. package/files/attachment-canvas.d.ts +0 -104
  190. package/files/attachment-canvas.d.ts.map +0 -1
  191. package/files/attachment-dto-to-display.d.ts +0 -10
  192. package/files/attachment-dto-to-display.d.ts.map +0 -1
  193. package/files/attachment-types.d.ts +0 -14
  194. package/files/attachment-types.d.ts.map +0 -1
  195. package/files/create-files-api.d.ts +0 -52
  196. package/files/create-files-api.d.ts.map +0 -1
  197. package/files/create-upload-file-with-progress.d.ts +0 -24
  198. package/files/create-upload-file-with-progress.d.ts.map +0 -1
  199. package/files/dial-file-manager-copy-move.util.d.ts +0 -15
  200. package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
  201. package/files/dial-file-manager-mapping.util.d.ts +0 -35
  202. package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
  203. package/files/dial-file-manager-path.util.d.ts +0 -39
  204. package/files/dial-file-manager-path.util.d.ts.map +0 -1
  205. package/files/dial-file-manager.model.d.ts +0 -26
  206. package/files/dial-file-manager.model.d.ts.map +0 -1
  207. package/files/dial-file-manager.types.d.ts +0 -317
  208. package/files/dial-file-manager.types.d.ts.map +0 -1
  209. package/files/dial-file-to-attachment.d.ts +0 -26
  210. package/files/dial-file-to-attachment.d.ts.map +0 -1
  211. package/files/dial-file.d.ts +0 -17
  212. package/files/dial-file.d.ts.map +0 -1
  213. package/files/dial-files-api.d.ts +0 -71
  214. package/files/dial-files-api.d.ts.map +0 -1
  215. package/files/download-destination.d.ts +0 -31
  216. package/files/download-destination.d.ts.map +0 -1
  217. package/files/file-manager-variant.d.ts +0 -4
  218. package/files/file-manager-variant.d.ts.map +0 -1
  219. package/files/file-name.d.ts +0 -19
  220. package/files/file-name.d.ts.map +0 -1
  221. package/files/prepare-download-destination.d.ts +0 -8
  222. package/files/prepare-download-destination.d.ts.map +0 -1
  223. package/files/resolve-dial-file-api-path.d.ts +0 -13
  224. package/files/resolve-dial-file-api-path.d.ts.map +0 -1
  225. package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
  226. package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
  227. package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
  228. package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
  229. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
  230. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
  231. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
  232. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
  233. package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
  234. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
  235. package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
  236. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
  237. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
  238. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
  239. package/index.d.ts.map +0 -1
  240. package/oauth/authorize-url.d.ts +0 -16
  241. package/oauth/authorize-url.d.ts.map +0 -1
  242. package/oauth/handshake.d.ts +0 -30
  243. package/oauth/handshake.d.ts.map +0 -1
  244. package/oauth/models.d.ts +0 -81
  245. package/oauth/models.d.ts.map +0 -1
  246. package/oauth/popup.d.ts +0 -30
  247. package/oauth/popup.d.ts.map +0 -1
  248. package/oauth/toolset-id.d.ts +0 -23
  249. package/oauth/toolset-id.d.ts.map +0 -1
  250. package/oauth/types.d.ts +0 -84
  251. package/oauth/types.d.ts.map +0 -1
  252. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
  253. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
  254. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
  255. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
  256. package/prompt/export-prompt.d.ts +0 -31
  257. package/prompt/export-prompt.d.ts.map +0 -1
  258. package/prompt/prompt-resource.d.ts +0 -30
  259. package/prompt/prompt-resource.d.ts.map +0 -1
  260. package/prompt/prompt.d.ts +0 -34
  261. package/prompt/prompt.d.ts.map +0 -1
  262. package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
  263. package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
  264. package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
  265. package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
  266. package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
  267. package/shared/application-schema.d.ts +0 -10
  268. package/shared/application-schema.d.ts.map +0 -1
  269. package/shared/browser-timezone.d.ts +0 -7
  270. package/shared/browser-timezone.d.ts.map +0 -1
  271. package/shared/cron-weekday.d.ts +0 -5
  272. package/shared/cron-weekday.d.ts.map +0 -1
  273. package/shared/custom-apps.d.ts +0 -7
  274. package/shared/custom-apps.d.ts.map +0 -1
  275. package/shared/external-services.d.ts +0 -16
  276. package/shared/external-services.d.ts.map +0 -1
  277. package/shared/formatting.d.ts +0 -5
  278. package/shared/formatting.d.ts.map +0 -1
  279. package/shared/locale.d.ts +0 -45
  280. package/shared/locale.d.ts.map +0 -1
  281. package/shared/string-utils.d.ts +0 -9
  282. package/shared/string-utils.d.ts.map +0 -1
  283. package/shared/toolset-login-events.d.ts +0 -15
  284. package/shared/toolset-login-events.d.ts.map +0 -1
  285. package/skill/skill-file-batch-validation.d.ts +0 -70
  286. package/skill/skill-file-batch-validation.d.ts.map +0 -1
  287. package/skill/skill-file-preview.d.ts +0 -25
  288. package/skill/skill-file-preview.d.ts.map +0 -1
  289. package/skill/skill-manifest.d.ts +0 -28
  290. package/skill/skill-manifest.d.ts.map +0 -1
  291. package/skill/skill-types.d.ts +0 -42
  292. package/skill/skill-types.d.ts.map +0 -1
  293. package/skill/skill.d.ts +0 -114
  294. package/skill/skill.d.ts.map +0 -1
  295. package/skill/useSkillEditorLoad.d.ts +0 -74
  296. package/skill/useSkillEditorLoad.d.ts.map +0 -1
  297. package/skill/useSkillEditorSubmit.d.ts +0 -105
  298. package/skill/useSkillEditorSubmit.d.ts.map +0 -1
  299. package/skill/useSkillFileActions.d.ts +0 -53
  300. package/skill/useSkillFileActions.d.ts.map +0 -1
  301. package/skill/useSkillFilePreview.d.ts +0 -38
  302. package/skill/useSkillFilePreview.d.ts.map +0 -1
  303. package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
  304. package/test-setup.d.ts +0 -2
  305. package/test-setup.d.ts.map +0 -1
  306. package/usage/useUsageData/useUsageData.d.ts +0 -20
  307. package/usage/useUsageData/useUsageData.d.ts.map +0 -1
  308. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
  309. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
  310. package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
  311. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
  312. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
  313. package/useShareLink/useShareLink.d.ts +0 -23
  314. package/useShareLink/useShareLink.d.ts.map +0 -1
  315. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
  316. package/useToolsMenu/useToolsMenu.d.ts +0 -31
  317. package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
  318. package/useViewportWidth/useViewportWidth.d.ts +0 -3
  319. package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
@@ -1,31 +0,0 @@
1
- import { ExportFormat } from '@epam/ai-dial-chat-shared';
2
- /**
3
- * Validates an attachment path before it is written into (or read from) a
4
- * `.dial` archive. Blocks path traversal and absolute paths by rejecting
5
- * empty, `.`, or `..` path segments (so `../../etc/passwd` and `/etc/passwd`
6
- * are both rejected). No character allowlist — real-world filenames
7
- * routinely contain spaces, parentheses, and non-ASCII characters, and any
8
- * character that would be unsafe in the eventual upload URL is already
9
- * percent-encoded downstream by `buildUploadPath`.
10
- */
11
- export declare const isValidArchivePath: (path: string) => boolean;
12
- /** A single attachment already fetched into memory, ready to be written into the archive. */
13
- export interface ZipAttachmentEntry {
14
- /** Relative path under which the attachment is stored, e.g. `reports/q1.pdf`. */
15
- path: string;
16
- /** Attachment content. */
17
- data: Uint8Array;
18
- }
19
- export interface BuildDialArchiveResult {
20
- /** The built `.dial` archive. */
21
- blob: Blob;
22
- /** Attachment paths that failed validation and were not written to the archive. */
23
- skippedPaths: string[];
24
- }
25
- /**
26
- * Builds a `.dial` ZIP archive containing the conversation export envelope
27
- * plus every valid attachment, laid out under `res/<path>`. Attachments
28
- * failing the path allowlist are skipped and reported in `skippedPaths`.
29
- */
30
- export declare const buildDialArchive: (envelope: ExportFormat, attachments: ZipAttachmentEntry[]) => BuildDialArchiveResult;
31
- //# sourceMappingURL=zip-export.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zip-export.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/zip-export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAY9D;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,OAI4B,CAAC;AAE/E,6FAA6F;AAC7F,MAAM,WAAW,kBAAkB;IACjC,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,mFAAmF;IACnF,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,YAAY,EACtB,aAAa,kBAAkB,EAAE,KAChC,sBAqBF,CAAC"}
@@ -1,17 +0,0 @@
1
- import { ExportFormat } from '@epam/ai-dial-chat-shared';
2
- export interface ParsedDialArchive {
3
- /** The parsed and validated export envelope. */
4
- envelope: ExportFormat;
5
- /** Attachment bytes keyed by their bucket-relative path (the `res/<path>` suffix). */
6
- attachments: Map<string, Uint8Array>;
7
- }
8
- /**
9
- * Parses a `.dial`/`.zip` archive produced by either the new-chat export
10
- * (`conversation.json` at the archive root) or the old (`development`
11
- * branch) export (`conversations/<name>.json`) — the JSON entry name is
12
- * detected tolerantly by its archive path, since both old-chat and new-chat
13
- * archives write the same `version: 5` envelope. Attachment bytes are
14
- * collected from `res/<path>` entries, keyed by their validated relative path.
15
- */
16
- export declare const parseDialArchive: (file: File) => Promise<ParsedDialArchive>;
17
- //# sourceMappingURL=zip-import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zip-import.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/zip-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAe9D,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,QAAQ,EAAE,YAAY,CAAC;IACvB,sFAAsF;IACtF,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACtC;AAqBD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,IAAI,KACT,OAAO,CAAC,iBAAiB,CAiC3B,CAAC"}
@@ -1,38 +0,0 @@
1
- import { SendCompletionDtoModeEnum } from '@epam/ai-dial-chat-api-client';
2
- import { MessageCustomContent, StreamChunk } from '@epam/ai-dial-chat-shared';
3
- /** Callbacks {@link streamCompletion} reports streamed completion events through. */
4
- export interface ChatStreamCompletionOptions {
5
- onChunk: (chunk: StreamChunk) => void;
6
- onComplete: () => void;
7
- onError: (error: Error) => void;
8
- signal?: AbortSignal;
9
- }
10
- /** Host capabilities {@link createChatStreamApi} needs to stream and stop completions. */
11
- export interface CreateChatStreamApiDeps {
12
- /** Returns the currently held CSRF token, or `null` when none is set. */
13
- getCsrfToken: () => string | null;
14
- /** Stores a CSRF token captured from a response header. */
15
- setCsrfToken: (token: string | null) => void;
16
- /** Base path for the completion/stop endpoints, e.g. `/api/v1/conversations`. */
17
- completionsBasePath: string;
18
- /** Resolves the caller's current timezone, attached as `X-Timezone` when non-empty. */
19
- getTimezone?: () => string | undefined;
20
- /** `fetch` implementation to issue requests through. Defaults to the global `fetch`. */
21
- fetchImpl?: typeof fetch;
22
- }
23
- /** DIAL Core completion streaming transport produced by {@link createChatStreamApi}. */
24
- export interface ChatStreamApi {
25
- streamCompletion: (path: string, message: string | undefined, model: string, options: ChatStreamCompletionOptions, customContent?: MessageCustomContent, generationId?: string, mode?: SendCompletionDtoModeEnum, messageIndex?: number, clientChannelId?: string) => void;
26
- stopCompletion: (dto: {
27
- generationId: string;
28
- path: string;
29
- }) => Promise<void>;
30
- }
31
- /**
32
- * Builds the streamed-completion transport `apps/chat/src/server-api/chat-stream.api.ts`
33
- * exposes today: SSE parsing across partial chunks, CSRF header attachment
34
- * and rotation, and an optional timezone header, backed by an injected
35
- * `fetch` implementation and base path.
36
- */
37
- export declare const createChatStreamApi: (deps: CreateChatStreamApiDeps) => ChatStreamApi;
38
- //# sourceMappingURL=create-chat-stream-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-chat-stream-api.d.ts","sourceRoot":"","sources":["../../src/conversation/create-chat-stream-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACZ,MAAM,2BAA2B,CAAC;AAInC,qFAAqF;AACrF,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,0FAA0F;AAC1F,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAClC,2DAA2D;IAC3D,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,iFAAiF;IACjF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACvC,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AA0BD,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,CAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,aAAa,CAAC,EAAE,oBAAoB,EACpC,YAAY,CAAC,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,yBAAyB,EAChC,YAAY,CAAC,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,KACrB,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,GAAG,EAAE;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,uBAAuB,KAC5B,aAuIF,CAAC"}
@@ -1,39 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Extracts the deployment/model ID from a DIAL Core conversation ID.
3
- *
4
- * The backend builds conversation paths as `{deploymentId}__{title}` then runs
5
- * `encodeDialResourcePath` which splits on `/` and encodes each segment. This
6
- * means both the deployment ID and the title may introduce extra `/`-separated
7
- * URL segments:
8
- *
9
- * - Deployment `anthropic/claude-3`, title `My chat`
10
- * → `conversations/bucket/anthropic/claude-3__My%20chat`
11
- *
12
- * - Deployment `uuid`, title `calc 6/2/2026` (title contains slashes)
13
- * → `conversations/bucket/uuid__calc%206/2/2026`
14
- *
15
- * The `__` separator is present in the first filename segment. Versioned
16
- * application deployments use `{name}__{version}__{title}`, so the version
17
- * suffix still belongs to the deployment ID.
18
- *
19
- * In regular model conversations, the separator is always present in exactly
20
- * one segment — the first one that contains it. Segments before that segment
21
- * are deployment ID path prefixes; segments from that point onward are the
22
- * title (possibly overflowing into further `/`-separated segments).
23
- *
24
- * Returns `undefined` when the format is unrecognised.
25
- */
26
- export declare const getModelIdFromConversationId: (id: string) => string | undefined;
27
- //# sourceMappingURL=get-model-id-from-conversation-id.d.ts.map
@@ -1 +0,0 @@
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":"AA4CA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,4BAA4B,GACvC,IAAI,MAAM,KACT,MAAM,GAAG,SAkCX,CAAC"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,27 +0,0 @@
1
- import { 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 `new_deployment_id` from the last `model_changed` status message
10
- * in the list, or `null` if none exists.
11
- */
12
- export declare const getLastDeploymentId: (messages: Message[]) => string | null;
13
- /** True when `message` is an assistant message carrying at least one stage. */
14
- export declare const messageHasStages: (message: Message) => boolean;
15
- /**
16
- * Returns the `configuration_value` stored on the last user message, or
17
- * `undefined` if none exists. Used to restore the tools menu toggle state
18
- * when a conversation is (re-)loaded, mirroring `getLastDeploymentId`.
19
- */
20
- export declare const getLastUserMessageToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
21
- /**
22
- * Normalises a stored response-format string to the current enum. Legacy data
23
- * may contain `'Markdown'` or `'PlainText'` (capital-first) instead of the
24
- * current enum values `'markdown'` / `'plain_text'`.
25
- */
26
- export declare const normalizeResponseFormat: (value: string | undefined) => ResponseFormat;
27
- //# sourceMappingURL=message-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../src/conversation/message-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,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;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,OAAO,EAAE,KAAG,MAAM,GAAG,IAUlE,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;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,GAAG,SAAS,KACxB,cAIF,CAAC"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"overlay-messages.d.ts","sourceRoot":"","sources":["../../src/conversation/overlay-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,GAAI,UAAU,OAAO,EAAE,KAAG,kBAAkB,EAKrE,CAAC"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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,oCAyCF,CAAC"}
@@ -1,21 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,34 +0,0 @@
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 whenever it or the list changes.
32
- */
33
- export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
34
- //# sourceMappingURL=useActiveConversationSync.d.ts.map
@@ -1 +0,0 @@
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;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,GAAI,6HAOvC,+BAA+B,KAAG,MAAM,GAAG,SAyC7C,CAAC"}
@@ -1,46 +0,0 @@
1
- /** State and controls returned by `useAsyncConfirmDialog`. */
2
- export interface AsyncConfirmDialogControls<T> {
3
- /**
4
- * The value currently awaiting confirmation, or `null` when no dialog is
5
- * open.
6
- */
7
- pending: T | null;
8
- /** `true` when `pending` is not `null`. */
9
- isPending: boolean;
10
- /** `true` while the async operation started by `confirm` is in-flight. */
11
- isRunning: boolean;
12
- /** Error message set when the last `confirm` run threw, or `null` otherwise. */
13
- error: string | null;
14
- /**
15
- * Opens the dialog by setting `pending` to `value` and clearing any prior
16
- * error.
17
- *
18
- * Pass `returnFocusTo` when the control that opened the dialog will not
19
- * survive it — a row menu item, for instance, unmounts with its menu, so
20
- * restoring focus to it is impossible and the caller should name a stable
21
- * element such as the menu's own trigger. When omitted, whatever held focus
22
- * at the moment of the call is used.
23
- */
24
- open: (value: T, returnFocusTo?: HTMLElement | null) => void;
25
- /** Closes the dialog by resetting `pending`, `error`, and `isRunning` to their initial values. */
26
- close: () => void;
27
- /**
28
- * Runs `run(pending)` while enforcing a re-entry guard.
29
- *
30
- * - No-op when `isRunning` is already `true` or `pending` is `null`.
31
- * - On success: calls `close()` to reset all state.
32
- * - On failure: sets `error` to `onError(caughtError)` and leaves `pending`
33
- * set so the caller may retry.
34
- */
35
- confirm: (run: (value: T) => Promise<void>, onError: (error: unknown) => string) => Promise<void>;
36
- }
37
- /**
38
- * Generic single-slot pending / loading / error state machine for
39
- * confirmation dialogs that trigger an async operation.
40
- *
41
- * Replaces the `[pendingXxx, setXxx] / [isXxxing, setIsXxxing] / [xxxError,
42
- * setXxxError]` triads that previously appeared inline at each call site in
43
- * `ConversationPanelView` and `ConversationPanelMenu`.
44
- */
45
- export declare const useAsyncConfirmDialog: <T>() => AsyncConfirmDialogControls<T>;
46
- //# sourceMappingURL=useAsyncConfirmDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAsyncConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.ts"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC3C;;;OAGG;IACH,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAClB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,gFAAgF;IAChF,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;;;;;;OASG;IACH,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,kGAAkG;IAClG,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,CACP,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,KAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,OAAK,0BAA0B,CAAC,CAAC,CAwFvE,CAAC"}
@@ -1,26 +0,0 @@
1
- import { FilesApi } from '@epam/ai-dial-chat-api-client';
2
- import { Attachment } from '@epam/ai-dial-chat-shared';
3
- /** Parameters for {@link useAttachmentUpload}. */
4
- export interface UseAttachmentUploadParams {
5
- /** Already-configured generated-client instance used to upload the file. */
6
- filesApi: Pick<FilesApi, 'uploadFile'>;
7
- /** DIAL Core bucket the file is uploaded into. */
8
- bucket: string | undefined;
9
- /** Called with batched filenames after a burst of network-error upload failures. */
10
- onNetworkError?: (filenames: string[]) => void;
11
- /** Debounce window, in ms, for coalescing offline-failure batches. Defaults to `700`. */
12
- debounceMs?: number;
13
- }
14
- /** Return value of {@link useAttachmentUpload}. */
15
- export interface UseAttachmentUploadResult {
16
- /** Uploads the given attachment's file and resolves to its DIAL Core file URL. */
17
- handleUploadAttachment: (attachment: Attachment) => Promise<string>;
18
- }
19
- /**
20
- * Uploads an attachment's file to DIAL Core storage against an
21
- * already-configured `FilesApi` instance, coalescing a burst of
22
- * offline/network upload failures into a single debounced callback rather
23
- * than firing one notification per failed file.
24
- */
25
- export declare const useAttachmentUpload: ({ filesApi, bucket, onNetworkError, debounceMs, }: UseAttachmentUploadParams) => UseAttachmentUploadResult;
26
- //# sourceMappingURL=useAttachmentUpload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAttachmentUpload.d.ts","sourceRoot":"","sources":["../../../src/conversation/useAttachmentUpload/useAttachmentUpload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AAKnC,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,4EAA4E;IAC5E,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACvC,kDAAkD;IAClD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oFAAoF;IACpF,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/C,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,kFAAkF;IAClF,sBAAsB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACrE;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,mDAKjC,yBAAyB,KAAG,yBA0C9B,CAAC"}
@@ -1,72 +0,0 @@
1
- import { ConversationsApi, FilesApi } from '@epam/ai-dial-chat-api-client';
2
- import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
3
- import { ConversationExportMode, ConversationTransferErrorEvent, ConversationTransferSuccessEvent, ConversationTransferWarningEvent } from '../conversation-transfer/types';
4
- /**
5
- * Default ceiling on the summed byte length of an export's attachments.
6
- *
7
- * The bound is on *input* bytes even though what it protects is peak heap:
8
- * the archive pipeline holds roughly three copies at once — every attachment
9
- * in memory, `zipSync`'s output buffer (already-compressed media barely
10
- * shrinks), and the copy `buildDialArchive` makes before handing it to `Blob`.
11
- * 512 MiB of input therefore peaks near 1.5 GiB, which fits a 64-bit desktop
12
- * tab. Sizing this against the ~2 GiB single-`ArrayBuffer` ceiling would be
13
- * the wrong bound — that limits one buffer, not the three held together.
14
- */
15
- export declare const DEFAULT_MAX_ARCHIVE_BYTES: number;
16
- interface ExportErrorClassification {
17
- isUnauthorized?: boolean;
18
- isNotFound?: boolean;
19
- }
20
- /** Parameters for {@link useConversationExport}. */
21
- export interface UseConversationExportParams {
22
- /** Already-configured generated-client instance used to read conversations. */
23
- conversationsApi: Pick<ConversationsApi, 'getConversation' | 'listConversations'>;
24
- /** Already-configured generated-client instance used to download attachments. */
25
- filesApi: Pick<FilesApi, 'downloadFileRaw'>;
26
- /** Resolves a conversation id to the bucket-qualified path `getConversation` expects. */
27
- normalizeConversationPath: (conversationId: string) => string;
28
- /** Classifies a thrown error as unauthorized/not-found. Host-owned error taxonomy; defaults to neither. */
29
- classifyTransferError?: (error: unknown) => ExportErrorClassification;
30
- /** Resolves a trace id for a failing request, for display in an error notification. */
31
- resolveErrorTraceId?: (error: unknown) => Promise<string | undefined>;
32
- /**
33
- * Ceiling on the summed byte length of an export's attachments; a larger
34
- * export fails with `FileTooLarge` instead of being zipped. Defaults to
35
- * {@link DEFAULT_MAX_ARCHIVE_BYTES}.
36
- */
37
- maxArchiveBytes?: number;
38
- /** Called when a job completes successfully. */
39
- onSuccess?: (event: ConversationTransferSuccessEvent) => void;
40
- /** Called when a job succeeds but had to skip something (e.g. an unreachable attachment). */
41
- onWarning?: (event: ConversationTransferWarningEvent) => void;
42
- /** Called when a job fails. */
43
- onError?: (event: ConversationTransferErrorEvent) => void;
44
- }
45
- /** Return value of {@link useConversationExport}. */
46
- export interface UseConversationExportResult {
47
- /** Export jobs, most recently added last. Multiple jobs can be in progress concurrently. */
48
- jobs: ConversationTransferJob[];
49
- /** Enqueues a single-conversation export job and starts it immediately. */
50
- exportSingle: (conversationId: string, title: string, mode: ConversationExportMode) => Promise<void>;
51
- /** Enqueues an export-all job and starts it immediately. */
52
- exportAll: () => Promise<void>;
53
- /** Aborts a job's underlying requests and marks it canceled, keeping it in `jobs`. */
54
- cancelJob: (jobId: string) => void;
55
- /** Removes a job from the queue. If still in progress, aborts its underlying requests. */
56
- dismissJob: (jobId: string) => void;
57
- /** Re-attempts a failed or canceled job in place (same job id, same parameters). */
58
- retryJob: (jobId: string) => void;
59
- /** Aborts all in-progress jobs and clears the entire queue. */
60
- dismissAll: () => void;
61
- }
62
- /**
63
- * Owns the export job queue: fetches conversation data through the injected
64
- * generated-client operations, builds the JSON v5 / ZIP output via the pure
65
- * export utils, reports determinate per-job progress and structured
66
- * success/warning/error events, and tracks each job's lifecycle (in progress /
67
- * success / failed / canceled) independently so multiple exports can run
68
- * concurrently.
69
- */
70
- export declare const useConversationExport: ({ conversationsApi, filesApi, normalizeConversationPath, classifyTransferError, resolveErrorTraceId, maxArchiveBytes, onSuccess, onWarning, onError, }: UseConversationExportParams) => UseConversationExportResult;
71
- export {};
72
- //# sourceMappingURL=useConversationExport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConversationExport.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationExport/useConversationExport.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,KAAK,uBAAuB,EAI7B,MAAM,2BAA2B,CAAC;AAoBnC,OAAO,EACL,sBAAsB,EACtB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EAErC,KAAK,gCAAgC,EAEtC,MAAM,gCAAgC,CAAC;AASxC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,QAAoB,CAAC;AA2E3D,UAAU,yBAAyB;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAsBD,oDAAoD;AACpD,MAAM,WAAW,2BAA2B;IAC1C,+EAA+E;IAC/E,gBAAgB,EAAE,IAAI,CACpB,gBAAgB,EAChB,iBAAiB,GAAG,mBAAmB,CACxC,CAAC;IACF,iFAAiF;IACjF,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IAC5C,yFAAyF;IACzF,yBAAyB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9D,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,yBAAyB,CAAC;IACtE,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,6FAA6F;IAC7F,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IAC9D,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CAC3D;AAED,qDAAqD;AACrD,MAAM,WAAW,2BAA2B;IAC1C,4FAA4F;IAC5F,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,2EAA2E;IAC3E,YAAY,EAAE,CACZ,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,sBAAsB,KACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,sFAAsF;IACtF,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,0FAA0F;IAC1F,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,oFAAoF;IACpF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+DAA+D;IAC/D,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAAI,wJAUnC,2BAA2B,KAAG,2BAobhC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { AttachmentDto } from '@epam/ai-dial-chat-api-client';
2
- import { Attachment } from '@epam/ai-dial-chat-shared';
3
- /** Maps an already-uploaded attachment to its DTO shape. Throws if the attachment has no `url` yet. */
4
- export declare const attachmentToDto: (attachment: Attachment) => AttachmentDto;
5
- /** Maps a list of already-uploaded attachments to DTOs, or `undefined` when the list is empty. */
6
- export declare const attachmentsToDtos: (attachments: Attachment[]) => AttachmentDto[] | undefined;
7
- //# sourceMappingURL=attachment-to-dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment-to-dto.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/attachment-to-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,uGAAuG;AACvG,eAAO,MAAM,eAAe,GAAI,YAAY,UAAU,KAAG,aAUxD,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,iBAAiB,GAC5B,aAAa,UAAU,EAAE,KACxB,aAAa,EAAE,GAAG,SAGpB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { Message, MessageCustomContent } from '@epam/ai-dial-chat-shared';
2
- /** A newly-created user message paired with its empty assistant placeholder. */
3
- export interface MessagePair {
4
- userMessage: Message;
5
- assistantMessage: Message;
6
- }
7
- /** Builds a user message and its empty assistant placeholder, both timestamped `now`. */
8
- export declare const createMessagePair: (content: string, customContent?: MessageCustomContent, deploymentId?: string | null) => MessagePair;
9
- //# sourceMappingURL=message-factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-factory.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/message-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AAEnC,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,gBAAgB,oBAAoB,EACpC,eAAe,MAAM,GAAG,IAAI,KAC3B,WAoBF,CAAC"}
@@ -1,14 +0,0 @@
1
- import { Attachment, DisplayAttachment, Message } from '@epam/ai-dial-chat-shared';
2
- /** Whether at least one tool toggle in `value` is active. */
3
- export declare const hasActiveToolConfig: (value: Record<string, boolean> | undefined) => boolean;
4
- /**
5
- * Returns `true` when the edited text or attachment list differs from the
6
- * original message, meaning a regeneration is needed.
7
- *
8
- * @param originalMessage - The unmodified message stored in the conversation.
9
- * @param newText - The text the user submitted from the edit area.
10
- * @param keptDisplayAttachments - Attachments the user kept (not removed).
11
- * @param newAttachments - Brand-new attachments the user added during editing.
12
- */
13
- export declare const isMessageChanged: (originalMessage: Message, newText: string, keptDisplayAttachments: DisplayAttachment[], newAttachments: Attachment[]) => boolean;
14
- //# sourceMappingURL=message-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/message-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,EACR,MAAM,2BAA2B,CAAC;AAEnC,6DAA6D;AAC7D,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACzC,OAAyD,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,iBAAiB,OAAO,EACxB,SAAS,MAAM,EACf,wBAAwB,iBAAiB,EAAE,EAC3C,gBAAgB,UAAU,EAAE,KAC3B,OAMF,CAAC"}
@@ -1,14 +0,0 @@
1
- import { StarterOption } from '@epam/ai-dial-chat-shared';
2
- /**
3
- * Returns the text to start/populate a conversation from a selected starter button.
4
- * `description` (the schema property's shared intro/question text) is used only
5
- * as a fallback when the starter's own `populateText` is explicitly `null` — it
6
- * must never override a starter's own configured prompt.
7
- */
8
- export declare const getStarterConversationText: (starter: StarterOption, description?: string) => string;
9
- /**
10
- * Returns submitted text for DIAL starter/form buttons.
11
- * For submit buttons, `populateText: null` explicitly means "submit no text".
12
- */
13
- export declare const getStarterSubmitText: (starter: StarterOption, description?: string) => string;
14
- //# sourceMappingURL=starter-option.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"starter-option.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationHandlers/starter-option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,aAAa,EACtB,cAAc,MAAM,KACnB,MAQF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,aAAa,EACtB,cAAc,MAAM,KACnB,MAQF,CAAC"}