@epam/ai-dial-chat-hooks 1.3.0-dev.29 → 1.3.0-dev.290

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 (699) hide show
  1. package/api-error/api-error.d.ts +32 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-error/api-error.js +31 -23
  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 +29 -38
  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 +117 -0
  72. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  73. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +108 -107
  74. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
  75. package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
  76. package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
  77. package/catalog/useCatalogItemDetails.d.ts +70 -0
  78. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  79. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  80. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  81. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +24 -24
  82. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  83. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  84. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  85. package/catalog/usePublishFolders/usePublishFolders.d.ts +81 -0
  86. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  87. package/catalog/usePublishFolders/usePublishFolders.js +32 -29
  88. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  89. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  90. package/catalog/useSkillItemDetails.d.ts +64 -0
  91. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  92. package/catalog/useSkillItemDetails.js +3 -3
  93. package/catalog.d.ts +2 -1436
  94. package/catalog.js +29 -23
  95. package/conversation/announcement-message.d.ts +61 -0
  96. package/conversation/announcement-message.d.ts.map +1 -0
  97. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  98. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  99. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  100. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  101. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  102. package/conversation/conversation-list.d.ts +6 -0
  103. package/conversation/conversation-list.d.ts.map +1 -0
  104. package/conversation/conversation-list.js +5 -0
  105. package/conversation/conversation-title-stream.d.ts +33 -0
  106. package/conversation/conversation-title-stream.d.ts.map +1 -0
  107. package/conversation/conversation-title-stream.js +103 -0
  108. package/conversation/conversation-transfer/async.d.ts +10 -0
  109. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  110. package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
  111. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  112. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  113. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  114. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  115. package/conversation/conversation-transfer/date.d.ts +5 -0
  116. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  117. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  118. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  119. package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
  120. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  121. package/conversation/conversation-transfer/export-conversation.js +19 -18
  122. package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
  123. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  124. package/conversation/conversation-transfer/import-conversation.js +65 -69
  125. package/conversation/conversation-transfer/progress.d.ts +60 -0
  126. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  127. package/conversation/conversation-transfer/progress.js +1 -1
  128. package/conversation/conversation-transfer/queue.d.ts +54 -0
  129. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  130. package/conversation/conversation-transfer/types.d.ts +36 -0
  131. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  132. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  133. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  134. package/conversation/conversation-transfer/zip-export.js +1 -7
  135. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  136. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  137. package/conversation/conversation-transfer/zip-import.js +1 -1
  138. package/conversation/create-chat-stream-api.d.ts +109 -0
  139. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  140. package/conversation/create-chat-stream-api.js +57 -47
  141. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  142. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  143. package/conversation/display-name-watch.d.ts +4 -0
  144. package/conversation/display-name-watch.d.ts.map +1 -0
  145. package/conversation/footer-message.d.ts +10 -0
  146. package/conversation/footer-message.d.ts.map +1 -0
  147. package/conversation/generation-registry.d.ts +30 -0
  148. package/conversation/generation-registry.d.ts.map +1 -0
  149. package/conversation/generation-registry.js +33 -0
  150. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  151. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  152. package/conversation/get-model-id-from-conversation-id.js +1 -1
  153. package/conversation/greeting.d.ts +18 -0
  154. package/conversation/greeting.d.ts.map +1 -0
  155. package/conversation/message-factory.d.ts +7 -0
  156. package/conversation/message-factory.d.ts.map +1 -0
  157. package/conversation/message-utils.d.ts +73 -0
  158. package/conversation/message-utils.d.ts.map +1 -0
  159. package/conversation/message-utils.js +14 -10
  160. package/conversation/overlay-messages.d.ts +5 -0
  161. package/conversation/overlay-messages.d.ts.map +1 -0
  162. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  163. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  164. package/conversation/scheduled-task-grouping.d.ts +48 -0
  165. package/conversation/scheduled-task-grouping.d.ts.map +1 -0
  166. package/conversation/scheduled-task-grouping.js +40 -0
  167. package/conversation/stage.d.ts +77 -0
  168. package/conversation/stage.d.ts.map +1 -0
  169. package/conversation/starter-option.d.ts +21 -0
  170. package/conversation/starter-option.d.ts.map +1 -0
  171. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +37 -0
  172. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  173. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
  174. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  175. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  176. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  177. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  178. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  179. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  180. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  181. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  182. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
  183. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
  184. package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
  185. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  186. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  187. package/conversation/useConversationExport/useConversationExport.js +87 -88
  188. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  189. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  190. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  191. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  192. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  193. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  194. package/conversation/useConversationHandlers/message-utils.js +2 -2
  195. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  196. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  197. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  198. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  199. package/conversation/useConversationHandlers/useConversationHandlers.js +41 -41
  200. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  201. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  202. package/conversation/useConversationImport/useConversationImport.js +24 -24
  203. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  204. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  205. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  206. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  207. package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
  208. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  209. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  210. package/conversation/useConversationScroll/useConversationScroll.js +2 -6
  211. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  212. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  213. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  214. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  215. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  216. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  217. package/conversation/useConversationStream/conversation-path.js +2 -2
  218. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  219. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  220. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  221. package/conversation/useConversationStream/generation-resume.d.ts +98 -0
  222. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  223. package/conversation/useConversationStream/generation-resume.js +93 -122
  224. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  225. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  226. package/conversation/useConversationStream/useConversationStream.js +251 -242
  227. package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
  228. package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
  229. package/conversation/useConversationTitleEnrichmentController.js +155 -0
  230. package/conversation/useDeploymentChangeTracking.d.ts +14 -0
  231. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
  232. package/conversation/useDeploymentChangeTracking.js +23 -0
  233. package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
  234. package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
  235. package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
  236. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  237. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  238. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  239. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  240. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  241. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  242. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  243. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  244. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  245. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +50 -0
  246. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  247. package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
  248. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
  249. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
  250. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
  251. package/conversation-overlay.d.ts +2 -7
  252. package/conversation-overlay.js +1 -2
  253. package/conversation-sources/stage-citations.d.ts +9 -0
  254. package/conversation-sources/stage-citations.d.ts.map +1 -0
  255. package/conversation-sources/stage-citations.js +8 -0
  256. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
  257. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
  258. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
  259. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  260. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  261. package/conversation-sources.d.ts +2 -25
  262. package/conversation-sources.js +3 -1
  263. package/conversation-transfer.d.ts +2 -190
  264. package/conversation.d.ts +2 -1372
  265. package/conversation.js +43 -32
  266. package/entry-points/attachments.d.ts +4 -0
  267. package/entry-points/attachments.d.ts.map +1 -0
  268. package/entry-points/catalog.d.ts +31 -0
  269. package/entry-points/catalog.d.ts.map +1 -0
  270. package/entry-points/conversation-overlay.d.ts +2 -0
  271. package/entry-points/conversation-overlay.d.ts.map +1 -0
  272. package/entry-points/conversation-sources.d.ts +4 -0
  273. package/entry-points/conversation-sources.d.ts.map +1 -0
  274. package/entry-points/conversation-transfer.d.ts +7 -0
  275. package/entry-points/conversation-transfer.d.ts.map +1 -0
  276. package/entry-points/conversation.d.ts +45 -0
  277. package/entry-points/conversation.d.ts.map +1 -0
  278. package/entry-points/external-services.d.ts +2 -0
  279. package/entry-points/external-services.d.ts.map +1 -0
  280. package/entry-points/file-manager-canvas.d.ts +3 -0
  281. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  282. package/entry-points/file-manager.d.ts +33 -0
  283. package/entry-points/file-manager.d.ts.map +1 -0
  284. package/entry-points/mcp-apps.d.ts +6 -0
  285. package/entry-points/mcp-apps.d.ts.map +1 -0
  286. package/entry-points/oauth.d.ts +10 -0
  287. package/entry-points/oauth.d.ts.map +1 -0
  288. package/entry-points/offline-credentials.d.ts +7 -0
  289. package/entry-points/offline-credentials.d.ts.map +1 -0
  290. package/entry-points/project.d.ts +13 -0
  291. package/entry-points/project.d.ts.map +1 -0
  292. package/entry-points/scheduled-tasks.d.ts +13 -0
  293. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  294. package/entry-points/scroll-anchoring.d.ts +2 -0
  295. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  296. package/entry-points/sharing.d.ts +3 -0
  297. package/entry-points/sharing.d.ts.map +1 -0
  298. package/entry-points/skill-editor.d.ts +11 -0
  299. package/entry-points/skill-editor.d.ts.map +1 -0
  300. package/entry-points/skills-state.d.ts +3 -0
  301. package/entry-points/skills-state.d.ts.map +1 -0
  302. package/entry-points/source-content.d.ts +2 -0
  303. package/entry-points/source-content.d.ts.map +1 -0
  304. package/entry-points/usage-limits.d.ts +8 -0
  305. package/entry-points/usage-limits.d.ts.map +1 -0
  306. package/entry-points/usage.d.ts +3 -0
  307. package/entry-points/usage.d.ts.map +1 -0
  308. package/entry-points/utils.d.ts +21 -0
  309. package/entry-points/utils.d.ts.map +1 -0
  310. package/entry-points/viewport-layout.d.ts +5 -0
  311. package/entry-points/viewport-layout.d.ts.map +1 -0
  312. package/external-services/useExternalServiceLogin.d.ts +109 -0
  313. package/external-services/useExternalServiceLogin.d.ts.map +1 -0
  314. package/external-services/useExternalServiceLogin.js +102 -0
  315. package/external-services.d.ts +2 -0
  316. package/external-services.js +1 -0
  317. package/file-manager-canvas.d.ts +2 -418
  318. package/file-manager-canvas.js +3 -2
  319. package/file-manager.d.ts +2 -1250
  320. package/file-manager.js +32 -30
  321. package/files/annotation.d.ts +10 -0
  322. package/files/annotation.d.ts.map +1 -0
  323. package/files/attachment-canvas.d.ts +135 -0
  324. package/files/attachment-canvas.d.ts.map +1 -0
  325. package/files/attachment-canvas.js +18 -10
  326. package/files/attachment-dto-to-display.d.ts +10 -0
  327. package/files/attachment-dto-to-display.d.ts.map +1 -0
  328. package/files/attachment-dto-to-display.js +13 -12
  329. package/files/attachment-types.d.ts +21 -0
  330. package/files/attachment-types.d.ts.map +1 -0
  331. package/files/attachment-types.js +1 -1
  332. package/files/browser-download.d.ts +9 -0
  333. package/files/browser-download.d.ts.map +1 -0
  334. package/files/browser-download.js +23 -0
  335. package/files/create-files-api.d.ts +52 -0
  336. package/files/create-files-api.d.ts.map +1 -0
  337. package/files/create-files-api.js +1 -1
  338. package/files/create-upload-file-with-progress.d.ts +44 -0
  339. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  340. package/files/create-upload-file-with-progress.js +50 -34
  341. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  342. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  343. package/files/dial-file-manager-copy-move.util.js +16 -16
  344. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  345. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  346. package/files/dial-file-manager-mapping.util.js +97 -69
  347. package/files/dial-file-manager-path.util.d.ts +48 -0
  348. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  349. package/files/dial-file-manager.model.d.ts +36 -0
  350. package/files/dial-file-manager.model.d.ts.map +1 -0
  351. package/files/dial-file-manager.types.d.ts +337 -0
  352. package/files/dial-file-manager.types.d.ts.map +1 -0
  353. package/files/dial-file-to-attachment.d.ts +26 -0
  354. package/files/dial-file-to-attachment.d.ts.map +1 -0
  355. package/files/dial-file-to-attachment.js +3 -3
  356. package/files/dial-file.d.ts +36 -0
  357. package/files/dial-file.d.ts.map +1 -0
  358. package/files/dial-file.js +20 -12
  359. package/files/dial-files-api.d.ts +71 -0
  360. package/files/dial-files-api.d.ts.map +1 -0
  361. package/files/download-destination.d.ts +31 -0
  362. package/files/download-destination.d.ts.map +1 -0
  363. package/files/download-progress.d.ts +33 -0
  364. package/files/download-progress.d.ts.map +1 -0
  365. package/files/download-progress.js +28 -0
  366. package/files/file-manager-variant.d.ts +3 -0
  367. package/files/file-manager-variant.d.ts.map +1 -0
  368. package/files/file-name.d.ts +19 -0
  369. package/files/file-name.d.ts.map +1 -0
  370. package/files/prepare-download-destination.d.ts +8 -0
  371. package/files/prepare-download-destination.d.ts.map +1 -0
  372. package/files/resolve-dial-file-api-path.d.ts +12 -0
  373. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  374. package/files/source-content.d.ts +28 -0
  375. package/files/source-content.d.ts.map +1 -0
  376. package/files/source-content.js +1 -1
  377. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  378. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  379. package/files/useDialFileListing/useDialFileListing.js +97 -109
  380. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  381. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  382. package/files/useDialFileManager/useDialFileManager.js +5 -2
  383. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  384. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  385. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  386. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  387. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  388. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  389. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  390. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  391. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  392. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  393. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  394. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  395. package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
  396. package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
  397. package/files/useDialFilePreview/useDialFilePreview.js +45 -0
  398. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  399. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  400. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  401. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  402. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
  403. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
  404. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
  405. package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
  406. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  407. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  408. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  409. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
  410. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
  411. package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
  412. package/index.d.ts +215 -6996
  413. package/index.d.ts.map +1 -0
  414. package/index.js +213 -150
  415. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  416. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  417. package/mcp-apps/mcp-apps-api-client.js +18 -17
  418. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  419. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  420. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +30 -0
  421. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  422. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
  423. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  424. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  425. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
  426. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  427. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  428. package/mcp-apps.d.ts +2 -256
  429. package/oauth/authorize-url.d.ts +16 -0
  430. package/oauth/authorize-url.d.ts.map +1 -0
  431. package/oauth/authorize-url.js +1 -1
  432. package/oauth/handshake.d.ts +30 -0
  433. package/oauth/handshake.d.ts.map +1 -0
  434. package/oauth/handshake.js +3 -10
  435. package/oauth/models.d.ts +81 -0
  436. package/oauth/models.d.ts.map +1 -0
  437. package/oauth/popup.d.ts +30 -0
  438. package/oauth/popup.d.ts.map +1 -0
  439. package/oauth/popup.js +19 -17
  440. package/oauth/toolset-id.d.ts +60 -0
  441. package/oauth/toolset-id.d.ts.map +1 -0
  442. package/oauth/toolset-id.js +9 -2
  443. package/oauth/types.d.ts +84 -0
  444. package/oauth/types.d.ts.map +1 -0
  445. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  446. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  447. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  448. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +85 -0
  449. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  450. package/oauth/useToolsetLogin/useToolsetLogin.js +42 -22
  451. package/oauth.d.ts +2 -472
  452. package/oauth.js +8 -8
  453. package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
  454. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  455. package/offline-credentials/map-offline-credentials-response.js +17 -0
  456. package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
  457. package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
  458. package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
  459. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  460. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  461. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  462. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
  463. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  464. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
  465. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  466. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  467. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  468. package/offline-credentials.d.ts +2 -0
  469. package/offline-credentials.js +7 -0
  470. package/package.json +49 -25
  471. package/project/project-events.d.ts +14 -0
  472. package/project/project-events.d.ts.map +1 -0
  473. package/project/project-events.js +25 -0
  474. package/project/project-form-errors.d.ts +23 -0
  475. package/project/project-form-errors.d.ts.map +1 -0
  476. package/project/project-form-errors.js +46 -0
  477. package/project/project-limits.d.ts +17 -0
  478. package/project/project-limits.d.ts.map +1 -0
  479. package/project/project-limits.js +11 -0
  480. package/project/project-mapping.d.ts +11 -0
  481. package/project/project-mapping.d.ts.map +1 -0
  482. package/project/project-mapping.js +36 -0
  483. package/project/project-refresh.d.ts +12 -0
  484. package/project/project-refresh.d.ts.map +1 -0
  485. package/project/project-refresh.js +6 -0
  486. package/project/project-watch-stream.d.ts +26 -0
  487. package/project/project-watch-stream.d.ts.map +1 -0
  488. package/project/project-watch-stream.js +39 -0
  489. package/project/projects-api-client.d.ts +170 -0
  490. package/project/projects-api-client.d.ts.map +1 -0
  491. package/project/projects-api-client.js +87 -0
  492. package/project/use-project-actions.d.ts +48 -0
  493. package/project/use-project-actions.d.ts.map +1 -0
  494. package/project/use-project-actions.js +89 -0
  495. package/project/use-project-conversations.d.ts +29 -0
  496. package/project/use-project-conversations.d.ts.map +1 -0
  497. package/project/use-project-conversations.js +182 -0
  498. package/project/use-project-submit.d.ts +49 -0
  499. package/project/use-project-submit.d.ts.map +1 -0
  500. package/project/use-project-submit.js +73 -0
  501. package/project/use-project-watch.d.ts +24 -0
  502. package/project/use-project-watch.d.ts.map +1 -0
  503. package/project/use-project-watch.js +41 -0
  504. package/project/use-project.d.ts +23 -0
  505. package/project/use-project.d.ts.map +1 -0
  506. package/project/use-project.js +73 -0
  507. package/project/use-projects.d.ts +27 -0
  508. package/project/use-projects.d.ts.map +1 -0
  509. package/project/use-projects.js +92 -0
  510. package/project.d.ts +2 -0
  511. package/project.js +13 -0
  512. package/prompt/export-prompt.d.ts +31 -0
  513. package/prompt/export-prompt.d.ts.map +1 -0
  514. package/prompt/prompt-resource.d.ts +30 -0
  515. package/prompt/prompt-resource.d.ts.map +1 -0
  516. package/prompt/prompt.d.ts +45 -0
  517. package/prompt/prompt.d.ts.map +1 -0
  518. package/prompt/prompt.js +7 -3
  519. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  520. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  521. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  522. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  523. package/scheduled-task/active-scheduled-task.js +18 -0
  524. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  525. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  526. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  527. package/scheduled-task/scheduled-task-description.d.ts +41 -0
  528. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  529. package/scheduled-task/scheduled-task-description.js +37 -28
  530. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  531. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  532. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  533. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  534. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  535. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  536. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  537. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  538. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  539. package/scheduled-task/scheduled-task-trigger.js +68 -38
  540. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  541. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  542. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  543. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  544. package/scheduled-task/use-scheduled-task-runs.js +19 -31
  545. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  546. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  547. package/scheduled-task/use-scheduled-tasks.js +1 -1
  548. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  549. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  550. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  551. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  552. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  553. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  554. package/scheduled-tasks.d.ts +2 -256
  555. package/scheduled-tasks.js +6 -1
  556. package/scroll-anchoring.d.ts +2 -50
  557. package/scroll-anchoring.js +1 -2
  558. package/shared/application-schema.d.ts +16 -0
  559. package/shared/application-schema.d.ts.map +1 -0
  560. package/shared/application-schema.js +3 -3
  561. package/shared/browser-timezone.d.ts +7 -0
  562. package/shared/browser-timezone.d.ts.map +1 -0
  563. package/shared/client-channel.d.ts +53 -0
  564. package/shared/client-channel.d.ts.map +1 -0
  565. package/shared/client-channel.js +6 -0
  566. package/shared/cron-day-of-month.d.ts +21 -0
  567. package/shared/cron-day-of-month.d.ts.map +1 -0
  568. package/shared/cron-day-of-month.js +10 -10
  569. package/shared/cron-weekday.d.ts +5 -0
  570. package/shared/cron-weekday.d.ts.map +1 -0
  571. package/shared/custom-apps.d.ts +7 -0
  572. package/shared/custom-apps.d.ts.map +1 -0
  573. package/shared/external-services.d.ts +16 -0
  574. package/shared/external-services.d.ts.map +1 -0
  575. package/shared/formatting.d.ts +5 -0
  576. package/shared/formatting.d.ts.map +1 -0
  577. package/shared/locale.d.ts +45 -0
  578. package/shared/locale.d.ts.map +1 -0
  579. package/shared/locale.js +2 -2
  580. package/shared/read-sse-events.d.ts +10 -0
  581. package/shared/read-sse-events.d.ts.map +1 -0
  582. package/shared/read-sse-events.js +33 -0
  583. package/shared/serialized-writer.d.ts +10 -0
  584. package/shared/serialized-writer.d.ts.map +1 -0
  585. package/shared/serialized-writer.js +35 -0
  586. package/shared/string-utils.d.ts +11 -0
  587. package/shared/string-utils.d.ts.map +1 -0
  588. package/shared/theme-colors.d.ts +16 -0
  589. package/shared/theme-colors.d.ts.map +1 -0
  590. package/shared/theme-colors.js +14 -0
  591. package/shared/toolset-login-events.d.ts +15 -0
  592. package/shared/toolset-login-events.d.ts.map +1 -0
  593. package/shared/usage-stat.d.ts +3 -0
  594. package/shared/usage-stat.d.ts.map +1 -0
  595. package/shared/usage-stat.js +4 -0
  596. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  597. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  598. package/shared/usePersistedState/usePersistedState.js +24 -0
  599. package/sharing.d.ts +2 -65
  600. package/skill/skill-archive.d.ts +7 -0
  601. package/skill/skill-archive.d.ts.map +1 -0
  602. package/skill/skill-file-batch-validation.d.ts +74 -0
  603. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  604. package/skill/skill-file-batch-validation.js +34 -33
  605. package/skill/skill-file-preview.d.ts +25 -0
  606. package/skill/skill-file-preview.d.ts.map +1 -0
  607. package/skill/skill-lookup.d.ts +20 -0
  608. package/skill/skill-lookup.d.ts.map +1 -0
  609. package/skill/skill-lookup.js +12 -0
  610. package/skill/skill-manifest.d.ts +28 -0
  611. package/skill/skill-manifest.d.ts.map +1 -0
  612. package/skill/skill-types.d.ts +46 -0
  613. package/skill/skill-types.d.ts.map +1 -0
  614. package/skill/skill-types.js +1 -1
  615. package/skill/skill.d.ts +160 -0
  616. package/skill/skill.d.ts.map +1 -0
  617. package/skill/skill.js +12 -15
  618. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  619. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  620. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  621. package/skill/useSkillEditorLoad.d.ts +74 -0
  622. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  623. package/skill/useSkillEditorSubmit.d.ts +127 -0
  624. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  625. package/skill/useSkillEditorSubmit.js +77 -79
  626. package/skill/useSkillFileActions.d.ts +62 -0
  627. package/skill/useSkillFileActions.d.ts.map +1 -0
  628. package/skill/useSkillFileActions.js +36 -21
  629. package/skill/useSkillFilePreview.d.ts +38 -0
  630. package/skill/useSkillFilePreview.d.ts.map +1 -0
  631. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  632. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  633. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  634. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  635. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  636. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  637. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  638. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  639. package/skill-editor.d.ts +2 -655
  640. package/skill-editor.js +3 -1
  641. package/skills-state.d.ts +2 -40
  642. package/skills-state.js +3 -2
  643. package/source-content.d.ts +2 -29
  644. package/source-content.js +1 -2
  645. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  646. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  647. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  648. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  649. package/usage/map-user-usage-to-model-limits.js +21 -21
  650. package/usage/usage-banner-source.d.ts +24 -0
  651. package/usage/usage-banner-source.d.ts.map +1 -0
  652. package/usage/usage-banner-source.js +61 -0
  653. package/usage/usage-period.d.ts +7 -0
  654. package/usage/usage-period.d.ts.map +1 -0
  655. package/usage/usage-period.js +6 -0
  656. package/usage/usage-reset-time.d.ts +78 -0
  657. package/usage/usage-reset-time.d.ts.map +1 -0
  658. package/usage/usage-reset-time.js +82 -0
  659. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  660. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  661. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  662. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  663. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  664. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  665. package/usage/useUsageData/useUsageData.d.ts +28 -0
  666. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  667. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  668. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  669. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  670. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  671. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  672. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  673. package/usage-limits.d.ts +2 -0
  674. package/usage-limits.js +9 -0
  675. package/usage.d.ts +2 -125
  676. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
  677. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  678. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  679. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  680. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  681. package/usePageFileDrag/usePageFileDrag.js +3 -3
  682. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  683. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  684. package/useShareLink/useShareLink.d.ts +23 -0
  685. package/useShareLink/useShareLink.d.ts.map +1 -0
  686. package/useShareLink/useShareLink.js +18 -17
  687. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  688. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  689. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  690. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  691. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  692. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  693. package/utils.d.ts +2 -404
  694. package/utils.js +21 -17
  695. package/viewport-layout/canvas-width.d.ts +39 -0
  696. package/viewport-layout/canvas-width.d.ts.map +1 -0
  697. package/viewport-layout/canvas-width.js +23 -0
  698. package/viewport-layout.d.ts +2 -27
  699. package/viewport-layout.js +2 -1
package/skills-state.d.ts CHANGED
@@ -1,40 +1,2 @@
1
- import { SkillCatalogListResponseDto } from '@epam/ai-dial-chat-api-client';
2
- import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
3
-
4
- /**
5
- * Fetches all skill namespaces with a gated single request: clears state
6
- * immediately when `enabled` is false, defers the fetch until `ready` is true,
7
- * and exposes `refetch` / `mergeSharedSkill` for manual updates.
8
- * Does not import any feature-flag hook, auth enum, or app context.
9
- */
10
- export declare const useSkillsState: ({ listSkills, enabled, ready, }: UseSkillsStateParams) => UseSkillsStateResult;
11
-
12
- /** Parameters for {@link useSkillsState}. */
13
- export declare interface UseSkillsStateParams {
14
- /** Fetches the aggregate skill listing from the server. */
15
- listSkills: () => Promise<SkillCatalogListResponseDto>;
16
- /** Whether the Skills feature is enabled in the current overlay/tenant config. */
17
- enabled: boolean;
18
- /** Whether the user session is ready for API calls (auth has settled). */
19
- ready: boolean;
20
- }
21
-
22
- /** Result returned by {@link useSkillsState}. */
23
- export declare interface UseSkillsStateResult {
24
- /** Skills in the caller's own bucket. */
25
- skills: SkillMetadataItemDto[];
26
- /** Skills in the organisation bucket. */
27
- publicSkills: SkillMetadataItemDto[];
28
- /** Skills other users shared with the caller. */
29
- sharedWithMe: SkillMetadataItemDto[];
30
- /** True until the aggregate listing has settled. */
31
- isLoading: boolean;
32
- /** Rejection reason of the most recent failed listing, or `null`. */
33
- error: unknown;
34
- /** Re-reads personal, shared, and organisation skills. */
35
- refetch: () => Promise<void>;
36
- /** Upserts a single skill into the shared-with-me list by URL identity. */
37
- mergeSharedSkill: (item: SkillMetadataItemDto) => void;
38
- }
39
-
40
- export { }
1
+ export * from './entry-points/skills-state.js'
2
+ export {}
package/skills-state.js CHANGED
@@ -1,2 +1,3 @@
1
- import { useSkillsState as e } from "./skill/useSkillsState/useSkillsState.js";
2
- export { e as useSkillsState };
1
+ import { findSkillByUrl as e } from "./skill/skill-lookup.js";
2
+ import { useSkillsState as t } from "./skill/useSkillsState/useSkillsState.js";
3
+ export { e as findSkillByUrl, t as useSkillsState };
@@ -1,29 +1,2 @@
1
- /**
2
- * Returns the last path segment of `url` — its file name — for both absolute
3
- * URLs and DIAL-relative resource paths such as
4
- * `files/<bucket>/qa-routed-source.html`. Any query string or hash is dropped
5
- * and percent escapes are decoded. Returns an empty string when no segment can
6
- * be extracted. Used to classify a resource by extension when its display name
7
- * is a citation title rather than a file name.
8
- */
9
- export declare const getUrlFileName: (url: string) => string;
10
-
11
- /** Returns true when an external (non-DIAL) source URL should be opened in the canvas rather than a new browser tab. */
12
- export declare const isExternalSourcePreviewable: (contentType: string, url: string) => boolean;
13
-
14
- /**
15
- * Returns the content type to trust for an external citation source: `contentType`
16
- * unchanged when it is already an image/audio/PDF/document-renderer marker,
17
- * otherwise the type implied by `url`'s path extension (`application/pdf` for
18
- * `.pdf`, the canonical MIME for `.docx`/`.xlsx`/`.pptx`/`.csv`) when that
19
- * extension is recognized, otherwise `contentType` unchanged.
20
- *
21
- * Web-search grounding APIs label every reference — PDFs and Office documents
22
- * included — as `text/markdown`, so a mislabeled `contentType` must not win
23
- * over a recognized URL extension: doing so previously sent a PDF's raw bytes
24
- * into the markdown/text canvas viewer, rendering garbled text instead of
25
- * opening the PDF/OOXML viewer.
26
- */
27
- export declare const resolveExternalSourceContentType: (contentType: string, url: string) => string;
28
-
29
- export { }
1
+ export * from './entry-points/source-content.js'
2
+ export {}
package/source-content.js CHANGED
@@ -1,2 +1 @@
1
- import { getUrlFileName as e, isExternalSourcePreviewable as t, resolveExternalSourceContentType as n } from "./files/source-content.js";
2
- export { e as getUrlFileName, t as isExternalSourcePreviewable, n as resolveExternalSourceContentType };
1
+ export { getUrlFileName, isExternalSourcePreviewable, resolveExternalSourceContentType } from "./files/source-content.js";
@@ -0,0 +1,39 @@
1
+ import { UserLimitStatsResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ import { UsageLimitCardData } from '@epam/ai-dial-usage-dashboard';
3
+ import { ResetTimeDisplay } from './usage-reset-time';
4
+ /** A translate function compatible with i18next's `TFunction`. */
5
+ type Translate = (key: string, options?: Record<string, unknown>) => string;
6
+ /** Formats a raw `resetsAt` into display strings, or returns `undefined` when it cannot be formatted. */
7
+ export type FormatResetTime = (resetsAt: string | undefined) => ResetTimeDisplay | undefined;
8
+ /**
9
+ * i18n key strings that the consuming app's translation bundle must define for
10
+ * `mapUsageDataToDashboard` to produce correctly translated strings. The
11
+ * values are the default key paths used by AI DIAL Chat.
12
+ */
13
+ export declare const USAGE_DATA_I18N_KEYS: {
14
+ /** Title for the current-UTC-day card (e.g. `'Today'`). */
15
+ readonly todayTitle: "usage.todayTitle";
16
+ /** Accessible period description for the current-UTC-day card. */
17
+ readonly todayPeriodDescription: "usage.todayPeriodDescription";
18
+ /** Title for the current-UTC-week card (e.g. `'This week'`). */
19
+ readonly thisWeekTitle: "usage.thisWeekTitle";
20
+ /** Accessible period description for the current-UTC-week card. */
21
+ readonly thisWeekPeriodDescription: "usage.thisWeekPeriodDescription";
22
+ /** Title for the current-UTC-month card (e.g. `'This month'`). */
23
+ readonly thisMonthTitle: "usage.thisMonthTitle";
24
+ /** Accessible period description for the current-UTC-month card. */
25
+ readonly thisMonthPeriodDescription: "usage.thisMonthPeriodDescription";
26
+ /** Aria label when there is no limit. Receives `{ used: string }`. */
27
+ readonly unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel";
28
+ /** Aria label for a progress bar with a finite limit. Receives `{ used: string, total: string, percent: number }`. */
29
+ readonly progressAriaLabel: "usage.progressAriaLabel";
30
+ };
31
+ /**
32
+ * Maps a `UserLimitStatsResponseDto` into `UsageLimitCardGroup`'s `cards` prop,
33
+ * in Today / This week / This month order. A period is omitted entirely when
34
+ * the response carries no usable stat for it. Each card's reset trio comes from
35
+ * `formatResetTime`, and is absent when that callback returns `undefined`.
36
+ */
37
+ export declare const mapUsageDataToDashboard: (usage: UserLimitStatsResponseDto | undefined, t: Translate, formatResetTime: FormatResetTime) => UsageLimitCardData[];
38
+ export {};
39
+ //# sourceMappingURL=map-usage-data-to-dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-usage-data-to-dashboard.d.ts","sourceRoot":"","sources":["../../src/usage/map-usage-data-to-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,kEAAkE;AAClE,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;AAE5E,yGAAyG;AACzG,MAAM,MAAM,eAAe,GAAG,CAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,KACzB,gBAAgB,GAAG,SAAS,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAC/B,2DAA2D;;IAE3D,kEAAkE;;IAElE,gEAAgE;;IAEhE,mEAAmE;;IAEnE,kEAAkE;;IAElE,oEAAoE;;IAEpE,sEAAsE;;IAEtE,sHAAsH;;CAE9G,CAAC;AA8FX;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,yBAAyB,GAAG,SAAS,EAC5C,GAAG,SAAS,EACZ,iBAAiB,eAAe,KAC/B,kBAAkB,EAoCpB,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { DeploymentItemDto, UserLimitStatsResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ import { ModelLimitPeriodStatuses, ModelLimitRow } from '@epam/ai-dial-usage-dashboard';
3
+ import { FormatResetTime } from './map-usage-data-to-dashboard';
4
+ export type { FormatResetTime } from './map-usage-data-to-dashboard';
5
+ /** A translate function compatible with i18next's `TFunction`. */
6
+ type Translate = (key: string, options?: Record<string, unknown>) => string;
7
+ /** A callback that resolves an icon URL from a deployment's raw `iconUrl` field. */
8
+ type ResolveIconUrl = (iconUrl: string | undefined) => string | undefined;
9
+ /** A callback that resolves a display name from a localized-text value. */
10
+ type ResolveDisplayName = (name: string | Record<string, string> | undefined | null, locale: string) => string;
11
+ /**
12
+ * i18n key strings that the consuming app's translation bundle must define for
13
+ * `mapUserUsageToModelLimits` and `mapOverallCostLimitsToPeriodStatuses` to produce
14
+ * correctly translated strings. The values are the default key paths used by AI DIAL Chat.
15
+ */
16
+ export declare const USAGE_MODEL_LIMITS_I18N_KEYS: {
17
+ /** Period label used in tooltip text. Receives no interpolation. */
18
+ readonly todayPeriodDescription: "usage.todayPeriodDescription";
19
+ /** Period label used in tooltip text. Receives no interpolation. */
20
+ readonly thisWeekPeriodDescription: "usage.thisWeekPeriodDescription";
21
+ /** Period label used in tooltip text. Receives no interpolation. */
22
+ readonly thisMonthPeriodDescription: "usage.thisMonthPeriodDescription";
23
+ /** Tooltip when the overall cost limit is running low. Receives `{ period: string }`. */
24
+ readonly overallCostLimitRunningLowTooltip: "usage.overallCostLimitRunningLowTooltip";
25
+ /** Tooltip when the overall cost limit is reached. Receives `{ period: string }`. */
26
+ readonly overallCostLimitReachedTooltip: "usage.overallCostLimitReachedTooltip";
27
+ /** Aria label for a metric cell with no data. */
28
+ readonly unavailableLabel: "usage.unavailableLabel";
29
+ /** Supporting label when a token limit follows the cost limit. */
30
+ readonly followsCostLimitLabel: "usage.followsCostLimitLabel";
31
+ /** Supporting label when there is no per-deployment token limit. */
32
+ readonly noLimitLabel: "usage.noLimitLabel";
33
+ /** Aria label when token usage has no limit but follows the cost limit. Receives `{ used: string }`. */
34
+ readonly followsCostLimitAriaLabel: "usage.followsCostLimitAriaLabel";
35
+ /** Aria label when there is no limit. Receives `{ used: string }`. */
36
+ readonly unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel";
37
+ /** Aria label for a progress bar with a finite limit. Receives `{ used: string, total: string, percent: number }`. */
38
+ readonly progressAriaLabel: "usage.progressAriaLabel";
39
+ /** Label for the spent-cost cell. Receives `{ amount: string }`. */
40
+ readonly spentLabel: "usage.spentLabel";
41
+ /** Type caption for an application (agent) row. Receives no interpolation. */
42
+ readonly applicationTypeLabel: "usage.applicationTypeLabel";
43
+ /** Supporting label on an application row's spent cost. Receives no interpolation. */
44
+ readonly includesCalledModelsLabel: "usage.includesCalledModelsLabel";
45
+ };
46
+ /**
47
+ * Maps the same top-level Cost budgets used by the aggregate cards into table-header state.
48
+ *
49
+ * @param formatResetTime - Formats each period's top-level `resetsAt` into the header's reset trio. Omit it to produce statuses with no reset fields.
50
+ */
51
+ export declare const mapOverallCostLimitsToPeriodStatuses: (usage: UserLimitStatsResponseDto | undefined, activeLocale: string, t: Translate, formatResetTime?: FormatResetTime) => ModelLimitPeriodStatuses;
52
+ /**
53
+ * Maps `usage.deployments` into `ModelLimitsSection`'s `rows` prop, joined with model or application
54
+ * identity from `deploymentItems`. Rows are included only when any displayed period stat has nonzero
55
+ * usage (Cost stats only, for an application). Order follows `Object.keys(deployments)` —
56
+ * `deploymentItems` is enrichment-only.
57
+ *
58
+ * @param resolveIconUrl - Resolves a deployment's raw `iconUrl` to the URL the avatar should load.
59
+ * @param resolveDisplayName - Resolves a localized-text map or plain string to the display name for `activeLocale`.
60
+ */
61
+ export declare const mapUserUsageToModelLimits: (usage: UserLimitStatsResponseDto | undefined, deploymentItems: DeploymentItemDto[], activeLocale: string, t: Translate, resolveIconUrl: ResolveIconUrl, resolveDisplayName: ResolveDisplayName) => ModelLimitRow[];
62
+ //# sourceMappingURL=map-user-usage-to-model-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-user-usage-to-model-limits.d.ts","sourceRoot":"","sources":["../../src/usage/map-user-usage-to-model-limits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAGjB,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAIV,wBAAwB,EACxB,aAAa,EACd,MAAM,+BAA+B,CAAC;AAMvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,kEAAkE;AAClE,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;AAE5E,oFAAoF;AACpF,KAAK,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;AAE1E,2EAA2E;AAC3E,KAAK,kBAAkB,GAAG,CACxB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,EACxD,MAAM,EAAE,MAAM,KACX,MAAM,CAAC;AAmBZ;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;IACvC,oEAAoE;;IAEpE,oEAAoE;;IAEpE,oEAAoE;;IAEpE,yFAAyF;;IAEzF,qFAAqF;;IAErF,iDAAiD;;IAEjD,kEAAkE;;IAElE,oEAAoE;;IAEpE,wGAAwG;;IAExG,sEAAsE;;IAEtE,sHAAsH;;IAEtH,oEAAoE;;IAEpE,8EAA8E;;IAE9E,sFAAsF;;CAE9E,CAAC;AA6HX;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,GAC/C,OAAO,yBAAyB,GAAG,SAAS,EAC5C,cAAc,MAAM,EACpB,GAAG,SAAS,EACZ,kBAAiB,eAA6B,KAC7C,wBAsBD,CAAC;AAkMH;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO,yBAAyB,GAAG,SAAS,EAC5C,iBAAiB,iBAAiB,EAAE,EACpC,cAAc,MAAM,EACpB,GAAG,SAAS,EACZ,gBAAgB,cAAc,EAC9B,oBAAoB,kBAAkB,KACrC,aAAa,EAgIf,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { normalizeDeploymentId as e } from "../catalog/deployment-id.js";
2
- import { formatCost as t } from "@epam/ai-dial-chat-shared";
3
- import { DeploymentItemDtoTypeEnum as n } from "@epam/ai-dial-chat-api-client";
2
+ import { DeploymentItemDtoTypeEnum as t } from "@epam/ai-dial-chat-api-client";
3
+ import { formatCost as n } from "@epam/ai-dial-chat-shared";
4
4
  import { ModelLimitMetricKind as r, ModelLimitStatus as i } from "@epam/ai-dial-usage-dashboard";
5
5
  //#region src/usage/map-user-usage-to-model-limits.ts
6
6
  var a = 2 ** 53, o = 75, s = new Intl.NumberFormat(void 0, {
@@ -95,9 +95,9 @@ var a = 2 ** 53, o = 75, s = new Intl.NumberFormat(void 0, {
95
95
  percent: Math.round(m)
96
96
  })
97
97
  };
98
- }, x = (e, n) => {
99
- if (!f(e)) return y(n);
100
- let i = Math.max(0, e.used), o = n(l.spentLabel, { amount: t(i) });
98
+ }, x = (e, t) => {
99
+ if (!f(e)) return y(t);
100
+ let i = Math.max(0, e.used), o = t(l.spentLabel, { amount: n(i) });
101
101
  if (e.total >= a) return {
102
102
  kind: r.Unlimited,
103
103
  usedLabel: o,
@@ -107,12 +107,12 @@ var a = 2 ** 53, o = 75, s = new Intl.NumberFormat(void 0, {
107
107
  return {
108
108
  kind: r.Finite,
109
109
  usedLabel: o,
110
- totalLabel: t(s),
110
+ totalLabel: n(s),
111
111
  usedPercent: c,
112
112
  status: p(c),
113
- ariaLabel: n(l.progressAriaLabel, {
114
- used: t(i),
115
- total: t(s),
113
+ ariaLabel: t(l.progressAriaLabel, {
114
+ used: n(i),
115
+ total: n(s),
116
116
  percent: Math.round(c)
117
117
  })
118
118
  };
@@ -135,31 +135,31 @@ var a = 2 ** 53, o = 75, s = new Intl.NumberFormat(void 0, {
135
135
  supportingLabel: n(l.includesCalledModelsLabel)
136
136
  } : i
137
137
  };
138
- }, E = (e) => e.some((e) => f(e) && e.used > 0), D = (t, r, i, a, o, s) => {
139
- let c = t?.deployments;
138
+ }, E = (e) => e.some((e) => f(e) && e.used > 0), D = (n, r, i, a, o, s) => {
139
+ let c = n?.deployments;
140
140
  if (c == null) return [];
141
- let d = new Map(r.filter((e) => e.type === n.Model || e.type === n.Application).map((t) => [e(t.id), t])), f = v(t, i, a);
142
- return Object.keys(c).map((t) => {
143
- let r = d.get(e(t)), p = r == null ? t : s(r.displayName, i) || r.id, m = c[t], h = o(r?.iconUrl);
144
- if (r?.type === n.Application) {
145
- let e = T(m, u.day, a), n = T(m, u.week, a), i = T(m, u.month, a);
141
+ let d = new Map(r.filter((e) => e.type === t.Model || e.type === t.Application).map((t) => [e(t.id), t])), f = v(n, i, a);
142
+ return Object.keys(c).map((n) => {
143
+ let r = d.get(e(n)), p = r == null ? n : s(r.displayName, i) || r.id, m = c[n], h = o(r?.iconUrl);
144
+ if (r?.type === t.Application) {
145
+ let e = T(m, u.day, a), t = T(m, u.week, a), i = T(m, u.month, a);
146
146
  return {
147
147
  row: {
148
- id: t,
148
+ id: n,
149
149
  name: p,
150
150
  version: r.displayVersion,
151
151
  avatarSrc: h,
152
152
  typeLabel: a(l.applicationTypeLabel),
153
153
  day: e,
154
- week: n,
154
+ week: t,
155
155
  month: i,
156
156
  status: w([
157
157
  e.tokens,
158
- n.tokens,
158
+ t.tokens,
159
159
  i.tokens
160
160
  ], [
161
161
  e.cost,
162
- n.cost,
162
+ t.cost,
163
163
  i.cost
164
164
  ], [
165
165
  f.day.status,
@@ -173,7 +173,7 @@ var a = 2 ** 53, o = 75, s = new Intl.NumberFormat(void 0, {
173
173
  let g = S(m, u.day, f.day.status, a), _ = S(m, u.week, f.week.status, a), v = S(m, u.month, f.month.status, a), y = Object.values(u).flatMap(({ cost: e, tokens: t }) => [m[e], m[t]]);
174
174
  return {
175
175
  row: {
176
- id: t,
176
+ id: n,
177
177
  name: p,
178
178
  version: r?.displayVersion,
179
179
  avatarSrc: h,
@@ -0,0 +1,24 @@
1
+ import { UsageLimitBannerSeverity } from '@epam/ai-dial-conversation-input';
2
+ import { isCappedStat } from '../shared/usage-stat';
3
+ import { UsagePeriod } from './usage-period';
4
+ import { UsageLimitsSources } from './useDeploymentUsageLimits/useDeploymentUsageLimits';
5
+ export { isCappedStat };
6
+ /** The day/week/month usage stat the composer banner reports on, and how close it is to its limit. */
7
+ export interface UsageBannerSource {
8
+ /** Calendar period of the stat. */
9
+ period: UsagePeriod;
10
+ /** `Reached` at or above 100%, otherwise `Warning`. */
11
+ severity: UsageLimitBannerSeverity;
12
+ /** Consumed share of the stat's limit, rounded and clamped to 0–100. */
13
+ usedPercent: number;
14
+ /** DIAL Core's `resetsAt` for the stat, when it sent one. */
15
+ resetsAt: string | undefined;
16
+ }
17
+ /**
18
+ * Returns the capped day/week/month token stat of `sources.deployment` or cost
19
+ * stat of `sources.account` with the highest used/total ratio, classified
20
+ * against `thresholdPercent`, or `undefined` when no stat is capped or the
21
+ * worst one is below the threshold.
22
+ */
23
+ export declare const selectUsageBannerSource: (sources: UsageLimitsSources, thresholdPercent: number) => UsageBannerSource | undefined;
24
+ //# sourceMappingURL=usage-banner-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-banner-source.d.ts","sourceRoot":"","sources":["../../src/usage/usage-banner-source.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,sGAAsG;AACtG,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,MAAM,EAAE,WAAW,CAAC;IACpB,uDAAuD;IACvD,QAAQ,EAAE,wBAAwB,CAAC;IACnC,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAsCD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,kBAAkB,EAC3B,kBAAkB,MAAM,KACvB,iBAAiB,GAAG,SAsCtB,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { isCappedStat as e } from "../shared/usage-stat.js";
2
+ import { UsagePeriod as t } from "./usage-period.js";
3
+ import { UsageLimitBannerSeverity as n } from "@epam/ai-dial-conversation-input";
4
+ //#region src/usage/usage-banner-source.ts
5
+ var r = [
6
+ [
7
+ "deployment",
8
+ "monthTokenStats",
9
+ t.Month
10
+ ],
11
+ [
12
+ "account",
13
+ "monthCostStats",
14
+ t.Month
15
+ ],
16
+ [
17
+ "deployment",
18
+ "weekTokenStats",
19
+ t.Week
20
+ ],
21
+ [
22
+ "account",
23
+ "weekCostStats",
24
+ t.Week
25
+ ],
26
+ [
27
+ "deployment",
28
+ "dayTokenStats",
29
+ t.Day
30
+ ],
31
+ [
32
+ "account",
33
+ "dayCostStats",
34
+ t.Day
35
+ ]
36
+ ], i = (t, i) => {
37
+ let a;
38
+ for (let [n, i, o] of r) {
39
+ let r = t[n]?.[i];
40
+ if (r == null || !e(r.total)) continue;
41
+ let s = Math.max(r.used, 0) / r.total;
42
+ (a == null || s > a.ratio) && (a = {
43
+ stat: r,
44
+ period: o,
45
+ ratio: s
46
+ });
47
+ }
48
+ if (a == null) return;
49
+ let o = Math.min(100, Math.round(a.ratio * 100)), s;
50
+ if (a.ratio >= 1) s = n.Reached;
51
+ else if (o >= i) s = n.Warning;
52
+ else return;
53
+ return {
54
+ period: a.period,
55
+ severity: s,
56
+ usedPercent: o,
57
+ resetsAt: a.stat.resetsAt
58
+ };
59
+ };
60
+ //#endregion
61
+ export { e as isCappedStat, i as selectUsageBannerSource };
@@ -0,0 +1,7 @@
1
+ /** A calendar usage period the composer usage banner can report on. */
2
+ export declare enum UsagePeriod {
3
+ Day = "day",
4
+ Week = "week",
5
+ Month = "month"
6
+ }
7
+ //# sourceMappingURL=usage-period.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-period.d.ts","sourceRoot":"","sources":["../../src/usage/usage-period.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,6 @@
1
+ //#region src/usage/usage-period.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Day = "day", e.Week = "week", e.Month = "month", e;
4
+ }({});
5
+ //#endregion
6
+ export { e as UsagePeriod };
@@ -0,0 +1,78 @@
1
+ import { UsagePeriod } from './usage-period';
2
+ /**
3
+ * i18n key strings the consuming app's translation bundle must define for the
4
+ * reset-time formatters to produce translated strings. The values are the
5
+ * default key paths used by AI DIAL Chat.
6
+ */
7
+ export declare const USAGE_RESET_I18N_KEYS: {
8
+ /** Visible label for a full reset time. Receives `{ dateTime: string }`. */
9
+ readonly resetsAtLabel: "usage.resetsAtLabel";
10
+ /** Spoken label for a full reset time. Receives `{ dateTime: string }`. */
11
+ readonly resetsAtAriaLabel: "usage.resetsAtAriaLabel";
12
+ /** Short daily reset sentence. Receives `{ time: string }`. */
13
+ readonly resetsAtTime: "conversationInput.usageBanner.resetsAtTime";
14
+ /** Short weekly/monthly reset sentence. Receives `{ date: string }`. */
15
+ readonly resetsOnDate: "conversationInput.usageBanner.resetsOnDate";
16
+ };
17
+ /**
18
+ * A DIAL Core `resetsAt` instant, normalized into the preformatted strings the
19
+ * usage dashboard renders. Every `Date` and `Intl` call for reset times lives
20
+ * in this module: the display components receive only these strings
21
+ * and never sees a raw timestamp, a locale, or a timezone.
22
+ */
23
+ export interface ResetTimeDisplay {
24
+ /** Exclusive end of the period, as an epoch ms value, for boundary scheduling. */
25
+ resetsAtMs: number;
26
+ /** Machine-readable instant for a `<time dateTime>` attribute, e.g. '2026-09-16T00:00:00Z'. */
27
+ isoValue: string;
28
+ /** Visible label, e.g. 'Resets 16 Sept 2026, 03:00 GMT+3'. */
29
+ label: string;
30
+ /** Accessible expansion naming the timezone in full, e.g. 'Usage resets Sep 16, 2026 at 2:00 AM Central European Summer Time'. */
31
+ ariaLabel: string;
32
+ }
33
+ /** A translate function compatible with i18next's `TFunction`. */
34
+ export type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
35
+ /** Offset reference used to format an unchanged reset boundary. */
36
+ export declare enum UsageResetOffsetPolicy {
37
+ CurrentOffset = "current-offset",
38
+ ResetInstant = "reset-instant"
39
+ }
40
+ /** Optional host reset-display policy. */
41
+ export interface UsageResetTimeOptions {
42
+ /** Defaults to current-offset. */ offsetPolicy?: UsageResetOffsetPolicy;
43
+ }
44
+ /**
45
+ * Formats DIAL Core's `resetsAt` for display in the viewer's locale and
46
+ * timezone, at the viewer's current UTC offset, always stating that offset so
47
+ * a UTC boundary shown in local time is never ambiguous.
48
+ *
49
+ * Returns `undefined` on every failure path — an absent, empty, or
50
+ * unparseable value, or an `Intl` implementation that throws (embedded and
51
+ * restricted runtimes expose incomplete ones, which is why the resolution is
52
+ * wrapped, matching `getBrowserTimezone` in `@epam/ai-dial-chat-hooks`). A
53
+ * reset time is decoration on a usage figure and never a gate on it, so the
54
+ * caller renders the rest of the card unchanged when this returns nothing.
55
+ *
56
+ * The boundary is never derived from the browser's own calendar — no local
57
+ * midnight, no start-of-week, no arithmetic on `new Date()`.
58
+ */
59
+ export declare const formatUsageResetTime: (resetsAt: string | undefined, activeLocale: string, t: TranslateFn, options?: UsageResetTimeOptions) => ResetTimeDisplay | undefined;
60
+ /** A `resetsAt` instant as the one-sentence reset notice the composer usage banner renders. */
61
+ export interface ShortResetTimeDisplay {
62
+ /** Machine-readable instant for a `<time dateTime>` attribute, e.g. '2026-10-13T00:00:00Z'. */
63
+ isoValue: string;
64
+ /** Visible sentence, e.g. 'Resets at 3:00 AM GMT+3.' or 'Resets on Oct 19.'. */
65
+ label: string;
66
+ /** Accessible expansion with the full date, time and zone name, from `formatUsageResetTime`. */
67
+ ariaLabel: string;
68
+ }
69
+ /**
70
+ * Formats DIAL Core's `resetsAt` as the banner's reset sentence: a time with
71
+ * its zone offset for a daily period, a short date (with the year only when it
72
+ * is not the current one) for a weekly or monthly period.
73
+ *
74
+ * Returns `undefined` on the same failure paths as `formatUsageResetTime`,
75
+ * whose spoken form it reuses, so the caller renders the period sentence alone.
76
+ */
77
+ export declare const formatUsageResetShort: (resetsAt: string | undefined, period: UsagePeriod, activeLocale: string, t: TranslateFn) => ShortResetTimeDisplay | undefined;
78
+ //# sourceMappingURL=usage-reset-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-reset-time.d.ts","sourceRoot":"","sources":["../../src/usage/usage-reset-time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;IAChC,4EAA4E;;IAE5E,2EAA2E;;IAE3E,+DAA+D;;IAE/D,wEAAwE;;CAEhE,CAAC;AAEX;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;IACnB,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,kIAAkI;IAClI,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,kEAAkE;AAClE,MAAM,MAAM,WAAW,GAAG,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,MAAM,CAAC;AAmEZ,mEAAmE;AACnE,oBAAY,sBAAsB;IAChC,aAAa,mBAAmB;IAChC,YAAY,kBAAkB;CAC/B;AACD,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,kCAAkC,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;CAC1E;AACD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,GAAG,SAAS,EAC5B,cAAc,MAAM,EACpB,GAAG,WAAW,EACd,UAAS,qBAA0B,KAClC,gBAAgB,GAAG,SAmErB,CAAC;AAEF,+FAA+F;AAC/F,MAAM,WAAW,qBAAqB;IACpC,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,gGAAgG;IAChG,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,GAAG,SAAS,EAC5B,QAAQ,WAAW,EACnB,cAAc,MAAM,EACpB,GAAG,WAAW,KACb,qBAAqB,GAAG,SAiD1B,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { UsagePeriod as e } from "./usage-period.js";
2
+ //#region src/usage/usage-reset-time.ts
3
+ var t = {
4
+ resetsAtLabel: "usage.resetsAtLabel",
5
+ resetsAtAriaLabel: "usage.resetsAtAriaLabel",
6
+ resetsAtTime: "conversationInput.usageBanner.resetsAtTime",
7
+ resetsOnDate: "conversationInput.usageBanner.resetsOnDate"
8
+ }, n = {
9
+ year: "numeric",
10
+ month: "short",
11
+ day: "numeric",
12
+ hour: "numeric",
13
+ minute: "2-digit"
14
+ }, r = /GMT([+-])(\d{2}):(\d{2})/, i = /* @__PURE__ */ RegExp("\\u202f", "g"), a = (e, t) => {
15
+ let n = new Intl.DateTimeFormat("en-US", {
16
+ timeZoneName: "longOffset",
17
+ ...t
18
+ }).formatToParts(e).find((e) => e.type === "timeZoneName")?.value, i = r.exec(n ?? "");
19
+ return i == null ? 0 : (i[1] === "-" ? -1 : 1) * (Number(i[2]) * 60 + Number(i[3]));
20
+ }, o = (e, t, r, o, s) => {
21
+ let c = new Intl.DateTimeFormat(r, {
22
+ timeZoneName: o,
23
+ ...s
24
+ }).formatToParts(t).find((e) => e.type === "timeZoneName")?.value ?? "", l = new Date(e + a(t, s) * 6e4);
25
+ return new Intl.DateTimeFormat(r, {
26
+ ...n,
27
+ timeZoneName: o,
28
+ timeZone: "UTC"
29
+ }).formatToParts(l).map((e) => e.type === "timeZoneName" ? c : e.value).join("").replace(i, " ");
30
+ }, s = /* @__PURE__ */ function(e) {
31
+ return e.CurrentOffset = "current-offset", e.ResetInstant = "reset-instant", e;
32
+ }({}), c = (e, n, r, i = {}) => {
33
+ if (!e) return;
34
+ let a = Date.parse(e);
35
+ if (!Number.isNaN(a)) try {
36
+ let s = Intl.DateTimeFormat().resolvedOptions().timeZone, c = s ? { timeZone: s } : {}, l = i.offsetPolicy === "reset-instant" ? new Date(a) : /* @__PURE__ */ new Date(), u = o(a, l, n, "shortOffset", c), d = o(a, l, n, "long", c);
37
+ return {
38
+ resetsAtMs: a,
39
+ isoValue: e,
40
+ label: r(t.resetsAtLabel, { dateTime: u }),
41
+ ariaLabel: r(t.resetsAtAriaLabel, { dateTime: d })
42
+ };
43
+ } catch {
44
+ return;
45
+ }
46
+ }, l = (n, r, i, a) => {
47
+ let o = c(n, i, a);
48
+ if (o != null) try {
49
+ let n = Intl.DateTimeFormat().resolvedOptions().timeZone, s = n ? { timeZone: n } : {}, c = new Date(o.resetsAtMs);
50
+ if (r === e.Day) {
51
+ let e = new Intl.DateTimeFormat(i, {
52
+ hour: "numeric",
53
+ minute: "2-digit",
54
+ timeZoneName: "shortOffset",
55
+ ...s
56
+ }).format(c);
57
+ return {
58
+ isoValue: o.isoValue,
59
+ label: a(t.resetsAtTime, { time: e }),
60
+ ariaLabel: o.ariaLabel
61
+ };
62
+ }
63
+ let l = new Intl.DateTimeFormat("en-US", {
64
+ year: "numeric",
65
+ ...s
66
+ }), u = l.format(c) !== l.format(/* @__PURE__ */ new Date()), d = new Intl.DateTimeFormat(i, {
67
+ month: "short",
68
+ day: "numeric",
69
+ ...u ? { year: "numeric" } : {},
70
+ ...s
71
+ }).format(c);
72
+ return {
73
+ isoValue: o.isoValue,
74
+ label: a(t.resetsOnDate, { date: d }),
75
+ ariaLabel: o.ariaLabel
76
+ };
77
+ } catch {
78
+ return;
79
+ }
80
+ };
81
+ //#endregion
82
+ export { t as USAGE_RESET_I18N_KEYS, s as UsageResetOffsetPolicy, l as formatUsageResetShort, c as formatUsageResetTime };
@@ -0,0 +1,56 @@
1
+ import { DeploymentLimitsResponseDto, UserLimitStatsResponseDto } from '@epam/ai-dial-chat-api-client';
2
+ /** The caller's account-wide cost budget and spend: the top level of a user-usage response. */
3
+ export type AccountUsage = Pick<UserLimitStatsResponseDto, 'dayCostStats' | 'weekCostStats' | 'monthCostStats'>;
4
+ /**
5
+ * What the usage dial and the usage banner are mapped from. Each field has a
6
+ * single scope, so a deployment's figures are never read as the account's or
7
+ * the other way round.
8
+ */
9
+ export interface UsageLimitsSources {
10
+ /** The selected deployment's own stats (its deployment-usage response). Only its token stats are read. */
11
+ deployment: DeploymentLimitsResponseDto | undefined;
12
+ /** The caller's account budget and spend. Only its cost stats are read. */
13
+ account: AccountUsage | undefined;
14
+ }
15
+ /** Host-configured calls that fetch the two usage sources. */
16
+ export interface UsageLimitsApi {
17
+ /** Fetches one deployment's own usage, every stat scoped to that deployment. */
18
+ getDeploymentUsage: (deploymentId: string) => Promise<DeploymentLimitsResponseDto>;
19
+ /** Fetches the caller's account usage; only its top-level cost stats are read. */
20
+ getAccountUsage: () => Promise<AccountUsage>;
21
+ }
22
+ /** Return shape of {@link useDeploymentUsageLimits}. */
23
+ export interface UseDeploymentUsageLimitsResult {
24
+ /** The last successfully fetched value of each source. */
25
+ sources: UsageLimitsSources;
26
+ /** `true` until both calls of the current fetch have settled. */
27
+ isLoading: boolean;
28
+ /** `true` after either call of the most recent fetch rejected. */
29
+ hasError: boolean;
30
+ /** Re-fetches both sources when no request is in flight. */
31
+ refresh: () => void;
32
+ }
33
+ /**
34
+ * Fetches the selected deployment's own usage and the caller's account usage
35
+ * through the provided `api`. The hook accepts the calls as a parameter so the
36
+ * caller supplies an already-configured API client; the hook never constructs
37
+ * or imports one itself. The identity of `api` is not a re-fetch trigger; only
38
+ * `deploymentId` and `refresh()` are.
39
+ *
40
+ * Two sources rather than one deployment-limits response: there, the cost
41
+ * stats add an application's aggregated callee cost to the account spend that
42
+ * already contains it, so an agent's spend would be counted twice.
43
+ *
44
+ * Both calls share one monotonic request ID, so a slower response for a
45
+ * previous deployment never replaces the current value. Each source keeps its
46
+ * last known value when its own call fails, so the open popover can surface a
47
+ * non-blocking error while the other source still renders. The account source
48
+ * survives a deployment change, since it does not depend on the selection.
49
+ *
50
+ * The raw responses are returned rather than a mapped display model: mapping
51
+ * needs the caller's translated labels and locale-bound reset formatter, and
52
+ * holding the mapped value in state here would leave it stale after a language
53
+ * change until the next fetch.
54
+ */
55
+ export declare const useDeploymentUsageLimits: (deploymentId: string | undefined, api: UsageLimitsApi) => UseDeploymentUsageLimitsResult;
56
+ //# sourceMappingURL=useDeploymentUsageLimits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeploymentUsageLimits.d.ts","sourceRoot":"","sources":["../../../src/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAGvC,+FAA+F;AAC/F,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,yBAAyB,EACzB,cAAc,GAAG,eAAe,GAAG,gBAAgB,CACpD,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,0GAA0G;IAC1G,UAAU,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACpD,2EAA2E;IAC3E,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC;AAED,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,kBAAkB,EAAE,CAClB,YAAY,EAAE,MAAM,KACjB,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC1C,kFAAkF;IAClF,eAAe,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;CAC9C;AAED,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;IAC7C,0DAA0D;IAC1D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,iEAAiE;IACjE,SAAS,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,QAAQ,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,wBAAwB,GACnC,cAAc,MAAM,GAAG,SAAS,EAChC,KAAK,cAAc,KAClB,8BA6EF,CAAC"}