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

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 (678) 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 +10 -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 +210 -6990
  406. package/index.d.ts.map +1 -0
  407. package/index.js +204 -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 +24 -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/projects-api-client.d.ts +164 -0
  477. package/project/projects-api-client.d.ts.map +1 -0
  478. package/project/projects-api-client.js +86 -0
  479. package/project/use-project-actions.d.ts +48 -0
  480. package/project/use-project-actions.d.ts.map +1 -0
  481. package/project/use-project-actions.js +89 -0
  482. package/project/use-project-conversations.d.ts +27 -0
  483. package/project/use-project-conversations.d.ts.map +1 -0
  484. package/project/use-project-conversations.js +109 -0
  485. package/project/use-project-submit.d.ts +49 -0
  486. package/project/use-project-submit.d.ts.map +1 -0
  487. package/project/use-project-submit.js +73 -0
  488. package/project/use-project.d.ts +20 -0
  489. package/project/use-project.d.ts.map +1 -0
  490. package/project/use-project.js +48 -0
  491. package/project/use-projects.d.ts +27 -0
  492. package/project/use-projects.d.ts.map +1 -0
  493. package/project/use-projects.js +111 -0
  494. package/project.d.ts +2 -0
  495. package/project.js +10 -0
  496. package/prompt/export-prompt.d.ts +31 -0
  497. package/prompt/export-prompt.d.ts.map +1 -0
  498. package/prompt/prompt-resource.d.ts +30 -0
  499. package/prompt/prompt-resource.d.ts.map +1 -0
  500. package/prompt/prompt.d.ts +34 -0
  501. package/prompt/prompt.d.ts.map +1 -0
  502. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  503. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  504. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  505. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  506. package/scheduled-task/active-scheduled-task.js +18 -0
  507. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  508. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  509. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  510. package/scheduled-task/scheduled-task-description.d.ts +41 -0
  511. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  512. package/scheduled-task/scheduled-task-description.js +37 -28
  513. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  514. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  515. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  516. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  517. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  518. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  519. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  520. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  521. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  522. package/scheduled-task/scheduled-task-trigger.js +68 -38
  523. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  524. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  525. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  526. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  527. package/scheduled-task/use-scheduled-task-runs.js +67 -79
  528. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  529. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  530. package/scheduled-task/use-scheduled-tasks.js +1 -1
  531. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  532. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  533. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  534. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  535. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  536. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  537. package/scheduled-tasks.d.ts +2 -250
  538. package/scheduled-tasks.js +6 -1
  539. package/scroll-anchoring.d.ts +2 -50
  540. package/scroll-anchoring.js +1 -2
  541. package/shared/application-schema.d.ts +16 -0
  542. package/shared/application-schema.d.ts.map +1 -0
  543. package/shared/application-schema.js +3 -3
  544. package/shared/browser-timezone.d.ts +7 -0
  545. package/shared/browser-timezone.d.ts.map +1 -0
  546. package/shared/client-channel.d.ts +53 -0
  547. package/shared/client-channel.d.ts.map +1 -0
  548. package/shared/client-channel.js +6 -0
  549. package/shared/cron-day-of-month.d.ts +21 -0
  550. package/shared/cron-day-of-month.d.ts.map +1 -0
  551. package/shared/cron-day-of-month.js +10 -10
  552. package/shared/cron-weekday.d.ts +5 -0
  553. package/shared/cron-weekday.d.ts.map +1 -0
  554. package/shared/custom-apps.d.ts +7 -0
  555. package/shared/custom-apps.d.ts.map +1 -0
  556. package/shared/external-services.d.ts +16 -0
  557. package/shared/external-services.d.ts.map +1 -0
  558. package/shared/formatting.d.ts +5 -0
  559. package/shared/formatting.d.ts.map +1 -0
  560. package/shared/locale.d.ts +45 -0
  561. package/shared/locale.d.ts.map +1 -0
  562. package/shared/locale.js +2 -2
  563. package/shared/read-sse-events.d.ts +10 -0
  564. package/shared/read-sse-events.d.ts.map +1 -0
  565. package/shared/read-sse-events.js +33 -0
  566. package/shared/string-utils.d.ts +11 -0
  567. package/shared/string-utils.d.ts.map +1 -0
  568. package/shared/theme-colors.d.ts +16 -0
  569. package/shared/theme-colors.d.ts.map +1 -0
  570. package/shared/theme-colors.js +14 -0
  571. package/shared/toolset-login-events.d.ts +15 -0
  572. package/shared/toolset-login-events.d.ts.map +1 -0
  573. package/shared/usage-stat.d.ts +3 -0
  574. package/shared/usage-stat.d.ts.map +1 -0
  575. package/shared/usage-stat.js +4 -0
  576. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  577. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  578. package/shared/usePersistedState/usePersistedState.js +24 -0
  579. package/sharing.d.ts +2 -65
  580. package/skill/skill-archive.d.ts +7 -0
  581. package/skill/skill-archive.d.ts.map +1 -0
  582. package/skill/skill-file-batch-validation.d.ts +74 -0
  583. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  584. package/skill/skill-file-batch-validation.js +34 -33
  585. package/skill/skill-file-preview.d.ts +25 -0
  586. package/skill/skill-file-preview.d.ts.map +1 -0
  587. package/skill/skill-lookup.d.ts +20 -0
  588. package/skill/skill-lookup.d.ts.map +1 -0
  589. package/skill/skill-lookup.js +12 -0
  590. package/skill/skill-manifest.d.ts +28 -0
  591. package/skill/skill-manifest.d.ts.map +1 -0
  592. package/skill/skill-types.d.ts +46 -0
  593. package/skill/skill-types.d.ts.map +1 -0
  594. package/skill/skill-types.js +1 -1
  595. package/skill/skill.d.ts +160 -0
  596. package/skill/skill.d.ts.map +1 -0
  597. package/skill/skill.js +12 -15
  598. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  599. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  600. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  601. package/skill/useSkillEditorLoad.d.ts +74 -0
  602. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  603. package/skill/useSkillEditorSubmit.d.ts +127 -0
  604. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  605. package/skill/useSkillEditorSubmit.js +77 -79
  606. package/skill/useSkillFileActions.d.ts +62 -0
  607. package/skill/useSkillFileActions.d.ts.map +1 -0
  608. package/skill/useSkillFileActions.js +36 -21
  609. package/skill/useSkillFilePreview.d.ts +38 -0
  610. package/skill/useSkillFilePreview.d.ts.map +1 -0
  611. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  612. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  613. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  614. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  615. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  616. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  617. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  618. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  619. package/skill-editor.d.ts +2 -655
  620. package/skill-editor.js +3 -1
  621. package/skills-state.d.ts +2 -40
  622. package/skills-state.js +3 -2
  623. package/source-content.d.ts +2 -29
  624. package/source-content.js +1 -2
  625. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  626. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  627. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  628. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  629. package/usage/usage-banner-source.d.ts +24 -0
  630. package/usage/usage-banner-source.d.ts.map +1 -0
  631. package/usage/usage-banner-source.js +61 -0
  632. package/usage/usage-period.d.ts +7 -0
  633. package/usage/usage-period.d.ts.map +1 -0
  634. package/usage/usage-period.js +6 -0
  635. package/usage/usage-reset-time.d.ts +78 -0
  636. package/usage/usage-reset-time.d.ts.map +1 -0
  637. package/usage/usage-reset-time.js +82 -0
  638. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  639. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  640. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  641. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  642. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  643. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  644. package/usage/useUsageData/useUsageData.d.ts +28 -0
  645. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  646. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  647. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  648. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  649. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  650. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  651. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  652. package/usage-limits.d.ts +2 -0
  653. package/usage-limits.js +9 -0
  654. package/usage.d.ts +2 -125
  655. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
  656. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  657. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  658. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  659. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  660. package/usePageFileDrag/usePageFileDrag.js +3 -3
  661. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  662. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  663. package/useShareLink/useShareLink.d.ts +23 -0
  664. package/useShareLink/useShareLink.d.ts.map +1 -0
  665. package/useShareLink/useShareLink.js +1 -0
  666. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  667. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  668. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  669. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  670. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  671. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  672. package/utils.d.ts +2 -404
  673. package/utils.js +13 -9
  674. package/viewport-layout/canvas-width.d.ts +39 -0
  675. package/viewport-layout/canvas-width.d.ts.map +1 -0
  676. package/viewport-layout/canvas-width.js +23 -0
  677. package/viewport-layout.d.ts +2 -27
  678. package/viewport-layout.js +2 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUsageData.d.ts","sourceRoot":"","sources":["../../../src/usage/useUsageData/useUsageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,4CAA4C;AAC5C,MAAM,WAAW,kBAAkB;IACjC,8PAA8P;IAC9P,KAAK,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC7C,wFAAwF;IACxF,SAAS,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,UAAU,EAAE,KAAK,GAAG,SAAS,CAAC;CAC/B;AAKD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,GACvB,cAAc,MAAM,OAAO,CAAC,yBAAyB,CAAC,EACtD,iBAAc,EACd,qBAAgB,KACf,kBAmCF,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { UsageLimitBannerViewProps } from '@epam/ai-dial-conversation-input';
2
+ import { TranslateFn } from '../usage-reset-time';
3
+ import { UsageLimitsApi } from '../useDeploymentUsageLimits/useDeploymentUsageLimits';
4
+ /**
5
+ * i18n key strings the consuming app's translation bundle must define for
6
+ * `useUsageLimitBanner` to produce translated strings, in addition to
7
+ * `USAGE_RESET_I18N_KEYS`. The values are the default key paths used by AI
8
+ * DIAL Chat.
9
+ */
10
+ export declare const USAGE_BANNER_I18N_KEYS: {
11
+ /** Warning sentence for a daily limit. Receives `{ percent: number }`. */
12
+ readonly warningDay: "conversationInput.usageBanner.warningDay";
13
+ /** Warning sentence for a weekly limit. Receives `{ percent: number }`. */
14
+ readonly warningWeek: "conversationInput.usageBanner.warningWeek";
15
+ /** Warning sentence for a monthly limit. Receives `{ percent: number }`. */
16
+ readonly warningMonth: "conversationInput.usageBanner.warningMonth";
17
+ /** Reached sentence for a daily limit. Receives `{ percent: number }`. */
18
+ readonly reachedDay: "conversationInput.usageBanner.reachedDay";
19
+ /** Reached sentence for a weekly limit. Receives `{ percent: number }`. */
20
+ readonly reachedWeek: "conversationInput.usageBanner.reachedWeek";
21
+ /** Reached sentence for a monthly limit. Receives `{ percent: number }`. */
22
+ readonly reachedMonth: "conversationInput.usageBanner.reachedMonth";
23
+ /** Accessible name of the close button. */
24
+ readonly closeLabel: "conversationInput.usageBanner.closeLabel";
25
+ };
26
+ /** Inputs of {@link useUsageLimitBanner}. */
27
+ export interface UseUsageLimitBannerOptions {
28
+ /** ID of the currently selected deployment. */
29
+ deploymentId: string | undefined;
30
+ /** Whether the selected deployment is currently generating a response. Defaults to `false`. */
31
+ isGenerationInProgress?: boolean;
32
+ /** Host-configured call that fetches one deployment's own usage. */
33
+ getDeploymentUsage: UsageLimitsApi['getDeploymentUsage'];
34
+ /** Host-configured call that fetches the caller's account usage. */
35
+ getAccountUsage: UsageLimitsApi['getAccountUsage'];
36
+ /** Used percentage at or above which a not-yet-exhausted limit raises a warning. */
37
+ warningThresholdPercent: number;
38
+ /** Active UI locale, used to format the reset time. */
39
+ activeLocale: string;
40
+ /** Translate function compatible with i18next's `TFunction`. */
41
+ t: TranslateFn;
42
+ }
43
+ /** The part of `UsageLimitBannerViewProps` the hook decides. */
44
+ export type UsageLimitBannerState = Pick<UsageLimitBannerViewProps, 'severity' | 'limitText' | 'reset' | 'onClose' | 'closeAriaLabel'>;
45
+ /** Return shape of {@link useUsageLimitBanner}. */
46
+ export interface UseUsageLimitBannerResult {
47
+ /** Props for `UsageLimitBannerView`, or `undefined` when no banner should render (no deployment, below the threshold, or dismissed). */
48
+ banner: UsageLimitBannerState | undefined;
49
+ }
50
+ /**
51
+ * Everything the composer usage banner needs except its rendering: fetches the
52
+ * selected deployment's own usage and the account usage, refreshes both after
53
+ * each generation, picks the limit worth reporting, formats its sentences, and
54
+ * tracks tab-lifetime dismissal. Spread `banner` onto `UsageLimitBannerView`
55
+ * from `@epam/ai-dial-conversation-input`.
56
+ */
57
+ export declare const useUsageLimitBanner: ({ deploymentId, isGenerationInProgress, getDeploymentUsage, getAccountUsage, warningThresholdPercent, activeLocale, t, }: UseUsageLimitBannerOptions) => UseUsageLimitBannerResult;
58
+ //# sourceMappingURL=useUsageLimitBanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUsageLimitBanner.d.ts","sourceRoot":"","sources":["../../../src/usage/useUsageLimitBanner/useUsageLimitBanner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,sDAAsD,CAAC;AAI9D;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;IACjC,0EAA0E;;IAE1E,2EAA2E;;IAE3E,4EAA4E;;IAE5E,0EAA0E;;IAE1E,2EAA2E;;IAE3E,4EAA4E;;IAE5E,2CAA2C;;CAEnC,CAAC;AAkBX,6CAA6C;AAC7C,MAAM,WAAW,0BAA0B;IACzC,+CAA+C;IAC/C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,+FAA+F;IAC/F,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oEAAoE;IACpE,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACzD,oEAAoE;IACpE,eAAe,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACnD,oFAAoF;IACpF,uBAAuB,EAAE,MAAM,CAAC;IAChC,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,CAAC,EAAE,WAAW,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,yBAAyB,EACzB,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,gBAAgB,CAClE,CAAC;AAEF,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,wIAAwI;IACxI,MAAM,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,0HAQjC,0BAA0B,KAAG,yBAqE/B,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { UsagePeriod as e } from "../usage-period.js";
2
+ import { selectUsageBannerSource as t } from "../usage-banner-source.js";
3
+ import { formatUsageResetShort as n } from "../usage-reset-time.js";
4
+ import { useDeploymentUsageLimits as r } from "../useDeploymentUsageLimits/useDeploymentUsageLimits.js";
5
+ import { useRefreshUsageAfterGeneration as i } from "../useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js";
6
+ import { useUsageLimitBannerDismissal as a } from "../useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js";
7
+ import { useCallback as o, useMemo as s } from "react";
8
+ import { UsageLimitBannerSeverity as c } from "@epam/ai-dial-conversation-input";
9
+ //#region src/usage/useUsageLimitBanner/useUsageLimitBanner.ts
10
+ var l = {
11
+ warningDay: "conversationInput.usageBanner.warningDay",
12
+ warningWeek: "conversationInput.usageBanner.warningWeek",
13
+ warningMonth: "conversationInput.usageBanner.warningMonth",
14
+ reachedDay: "conversationInput.usageBanner.reachedDay",
15
+ reachedWeek: "conversationInput.usageBanner.reachedWeek",
16
+ reachedMonth: "conversationInput.usageBanner.reachedMonth",
17
+ closeLabel: "conversationInput.usageBanner.closeLabel"
18
+ }, u = {
19
+ [c.Warning]: {
20
+ [e.Day]: l.warningDay,
21
+ [e.Week]: l.warningWeek,
22
+ [e.Month]: l.warningMonth
23
+ },
24
+ [c.Reached]: {
25
+ [e.Day]: l.reachedDay,
26
+ [e.Week]: l.reachedWeek,
27
+ [e.Month]: l.reachedMonth
28
+ }
29
+ }, d = ({ deploymentId: e, isGenerationInProgress: c = !1, getDeploymentUsage: d, getAccountUsage: f, warningThresholdPercent: p, activeLocale: m, t: h }) => {
30
+ let g = s(() => ({
31
+ getDeploymentUsage: d,
32
+ getAccountUsage: f
33
+ }), [d, f]), { sources: _, isLoading: v, refresh: y } = r(e, g), { isDismissed: b, dismiss: x } = a();
34
+ i({
35
+ isGenerationInProgress: c,
36
+ isLoading: v,
37
+ refresh: y
38
+ });
39
+ let S = s(() => t(_, p), [_, p]), C = s(() => {
40
+ if (S != null && e) return {
41
+ dismissalKey: `${e}:${S.period}:${S.severity}`,
42
+ limitText: h(u[S.severity][S.period], { percent: S.usedPercent }),
43
+ reset: n(S.resetsAt, S.period, m, h)
44
+ };
45
+ }, [
46
+ S,
47
+ e,
48
+ m,
49
+ h
50
+ ]), w = C?.dismissalKey, T = o(() => {
51
+ w != null && x(w);
52
+ }, [x, w]), E = h(l.closeLabel);
53
+ return { banner: s(() => {
54
+ if (!(S == null || C == null || b(C.dismissalKey))) return {
55
+ severity: S.severity,
56
+ limitText: C.limitText,
57
+ reset: C.reset,
58
+ onClose: T,
59
+ closeAriaLabel: E
60
+ };
61
+ }, [
62
+ S,
63
+ C,
64
+ b,
65
+ T,
66
+ E
67
+ ]) };
68
+ };
69
+ //#endregion
70
+ export { l as USAGE_BANNER_I18N_KEYS, d as useUsageLimitBanner };
@@ -0,0 +1,14 @@
1
+ export interface UseUsageLimitBannerDismissalResult {
2
+ /** `true` when the banner was dismissed for `key` in this tab. */
3
+ isDismissed: (key: string) => boolean;
4
+ /** Records a dismissal for `key`, hiding every banner that shows it. */
5
+ dismiss: (key: string) => void;
6
+ }
7
+ /**
8
+ * Tab-lifetime, in-memory record of dismissed usage-banner keys
9
+ * (`${deploymentId}:${period}:${severity}`), shared by every composer.
10
+ */
11
+ export declare const useUsageLimitBannerDismissal: () => UseUsageLimitBannerDismissalResult;
12
+ /** Clears every recorded dismissal. Test isolation only. */
13
+ export declare const resetUsageLimitBannerDismissals: () => void;
14
+ //# sourceMappingURL=useUsageLimitBannerDismissal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUsageLimitBannerDismissal.d.ts","sourceRoot":"","sources":["../../../src/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,kCAAkC;IACjD,kEAAkE;IAClE,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,wEAAwE;IACxE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,QACnC,kCAWH,CAAC;AAEJ,4DAA4D;AAC5D,eAAO,MAAM,+BAA+B,QAAO,IAElD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { useCallback as e, useSyncExternalStore as t } from "react";
2
+ //#region src/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.ts
3
+ var n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = (e) => {
4
+ n = e, r.forEach((e) => e());
5
+ }, a = (e) => (r.add(e), () => {
6
+ r.delete(e);
7
+ }), o = () => n, s = () => {
8
+ let r = t(a, o, o);
9
+ return {
10
+ isDismissed: e((e) => r.has(e), [r]),
11
+ dismiss: e((e) => {
12
+ n.has(e) || i(/* @__PURE__ */ new Set([...n, e]));
13
+ }, [])
14
+ };
15
+ }, c = () => {
16
+ i(/* @__PURE__ */ new Set());
17
+ };
18
+ //#endregion
19
+ export { c as resetUsageLimitBannerDismissals, s as useUsageLimitBannerDismissal };
@@ -0,0 +1,2 @@
1
+ export * from './entry-points/usage-limits.js'
2
+ export {}
@@ -0,0 +1,9 @@
1
+ import { isCappedStat as e } from "./shared/usage-stat.js";
2
+ import { UsagePeriod as t } from "./usage/usage-period.js";
3
+ import { selectUsageBannerSource as n } from "./usage/usage-banner-source.js";
4
+ import { USAGE_RESET_I18N_KEYS as r, UsageResetOffsetPolicy as i, formatUsageResetShort as a, formatUsageResetTime as o } from "./usage/usage-reset-time.js";
5
+ import { useDeploymentUsageLimits as s } from "./usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js";
6
+ import { useRefreshUsageAfterGeneration as c } from "./usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js";
7
+ import { resetUsageLimitBannerDismissals as l, useUsageLimitBannerDismissal as u } from "./usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js";
8
+ import { USAGE_BANNER_I18N_KEYS as d, useUsageLimitBanner as f } from "./usage/useUsageLimitBanner/useUsageLimitBanner.js";
9
+ export { d as USAGE_BANNER_I18N_KEYS, r as USAGE_RESET_I18N_KEYS, t as UsagePeriod, i as UsageResetOffsetPolicy, a as formatUsageResetShort, o as formatUsageResetTime, e as isCappedStat, l as resetUsageLimitBannerDismissals, n as selectUsageBannerSource, s as useDeploymentUsageLimits, c as useRefreshUsageAfterGeneration, f as useUsageLimitBanner, u as useUsageLimitBannerDismissal };
package/usage.d.ts CHANGED
@@ -1,125 +1,2 @@
1
- import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
2
- import { ModelLimitPeriodStatuses } from '@epam/ai-dial-usage-dashboard';
3
- import { ModelLimitRow } from '@epam/ai-dial-usage-dashboard';
4
- import { UsageLimitCardData } from '@epam/ai-dial-usage-dashboard';
5
- import { UserLimitStatsResponseDto } from '@epam/ai-dial-chat-api-client';
6
-
7
- /** Formats a raw `resetsAt` into display strings, or returns `undefined` when it cannot be formatted. */
8
- export declare type FormatResetTime = (resetsAt: string | undefined) => ResetTimeDisplay | undefined;
9
-
10
- /**
11
- * Maps the same top-level Cost budgets used by the aggregate cards into table-header state.
12
- *
13
- * @param formatResetTime - Formats each period's top-level `resetsAt` into the header's reset trio. Omit it to produce statuses with no reset fields.
14
- */
15
- export declare const mapOverallCostLimitsToPeriodStatuses: (usage: UserLimitStatsResponseDto | undefined, activeLocale: string, t: Translate_2, formatResetTime?: FormatResetTime) => ModelLimitPeriodStatuses;
16
-
17
- /**
18
- * Maps a `UserLimitStatsResponseDto` into `UsageLimitCardGroup`'s `cards` prop,
19
- * in Today / This week / This month order. A period is omitted entirely when
20
- * the response carries no usable stat for it. Each card's reset trio comes from
21
- * `formatResetTime`, and is absent when that callback returns `undefined`.
22
- */
23
- export declare const mapUsageDataToDashboard: (usage: UserLimitStatsResponseDto | undefined, t: Translate, formatResetTime: FormatResetTime) => UsageLimitCardData[];
24
-
25
- /**
26
- * Maps `usage.deployments` into `ModelLimitsSection`'s `rows` prop, joined with model or application
27
- * identity from `deploymentItems`. Rows are included only when any displayed period stat has nonzero
28
- * usage (Cost stats only, for an application). Order follows `Object.keys(deployments)` —
29
- * `deploymentItems` is enrichment-only.
30
- *
31
- * @param resolveIconUrl - Resolves a deployment's raw `iconUrl` to the URL the avatar should load.
32
- * @param resolveDisplayName - Resolves a localized-text map or plain string to the display name for `activeLocale`.
33
- */
34
- export declare const mapUserUsageToModelLimits: (usage: UserLimitStatsResponseDto | undefined, deploymentItems: DeploymentItemDto[], activeLocale: string, t: Translate_2, resolveIconUrl: ResolveIconUrl, resolveDisplayName: ResolveDisplayName) => ModelLimitRow[];
35
-
36
- /**
37
- * One reset time, already parsed and formatted by the host. Declared
38
- * structurally here so this library never imports an application type; the
39
- * host passes a value that satisfies this shape (e.g. `apps/chat`'s own
40
- * `ResetTimeDisplay`).
41
- */
42
- export declare interface ResetTimeDisplay {
43
- /** Exclusive end of the period as an epoch ms value, for the host's boundary scheduling. */
44
- resetsAtMs: number;
45
- /** Machine-readable instant for a `<time dateTime>` attribute. */
46
- isoValue: string;
47
- /** Visible reset line. */
48
- label: string;
49
- /** Accessible expansion of the reset line. */
50
- ariaLabel: string;
51
- }
52
-
53
- /** A callback that resolves a display name from a localized-text value. */
54
- declare type ResolveDisplayName = (name: string | Record<string, string> | undefined | null, locale: string) => string;
55
-
56
- /** A callback that resolves an icon URL from a deployment's raw `iconUrl` field. */
57
- declare type ResolveIconUrl = (iconUrl: string | undefined) => string | undefined;
58
-
59
- /** A translate function compatible with i18next's `TFunction`. */
60
- declare type Translate = (key: string, options?: Record<string, unknown>) => string;
61
-
62
- /** A translate function compatible with i18next's `TFunction`. */
63
- declare type Translate_2 = (key: string, options?: Record<string, unknown>) => string;
64
-
65
- /**
66
- * i18n key strings that the consuming app's translation bundle must define for
67
- * `mapUsageDataToDashboard` to produce correctly translated strings. The
68
- * values are the default key paths used by AI DIAL Chat.
69
- */
70
- export declare const USAGE_DATA_I18N_KEYS: {
71
- /** Title for the current-UTC-day card (e.g. `'Today'`). */
72
- readonly todayTitle: "usage.todayTitle";
73
- /** Accessible period description for the current-UTC-day card. */
74
- readonly todayPeriodDescription: "usage.todayPeriodDescription";
75
- /** Title for the current-UTC-week card (e.g. `'This week'`). */
76
- readonly thisWeekTitle: "usage.thisWeekTitle";
77
- /** Accessible period description for the current-UTC-week card. */
78
- readonly thisWeekPeriodDescription: "usage.thisWeekPeriodDescription";
79
- /** Title for the current-UTC-month card (e.g. `'This month'`). */
80
- readonly thisMonthTitle: "usage.thisMonthTitle";
81
- /** Accessible period description for the current-UTC-month card. */
82
- readonly thisMonthPeriodDescription: "usage.thisMonthPeriodDescription";
83
- /** Aria label when there is no limit. Receives `{ used: string }`. */
84
- readonly unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel";
85
- /** Aria label for a progress bar with a finite limit. Receives `{ used: string, total: string, percent: number }`. */
86
- readonly progressAriaLabel: "usage.progressAriaLabel";
87
- };
88
-
89
- /**
90
- * i18n key strings that the consuming app's translation bundle must define for
91
- * `mapUserUsageToModelLimits` and `mapOverallCostLimitsToPeriodStatuses` to produce
92
- * correctly translated strings. The values are the default key paths used by AI DIAL Chat.
93
- */
94
- export declare const USAGE_MODEL_LIMITS_I18N_KEYS: {
95
- /** Period label used in tooltip text. Receives no interpolation. */
96
- readonly todayPeriodDescription: "usage.todayPeriodDescription";
97
- /** Period label used in tooltip text. Receives no interpolation. */
98
- readonly thisWeekPeriodDescription: "usage.thisWeekPeriodDescription";
99
- /** Period label used in tooltip text. Receives no interpolation. */
100
- readonly thisMonthPeriodDescription: "usage.thisMonthPeriodDescription";
101
- /** Tooltip when the overall cost limit is running low. Receives `{ period: string }`. */
102
- readonly overallCostLimitRunningLowTooltip: "usage.overallCostLimitRunningLowTooltip";
103
- /** Tooltip when the overall cost limit is reached. Receives `{ period: string }`. */
104
- readonly overallCostLimitReachedTooltip: "usage.overallCostLimitReachedTooltip";
105
- /** Aria label for a metric cell with no data. */
106
- readonly unavailableLabel: "usage.unavailableLabel";
107
- /** Supporting label when a token limit follows the cost limit. */
108
- readonly followsCostLimitLabel: "usage.followsCostLimitLabel";
109
- /** Supporting label when there is no per-deployment token limit. */
110
- readonly noLimitLabel: "usage.noLimitLabel";
111
- /** Aria label when token usage has no limit but follows the cost limit. Receives `{ used: string }`. */
112
- readonly followsCostLimitAriaLabel: "usage.followsCostLimitAriaLabel";
113
- /** Aria label when there is no limit. Receives `{ used: string }`. */
114
- readonly unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel";
115
- /** Aria label for a progress bar with a finite limit. Receives `{ used: string, total: string, percent: number }`. */
116
- readonly progressAriaLabel: "usage.progressAriaLabel";
117
- /** Label for the spent-cost cell. Receives `{ amount: string }`. */
118
- readonly spentLabel: "usage.spentLabel";
119
- /** Type caption for an application (agent) row. Receives no interpolation. */
120
- readonly applicationTypeLabel: "usage.applicationTypeLabel";
121
- /** Supporting label on an application row's spent cost. Receives no interpolation. */
122
- readonly includesCalledModelsLabel: "usage.includesCalledModelsLabel";
123
- };
124
-
125
- export { }
1
+ export * from './entry-points/usage.js'
2
+ export {}
@@ -0,0 +1,130 @@
1
+ import { ResponseFormat, Conversation, DeploymentFeatures } from '@epam/ai-dial-chat-shared';
2
+ /** Values emitted by the chat-settings modal when the user clicks Save. */
3
+ export interface ChatSettingsValues {
4
+ /** Updated response format, present when the response-format field was shown. */
5
+ responseFormat?: ResponseFormat;
6
+ /** Updated system prompt, present when the system-prompt field was shown. */
7
+ systemPrompt?: string;
8
+ /** Updated temperature, present when the temperature field was shown. */
9
+ temperature?: number;
10
+ }
11
+ /** Chat settings a conversation starts with before the user changes any: Markdown, no system prompt, temperature `0.5`. */
12
+ export declare const DEFAULT_CHAT_SETTINGS: Readonly<Required<ChatSettingsValues>>;
13
+ /**
14
+ * Translatable strings the chat-settings form surfaces. Every field defaults
15
+ * to an English fallback inside the hook; pass translated values from the
16
+ * consuming app (e.g. via a `useTranslation`-backed labels hook).
17
+ */
18
+ export interface ChatSettingsFormLabels {
19
+ /** Dropdown item label and modal title. */
20
+ settings: string;
21
+ /** Toast/message text announced after a successful save. */
22
+ savedNotification: string;
23
+ /** Label for the response-format field. */
24
+ responseFormatLabel: string;
25
+ /** Helper text shown below the response-format field. */
26
+ responseFormatHint: string;
27
+ /** Label for the Markdown radio option. */
28
+ responseFormatMarkdown: string;
29
+ /** Label for the plain-text radio option. */
30
+ responseFormatPlainText: string;
31
+ /** Label for the system-prompt field. */
32
+ systemPromptLabel: string;
33
+ /** Tooltip for the system-prompt field. */
34
+ systemPromptTooltip: string;
35
+ /** Label for the temperature field. */
36
+ temperatureLabel: string;
37
+ /** Label for the precise end of the temperature slider. */
38
+ temperaturePrecise: string;
39
+ /** Label for the neutral midpoint of the temperature slider. */
40
+ temperatureNeutral: string;
41
+ /** Label for the creative end of the temperature slider. */
42
+ temperatureCreative: string;
43
+ /** Hint text shown below the temperature field. */
44
+ temperatureHint: string;
45
+ /** Save button label. */
46
+ saveLabel: string;
47
+ /** Tooltip shown on the disabled Save button. */
48
+ saveDisabledTooltip: string;
49
+ }
50
+ /** Configuration the chat-settings popover/modal consumes. */
51
+ export type UseChatSettingsFormConfigResult = {
52
+ /** Feature flags controlling which fields appear. */
53
+ features: {
54
+ systemPrompt: boolean;
55
+ temperature: boolean;
56
+ responseFormat: boolean;
57
+ };
58
+ /** Current response format pre-selected in the modal. */
59
+ responseFormat: ResponseFormat;
60
+ /** Current system prompt pre-populated in the modal. */
61
+ systemPrompt: string;
62
+ /** Current temperature pre-populated in the modal. */
63
+ temperature: number;
64
+ /** Called with updated values when the user clicks Save. */
65
+ onSave: (values: ChatSettingsValues) => void;
66
+ /** Label for the dropdown menu item. */
67
+ menuItemLabel: string;
68
+ /** Modal title. */
69
+ title: string;
70
+ /** Label for the response-format field. */
71
+ responseFormatLabel: string;
72
+ /** Helper text shown below the response-format field. */
73
+ responseFormatHint: string;
74
+ /** Label for the Markdown radio option. */
75
+ responseFormatMarkdownLabel: string;
76
+ /** Label for the plain-text radio option. */
77
+ responseFormatPlainTextLabel: string;
78
+ /** Label for the system-prompt field. */
79
+ systemPromptLabel: string;
80
+ /** Tooltip for the system-prompt field. */
81
+ systemPromptTooltip: string;
82
+ /** Label for the temperature field. */
83
+ temperatureLabel: string;
84
+ /** Slider endpoint labels, in `[precise, neutral, creative]` order. */
85
+ temperatureLabels: [string, string, string];
86
+ /** Hint text shown below the temperature field. */
87
+ temperatureHint: string;
88
+ /** Save button label. */
89
+ saveLabel: string;
90
+ /** Tooltip shown on the disabled Save button. */
91
+ saveDisabledTooltip: string;
92
+ };
93
+ interface LocalModeValues {
94
+ responseFormat: ResponseFormat;
95
+ systemPrompt: string;
96
+ temperature: number;
97
+ }
98
+ interface LocalModeParams {
99
+ mode: 'local';
100
+ values: LocalModeValues;
101
+ onValuesChange: (values: LocalModeValues) => void;
102
+ deploymentFeatures?: DeploymentFeatures;
103
+ /** True when the selected deployment is a Quick App. Its orchestrator sets its own fixed temperature, so the temperature field is forced off regardless of `deploymentFeatures`. */
104
+ isQuickApp?: boolean;
105
+ }
106
+ interface ConversationModeParams {
107
+ mode: 'conversation';
108
+ conversation: Conversation;
109
+ onConversationChange: (conversation: Conversation) => void;
110
+ deploymentFeatures?: DeploymentFeatures;
111
+ /** True when the conversation's deployment is a Quick App. Its orchestrator sets its own fixed temperature, so the temperature field is forced off regardless of `deploymentFeatures`. */
112
+ isQuickApp?: boolean;
113
+ }
114
+ type Params = LocalModeParams | ConversationModeParams;
115
+ /** Common, host-injected options shared by both modes. */
116
+ interface Options {
117
+ /** Translatable labels. Fields not provided fall back to English defaults. */
118
+ labels?: Partial<ChatSettingsFormLabels>;
119
+ /** Called after a successful save so the host can surface its own toast/notification. */
120
+ onSaved?: () => void;
121
+ }
122
+ /**
123
+ * Assembles the chat-settings form config (feature flags, current values, save
124
+ * handler, labels) for either an in-flight local composer or a persisted
125
+ * conversation. Headless: translation and notifications are the host's
126
+ * responsibility, supplied via `labels` and `onSaved`.
127
+ */
128
+ export declare const useChatSettingsFormConfig: (params: Params & Options) => UseChatSettingsFormConfigResult;
129
+ export {};
130
+ //# sourceMappingURL=useChatSettingsFormConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChatSettingsFormConfig.d.ts","sourceRoot":"","sources":["../../src/useChatSettingsFormConfig/useChatSettingsFormConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACxB,MAAM,2BAA2B,CAAC;AAGnC,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,iFAAiF;IACjF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2HAA2H;AAC3H,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAIxE,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6CAA6C;IAC7C,uBAAuB,EAAE,MAAM,CAAC;IAChC,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mDAAmD;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,8DAA8D;AAC9D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,qDAAqD;IACrD,QAAQ,EAAE;QACR,YAAY,EAAE,OAAO,CAAC;QACtB,WAAW,EAAE,OAAO,CAAC;QACrB,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,yDAAyD;IACzD,cAAc,EAAE,cAAc,CAAC;IAC/B,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,2BAA2B,EAAE,MAAM,CAAC;IACpC,6CAA6C;IAC7C,4BAA4B,EAAE,MAAM,CAAC;IACrC,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,mDAAmD;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,UAAU,eAAe;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,oLAAoL;IACpL,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,sBAAsB;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3D,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,0LAA0L;IAC1L,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,KAAK,MAAM,GAAG,eAAe,GAAG,sBAAsB,CAAC;AAEvD,0DAA0D;AAC1D,UAAU,OAAO;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACzC,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AA4BD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,GAAG,OAAO,KACvB,+BA+FF,CAAC"}
@@ -2,6 +2,10 @@ import { ResponseFormat as e } from "@epam/ai-dial-chat-shared";
2
2
  import { useCallback as t, useMemo as n } from "react";
3
3
  //#region src/useChatSettingsFormConfig/useChatSettingsFormConfig.ts
4
4
  var r = {
5
+ responseFormat: e.Markdown,
6
+ systemPrompt: "",
7
+ temperature: .5
8
+ }, i = {
5
9
  settings: "Settings",
6
10
  savedNotification: "Chat settings have been saved",
7
11
  responseFormatLabel: "Response format",
@@ -17,11 +21,11 @@ var r = {
17
21
  temperatureHint: "Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.",
18
22
  saveLabel: "Apply changes",
19
23
  saveDisabledTooltip: "Please select a response format"
20
- }, i = (t) => (t ?? "").toLowerCase().replace(/[^a-z]/g, "") === "plaintext" ? e.PlainText : e.Markdown, a = (e) => {
21
- let a = n(() => ({
22
- ...r,
24
+ }, a = (t) => (t ?? "").toLowerCase().replace(/[^a-z]/g, "") === "plaintext" ? e.PlainText : e.Markdown, o = (e) => {
25
+ let r = n(() => ({
26
+ ...i,
23
27
  ...e.labels
24
- }), [e.labels]), { onSaved: o } = e, s = e.mode === "local" ? e.values.responseFormat : i(e.conversation.responseFormat), c = e.mode === "local" ? e.values.systemPrompt : e.conversation.prompt ?? "", l = e.mode === "local" ? e.values.temperature : e.conversation.temperature ?? .5, u = t((t) => {
28
+ }), [e.labels]), { onSaved: o } = e, s = e.mode === "local" ? e.values.responseFormat : a(e.conversation.responseFormat), c = e.mode === "local" ? e.values.systemPrompt : e.conversation.prompt ?? "", l = e.mode === "local" ? e.values.temperature : e.conversation.temperature ?? .5, u = t((t) => {
25
29
  e.mode === "local" ? e.onValuesChange({
26
30
  responseFormat: t.responseFormat ?? e.values.responseFormat,
27
31
  systemPrompt: t.systemPrompt ?? e.values.systemPrompt,
@@ -43,32 +47,32 @@ var r = {
43
47
  systemPrompt: c,
44
48
  temperature: l,
45
49
  onSave: u,
46
- menuItemLabel: a.settings,
47
- title: a.settings,
48
- responseFormatLabel: a.responseFormatLabel,
49
- responseFormatHint: a.responseFormatHint,
50
- responseFormatMarkdownLabel: a.responseFormatMarkdown,
51
- responseFormatPlainTextLabel: a.responseFormatPlainText,
52
- systemPromptLabel: a.systemPromptLabel,
53
- systemPromptTooltip: a.systemPromptTooltip,
54
- temperatureLabel: a.temperatureLabel,
50
+ menuItemLabel: r.settings,
51
+ title: r.settings,
52
+ responseFormatLabel: r.responseFormatLabel,
53
+ responseFormatHint: r.responseFormatHint,
54
+ responseFormatMarkdownLabel: r.responseFormatMarkdown,
55
+ responseFormatPlainTextLabel: r.responseFormatPlainText,
56
+ systemPromptLabel: r.systemPromptLabel,
57
+ systemPromptTooltip: r.systemPromptTooltip,
58
+ temperatureLabel: r.temperatureLabel,
55
59
  temperatureLabels: [
56
- a.temperaturePrecise,
57
- a.temperatureNeutral,
58
- a.temperatureCreative
60
+ r.temperaturePrecise,
61
+ r.temperatureNeutral,
62
+ r.temperatureCreative
59
63
  ],
60
- temperatureHint: a.temperatureHint,
61
- saveLabel: a.saveLabel,
62
- saveDisabledTooltip: a.saveDisabledTooltip
64
+ temperatureHint: r.temperatureHint,
65
+ saveLabel: r.saveLabel,
66
+ saveDisabledTooltip: r.saveDisabledTooltip
63
67
  }), [
64
68
  u,
65
69
  d,
66
70
  f,
67
- a,
71
+ r,
68
72
  s,
69
73
  c,
70
74
  l
71
75
  ]);
72
76
  };
73
77
  //#endregion
74
- export { a as useChatSettingsFormConfig };
78
+ export { r as DEFAULT_CHAT_SETTINGS, o as useChatSettingsFormConfig };
@@ -0,0 +1,16 @@
1
+ /** Return value of {@link usePageFileDrag}. */
2
+ export interface UsePageFileDragResult {
3
+ /** Whether a file drag is currently over the page. */
4
+ isDragging: boolean;
5
+ /** Files dropped on the page, pending consumption by the caller. */
6
+ pendingFiles: File[];
7
+ /** Clears `pendingFiles` after the caller has processed them. */
8
+ onFilesConsumed: () => void;
9
+ }
10
+ /**
11
+ * Detects files being dragged over the whole page and exposes the dropped
12
+ * files, using only `document`-level drag events with an enter/leave
13
+ * counter to avoid flicker from child-element boundary crossings.
14
+ */
15
+ export declare const usePageFileDrag: (isAttachmentsAllowed?: boolean, isEnabled?: boolean) => UsePageFileDragResult;
16
+ //# sourceMappingURL=usePageFileDrag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePageFileDrag.d.ts","sourceRoot":"","sources":["../../src/usePageFileDrag/usePageFileDrag.ts"],"names":[],"mappings":"AAQA,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,iEAAiE;IACjE,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,8BAA2B,EAC3B,mBAAgB,KACf,qBA0EF,CAAC"}
@@ -10,13 +10,13 @@ var a = (a = !0, o = !0) => {
10
10
  }, [l]);
11
11
  return t(() => {
12
12
  let e = (e) => !!e.dataTransfer?.types.includes("Files"), t = (t) => {
13
- !p.current || !e(t) || (d.current += 1, c(!0));
13
+ p.current && e(t) && (d.current += 1, c(!0));
14
14
  }, n = (t) => {
15
- !p.current || !e(t) || (--d.current, d.current <= 0 && (d.current = 0, c(!1)));
15
+ p.current && e(t) && (--d.current, d.current <= 0 && (d.current = 0, c(!1)));
16
16
  }, r = (t) => {
17
17
  e(t) && (t.preventDefault(), p.current);
18
18
  }, i = (t) => {
19
- if (!(!e(t) || !p.current) && (t.preventDefault(), d.current = 0, c(!1), f.current)) {
19
+ if (e(t) && p.current && (t.preventDefault(), d.current = 0, c(!1), f.current)) {
20
20
  let e = Array.from(t.dataTransfer?.files ?? []);
21
21
  e.length > 0 && u((t) => [...t, ...e]);
22
22
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the maximum pixel width a resizable side panel may occupy without
3
+ * collapsing the main content area below `minContentAreaWidth`.
4
+ */
5
+ export declare const usePanelMaxWidth: (minContentAreaWidth: number) => number;
6
+ //# sourceMappingURL=usePanelMaxWidth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePanelMaxWidth.d.ts","sourceRoot":"","sources":["../../src/usePanelMaxWidth/usePanelMaxWidth.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,qBAAqB,MAAM,KAAG,MAG9D,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { ShareApi } from '@epam/ai-dial-chat-api-client';
2
+ import { ShareLinkAccess, ShareLinkData } from '@epam/ai-dial-share';
3
+ /** Result returned by {@link useShareLink}. */
4
+ export interface UseShareLinkResult {
5
+ /** Resolved share-link data, or `undefined` while loading or on error. */
6
+ data: ShareLinkData | undefined;
7
+ /** Whether the share link is still being created. */
8
+ isLoading: boolean;
9
+ /** Set when the share link could not be created. */
10
+ error: Error | null;
11
+ /** Requests a new share link for the given access levels. */
12
+ setAccess: (access: ShareLinkAccess[]) => void;
13
+ }
14
+ /**
15
+ * Resolves and manages share-link data for a DIAL Core resource.
16
+ *
17
+ * Accepts an already-configured `ShareApi` instance — this hook owns only
18
+ * the request lifecycle (loading/error, a stale-response guard, and
19
+ * re-fetch on access change), not the client's base URL, auth, or CSRF
20
+ * setup, which stay the caller's responsibility.
21
+ */
22
+ export declare const useShareLink: (shareApi: Pick<ShareApi, "createShareLink">, itemId: string, origin?: string) => UseShareLinkResult;
23
+ //# sourceMappingURL=useShareLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShareLink.d.ts","sourceRoot":"","sources":["../../src/useShareLink/useShareLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAYrE,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,6DAA6D;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;CAChD;AAcD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,EAC3C,QAAQ,MAAM,EACd,SAAQ,MAA+B,KACtC,kBAyDF,CAAC"}
@@ -17,6 +17,7 @@ var o = (e) => e.map((e) => e === i.Edit ? a.Edit : a.View), s = (e, t) => {
17
17
  g.current === t && d({
18
18
  url: s(n.url, l),
19
19
  expiresInDays: n.expiresInDays,
20
+ expiresInHours: n.expiresInHours,
20
21
  access: o(n.access)
21
22
  });
22
23
  } catch (e) {