@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
@@ -1,7 +1,7 @@
1
1
  import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
2
2
  import { ScheduledTaskRunDtoStatusEnum as i } from "@epam/ai-dial-chat-api-client";
3
3
  //#region src/scheduled-task/use-scheduled-task-runs.ts
4
- var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
4
+ var a = 15e3, o = 48, s = 5e3, c = 2147483647, l = (e, t) => {
5
5
  if (e <= c) {
6
6
  let n = setTimeout(t, Math.max(e, 0));
7
7
  return () => clearTimeout(n);
@@ -20,18 +20,18 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
20
20
  let t = n.get(e.id);
21
21
  return !t || JSON.stringify(t) !== JSON.stringify(e);
22
22
  });
23
- }, f = (c, { scheduleId: f, enabled: p = !0, pageSize: m = 10, nextRunTime: h }) => {
24
- let [g, _] = r([]), [v, y] = r(p), [b, x] = r(!1), [S, C] = r(null), [w, T] = r(null), [E, D] = r(!1), [O, k] = r(0), A = n(0), j = n(0), M = n(!1), N = n(null), P = n(g), F = n(v), I = n(b), L = n(null), R = n(0), z = n(null), B = n(!1);
25
- P.current = g, F.current = v, I.current = b;
26
- let V = g.some((e) => e.status === i.InProgress);
23
+ }, f = (c, { scheduleId: f, enabled: p = !0, pageSize: m = 10, nextRunTime: h, pollWhileActive: g = !1 }) => {
24
+ let [_, v] = r([]), [y, b] = r(p), [x, S] = r(!1), [C, w] = r(null), [T, E] = r(null), [D, O] = r(!1), [k, A] = r(0), j = n(0), M = n(0), N = n(!1), P = n(null), F = n(_), I = n(y), L = n(x), R = n(null), z = n(0), B = n(null), V = n(!1);
25
+ F.current = _, I.current = y, L.current = x;
26
+ let H = g || _.some((e) => e.status === i.InProgress);
27
27
  t(() => {
28
- let e = ++A.current, t = new AbortController();
29
- N.current?.abort(), N.current = null, L.current?.abort(), L.current = null, M.current = !1, R.current = 0, z.current = null, B.current = !1, x(!1), C(null), T(null), _([]), D(!1), j.current = 0;
28
+ let e = ++j.current, t = new AbortController();
29
+ P.current?.abort(), P.current = null, R.current?.abort(), R.current = null, N.current = !1, z.current = 0, B.current = null, V.current = !1, S(!1), w(null), E(null), v([]), O(!1), M.current = 0;
30
30
  let n = () => {
31
- ++A.current, t.abort(), N.current?.abort(), N.current = null, L.current?.abort(), L.current = null;
31
+ ++j.current, t.abort(), P.current?.abort(), P.current = null, R.current?.abort(), R.current = null;
32
32
  };
33
- return !p || !f ? (y(!1), _([]), D(!1), n) : ((async () => {
34
- y(!0);
33
+ return !p || !f ? (b(!1), v([]), O(!1), n) : ((async () => {
34
+ b(!0);
35
35
  try {
36
36
  let n = await c.listScheduledTaskRuns({
37
37
  scheduleId: f,
@@ -39,29 +39,29 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
39
39
  offset: 0,
40
40
  signal: t.signal
41
41
  });
42
- if (A.current !== e) return;
43
- _(n.items), j.current = n.items.length, D(n.next != null || (n.count == null ? n.items.length === m : n.items.length < n.count));
42
+ if (j.current !== e) return;
43
+ v(n.items), M.current = n.items.length, O(n.next != null || (n.count == null ? n.items.length === m : n.items.length < n.count));
44
44
  } catch (t) {
45
- A.current === e && C(t instanceof Error ? t : /* @__PURE__ */ Error("Failed to load scheduled task runs"));
45
+ j.current === e && w(t instanceof Error ? t : /* @__PURE__ */ Error("Failed to load scheduled task runs"));
46
46
  } finally {
47
- A.current === e && y(!1);
47
+ j.current === e && b(!1);
48
48
  }
49
49
  })(), n);
50
50
  }, [
51
51
  c,
52
52
  p,
53
53
  m,
54
- O,
54
+ k,
55
55
  f
56
56
  ]);
57
- let H = e(() => {
58
- if (!p || !f || !E || v || M.current) return;
59
- M.current = !0;
57
+ let U = e(() => {
58
+ if (!p || !f || !D || y || N.current) return;
59
+ N.current = !0;
60
60
  let e = new AbortController();
61
- N.current = e;
62
- let t = A.current, n = j.current;
61
+ P.current = e;
62
+ let t = j.current, n = M.current;
63
63
  (async () => {
64
- x(!0), T(null);
64
+ S(!0), E(null);
65
65
  try {
66
66
  let r = await c.listScheduledTaskRuns({
67
67
  scheduleId: f,
@@ -69,28 +69,28 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
69
69
  offset: n,
70
70
  signal: e.signal
71
71
  });
72
- if (A.current !== t) return;
73
- _((e) => {
72
+ if (j.current !== t) return;
73
+ v((e) => {
74
74
  let t = new Set(e.map(({ id: e }) => e));
75
- return [...e, ...r.items.filter(({ id: e }) => t.has(e) ? !1 : (t.add(e), !0))];
76
- }), j.current = n + r.items.length, D(r.next != null || (r.count == null ? r.items.length === m : n + r.items.length < r.count));
75
+ return [...e, ...r.items.filter(({ id: e }) => !t.has(e) && (t.add(e), !0))];
76
+ }), M.current = n + r.items.length, O(r.next != null || (r.count == null ? r.items.length === m : n + r.items.length < r.count));
77
77
  } catch (e) {
78
- A.current === t && T(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load more scheduled task runs"));
78
+ j.current === t && E(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load more scheduled task runs"));
79
79
  } finally {
80
- A.current === t && (x(!1), M.current = !1, N.current = null);
80
+ j.current === t && (S(!1), N.current = !1, P.current = null);
81
81
  }
82
82
  })();
83
83
  }, [
84
84
  c,
85
85
  p,
86
- E,
87
- v,
86
+ D,
87
+ y,
88
88
  m,
89
89
  f
90
- ]), U = e(async () => {
91
- if (F.current || I.current) return "skipped";
92
- let e = A.current, t = new AbortController();
93
- L.current?.abort(), L.current = t;
90
+ ]), W = e(async () => {
91
+ if (I.current || L.current) return "skipped";
92
+ let e = j.current, t = new AbortController();
93
+ R.current?.abort(), R.current = t;
94
94
  try {
95
95
  let n = await c.listScheduledTaskRuns({
96
96
  scheduleId: f,
@@ -98,41 +98,29 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
98
98
  offset: 0,
99
99
  signal: t.signal
100
100
  });
101
- if (A.current !== e || F.current || I.current) return "skipped";
102
- let r = P.current, i = u(r, n.items), a = d(r, i);
103
- return a && (P.current = i, _(i)), a ? "changed" : "unchanged";
101
+ if (j.current !== e || I.current || L.current) return "skipped";
102
+ let r = F.current, i = u(r, n.items), a = d(r, i);
103
+ return a && (F.current = i, v(i)), a ? "changed" : "unchanged";
104
104
  } catch {
105
105
  return "error";
106
106
  } finally {
107
- L.current === t && (L.current = null);
107
+ R.current === t && (R.current = null);
108
108
  }
109
109
  }, [
110
110
  c,
111
111
  f,
112
112
  m
113
- ]), W = e(() => {
114
- if (document.visibilityState !== "visible") {
115
- B.current = !0;
116
- return;
117
- }
118
- U();
119
- }, [U]);
113
+ ]), G = e(() => {
114
+ document.visibilityState === "visible" ? W() : V.current = !0;
115
+ }, [W]);
120
116
  return t(() => {
121
- if (!p || !f || !V) return;
122
- R.current = 0;
117
+ if (!p || !f || !H) return;
118
+ z.current = 0;
123
119
  let e = setInterval(() => {
124
- if (document.visibilityState !== "visible") {
125
- B.current = !0;
126
- return;
127
- }
128
- (async () => {
129
- let t = await U();
130
- if (t === "changed") {
131
- R.current = 0;
132
- return;
133
- }
134
- (t === "unchanged" || t === "error") && (R.current += 1, R.current >= o && e !== null && (clearInterval(e), e = null));
135
- })();
120
+ document.visibilityState === "visible" ? (async () => {
121
+ let t = await W();
122
+ t === "changed" ? z.current = 0 : (t === "unchanged" || t === "error") && (z.current += 1, z.current >= o && e !== null && (clearInterval(e), e = null));
123
+ })() : V.current = !0;
136
124
  }, a);
137
125
  return () => {
138
126
  e !== null && clearInterval(e);
@@ -140,24 +128,24 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
140
128
  }, [
141
129
  p,
142
130
  f,
143
- V,
144
- U
131
+ H,
132
+ W
145
133
  ]), t(() => {
146
134
  if (!p || !f || !h) return;
147
135
  let e = new Date(h).getTime();
148
136
  if (!(Number.isNaN(e) || e <= Date.now())) return l(e - Date.now() + s, () => {
149
- z.current = h, W();
137
+ B.current = h, G();
150
138
  });
151
139
  }, [
152
140
  p,
153
141
  f,
154
142
  h,
155
- W
143
+ G
156
144
  ]), t(() => {
157
145
  if (!p || !f) return;
158
146
  let e = () => {
159
- document.visibilityState !== "visible" || !B.current || (async () => {
160
- await U() !== "skipped" && (B.current = !1);
147
+ document.visibilityState === "visible" && V.current && (async () => {
148
+ await W() !== "skipped" && (V.current = !1);
161
149
  })();
162
150
  };
163
151
  return document.addEventListener("visibilitychange", e), () => {
@@ -166,28 +154,28 @@ var a = 15e3, o = 20, s = 5e3, c = 2147483647, l = (e, t) => {
166
154
  }, [
167
155
  p,
168
156
  f,
169
- U
157
+ W
170
158
  ]), t(() => {
171
- if (!p || !f || !h || v || b) return;
159
+ if (!p || !f || !h || y || x) return;
172
160
  let e = new Date(h).getTime();
173
- Number.isNaN(e) || e > Date.now() || z.current !== h && (z.current = h, W());
161
+ Number.isNaN(e) || e > Date.now() || B.current !== h && (B.current = h, G());
174
162
  }, [
175
163
  p,
176
164
  f,
177
165
  h,
178
- v,
179
- b,
180
- W
166
+ y,
167
+ x,
168
+ G
181
169
  ]), {
182
- items: g,
183
- isLoading: v,
184
- isLoadingMore: b,
185
- initialError: S,
186
- loadMoreError: w,
187
- hasMore: E,
188
- loadMore: H,
189
- retryLoadMore: H,
190
- refetch: e(() => k((e) => e + 1), [])
170
+ items: _,
171
+ isLoading: y,
172
+ isLoadingMore: x,
173
+ initialError: C,
174
+ loadMoreError: T,
175
+ hasMore: D,
176
+ loadMore: U,
177
+ retryLoadMore: U,
178
+ refetch: e(() => A((e) => e + 1), [])
191
179
  };
192
180
  };
193
181
  //#endregion
@@ -0,0 +1,28 @@
1
+ import { ListScheduledTasksSortEnum, ScheduledTaskDto } from '@epam/ai-dial-chat-api-client';
2
+ import { ScheduledTasksApiClient } from './scheduled-tasks-api-client';
3
+ export interface UseScheduledTasksOptions {
4
+ enabled?: boolean;
5
+ pageSize?: number;
6
+ debounceMs?: number;
7
+ initialSearch?: string;
8
+ initialSort?: ListScheduledTasksSortEnum;
9
+ /** Restricts the list to tasks of one model/application; changing it reloads from the first page. */
10
+ model?: string;
11
+ }
12
+ /** Shared scheduler-list lifecycle with generation-scoped stale-response guards. */
13
+ export declare const useScheduledTasks: (client: ScheduledTasksApiClient, { enabled, pageSize, debounceMs, initialSearch, initialSort, model, }?: UseScheduledTasksOptions) => {
14
+ items: ScheduledTaskDto[];
15
+ searchQuery: string;
16
+ setSearchQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
17
+ sortKey: "newest" | "firstToRun" | "lastToRun" | "nameAZ";
18
+ setSortKey: import('react').Dispatch<import('react').SetStateAction<"newest" | "firstToRun" | "lastToRun" | "nameAZ">>;
19
+ isLoading: boolean;
20
+ isLoadingMore: boolean;
21
+ initialError: Error | null;
22
+ loadMoreError: Error | null;
23
+ hasMore: boolean;
24
+ loadMore: () => void;
25
+ retryLoadMore: () => void;
26
+ refetch: () => void;
27
+ };
28
+ //# sourceMappingURL=use-scheduled-tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scheduled-tasks.d.ts","sourceRoot":"","sources":["../../src/scheduled-task/use-scheduled-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,qGAAqG;IACrG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,uBAAuB,EAC/B,wEAOG,wBAA6B;;;;;;;;;;;;;;CAuJjC,CAAC"}
@@ -59,7 +59,7 @@ var i = (i, { enabled: a = !0, pageSize: o = 20, debounceMs: s = 300, initialSea
59
59
  if (k.current !== t) return;
60
60
  f((e) => {
61
61
  let t = new Set(e.map(({ id: e }) => e));
62
- return [...e, ...r.items.filter(({ id: e }) => t.has(e) ? !1 : (t.add(e), !0))];
62
+ return [...e, ...r.items.filter(({ id: e }) => !t.has(e) && (t.add(e), !0))];
63
63
  }), A.current = n + r.items.length, E(r.next != null);
64
64
  } catch (e) {
65
65
  k.current === t && w(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load more scheduled tasks"));
@@ -0,0 +1,18 @@
1
+ import { ScheduledTaskDto } from '@epam/ai-dial-chat-api-client';
2
+ import { ActiveScheduledTaskDetailState } from './active-scheduled-task';
3
+ /** Host-supplied cancellable task loader. */
4
+ export type ActiveScheduledTaskLoader = (id: string, signal: AbortSignal) => Promise<ScheduledTaskDto>;
5
+ /** Current details and retry operation for one active schedule. */
6
+ export interface ActiveScheduledTaskDetails {
7
+ /** Current request lifecycle. */
8
+ taskState: ActiveScheduledTaskDetailState;
9
+ /** Loaded details, or null before success. */
10
+ task: ScheduledTaskDto | null;
11
+ /** Failure other than an unavailable task. */
12
+ taskError: Error | null;
13
+ /** Starts another request for the current schedule. */
14
+ retryTask: () => void;
15
+ }
16
+ /** Loads task details independently of run identity, ignoring superseded responses. */
17
+ export declare const useActiveScheduledTaskDetails: (scheduleId: string | undefined, getTask: ActiveScheduledTaskLoader) => ActiveScheduledTaskDetails;
18
+ //# sourceMappingURL=useActiveScheduledTaskDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActiveScheduledTaskDetails.d.ts","sourceRoot":"","sources":["../../src/scheduled-task/useActiveScheduledTaskDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,6CAA6C;AAC7C,MAAM,MAAM,yBAAyB,GAAG,CACtC,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/B,mEAAmE;AACnE,MAAM,WAAW,0BAA0B;IACzC,iCAAiC;IACjC,SAAS,EAAE,8BAA8B,CAAC;IAC1C,8CAA8C;IAC9C,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC9B,8CAA8C;IAC9C,SAAS,EAAE,KAAK,GAAG,IAAI,CAAC;IACxB,uDAAuD;IACvD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,uFAAuF;AACvF,eAAO,MAAM,6BAA6B,GACxC,YAAY,MAAM,GAAG,SAAS,EAC9B,SAAS,yBAAyB,KACjC,0BAyDF,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { getApiErrorStatus as e } from "../api-error/api-error.js";
2
+ import { ActiveScheduledTaskDetailState as t } from "./active-scheduled-task.js";
3
+ import { useCallback as n, useEffect as r, useState as i } from "react";
4
+ //#region src/scheduled-task/useActiveScheduledTaskDetails.ts
5
+ var a = (a, o) => {
6
+ let [s, c] = i(t.Idle), [l, u] = i(null), [d, f] = i(null), [p, m] = i(0);
7
+ return r(() => {
8
+ if (!a) {
9
+ c(t.Idle), u(null), f(null);
10
+ return;
11
+ }
12
+ c(t.Loading), u(null), f(null);
13
+ let n = { value: !1 }, r = new AbortController();
14
+ return (async () => {
15
+ try {
16
+ let e = await o(a, r.signal);
17
+ if (n.value) return;
18
+ u(e), c(t.Success);
19
+ } catch (r) {
20
+ if (n.value) return;
21
+ e(r) === 404 ? c(t.Unavailable) : (f(r instanceof Error ? r : /* @__PURE__ */ Error("Failed to load the scheduled task")), c(t.Error));
22
+ }
23
+ })(), () => {
24
+ n.value = !0, r.abort();
25
+ };
26
+ }, [
27
+ a,
28
+ p,
29
+ o
30
+ ]), {
31
+ taskState: s,
32
+ task: l,
33
+ taskError: d,
34
+ retryTask: n(() => {
35
+ m((e) => e + 1);
36
+ }, [])
37
+ };
38
+ };
39
+ //#endregion
40
+ export { a as useActiveScheduledTaskDetails };
@@ -0,0 +1,17 @@
1
+ /** Metadata needed to display a selected skill. */
2
+ export interface ScheduledTaskSkillName {
3
+ /** Human-readable name. */
4
+ name: string;
5
+ }
6
+ /** Inputs for selection-scoped skill name resolution. */
7
+ export interface UseScheduledTaskSkillDisplayNamesOptions {
8
+ /** Selected references in display order. */
9
+ skillUrls?: readonly string[];
10
+ /** Authoritative names from the host's current listing. */
11
+ listed: ReadonlyMap<string, string>;
12
+ /** Loads missing names; undefined preserves the reference as fallback. */
13
+ getMetadata: (url: string, signal: AbortSignal) => Promise<ScheduledTaskSkillName | undefined>;
14
+ }
15
+ /** Resolves missing skill names while preserving order and authoritative listing names. */
16
+ export declare const useScheduledTaskSkillDisplayNames: ({ skillUrls, listed, getMetadata, }: UseScheduledTaskSkillDisplayNamesOptions) => string[];
17
+ //# sourceMappingURL=useScheduledTaskSkillDisplayNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScheduledTaskSkillDisplayNames.d.ts","sourceRoot":"","sources":["../../../src/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,MAAM,WAAW,sBAAsB;IACrC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AACD,yDAAyD;AACzD,MAAM,WAAW,wCAAwC;IACvD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,0EAA0E;IAC1E,WAAW,EAAE,CACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;CAClD;AACD,2FAA2F;AAC3F,eAAO,MAAM,iCAAiC,GAAI,qCAI/C,wCAAwC,KAAG,MAAM,EA6CnD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { useEffect as e, useState as t } from "react";
2
+ //#region src/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.ts
3
+ var n = ({ skillUrls: n, listed: r, getMetadata: i }) => {
4
+ let a = JSON.stringify(n ?? []), o = JSON.stringify((n ?? []).map((e) => r.get(e) ?? null)), s = `${a}:${o}`, [c, l] = t();
5
+ return e(() => {
6
+ let e = JSON.parse(a), t = JSON.parse(o), n = new AbortController();
7
+ return l(void 0), (async () => {
8
+ await Promise.all(e.map(async (e, r) => {
9
+ if (!t[r]) try {
10
+ let t = await i(e, n.signal);
11
+ !n.signal.aborted && t && l((n) => ({
12
+ key: s,
13
+ names: {
14
+ ...n?.key === s ? n.names : {},
15
+ [e]: t.name
16
+ }
17
+ }));
18
+ } catch {}
19
+ }));
20
+ })(), () => n.abort();
21
+ }, [
22
+ a,
23
+ o,
24
+ s,
25
+ i
26
+ ]), (n ?? []).map((e) => r.get(e) || (c?.key === s ? c.names[e] : void 0) || e);
27
+ };
28
+ //#endregion
29
+ export { n as useScheduledTaskSkillDisplayNames };
@@ -1,250 +1,2 @@
1
- import { CreatedScheduledTaskDto } from '@epam/ai-dial-chat-api-client';
2
- import { CreateScheduledTaskBodyDto } from '@epam/ai-dial-chat-api-client';
3
- import { Dispatch } from 'react';
4
- import { ListScheduledTaskRunsResponseDto } from '@epam/ai-dial-chat-api-client';
5
- import { ListScheduledTasksResponseDto } from '@epam/ai-dial-chat-api-client';
6
- import { ListScheduledTasksSortEnum } from '@epam/ai-dial-chat-api-client';
7
- import { ScheduledTaskCreateFormValues } from '@epam/ai-dial-scheduled-tasks';
8
- import { ScheduledTaskDto } from '@epam/ai-dial-chat-api-client';
9
- import { ScheduledTaskRunDto } from '@epam/ai-dial-chat-api-client';
10
- import { ScheduledTaskValidationErrors } from '../../libs/scheduled-tasks/validation';
11
- import { ScheduledTaskValidationOptions } from '../../libs/scheduled-tasks/validation';
12
- import { ScheduleTriggerDto } from '@epam/ai-dial-chat-api-client';
13
- import { SetStateAction } from 'react';
14
- import { UpdatedScheduledTaskDto } from '@epam/ai-dial-chat-api-client';
15
- import { UpdateScheduledTaskBodyDto } from '@epam/ai-dial-chat-api-client';
16
-
17
- /**
18
- * Composes scheduler operations over an already configured generated client.
19
- * Authentication, base URL, CSRF, and retries remain host responsibilities.
20
- */
21
- export declare const createScheduledTasksApiClient: (client: ScheduledTasksConfiguredClient) => ScheduledTasksApiClient;
22
-
23
- /**
24
- * Describes the complete trigger without requiring unrelated task metadata.
25
- * Unsupported constraints remain Custom, with the full source expression.
26
- * Calendar-month shifts crossing month boundaries or days 29–31 remain
27
- * Custom because a shifted monthly day is not equivalent around short months.
28
- * The one exception is `day: 'last'` one day behind local time, which is
29
- * exactly the local 1st.
30
- */
31
- export declare const describeScheduledTaskTrigger: (trigger: ScheduleTriggerDto, { timeZone, referenceDate, }?: ScheduledTaskTriggerDescriptionOptions) => ScheduledTaskTriggerDescription;
32
-
33
- /**
34
- * Maps validated create-form values to the `POST /api/v1/scheduled-tasks`
35
- * request body, building `trigger.date` for a one-shot schedule or
36
- * `trigger.cron.fields` for a recurring one. Assumes the caller has already
37
- * validated required fields (name, model, prompt, and the active schedule
38
- * section's fields) — this function does not re-validate.
39
- */
40
- export declare const mapFormValuesToCreateBody: (values: ScheduledTaskCreateFormValues) => CreateScheduledTaskBodyDto;
41
-
42
- /**
43
- * Maps a complete, validated edit draft to an update body. An unset skill
44
- * emits null to remove the saved reference; hydrate from detail before editing.
45
- */
46
- export declare const mapFormValuesToUpdateBody: (values: ScheduledTaskCreateFormValues) => UpdateScheduledTaskBodyDto;
47
-
48
- /**
49
- * Attempts to map a {@link ScheduledTaskDto} back to editable
50
- * {@link ScheduledTaskCreateFormValues}, inverting {@link buildCronFields}/
51
- * {@link buildCronWindowBoundary}. Fails closed — returning a reason instead
52
- * of a value — whenever the task's trigger or required fields cannot be
53
- * represented losslessly by the editor, so an unsupported schedule is never
54
- * silently coerced and re-submitted.
55
- */
56
- export declare const mapScheduledTaskDtoToFormValues: (dto: ScheduledTaskDto) => ScheduledTaskDtoMappingResult;
57
-
58
- /**
59
- * Merges a freshly-fetched page 0 into the currently-loaded run list: an
60
- * already-known id is replaced in place at its existing array position, an
61
- * unseen id is prepended (upstream order is `created_at desc`, so it is the
62
- * newest), and an id absent from `incoming` is left untouched — a background
63
- * refresh never removes a loaded run.
64
- */
65
- export declare const mergeRunsById: (current: ScheduledTaskRunDto[], incoming: ScheduledTaskRunDto[]) => ScheduledTaskRunDto[];
66
-
67
- /**
68
- * Validates form values before creating a request body. Hosts translate the
69
- * returned field codes and must not issue a write when `ok` is false.
70
- */
71
- export declare const prepareScheduledTaskCreateBody: (values: ScheduledTaskCreateFormValues, options: ScheduledTaskValidationOptions) => ScheduledTaskPreparationResult<CreateScheduledTaskBodyDto>;
72
-
73
- /** Validates form values before preparing an update request body. */
74
- export declare const prepareScheduledTaskUpdateBody: (values: ScheduledTaskCreateFormValues, options: ScheduledTaskValidationOptions) => ScheduledTaskPreparationResult<UpdateScheduledTaskBodyDto>;
75
-
76
- /** Result of mapping a scheduled task DTO back to editable form values. */
77
- export declare type ScheduledTaskDtoMappingResult = {
78
- ok: true;
79
- values: ScheduledTaskCreateFormValues;
80
- } | {
81
- ok: false;
82
- reason: UnsupportedTriggerReason;
83
- };
84
-
85
- /** A checked request preparation result that never serializes invalid values. */
86
- export declare type ScheduledTaskPreparationResult<TBody> = {
87
- ok: true;
88
- body: TBody;
89
- } | {
90
- ok: false;
91
- errors: ScheduledTaskValidationErrors;
92
- };
93
-
94
- export declare interface ScheduledTaskRunsListRequest {
95
- scheduleId: string;
96
- limit?: number;
97
- offset?: number;
98
- signal?: AbortSignal;
99
- }
100
-
101
- export declare interface ScheduledTasksApiClient {
102
- listScheduledTasks: (request?: ScheduledTasksListRequest) => Promise<ListScheduledTasksResponseDto>;
103
- listScheduledTaskRuns: (request: ScheduledTaskRunsListRequest) => Promise<ListScheduledTaskRunsResponseDto>;
104
- createScheduledTask: (body: CreateScheduledTaskBodyDto) => Promise<CreatedScheduledTaskDto>;
105
- getScheduledTask: (scheduleId: string) => Promise<ScheduledTaskDto>;
106
- updateScheduledTask: (scheduleId: string, body: UpdateScheduledTaskBodyDto) => Promise<UpdatedScheduledTaskDto>;
107
- pauseScheduledTask: (scheduleId: string) => Promise<ScheduledTaskDto>;
108
- resumeScheduledTask: (scheduleId: string) => Promise<ScheduledTaskDto>;
109
- deleteScheduledTask: (scheduleId: string) => Promise<void>;
110
- }
111
-
112
- /** Narrow configured generated-client surface required by scheduler hooks. */
113
- export declare interface ScheduledTasksConfiguredClient {
114
- listScheduledTasks: (request: {
115
- limit?: number;
116
- offset?: number;
117
- search?: string;
118
- sort?: ListScheduledTasksSortEnum;
119
- model?: string;
120
- }, options?: RequestInit) => Promise<ListScheduledTasksResponseDto>;
121
- listScheduledTaskRuns: (request: {
122
- scheduleId: string;
123
- limit?: number;
124
- offset?: number;
125
- }, options?: RequestInit) => Promise<ListScheduledTaskRunsResponseDto>;
126
- createScheduledTask: (request: {
127
- createScheduledTaskBodyDto: CreateScheduledTaskBodyDto;
128
- }) => Promise<CreatedScheduledTaskDto>;
129
- getScheduledTask: (request: {
130
- scheduleId: string;
131
- }) => Promise<ScheduledTaskDto>;
132
- updateScheduledTask: (request: {
133
- scheduleId: string;
134
- updateScheduledTaskBodyDto: UpdateScheduledTaskBodyDto;
135
- }) => Promise<UpdatedScheduledTaskDto>;
136
- pauseScheduledTask: (request: {
137
- scheduleId: string;
138
- }) => Promise<ScheduledTaskDto>;
139
- resumeScheduledTask: (request: {
140
- scheduleId: string;
141
- }) => Promise<ScheduledTaskDto>;
142
- deleteScheduledTask: (request: {
143
- scheduleId: string;
144
- }) => Promise<void>;
145
- }
146
-
147
- /** App-agnostic request options accepted by the scheduler facade. */
148
- export declare interface ScheduledTasksListRequest {
149
- limit?: number;
150
- offset?: number;
151
- search?: string;
152
- sort?: ListScheduledTasksSortEnum;
153
- /** Only tasks that run against this model/application id, exactly as stored. */
154
- model?: string;
155
- signal?: AbortSignal;
156
- }
157
-
158
- export declare interface ScheduledTaskTriggerDescription {
159
- kind: ScheduledTaskTriggerDescriptionKind;
160
- time?: string;
161
- dayOfWeek?: string;
162
- dayOfMonth?: string;
163
- intervalMinutes?: number;
164
- date?: Date;
165
- expression?: string;
166
- sourceTimezone: 'utc';
167
- }
168
-
169
- /** Display categories are independent of task editability. */
170
- export declare enum ScheduledTaskTriggerDescriptionKind {
171
- OneTime = "oneTime",
172
- Hourly = "hourly",
173
- EveryNMinutes = "everyNMinutes",
174
- Daily = "daily",
175
- Weekly = "weekly",
176
- Monthly = "monthly",
177
- Custom = "custom",
178
- Invalid = "invalid"
179
- }
180
-
181
- export declare interface ScheduledTaskTriggerDescriptionOptions {
182
- /** Display timezone; defaults to UTC for backwards compatibility. */
183
- timeZone?: string;
184
- /** Date whose timezone offset is used. Defaults to now (the existing UTC-storage policy). */
185
- referenceDate?: Date;
186
- }
187
-
188
- /** Why a scheduled task DTO could not be mapped back to editable form values. */
189
- export declare enum UnsupportedTriggerReason {
190
- /** `trigger.cron.fields` uses a shape (extra keys, or both `day_of_week` and `day`) the editor's schedule controls cannot represent. */
191
- UnsupportedCronShape = "unsupportedCronShape",
192
- /** Neither or both of `trigger.date`/`trigger.cron` are set, so the schedule type cannot be determined. */
193
- UnsupportedTriggerType = "unsupportedTriggerType",
194
- /** The task is missing `model` or `prompt`, so it cannot be represented as a valid update payload. */
195
- MissingRequiredFields = "missingRequiredFields"
196
- }
197
-
198
- /** Shared, cancellation-safe pagination and background refresh for one schedule's run history. */
199
- export declare const useScheduledTaskRuns: (client: ScheduledTasksApiClient, { scheduleId, enabled, pageSize, nextRunTime, }: UseScheduledTaskRunsOptions) => {
200
- items: ScheduledTaskRunDto[];
201
- isLoading: boolean;
202
- isLoadingMore: boolean;
203
- initialError: Error | null;
204
- loadMoreError: Error | null;
205
- hasMore: boolean;
206
- loadMore: () => void;
207
- retryLoadMore: () => void;
208
- refetch: () => void;
209
- };
210
-
211
- export declare interface UseScheduledTaskRunsOptions {
212
- scheduleId: string;
213
- enabled?: boolean;
214
- pageSize?: number;
215
- /**
216
- * The task's next scheduled run time (ISO string), when known. Drives the
217
- * one-shot background refresh described on {@link useScheduledTaskRuns}.
218
- * The caller already holds the task DTO — this hook never fetches it.
219
- */
220
- nextRunTime?: string | null;
221
- }
222
-
223
- /** Shared scheduler-list lifecycle with generation-scoped stale-response guards. */
224
- export declare const useScheduledTasks: (client: ScheduledTasksApiClient, { enabled, pageSize, debounceMs, initialSearch, initialSort, model, }?: UseScheduledTasksOptions) => {
225
- items: ScheduledTaskDto[];
226
- searchQuery: string;
227
- setSearchQuery: Dispatch<SetStateAction<string>>;
228
- sortKey: "firstToRun" | "lastToRun" | "newest" | "nameAZ";
229
- setSortKey: Dispatch<SetStateAction<"firstToRun" | "lastToRun" | "newest" | "nameAZ">>;
230
- isLoading: boolean;
231
- isLoadingMore: boolean;
232
- initialError: Error | null;
233
- loadMoreError: Error | null;
234
- hasMore: boolean;
235
- loadMore: () => void;
236
- retryLoadMore: () => void;
237
- refetch: () => void;
238
- };
239
-
240
- export declare interface UseScheduledTasksOptions {
241
- enabled?: boolean;
242
- pageSize?: number;
243
- debounceMs?: number;
244
- initialSearch?: string;
245
- initialSort?: ListScheduledTasksSortEnum;
246
- /** Restricts the list to tasks of one model/application; changing it reloads from the first page. */
247
- model?: string;
248
- }
249
-
250
- export { }
1
+ export * from './entry-points/scheduled-tasks.js'
2
+ export {}