@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
@@ -0,0 +1,11 @@
1
+ import { ProjectSource as ProjectSourceDto, ProjectDetailsDto, ProjectDto } from '@epam/ai-dial-chat-api-client';
2
+ import { ProjectItem, ProjectSource, ProjectViewModel, StoredProjectContextFile } from '@epam/ai-dial-projects';
3
+ /** Maps a BFF project source onto the Projects lib's source. */
4
+ export declare const mapProjectSource: (source: ProjectSourceDto) => ProjectSource;
5
+ /** Maps a BFF project to the card item the Projects lib renders; the sort date falls back to the creation time. */
6
+ export declare const mapProjectDtoToItem: (project: ProjectDto) => ProjectItem;
7
+ /** Maps a project's BFF details to the content the project view renders; content types come from the file names. */
8
+ export declare const mapProjectDetailsToViewModel: (project: ProjectDetailsDto) => ProjectViewModel;
9
+ /** Maps a project's stored context files to the cards the project form renders; ids are `stored:{name}`. */
10
+ export declare const mapStoredContextFiles: (project: ProjectDetailsDto) => StoredProjectContextFile[];
11
+ //# sourceMappingURL=project-mapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-mapping.d.ts","sourceRoot":"","sources":["../../src/project/project-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EACL,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAchC,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB,KAAG,aACnC,CAAC;AAE1B,mHAAmH;AACnH,eAAO,MAAM,mBAAmB,GAAI,SAAS,UAAU,KAAG,WAMxD,CAAC;AAEH,oHAAoH;AACpH,eAAO,MAAM,4BAA4B,GACvC,SAAS,iBAAiB,KACzB,gBAQD,CAAC;AAEH,4GAA4G;AAC5G,eAAO,MAAM,qBAAqB,GAChC,SAAS,iBAAiB,KACzB,wBAAwB,EAYvB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { RequestStatus as e, getAttachmentTypeFromMime as t, inferMimeTypeFromPath as n } from "@epam/ai-dial-chat-shared";
2
+ import { ProjectSource as r } from "@epam/ai-dial-chat-api-client";
3
+ import { ProjectSource as i } from "@epam/ai-dial-projects";
4
+ //#region src/project/project-mapping.ts
5
+ var a = "", o = {
6
+ [r.Personal]: i.Personal,
7
+ [r.Shared]: i.Shared,
8
+ [r.Organization]: i.Organization
9
+ }, s = (e) => o[e], c = (e) => ({
10
+ id: e.id,
11
+ name: e.name,
12
+ source: s(e.source),
13
+ parentPath: e.parentPath,
14
+ updatedAt: e.updatedAt ?? e.createdAt
15
+ }), l = (e) => ({
16
+ name: e.name,
17
+ description: e.description,
18
+ instructions: e.instructions,
19
+ contextFiles: e.contextFiles.map(({ name: e }) => ({
20
+ name: e,
21
+ contentType: n(e) ?? a
22
+ }))
23
+ }), u = (r) => r.contextFiles.map(({ name: r, size: i }) => {
24
+ let o = n(r) ?? a;
25
+ return {
26
+ id: `stored:${r}`,
27
+ name: r,
28
+ size: i,
29
+ contentType: o,
30
+ type: t(o),
31
+ status: e.Idle,
32
+ isStored: !0
33
+ };
34
+ });
35
+ //#endregion
36
+ export { l as mapProjectDetailsToViewModel, c as mapProjectDtoToItem, s as mapProjectSource, u as mapStoredContextFiles };
@@ -0,0 +1,12 @@
1
+ /** How a silent refresh of one loaded project ended. */
2
+ export declare enum ProjectRefreshOutcome {
3
+ /** The details were replaced with the fresh read. */
4
+ Updated = "updated",
5
+ /** The project no longer exists; the page should leave it. */
6
+ NotFound = "not-found",
7
+ /** The read failed; the loaded details are kept. */
8
+ Failed = "failed",
9
+ /** No project was loaded, or a newer refresh or an id change superseded this one. */
10
+ Skipped = "skipped"
11
+ }
12
+ //# sourceMappingURL=project-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-refresh.d.ts","sourceRoot":"","sources":["../../src/project/project-refresh.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,oBAAY,qBAAqB;IAC/B,qDAAqD;IACrD,OAAO,YAAY;IACnB,8DAA8D;IAC9D,QAAQ,cAAc;IACtB,oDAAoD;IACpD,MAAM,WAAW;IACjB,qFAAqF;IACrF,OAAO,YAAY;CACpB"}
@@ -0,0 +1,6 @@
1
+ //#region src/project/project-refresh.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Updated = "updated", e.NotFound = "not-found", e.Failed = "failed", e.Skipped = "skipped", e;
4
+ }({});
5
+ //#endregion
6
+ export { e as ProjectRefreshOutcome };
@@ -0,0 +1,26 @@
1
+ import { ProjectWatchEvent } from './project-events';
2
+ import { ProjectsApiClient } from './projects-api-client';
3
+ /** Delays before each reconnect attempt of a dropped watch stream. */
4
+ export declare const WATCH_RECONNECT_DELAYS_MS: number[];
5
+ /** One run of a projects watch stream, from its first open until it gives up or `signal` aborts. */
6
+ export interface ProjectWatchRun {
7
+ /** The client's stream opener. */
8
+ watchProjects: NonNullable<ProjectsApiClient['watchProjects']>;
9
+ /** The project ids to watch. */
10
+ ids: string[];
11
+ /** Ends the run: the open stream is released and no reconnect fires. */
12
+ signal: AbortSignal;
13
+ /** Called with each well-formed event. */
14
+ onEvent: (event: ProjectWatchEvent) => void;
15
+ /** Called after a dropped stream was reopened, so the caller can catch up on the gap. */
16
+ onReconnected: () => void;
17
+ /** Called once when the watch cannot be opened or kept open, for the rest of the visit. */
18
+ onUnavailable: () => void;
19
+ }
20
+ /**
21
+ * Keeps a projects watch open: a stream that drops is reopened with a bounded
22
+ * backoff, and a watch whose first open fails (a Core without project events,
23
+ * a project no longer readable) or whose retries run out gives up.
24
+ */
25
+ export declare const runProjectWatch: ({ watchProjects, ids, signal, onEvent, onReconnected, onUnavailable, }: ProjectWatchRun) => void;
26
+ //# sourceMappingURL=project-watch-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-watch-stream.d.ts","sourceRoot":"","sources":["../../src/project/project-watch-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,sEAAsE;AACtE,eAAO,MAAM,yBAAyB,UAAkC,CAAC;AAEzE,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,aAAa,EAAE,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/D,gCAAgC;IAChC,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,wEAAwE;IACxE,MAAM,EAAE,WAAW,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,yFAAyF;IACzF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,2FAA2F;IAC3F,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,wEAO7B,eAAe,KAAG,IA2CpB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { parseProjectWatchEvent as e } from "./project-events.js";
2
+ import { readSseEvents as t } from "../shared/read-sse-events.js";
3
+ //#region src/project/project-watch-stream.ts
4
+ var n = [
5
+ 1e3,
6
+ 2e3,
7
+ 4e3,
8
+ 8e3,
9
+ 16e3
10
+ ], r = ({ watchProjects: r, ids: i, signal: a, onEvent: o, onReconnected: s, onUnavailable: c }) => {
11
+ let l;
12
+ a.addEventListener("abort", () => clearTimeout(l), { once: !0 });
13
+ let u = (t) => {
14
+ let n = e(t);
15
+ return n != null && o(n), a.aborted;
16
+ }, d = (e) => {
17
+ let t = n[e];
18
+ t == null ? c() : l = setTimeout(() => {
19
+ f(e, !0);
20
+ }, t);
21
+ }, f = async (e, n) => {
22
+ let o;
23
+ try {
24
+ o = await r(i, a);
25
+ } catch {
26
+ if (a.aborted) return;
27
+ if (!n) {
28
+ c();
29
+ return;
30
+ }
31
+ d(e + 1);
32
+ return;
33
+ }
34
+ n && s(), await t(o, u), !a.aborted && d(0);
35
+ };
36
+ f(0, !1);
37
+ };
38
+ //#endregion
39
+ export { n as WATCH_RECONNECT_DELAYS_MS, r as runProjectWatch };
@@ -0,0 +1,170 @@
1
+ import { AttachmentDto, ConversationResponseDto, CreateConversationDto, CreateProjectResponseDto, ListProjectsResponseDto, ProjectConversationListResponseDto, ProjectDetailsDto, RenameConversationResponseDto, UpdateProjectResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ import { RequestSkill } from '@epam/ai-dial-chat-shared';
3
+ /** A generated-client `Raw` answer, of which only the native response is read. */
4
+ interface RawApiResponse {
5
+ raw: Response;
6
+ }
7
+ /** Narrow configured generated-client (`ProjectsApi`) surface the project hooks require. */
8
+ export interface ProjectsConfiguredClient {
9
+ listProjects: (options?: RequestInit) => Promise<ListProjectsResponseDto>;
10
+ getProject: (request: {
11
+ id: string;
12
+ }, options?: RequestInit) => Promise<ProjectDetailsDto>;
13
+ createProject: (request: {
14
+ name: string;
15
+ description?: string;
16
+ instructions?: string;
17
+ fileNames?: string;
18
+ files?: Blob[];
19
+ }, options?: RequestInit) => Promise<CreateProjectResponseDto>;
20
+ updateProject: (request: {
21
+ id: string;
22
+ ifMatch: string;
23
+ name: string;
24
+ description?: string;
25
+ instructions?: string;
26
+ fileNames?: string;
27
+ removedFileNames?: string;
28
+ files?: Blob[];
29
+ }, options?: RequestInit) => Promise<UpdateProjectResponseDto>;
30
+ deleteProject: (request: {
31
+ id: string;
32
+ ifMatch: string;
33
+ }) => Promise<void>;
34
+ downloadProjectRaw: (request: {
35
+ id: string;
36
+ }, options?: RequestInit) => Promise<RawApiResponse>;
37
+ downloadProjectFileRaw: (request: {
38
+ id: string;
39
+ fileName: string;
40
+ }, options?: RequestInit) => Promise<RawApiResponse>;
41
+ listProjectConversations: (request: {
42
+ id: string;
43
+ limit?: number;
44
+ offset?: number;
45
+ }, options?: RequestInit) => Promise<ProjectConversationListResponseDto>;
46
+ createProjectConversation: (request: {
47
+ id: string;
48
+ createConversationDto: CreateConversationDto;
49
+ }) => Promise<ConversationResponseDto>;
50
+ getProjectConversation: (request: {
51
+ id: string;
52
+ conversationName: string;
53
+ }, options?: RequestInit) => Promise<ConversationResponseDto>;
54
+ saveProjectConversation: (request: {
55
+ id: string;
56
+ conversationName: string;
57
+ saveConversationBodyDto: {
58
+ conversation: ConversationResponseDto;
59
+ };
60
+ }) => Promise<ConversationResponseDto>;
61
+ renameProjectConversation: (request: {
62
+ id: string;
63
+ conversationName: string;
64
+ renameConversationBodyDto: {
65
+ newTitle: string;
66
+ };
67
+ }) => Promise<RenameConversationResponseDto>;
68
+ deleteProjectConversation: (request: {
69
+ id: string;
70
+ conversationName: string;
71
+ }) => Promise<void>;
72
+ markProjectConversationViewed: (request: {
73
+ id: string;
74
+ conversationName: string;
75
+ }) => Promise<void>;
76
+ attachToProjectGenerationRaw: (request: {
77
+ id: string;
78
+ attachGenerationDto: {
79
+ path: string;
80
+ };
81
+ }, options?: RequestInit) => Promise<RawApiResponse>;
82
+ watchProjectsRaw: (request: {
83
+ watchProjectsBodyDto: {
84
+ ids: string[];
85
+ };
86
+ }, options?: RequestInit) => Promise<RawApiResponse>;
87
+ }
88
+ /** Text fields of a project create or edit request. */
89
+ export interface ProjectFields {
90
+ /** Project name; also the last path segment of its id. */
91
+ name: string;
92
+ /** Plain-text description; when omitted, a save keeps the stored one. */
93
+ description?: string;
94
+ /** Markdown instructions, stored as the `PROJECT.md` body. */
95
+ instructions: string;
96
+ }
97
+ /** One project edit: the fields, the added files only, the stored files to drop and the loaded version. */
98
+ export interface ProjectUpdateRequest {
99
+ /** The project's DIAL id. */
100
+ id: string;
101
+ /** The edited text fields. */
102
+ fields: ProjectFields;
103
+ /** Files added in this edit. */
104
+ newFiles: File[];
105
+ /** Names of the stored context files to remove. */
106
+ removedFileNames: string[];
107
+ /** The loaded project's `contentVersion`; a conversation written meanwhile does not change it. */
108
+ contentVersion: string;
109
+ }
110
+ /** One page of a project's conversations, newest first. */
111
+ export interface ProjectConversationListPage {
112
+ /** Page size, `1..100`; the BFF defaults to 50. */
113
+ limit?: number;
114
+ /** Conversations to skip; the next page starts at the count already loaded. */
115
+ offset?: number;
116
+ }
117
+ /** The first message of a new top-level or project conversation. */
118
+ export interface ConversationCreateRequest {
119
+ /** The first user message. */
120
+ firstMessage: string;
121
+ /** Model or application the conversation starts with. */
122
+ deploymentId: string;
123
+ /** Attachments of the first message. */
124
+ attachments?: AttachmentDto[];
125
+ /** Tool configuration of the first message. */
126
+ configurationValue?: Record<string, unknown>;
127
+ /** Form values of the first message. */
128
+ formValue?: Record<string, unknown>;
129
+ /** Skills requested with the first message. */
130
+ skills?: RequestSkill[];
131
+ }
132
+ /** App-agnostic project requests over a configured generated client. */
133
+ export interface ProjectsApiClient {
134
+ listProjects: (signal?: AbortSignal) => Promise<ListProjectsResponseDto>;
135
+ getProject: (id: string, signal?: AbortSignal) => Promise<ProjectDetailsDto>;
136
+ createProject: (fields: ProjectFields, files: File[], signal?: AbortSignal) => Promise<CreateProjectResponseDto>;
137
+ updateProject: (request: ProjectUpdateRequest, signal?: AbortSignal) => Promise<UpdateProjectResponseDto>;
138
+ deleteProject: (id: string, contentVersion: string) => Promise<void>;
139
+ downloadProjectArchive: (id: string, signal?: AbortSignal) => Promise<Response>;
140
+ downloadProjectContextFile: (id: string, fileName: string, signal?: AbortSignal) => Promise<Response>;
141
+ listProjectConversations: (projectId: string, signal?: AbortSignal, page?: ProjectConversationListPage) => Promise<ProjectConversationListResponseDto>;
142
+ createProjectConversation: (projectId: string, request: ConversationCreateRequest) => Promise<ConversationResponseDto>;
143
+ getProjectConversation: (conversationId: string, signal?: AbortSignal) => Promise<ConversationResponseDto>;
144
+ saveProjectConversation: (conversationId: string, conversation: ConversationResponseDto) => Promise<ConversationResponseDto>;
145
+ renameProjectConversation: (conversationId: string, newTitle: string) => Promise<RenameConversationResponseDto>;
146
+ deleteProjectConversation: (conversationId: string) => Promise<void>;
147
+ /** Records that the caller has seen the conversation's current version; a host without it keeps no read state. */
148
+ markProjectConversationViewed?: (conversationId: string) => Promise<void>;
149
+ attachToProjectGeneration: (projectId: string, path: string, signal?: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
150
+ /** Opens the SSE stream of changes to the given projects; a host without it gets no live updates. */
151
+ watchProjects?: (ids: string[], signal?: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
152
+ }
153
+ /**
154
+ * Splits a project conversation id `projects/{bucket}/{projectPath…}/conversations/{name}`
155
+ * into the project id and the conversation file name; `null` for any other id.
156
+ */
157
+ export declare const splitProjectConversationId: (conversationId: string) => {
158
+ projectId: string;
159
+ conversationName: string;
160
+ } | null;
161
+ /** The create-conversation body of a first message, the same for a top-level and a project conversation. */
162
+ export declare const buildCreateConversationDto: ({ firstMessage, deploymentId, attachments, configurationValue, formValue, skills, }: ConversationCreateRequest) => CreateConversationDto;
163
+ /**
164
+ * Composes the project requests over a configured generated `ProjectsApi`.
165
+ * File names travel as JSON fields, positionally paired with `files`,
166
+ * because the BFF never trusts a multipart part's own filename.
167
+ */
168
+ export declare const createProjectsApiClient: (client: ProjectsConfiguredClient) => Required<ProjectsApiClient>;
169
+ export {};
170
+ //# sourceMappingURL=projects-api-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects-api-client.d.ts","sourceRoot":"","sources":["../../src/project/projects-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,kCAAkC,EAClC,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,kFAAkF;AAClF,UAAU,cAAc;IACtB,GAAG,EAAE,QAAQ,CAAC;CACf;AAED,4FAA4F;AAC5F,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1E,UAAU,EAAE,CACV,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EACvB,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChC,aAAa,EAAE,CACb,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;KAChB,EACD,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,wBAAwB,C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CAAC,6BAA6B,CAAC,CAAC;IAC5C,yBAAyB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kHAAkH;IAClH,6BAA6B,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,yBAAyB,EAAE,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IACzC,qGAAqG;IACrG,aAAa,CAAC,EAAE,CACd,GAAG,EAAE,MAAM,EAAE,EACb,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;CAC1C;AAKD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GACrC,gBAAgB,MAAM,KACrB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GAAG,IAapD,CAAC;AAYF,4GAA4G;AAC5G,eAAO,MAAM,0BAA0B,GAAI,qFAOxC,yBAAyB,KAAG,qBAe7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,wBAAwB,KAC/B,QAAQ,CAAC,iBAAiB,CAyF3B,CAAC"}
@@ -0,0 +1,87 @@
1
+ //#region src/project/projects-api-client.ts
2
+ var e = (e) => {
3
+ let t = e.split("/");
4
+ return t.length < 5 || t[0] !== "projects" || t[t.length - 2] !== "conversations" ? null : {
5
+ projectId: t.slice(0, -2).join("/"),
6
+ conversationName: t[t.length - 1]
7
+ };
8
+ }, t = (t) => {
9
+ let n = e(t);
10
+ if (!n) throw Error("Not a project conversation id");
11
+ return {
12
+ id: n.projectId,
13
+ conversationName: n.conversationName
14
+ };
15
+ }, n = (e) => e ? [{ signal: e }] : [], r = ({ firstMessage: e, deploymentId: t, attachments: n, configurationValue: r, formValue: i, skills: a }) => ({
16
+ firstMessage: e,
17
+ deploymentId: t,
18
+ ...n?.length || r || i || a?.length ? { custom_content: {
19
+ ...n?.length ? { attachments: n } : {},
20
+ ...r ? { configuration_value: r } : {},
21
+ ...i ? { form_value: i } : {},
22
+ ...a?.length ? { skills: a } : {}
23
+ } } : {}
24
+ }), i = (e) => ({
25
+ listProjects: (t) => e.listProjects(...n(t)),
26
+ getProject: (t, r) => e.getProject({ id: t }, ...n(r)),
27
+ createProject: ({ name: t, description: r, instructions: i }, a, o) => e.createProject({
28
+ name: t,
29
+ description: r,
30
+ instructions: i,
31
+ fileNames: JSON.stringify(a.map((e) => e.name)),
32
+ files: a
33
+ }, ...n(o)),
34
+ updateProject: ({ id: t, fields: r, newFiles: i, removedFileNames: a, contentVersion: o }, s) => e.updateProject({
35
+ id: t,
36
+ ifMatch: o,
37
+ name: r.name,
38
+ description: r.description,
39
+ instructions: r.instructions,
40
+ fileNames: JSON.stringify(i.map((e) => e.name)),
41
+ removedFileNames: JSON.stringify(a),
42
+ files: i
43
+ }, ...n(s)),
44
+ deleteProject: (t, n) => e.deleteProject({
45
+ id: t,
46
+ ifMatch: n
47
+ }),
48
+ downloadProjectArchive: async (t, r) => (await e.downloadProjectRaw({ id: t }, ...n(r))).raw,
49
+ downloadProjectContextFile: async (t, r, i) => (await e.downloadProjectFileRaw({
50
+ id: t,
51
+ fileName: r
52
+ }, ...n(i))).raw,
53
+ listProjectConversations: (t, r, i) => e.listProjectConversations({
54
+ id: t,
55
+ ...i
56
+ }, ...n(r)),
57
+ createProjectConversation: (t, n) => e.createProjectConversation({
58
+ id: t,
59
+ createConversationDto: r(n)
60
+ }),
61
+ getProjectConversation: (r, i) => e.getProjectConversation(t(r), ...n(i)),
62
+ saveProjectConversation: (n, r) => e.saveProjectConversation({
63
+ ...t(n),
64
+ saveConversationBodyDto: { conversation: r }
65
+ }),
66
+ renameProjectConversation: (n, r) => e.renameProjectConversation({
67
+ ...t(n),
68
+ renameConversationBodyDto: { newTitle: r }
69
+ }),
70
+ deleteProjectConversation: (n) => e.deleteProjectConversation(t(n)),
71
+ markProjectConversationViewed: (n) => e.markProjectConversationViewed(t(n)),
72
+ attachToProjectGeneration: async (t, r, i) => {
73
+ let { raw: a } = await e.attachToProjectGenerationRaw({
74
+ id: t,
75
+ attachGenerationDto: { path: r }
76
+ }, ...n(i));
77
+ if (!a.body) throw Error("Attach endpoint returned no response body");
78
+ return a.body;
79
+ },
80
+ watchProjects: async (t, r) => {
81
+ let { raw: i } = await e.watchProjectsRaw({ watchProjectsBodyDto: { ids: t } }, ...n(r));
82
+ if (!i.body) throw Error("Watch endpoint returned no response body");
83
+ return i.body;
84
+ }
85
+ });
86
+ //#endregion
87
+ export { r as buildCreateConversationDto, i as createProjectsApiClient, e as splitProjectConversationId };
@@ -0,0 +1,48 @@
1
+ import { ProjectDetailsDto } from '@epam/ai-dial-chat-api-client';
2
+ import { ProjectsApiClient } from './projects-api-client';
3
+ /** Which project action failed, for the host's error message. */
4
+ export declare enum ProjectActionError {
5
+ Pin = "pin",
6
+ Download = "download",
7
+ Delete = "delete",
8
+ /** The delete lost to a concurrent change; the project should be reloaded. */
9
+ ChangedElsewhere = "changed-elsewhere"
10
+ }
11
+ /** Host behaviour the project actions delegate to. */
12
+ export interface ProjectActionsHandlers {
13
+ /** Whether the project is in the caller's pins. */
14
+ isPinned: boolean;
15
+ /** Persists the pin state; rejects on failure. */
16
+ setPinned: (projectId: string, isPinned: boolean) => Promise<void>;
17
+ /** Saves a downloaded response as a file and resolves the saved name. */
18
+ saveFile: (response: Response, fileName: string) => Promise<string>;
19
+ /** Called after the archive was saved, with the saved file name. */
20
+ onArchiveDownloaded?: (savedName: string) => void;
21
+ /** Called after the project was deleted; the host updates pins and navigates away. */
22
+ onDeleted: (project: ProjectDetailsDto) => void;
23
+ /** Called with a failed action and its trace id; the host shows the message. */
24
+ onError: (error: ProjectActionError, requestId?: string) => void;
25
+ /** Re-reads the project, e.g. after a delete lost to a concurrent change. */
26
+ onReload: () => void;
27
+ }
28
+ /**
29
+ * Pin, archive and context-file downloads, and the confirmed delete of one
30
+ * loaded project, with their in-flight state. Messages, notifications, pins
31
+ * and navigation stay with the host through `handlers`.
32
+ *
33
+ * @param client - Configured project requests, from `createProjectsApiClient`.
34
+ * @param project - The loaded project, or `null` while none is loaded.
35
+ * @param handlers - Host behaviour the actions delegate to.
36
+ */
37
+ export declare const useProjectActions: (client: Pick<ProjectsApiClient, "deleteProject" | "downloadProjectArchive">, project: ProjectDetailsDto | null, { isPinned, setPinned, saveFile, onArchiveDownloaded, onDeleted, onError, onReload, }: ProjectActionsHandlers) => {
38
+ isPinned: boolean;
39
+ isPinPending: boolean;
40
+ togglePin: () => Promise<void>;
41
+ downloadArchive: () => Promise<void>;
42
+ isDeleteOpen: boolean;
43
+ isDeleting: boolean;
44
+ requestDelete: () => void;
45
+ cancelDelete: () => void;
46
+ confirmDelete: () => Promise<void>;
47
+ };
48
+ //# sourceMappingURL=use-project-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-project-actions.d.ts","sourceRoot":"","sources":["../../src/project/use-project-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,iEAAiE;AACjE,oBAAY,kBAAkB;IAC5B,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,8EAA8E;IAC9E,gBAAgB,sBAAsB;CACvC;AAED,sDAAsD;AACtD,MAAM,WAAW,sBAAsB;IACrC,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,yEAAyE;IACzE,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACpE,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,sFAAsF;IACtF,SAAS,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAChD,gFAAgF;IAChF,OAAO,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,wBAAwB,CAAC,EAC3E,SAAS,iBAAiB,GAAG,IAAI,EACjC,uFAQG,sBAAsB;;;;;;;;;;CA0F1B,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { getApiErrorDetails as e } from "../api-error/api-error.js";
2
+ import { sanitizeFileName as t } from "../files/file-name.js";
3
+ import { useCallback as n, useMemo as r, useState as i } from "react";
4
+ import { ProjectCreateErrorCode as a } from "@epam/ai-dial-chat-api-client";
5
+ //#region src/project/use-project-actions.ts
6
+ var o = /* @__PURE__ */ function(e) {
7
+ return e.Pin = "pin", e.Download = "download", e.Delete = "delete", e.ChangedElsewhere = "changed-elsewhere", e;
8
+ }({}), s = (o, s, { isPinned: c, setPinned: l, saveFile: u, onArchiveDownloaded: d, onDeleted: f, onError: p, onReload: m }) => {
9
+ let [h, g] = i(!1), [_, v] = i(!1), [y, b] = i(!1), x = n(async (t, n) => {
10
+ let { traceId: r } = await e(t);
11
+ p(n, r);
12
+ }, [p]), S = n(async () => {
13
+ if (s != null) {
14
+ g(!0);
15
+ try {
16
+ await l(s.id, !c);
17
+ } catch (e) {
18
+ await x(e, "pin");
19
+ } finally {
20
+ g(!1);
21
+ }
22
+ }
23
+ }, [
24
+ s,
25
+ c,
26
+ l,
27
+ x
28
+ ]), C = n(async () => {
29
+ if (s != null) try {
30
+ let e = await u(await o.downloadProjectArchive(s.id), `${t(s.name)}.zip`);
31
+ d?.(e);
32
+ } catch (e) {
33
+ await x(e, "download");
34
+ }
35
+ }, [
36
+ o,
37
+ s,
38
+ u,
39
+ d,
40
+ x
41
+ ]), w = n(() => v(!0), []), T = n(() => {
42
+ y || v(!1);
43
+ }, [y]), E = n(async () => {
44
+ if (s != null) {
45
+ b(!0);
46
+ try {
47
+ await o.deleteProject(s.id, s.contentVersion), v(!1), f(s);
48
+ } catch (t) {
49
+ let { code: n, traceId: r } = await e(t);
50
+ if (n === a.ProjectChanged) {
51
+ v(!1), p("changed-elsewhere", r), m();
52
+ return;
53
+ }
54
+ p("delete", r);
55
+ } finally {
56
+ b(!1);
57
+ }
58
+ }
59
+ }, [
60
+ o,
61
+ s,
62
+ f,
63
+ p,
64
+ m
65
+ ]);
66
+ return r(() => ({
67
+ isPinned: c,
68
+ isPinPending: h,
69
+ togglePin: S,
70
+ downloadArchive: C,
71
+ isDeleteOpen: _,
72
+ isDeleting: y,
73
+ requestDelete: w,
74
+ cancelDelete: T,
75
+ confirmDelete: E
76
+ }), [
77
+ c,
78
+ h,
79
+ S,
80
+ C,
81
+ _,
82
+ y,
83
+ w,
84
+ T,
85
+ E
86
+ ]);
87
+ };
88
+ //#endregion
89
+ export { o as ProjectActionError, s as useProjectActions };
@@ -0,0 +1,29 @@
1
+ import { ProjectConversationListItem } from '@epam/ai-dial-projects';
2
+ import { ProjectsApiClient } from './projects-api-client';
3
+ /**
4
+ * Loads a project's conversations for its Chats list and keeps them in local
5
+ * state: the first page is read once per project (and on retry), `loadMore`
6
+ * appends the next one, `refresh` silently re-reads the rows already shown
7
+ * for live updates, and rename, delete and `markViewed` update the list in
8
+ * place. Requests are aborted when the project changes or the view unmounts.
9
+ * Rename, delete and `loadMore` reject on failure for the caller's toast.
10
+ *
11
+ * @param client - Configured project requests, from `createProjectsApiClient`; it must be referentially stable, because a new object reloads the list.
12
+ * @param projectId - The project's DIAL id, or `null` while none is known.
13
+ */
14
+ export declare const useProjectConversations: (client: Pick<ProjectsApiClient, "listProjectConversations" | "renameProjectConversation" | "deleteProjectConversation" | "markProjectConversationViewed">, projectId: string | null) => {
15
+ retry: () => void;
16
+ loadMore: () => Promise<void>;
17
+ rename: (id: string, newTitle: string) => Promise<void>;
18
+ remove: (id: string) => Promise<void>;
19
+ refresh: () => Promise<void>;
20
+ markViewed: (id: string) => void;
21
+ items: ProjectConversationListItem[];
22
+ isLoading: boolean;
23
+ hasError: boolean;
24
+ /** More conversations exist after `items`. */
25
+ hasMore: boolean;
26
+ /** The next page is being read. */
27
+ isLoadingMore: boolean;
28
+ };
29
+ //# sourceMappingURL=use-project-conversations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-project-conversations.d.ts","sourceRoot":"","sources":["../../src/project/use-project-conversations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AA2D/D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,IAAI,CACV,iBAAiB,EACf,0BAA0B,GAC1B,2BAA2B,GAC3B,2BAA2B,GAC3B,+BAA+B,CAClC,EACD,WAAW,MAAM,GAAG,IAAI;;;iBAyKX,MAAM,YAAY,MAAM;iBAaxB,MAAM;;qBAlCZ,MAAM;WA/NN,2BAA2B,EAAE;eACzB,OAAO;cACR,OAAO;IACjB,8CAA8C;aACrC,OAAO;IAChB,mCAAmC;mBACpB,OAAO;CA8QvB,CAAC"}