@epam/ai-dial-chat-hooks 1.3.0-dev.28 → 1.3.0-dev.288

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 (690) 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/attach-constraints.d.ts +31 -0
  10. package/attachment/attach-constraints.d.ts.map +1 -0
  11. package/attachment/attach-constraints.js +18 -0
  12. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  13. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  14. package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
  15. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  16. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  17. package/attachments.d.ts +2 -94
  18. package/attachments.js +2 -1
  19. package/catalog/application-credentials.d.ts +15 -0
  20. package/catalog/application-credentials.d.ts.map +1 -0
  21. package/catalog/application-credentials.js +33 -0
  22. package/catalog/catalog-derivations.d.ts +29 -0
  23. package/catalog/catalog-derivations.d.ts.map +1 -0
  24. package/catalog/catalog-derivations.js +13 -6
  25. package/catalog/catalog-entity-kind.d.ts +31 -0
  26. package/catalog/catalog-entity-kind.d.ts.map +1 -0
  27. package/catalog/catalog-entity-kind.js +21 -0
  28. package/catalog/catalog-preferences.d.ts +8 -0
  29. package/catalog/catalog-preferences.d.ts.map +1 -0
  30. package/catalog/catalog-preferences.js +5 -0
  31. package/catalog/catalog-primary-action.d.ts +47 -0
  32. package/catalog/catalog-primary-action.d.ts.map +1 -0
  33. package/catalog/create-publish-api.d.ts +34 -0
  34. package/catalog/create-publish-api.d.ts.map +1 -0
  35. package/catalog/create-publish-api.js +4 -0
  36. package/catalog/deployment-endpoint-url.d.ts +19 -0
  37. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  38. package/catalog/deployment-id.d.ts +51 -0
  39. package/catalog/deployment-id.d.ts.map +1 -0
  40. package/catalog/deployment-id.js +17 -3
  41. package/catalog/entity-details.d.ts +148 -0
  42. package/catalog/entity-details.d.ts.map +1 -0
  43. package/catalog/favorite-entity-type.d.ts +5 -0
  44. package/catalog/favorite-entity-type.d.ts.map +1 -0
  45. package/catalog/favorite-entity-type.js +10 -0
  46. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  47. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  48. package/catalog/map-deployment-limits-to-input.d.ts +29 -0
  49. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  50. package/catalog/map-deployment-limits-to-input.js +3 -4
  51. package/catalog/map-deployment-to-catalog-item.d.ts +72 -0
  52. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  53. package/catalog/map-deployment-to-catalog-item.js +17 -12
  54. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  55. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  56. package/catalog/map-entity-details-to-catalog.js +69 -24
  57. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  58. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  59. package/catalog/map-skill-to-catalog-item.d.ts +112 -0
  60. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  61. package/catalog/map-skill-to-catalog-item.js +11 -20
  62. package/catalog/mcp-endpoint-url.d.ts +18 -0
  63. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  64. package/catalog/publish.d.ts +35 -0
  65. package/catalog/publish.d.ts.map +1 -0
  66. package/catalog/usage-limit-rows.d.ts +14 -0
  67. package/catalog/usage-limit-rows.d.ts.map +1 -0
  68. package/catalog/usage-limit-rows.js +19 -0
  69. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  70. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  71. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +119 -0
  72. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  73. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +99 -80
  74. package/catalog/useCatalogItemDetails.d.ts +70 -0
  75. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  76. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  77. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  78. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +24 -24
  79. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  80. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  81. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  82. package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
  83. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  84. package/catalog/usePublishFolders/usePublishFolders.js +1 -1
  85. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  86. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  87. package/catalog/useSkillItemDetails.d.ts +64 -0
  88. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  89. package/catalog/useSkillItemDetails.js +3 -3
  90. package/catalog.d.ts +2 -1436
  91. package/catalog.js +28 -23
  92. package/conversation/announcement-message.d.ts +61 -0
  93. package/conversation/announcement-message.d.ts.map +1 -0
  94. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  95. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  96. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  97. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  98. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  99. package/conversation/conversation-list.d.ts +6 -0
  100. package/conversation/conversation-list.d.ts.map +1 -0
  101. package/conversation/conversation-list.js +5 -0
  102. package/conversation/conversation-transfer/async.d.ts +10 -0
  103. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  104. package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
  105. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  106. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  107. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  108. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  109. package/conversation/conversation-transfer/date.d.ts +5 -0
  110. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  111. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  112. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  113. package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
  114. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  115. package/conversation/conversation-transfer/export-conversation.js +19 -18
  116. package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
  117. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  118. package/conversation/conversation-transfer/import-conversation.js +65 -69
  119. package/conversation/conversation-transfer/progress.d.ts +60 -0
  120. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  121. package/conversation/conversation-transfer/progress.js +1 -1
  122. package/conversation/conversation-transfer/queue.d.ts +54 -0
  123. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  124. package/conversation/conversation-transfer/types.d.ts +36 -0
  125. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  126. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  127. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  128. package/conversation/conversation-transfer/zip-export.js +1 -7
  129. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  130. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  131. package/conversation/conversation-transfer/zip-import.js +1 -1
  132. package/conversation/create-chat-stream-api.d.ts +109 -0
  133. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  134. package/conversation/create-chat-stream-api.js +57 -47
  135. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  136. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  137. package/conversation/display-name-watch.d.ts +4 -0
  138. package/conversation/display-name-watch.d.ts.map +1 -0
  139. package/conversation/footer-message.d.ts +10 -0
  140. package/conversation/footer-message.d.ts.map +1 -0
  141. package/conversation/generation-registry.d.ts +30 -0
  142. package/conversation/generation-registry.d.ts.map +1 -0
  143. package/conversation/generation-registry.js +33 -0
  144. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  145. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  146. package/conversation/get-model-id-from-conversation-id.js +1 -1
  147. package/conversation/greeting.d.ts +18 -0
  148. package/conversation/greeting.d.ts.map +1 -0
  149. package/conversation/message-factory.d.ts +7 -0
  150. package/conversation/message-factory.d.ts.map +1 -0
  151. package/conversation/message-utils.d.ts +73 -0
  152. package/conversation/message-utils.d.ts.map +1 -0
  153. package/conversation/message-utils.js +14 -10
  154. package/conversation/overlay-messages.d.ts +5 -0
  155. package/conversation/overlay-messages.d.ts.map +1 -0
  156. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  157. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  158. package/conversation/scheduled-task-grouping.d.ts +48 -0
  159. package/conversation/scheduled-task-grouping.d.ts.map +1 -0
  160. package/conversation/scheduled-task-grouping.js +40 -0
  161. package/conversation/stage.d.ts +77 -0
  162. package/conversation/stage.d.ts.map +1 -0
  163. package/conversation/starter-option.d.ts +21 -0
  164. package/conversation/starter-option.d.ts.map +1 -0
  165. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +37 -0
  166. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  167. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
  168. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  169. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  170. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  171. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  172. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  173. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  174. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  175. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  176. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
  177. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
  178. package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
  179. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  180. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  181. package/conversation/useConversationExport/useConversationExport.js +59 -60
  182. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  183. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  184. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  185. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  186. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  187. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  188. package/conversation/useConversationHandlers/message-utils.js +2 -2
  189. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  190. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  191. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  192. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  193. package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
  194. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  195. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  196. package/conversation/useConversationImport/useConversationImport.js +24 -24
  197. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  198. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  199. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  200. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  201. package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
  202. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  203. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  204. package/conversation/useConversationScroll/useConversationScroll.js +2 -6
  205. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  206. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  207. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  208. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  209. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  210. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  211. package/conversation/useConversationStream/conversation-path.js +2 -2
  212. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  213. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  214. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  215. package/conversation/useConversationStream/generation-resume.d.ts +98 -0
  216. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  217. package/conversation/useConversationStream/generation-resume.js +93 -122
  218. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  219. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  220. package/conversation/useConversationStream/useConversationStream.js +250 -241
  221. package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
  222. package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
  223. package/conversation/useConversationTitleEnrichmentController.js +155 -0
  224. package/conversation/useDeploymentChangeTracking.d.ts +14 -0
  225. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
  226. package/conversation/useDeploymentChangeTracking.js +23 -0
  227. package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
  228. package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
  229. package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
  230. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  231. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  232. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  233. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  234. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  235. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  236. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  237. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  238. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  239. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +50 -0
  240. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  241. package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
  242. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
  243. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
  244. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
  245. package/conversation-overlay.d.ts +2 -7
  246. package/conversation-overlay.js +1 -2
  247. package/conversation-sources/stage-citations.d.ts +9 -0
  248. package/conversation-sources/stage-citations.d.ts.map +1 -0
  249. package/conversation-sources/stage-citations.js +8 -0
  250. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
  251. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
  252. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
  253. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  254. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  255. package/conversation-sources.d.ts +2 -25
  256. package/conversation-sources.js +3 -1
  257. package/conversation-transfer.d.ts +2 -190
  258. package/conversation.d.ts +2 -1372
  259. package/conversation.js +42 -32
  260. package/entry-points/attachments.d.ts +4 -0
  261. package/entry-points/attachments.d.ts.map +1 -0
  262. package/entry-points/catalog.d.ts +30 -0
  263. package/entry-points/catalog.d.ts.map +1 -0
  264. package/entry-points/conversation-overlay.d.ts +2 -0
  265. package/entry-points/conversation-overlay.d.ts.map +1 -0
  266. package/entry-points/conversation-sources.d.ts +4 -0
  267. package/entry-points/conversation-sources.d.ts.map +1 -0
  268. package/entry-points/conversation-transfer.d.ts +7 -0
  269. package/entry-points/conversation-transfer.d.ts.map +1 -0
  270. package/entry-points/conversation.d.ts +44 -0
  271. package/entry-points/conversation.d.ts.map +1 -0
  272. package/entry-points/external-services.d.ts +2 -0
  273. package/entry-points/external-services.d.ts.map +1 -0
  274. package/entry-points/file-manager-canvas.d.ts +3 -0
  275. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  276. package/entry-points/file-manager.d.ts +33 -0
  277. package/entry-points/file-manager.d.ts.map +1 -0
  278. package/entry-points/mcp-apps.d.ts +6 -0
  279. package/entry-points/mcp-apps.d.ts.map +1 -0
  280. package/entry-points/oauth.d.ts +10 -0
  281. package/entry-points/oauth.d.ts.map +1 -0
  282. package/entry-points/offline-credentials.d.ts +7 -0
  283. package/entry-points/offline-credentials.d.ts.map +1 -0
  284. package/entry-points/project.d.ts +13 -0
  285. package/entry-points/project.d.ts.map +1 -0
  286. package/entry-points/scheduled-tasks.d.ts +13 -0
  287. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  288. package/entry-points/scroll-anchoring.d.ts +2 -0
  289. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  290. package/entry-points/sharing.d.ts +3 -0
  291. package/entry-points/sharing.d.ts.map +1 -0
  292. package/entry-points/skill-editor.d.ts +11 -0
  293. package/entry-points/skill-editor.d.ts.map +1 -0
  294. package/entry-points/skills-state.d.ts +3 -0
  295. package/entry-points/skills-state.d.ts.map +1 -0
  296. package/entry-points/source-content.d.ts +2 -0
  297. package/entry-points/source-content.d.ts.map +1 -0
  298. package/entry-points/usage-limits.d.ts +8 -0
  299. package/entry-points/usage-limits.d.ts.map +1 -0
  300. package/entry-points/usage.d.ts +3 -0
  301. package/entry-points/usage.d.ts.map +1 -0
  302. package/entry-points/utils.d.ts +21 -0
  303. package/entry-points/utils.d.ts.map +1 -0
  304. package/entry-points/viewport-layout.d.ts +5 -0
  305. package/entry-points/viewport-layout.d.ts.map +1 -0
  306. package/external-services/useExternalServiceLogin.d.ts +109 -0
  307. package/external-services/useExternalServiceLogin.d.ts.map +1 -0
  308. package/external-services/useExternalServiceLogin.js +102 -0
  309. package/external-services.d.ts +2 -0
  310. package/external-services.js +1 -0
  311. package/file-manager-canvas.d.ts +2 -418
  312. package/file-manager-canvas.js +3 -2
  313. package/file-manager.d.ts +2 -1250
  314. package/file-manager.js +32 -30
  315. package/files/annotation.d.ts +10 -0
  316. package/files/annotation.d.ts.map +1 -0
  317. package/files/attachment-canvas.d.ts +135 -0
  318. package/files/attachment-canvas.d.ts.map +1 -0
  319. package/files/attachment-canvas.js +18 -10
  320. package/files/attachment-dto-to-display.d.ts +10 -0
  321. package/files/attachment-dto-to-display.d.ts.map +1 -0
  322. package/files/attachment-dto-to-display.js +13 -12
  323. package/files/attachment-types.d.ts +21 -0
  324. package/files/attachment-types.d.ts.map +1 -0
  325. package/files/attachment-types.js +1 -1
  326. package/files/browser-download.d.ts +9 -0
  327. package/files/browser-download.d.ts.map +1 -0
  328. package/files/browser-download.js +23 -0
  329. package/files/create-files-api.d.ts +52 -0
  330. package/files/create-files-api.d.ts.map +1 -0
  331. package/files/create-files-api.js +1 -1
  332. package/files/create-upload-file-with-progress.d.ts +44 -0
  333. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  334. package/files/create-upload-file-with-progress.js +50 -34
  335. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  336. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  337. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  338. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  339. package/files/dial-file-manager-mapping.util.js +97 -69
  340. package/files/dial-file-manager-path.util.d.ts +48 -0
  341. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  342. package/files/dial-file-manager.model.d.ts +36 -0
  343. package/files/dial-file-manager.model.d.ts.map +1 -0
  344. package/files/dial-file-manager.types.d.ts +337 -0
  345. package/files/dial-file-manager.types.d.ts.map +1 -0
  346. package/files/dial-file-to-attachment.d.ts +26 -0
  347. package/files/dial-file-to-attachment.d.ts.map +1 -0
  348. package/files/dial-file-to-attachment.js +3 -3
  349. package/files/dial-file.d.ts +36 -0
  350. package/files/dial-file.d.ts.map +1 -0
  351. package/files/dial-file.js +20 -12
  352. package/files/dial-files-api.d.ts +71 -0
  353. package/files/dial-files-api.d.ts.map +1 -0
  354. package/files/download-destination.d.ts +31 -0
  355. package/files/download-destination.d.ts.map +1 -0
  356. package/files/download-progress.d.ts +33 -0
  357. package/files/download-progress.d.ts.map +1 -0
  358. package/files/download-progress.js +28 -0
  359. package/files/file-manager-variant.d.ts +3 -0
  360. package/files/file-manager-variant.d.ts.map +1 -0
  361. package/files/file-name.d.ts +19 -0
  362. package/files/file-name.d.ts.map +1 -0
  363. package/files/prepare-download-destination.d.ts +8 -0
  364. package/files/prepare-download-destination.d.ts.map +1 -0
  365. package/files/resolve-dial-file-api-path.d.ts +12 -0
  366. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  367. package/files/source-content.d.ts +28 -0
  368. package/files/source-content.d.ts.map +1 -0
  369. package/files/source-content.js +1 -1
  370. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  371. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  372. package/files/useDialFileListing/useDialFileListing.js +171 -183
  373. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  374. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  375. package/files/useDialFileManager/useDialFileManager.js +5 -2
  376. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  377. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  378. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  379. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  380. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  381. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  382. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  383. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  384. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  385. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  386. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  387. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  388. package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
  389. package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
  390. package/files/useDialFilePreview/useDialFilePreview.js +45 -0
  391. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  392. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  393. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  394. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  395. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
  396. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
  397. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
  398. package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
  399. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  400. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  401. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  402. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
  403. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
  404. package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
  405. package/index.d.ts +213 -6990
  406. package/index.d.ts.map +1 -0
  407. package/index.js +207 -146
  408. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  409. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  410. package/mcp-apps/mcp-apps-api-client.js +18 -17
  411. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  412. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  413. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +30 -0
  414. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  415. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
  416. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  417. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  418. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
  419. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  420. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  421. package/mcp-apps.d.ts +2 -256
  422. package/oauth/authorize-url.d.ts +16 -0
  423. package/oauth/authorize-url.d.ts.map +1 -0
  424. package/oauth/authorize-url.js +1 -1
  425. package/oauth/handshake.d.ts +30 -0
  426. package/oauth/handshake.d.ts.map +1 -0
  427. package/oauth/handshake.js +3 -10
  428. package/oauth/models.d.ts +81 -0
  429. package/oauth/models.d.ts.map +1 -0
  430. package/oauth/popup.d.ts +30 -0
  431. package/oauth/popup.d.ts.map +1 -0
  432. package/oauth/popup.js +19 -17
  433. package/oauth/toolset-id.d.ts +60 -0
  434. package/oauth/toolset-id.d.ts.map +1 -0
  435. package/oauth/toolset-id.js +9 -2
  436. package/oauth/types.d.ts +84 -0
  437. package/oauth/types.d.ts.map +1 -0
  438. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  439. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  440. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  441. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  442. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  443. package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
  444. package/oauth.d.ts +2 -472
  445. package/oauth.js +8 -8
  446. package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
  447. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  448. package/offline-credentials/map-offline-credentials-response.js +17 -0
  449. package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
  450. package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
  451. package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
  452. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  453. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  454. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  455. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
  456. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  457. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
  458. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  459. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  460. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  461. package/offline-credentials.d.ts +2 -0
  462. package/offline-credentials.js +7 -0
  463. package/package.json +49 -25
  464. package/project/project-events.d.ts +14 -0
  465. package/project/project-events.d.ts.map +1 -0
  466. package/project/project-events.js +25 -0
  467. package/project/project-form-errors.d.ts +23 -0
  468. package/project/project-form-errors.d.ts.map +1 -0
  469. package/project/project-form-errors.js +46 -0
  470. package/project/project-limits.d.ts +17 -0
  471. package/project/project-limits.d.ts.map +1 -0
  472. package/project/project-limits.js +11 -0
  473. package/project/project-mapping.d.ts +11 -0
  474. package/project/project-mapping.d.ts.map +1 -0
  475. package/project/project-mapping.js +36 -0
  476. package/project/project-refresh.d.ts +12 -0
  477. package/project/project-refresh.d.ts.map +1 -0
  478. package/project/project-refresh.js +6 -0
  479. package/project/project-watch-stream.d.ts +26 -0
  480. package/project/project-watch-stream.d.ts.map +1 -0
  481. package/project/project-watch-stream.js +39 -0
  482. package/project/projects-api-client.d.ts +170 -0
  483. package/project/projects-api-client.d.ts.map +1 -0
  484. package/project/projects-api-client.js +87 -0
  485. package/project/use-project-actions.d.ts +48 -0
  486. package/project/use-project-actions.d.ts.map +1 -0
  487. package/project/use-project-actions.js +89 -0
  488. package/project/use-project-conversations.d.ts +29 -0
  489. package/project/use-project-conversations.d.ts.map +1 -0
  490. package/project/use-project-conversations.js +182 -0
  491. package/project/use-project-submit.d.ts +49 -0
  492. package/project/use-project-submit.d.ts.map +1 -0
  493. package/project/use-project-submit.js +73 -0
  494. package/project/use-project-watch.d.ts +24 -0
  495. package/project/use-project-watch.d.ts.map +1 -0
  496. package/project/use-project-watch.js +41 -0
  497. package/project/use-project.d.ts +23 -0
  498. package/project/use-project.d.ts.map +1 -0
  499. package/project/use-project.js +73 -0
  500. package/project/use-projects.d.ts +27 -0
  501. package/project/use-projects.d.ts.map +1 -0
  502. package/project/use-projects.js +92 -0
  503. package/project.d.ts +2 -0
  504. package/project.js +13 -0
  505. package/prompt/export-prompt.d.ts +31 -0
  506. package/prompt/export-prompt.d.ts.map +1 -0
  507. package/prompt/prompt-resource.d.ts +30 -0
  508. package/prompt/prompt-resource.d.ts.map +1 -0
  509. package/prompt/prompt.d.ts +34 -0
  510. package/prompt/prompt.d.ts.map +1 -0
  511. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  512. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  513. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  514. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  515. package/scheduled-task/active-scheduled-task.js +18 -0
  516. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  517. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  518. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  519. package/scheduled-task/scheduled-task-description.d.ts +41 -0
  520. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  521. package/scheduled-task/scheduled-task-description.js +37 -28
  522. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  523. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  524. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  525. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  526. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  527. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  528. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  529. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  530. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  531. package/scheduled-task/scheduled-task-trigger.js +68 -38
  532. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  533. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  534. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  535. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  536. package/scheduled-task/use-scheduled-task-runs.js +67 -79
  537. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  538. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  539. package/scheduled-task/use-scheduled-tasks.js +1 -1
  540. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  541. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  542. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  543. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  544. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  545. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  546. package/scheduled-tasks.d.ts +2 -250
  547. package/scheduled-tasks.js +6 -1
  548. package/scroll-anchoring.d.ts +2 -50
  549. package/scroll-anchoring.js +1 -2
  550. package/shared/application-schema.d.ts +16 -0
  551. package/shared/application-schema.d.ts.map +1 -0
  552. package/shared/application-schema.js +3 -3
  553. package/shared/browser-timezone.d.ts +7 -0
  554. package/shared/browser-timezone.d.ts.map +1 -0
  555. package/shared/client-channel.d.ts +53 -0
  556. package/shared/client-channel.d.ts.map +1 -0
  557. package/shared/client-channel.js +6 -0
  558. package/shared/cron-day-of-month.d.ts +21 -0
  559. package/shared/cron-day-of-month.d.ts.map +1 -0
  560. package/shared/cron-day-of-month.js +10 -10
  561. package/shared/cron-weekday.d.ts +5 -0
  562. package/shared/cron-weekday.d.ts.map +1 -0
  563. package/shared/custom-apps.d.ts +7 -0
  564. package/shared/custom-apps.d.ts.map +1 -0
  565. package/shared/external-services.d.ts +16 -0
  566. package/shared/external-services.d.ts.map +1 -0
  567. package/shared/formatting.d.ts +5 -0
  568. package/shared/formatting.d.ts.map +1 -0
  569. package/shared/locale.d.ts +45 -0
  570. package/shared/locale.d.ts.map +1 -0
  571. package/shared/locale.js +2 -2
  572. package/shared/read-sse-events.d.ts +10 -0
  573. package/shared/read-sse-events.d.ts.map +1 -0
  574. package/shared/read-sse-events.js +33 -0
  575. package/shared/serialized-writer.d.ts +10 -0
  576. package/shared/serialized-writer.d.ts.map +1 -0
  577. package/shared/serialized-writer.js +35 -0
  578. package/shared/string-utils.d.ts +11 -0
  579. package/shared/string-utils.d.ts.map +1 -0
  580. package/shared/theme-colors.d.ts +16 -0
  581. package/shared/theme-colors.d.ts.map +1 -0
  582. package/shared/theme-colors.js +14 -0
  583. package/shared/toolset-login-events.d.ts +15 -0
  584. package/shared/toolset-login-events.d.ts.map +1 -0
  585. package/shared/usage-stat.d.ts +3 -0
  586. package/shared/usage-stat.d.ts.map +1 -0
  587. package/shared/usage-stat.js +4 -0
  588. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  589. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  590. package/shared/usePersistedState/usePersistedState.js +24 -0
  591. package/sharing.d.ts +2 -65
  592. package/skill/skill-archive.d.ts +7 -0
  593. package/skill/skill-archive.d.ts.map +1 -0
  594. package/skill/skill-file-batch-validation.d.ts +74 -0
  595. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  596. package/skill/skill-file-batch-validation.js +34 -33
  597. package/skill/skill-file-preview.d.ts +25 -0
  598. package/skill/skill-file-preview.d.ts.map +1 -0
  599. package/skill/skill-lookup.d.ts +20 -0
  600. package/skill/skill-lookup.d.ts.map +1 -0
  601. package/skill/skill-lookup.js +12 -0
  602. package/skill/skill-manifest.d.ts +28 -0
  603. package/skill/skill-manifest.d.ts.map +1 -0
  604. package/skill/skill-types.d.ts +46 -0
  605. package/skill/skill-types.d.ts.map +1 -0
  606. package/skill/skill-types.js +1 -1
  607. package/skill/skill.d.ts +160 -0
  608. package/skill/skill.d.ts.map +1 -0
  609. package/skill/skill.js +12 -15
  610. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  611. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  612. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  613. package/skill/useSkillEditorLoad.d.ts +74 -0
  614. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  615. package/skill/useSkillEditorSubmit.d.ts +127 -0
  616. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  617. package/skill/useSkillEditorSubmit.js +77 -79
  618. package/skill/useSkillFileActions.d.ts +62 -0
  619. package/skill/useSkillFileActions.d.ts.map +1 -0
  620. package/skill/useSkillFileActions.js +36 -21
  621. package/skill/useSkillFilePreview.d.ts +38 -0
  622. package/skill/useSkillFilePreview.d.ts.map +1 -0
  623. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  624. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  625. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  626. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  627. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  628. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  629. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  630. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  631. package/skill-editor.d.ts +2 -655
  632. package/skill-editor.js +3 -1
  633. package/skills-state.d.ts +2 -40
  634. package/skills-state.js +3 -2
  635. package/source-content.d.ts +2 -29
  636. package/source-content.js +1 -2
  637. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  638. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  639. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  640. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  641. package/usage/usage-banner-source.d.ts +24 -0
  642. package/usage/usage-banner-source.d.ts.map +1 -0
  643. package/usage/usage-banner-source.js +61 -0
  644. package/usage/usage-period.d.ts +7 -0
  645. package/usage/usage-period.d.ts.map +1 -0
  646. package/usage/usage-period.js +6 -0
  647. package/usage/usage-reset-time.d.ts +78 -0
  648. package/usage/usage-reset-time.d.ts.map +1 -0
  649. package/usage/usage-reset-time.js +82 -0
  650. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  651. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  652. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  653. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  654. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  655. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  656. package/usage/useUsageData/useUsageData.d.ts +28 -0
  657. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  658. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  659. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  660. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  661. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  662. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  663. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  664. package/usage-limits.d.ts +2 -0
  665. package/usage-limits.js +9 -0
  666. package/usage.d.ts +2 -125
  667. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
  668. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  669. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  670. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  671. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  672. package/usePageFileDrag/usePageFileDrag.js +3 -3
  673. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  674. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  675. package/useShareLink/useShareLink.d.ts +23 -0
  676. package/useShareLink/useShareLink.d.ts.map +1 -0
  677. package/useShareLink/useShareLink.js +1 -0
  678. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  679. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  680. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  681. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  682. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  683. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  684. package/utils.d.ts +2 -404
  685. package/utils.js +13 -9
  686. package/viewport-layout/canvas-width.d.ts +39 -0
  687. package/viewport-layout/canvas-width.d.ts.map +1 -0
  688. package/viewport-layout/canvas-width.js +23 -0
  689. package/viewport-layout.d.ts +2 -27
  690. package/viewport-layout.js +2 -1
package/catalog.js CHANGED
@@ -1,25 +1,30 @@
1
1
  import { createPublishApiClient as e, toPublishRuleDto as t } from "./catalog/create-publish-api.js";
2
2
  import { buildChatCompletionsUrl as n, buildDeploymentConnectApi as r, buildResponsesUrl as i } from "./catalog/deployment-endpoint-url.js";
3
- import { decodeDeploymentId as a, encodeDeploymentId as o, findDeploymentByIdOrReference as s, normalizeDeploymentId as c } from "./catalog/deployment-id.js";
4
- import { AuthenticationType as l } from "./catalog/entity-details.js";
5
- import { buildResetFields as u, mapDeploymentLimitsToInput as d } from "./catalog/map-deployment-limits-to-input.js";
6
- import { mapDeploymentLimitsDtoToCatalogLimits as f } from "./catalog/map-deployment-limits-to-catalog.js";
7
- import { DEFAULT_ENTITY_DETAILS_LABELS as p, mapDeploymentDetailsDtoToEntityDetails as m, mapEntityDetailsToCatalogDetails as h, mapToolsetCredentials as g } from "./catalog/map-entity-details-to-catalog.js";
8
- import { mapDeploymentToCatalogItem as _, mapDeploymentToolsetCredentials as v, mapToolsetToCatalogItem as y, resolveDeploymentFolder as b } from "./catalog/map-deployment-to-catalog-item.js";
9
- import { buildPromptOverview as x, isOrganisationPromptItem as S, mapPromptToCatalogItem as C } from "./catalog/map-prompt-to-catalog-item.js";
10
- import { PUBLIC_SKILL_BUCKET as w, SKILL_LISTING_MAX_PAGES as T, SKILL_LISTING_PAGE_SIZE as E, SKILL_MANIFEST_MAX_BYTES as D, SkillSource as O, parseSkillResourceUrl as k } from "./skill/skill-types.js";
11
- import { buildSkillContentTree as A, buildSkillOverview as j, mapSkillToCatalogItem as M, readSkillFileBytes as N, readSkillFilePreviewBytes as P, readSkillManifest as F, resolveSkillFileDownloadPath as I, resolveSkillManifestFileId as L } from "./catalog/map-skill-to-catalog-item.js";
12
- import { McpResourceKind as R, buildApplicationMcpUrl as z, buildConnectApi as B, buildToolsetMcpUrl as V, resolveMcpResourceKind as H } from "./catalog/mcp-endpoint-url.js";
13
- import { getPublicCatalogEntityFolderPath as U, isPublicCatalogEntityId as W, mapPublishConversationResultDto as G, mapPublishHistoryEntryDto as K, toPublishEntityType as q } from "./catalog/publish.js";
14
- import { deriveAvailableTabIds as J, deriveFavoriteItems as Y, filterCatalogItemsBySelector as X, filterHiddenOwnedItems as Z, reconcileFilterTopics as Q } from "./catalog/catalog-derivations.js";
15
- import { CatalogPrimaryActionType as $, resolveCatalogPrimaryAction as ee } from "./catalog/catalog-primary-action.js";
16
- import { useCatalogEditNavigation as te } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
17
- import { useSkillItemDetails as ne } from "./catalog/useSkillItemDetails.js";
18
- import { useCatalogItemDetails as re } from "./catalog/useCatalogItemDetails.js";
19
- import { useCatalogToolsetCredentials as ie } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
20
- import { useApplicationCredentials as ae } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
21
- import { useSkillDetailsPanelData as oe } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
22
- import { FavoriteEntityType as se, useFavoriteEntitiesState as ce } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
23
- import { usePublishFolders as le } from "./catalog/usePublishFolders/usePublishFolders.js";
24
- import { SkillPreviewErrorKind as ue, useSkillFilePreview as de } from "./skill/useSkillFilePreview.js";
25
- export { l as AuthenticationType, $ as CatalogPrimaryActionType, p as DEFAULT_ENTITY_DETAILS_LABELS, se as FavoriteEntityType, R as McpResourceKind, w as PUBLIC_SKILL_BUCKET, T as SKILL_LISTING_MAX_PAGES, E as SKILL_LISTING_PAGE_SIZE, D as SKILL_MANIFEST_MAX_BYTES, ue as SkillPreviewErrorKind, O as SkillSource, z as buildApplicationMcpUrl, n as buildChatCompletionsUrl, B as buildConnectApi, r as buildDeploymentConnectApi, x as buildPromptOverview, u as buildResetFields, i as buildResponsesUrl, A as buildSkillContentTree, j as buildSkillOverview, V as buildToolsetMcpUrl, e as createPublishApiClient, a as decodeDeploymentId, J as deriveAvailableTabIds, Y as deriveFavoriteItems, o as encodeDeploymentId, X as filterCatalogItemsBySelector, Z as filterHiddenOwnedItems, s as findDeploymentByIdOrReference, U as getPublicCatalogEntityFolderPath, S as isOrganisationPromptItem, W as isPublicCatalogEntityId, m as mapDeploymentDetailsDtoToEntityDetails, f as mapDeploymentLimitsDtoToCatalogLimits, d as mapDeploymentLimitsToInput, _ as mapDeploymentToCatalogItem, v as mapDeploymentToolsetCredentials, h as mapEntityDetailsToCatalogDetails, C as mapPromptToCatalogItem, G as mapPublishConversationResultDto, K as mapPublishHistoryEntryDto, M as mapSkillToCatalogItem, g as mapToolsetCredentials, y as mapToolsetToCatalogItem, c as normalizeDeploymentId, k as parseSkillResourceUrl, N as readSkillFileBytes, P as readSkillFilePreviewBytes, F as readSkillManifest, Q as reconcileFilterTopics, ee as resolveCatalogPrimaryAction, b as resolveDeploymentFolder, H as resolveMcpResourceKind, I as resolveSkillFileDownloadPath, L as resolveSkillManifestFileId, q as toPublishEntityType, t as toPublishRuleDto, ae as useApplicationCredentials, te as useCatalogEditNavigation, re as useCatalogItemDetails, ie as useCatalogToolsetCredentials, ce as useFavoriteEntitiesState, le as usePublishFolders, oe as useSkillDetailsPanelData, de as useSkillFilePreview, ne as useSkillItemDetails };
3
+ import { createDeploymentLookup as a, decodeDeploymentId as o, encodeDeploymentId as s, findDeploymentByIdOrReference as c, normalizeDeploymentId as l } from "./catalog/deployment-id.js";
4
+ import { AuthenticationType as u } from "./catalog/entity-details.js";
5
+ import { buildResetFields as d, mapDeploymentLimitsToInput as f } from "./catalog/map-deployment-limits-to-input.js";
6
+ import { mapDeploymentLimitsDtoToCatalogLimits as p } from "./catalog/map-deployment-limits-to-catalog.js";
7
+ import { DEFAULT_ENTITY_DETAILS_LABELS as m, mapDeploymentDetailsDtoToEntityDetails as h, mapEntityDetailsToCatalogDetails as g, mapToolsetCredentials as _ } from "./catalog/map-entity-details-to-catalog.js";
8
+ import { mapDeploymentToCatalogItem as v, mapDeploymentToolsetCredentials as y, mapToolsetToCatalogItem as b, resolveDeploymentFolder as x, supportsChatInterface as S } from "./catalog/map-deployment-to-catalog-item.js";
9
+ import { buildPromptOverview as C, isOrganisationPromptItem as w, mapPromptToCatalogItem as T } from "./catalog/map-prompt-to-catalog-item.js";
10
+ import { PUBLIC_SKILL_BUCKET as E, SKILL_LISTING_MAX_PAGES as D, SKILL_LISTING_PAGE_SIZE as O, SKILL_MANIFEST_MAX_BYTES as k, SkillSource as A, parseSkillResourceUrl as j } from "./skill/skill-types.js";
11
+ import { buildSkillContentTree as M, buildSkillOverview as N, mapSkillToCatalogItem as P, readSkillFileBytes as F, readSkillFilePreviewBytes as I, readSkillManifest as L, resolveSkillFileDownloadPath as R, resolveSkillManifestFileId as z } from "./catalog/map-skill-to-catalog-item.js";
12
+ import { McpResourceKind as B, buildApplicationMcpUrl as V, buildConnectApi as H, buildToolsetMcpUrl as U, resolveMcpResourceKind as W } from "./catalog/mcp-endpoint-url.js";
13
+ import { getPublicCatalogEntityFolderPath as G, isPublicCatalogEntityId as K, mapPublishConversationResultDto as q, mapPublishHistoryEntryDto as J, toPublishEntityType as Y } from "./catalog/publish.js";
14
+ import { canEditShareAccess as X, deriveAvailableTabIds as Z, deriveFavoriteItems as Q, filterCatalogItemsBySelector as $, filterHiddenOwnedItems as ee, reconcileFilterTopics as te } from "./catalog/catalog-derivations.js";
15
+ import { CatalogEntityKind as ne, findSchemaDisplayName as re, resolveCatalogEntityKind as ie } from "./catalog/catalog-entity-kind.js";
16
+ import { FavoriteEntityType as ae, useFavoriteEntitiesState as oe } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
17
+ import { resolveFavoriteEntityType as se } from "./catalog/favorite-entity-type.js";
18
+ import { parseCatalogFilterTopics as ce, resolveCatalogActiveTab as le, resolveCatalogSortKey as ue } from "./catalog/catalog-preferences.js";
19
+ import { findWorstCappedRow as de } from "./catalog/usage-limit-rows.js";
20
+ import { CatalogPrimaryActionType as fe, resolveCatalogPrimaryAction as pe } from "./catalog/catalog-primary-action.js";
21
+ import { useCatalogEditNavigation as me } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
22
+ import { useSkillItemDetails as he } from "./catalog/useSkillItemDetails.js";
23
+ import { useCatalogItemDetails as ge } from "./catalog/useCatalogItemDetails.js";
24
+ import { useCatalogToolsetCredentials as _e } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
25
+ import { buildApplicationCredentialLoginParams as ve, mapApplicationCredentials as ye } from "./catalog/application-credentials.js";
26
+ import { useApplicationCredentials as be } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
27
+ import { useSkillDetailsPanelData as xe } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
28
+ import { usePublishFolders as Se } from "./catalog/usePublishFolders/usePublishFolders.js";
29
+ import { SkillPreviewErrorKind as Ce, useSkillFilePreview as we } from "./skill/useSkillFilePreview.js";
30
+ export { u as AuthenticationType, ne as CatalogEntityKind, fe as CatalogPrimaryActionType, m as DEFAULT_ENTITY_DETAILS_LABELS, ae as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, Ce as SkillPreviewErrorKind, A as SkillSource, ve as buildApplicationCredentialLoginParams, V as buildApplicationMcpUrl, n as buildChatCompletionsUrl, H as buildConnectApi, r as buildDeploymentConnectApi, C as buildPromptOverview, d as buildResetFields, i as buildResponsesUrl, M as buildSkillContentTree, N as buildSkillOverview, U as buildToolsetMcpUrl, X as canEditShareAccess, a as createDeploymentLookup, e as createPublishApiClient, o as decodeDeploymentId, Z as deriveAvailableTabIds, Q as deriveFavoriteItems, s as encodeDeploymentId, $ as filterCatalogItemsBySelector, ee as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, re as findSchemaDisplayName, de as findWorstCappedRow, G as getPublicCatalogEntityFolderPath, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, ye as mapApplicationCredentials, h as mapDeploymentDetailsDtoToEntityDetails, p as mapDeploymentLimitsDtoToCatalogLimits, f as mapDeploymentLimitsToInput, v as mapDeploymentToCatalogItem, y as mapDeploymentToolsetCredentials, g as mapEntityDetailsToCatalogDetails, T as mapPromptToCatalogItem, q as mapPublishConversationResultDto, J as mapPublishHistoryEntryDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, ce as parseCatalogFilterTopics, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, te as reconcileFilterTopics, le as resolveCatalogActiveTab, ie as resolveCatalogEntityKind, pe as resolveCatalogPrimaryAction, ue as resolveCatalogSortKey, x as resolveDeploymentFolder, se as resolveFavoriteEntityType, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, S as supportsChatInterface, Y as toPublishEntityType, t as toPublishRuleDto, be as useApplicationCredentials, me as useCatalogEditNavigation, ge as useCatalogItemDetails, _e as useCatalogToolsetCredentials, oe as useFavoriteEntitiesState, Se as usePublishFolders, xe as useSkillDetailsPanelData, we as useSkillFilePreview, he as useSkillItemDetails };
@@ -0,0 +1,61 @@
1
+ /** A link rendered as the call to action of an announcements-popover entry. */
2
+ export interface AnnouncementListItemLink {
3
+ /** Visible text of the call to action. */
4
+ label: string;
5
+ /** Absolute `http`/`https` target the call to action opens. */
6
+ href: string;
7
+ }
8
+ /** One entry of the announcements popover behind the banner's `+N` pill. */
9
+ export interface AnnouncementListItem {
10
+ /** Plain-text heading of the entry. */
11
+ title: string;
12
+ /** Supporting copy of the entry, sanitized before it is rendered. */
13
+ description?: string | null;
14
+ /** Optional call to action shown at the end of the entry. */
15
+ link?: AnnouncementListItemLink | null;
16
+ }
17
+ /** Structured announcement banner content. */
18
+ export interface AnnouncementContent {
19
+ title: string | null;
20
+ description: string | null;
21
+ html: string | null;
22
+ /** Entries of the popover the banner opens. */
23
+ items?: readonly AnnouncementListItem[];
24
+ }
25
+ /** Sanitizes announcement HTML to the allowed inline tag/attribute set. */
26
+ export declare const sanitizeAnnouncementHtml: (html: string) => string;
27
+ /**
28
+ * Sanitizes the legacy `ANNOUNCEMENT_HTML_MESSAGE` banner, which permits the
29
+ * block-level markup the inline pass strips. See
30
+ * `ANNOUNCEMENT_MESSAGE_SANITIZE_OPTIONS` for why the two lists differ.
31
+ */
32
+ export declare const sanitizeAnnouncementMessageHtml: (html: string) => string;
33
+ /**
34
+ * Whether the operator configured the structured banner (title and/or
35
+ * description) rather than only the legacy HTML message. Drives which of the
36
+ * two banner layouts renders.
37
+ */
38
+ export declare const hasStructuredAnnouncement: ({ title, description, }: AnnouncementContent) => boolean;
39
+ /** True when the announcement has any renderable content (structured or legacy HTML). */
40
+ export declare const hasAnnouncementContent: (content: AnnouncementContent) => boolean;
41
+ /**
42
+ * Builds the value persisted under `StorageKey.TextOfClosedAnnouncement` when
43
+ * the user dismisses the banner. Dismissal is content-keyed: the banner stays
44
+ * hidden only while the current announcement produces the same signature, so
45
+ * editing any part of it brings the banner back with no version counter.
46
+ *
47
+ * Every piece of content the banner surface renders feeds the signature — the
48
+ * title, the description, and the popover entries behind the pill, which live
49
+ * inside the banner and are hidden along with it. Publishing a new entry in
50
+ * that list therefore invalidates an earlier dismissal on its own, even when
51
+ * the banner line itself is untouched.
52
+ *
53
+ * A legacy-only announcement returns the raw HTML string — byte-identical to
54
+ * what shipped before the structured fields existed — so dismissals recorded
55
+ * by older builds keep working without a storage migration. `items` is left
56
+ * out of the payload entirely when the list is empty for the same reason: a
57
+ * deployment that never configured the popover keeps matching the signatures
58
+ * its users already have stored.
59
+ */
60
+ export declare const buildAnnouncementSignature: (content: AnnouncementContent) => string;
61
+ //# sourceMappingURL=announcement-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"announcement-message.d.ts","sourceRoot":"","sources":["../../src/conversation/announcement-message.ts"],"names":[],"mappings":"AA+BA,+EAA+E;AAC/E,MAAM,WAAW,wBAAwB;IACvC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;CACxC;AAED,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACzC;AAQD,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACgB,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,MAAM,MAAM,KAAG,MACY,CAAC;AAK5E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,yBAGvC,mBAAmB,KAAG,OACqB,CAAC;AAE/C,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,GAAI,SAAS,mBAAmB,KAAG,OACN,CAAC;AA2BjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,mBAAmB,KAC3B,MAgBF,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { ConversationDraftStore, MemoryConversationDraftStoreOptions, WebStorageConversationDraftStoreOptions } from './conversation-draft';
2
+ /**
3
+ * Creates a `ConversationDraftStore` over a host-chosen Web `Storage`.
4
+ *
5
+ * Every host-specific fact — which storage, which key (including any user
6
+ * scope), how ids are canonicalised — arrives through `options`. The store owns
7
+ * only the versioned JSON format of its own data
8
+ * (`{ version: 1, drafts: { [id]: ConversationDraft } }`), the `maxEntries`
9
+ * cap with oldest-first eviction, a half-eviction retry when the quota is
10
+ * exceeded, and silent failure: an absent or throwing storage behaves as an
11
+ * empty store that ignores writes.
12
+ */
13
+ export declare const createWebStorageConversationDraftStore: ({ getStorage, storageKey, maxEntries, normalizeId, }: WebStorageConversationDraftStoreOptions) => ConversationDraftStore;
14
+ /**
15
+ * Creates a `ConversationDraftStore` that keeps drafts in memory for the
16
+ * lifetime of the returned instance. Same semantics as the Web Storage store
17
+ * (`maxEntries`, `normalizeId`, empty-draft removal); suited to hosts that want
18
+ * drafts only for the page lifetime, and to tests.
19
+ */
20
+ export declare const createMemoryConversationDraftStore: ({ maxEntries, normalizeId, }?: MemoryConversationDraftStoreOptions) => ConversationDraftStore;
21
+ //# sourceMappingURL=conversation-draft-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-draft-store.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-draft/conversation-draft-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EACtB,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAqE9B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sCAAsC,GAAI,sDAKpD,uCAAuC,KAAG,sBA0E5C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,GAAI,+BAGhD,mCAAwC,KAAG,sBAwB7C,CAAC"}
@@ -0,0 +1,84 @@
1
+ //#region src/conversation/conversation-draft/conversation-draft-store.ts
2
+ var e = (e) => e, t = (e) => e.text.trim() === "" && e.skills.length === 0, n = (e) => {
3
+ if (typeof e != "object" || !e) return !1;
4
+ let t = e;
5
+ return typeof t.text == "string" && Array.isArray(t.skills) && typeof t.updatedAt == "number";
6
+ }, r = (e, t) => Object.hasOwn(e, t) ? e[t] : void 0, i = (e) => Object.keys(e).sort((t, n) => e[t].updatedAt - e[n].updatedAt), a = (e, t) => {
7
+ let n = i(e), r = n.length - Math.max(t, 0);
8
+ if (r <= 0) return e;
9
+ let a = { ...e };
10
+ return n.slice(0, r).forEach((e) => delete a[e]), a;
11
+ }, o = (e, n, r, i) => {
12
+ let o = { ...e };
13
+ return t(r) ? (delete o[n], o) : (o[n] = r, a(o, i));
14
+ }, s = (e) => e instanceof DOMException && (e.name === "QuotaExceededError" || e.name === "NS_ERROR_DOM_QUOTA_REACHED"), c = ({ getStorage: t, storageKey: c, maxEntries: l = 50, normalizeId: u = e }) => {
15
+ let d = () => {
16
+ try {
17
+ return t();
18
+ } catch {
19
+ return;
20
+ }
21
+ }, f = () => {
22
+ try {
23
+ let e = d()?.getItem(c);
24
+ if (!e) return {};
25
+ let t = JSON.parse(e);
26
+ return t == null || t.version !== 1 || t.drafts == null || typeof t.drafts != "object" ? {} : Object.fromEntries(Object.entries(t.drafts).filter(([, e]) => n(e)));
27
+ } catch {
28
+ return {};
29
+ }
30
+ }, p = (e, t) => {
31
+ if (Object.keys(t).length === 0) {
32
+ e.removeItem(c);
33
+ return;
34
+ }
35
+ let n = {
36
+ version: 1,
37
+ drafts: t
38
+ };
39
+ e.setItem(c, JSON.stringify(n));
40
+ }, m = (e) => {
41
+ let t = d();
42
+ if (t) try {
43
+ p(t, e);
44
+ } catch (n) {
45
+ if (!s(n)) return;
46
+ try {
47
+ let n = i(e);
48
+ p(t, a(e, Math.floor(n.length / 2)));
49
+ } catch {}
50
+ }
51
+ };
52
+ return {
53
+ read: (e) => r(f(), u(e)),
54
+ write: (e, t) => m(o(f(), u(e), t, l)),
55
+ remove: (e) => {
56
+ let t = f(), n = u(e);
57
+ Object.hasOwn(t, n) && (delete t[n], m(t));
58
+ },
59
+ clear: () => {
60
+ try {
61
+ d()?.removeItem(c);
62
+ } catch {}
63
+ }
64
+ };
65
+ }, l = ({ maxEntries: t = 50, normalizeId: n = e } = {}) => {
66
+ let i = {};
67
+ return {
68
+ read: (e) => r(i, n(e)),
69
+ write: (e, r) => {
70
+ i = o(i, n(e), r, t);
71
+ },
72
+ remove: (e) => {
73
+ let t = n(e);
74
+ if (!Object.hasOwn(i, t)) return;
75
+ let r = { ...i };
76
+ delete r[t], i = r;
77
+ },
78
+ clear: () => {
79
+ i = {};
80
+ }
81
+ };
82
+ };
83
+ //#endregion
84
+ export { l as createMemoryConversationDraftStore, c as createWebStorageConversationDraftStore };
@@ -0,0 +1,48 @@
1
+ import { RequestSkill } from '@epam/ai-dial-chat-shared';
2
+ /** An unsent composer draft kept for one conversation. */
3
+ export interface ConversationDraft {
4
+ /** The composer text as the user left it. */
5
+ text: string;
6
+ /** Skills mentioned in the draft, in the same shape a sent message carries. */
7
+ skills: RequestSkill[];
8
+ /** Epoch milliseconds of the last change; the oldest entry is evicted first. */
9
+ updatedAt: number;
10
+ }
11
+ /**
12
+ * Synchronous, never-throwing persistence contract for conversation drafts.
13
+ *
14
+ * The host creates and owns the instance: it decides the storage medium, the
15
+ * key, the user scope and how conversation ids are canonicalised. A host with
16
+ * async persistence wraps it behind a synchronous in-memory cache, because the
17
+ * restore runs before the user can type and the flush on unmount must finish
18
+ * synchronously.
19
+ */
20
+ export interface ConversationDraftStore {
21
+ /** Returns the stored draft for `conversationId`, or `undefined` when there is none. */
22
+ read: (conversationId: string) => ConversationDraft | undefined;
23
+ /** Stores `draft` for `conversationId`; an empty draft removes the entry instead. */
24
+ write: (conversationId: string, draft: ConversationDraft) => void;
25
+ /** Removes the draft for `conversationId`. */
26
+ remove: (conversationId: string) => void;
27
+ /** Removes every draft the store holds. */
28
+ clear: () => void;
29
+ }
30
+ /** Options shared by both store factories. */
31
+ export interface MemoryConversationDraftStoreOptions {
32
+ /** Maximum number of drafts kept; the oldest-`updatedAt` entry is evicted beyond it. Defaults to `50`. */
33
+ maxEntries?: number;
34
+ /** Canonicalises a conversation id before it is used as an entry key. Defaults to identity. */
35
+ normalizeId?: (conversationId: string) => string;
36
+ }
37
+ /** Options for `createWebStorageConversationDraftStore`. */
38
+ export interface WebStorageConversationDraftStoreOptions extends MemoryConversationDraftStoreOptions {
39
+ /**
40
+ * Returns the `Storage` to use, or `undefined` when none is available. It is
41
+ * a getter so an absent or throwing storage accessor (SSR, tests, blocked
42
+ * site data) is handled inside the store's guard.
43
+ */
44
+ getStorage: () => Storage | undefined;
45
+ /** The single key all drafts are written under, including any user scope the host needs. */
46
+ storageKey: string;
47
+ }
48
+ //# sourceMappingURL=conversation-draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-draft.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-draft/conversation-draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,wFAAwF;IACxF,IAAI,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAC;IAChE,qFAAqF;IACrF,KAAK,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClE,8CAA8C;IAC9C,MAAM,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,8CAA8C;AAC9C,MAAM,WAAW,mCAAmC;IAClD,0GAA0G;IAC1G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+FAA+F;IAC/F,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,4DAA4D;AAC5D,MAAM,WAAW,uCAAwC,SAAQ,mCAAmC;IAClG;;;;OAIG;IACH,UAAU,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;IACtC,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,6 @@
1
+ import { ConversationDeletionResultDto } from '@epam/ai-dial-chat-api-client';
2
+ /** Returns `true` when a delete-all request removed nothing: some conversations failed and none was deleted or already gone. */
3
+ export declare const isTotalDeletionFailure: (result: Pick<ConversationDeletionResultDto, "failed" | "deleted" | "alreadyAbsent">) => boolean;
4
+ /** Returns the pin state a dragged conversation takes in its target group: `true` to pin, `false` to unpin, `undefined` to leave it. */
5
+ export declare const resolveConversationPinChange: (targetGroupKey: string, isPinned: boolean | undefined) => boolean | undefined;
6
+ //# sourceMappingURL=conversation-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-list.d.ts","sourceRoot":"","sources":["../../src/conversation/conversation-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAGnF,gIAAgI;AAChI,eAAO,MAAM,sBAAsB,GACjC,QAAQ,IAAI,CACV,6BAA6B,EAC7B,QAAQ,GAAG,SAAS,GAAG,eAAe,CACvC,KACA,OAGyB,CAAC;AAE7B,wIAAwI;AACxI,eAAO,MAAM,4BAA4B,GACvC,gBAAgB,MAAM,EACtB,UAAU,OAAO,GAAG,SAAS,KAC5B,OAAO,GAAG,SAIZ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FilterTab as e } from "@epam/ai-dial-chat-shared";
2
+ //#region src/conversation/conversation-list.ts
3
+ var t = (e) => e.failed.length > 0 && e.deleted === 0 && e.alreadyAbsent === 0, n = (t, n) => t === e.Pinned || !n && void 0;
4
+ //#endregion
5
+ export { t as isTotalDeletionFailure, n as resolveConversationPinChange };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Runs `worker` over `items` with at most `limit` concurrent invocations.
3
+ * Preserves no particular result order beyond "worker completed"; a worker
4
+ * that returns `undefined`, or throws, contributes nothing to the result
5
+ * array (used to skip failed/invalid items without aborting the whole
6
+ * batch) — a throwing worker is caught here so the other concurrent items
7
+ * keep being tracked instead of continuing unobserved in the background.
8
+ */
9
+ export declare const runWithConcurrency: <T, R>(items: T[], limit: number, worker: (item: T) => Promise<R | undefined>) => Promise<R[]>;
10
+ //# sourceMappingURL=async.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/async.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAU,CAAC,EAAE,CAAC,EAC3C,OAAO,CAAC,EAAE,EACV,OAAO,MAAM,EACb,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,KAC1C,OAAO,CAAC,CAAC,EAAE,CAqBb,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { Annotation, Conversation } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * The reference fields shared by every attachment shape a conversation can
4
+ * carry — `MessageAttachment` on a message or a stage, and
5
+ * `AttachmentResource` on a citation's source.
6
+ */
7
+ export interface AttachmentReference {
8
+ /** DIAL file id (`files/{bucket}/{path}`), optionally with a trailing `#…` anchor. */
9
+ url?: string;
10
+ /** Alternate reference resource, same shape as `url`. */
11
+ reference_url?: string;
12
+ /** Display name shown in the UI. */
13
+ title?: string;
14
+ }
15
+ /**
16
+ * Splits a DIAL file reference into the resource id and its trailing `#…`
17
+ * anchor (e.g. the `#page=3` a PDF citation carries). An anchor outside
18
+ * {@link SAFE_ANCHOR_PATTERN} is reported as absent; the file id is returned
19
+ * either way, so the attachment itself is still transferred.
20
+ *
21
+ * The anchor is display metadata, not part of the stored resource path: the
22
+ * download endpoint 404s on it, so it has to be stripped before a reference
23
+ * is resolved to `{bucket, path}` — and restored afterwards, so an imported
24
+ * citation still opens the page it cited.
25
+ */
26
+ export declare const splitFileIdAnchor: (url: string) => {
27
+ fileId: string;
28
+ anchor: string;
29
+ };
30
+ /**
31
+ * Applies `mapAnnotation` to every readable entry of the citation pool,
32
+ * keeping unreadable entries and every other `customViewState` key as they
33
+ * are. Returns `conversation` itself when no entry changed, so a caller can
34
+ * tell by identity that the pool needed no work.
35
+ */
36
+ export declare const mapAnnotationPool: (conversation: Conversation, mapAnnotation: (annotation: Annotation) => Annotation) => Conversation;
37
+ /** A unique DIAL file reference found in a conversation's messages. */
38
+ export interface AttachmentRef {
39
+ fileId: string;
40
+ }
41
+ /**
42
+ * Collects unique attachment references across all messages — message
43
+ * attachments, stage attachments, and citation source documents — and the
44
+ * conversation-level citation pool, with any
45
+ * `#…` anchor stripped. The same file can be referenced more than once (by a
46
+ * later turn, by a stage and the message it belongs to, or by several
47
+ * citations), so dedupe by file id and process it only once.
48
+ */
49
+ export declare const collectAttachmentRefs: (conversation: Conversation) => AttachmentRef[];
50
+ //# sourceMappingURL=attachment-refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-refs.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/attachment-refs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK1E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAeD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,MAAM,KACV;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CASlC,CAAC;AAqBF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,YAAY,EAC1B,eAAe,CAAC,UAAU,EAAE,UAAU,KAAK,UAAU,KACpD,YAgBF,CAAC;AAEF,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAgDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,cAAc,YAAY,KACzB,aAAa,EAef,CAAC"}
@@ -10,7 +10,25 @@ var e = (e) => e.startsWith("files/"), t = /^#[\w.=%-]*$/, n = (e) => {
10
10
  fileId: e.slice(0, n),
11
11
  anchor: t.test(r) ? r : ""
12
12
  };
13
- }, r = (e, t) => {
13
+ }, r = (e) => typeof e == "object" && !!e, i = (e) => {
14
+ let t = e.customViewState?.annotations;
15
+ return Array.isArray(t) ? t.filter(r) : [];
16
+ }, a = (e, t) => {
17
+ let n = e.customViewState, i = n?.annotations;
18
+ if (!Array.isArray(i)) return e;
19
+ let a = !1, o = i.map((e) => {
20
+ if (!r(e)) return e;
21
+ let n = t(e);
22
+ return n !== e && (a = !0), n;
23
+ });
24
+ return a ? {
25
+ ...e,
26
+ customViewState: {
27
+ ...n,
28
+ annotations: o
29
+ }
30
+ } : e;
31
+ }, o = (e, t) => {
14
32
  for (let n of e.messages) {
15
33
  let e = n.custom_content;
16
34
  if (e) {
@@ -22,15 +40,19 @@ var e = (e) => e.startsWith("files/"), t = /^#[\w.=%-]*$/, n = (e) => {
22
40
  }
23
41
  }
24
42
  }
25
- }, i = (t) => {
26
- let i = /* @__PURE__ */ new Set(), a = (t) => {
43
+ for (let n of i(e)) {
44
+ let e = n.body?.source?.attachment;
45
+ e && t(e);
46
+ }
47
+ }, s = (t) => {
48
+ let r = /* @__PURE__ */ new Set(), i = (t) => {
27
49
  if (t == null) return;
28
- let { fileId: r } = n(t);
29
- e(r) && i.add(r);
50
+ let { fileId: i } = n(t);
51
+ e(i) && r.add(i);
30
52
  };
31
- return r(t, (e) => {
32
- a(e.url), a(e.reference_url);
33
- }), Array.from(i, (e) => ({ fileId: e }));
53
+ return o(t, (e) => {
54
+ i(e.url), i(e.reference_url);
55
+ }), Array.from(r, (e) => ({ fileId: e }));
34
56
  };
35
57
  //#endregion
36
- export { i as collectAttachmentRefs, n as splitFileIdAnchor };
58
+ export { s as collectAttachmentRefs, a as mapAnnotationPool, n as splitFileIdAnchor };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Builds the `uploads/<YYYY-MM>/<safe-name>` upload path for a file.
3
+ * `date` defaults to now (regular attachment upload); conversation import
4
+ * passes a date fixed for the whole job so all its attachments land in the
5
+ * same month folder. Does not de-duplicate: a name collision is left for the
6
+ * upload call to reject (`create-only` mode) — use `createUploadPathAllocator`
7
+ * when collisions must be resolved with a ` (n)` suffix instead.
8
+ */
9
+ export declare const buildUploadPath: (fileName: string, date?: Date) => string;
10
+ /** A file name the allocator has handed out, in the forms the caller needs. */
11
+ export interface AllocatedUploadPath {
12
+ /** Bucket-relative, percent-encoded upload path, e.g. `uploads/2026-08/report%20(1).pdf`. */
13
+ path: string;
14
+ /** Decoded name actually reserved, e.g. `report (1).pdf` — pass this as the uploaded `File`'s name. */
15
+ fileName: string;
16
+ /** Whether a ` (n)` suffix had to be appended because the requested name was taken. */
17
+ isRenamed: boolean;
18
+ }
19
+ /** Stateful allocator that hands out collision-free upload paths inside one month folder. */
20
+ export interface UploadPathAllocator {
21
+ /** Reserves the next free name derived from `fileName` and returns its upload path. */
22
+ allocate: (fileName: string) => AllocatedUploadPath;
23
+ /** Records `fileName` as taken — used when the server rejects a name the registry believed free. */
24
+ markTaken: (fileName: string) => void;
25
+ /** Returns a previously allocated `fileName` to the free pool — used when its upload failed for a reason other than a collision. */
26
+ release: (fileName: string) => void;
27
+ }
28
+ /**
29
+ * Creates an allocator that assigns ` (1)`, ` (2)`, … suffixes to repeated or
30
+ * pre-existing file names so every allocation lands on a distinct path inside
31
+ * one `uploads/<YYYY-MM>/` folder. Mutation is deliberately confined to the
32
+ * private `Set` closed over here — an explicit, contained exception to the
33
+ * immutable-by-default rule, needed because collision-free naming is
34
+ * inherently a sequential, stateful decision.
35
+ */
36
+ export declare const createUploadPathAllocator: (params?: {
37
+ /** Month folder to allocate into. Defaults to now. */
38
+ date?: Date;
39
+ /** Decoded names already present in the destination folder, e.g. from `listFiles`. */
40
+ existingNames?: Iterable<string>;
41
+ }) => UploadPathAllocator;
42
+ //# sourceMappingURL=build-upload-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-upload-path.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/build-upload-path.ts"],"names":[],"mappings":"AAmBA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,MAAM,EAChB,OAAM,IAAiB,KACtB,MAIF,CAAC;AAUF,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IAClC,6FAA6F;IAC7F,IAAI,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,QAAQ,EAAE,MAAM,CAAC;IACjB,uFAAuF;IACvF,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,6FAA6F;AAC7F,MAAM,WAAW,mBAAmB;IAClC,uFAAuF;IACvF,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,mBAAmB,CAAC;IACpD,oGAAoG;IACpG,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,oIAAoI;IACpI,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS;IACjD,sDAAsD;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sFAAsF;IACtF,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAClC,KAAG,mBAgCH,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Formats a `Date` as `YYYY-MM-DD` using its local-time components. */
2
+ export declare const formatDateYMD: (date: Date) => string;
3
+ /** Formats a `Date` as `YYYY-MM` using its local-time components. */
4
+ export declare const formatDateYM: (date: Date) => string;
5
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/date.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,aAAa,GAAI,MAAM,IAAI,KAAG,MAK1C,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI,KAAG,MAIzC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Extracts the bucket and decoded relative path from a DIAL file ID
3
+ * (`files/{bucket}/{path}`). Returns `undefined` if the input does not start
4
+ * with `files/` or has no path segment after the bucket.
5
+ */
6
+ export declare const resolveDialFileBucketAndPath: (fileId: string) => {
7
+ bucket: string;
8
+ path: string;
9
+ } | undefined;
10
+ //# sourceMappingURL=dial-file-resolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial-file-resolve.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/dial-file-resolve.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,KACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAcrC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Conversation, ExportFolder, ExportFormat } from '@epam/ai-dial-chat-shared';
2
+ import { ExportFileNameKind } from './types';
3
+ /** Placeholder app name used in every export file name — this branch has no app display-name config yet. */
4
+ export declare const EXPORT_APP_NAME = "ai_dial";
5
+ /**
6
+ * Returns the conversation with every message-, stage- and citation-level
7
+ * attachment reference removed, including the source documents of the
8
+ * conversation-level citation pool.
9
+ */
10
+ export declare const stripConversationAttachments: (conversation: Conversation) => Conversation;
11
+ export declare const buildExportEnvelope: (conversations: Conversation[], folders?: ExportFolder[]) => ExportFormat;
12
+ export declare const serializeExportEnvelope: (envelope: ExportFormat) => Blob;
13
+ export declare const buildExportFileName: (kind: ExportFileNameKind, appName: string, date?: Date) => string;
14
+ //# sourceMappingURL=export-conversation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-conversation.d.ts","sourceRoot":"","sources":["../../../src/conversation/conversation-transfer/export-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,YAAY,EACZ,YAAY,EAGb,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,4GAA4G;AAC5G,eAAO,MAAM,eAAe,YAAY,CAAC;AA8CzC;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GACvC,cAAc,YAAY,KACzB,YAOA,CAAC;AAEJ,eAAO,MAAM,mBAAmB,GAC9B,eAAe,YAAY,EAAE,EAC7B,UAAS,YAAY,EAAO,KAC3B,YAID,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,YAAY,KAAG,IACY,CAAC;AAQ9E,eAAO,MAAM,mBAAmB,GAC9B,MAAM,kBAAkB,EACxB,SAAS,MAAM,EACf,OAAM,IAAiB,KACtB,MACyE,CAAC"}
@@ -1,22 +1,23 @@
1
- import { formatDateYMD as e } from "./date.js";
2
- import { ExportFileNameKind as t } from "./types.js";
1
+ import { mapAnnotationPool as e } from "./attachment-refs.js";
2
+ import { formatDateYMD as t } from "./date.js";
3
+ import { ExportFileNameKind as n } from "./types.js";
3
4
  //#region src/conversation/conversation-transfer/export-conversation.ts
4
- var n = "ai_dial", r = (e) => e.map(({ attachments: e, ...t }) => t), i = (e) => e.map((e) => {
5
+ var r = "ai_dial", i = (e) => e.map(({ attachments: e, ...t }) => t), a = (e) => {
5
6
  if (e.body?.source == null) return e;
6
7
  let { source: t, ...n } = e.body;
7
8
  return {
8
9
  ...e,
9
10
  body: n
10
11
  };
11
- }), a = (e) => {
12
+ }, o = (e) => e.map(a), s = (e) => {
12
13
  let t = e.custom_content;
13
14
  if (!t) return e;
14
- let { attachments: n, stages: a, annotations: o, ...s } = t;
15
- if (n == null && a == null && o == null) return e;
15
+ let { attachments: n, stages: r, annotations: a, ...s } = t;
16
+ if (n == null && r == null && a == null) return e;
16
17
  let c = {
17
18
  ...s,
18
- ...a ? { stages: r(a) } : {},
19
- ...o ? { annotations: i(o) } : {}
19
+ ...r ? { stages: i(r) } : {},
20
+ ...a ? { annotations: o(a) } : {}
20
21
  };
21
22
  if (Object.keys(c).length > 0) return {
22
23
  ...e,
@@ -24,17 +25,17 @@ var n = "ai_dial", r = (e) => e.map(({ attachments: e, ...t }) => t), i = (e) =>
24
25
  };
25
26
  let { custom_content: l, ...u } = e;
26
27
  return u;
27
- }, o = (e) => ({
28
- ...e,
29
- messages: e.messages.map(a)
30
- }), s = (e, t = []) => ({
28
+ }, c = (t) => e({
29
+ ...t,
30
+ messages: t.messages.map(s)
31
+ }, a), l = (e, t = []) => ({
31
32
  version: 5,
32
33
  history: e,
33
34
  folders: t
34
- }), c = (e) => new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), l = {
35
- [t.SingleConversation]: "json",
36
- [t.SingleConversationWithAttachments]: "dial",
37
- [t.AllConversationsHistory]: "json"
38
- }, u = (t, n, r = /* @__PURE__ */ new Date()) => `${e(r)}_${n}_${t}.${l[t]}`;
35
+ }), u = (e) => new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), d = {
36
+ [n.SingleConversation]: "json",
37
+ [n.SingleConversationWithAttachments]: "dial",
38
+ [n.AllConversationsHistory]: "json"
39
+ }, f = (e, n, r = /* @__PURE__ */ new Date()) => `${t(r)}_${n}_${e}.${d[e]}`;
39
40
  //#endregion
40
- export { n as EXPORT_APP_NAME, s as buildExportEnvelope, u as buildExportFileName, c as serializeExportEnvelope, o as stripConversationAttachments };
41
+ export { r as EXPORT_APP_NAME, l as buildExportEnvelope, f as buildExportFileName, u as serializeExportEnvelope, c as stripConversationAttachments };