@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
@@ -38,14 +38,19 @@ var l = {
38
38
  if (!n.startsWith(m)) return t == null ? [] : e.sharedWithMe ? [t.shared] : n.length > 0 && !n.includes("/") ? [t.public] : [];
39
39
  let r = h(n, m).slice(0, -1);
40
40
  return e.sharedWithMe && t != null ? [t.shared, ...r.slice(1)] : r[0]?.toLowerCase() === a && t != null ? [t.public, ...r.slice(1)] : r.slice(1);
41
- }, v = (e, { favoriteIds: t = /* @__PURE__ */ new Set(), entityDetails: a, folderLabels: s, editableSchemaIds: c = [], isCustomAppsEditable: l = !1, activeLocale: u, primaryLocale: d, resolveIconUrl: p }) => {
42
- let m = n(e.displayName, u, d) || e.id, h = (e.type ?? "").toLowerCase();
41
+ }, v = ["chat", "custom_ui"], y = "mcp", b = (e, t, n) => {
42
+ if (t !== "application" || e == null) return;
43
+ let r = e.includes(y), a = [];
44
+ return e.some((e) => v.includes(e)) && a.push(i.Agent), r && n && a.push(i.Toolset), a.length > 0 ? a : r ? [i.Agent] : void 0;
45
+ }, x = (e) => e.interfaces == null || e.interfaces.includes("chat"), S = (e, { favoriteIds: t = /* @__PURE__ */ new Set(), entityDetails: a, entityDetailsLabels: s, folderLabels: c, editableSchemaIds: l = [], isCustomAppsEditable: u = !1, activeLocale: d, primaryLocale: p, resolveIconUrl: m, isToolsetTabEnabled: h = !0 }) => {
46
+ let _ = n(e.displayName, d, p) || e.id, v = (e.type ?? "").toLowerCase(), y = b(e.interfaces, v, h);
43
47
  return {
44
48
  id: e.id,
45
- type: f[h] ?? i.Model,
46
- name: m,
47
- description: n(e.description, u, d),
48
- iconUrl: p(e.iconUrl),
49
+ type: f[v] ?? i.Model,
50
+ ...y != null && { catalogTabs: y },
51
+ name: _,
52
+ description: n(e.description, d, p),
53
+ iconUrl: m(e.iconUrl),
49
54
  version: e.displayVersion ?? "",
50
55
  lastUsed: o(e.updatedAt),
51
56
  updatedAt: e.updatedAt,
@@ -57,13 +62,13 @@ var l = {
57
62
  isStarred: t.has(e.id),
58
63
  isMyApp: e.isMy ?? !1,
59
64
  sharedWithMe: e.sharedWithMe ?? !1,
60
- isEditable: (!!e.isMy || !!e.canEdit) && (c.length > 0 && c.includes(e.applicationTypeSchemaId ?? "") || l && !e.applicationTypeSchemaId && h === "application"),
61
- folder: g(e, s),
62
- details: a == null ? void 0 : r(a),
65
+ isEditable: (!!e.isMy || !!e.canEdit) && (l.length > 0 && l.includes(e.applicationTypeSchemaId ?? "") || u && !e.applicationTypeSchemaId && v === "application"),
66
+ folder: g(e, c),
67
+ details: a == null ? void 0 : r(a, s),
63
68
  supportsMcp: e.features?.mcp === !0,
64
- supportsChat: e.interfaces == null || e.interfaces.includes("chat")
69
+ supportsChat: x(e)
65
70
  };
66
- }, y = (e, { favoriteIds: t = /* @__PURE__ */ new Set(), isAdmin: r = !1, folderLabels: a, activeLocale: s, primaryLocale: c, resolveIconUrl: l }) => {
71
+ }, C = (e, { favoriteIds: t = /* @__PURE__ */ new Set(), isAdmin: r = !1, folderLabels: a, activeLocale: s, primaryLocale: c, resolveIconUrl: l }) => {
67
72
  let u = n(e.displayName, s, c) || e.toolset || e.reference || e.id, f = e.allowedTools ?? [];
68
73
  return {
69
74
  id: e.id,
@@ -89,4 +94,4 @@ var l = {
89
94
  };
90
95
  };
91
96
  //#endregion
92
- export { v as mapDeploymentToCatalogItem, d as mapDeploymentToolsetCredentials, y as mapToolsetToCatalogItem, g as resolveDeploymentFolder };
97
+ export { S as mapDeploymentToCatalogItem, d as mapDeploymentToolsetCredentials, C as mapToolsetToCatalogItem, g as resolveDeploymentFolder, x as supportsChatInterface };
@@ -0,0 +1,81 @@
1
+ import { CatalogItemCredentials, CatalogItemTabData } from '@epam/ai-dial-catalog';
2
+ import { DeploymentDetailsDto } from '@epam/ai-dial-chat-api-client';
3
+ import { EntitySpecificDetails, ToolsetEntityDetails } from './entity-details';
4
+ /**
5
+ * Overview section titles and spec labels rendered by
6
+ * `mapEntityDetailsToCatalogDetails`. Hosts pass translated strings; every
7
+ * field defaults to the English text in {@link DEFAULT_ENTITY_DETAILS_LABELS}.
8
+ */
9
+ export interface EntityDetailsLabels {
10
+ /** Default: `'Capabilities'`. */
11
+ capabilitiesTitle: string;
12
+ /** Default: `'Specification'`. */
13
+ specificationTitle: string;
14
+ /** Default: `'Configuration'`. */
15
+ configurationTitle: string;
16
+ /** Default: `'Tools'`. */
17
+ tools: string;
18
+ /** Default: `'Parallel tool calls'`. */
19
+ parallelToolCalls: string;
20
+ /** Default: `'Reasoning efforts'`. */
21
+ reasoningEfforts: string;
22
+ /** Default: `'Skills'`. */
23
+ skills: string;
24
+ /** Default: `'Provider'`. */
25
+ provider: string;
26
+ /** Default: `'Vendor'`. */
27
+ vendor: string;
28
+ /** Default: `'License'`. */
29
+ license: string;
30
+ /** Default: `'Knowledge cutoff date'`. */
31
+ knowledgeCutoffDate: string;
32
+ /** Default: `'Parameters'`. */
33
+ parameters: string;
34
+ /** Default: `'Hosted by'`. */
35
+ hostedBy: string;
36
+ /** Default: `'Release date'`. */
37
+ releaseDate: string;
38
+ /** Default: `'Context window'`. */
39
+ contextWindow: string;
40
+ /** Default: `'Max output tokens'`. */
41
+ maxOutputTokens: string;
42
+ /** Default: `'Input modalities'`. */
43
+ inputModalities: string;
44
+ /** Default: `'Input attachments'`. */
45
+ inputAttachments: string;
46
+ /** Default: `'Routes'`. */
47
+ routes: string;
48
+ /** Default: `'Configuration schema'`. */
49
+ configurationSchema: string;
50
+ /** Default: `'Authentication'`. */
51
+ authentication: string;
52
+ /** Default: `'Authorization endpoint'`. */
53
+ authorizationEndpoint: string;
54
+ /** Default: `'Token endpoint'`. */
55
+ tokenEndpoint: string;
56
+ /** Default: `'OAuth scopes'`. */
57
+ oauthScopes: string;
58
+ }
59
+ /** The English Overview labels `mapEntityDetailsToCatalogDetails` uses when a host passes none. */
60
+ export declare const DEFAULT_ENTITY_DETAILS_LABELS: EntityDetailsLabels;
61
+ /**
62
+ * Maps a toolset's specification into the lib's credential-status shape,
63
+ * for refreshing the details panel after login/logout. Includes both
64
+ * `USER` and `GLOBAL` status, whether the toolset is public, and whether
65
+ * the current user (if an admin) may manage both levels.
66
+ */
67
+ export declare const mapToolsetCredentials: (toolsetId: string, data: ToolsetEntityDetails, isAdmin: boolean) => CatalogItemCredentials | undefined;
68
+ /**
69
+ * Converts a strongly-typed entity domain model into the lib's `CatalogItemTabData` shape.
70
+ * Section titles and spec labels come from `labels`, merged over
71
+ * {@link DEFAULT_ENTITY_DETAILS_LABELS} — the lib cannot import a host's
72
+ * translation keys, so the host passes its translated strings in.
73
+ */
74
+ export declare const mapEntityDetailsToCatalogDetails: (details: EntitySpecificDetails, labels?: Partial<EntityDetailsLabels>) => CatalogItemTabData;
75
+ /**
76
+ * Converts the backend `DeploymentDetailsDto` (model/application/toolset,
77
+ * fetched by id) into the strongly-typed `EntitySpecificDetails` domain model
78
+ * consumed by `mapEntityDetailsToCatalogDetails`.
79
+ */
80
+ export declare const mapDeploymentDetailsDtoToEntityDetails: (dto: DeploymentDetailsDto) => EntitySpecificDetails;
81
+ //# sourceMappingURL=map-entity-details-to-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAGL,KAAK,qBAAqB,EAI1B,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AAgC1B;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mGAAmG;AACnG,eAAO,MAAM,6BAA6B,EAAE,mBAyB3C,CAAC;AAwQF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,EACjB,MAAM,oBAAoB,EAC1B,SAAS,OAAO,KACf,sBAAsB,GAAG,SAoB3B,CAAC;AAgFF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAC3C,SAAS,qBAAqB,EAC9B,SAAS,OAAO,CAAC,mBAAmB,CAAC,KACpC,kBAUF,CAAC;AA6VF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,GACjD,KAAK,oBAAoB,KACxB,qBASF,CAAC"}
@@ -126,10 +126,13 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
126
126
  return r === "" ? e : ` ${r.charAt(0).toUpperCase()}${r.slice(1)}`;
127
127
  }, y = (e) => {
128
128
  if (e == null) return;
129
- let t = e.unit?.toLowerCase() === h ? a.Character : a.Token, n = [...e.prices ?? []].sort((e, t) => _(e.key) - _(t.key)).map(({ key: e, price: n }) => ({
130
- label: v(e, t),
131
- price: n
132
- }));
129
+ let t = e.unit?.toLowerCase() === h ? a.Character : a.Token, n = [...e.prices ?? []].sort((e, t) => _(e.key) - _(t.key)).map(({ key: e, price: n, condition: r }) => {
130
+ let i = v(e, t);
131
+ return {
132
+ label: r == null ? i : `${i} (${r})`,
133
+ price: n
134
+ };
135
+ });
133
136
  if (n.length !== 0) return t === a.Character ? {
134
137
  prices: n,
135
138
  unit: t
@@ -296,21 +299,63 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
296
299
  hasSkills: e.skillsSupported,
297
300
  reasoningEfforts: e.reasoningEfforts
298
301
  };
299
- }, k = (e) => {
302
+ }, k = (e) => typeof e == "object" && !!e && !Array.isArray(e), A = {
303
+ "==": "!=",
304
+ "!=": "==",
305
+ ">": "<=",
306
+ "<": ">=",
307
+ ">=": "<",
308
+ "<=": ">"
309
+ }, j = {
310
+ "==": "=",
311
+ "!=": "≠",
312
+ ">": ">",
313
+ "<": "<",
314
+ ">=": "≥",
315
+ "<=": "≤"
316
+ }, M = (e) => {
317
+ let t = typeof e == "number" ? e : Number(e);
318
+ return typeof e == "boolean" || e === "" || !Number.isFinite(t) ? String(e) : t >= 1e6 ? `${t / 1e6}M` : t >= 1e3 ? `${t / 1e3}K` : String(t);
319
+ }, N = (e) => {
320
+ if (!k(e)) return;
321
+ let { field: t, operator: n, value: r } = e;
322
+ if (typeof t != "string" || t.trim() === "" || typeof n != "string") return;
323
+ let i = A[n];
324
+ if (i == null) return;
325
+ let a = t.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase(), o = M(r);
326
+ return {
327
+ holds: `${a} ${j[n]} ${o}`,
328
+ fails: `${a} ${j[i]} ${o}`,
329
+ isLowerBound: n === ">" || n === ">="
330
+ };
331
+ }, P = (e, t = []) => {
332
+ if (typeof e == "string") return e.trim() === "" ? [] : [{
333
+ rate: e,
334
+ conditions: t
335
+ }];
336
+ if (!k(e)) return [];
337
+ let n = N(e.test);
338
+ if (n == null) return P(e.rate, t);
339
+ let r = P(e.ifTrue, [...t, n.holds]), i = P(e.ifFalse, [...t, n.fails]);
340
+ return n.isLowerBound ? [...i, ...r] : [...r, ...i];
341
+ }, F = (e) => {
300
342
  if (e == null) return;
301
- let t = typeof e.unit == "string" ? e.unit : void 0, n = Object.entries(e).flatMap(([e, n]) => {
302
- if (e === u || typeof n != "string" || n.trim() === "") return [];
303
- let i = r(n, t);
304
- return i == null ? [] : [{
343
+ let t = typeof e.unit == "string" ? e.unit : void 0, n = Object.entries(e).flatMap(([e, n]) => e === u ? [] : P(n).flatMap(({ rate: n, conditions: i }) => {
344
+ let a = r(n, t);
345
+ return a == null ? [] : i.length > 0 ? [{
305
346
  key: e,
306
- price: i
347
+ price: a,
348
+ condition: i.join(", ")
349
+ }] : [{
350
+ key: e,
351
+ price: a
307
352
  }];
308
- });
353
+ }));
309
354
  return n.length > 0 ? {
310
355
  prices: n,
311
356
  unit: t
312
357
  } : void 0;
313
- }, A = (e) => {
358
+ }, I = (e) => {
314
359
  let { limits: t, pricing: n, features: r, catalogProperties: i, owner: a, inputAttachmentTypes: o, defaultMaxTokens: s, createdAt: c } = e.modelDetails ?? {}, l = t != null || i != null || a != null || c != null || (o?.length ?? 0) > 0;
315
360
  return {
316
361
  type: "MODEL",
@@ -328,11 +373,11 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
328
373
  hostedBy: a,
329
374
  createdAt: c
330
375
  } : void 0,
331
- pricing: k(n),
376
+ pricing: F(n),
332
377
  api: { modelId: e.id }
333
378
  }
334
379
  };
335
- }, j = (e) => {
380
+ }, L = (e) => {
336
381
  let { routes: t, owner: n, inputAttachmentTypes: r, features: i, catalogProperties: a, createdAt: o } = e.applicationDetails ?? {}, s = a != null || n != null || o != null || (t?.length ?? 0) > 0;
337
382
  return {
338
383
  type: "AGENT",
@@ -351,10 +396,10 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
351
396
  configuration: r?.length ? { inputAttachmentTypes: r } : void 0
352
397
  }
353
398
  };
354
- }, M = (t) => t === e.None || t === e.ApiKey || t === e.OAuth, N = (e) => {
399
+ }, R = (t) => t === e.None || t === e.ApiKey || t === e.OAuth, z = (e) => {
355
400
  if (e == null) return;
356
401
  let { globalAuthStatus: t, appLevelAuthStatus: n, userLevelAuthStatus: r, scopesSupported: i, authorizationEndpoint: a, tokenEndpoint: o, apiKeyHeader: s } = e;
357
- if (!(t == null && n == null && r == null && a == null && o == null && s == null && !i?.length)) return {
402
+ if (t != null || n != null || r != null || a != null || o != null || s != null || i?.length) return {
358
403
  global: t,
359
404
  appLevel: n,
360
405
  userLevel: r,
@@ -363,14 +408,14 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
363
408
  tokenEndpoint: o,
364
409
  apiKeyHeader: s
365
410
  };
366
- }, P = (e) => {
411
+ }, B = (e) => {
367
412
  let t = e.toolsetDetails, n = t?.authSettings?.authenticationType;
368
413
  return {
369
414
  type: "TOOLSET",
370
415
  data: {
371
416
  capabilities: O(t?.features),
372
417
  specification: t == null ? void 0 : {
373
- authentication: M(n) ? n : void 0,
418
+ authentication: R(n) ? n : void 0,
374
419
  provider: t.catalogProperties?.provider,
375
420
  vendor: t.catalogProperties?.vendor,
376
421
  license: t.catalogProperties?.license,
@@ -380,16 +425,16 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
380
425
  allTools: t.allToolNames,
381
426
  hostedBy: t.owner,
382
427
  createdAt: t.createdAt,
383
- authStatus: N(t.authSettings)
428
+ authStatus: z(t.authSettings)
384
429
  }
385
430
  }
386
431
  };
387
- }, F = (e) => {
432
+ }, V = (e) => {
388
433
  switch (e.type) {
389
- case "model": return A(e);
390
- case "application": return j(e);
391
- case "toolset": return P(e);
434
+ case "model": return I(e);
435
+ case "application": return L(e);
436
+ case "toolset": return B(e);
392
437
  }
393
438
  };
394
439
  //#endregion
395
- export { d as DEFAULT_ENTITY_DETAILS_LABELS, F as mapDeploymentDetailsDtoToEntityDetails, D as mapEntityDetailsToCatalogDetails, w as mapToolsetCredentials };
440
+ export { d as DEFAULT_ENTITY_DETAILS_LABELS, V as mapDeploymentDetailsDtoToEntityDetails, D as mapEntityDetailsToCatalogDetails, w as mapToolsetCredentials };
@@ -0,0 +1,43 @@
1
+ import { CatalogItemOverview, CatalogItem } from '@epam/ai-dial-catalog';
2
+ import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
3
+ import { PromptSource } from '../prompt/prompt-resource';
4
+ import { DeploymentFolderLabels } from './map-deployment-to-catalog-item';
5
+ /** Translated labels for the Overview tab's author/updated rows and section title. */
6
+ export interface PromptOverviewLabels {
7
+ authorLabel: string;
8
+ updatedLabel: string;
9
+ sectionTitle: string;
10
+ }
11
+ /**
12
+ * Builds the Overview tab data for a prompt: who authored it and when it last
13
+ * changed. The description is not repeated here — the Details tab already
14
+ * shows it above the body.
15
+ */
16
+ export declare const buildPromptOverview: (prompt: PromptResponseDto, labels: PromptOverviewLabels) => CatalogItemOverview;
17
+ /**
18
+ * Whether a prompt item came from the organisation namespace, which the public
19
+ * prompt endpoints serve. Personal prompts resolve through the caller's own
20
+ * bucket, while shared prompts carry their owner's bucket in the resource URL.
21
+ */
22
+ export declare const isOrganisationPromptItem: (item: CatalogItem) => boolean;
23
+ /** Parameters for {@link mapPromptToCatalogItem}. */
24
+ export interface MapPromptToCatalogItemOptions {
25
+ /** Personal/Shared/Public folder labels; i18n stays at the app edge. */
26
+ folderLabels: DeploymentFolderLabels;
27
+ /** Author/updated/section-title labels for the Overview tab; i18n stays at the app edge. */
28
+ overviewLabels: PromptOverviewLabels;
29
+ /** Namespace the prompt came from; drives ownership flags and the folder prefix. */
30
+ source: PromptSource;
31
+ /** Favorited resource ids from the user config, keyed by prompt path. */
32
+ favoriteIds: ReadonlySet<string>;
33
+ }
34
+ /**
35
+ * Maps a prompt DTO into a catalog item.
36
+ *
37
+ * `prompt.id` is already the full `prompts/{bucket}/{path}` resource path —
38
+ * the owner bucket for a shared-with-me prompt, the caller's own bucket
39
+ * otherwise — the same shape every other resource type's `CatalogItem.id`
40
+ * carries, so no per-source qualification is needed here.
41
+ */
42
+ export declare const mapPromptToCatalogItem: (prompt: PromptResponseDto, { folderLabels, overviewLabels, source, favoriteIds, }: MapPromptToCatalogItemOptions) => CatalogItem;
43
+ //# sourceMappingURL=map-prompt-to-catalog-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-prompt-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-prompt-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAkB/E,sFAAsF;AACtF,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,QAAQ,oBAAoB,KAC3B,mBAaF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,WAAW,KAAG,OACxB,CAAC;AAEtC,qDAAqD;AACrD,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,YAAY,EAAE,sBAAsB,CAAC;IACrC,4FAA4F;IAC5F,cAAc,EAAE,oBAAoB,CAAC;IACrC,oFAAoF;IACpF,MAAM,EAAE,YAAY,CAAC;IACrB,yEAAyE;IACzE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,iBAAiB,EACzB,wDAKG,6BAA6B,KAC/B,WAsCF,CAAC"}
@@ -0,0 +1,112 @@
1
+ import { CatalogContentTreeNode, CatalogItem, CatalogItemOverview } from '@epam/ai-dial-catalog';
2
+ import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
3
+ import { SkillAboutDetails } from '../skill/skill-manifest';
4
+ import { SkillSource } from '../skill/skill-types';
5
+ import { DeploymentFolderLabels } from './map-deployment-to-catalog-item';
6
+ /** Parameters for {@link mapSkillToCatalogItem}. */
7
+ export interface MapSkillToCatalogItemOptions {
8
+ /** Personal/Shared/Public folder labels; i18n stays at the app edge. */
9
+ folderLabels: DeploymentFolderLabels;
10
+ /** Namespace the skill came from; drives ownership flags and the folder prefix. */
11
+ source: SkillSource;
12
+ /** Favorited resource ids from the user config, keyed by skill resource URL. */
13
+ favoriteIds: ReadonlySet<string>;
14
+ }
15
+ /**
16
+ * Maps a skill's DIAL Core metadata into a catalog item. The full
17
+ * `skills/{bucket}/{path}` resource URL is used as `CatalogItem.id` rather
18
+ * than the bucket-relative path: the catalog lists two buckets, and the same
19
+ * relative path can exist in both.
20
+ */
21
+ export declare const mapSkillToCatalogItem: (skill: SkillMetadataItemDto, { folderLabels, source, favoriteIds }: MapSkillToCatalogItemOptions) => CatalogItem;
22
+ /** Translated labels for the skill Overview tab's Specification section. */
23
+ export interface SkillOverviewLabels {
24
+ whenToUseLabel: string;
25
+ allowedToolsLabel: string;
26
+ bundledResourcesLabel: string;
27
+ specificationSectionTitle: string;
28
+ authorLabel: string;
29
+ updatedLabel: string;
30
+ fileCountLabel: string;
31
+ }
32
+ /**
33
+ * Resolves the manifest file's opaque listing id across DIAL Core versions.
34
+ * Some return file-relative paths (`SKILL.md`), while others prefix the
35
+ * skill's path and its internal `files` directory. The returned id is kept
36
+ * verbatim so it matches the corresponding tree node exactly.
37
+ */
38
+ export declare const resolveSkillManifestFileId: (files: SkillMetadataItemDto[], skillPath: string) => string;
39
+ /**
40
+ * Converts an opaque file-listing id into the path expected by the single-file
41
+ * download endpoint. Core may prefix listing paths with the skill path and its
42
+ * internal `files` directory, while the endpoint accepts a path relative to
43
+ * that directory. File-relative ids are returned unchanged.
44
+ */
45
+ export declare const resolveSkillFileDownloadPath: (fileId: string, skillPath: string) => string | null;
46
+ /**
47
+ * Builds the Overview tab data for a skill: a single Specification section
48
+ * listing its parsed manifest frontmatter, followed by who authored it, when
49
+ * it last changed, and its file inventory. Grouping folders
50
+ * in the file listing are excluded from both the count and the rows. Sizes are
51
+ * not shown — the skill metadata carries no content-length field.
52
+ *
53
+ * `skill` is the authoritative `getSkillMetadata` response when that request
54
+ * fulfilled; the caller falls back to the catalog listing entry only when it
55
+ * rejected (`useSkillItemDetails`'s `onFetchSkillDetails`). Either way, this
56
+ * function never fills a gap in one source from the other — an absent
57
+ * `author` omits the row and an absent `updatedAt` leaves the updated row's
58
+ * value empty, exactly as `skill` carries it.
59
+ */
60
+ export declare const buildSkillOverview: (skill: SkillMetadataItemDto | undefined, files: SkillMetadataItemDto[], about: SkillAboutDetails | undefined, labels: SkillOverviewLabels) => CatalogItemOverview;
61
+ /**
62
+ * Builds the Content tab's hierarchical file tree for a skill from
63
+ * `listSkillFiles({ recursive: true })`'s flat listing. Every entry's path is
64
+ * first stripped of the skill's own path prefix and its internal `files`
65
+ * storage directory (see `stripSkillPathPrefix`) — the skill's own root
66
+ * folder and that `files` directory are Core storage implementation details,
67
+ * not authored structure, so neither appears as a wrapping node. An entry
68
+ * that strips to nothing (the skill root, or the bare `files` directory
69
+ * itself) contributes no node. Every folder entry is attached under its own
70
+ * stripped path so an empty grouping folder still appears; every file entry
71
+ * attaches under the folder chain its stripped path implies, synthesizing
72
+ * any intermediate folder the listing never enumerated on its own. An
73
+ * empty-folder marker (`.dial_folder`) only proves its folder exists and
74
+ * never becomes a file node. A file
75
+ * node's `id` is the listing entry's own (unstripped) path, so it round-trips
76
+ * back to `downloadSkillFile` without being re-derived; a folder node's `id`
77
+ * is the stripped path and only keys client-side expand/collapse state.
78
+ */
79
+ export declare const buildSkillContentTree: (files: SkillMetadataItemDto[], skillPath: string) => CatalogContentTreeNode[];
80
+ /**
81
+ * Reads a skill file response as raw bytes, or `null` when the body is
82
+ * larger than `SKILL_MANIFEST_MAX_BYTES`. The declared `content-length` is
83
+ * checked first so an oversized body is never read into memory at all; the
84
+ * actual byte length is checked again after reading, for a response with no
85
+ * (or an inaccurate) declared length. Applies identically to every skill
86
+ * file, text or binary — not only `SKILL.md`.
87
+ */
88
+ export declare const readSkillFileBytes: (response: Response) => Promise<Uint8Array | null>;
89
+ /**
90
+ * Reads a skill file response as raw bytes with no size ceiling, for the
91
+ * supporting-file **preview** path.
92
+ *
93
+ * Previews are user-initiated, one file at a time, and a realistic binary
94
+ * (a PDF, an image) routinely exceeds `SKILL_MANIFEST_MAX_BYTES` — a cap
95
+ * sized for `SKILL.md` frontmatter, not for binaries — so applying that cap
96
+ * here rejected virtually every real PDF before it was ever decoded. This
97
+ * reader therefore never returns `null`: file size is not a failure class on
98
+ * the preview path.
99
+ *
100
+ * `readSkillFileBytes` and `readSkillManifest` keep their
101
+ * `SKILL_MANIFEST_MAX_BYTES` ceiling, because they feed the manifest parse
102
+ * and the textual Content-tab read, where an oversized body must never be
103
+ * decoded into a string.
104
+ */
105
+ export declare const readSkillFilePreviewBytes: (response: Response) => Promise<Uint8Array>;
106
+ /**
107
+ * Reads a skill manifest response as text, or `null` when the body is larger
108
+ * than `SKILL_MANIFEST_MAX_BYTES`. The size is checked before decoding, so an
109
+ * oversized manifest is never turned into a string.
110
+ */
111
+ export declare const readSkillManifest: (response: Response) => Promise<string | null>;
112
+ //# sourceMappingURL=map-skill-to-catalog-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-skill-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-skill-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EAEzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAQvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAA4B,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAuC/E,oDAAoD;AACpD,MAAM,WAAW,4BAA4B;IAC3C,wEAAwE;IACxE,YAAY,EAAE,sBAAsB,CAAC;IACrC,mFAAmF;IACnF,MAAM,EAAE,WAAW,CAAC;IACpB,gFAAgF;IAChF,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,oBAAoB,EAC3B,uCAAuC,4BAA4B,KAClE,WAgCF,CAAC;AAKF,4EAA4E;AAC5E,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAyCD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,OAAO,oBAAoB,EAAE,EAC7B,WAAW,MAAM,KAChB,MAeF,CAAC;AAuCF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAAM,GAAG,IAA+C,CAAC;AAE5D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,oBAAoB,GAAG,SAAS,EACvC,OAAO,oBAAoB,EAAE,EAC7B,OAAO,iBAAiB,GAAG,SAAS,EACpC,QAAQ,mBAAmB,KAC1B,mBAkBF,CAAC;AA4DF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,oBAAoB,EAAE,EAC7B,WAAW,MAAM,KAChB,sBAAsB,EAiCxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,QAAQ,KACjB,OAAO,CAAC,UAAU,GAAG,IAAI,CAa3B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,GACpC,UAAU,QAAQ,KACjB,OAAO,CAAC,UAAU,CAAiD,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,QAAQ,KACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAKvB,CAAC"}
@@ -35,7 +35,7 @@ var l = {
35
35
  folder: d(e, n, t)
36
36
  };
37
37
  }, p = (e) => e.join(" · "), m = (e, t) => {
38
- if (e == null) return null;
38
+ if (e == null) return [];
39
39
  let n = [];
40
40
  return e.whenToUse != null && n.push({
41
41
  label: t.whenToUseLabel,
@@ -46,10 +46,7 @@ var l = {
46
46
  }), e.bundledResources?.length && n.push({
47
47
  label: t.bundledResourcesLabel,
48
48
  value: p(e.bundledResources)
49
- }), n.length === 0 ? null : {
50
- title: t.specificationSectionTitle,
51
- specs: n
52
- };
49
+ }), n;
53
50
  }, h = (e) => e.filter((e) => e.nodeType === c.Item), g = (e, n) => {
54
51
  let r = t(n), i = r ? `${r}/files` : "files";
55
52
  return h(e).find((e) => {
@@ -60,22 +57,20 @@ var l = {
60
57
  let r = t(e), i = t(n), a = i ? `${i}/files` : "files";
61
58
  return r === "" || r === "files" || r === a ? null : r.startsWith(`${a}/`) ? r.slice(a.length + 1) : r.startsWith("files/") ? r.slice(6) : r;
62
59
  }, v = (e, t) => _(e, t), y = (e, t, r, i) => {
63
- let a = [], o = m(r, i);
64
- o != null && a.push(o);
65
- let s = [];
66
- return e?.author && s.push({
60
+ let a = m(r, i);
61
+ return e?.author && a.push({
67
62
  label: i.authorLabel,
68
63
  value: e.author
69
- }), s.push({
64
+ }), a.push({
70
65
  label: i.updatedLabel,
71
66
  value: e?.updatedAt ? n(e.updatedAt) : ""
72
- }), s.push({
67
+ }), a.push({
73
68
  label: i.fileCountLabel,
74
69
  value: String(h(t).length)
75
- }), a.push({
76
- title: i.detailsSectionTitle,
77
- specs: s
78
- }), { sections: a };
70
+ }), { sections: [{
71
+ title: i.specificationSectionTitle,
72
+ specs: a
73
+ }] };
79
74
  }, b = (e, t, n) => {
80
75
  if (e === "") return n;
81
76
  let r = t.get(e);
@@ -106,11 +101,7 @@ var l = {
106
101
  continue;
107
102
  }
108
103
  let o = e.lastIndexOf("/"), l = o === -1 ? "" : e.slice(0, o);
109
- if (a.name === r) {
110
- b(l, n, i);
111
- continue;
112
- }
113
- b(l, n, i).push({
104
+ a.name === r ? b(l, n, i) : b(l, n, i).push({
114
105
  type: s.File,
115
106
  id: a.path,
116
107
  name: a.name
@@ -0,0 +1,18 @@
1
+ import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
2
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
3
+ /** Resource families that DIAL Core exposes an MCP endpoint for. */
4
+ export declare enum McpResourceKind {
5
+ /** Toolsets, served under `/v1/toolset/{id}/mcp`. */
6
+ Toolset = "toolset",
7
+ /** Application deployments, served under `/v1/deployments/{id}/mcp`. */
8
+ Application = "application"
9
+ }
10
+ /** Builds the MCP endpoint URL for a toolset resource. */
11
+ export declare const buildToolsetMcpUrl: (baseUrl: string, id: string) => string;
12
+ /** Builds the MCP endpoint URL for an application-deployment resource. */
13
+ export declare const buildApplicationMcpUrl: (baseUrl: string, id: string) => string;
14
+ /** Returns the MCP resource kind a catalog item's Connect endpoint belongs to, or `null` when the item exposes no MCP endpoint. */
15
+ export declare const resolveMcpResourceKind: (type: CatalogEntityType, supportsMcp?: boolean) => McpResourceKind | null;
16
+ /** Builds the "Connect" tab's resource/endpoint/snippet data for the MCP endpoint of the given resource kind. */
17
+ export declare const buildConnectApi: (baseUrl: string, id: string, kind: McpResourceKind) => CatalogItemApiDetails;
18
+ //# sourceMappingURL=mcp-endpoint-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/mcp-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oEAAoE;AACpE,oBAAY,eAAe;IACzB,qDAAqD;IACrD,OAAO,YAAY;IACnB,wEAAwE;IACxE,WAAW,gBAAgB;CAC5B;AAmBD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAE9E,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAUlF,mIAAmI;AACnI,eAAO,MAAM,sBAAsB,GACjC,MAAM,iBAAiB,EACvB,cAAc,OAAO,KACpB,eAAe,GAAG,IAMpB,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,IAAI,MAAM,EACV,MAAM,eAAe,KACpB,qBAWF,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { PublishConversationResultDto, PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
2
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
3
+ import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
4
+ /**
5
+ * The publish API's entity-type path param values. Re-declared as a plain
6
+ * string-literal union rather than importing the generated
7
+ * `PublishCatalogEntityEntityTypeEnum`, so this module has no dependency on
8
+ * the app's own `server-api` layer.
9
+ */
10
+ export type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill' | 'project';
11
+ /** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
12
+ export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
13
+ /**
14
+ * Whether a catalog entity id addresses the shared `public` bucket
15
+ * (`{resourceType}/public/{folder…}/{name}`), i.e. the id names a published
16
+ * copy rather than the author's own source item.
17
+ *
18
+ * The bucket is always the second segment, so a personal item that happens to
19
+ * own a folder called `public` (`applications/{bucket}/public/{name}`) is not
20
+ * matched. An id with no bucket segment at all — a plain model id such as
21
+ * `gpt-4` — is not public.
22
+ */
23
+ export declare const isPublicCatalogEntityId: (entityId: string) => boolean;
24
+ /**
25
+ * The publish folder a public catalog entity id sits in: the segments between
26
+ * the `public` bucket and the entity name, decoded to the plain text the
27
+ * publish API takes. Empty for a copy published at the public root, and for an
28
+ * id that is not public at all.
29
+ */
30
+ export declare const getPublicCatalogEntityFolderPath: (entityId: string) => string[];
31
+ /** Maps a publish-history API response entry to the catalog lib's `PublishHistoryEntry` model. */
32
+ export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
33
+ /** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
34
+ export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
35
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAiB,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGvE;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAClC,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAYvE,qIAAqI;AACrI,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,KACtB,wBAAwB,GAAG,SAA2C,CAAC;AAE1E;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,OACjB,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,MAAM,EAGlE,CAAC;AAET,kGAAkG;AAClG,eAAO,MAAM,yBAAyB,GACpC,KAAK,sBAAsB,KAC1B,mBAKD,CAAC;AAEH,iHAAiH;AACjH,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,mBAKD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { CatalogItemLimits } from '@epam/ai-dial-catalog';
2
+ /** The capped row closest to its limit, with its consumed percentage. */
3
+ export interface WorstCappedRow {
4
+ /** Period label of that row, e.g. `'Today'`. */
5
+ label: string;
6
+ /** Consumed share of that row's limit, rounded and clamped to 0–100. */
7
+ usedPercent: number;
8
+ }
9
+ /**
10
+ * Returns the capped row with the highest used/total ratio across every group,
11
+ * or `undefined` when no row is capped.
12
+ */
13
+ export declare const findWorstCappedRow: (limits: CatalogItemLimits | undefined) => WorstCappedRow | undefined;
14
+ //# sourceMappingURL=usage-limit-rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-limit-rows.d.ts","sourceRoot":"","sources":["../../src/catalog/usage-limit-rows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAG/B,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;CACrB;AAKD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,iBAAiB,GAAG,SAAS,KACpC,cAAc,GAAG,SAwBnB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { isCappedStat as e } from "../shared/usage-stat.js";
2
+ //#region src/catalog/usage-limit-rows.ts
3
+ var t = (t) => t.isUnlimited !== !0 && e(t.total), n = (e) => {
4
+ let n;
5
+ for (let r of e?.groups ?? []) for (let e of r.rows) {
6
+ if (!t(e)) continue;
7
+ let r = Math.max(e.used, 0) / e.total;
8
+ (n == null || r > n.ratio) && (n = {
9
+ label: e.label,
10
+ ratio: r
11
+ });
12
+ }
13
+ if (n != null) return {
14
+ label: n.label,
15
+ usedPercent: Math.min(100, Math.round(n.ratio * 100))
16
+ };
17
+ };
18
+ //#endregion
19
+ export { n as findWorstCappedRow };