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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/api-error/api-error.d.ts +30 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-error/api-error.js +2 -2
  4. package/api-transport/create-csrf-middleware.d.ts +15 -0
  5. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  7. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  8. package/api-transport/create-unauthorized-middleware.js +4 -1
  9. package/attachment/attach-constraints.d.ts +31 -0
  10. package/attachment/attach-constraints.d.ts.map +1 -0
  11. package/attachment/attach-constraints.js +18 -0
  12. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +32 -0
  13. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -0
  14. package/attachment/useAttachmentAction/useAttachmentAction.js +25 -28
  15. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts +50 -0
  16. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -0
  17. package/attachments.d.ts +2 -94
  18. package/attachments.js +2 -1
  19. package/catalog/application-credentials.d.ts +15 -0
  20. package/catalog/application-credentials.d.ts.map +1 -0
  21. package/catalog/application-credentials.js +33 -0
  22. package/catalog/catalog-derivations.d.ts +29 -0
  23. package/catalog/catalog-derivations.d.ts.map +1 -0
  24. package/catalog/catalog-derivations.js +13 -6
  25. package/catalog/catalog-entity-kind.d.ts +31 -0
  26. package/catalog/catalog-entity-kind.d.ts.map +1 -0
  27. package/catalog/catalog-entity-kind.js +21 -0
  28. package/catalog/catalog-preferences.d.ts +8 -0
  29. package/catalog/catalog-preferences.d.ts.map +1 -0
  30. package/catalog/catalog-preferences.js +5 -0
  31. package/catalog/catalog-primary-action.d.ts +47 -0
  32. package/catalog/catalog-primary-action.d.ts.map +1 -0
  33. package/catalog/create-publish-api.d.ts +34 -0
  34. package/catalog/create-publish-api.d.ts.map +1 -0
  35. package/catalog/create-publish-api.js +4 -0
  36. package/catalog/deployment-endpoint-url.d.ts +19 -0
  37. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  38. package/catalog/deployment-id.d.ts +51 -0
  39. package/catalog/deployment-id.d.ts.map +1 -0
  40. package/catalog/deployment-id.js +17 -3
  41. package/catalog/entity-details.d.ts +148 -0
  42. package/catalog/entity-details.d.ts.map +1 -0
  43. package/catalog/favorite-entity-type.d.ts +5 -0
  44. package/catalog/favorite-entity-type.d.ts.map +1 -0
  45. package/catalog/favorite-entity-type.js +10 -0
  46. package/catalog/map-deployment-limits-to-catalog.d.ts +34 -0
  47. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  48. package/catalog/map-deployment-limits-to-input.d.ts +29 -0
  49. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  50. package/catalog/map-deployment-limits-to-input.js +3 -4
  51. package/catalog/map-deployment-to-catalog-item.d.ts +72 -0
  52. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  53. package/catalog/map-deployment-to-catalog-item.js +17 -12
  54. package/catalog/map-entity-details-to-catalog.d.ts +81 -0
  55. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  56. package/catalog/map-entity-details-to-catalog.js +69 -24
  57. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  58. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  59. package/catalog/map-skill-to-catalog-item.d.ts +112 -0
  60. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  61. package/catalog/map-skill-to-catalog-item.js +11 -20
  62. package/catalog/mcp-endpoint-url.d.ts +18 -0
  63. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  64. package/catalog/publish.d.ts +35 -0
  65. package/catalog/publish.d.ts.map +1 -0
  66. package/catalog/usage-limit-rows.d.ts +14 -0
  67. package/catalog/usage-limit-rows.d.ts.map +1 -0
  68. package/catalog/usage-limit-rows.js +19 -0
  69. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts +19 -0
  70. package/catalog/useApplicationCredentials/useApplicationCredentials.d.ts.map +1 -0
  71. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +119 -0
  72. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -0
  73. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +99 -80
  74. package/catalog/useCatalogItemDetails.d.ts +70 -0
  75. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  76. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts +76 -0
  77. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.d.ts.map +1 -0
  78. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +24 -24
  79. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  80. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  81. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +1 -1
  82. package/catalog/usePublishFolders/usePublishFolders.d.ts +73 -0
  83. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  84. package/catalog/usePublishFolders/usePublishFolders.js +1 -1
  85. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts +54 -0
  86. package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.d.ts.map +1 -0
  87. package/catalog/useSkillItemDetails.d.ts +64 -0
  88. package/catalog/useSkillItemDetails.d.ts.map +1 -0
  89. package/catalog/useSkillItemDetails.js +3 -3
  90. package/catalog.d.ts +2 -1436
  91. package/catalog.js +28 -23
  92. package/conversation/announcement-message.d.ts +61 -0
  93. package/conversation/announcement-message.d.ts.map +1 -0
  94. package/conversation/conversation-draft/conversation-draft-store.d.ts +21 -0
  95. package/conversation/conversation-draft/conversation-draft-store.d.ts.map +1 -0
  96. package/conversation/conversation-draft/conversation-draft-store.js +84 -0
  97. package/conversation/conversation-draft/conversation-draft.d.ts +48 -0
  98. package/conversation/conversation-draft/conversation-draft.d.ts.map +1 -0
  99. package/conversation/conversation-list.d.ts +6 -0
  100. package/conversation/conversation-list.d.ts.map +1 -0
  101. package/conversation/conversation-list.js +5 -0
  102. package/conversation/conversation-transfer/async.d.ts +10 -0
  103. package/conversation/conversation-transfer/async.d.ts.map +1 -0
  104. package/conversation/conversation-transfer/attachment-refs.d.ts +50 -0
  105. package/conversation/conversation-transfer/attachment-refs.d.ts.map +1 -0
  106. package/conversation/conversation-transfer/attachment-refs.js +31 -9
  107. package/conversation/conversation-transfer/build-upload-path.d.ts +42 -0
  108. package/conversation/conversation-transfer/build-upload-path.d.ts.map +1 -0
  109. package/conversation/conversation-transfer/date.d.ts +5 -0
  110. package/conversation/conversation-transfer/date.d.ts.map +1 -0
  111. package/conversation/conversation-transfer/dial-file-resolve.d.ts +10 -0
  112. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +1 -0
  113. package/conversation/conversation-transfer/export-conversation.d.ts +14 -0
  114. package/conversation/conversation-transfer/export-conversation.d.ts.map +1 -0
  115. package/conversation/conversation-transfer/export-conversation.js +19 -18
  116. package/conversation/conversation-transfer/import-conversation.d.ts +111 -0
  117. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -0
  118. package/conversation/conversation-transfer/import-conversation.js +65 -69
  119. package/conversation/conversation-transfer/progress.d.ts +60 -0
  120. package/conversation/conversation-transfer/progress.d.ts.map +1 -0
  121. package/conversation/conversation-transfer/progress.js +1 -1
  122. package/conversation/conversation-transfer/queue.d.ts +54 -0
  123. package/conversation/conversation-transfer/queue.d.ts.map +1 -0
  124. package/conversation/conversation-transfer/types.d.ts +36 -0
  125. package/conversation/conversation-transfer/types.d.ts.map +1 -0
  126. package/conversation/conversation-transfer/zip-export.d.ts +31 -0
  127. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -0
  128. package/conversation/conversation-transfer/zip-export.js +1 -7
  129. package/conversation/conversation-transfer/zip-import.d.ts +17 -0
  130. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -0
  131. package/conversation/conversation-transfer/zip-import.js +1 -1
  132. package/conversation/create-chat-stream-api.d.ts +109 -0
  133. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  134. package/conversation/create-chat-stream-api.js +57 -47
  135. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  136. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  137. package/conversation/display-name-watch.d.ts +4 -0
  138. package/conversation/display-name-watch.d.ts.map +1 -0
  139. package/conversation/footer-message.d.ts +10 -0
  140. package/conversation/footer-message.d.ts.map +1 -0
  141. package/conversation/generation-registry.d.ts +30 -0
  142. package/conversation/generation-registry.d.ts.map +1 -0
  143. package/conversation/generation-registry.js +33 -0
  144. package/conversation/get-model-id-from-conversation-id.d.ts +38 -0
  145. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  146. package/conversation/get-model-id-from-conversation-id.js +1 -1
  147. package/conversation/greeting.d.ts +18 -0
  148. package/conversation/greeting.d.ts.map +1 -0
  149. package/conversation/message-factory.d.ts +7 -0
  150. package/conversation/message-factory.d.ts.map +1 -0
  151. package/conversation/message-utils.d.ts +73 -0
  152. package/conversation/message-utils.d.ts.map +1 -0
  153. package/conversation/message-utils.js +14 -10
  154. package/conversation/overlay-messages.d.ts +5 -0
  155. package/conversation/overlay-messages.d.ts.map +1 -0
  156. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  157. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  158. package/conversation/scheduled-task-grouping.d.ts +48 -0
  159. package/conversation/scheduled-task-grouping.d.ts.map +1 -0
  160. package/conversation/scheduled-task-grouping.js +40 -0
  161. package/conversation/stage.d.ts +77 -0
  162. package/conversation/stage.d.ts.map +1 -0
  163. package/conversation/starter-option.d.ts +21 -0
  164. package/conversation/starter-option.d.ts.map +1 -0
  165. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +37 -0
  166. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  167. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -12
  168. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +46 -0
  169. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  170. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +27 -0
  171. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +1 -0
  172. package/conversation/useAttachmentUpload/useAttachmentUpload.js +4 -1
  173. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts +39 -0
  174. package/conversation/useConversationComposerDraft/useConversationComposerDraft.d.ts.map +1 -0
  175. package/conversation/useConversationComposerDraft/useConversationComposerDraft.js +128 -0
  176. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
  177. package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
  178. package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
  179. package/conversation/useConversationExport/useConversationExport.d.ts +72 -0
  180. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -0
  181. package/conversation/useConversationExport/useConversationExport.js +59 -60
  182. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +7 -0
  183. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +1 -0
  184. package/conversation/useConversationHandlers/message-factory.d.ts +9 -0
  185. package/conversation/useConversationHandlers/message-factory.d.ts.map +1 -0
  186. package/conversation/useConversationHandlers/message-utils.d.ts +38 -0
  187. package/conversation/useConversationHandlers/message-utils.d.ts.map +1 -0
  188. package/conversation/useConversationHandlers/message-utils.js +2 -2
  189. package/conversation/useConversationHandlers/starter-option.d.ts +24 -0
  190. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -0
  191. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +66 -0
  192. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -0
  193. package/conversation/useConversationHandlers/useConversationHandlers.js +2 -2
  194. package/conversation/useConversationImport/useConversationImport.d.ts +54 -0
  195. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -0
  196. package/conversation/useConversationImport/useConversationImport.js +24 -24
  197. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  198. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  199. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +65 -0
  200. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  201. package/conversation/useConversationPanelItems/useConversationPanelItems.js +34 -30
  202. package/conversation/useConversationScroll/useConversationScroll.d.ts +46 -0
  203. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +1 -0
  204. package/conversation/useConversationScroll/useConversationScroll.js +2 -6
  205. package/conversation/useConversationStream/apply-chunk.d.ts +35 -0
  206. package/conversation/useConversationStream/apply-chunk.d.ts.map +1 -0
  207. package/conversation/useConversationStream/buffered-generation.d.ts +15 -0
  208. package/conversation/useConversationStream/buffered-generation.d.ts.map +1 -0
  209. package/conversation/useConversationStream/conversation-path.d.ts +7 -0
  210. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -0
  211. package/conversation/useConversationStream/conversation-path.js +2 -2
  212. package/conversation/useConversationStream/frame-scheduler.d.ts +14 -0
  213. package/conversation/useConversationStream/frame-scheduler.d.ts.map +1 -0
  214. package/conversation/useConversationStream/frame-scheduler.js +17 -17
  215. package/conversation/useConversationStream/generation-resume.d.ts +98 -0
  216. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -0
  217. package/conversation/useConversationStream/generation-resume.js +93 -122
  218. package/conversation/useConversationStream/useConversationStream.d.ts +145 -0
  219. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -0
  220. package/conversation/useConversationStream/useConversationStream.js +250 -241
  221. package/conversation/useConversationTitleEnrichmentController.d.ts +64 -0
  222. package/conversation/useConversationTitleEnrichmentController.d.ts.map +1 -0
  223. package/conversation/useConversationTitleEnrichmentController.js +155 -0
  224. package/conversation/useDeploymentChangeTracking.d.ts +14 -0
  225. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -0
  226. package/conversation/useDeploymentChangeTracking.js +23 -0
  227. package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
  228. package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
  229. package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
  230. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  231. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  232. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts +42 -0
  233. package/conversation/useMessageSelectionReply/useMessageSelectionReply.d.ts.map +1 -0
  234. package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +4 -10
  235. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts +19 -0
  236. package/conversation/useTranscribeAudio/audio-transcription-error.d.ts.map +1 -0
  237. package/conversation/useTranscribeAudio/transcription-retry.d.ts +2 -0
  238. package/conversation/useTranscribeAudio/transcription-retry.d.ts.map +1 -0
  239. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts +50 -0
  240. package/conversation/useTranscribeAudio/useTranscribeAudio.d.ts.map +1 -0
  241. package/conversation/useTranscribeAudio/useTranscribeAudio.js +36 -27
  242. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts +16 -0
  243. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.d.ts.map +1 -0
  244. package/conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js +17 -0
  245. package/conversation-overlay.d.ts +2 -7
  246. package/conversation-overlay.js +1 -2
  247. package/conversation-sources/stage-citations.d.ts +9 -0
  248. package/conversation-sources/stage-citations.d.ts.map +1 -0
  249. package/conversation-sources/stage-citations.js +8 -0
  250. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts +4 -0
  251. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.d.ts.map +1 -0
  252. package/conversation-sources/useConversationAnnotationPool/useConversationAnnotationPool.js +5 -0
  253. package/conversation-sources/useConversationSources/useConversationSources.d.ts +20 -0
  254. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +1 -0
  255. package/conversation-sources.d.ts +2 -25
  256. package/conversation-sources.js +3 -1
  257. package/conversation-transfer.d.ts +2 -190
  258. package/conversation.d.ts +2 -1372
  259. package/conversation.js +42 -32
  260. package/entry-points/attachments.d.ts +4 -0
  261. package/entry-points/attachments.d.ts.map +1 -0
  262. package/entry-points/catalog.d.ts +30 -0
  263. package/entry-points/catalog.d.ts.map +1 -0
  264. package/entry-points/conversation-overlay.d.ts +2 -0
  265. package/entry-points/conversation-overlay.d.ts.map +1 -0
  266. package/entry-points/conversation-sources.d.ts +4 -0
  267. package/entry-points/conversation-sources.d.ts.map +1 -0
  268. package/entry-points/conversation-transfer.d.ts +7 -0
  269. package/entry-points/conversation-transfer.d.ts.map +1 -0
  270. package/entry-points/conversation.d.ts +44 -0
  271. package/entry-points/conversation.d.ts.map +1 -0
  272. package/entry-points/external-services.d.ts +2 -0
  273. package/entry-points/external-services.d.ts.map +1 -0
  274. package/entry-points/file-manager-canvas.d.ts +3 -0
  275. package/entry-points/file-manager-canvas.d.ts.map +1 -0
  276. package/entry-points/file-manager.d.ts +33 -0
  277. package/entry-points/file-manager.d.ts.map +1 -0
  278. package/entry-points/mcp-apps.d.ts +6 -0
  279. package/entry-points/mcp-apps.d.ts.map +1 -0
  280. package/entry-points/oauth.d.ts +10 -0
  281. package/entry-points/oauth.d.ts.map +1 -0
  282. package/entry-points/offline-credentials.d.ts +7 -0
  283. package/entry-points/offline-credentials.d.ts.map +1 -0
  284. package/entry-points/project.d.ts +13 -0
  285. package/entry-points/project.d.ts.map +1 -0
  286. package/entry-points/scheduled-tasks.d.ts +13 -0
  287. package/entry-points/scheduled-tasks.d.ts.map +1 -0
  288. package/entry-points/scroll-anchoring.d.ts +2 -0
  289. package/entry-points/scroll-anchoring.d.ts.map +1 -0
  290. package/entry-points/sharing.d.ts +3 -0
  291. package/entry-points/sharing.d.ts.map +1 -0
  292. package/entry-points/skill-editor.d.ts +11 -0
  293. package/entry-points/skill-editor.d.ts.map +1 -0
  294. package/entry-points/skills-state.d.ts +3 -0
  295. package/entry-points/skills-state.d.ts.map +1 -0
  296. package/entry-points/source-content.d.ts +2 -0
  297. package/entry-points/source-content.d.ts.map +1 -0
  298. package/entry-points/usage-limits.d.ts +8 -0
  299. package/entry-points/usage-limits.d.ts.map +1 -0
  300. package/entry-points/usage.d.ts +3 -0
  301. package/entry-points/usage.d.ts.map +1 -0
  302. package/entry-points/utils.d.ts +21 -0
  303. package/entry-points/utils.d.ts.map +1 -0
  304. package/entry-points/viewport-layout.d.ts +5 -0
  305. package/entry-points/viewport-layout.d.ts.map +1 -0
  306. package/external-services/useExternalServiceLogin.d.ts +109 -0
  307. package/external-services/useExternalServiceLogin.d.ts.map +1 -0
  308. package/external-services/useExternalServiceLogin.js +102 -0
  309. package/external-services.d.ts +2 -0
  310. package/external-services.js +1 -0
  311. package/file-manager-canvas.d.ts +2 -418
  312. package/file-manager-canvas.js +3 -2
  313. package/file-manager.d.ts +2 -1250
  314. package/file-manager.js +32 -30
  315. package/files/annotation.d.ts +10 -0
  316. package/files/annotation.d.ts.map +1 -0
  317. package/files/attachment-canvas.d.ts +135 -0
  318. package/files/attachment-canvas.d.ts.map +1 -0
  319. package/files/attachment-canvas.js +18 -10
  320. package/files/attachment-dto-to-display.d.ts +10 -0
  321. package/files/attachment-dto-to-display.d.ts.map +1 -0
  322. package/files/attachment-dto-to-display.js +13 -12
  323. package/files/attachment-types.d.ts +21 -0
  324. package/files/attachment-types.d.ts.map +1 -0
  325. package/files/attachment-types.js +1 -1
  326. package/files/browser-download.d.ts +9 -0
  327. package/files/browser-download.d.ts.map +1 -0
  328. package/files/browser-download.js +23 -0
  329. package/files/create-files-api.d.ts +52 -0
  330. package/files/create-files-api.d.ts.map +1 -0
  331. package/files/create-files-api.js +1 -1
  332. package/files/create-upload-file-with-progress.d.ts +44 -0
  333. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  334. package/files/create-upload-file-with-progress.js +50 -34
  335. package/files/dial-file-manager-copy-move.util.d.ts +15 -0
  336. package/files/dial-file-manager-copy-move.util.d.ts.map +1 -0
  337. package/files/dial-file-manager-mapping.util.d.ts +55 -0
  338. package/files/dial-file-manager-mapping.util.d.ts.map +1 -0
  339. package/files/dial-file-manager-mapping.util.js +97 -69
  340. package/files/dial-file-manager-path.util.d.ts +48 -0
  341. package/files/dial-file-manager-path.util.d.ts.map +1 -0
  342. package/files/dial-file-manager.model.d.ts +36 -0
  343. package/files/dial-file-manager.model.d.ts.map +1 -0
  344. package/files/dial-file-manager.types.d.ts +337 -0
  345. package/files/dial-file-manager.types.d.ts.map +1 -0
  346. package/files/dial-file-to-attachment.d.ts +26 -0
  347. package/files/dial-file-to-attachment.d.ts.map +1 -0
  348. package/files/dial-file-to-attachment.js +3 -3
  349. package/files/dial-file.d.ts +36 -0
  350. package/files/dial-file.d.ts.map +1 -0
  351. package/files/dial-file.js +20 -12
  352. package/files/dial-files-api.d.ts +71 -0
  353. package/files/dial-files-api.d.ts.map +1 -0
  354. package/files/download-destination.d.ts +31 -0
  355. package/files/download-destination.d.ts.map +1 -0
  356. package/files/download-progress.d.ts +33 -0
  357. package/files/download-progress.d.ts.map +1 -0
  358. package/files/download-progress.js +28 -0
  359. package/files/file-manager-variant.d.ts +3 -0
  360. package/files/file-manager-variant.d.ts.map +1 -0
  361. package/files/file-name.d.ts +19 -0
  362. package/files/file-name.d.ts.map +1 -0
  363. package/files/prepare-download-destination.d.ts +8 -0
  364. package/files/prepare-download-destination.d.ts.map +1 -0
  365. package/files/resolve-dial-file-api-path.d.ts +12 -0
  366. package/files/resolve-dial-file-api-path.d.ts.map +1 -0
  367. package/files/source-content.d.ts +28 -0
  368. package/files/source-content.d.ts.map +1 -0
  369. package/files/source-content.js +1 -1
  370. package/files/useDialFileListing/useDialFileListing.d.ts +82 -0
  371. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -0
  372. package/files/useDialFileListing/useDialFileListing.js +171 -183
  373. package/files/useDialFileManager/useDialFileManager.d.ts +16 -0
  374. package/files/useDialFileManager/useDialFileManager.d.ts.map +1 -0
  375. package/files/useDialFileManager/useDialFileManager.js +5 -2
  376. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts +25 -0
  377. package/files/useDialFileManagerSections/useDialFileManagerSections.d.ts.map +1 -0
  378. package/files/useDialFileManagerSections/useDialFileManagerSections.js +59 -68
  379. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +15 -0
  380. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +1 -0
  381. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -1
  382. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +28 -0
  383. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +1 -0
  384. package/files/useDialFileMetadata/useDialFileMetadata.js +3 -3
  385. package/files/useDialFileMutations/useDialFileMutations.d.ts +77 -0
  386. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +1 -0
  387. package/files/useDialFileMutations/useDialFileMutations.js +230 -159
  388. package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
  389. package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
  390. package/files/useDialFilePreview/useDialFilePreview.js +45 -0
  391. package/files/useDialFileSharing/useDialFileSharing.d.ts +34 -0
  392. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +1 -0
  393. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +47 -0
  394. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -0
  395. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +114 -103
  396. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
  397. package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
  398. package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
  399. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts +59 -0
  400. package/files/useFileAttachmentPicker/useFileAttachmentPicker.d.ts.map +1 -0
  401. package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +2 -2
  402. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts +23 -0
  403. package/files/useUnshareConfirmationState/useUnshareConfirmationState.d.ts.map +1 -0
  404. package/files/useUnshareConfirmationState/useUnshareConfirmationState.js +18 -0
  405. package/index.d.ts +213 -6990
  406. package/index.d.ts.map +1 -0
  407. package/index.js +207 -146
  408. package/mcp-apps/mcp-apps-api-client.d.ts +28 -0
  409. package/mcp-apps/mcp-apps-api-client.d.ts.map +1 -0
  410. package/mcp-apps/mcp-apps-api-client.js +18 -17
  411. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts +14 -0
  412. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.d.ts.map +1 -0
  413. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +30 -0
  414. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -0
  415. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +28 -10
  416. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts +22 -0
  417. package/mcp-apps/useMcpAppTools/useMcpAppTools.d.ts.map +1 -0
  418. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +28 -31
  419. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts +36 -0
  420. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.d.ts.map +1 -0
  421. package/mcp-apps.d.ts +2 -256
  422. package/oauth/authorize-url.d.ts +16 -0
  423. package/oauth/authorize-url.d.ts.map +1 -0
  424. package/oauth/authorize-url.js +1 -1
  425. package/oauth/handshake.d.ts +30 -0
  426. package/oauth/handshake.d.ts.map +1 -0
  427. package/oauth/handshake.js +3 -10
  428. package/oauth/models.d.ts +81 -0
  429. package/oauth/models.d.ts.map +1 -0
  430. package/oauth/popup.d.ts +30 -0
  431. package/oauth/popup.d.ts.map +1 -0
  432. package/oauth/popup.js +19 -17
  433. package/oauth/toolset-id.d.ts +60 -0
  434. package/oauth/toolset-id.d.ts.map +1 -0
  435. package/oauth/toolset-id.js +9 -2
  436. package/oauth/types.d.ts +84 -0
  437. package/oauth/types.d.ts.map +1 -0
  438. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  439. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  440. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +41 -42
  441. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +79 -0
  442. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  443. package/oauth/useToolsetLogin/useToolsetLogin.js +2 -1
  444. package/oauth.d.ts +2 -472
  445. package/oauth.js +8 -8
  446. package/offline-credentials/map-offline-credentials-response.d.ts +20 -0
  447. package/offline-credentials/map-offline-credentials-response.d.ts.map +1 -0
  448. package/offline-credentials/map-offline-credentials-response.js +17 -0
  449. package/offline-credentials/scheduled-tasks-login-banner.d.ts +31 -0
  450. package/offline-credentials/scheduled-tasks-login-banner.d.ts.map +1 -0
  451. package/offline-credentials/scheduled-tasks-login-banner.js +17 -0
  452. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts +58 -0
  453. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.d.ts.map +1 -0
  454. package/offline-credentials/useOfflineCredentialsAuth/useOfflineCredentialsAuth.js +37 -0
  455. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts +61 -0
  456. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.d.ts.map +1 -0
  457. package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +37 -0
  458. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts +28 -0
  459. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.d.ts.map +1 -0
  460. package/offline-credentials/useOfflineCredentialsLogin/useOfflineCredentialsLogin.js +29 -0
  461. package/offline-credentials.d.ts +2 -0
  462. package/offline-credentials.js +7 -0
  463. package/package.json +49 -25
  464. package/project/project-events.d.ts +14 -0
  465. package/project/project-events.d.ts.map +1 -0
  466. package/project/project-events.js +25 -0
  467. package/project/project-form-errors.d.ts +23 -0
  468. package/project/project-form-errors.d.ts.map +1 -0
  469. package/project/project-form-errors.js +46 -0
  470. package/project/project-limits.d.ts +17 -0
  471. package/project/project-limits.d.ts.map +1 -0
  472. package/project/project-limits.js +11 -0
  473. package/project/project-mapping.d.ts +11 -0
  474. package/project/project-mapping.d.ts.map +1 -0
  475. package/project/project-mapping.js +36 -0
  476. package/project/project-refresh.d.ts +12 -0
  477. package/project/project-refresh.d.ts.map +1 -0
  478. package/project/project-refresh.js +6 -0
  479. package/project/project-watch-stream.d.ts +26 -0
  480. package/project/project-watch-stream.d.ts.map +1 -0
  481. package/project/project-watch-stream.js +39 -0
  482. package/project/projects-api-client.d.ts +170 -0
  483. package/project/projects-api-client.d.ts.map +1 -0
  484. package/project/projects-api-client.js +87 -0
  485. package/project/use-project-actions.d.ts +48 -0
  486. package/project/use-project-actions.d.ts.map +1 -0
  487. package/project/use-project-actions.js +89 -0
  488. package/project/use-project-conversations.d.ts +29 -0
  489. package/project/use-project-conversations.d.ts.map +1 -0
  490. package/project/use-project-conversations.js +182 -0
  491. package/project/use-project-submit.d.ts +49 -0
  492. package/project/use-project-submit.d.ts.map +1 -0
  493. package/project/use-project-submit.js +73 -0
  494. package/project/use-project-watch.d.ts +24 -0
  495. package/project/use-project-watch.d.ts.map +1 -0
  496. package/project/use-project-watch.js +41 -0
  497. package/project/use-project.d.ts +23 -0
  498. package/project/use-project.d.ts.map +1 -0
  499. package/project/use-project.js +73 -0
  500. package/project/use-projects.d.ts +27 -0
  501. package/project/use-projects.d.ts.map +1 -0
  502. package/project/use-projects.js +92 -0
  503. package/project.d.ts +2 -0
  504. package/project.js +13 -0
  505. package/prompt/export-prompt.d.ts +31 -0
  506. package/prompt/export-prompt.d.ts.map +1 -0
  507. package/prompt/prompt-resource.d.ts +30 -0
  508. package/prompt/prompt-resource.d.ts.map +1 -0
  509. package/prompt/prompt.d.ts +34 -0
  510. package/prompt/prompt.d.ts.map +1 -0
  511. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  512. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  513. package/scheduled-task/active-scheduled-task.d.ts +58 -0
  514. package/scheduled-task/active-scheduled-task.d.ts.map +1 -0
  515. package/scheduled-task/active-scheduled-task.js +18 -0
  516. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts +27 -0
  517. package/scheduled-task/check-scheduled-task-auth-session-error.d.ts.map +1 -0
  518. package/scheduled-task/check-scheduled-task-auth-session-error.js +17 -0
  519. package/scheduled-task/scheduled-task-description.d.ts +41 -0
  520. package/scheduled-task/scheduled-task-description.d.ts.map +1 -0
  521. package/scheduled-task/scheduled-task-description.js +37 -28
  522. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  523. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  524. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  525. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  526. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  527. package/scheduled-task/scheduled-task-preparation.d.ts +19 -0
  528. package/scheduled-task/scheduled-task-preparation.d.ts.map +1 -0
  529. package/scheduled-task/scheduled-task-trigger.d.ts +26 -0
  530. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  531. package/scheduled-task/scheduled-task-trigger.js +68 -38
  532. package/scheduled-task/scheduled-tasks-api-client.d.ts +67 -0
  533. package/scheduled-task/scheduled-tasks-api-client.d.ts.map +1 -0
  534. package/scheduled-task/use-scheduled-task-runs.d.ts +40 -0
  535. package/scheduled-task/use-scheduled-task-runs.d.ts.map +1 -0
  536. package/scheduled-task/use-scheduled-task-runs.js +67 -79
  537. package/scheduled-task/use-scheduled-tasks.d.ts +28 -0
  538. package/scheduled-task/use-scheduled-tasks.d.ts.map +1 -0
  539. package/scheduled-task/use-scheduled-tasks.js +1 -1
  540. package/scheduled-task/useActiveScheduledTaskDetails.d.ts +18 -0
  541. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -0
  542. package/scheduled-task/useActiveScheduledTaskDetails.js +40 -0
  543. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
  544. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
  545. package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
  546. package/scheduled-tasks.d.ts +2 -250
  547. package/scheduled-tasks.js +6 -1
  548. package/scroll-anchoring.d.ts +2 -50
  549. package/scroll-anchoring.js +1 -2
  550. package/shared/application-schema.d.ts +16 -0
  551. package/shared/application-schema.d.ts.map +1 -0
  552. package/shared/application-schema.js +3 -3
  553. package/shared/browser-timezone.d.ts +7 -0
  554. package/shared/browser-timezone.d.ts.map +1 -0
  555. package/shared/client-channel.d.ts +53 -0
  556. package/shared/client-channel.d.ts.map +1 -0
  557. package/shared/client-channel.js +6 -0
  558. package/shared/cron-day-of-month.d.ts +21 -0
  559. package/shared/cron-day-of-month.d.ts.map +1 -0
  560. package/shared/cron-day-of-month.js +10 -10
  561. package/shared/cron-weekday.d.ts +5 -0
  562. package/shared/cron-weekday.d.ts.map +1 -0
  563. package/shared/custom-apps.d.ts +7 -0
  564. package/shared/custom-apps.d.ts.map +1 -0
  565. package/shared/external-services.d.ts +16 -0
  566. package/shared/external-services.d.ts.map +1 -0
  567. package/shared/formatting.d.ts +5 -0
  568. package/shared/formatting.d.ts.map +1 -0
  569. package/shared/locale.d.ts +45 -0
  570. package/shared/locale.d.ts.map +1 -0
  571. package/shared/locale.js +2 -2
  572. package/shared/read-sse-events.d.ts +10 -0
  573. package/shared/read-sse-events.d.ts.map +1 -0
  574. package/shared/read-sse-events.js +33 -0
  575. package/shared/serialized-writer.d.ts +10 -0
  576. package/shared/serialized-writer.d.ts.map +1 -0
  577. package/shared/serialized-writer.js +35 -0
  578. package/shared/string-utils.d.ts +11 -0
  579. package/shared/string-utils.d.ts.map +1 -0
  580. package/shared/theme-colors.d.ts +16 -0
  581. package/shared/theme-colors.d.ts.map +1 -0
  582. package/shared/theme-colors.js +14 -0
  583. package/shared/toolset-login-events.d.ts +15 -0
  584. package/shared/toolset-login-events.d.ts.map +1 -0
  585. package/shared/usage-stat.d.ts +3 -0
  586. package/shared/usage-stat.d.ts.map +1 -0
  587. package/shared/usage-stat.js +4 -0
  588. package/shared/usePersistedState/usePersistedState.d.ts +28 -0
  589. package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
  590. package/shared/usePersistedState/usePersistedState.js +24 -0
  591. package/sharing.d.ts +2 -65
  592. package/skill/skill-archive.d.ts +7 -0
  593. package/skill/skill-archive.d.ts.map +1 -0
  594. package/skill/skill-file-batch-validation.d.ts +74 -0
  595. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  596. package/skill/skill-file-batch-validation.js +34 -33
  597. package/skill/skill-file-preview.d.ts +25 -0
  598. package/skill/skill-file-preview.d.ts.map +1 -0
  599. package/skill/skill-lookup.d.ts +20 -0
  600. package/skill/skill-lookup.d.ts.map +1 -0
  601. package/skill/skill-lookup.js +12 -0
  602. package/skill/skill-manifest.d.ts +28 -0
  603. package/skill/skill-manifest.d.ts.map +1 -0
  604. package/skill/skill-types.d.ts +46 -0
  605. package/skill/skill-types.d.ts.map +1 -0
  606. package/skill/skill-types.js +1 -1
  607. package/skill/skill.d.ts +160 -0
  608. package/skill/skill.d.ts.map +1 -0
  609. package/skill/skill.js +12 -15
  610. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts +65 -0
  611. package/skill/useSkillArchiveImport/useSkillArchiveImport.d.ts.map +1 -0
  612. package/skill/useSkillArchiveImport/useSkillArchiveImport.js +1 -7
  613. package/skill/useSkillEditorLoad.d.ts +74 -0
  614. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  615. package/skill/useSkillEditorSubmit.d.ts +127 -0
  616. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  617. package/skill/useSkillEditorSubmit.js +77 -79
  618. package/skill/useSkillFileActions.d.ts +62 -0
  619. package/skill/useSkillFileActions.d.ts.map +1 -0
  620. package/skill/useSkillFileActions.js +36 -21
  621. package/skill/useSkillFilePreview.d.ts +38 -0
  622. package/skill/useSkillFilePreview.d.ts.map +1 -0
  623. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  624. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  625. package/skill-editor/useSkillFilePreviewSyncController.d.ts +41 -0
  626. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -0
  627. package/skill-editor/useSkillFilePreviewSyncController.js +58 -0
  628. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
  629. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
  630. package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
  631. package/skill-editor.d.ts +2 -655
  632. package/skill-editor.js +3 -1
  633. package/skills-state.d.ts +2 -40
  634. package/skills-state.js +3 -2
  635. package/source-content.d.ts +2 -29
  636. package/source-content.js +1 -2
  637. package/usage/map-usage-data-to-dashboard.d.ts +39 -0
  638. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -0
  639. package/usage/map-user-usage-to-model-limits.d.ts +62 -0
  640. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -0
  641. package/usage/usage-banner-source.d.ts +24 -0
  642. package/usage/usage-banner-source.d.ts.map +1 -0
  643. package/usage/usage-banner-source.js +61 -0
  644. package/usage/usage-period.d.ts +7 -0
  645. package/usage/usage-period.d.ts.map +1 -0
  646. package/usage/usage-period.js +6 -0
  647. package/usage/usage-reset-time.d.ts +78 -0
  648. package/usage/usage-reset-time.d.ts.map +1 -0
  649. package/usage/usage-reset-time.js +82 -0
  650. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +56 -0
  651. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -0
  652. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.js +34 -0
  653. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts +16 -0
  654. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.d.ts.map +1 -0
  655. package/usage/useRefreshUsageAfterGeneration/useRefreshUsageAfterGeneration.js +14 -0
  656. package/usage/useUsageData/useUsageData.d.ts +28 -0
  657. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  658. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +58 -0
  659. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -0
  660. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +70 -0
  661. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts +14 -0
  662. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.d.ts.map +1 -0
  663. package/usage/useUsageLimitBannerDismissal/useUsageLimitBannerDismissal.js +19 -0
  664. package/usage-limits.d.ts +2 -0
  665. package/usage-limits.js +9 -0
  666. package/usage.d.ts +2 -125
  667. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +130 -0
  668. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +1 -0
  669. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +25 -21
  670. package/usePageFileDrag/usePageFileDrag.d.ts +16 -0
  671. package/usePageFileDrag/usePageFileDrag.d.ts.map +1 -0
  672. package/usePageFileDrag/usePageFileDrag.js +3 -3
  673. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +6 -0
  674. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +1 -0
  675. package/useShareLink/useShareLink.d.ts +23 -0
  676. package/useShareLink/useShareLink.d.ts.map +1 -0
  677. package/useShareLink/useShareLink.js +1 -0
  678. package/useShareRecipientsCount/useShareRecipientsCount.d.ts +36 -0
  679. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +1 -0
  680. package/useToolsMenu/useToolsMenu.d.ts +31 -0
  681. package/useToolsMenu/useToolsMenu.d.ts.map +1 -0
  682. package/useViewportWidth/useViewportWidth.d.ts +3 -0
  683. package/useViewportWidth/useViewportWidth.d.ts.map +1 -0
  684. package/utils.d.ts +2 -404
  685. package/utils.js +13 -9
  686. package/viewport-layout/canvas-width.d.ts +39 -0
  687. package/viewport-layout/canvas-width.d.ts.map +1 -0
  688. package/viewport-layout/canvas-width.js +23 -0
  689. package/viewport-layout.d.ts +2 -27
  690. package/viewport-layout.js +2 -1
@@ -0,0 +1,21 @@
1
+ import { isQuickAppSchema as e } from "../shared/application-schema.js";
2
+ import { CatalogEntityType as t } from "@epam/ai-dial-chat-shared";
3
+ //#region src/catalog/catalog-entity-kind.ts
4
+ var n = /* @__PURE__ */ function(e) {
5
+ return e.Model = "model", e.Agent = "agent", e.QuickApp = "quickApp", e.SchemaApp = "schemaApp", e.CustomApp = "customApp", e.Toolset = "toolset", e.Skill = "skill", e.Prompt = "prompt", e;
6
+ }({}), r = {
7
+ [t.Model]: "model",
8
+ [t.Agent]: "agent",
9
+ [t.Toolset]: "toolset",
10
+ [t.Skill]: "skill",
11
+ [t.Prompt]: "prompt"
12
+ }, i = (e, t) => t ? e.find((e) => e.id === t)?.displayName : void 0, a = (n, i, a = []) => {
13
+ if (n !== t.Agent) return r[n];
14
+ if (i == null) return "agent";
15
+ let o = i.applicationTypeSchemaId;
16
+ if (!o) return "customApp";
17
+ let s = a.find((e) => e.id === o) ?? { id: o };
18
+ return e(s) ? "quickApp" : s.displayName ? "schemaApp" : "agent";
19
+ };
20
+ //#endregion
21
+ export { n as CatalogEntityKind, i as findSchemaDisplayName, a as resolveCatalogEntityKind };
@@ -0,0 +1,8 @@
1
+ import { CatalogSortKey } from '@epam/ai-dial-catalog';
2
+ /** Returns the stored catalog sort key when it is a known `CatalogSortKey`, otherwise `CatalogSortKey.RecentlyUpdated`. */
3
+ export declare const resolveCatalogSortKey: (stored: unknown) => CatalogSortKey;
4
+ /** Returns the string topics of a stored catalog topic filter as a set; anything that is not an array yields an empty set. */
5
+ export declare const parseCatalogFilterTopics: (stored: unknown) => Set<string>;
6
+ /** Returns the stored catalog tab when it is still available, otherwise the first available tab id. */
7
+ export declare const resolveCatalogActiveTab: (stored: unknown, availableTabIds: readonly string[]) => string | undefined;
8
+ //# sourceMappingURL=catalog-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-preferences.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,2HAA2H;AAC3H,eAAO,MAAM,qBAAqB,GAAI,QAAQ,OAAO,KAAG,cAGpB,CAAC;AAErC,8HAA8H;AAC9H,eAAO,MAAM,wBAAwB,GAAI,QAAQ,OAAO,KAAG,GAAG,CAAC,MAAM,CAKlE,CAAC;AAEJ,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,GAClC,QAAQ,OAAO,EACf,iBAAiB,SAAS,MAAM,EAAE,KACjC,MAAM,GAAG,SAGY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { CatalogSortKey as e } from "@epam/ai-dial-catalog";
2
+ //#region src/catalog/catalog-preferences.ts
3
+ var t = (t) => Object.values(e).includes(t) ? t : e.RecentlyUpdated, n = (e) => new Set(Array.isArray(e) ? e.filter((e) => typeof e == "string") : []), r = (e, t) => typeof e == "string" && t.includes(e) ? e : t[0];
4
+ //#endregion
5
+ export { n as parseCatalogFilterTopics, r as resolveCatalogActiveTab, t as resolveCatalogSortKey };
@@ -0,0 +1,47 @@
1
+ import { CatalogItem } from '@epam/ai-dial-catalog';
2
+ import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
3
+ /** Discriminant for primary-action result variants. */
4
+ export declare enum CatalogPrimaryActionType {
5
+ Deployment = "deployment",
6
+ Prompt = "prompt"
7
+ }
8
+ /** Primary action resolved for a deployment (model, agent, toolset, or skill). */
9
+ export interface CatalogPrimaryActionDeployment {
10
+ /** Discriminant. */
11
+ kind: CatalogPrimaryActionType.Deployment;
12
+ /** Deployment entity id. */
13
+ id: string;
14
+ }
15
+ /** Primary action resolved for a prompt. */
16
+ export interface CatalogPrimaryActionPrompt {
17
+ /** Discriminant. */
18
+ kind: CatalogPrimaryActionType.Prompt;
19
+ /** Prompt entity id. */
20
+ id: string;
21
+ /** Display name of the prompt. */
22
+ name: string;
23
+ /** Short description of the prompt. */
24
+ description: string;
25
+ /** Resolved prompt body (seeded from details or fetched). */
26
+ content: string;
27
+ /** Whether the prompt body contains at least one `{{parameter}}` placeholder. */
28
+ hasParameters: boolean;
29
+ }
30
+ /** Discriminated union of catalog primary-action results. */
31
+ export type CatalogPrimaryActionResult = CatalogPrimaryActionDeployment | CatalogPrimaryActionPrompt;
32
+ /**
33
+ * Resolves the primary action for a catalog item.
34
+ *
35
+ * For prompts: prefers already-seeded content from `item.details`; otherwise
36
+ * calls `fetchPrompt` once to retrieve the body. Sets `hasParameters` based on
37
+ * whether the content contains prompt-parameter placeholders.
38
+ *
39
+ * For all other entity types: returns a deployment result with the item id.
40
+ *
41
+ * The function does not navigate, select a deployment, show notifications, or
42
+ * import route constants — those remain the caller's responsibility.
43
+ *
44
+ * @throws When `fetchPrompt` rejects (propagated to the caller without wrapping).
45
+ */
46
+ export declare const resolveCatalogPrimaryAction: (item: CatalogItem, fetchPrompt: (item: CatalogItem) => Promise<PromptResponseDto>) => Promise<CatalogPrimaryActionResult>;
47
+ //# sourceMappingURL=catalog-primary-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-primary-action.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-primary-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,uDAAuD;AACvD,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,kFAAkF;AAClF,MAAM,WAAW,8BAA8B;IAC7C,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAC1C,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,4CAA4C;AAC5C,MAAM,WAAW,0BAA0B;IACzC,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC;IACtC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,MAAM,0BAA0B,GACpC,8BAA8B,GAAG,0BAA0B,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,WAAW,EACjB,aAAa,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,iBAAiB,CAAC,KAC7D,OAAO,CAAC,0BAA0B,CAmBpC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
2
+ import { PublicationRule } from '@epam/ai-dial-publish-panel';
3
+ import { CatalogPublishEntityType } from './publish';
4
+ /**
5
+ * Converts a `PublicationRule` (publish-panel lib model) to the generated
6
+ * client's `PublishRuleDto` shape. The two differ only in how the comparison
7
+ * function is typed, so the value passes through unchanged.
8
+ */
9
+ export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto;
10
+ /** The DIAL publish API surface produced by {@link createPublishApiClient}. */
11
+ export interface PublishApiClient {
12
+ /** Submits a publication request for one catalog entity into `folderPath`. */
13
+ publishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: PublishCatalogEntityDto) => Promise<PublishResultDto>;
14
+ /**
15
+ * Submits a removal request for one already-published folder of a catalog
16
+ * entity. The removal takes effect only after an administrator approves it,
17
+ * so callers must report a pending request rather than a completed removal.
18
+ */
19
+ unpublishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: UnpublishCatalogEntityDto) => Promise<UnpublishResultDto>;
20
+ /** Reads the folders one catalog entity is already published to. */
21
+ getCatalogPublishHistory: (entityType: CatalogPublishEntityType, entityId: string) => Promise<PublishHistoryEntryDto[]>;
22
+ /** Reads whether the caller may request removal of one catalog entity. */
23
+ getCatalogUnpublishAccess: (entityType: CatalogPublishEntityType, entityId: string) => Promise<UnpublishAccessDto>;
24
+ /** Reads a destination folder's already-configured access rules. */
25
+ getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
26
+ }
27
+ /**
28
+ * Wraps the generated `PublishApi` in the positional-argument surface the
29
+ * catalog and conversation publish flows call, so each host app re-exports one
30
+ * client instead of re-declaring the same four wrappers. Mirrors
31
+ * {@link createFilesApiClient}.
32
+ */
33
+ export declare const createPublishApiClient: (publishApi: PublishApi) => PublishApiClient;
34
+ //# sourceMappingURL=create-publish-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,KAAG,cAIvD,CAAC;AAEH,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,oBAAoB,EAAE,CACpB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,KAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,CACtB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,yBAAyB,KAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,oEAAoE;IACpE,wBAAwB,EAAE,CACxB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACvC,0EAA0E;IAC1E,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,oEAAoE;IACpE,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACrE;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,UAAU,KACrB,gBAwBD,CAAC"}
@@ -18,6 +18,10 @@ var e = (e) => ({
18
18
  entityType: t,
19
19
  entityId: n
20
20
  }),
21
+ getCatalogUnpublishAccess: (t, n) => e.getCatalogUnpublishAccess({
22
+ entityType: t,
23
+ entityId: n
24
+ }),
21
25
  getPublishRules: async (t) => (await e.getPublishRules({ folderPath: t })).rules.map(({ function: e, ...t }) => ({
22
26
  ...t,
23
27
  function: e
@@ -0,0 +1,19 @@
1
+ import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
2
+ /** Builds the OpenAI-compatible Chat Completions endpoint URL for a deployment. */
3
+ export declare const buildChatCompletionsUrl: (baseUrl: string, id: string) => string;
4
+ /** Builds the Responses API endpoint URL for a deployment. */
5
+ export declare const buildResponsesUrl: (baseUrl: string) => string;
6
+ /** Which generation APIs a deployment reports supporting. */
7
+ export interface DeploymentGenerationApiSupport {
8
+ hasChatCompletion?: boolean;
9
+ hasResponsesApi?: boolean;
10
+ }
11
+ /**
12
+ * Builds the "Connect" tab's endpoint list for a model or application
13
+ * deployment: the OpenAI-compatible Chat Completions endpoint and/or the
14
+ * Responses API endpoint, each included only when the deployment reports
15
+ * supporting it. DIAL Core routes both APIs the same way for models and
16
+ * custom applications, keyed by the deployment id.
17
+ */
18
+ export declare const buildDeploymentConnectApi: (baseUrl: string, id: string, { hasChatCompletion, hasResponsesApi }: DeploymentGenerationApiSupport) => CatalogItemApiDetails | undefined;
19
+ //# sourceMappingURL=deployment-endpoint-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAuB/B,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MAC2B,CAAC;AAElG,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MACC,CAAC;AAEtD,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,MAAM,EACf,IAAI,MAAM,EACV,wCAAwC,8BAA8B,KACrE,qBAAqB,GAAG,SAqC1B,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
2
+ /**
3
+ * Percent-encodes each `/`-separated segment of a deployment/application id
4
+ * so it satisfies the backend's `DEPLOYMENT_ID_PATTERN` (spaces and other
5
+ * reserved characters must be percent-encoded; `/` stays a literal path
6
+ * separator). Applications created via `POST /api/v1/applications` return an
7
+ * id built from the raw, human-readable name (e.g. `applications/<bucket>/My
8
+ * App__1.0`), which is only ever consumed by the settings iframe's postMessage
9
+ * protocol elsewhere — anywhere that id is used as a chat `deploymentId`, it
10
+ * must be encoded first.
11
+ */
12
+ export declare const encodeDeploymentId: (id: string) => string;
13
+ /**
14
+ * Inverse of `encodeDeploymentId` — decodes each `/`-separated segment back
15
+ * to its raw, human-readable form. A segment that isn't valid
16
+ * percent-encoding is passed through unchanged rather than throwing, since
17
+ * this decodes externally-sourced ids (the settings iframe's postMessage
18
+ * protocol).
19
+ */
20
+ export declare const decodeDeploymentId: (id: string) => string;
21
+ /**
22
+ * Encodes a deployment/application id to its single-encoded form regardless
23
+ * of whether the value it received was already percent-encoded or the raw,
24
+ * human-readable form — decoding first then re-encoding once is idempotent
25
+ * either way, since `decodeDeploymentId` on a raw (unencoded) id is a no-op.
26
+ * Use this instead of `encodeDeploymentId` at a boundary that cannot
27
+ * guarantee which form it receives, such as a `postMessage` payload from the
28
+ * settings iframe: calling `encodeDeploymentId` directly on a value the
29
+ * sender already encoded escapes the existing `%` characters a second time
30
+ * (`%20` becomes `%2520`), which the backend only ever undoes once and so
31
+ * 404s on.
32
+ */
33
+ export declare const normalizeDeploymentId: (id: string) => string;
34
+ /**
35
+ * Indexes a deployment-list snapshot for repeated lookups. Rebuild when the
36
+ * list changes. Preserves the exact-id, exact-reference, normalized-id
37
+ * precedence and first-match behavior of `findDeploymentByIdOrReference`.
38
+ */
39
+ export declare const createDeploymentLookup: (deployments: DeploymentItemDto[]) => (idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
40
+ /**
41
+ * Finds a deployment matching `idOrReference` by `id` first, falling back to
42
+ * `reference` when no `id` matches, and finally to an `id` match that ignores
43
+ * percent-encoding. DIAL Core sometimes addresses a deployment by `reference`
44
+ * in places that store a deployment id (e.g. a conversation's or message's
45
+ * `model.id`), and a conversation created by a Custom Viewer (a DIAL Loop
46
+ * agent) may store the raw, human-readable application id while the listing
47
+ * returns it encoded ([#9275](https://github.com/epam/ai-dial-chat/issues/9275)), so lookups against the fetched deployments
48
+ * list must accept any of these forms.
49
+ */
50
+ export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
51
+ //# sourceMappingURL=deployment-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-id.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAIlC,CAAC;AAEf;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAUlC,CAAC;AAEf;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACP,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,iBAAiB,EAAE,MAenE,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAQxB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAUtB,CAAC"}
@@ -5,8 +5,22 @@ var e = (e) => e.split("/").map((e) => encodeURIComponent(e)).join("/"), t = (e)
5
5
  } catch {
6
6
  return e;
7
7
  }
8
- }).join("/"), n = (n) => e(t(n)), r = (e, t) => {
9
- if (t) return e.find((e) => e.id === t) ?? e.find((e) => e.reference === t);
8
+ }).join("/"), n = (n) => e(t(n)), r = (e) => {
9
+ let t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
10
+ for (let a of e) {
11
+ t.has(a.id) || t.set(a.id, a), a.reference && !r.has(a.reference) && r.set(a.reference, a);
12
+ let e = n(a.id);
13
+ i.has(e) || i.set(e, a);
14
+ }
15
+ return (e) => {
16
+ if (e) return t.get(e) ?? r.get(e) ?? i.get(n(e));
17
+ };
18
+ }, i = (e, t) => {
19
+ if (!t) return;
20
+ let r = e.find((e) => e.id === t) ?? e.find((e) => e.reference === t);
21
+ if (r) return r;
22
+ let i = n(t);
23
+ return e.find((e) => n(e.id) === i);
10
24
  };
11
25
  //#endregion
12
- export { t as decodeDeploymentId, e as encodeDeploymentId, r as findDeploymentByIdOrReference, n as normalizeDeploymentId };
26
+ export { r as createDeploymentLookup, t as decodeDeploymentId, e as encodeDeploymentId, i as findDeploymentByIdOrReference, n as normalizeDeploymentId };
@@ -0,0 +1,148 @@
1
+ /** Toolset authentication mechanism as reported by DIAL Core. */
2
+ export declare enum AuthenticationType {
3
+ None = "NONE",
4
+ ApiKey = "API_KEY",
5
+ OAuth = "OAUTH"
6
+ }
7
+ /** Feature-support flags for a model deployment. */
8
+ export interface ModelCapabilities {
9
+ hasTools?: boolean;
10
+ hasMcp?: boolean;
11
+ hasCaching?: boolean;
12
+ hasParallelToolCalls?: boolean;
13
+ hasUrlAttachments?: boolean;
14
+ hasFolderAttachments?: boolean;
15
+ hasSeed?: boolean;
16
+ hasSystemPrompt?: boolean;
17
+ hasResume?: boolean;
18
+ hasChatCompletion?: boolean;
19
+ hasResponsesApi?: boolean;
20
+ hasSkills?: boolean;
21
+ reasoningEfforts?: string[];
22
+ }
23
+ /** Catalog-facing specification fields for a model deployment. */
24
+ export interface ModelSpecification {
25
+ provider?: string;
26
+ vendor?: string;
27
+ license?: string;
28
+ knowledgeCutoffDate?: string;
29
+ parameters?: string;
30
+ contextWindowTokens?: number;
31
+ maxOutputTokens?: number;
32
+ inputTypes?: string[];
33
+ hostedBy?: string;
34
+ createdAt?: number;
35
+ }
36
+ /** One priced unit for a model deployment. */
37
+ export interface ModelPriceRow {
38
+ /** DIAL Core pricing key, e.g. `prompt`, `completion`, `cache_read`. */
39
+ key: string;
40
+ /** Per-unit price formatted for display, e.g. `$3/M tokens`. */
41
+ price: string;
42
+ /** Condition under which a tiered price applies, formatted for display, e.g. `prompt tokens > 200K`; absent for a flat price. */
43
+ condition?: string;
44
+ }
45
+ /** A model deployment's full price list. */
46
+ export interface ModelPricing {
47
+ /** Every price DIAL Core reports for the deployment, `unit` excluded. */
48
+ prices?: ModelPriceRow[];
49
+ /** DIAL Core billing unit the prices are quoted in, e.g. `token` or `char_without_whitespace`; absent means tokens. */
50
+ unit?: string;
51
+ }
52
+ /** API-resource identifiers for a model deployment. */
53
+ export interface ModelApiDetails {
54
+ modelId?: string;
55
+ }
56
+ /** Full details payload for a model-type deployment. */
57
+ export interface ModelEntityDetails {
58
+ capabilities?: ModelCapabilities;
59
+ specification?: ModelSpecification;
60
+ pricing?: ModelPricing;
61
+ api?: ModelApiDetails;
62
+ }
63
+ /** Catalog-facing specification fields for an agent (application) deployment. */
64
+ export interface AgentSpecification {
65
+ provider?: string;
66
+ vendor?: string;
67
+ license?: string;
68
+ knowledgeCutoffDate?: string;
69
+ parameters?: string;
70
+ hostedBy?: string;
71
+ createdAt?: number;
72
+ routes?: string[];
73
+ }
74
+ /** Feature-support flags for an agent (application) deployment. */
75
+ export interface AgentCapabilities {
76
+ hasTools?: boolean;
77
+ hasMcp?: boolean;
78
+ hasCaching?: boolean;
79
+ hasParallelToolCalls?: boolean;
80
+ hasUrlAttachments?: boolean;
81
+ hasFolderAttachments?: boolean;
82
+ hasSeed?: boolean;
83
+ hasSystemPrompt?: boolean;
84
+ hasResume?: boolean;
85
+ hasConfiguration?: boolean;
86
+ hasChatCompletion?: boolean;
87
+ hasResponsesApi?: boolean;
88
+ hasSkills?: boolean;
89
+ }
90
+ /** Input-attachment configuration for an agent (application) deployment. */
91
+ export interface AgentConfiguration {
92
+ inputAttachmentTypes?: string[];
93
+ }
94
+ /** Full details payload for an agent (application)-type deployment. */
95
+ export interface AgentEntityDetails {
96
+ specification?: AgentSpecification;
97
+ configuration?: AgentConfiguration;
98
+ capabilities?: AgentCapabilities;
99
+ }
100
+ /** Sign-in status at both the personal and org-wide (global) level for a toolset. */
101
+ export interface ToolsetAuthStatusDetails {
102
+ global?: string;
103
+ appLevel?: string;
104
+ userLevel?: string;
105
+ scopesSupported?: string[];
106
+ authorizationEndpoint?: string;
107
+ tokenEndpoint?: string;
108
+ apiKeyHeader?: string;
109
+ }
110
+ /** Catalog-facing specification fields for a toolset. */
111
+ export interface ToolsetSpecification {
112
+ provider?: string;
113
+ vendor?: string;
114
+ license?: string;
115
+ knowledgeCutoffDate?: string;
116
+ parameters?: string;
117
+ authentication?: AuthenticationType;
118
+ permissions?: string[];
119
+ hostedBy?: string;
120
+ authStatus?: ToolsetAuthStatusDetails;
121
+ createdAt?: number;
122
+ /** Names of all tools the underlying MCP server supports, not just the allow-listed subset in `permissions`. */
123
+ allTools?: string[];
124
+ }
125
+ /** Feature-support flags for a toolset. */
126
+ export interface ToolsetCapabilities {
127
+ hasMcp?: boolean;
128
+ hasCaching?: boolean;
129
+ hasSystemPrompt?: boolean;
130
+ hasResume?: boolean;
131
+ }
132
+ /** Full details payload for a toolset-type deployment. */
133
+ export interface ToolsetEntityDetails {
134
+ specification?: ToolsetSpecification;
135
+ capabilities?: ToolsetCapabilities;
136
+ }
137
+ /** Discriminated-union entity details for a deployment, keyed by catalog entity type. */
138
+ export type EntitySpecificDetails = {
139
+ type: 'MODEL';
140
+ data: ModelEntityDetails;
141
+ } | {
142
+ type: 'AGENT';
143
+ data: AgentEntityDetails;
144
+ } | {
145
+ type: 'TOOLSET';
146
+ data: ToolsetEntityDetails;
147
+ };
148
+ //# sourceMappingURL=entity-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
+ import { FavoriteEntityType } from './useFavoriteEntitiesState/useFavoriteEntitiesState';
3
+ /** Returns the user-config section a catalog item's favorite state is stored in. */
4
+ export declare const resolveFavoriteEntityType: (type?: CatalogEntityType) => FavoriteEntityType;
5
+ //# sourceMappingURL=favorite-entity-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorite-entity-type.d.ts","sourceRoot":"","sources":["../../src/catalog/favorite-entity-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAezF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,GACpC,OAAO,iBAAiB,KACvB,kBAKF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FavoriteEntityType as e } from "./useFavoriteEntitiesState/useFavoriteEntitiesState.js";
2
+ import { CatalogEntityType as t } from "@epam/ai-dial-chat-shared";
3
+ //#region src/catalog/favorite-entity-type.ts
4
+ var n = {
5
+ [t.Toolset]: e.Toolset,
6
+ [t.Prompt]: e.Prompt,
7
+ [t.Skill]: e.Skill
8
+ }, r = (t) => t == null ? e.Deployment : n[t] ?? e.Deployment;
9
+ //#endregion
10
+ export { r as resolveFavoriteEntityType };
@@ -0,0 +1,34 @@
1
+ import { CatalogItemLimits } from '@epam/ai-dial-catalog';
2
+ import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
3
+ import { FormatResetTime } from '../usage/map-usage-data-to-dashboard';
4
+ /** Labels and formatter callbacks for the deployment-limits mapping utility. */
5
+ export interface DeploymentLimitsLabels {
6
+ /** Heading of the group every token stat row is listed under. */
7
+ tokenGroup: string;
8
+ /** Label for the current-UTC-day token row, e.g. "Today". */
9
+ tokensPerDay: string;
10
+ /** Label for the current-UTC-week token row, e.g. "This week". */
11
+ tokensPerWeek: string;
12
+ /** Label for the current-UTC-month token row, e.g. "This month". */
13
+ tokensPerMonth: string;
14
+ /** Note shown instead of a total on a row whose limit follows the cost limit. */
15
+ followsCostLimit: string;
16
+ /** Formats the combined used/total display value for a capped row. */
17
+ formatValueLabel: (used: string, total: string) => string;
18
+ /** Formats the ARIA label for a capped progress row. */
19
+ formatProgressAriaLabel: (params: {
20
+ label: string;
21
+ used: string;
22
+ total: string;
23
+ }) => string;
24
+ /** Formats the ARIA label for an unlimited row, which has no total to announce. */
25
+ formatFollowsCostLimitAriaLabel: (params: {
26
+ label: string;
27
+ used: string;
28
+ }) => string;
29
+ /** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
30
+ formatResetTime?: FormatResetTime;
31
+ }
32
+ /** Maps a deployment limits DTO to display-ready catalog limits, or `undefined` when no qualifying stats exist. */
33
+ export declare const mapDeploymentLimitsDtoToCatalogLimits: (dto: DeploymentLimitsResponseDto | undefined, labels: DeploymentLimitsLabels) => CatalogItemLimits | undefined;
34
+ //# sourceMappingURL=map-deployment-limits-to-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-limits-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAG5E,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,aAAa,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,gBAAgB,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,wDAAwD;IACxD,uBAAuB,EAAE,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,MAAM,CAAC;IACb,mFAAmF;IACnF,+BAA+B,EAAE,CAAC,MAAM,EAAE;QACxC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,MAAM,CAAC;IACb,sGAAsG;IACtG,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAgID,mHAAmH;AACnH,eAAO,MAAM,qCAAqC,GAChD,KAAK,2BAA2B,GAAG,SAAS,EAC5C,QAAQ,sBAAsB,KAC7B,iBAAiB,GAAG,SAsBtB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { CatalogItemLimits, UsageLimitProgressRow } from '@epam/ai-dial-catalog';
2
+ import { LimitStatsDto } from '@epam/ai-dial-chat-api-client';
3
+ import { FormatResetTime } from '../usage/map-usage-data-to-dashboard';
4
+ import { UsageLimitsSources } from '../usage/useDeploymentUsageLimits/useDeploymentUsageLimits';
5
+ /** Labels and formatter callbacks for the conversation-input limits mapping utility. */
6
+ export interface ConversationInputLimitsLabels {
7
+ /** Heading of the group listing the selected deployment's token limits. */
8
+ tokenGroup: string;
9
+ /** Heading of the group listing the caller's cost budget and spend against it. */
10
+ costGroup: string;
11
+ /** Label for the current-UTC-day row, used by both groups. */
12
+ periodDay: string;
13
+ /** Label for the current-UTC-week row, used by both groups. */
14
+ periodWeek: string;
15
+ /** Label for the current-UTC-month row, used by both groups. */
16
+ periodMonth: string;
17
+ /** Formats the combined used/total display value for a capped row. */
18
+ formatValueLabel: (used: string, total: string) => string;
19
+ /** Formats the ARIA label for a capped progress row. */
20
+ formatProgressAriaLabel: (params: {
21
+ label: string;
22
+ used: string;
23
+ total: string;
24
+ }) => string;
25
+ }
26
+ export declare const buildResetFields: (stats: LimitStatsDto, formatResetTime: FormatResetTime | undefined) => Pick<UsageLimitProgressRow, "resetLabel" | "resetIsoValue" | "resetAriaLabel">;
27
+ /** Maps the deployment's day, week, and month token limits (from `sources.deployment`) and the account cost budget (from `sources.account`) to display-ready rows, or `undefined` when none qualify. */
28
+ export declare const mapDeploymentLimitsToInput: (sources: UsageLimitsSources, labels: ConversationInputLimitsLabels, formatResetTime?: FormatResetTime) => CatalogItemLimits | undefined;
29
+ //# sourceMappingURL=map-deployment-limits-to-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-limits-to-input.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAErG,wFAAwF;AACxF,MAAM,WAAW,6BAA6B;IAC5C,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,wDAAwD;IACxD,uBAAuB,EAAE,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,MAAM,CAAC;CACd;AAgGD,eAAO,MAAM,gBAAgB,GAC3B,OAAO,aAAa,EACpB,iBAAiB,eAAe,GAAG,SAAS,KAC3C,IAAI,CACL,qBAAqB,EACrB,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAYlD,CAAC;AA4GF,wMAAwM;AACxM,eAAO,MAAM,0BAA0B,GACrC,SAAS,kBAAkB,EAC3B,QAAQ,6BAA6B,EACrC,kBAAkB,eAAe,KAChC,iBAAiB,GAAG,SAqCtB,CAAC"}
@@ -61,7 +61,7 @@ var n = [
61
61
  return r >= 1 ? t.LimitReached : r >= a && e !== t.LimitReached ? t.RunningLow : e;
62
62
  }, void 0), _ = (e, t, n, r, i, a, o) => {
63
63
  let s = t.flatMap((t) => {
64
- let n = e[t.key];
64
+ let n = e?.[t.key];
65
65
  return !u(n) || !h(n) ? [] : (o.push(n), [p(n, r[t.labelField], r, i, a)]);
66
66
  });
67
67
  return s.length > 0 ? {
@@ -69,11 +69,10 @@ var n = [
69
69
  rows: s
70
70
  } : void 0;
71
71
  }, v = (t, i, a) => {
72
- if (t == null) return;
73
- let o = [], u = [_(t, n, i.tokenGroup, i, {
72
+ let o = [], u = [_(t.deployment, n, i.tokenGroup, i, {
74
73
  format: (e) => s.format(l(e)),
75
74
  formatFull: (e) => c.format(e)
76
- }, a, o), _(t, r, i.costGroup, i, {
75
+ }, a, o), _(t.account, r, i.costGroup, i, {
77
76
  format: e,
78
77
  formatFull: e
79
78
  }, a, o)].filter((e) => e != null);
@@ -0,0 +1,72 @@
1
+ import { CatalogItem, CatalogItemCredentials } from '@epam/ai-dial-catalog';
2
+ import { DeploymentItemDto, DialToolsetAuthSettingsDto, DialToolsetDto } from '@epam/ai-dial-chat-api-client';
3
+ import { EntitySpecificDetails } from './entity-details';
4
+ import { EntityDetailsLabels } from './map-entity-details-to-catalog';
5
+ /**
6
+ * Maps a toolset's auth settings (from a deployment listing row) into the
7
+ * lib's credential-status shape, including both `USER` and `GLOBAL` sign-in
8
+ * status, whether the toolset is public, and whether the current user (if an
9
+ * admin) may manage both levels. Named apart from
10
+ * `map-entity-details-to-catalog.ts`'s `mapToolsetCredentials` (a different
11
+ * input shape, `ToolsetEntityDetails`) to avoid an ambiguous `export *`
12
+ * collision between the two modules.
13
+ *
14
+ * For a non-admin on a public toolset that already has `GLOBAL` credentials
15
+ * signed in, the lib's own `LoginWithMyCreds` CTA fires unconditionally off
16
+ * `isPublic` alone, regardless of whether org-wide credentials already cover
17
+ * everyone (`node_modules/@epam/ai-dial-catalog/dist/index.js`, the `ct`
18
+ * helper). Global auth is sufficient to use the toolset — a personal login
19
+ * is optional, not required — so this suppresses that CTA by reporting
20
+ * `authenticationType: None`, which is the lib's own documented signal to
21
+ * hide the credentials control entirely.
22
+ */
23
+ export declare const mapDeploymentToolsetCredentials: (toolsetId: string, authSettings: DialToolsetAuthSettingsDto | undefined, isAdmin: boolean) => CatalogItemCredentials | undefined;
24
+ /** Translated folder-path labels for the Personal/Shared/Public deployment groupings. */
25
+ export interface DeploymentFolderLabels {
26
+ personal: string;
27
+ shared: string;
28
+ public: string;
29
+ }
30
+ /** Resolves a deployment's display folder, including organization applications without a folder path. */
31
+ export declare const resolveDeploymentFolder: (deployment: Pick<DeploymentItemDto, "isMy" | "sharedWithMe" | "applicationFolder"> & Partial<Pick<DeploymentItemDto, "type">>, labels: DeploymentFolderLabels) => string[];
32
+ /** Parameters for {@link mapDeploymentToCatalogItem}. */
33
+ export interface MapDeploymentToCatalogItemOptions {
34
+ favoriteIds?: ReadonlySet<string>;
35
+ entityDetails?: EntitySpecificDetails;
36
+ /** Translated Overview labels for `entityDetails`. Unset fields fall back to the English defaults. */
37
+ entityDetailsLabels?: Partial<EntityDetailsLabels>;
38
+ folderLabels: DeploymentFolderLabels;
39
+ editableSchemaIds?: string[];
40
+ isCustomAppsEditable?: boolean;
41
+ /** The viewer's active display locale, used to resolve `displayName`/`description`. */
42
+ activeLocale: string;
43
+ /** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
44
+ primaryLocale: string;
45
+ /** Resolves a deployment's raw `iconUrl` to a displayable URL. Host-owned. */
46
+ resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
47
+ /** Whether MCP applications may be listed under the Toolsets tab. Defaults to `true`. */
48
+ isToolsetTabEnabled?: boolean;
49
+ }
50
+ /**
51
+ * Whether a deployment can be chatted with: it offers the `chat` interface or
52
+ * declares no interfaces at all. Backs `CatalogItem.supportsChat`.
53
+ * @param deployment - deployment to check
54
+ */
55
+ export declare const supportsChatInterface: (deployment: Pick<DeploymentItemDto, "interfaces">) => boolean;
56
+ /** Maps a deployment listing row into the catalog UI's `CatalogItem` shape. */
57
+ export declare const mapDeploymentToCatalogItem: (deployment: DeploymentItemDto, { favoriteIds, entityDetails, entityDetailsLabels, folderLabels, editableSchemaIds, isCustomAppsEditable, activeLocale, primaryLocale, resolveIconUrl, isToolsetTabEnabled, }: MapDeploymentToCatalogItemOptions) => CatalogItem;
58
+ /** Parameters for {@link mapToolsetToCatalogItem}. */
59
+ export interface MapToolsetToCatalogItemOptions {
60
+ favoriteIds?: ReadonlySet<string>;
61
+ isAdmin?: boolean;
62
+ folderLabels?: DeploymentFolderLabels;
63
+ /** The viewer's active display locale, used to resolve `displayName`/`description`. */
64
+ activeLocale: string;
65
+ /** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
66
+ primaryLocale: string;
67
+ /** Resolves a toolset's raw `iconUrl` to a displayable URL. Host-owned. */
68
+ resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
69
+ }
70
+ /** Maps a toolset listing row into the catalog UI's `CatalogItem` shape. */
71
+ export declare const mapToolsetToCatalogItem: (toolset: DialToolsetDto, { favoriteIds, isAdmin, folderLabels, activeLocale, primaryLocale, resolveIconUrl, }: MapToolsetToCatalogItemOptions) => CatalogItem;
72
+ //# sourceMappingURL=map-deployment-to-catalog-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACf,MAAM,+BAA+B,CAAC;AASvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,iCAAiC,CAAC;AAiBzC;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,+BAA+B,GAC1C,WAAW,MAAM,EACjB,cAAc,0BAA0B,GAAG,SAAS,EACpD,SAAS,OAAO,KACf,sBAAsB,GAAG,SA4B3B,CAAC;AAiBF,yFAAyF;AACzF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,yGAAyG;AACzG,eAAO,MAAM,uBAAuB,GAClC,YAAY,IAAI,CACd,iBAAiB,EACjB,MAAM,GAAG,cAAc,GAAG,mBAAmB,CAC9C,GACC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,EAC1C,QAAQ,sBAAsB,KAC7B,MAAM,EA2BR,CAAC;AAgCF,yDAAyD;AACzD,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sGAAsG;IACtG,mBAAmB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACnD,YAAY,EAAE,sBAAsB,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,aAAa,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AA+BD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,YAAY,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,KAChD,OACsE,CAAC;AAE1E,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,GACrC,YAAY,iBAAiB,EAC7B,+KAWG,iCAAiC,KACnC,WAgDF,CAAC;AAEF,sDAAsD;AACtD,MAAM,WAAW,8BAA8B;IAC7C,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,aAAa,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;CACrE;AAED,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,GAClC,SAAS,cAAc,EACvB,sFAOG,8BAA8B,KAChC,WA6CF,CAAC"}