@epam/ai-dial-chat-hooks 1.1.0-dev.383 → 1.1.0-dev.390

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 (319) hide show
  1. package/api-error-DuLNy43N.js +45 -0
  2. package/attachment-types-AAoN9E95.js +7760 -0
  3. package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
  4. package/attachments.js +2 -0
  5. package/browser-Btsa0Lmr.js +607 -0
  6. package/catalog.d.ts +946 -0
  7. package/catalog.js +3 -0
  8. package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
  9. package/conversation-sources.js +2 -0
  10. package/conversation-transfer.d.ts +189 -0
  11. package/conversation-transfer.js +3 -0
  12. package/conversation.d.ts +907 -0
  13. package/conversation.js +2 -0
  14. package/cron-weekday-B4w29eAC.js +4 -0
  15. package/date-BeuD8G79.js +4 -0
  16. package/deployment-id-CxWgJTs9.js +6 -0
  17. package/file-manager.d.ts +1344 -0
  18. package/file-manager.js +4 -0
  19. package/formatting-CZyyxBG3.js +4 -0
  20. package/index.d.ts +4945 -126
  21. package/index.js +27 -19152
  22. package/oauth.d.ts +440 -0
  23. package/oauth.js +3 -0
  24. package/package.json +142 -21
  25. package/prompt-resource-Bt1I-8ri.js +41 -0
  26. package/scheduled-task-trigger-D9RZCk52.js +145 -0
  27. package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
  28. package/scheduled-tasks.js +2 -0
  29. package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
  30. package/scroll-anchoring.js +2 -0
  31. package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
  32. package/sharing.js +3 -0
  33. package/skill-editor.d.ts +503 -0
  34. package/skill-editor.js +3 -0
  35. package/skill-manifest-CCX8s4nn.js +4035 -0
  36. package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
  37. package/skills-state.js +2 -0
  38. package/string-utils-iBi2Y55C.js +10 -0
  39. package/toolset-id-CkxRHyU0.js +10 -0
  40. package/useAttachmentValidation-CkMTd5lA.js +102 -0
  41. package/useConversationImport-C2h1GBY4.js +807 -0
  42. package/useConversationScroll-CliIMnjP.js +122 -0
  43. package/useConversationSources-DKaKvjXZ.js +47 -0
  44. package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
  45. package/usePanelMaxWidth-BEZYuqF9.js +44 -0
  46. package/useShareLink-xkiaxATt.js +44 -0
  47. package/useShareRecipientsCount-BgwCLKY0.js +37 -0
  48. package/useSkillFileActions-BU5PzZ_8.js +373 -0
  49. package/useSkillFilePreview-BYfZUJhr.js +1005 -0
  50. package/useSkillsState-BoLlwmzb.js +52 -0
  51. package/useToolsMenu-BXdahO0i.js +1874 -0
  52. package/useToolsetLogin-GhFtKs4D.js +276 -0
  53. package/useUsageData-D7BxloKZ.js +201 -0
  54. package/utils.d.ts +373 -0
  55. package/utils.js +7 -0
  56. package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
  57. package/viewport-layout.js +2 -0
  58. package/api-error/api-error.d.ts +0 -18
  59. package/api-error/api-error.d.ts.map +0 -1
  60. package/api-transport/create-csrf-middleware.d.ts +0 -15
  61. package/api-transport/create-csrf-middleware.d.ts.map +0 -1
  62. package/api-transport/create-unauthorized-middleware.d.ts +0 -40
  63. package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
  64. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
  65. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
  66. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
  67. package/catalog/catalog-derivations.d.ts +0 -27
  68. package/catalog/catalog-derivations.d.ts.map +0 -1
  69. package/catalog/catalog-primary-action.d.ts +0 -47
  70. package/catalog/catalog-primary-action.d.ts.map +0 -1
  71. package/catalog/create-publish-api.d.ts +0 -32
  72. package/catalog/create-publish-api.d.ts.map +0 -1
  73. package/catalog/deployment-endpoint-url.d.ts +0 -19
  74. package/catalog/deployment-endpoint-url.d.ts.map +0 -1
  75. package/catalog/deployment-id.d.ts +0 -21
  76. package/catalog/deployment-id.d.ts.map +0 -1
  77. package/catalog/entity-details.d.ts +0 -132
  78. package/catalog/entity-details.d.ts.map +0 -1
  79. package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
  80. package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
  81. package/catalog/map-deployment-limits-to-input.d.ts +0 -15
  82. package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
  83. package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
  84. package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
  85. package/catalog/map-entity-details-to-catalog.d.ts +0 -23
  86. package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
  87. package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
  88. package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
  89. package/catalog/map-skill-to-catalog-item.d.ts +0 -87
  90. package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
  91. package/catalog/mcp-endpoint-url.d.ts +0 -18
  92. package/catalog/mcp-endpoint-url.d.ts.map +0 -1
  93. package/catalog/publish.d.ts +0 -17
  94. package/catalog/publish.d.ts.map +0 -1
  95. package/catalog/useCatalogItemDetails.d.ts +0 -73
  96. package/catalog/useCatalogItemDetails.d.ts.map +0 -1
  97. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
  98. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
  99. package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
  100. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
  101. package/conversation/announcement-message.d.ts +0 -34
  102. package/conversation/announcement-message.d.ts.map +0 -1
  103. package/conversation/conversation-transfer/async.d.ts +0 -10
  104. package/conversation/conversation-transfer/async.d.ts.map +0 -1
  105. package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
  106. package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
  107. package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
  108. package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
  109. package/conversation/conversation-transfer/date.d.ts +0 -5
  110. package/conversation/conversation-transfer/date.d.ts.map +0 -1
  111. package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
  112. package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
  113. package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
  114. package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
  115. package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
  116. package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
  117. package/conversation/conversation-transfer/progress.d.ts +0 -60
  118. package/conversation/conversation-transfer/progress.d.ts.map +0 -1
  119. package/conversation/conversation-transfer/queue.d.ts +0 -54
  120. package/conversation/conversation-transfer/queue.d.ts.map +0 -1
  121. package/conversation/conversation-transfer/types.d.ts +0 -36
  122. package/conversation/conversation-transfer/types.d.ts.map +0 -1
  123. package/conversation/conversation-transfer/zip-export.d.ts +0 -31
  124. package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
  125. package/conversation/conversation-transfer/zip-import.d.ts +0 -17
  126. package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
  127. package/conversation/create-chat-stream-api.d.ts +0 -38
  128. package/conversation/create-chat-stream-api.d.ts.map +0 -1
  129. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
  130. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
  131. package/conversation/display-name-watch.d.ts +0 -4
  132. package/conversation/display-name-watch.d.ts.map +0 -1
  133. package/conversation/footer-message.d.ts +0 -10
  134. package/conversation/footer-message.d.ts.map +0 -1
  135. package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
  136. package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
  137. package/conversation/greeting.d.ts +0 -18
  138. package/conversation/greeting.d.ts.map +0 -1
  139. package/conversation/message-factory.d.ts +0 -7
  140. package/conversation/message-factory.d.ts.map +0 -1
  141. package/conversation/message-utils.d.ts +0 -27
  142. package/conversation/message-utils.d.ts.map +0 -1
  143. package/conversation/overlay-messages.d.ts +0 -5
  144. package/conversation/overlay-messages.d.ts.map +0 -1
  145. package/conversation/quick-app-conversation-starters.d.ts +0 -10
  146. package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
  147. package/conversation/starter-option.d.ts +0 -21
  148. package/conversation/starter-option.d.ts.map +0 -1
  149. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
  150. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
  151. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
  152. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
  153. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
  154. package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
  155. package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
  156. package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
  157. package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
  158. package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
  159. package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
  160. package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
  161. package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
  162. package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
  163. package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
  164. package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
  165. package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
  166. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
  167. package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
  168. package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
  169. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
  170. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
  171. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
  172. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
  173. package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
  174. package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
  175. package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
  176. package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
  177. package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
  178. package/conversation/useConversationStream/conversation-path.d.ts +0 -7
  179. package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
  180. package/conversation/useConversationStream/generation-resume.d.ts +0 -39
  181. package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
  182. package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
  183. package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
  184. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
  185. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
  186. package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
  187. package/files/annotation.d.ts +0 -10
  188. package/files/annotation.d.ts.map +0 -1
  189. package/files/attachment-canvas.d.ts +0 -104
  190. package/files/attachment-canvas.d.ts.map +0 -1
  191. package/files/attachment-dto-to-display.d.ts +0 -10
  192. package/files/attachment-dto-to-display.d.ts.map +0 -1
  193. package/files/attachment-types.d.ts +0 -14
  194. package/files/attachment-types.d.ts.map +0 -1
  195. package/files/create-files-api.d.ts +0 -52
  196. package/files/create-files-api.d.ts.map +0 -1
  197. package/files/create-upload-file-with-progress.d.ts +0 -24
  198. package/files/create-upload-file-with-progress.d.ts.map +0 -1
  199. package/files/dial-file-manager-copy-move.util.d.ts +0 -15
  200. package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
  201. package/files/dial-file-manager-mapping.util.d.ts +0 -35
  202. package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
  203. package/files/dial-file-manager-path.util.d.ts +0 -39
  204. package/files/dial-file-manager-path.util.d.ts.map +0 -1
  205. package/files/dial-file-manager.model.d.ts +0 -26
  206. package/files/dial-file-manager.model.d.ts.map +0 -1
  207. package/files/dial-file-manager.types.d.ts +0 -317
  208. package/files/dial-file-manager.types.d.ts.map +0 -1
  209. package/files/dial-file-to-attachment.d.ts +0 -26
  210. package/files/dial-file-to-attachment.d.ts.map +0 -1
  211. package/files/dial-file.d.ts +0 -17
  212. package/files/dial-file.d.ts.map +0 -1
  213. package/files/dial-files-api.d.ts +0 -71
  214. package/files/dial-files-api.d.ts.map +0 -1
  215. package/files/download-destination.d.ts +0 -31
  216. package/files/download-destination.d.ts.map +0 -1
  217. package/files/file-manager-variant.d.ts +0 -4
  218. package/files/file-manager-variant.d.ts.map +0 -1
  219. package/files/file-name.d.ts +0 -19
  220. package/files/file-name.d.ts.map +0 -1
  221. package/files/prepare-download-destination.d.ts +0 -8
  222. package/files/prepare-download-destination.d.ts.map +0 -1
  223. package/files/resolve-dial-file-api-path.d.ts +0 -13
  224. package/files/resolve-dial-file-api-path.d.ts.map +0 -1
  225. package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
  226. package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
  227. package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
  228. package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
  229. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
  230. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
  231. package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
  232. package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
  233. package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
  234. package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
  235. package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
  236. package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
  237. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
  238. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
  239. package/index.d.ts.map +0 -1
  240. package/oauth/authorize-url.d.ts +0 -16
  241. package/oauth/authorize-url.d.ts.map +0 -1
  242. package/oauth/handshake.d.ts +0 -30
  243. package/oauth/handshake.d.ts.map +0 -1
  244. package/oauth/models.d.ts +0 -81
  245. package/oauth/models.d.ts.map +0 -1
  246. package/oauth/popup.d.ts +0 -30
  247. package/oauth/popup.d.ts.map +0 -1
  248. package/oauth/toolset-id.d.ts +0 -23
  249. package/oauth/toolset-id.d.ts.map +0 -1
  250. package/oauth/types.d.ts +0 -84
  251. package/oauth/types.d.ts.map +0 -1
  252. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
  253. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
  254. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
  255. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
  256. package/prompt/export-prompt.d.ts +0 -31
  257. package/prompt/export-prompt.d.ts.map +0 -1
  258. package/prompt/prompt-resource.d.ts +0 -30
  259. package/prompt/prompt-resource.d.ts.map +0 -1
  260. package/prompt/prompt.d.ts +0 -34
  261. package/prompt/prompt.d.ts.map +0 -1
  262. package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
  263. package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
  264. package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
  265. package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
  266. package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
  267. package/shared/application-schema.d.ts +0 -10
  268. package/shared/application-schema.d.ts.map +0 -1
  269. package/shared/browser-timezone.d.ts +0 -7
  270. package/shared/browser-timezone.d.ts.map +0 -1
  271. package/shared/cron-weekday.d.ts +0 -5
  272. package/shared/cron-weekday.d.ts.map +0 -1
  273. package/shared/custom-apps.d.ts +0 -7
  274. package/shared/custom-apps.d.ts.map +0 -1
  275. package/shared/external-services.d.ts +0 -16
  276. package/shared/external-services.d.ts.map +0 -1
  277. package/shared/formatting.d.ts +0 -5
  278. package/shared/formatting.d.ts.map +0 -1
  279. package/shared/locale.d.ts +0 -45
  280. package/shared/locale.d.ts.map +0 -1
  281. package/shared/string-utils.d.ts +0 -9
  282. package/shared/string-utils.d.ts.map +0 -1
  283. package/shared/toolset-login-events.d.ts +0 -15
  284. package/shared/toolset-login-events.d.ts.map +0 -1
  285. package/skill/skill-file-batch-validation.d.ts +0 -70
  286. package/skill/skill-file-batch-validation.d.ts.map +0 -1
  287. package/skill/skill-file-preview.d.ts +0 -25
  288. package/skill/skill-file-preview.d.ts.map +0 -1
  289. package/skill/skill-manifest.d.ts +0 -28
  290. package/skill/skill-manifest.d.ts.map +0 -1
  291. package/skill/skill-types.d.ts +0 -42
  292. package/skill/skill-types.d.ts.map +0 -1
  293. package/skill/skill.d.ts +0 -114
  294. package/skill/skill.d.ts.map +0 -1
  295. package/skill/useSkillEditorLoad.d.ts +0 -74
  296. package/skill/useSkillEditorLoad.d.ts.map +0 -1
  297. package/skill/useSkillEditorSubmit.d.ts +0 -105
  298. package/skill/useSkillEditorSubmit.d.ts.map +0 -1
  299. package/skill/useSkillFileActions.d.ts +0 -53
  300. package/skill/useSkillFileActions.d.ts.map +0 -1
  301. package/skill/useSkillFilePreview.d.ts +0 -38
  302. package/skill/useSkillFilePreview.d.ts.map +0 -1
  303. package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
  304. package/test-setup.d.ts +0 -2
  305. package/test-setup.d.ts.map +0 -1
  306. package/usage/useUsageData/useUsageData.d.ts +0 -20
  307. package/usage/useUsageData/useUsageData.d.ts.map +0 -1
  308. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
  309. package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
  310. package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
  311. package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
  312. package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
  313. package/useShareLink/useShareLink.d.ts +0 -23
  314. package/useShareLink/useShareLink.d.ts.map +0 -1
  315. package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
  316. package/useToolsMenu/useToolsMenu.d.ts +0 -31
  317. package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
  318. package/useViewportWidth/useViewportWidth.d.ts +0 -3
  319. package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
@@ -1,32 +0,0 @@
1
- import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, 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 a destination folder's already-configured access rules. */
23
- getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
24
- }
25
- /**
26
- * Wraps the generated `PublishApi` in the positional-argument surface the
27
- * catalog and conversation publish flows call, so each host app re-exports one
28
- * client instead of re-declaring the same four wrappers. Mirrors
29
- * {@link createFilesApiClient}.
30
- */
31
- export declare const createPublishApiClient: (publishApi: PublishApi) => PublishApiClient;
32
- //# sourceMappingURL=create-publish-api.d.ts.map
@@ -1 +0,0 @@
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,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,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,gBAsBD,CAAC"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,21 +0,0 @@
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
- * Finds a deployment matching `idOrReference` by `id` first, falling back to
15
- * `reference` when no `id` matches. DIAL Core sometimes addresses a
16
- * deployment by `reference` in places that store a deployment id (e.g. a
17
- * conversation's or message's `model.id`), so lookups against the fetched
18
- * deployments list must accept either value.
19
- */
20
- export declare const findDeploymentByIdOrReference: (deployments: DeploymentItemDto[], idOrReference: string | null | undefined) => DeploymentItemDto | undefined;
21
- //# sourceMappingURL=deployment-id.d.ts.map
@@ -1 +0,0 @@
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,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAMtB,CAAC"}
@@ -1,132 +0,0 @@
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
- reasoningEfforts?: string[];
21
- }
22
- /** Catalog-facing specification fields for a model deployment. */
23
- export interface ModelSpecification {
24
- provider?: string;
25
- vendor?: string;
26
- license?: string;
27
- knowledgeCutoffDate?: string;
28
- parameters?: string;
29
- contextWindowTokens?: number;
30
- maxOutputTokens?: number;
31
- inputTypes?: string[];
32
- hostedBy?: string;
33
- createdAt?: number;
34
- }
35
- /** One priced unit for a model deployment. */
36
- export interface ModelPriceRow {
37
- /** DIAL Core pricing key, e.g. `prompt`, `completion`, `cache_read`. */
38
- key: string;
39
- /** Per-unit price formatted for display, e.g. `$3/M tokens`. */
40
- price: string;
41
- }
42
- /** A model deployment's full price list. */
43
- export interface ModelPricing {
44
- /** Every price DIAL Core reports for the deployment, `unit` excluded. */
45
- prices?: ModelPriceRow[];
46
- }
47
- /** API-resource identifiers for a model deployment. */
48
- export interface ModelApiDetails {
49
- modelId?: string;
50
- }
51
- /** Full details payload for a model-type deployment. */
52
- export interface ModelEntityDetails {
53
- capabilities?: ModelCapabilities;
54
- specification?: ModelSpecification;
55
- pricing?: ModelPricing;
56
- api?: ModelApiDetails;
57
- }
58
- /** Catalog-facing specification fields for an agent (application) deployment. */
59
- export interface AgentSpecification {
60
- hostedBy?: string;
61
- createdAt?: number;
62
- routes?: string[];
63
- }
64
- /** Feature-support flags for an agent (application) deployment. */
65
- export interface AgentCapabilities {
66
- hasTools?: boolean;
67
- hasMcp?: boolean;
68
- hasCaching?: boolean;
69
- hasParallelToolCalls?: boolean;
70
- hasUrlAttachments?: boolean;
71
- hasFolderAttachments?: boolean;
72
- hasSeed?: boolean;
73
- hasSystemPrompt?: boolean;
74
- hasResume?: boolean;
75
- hasConfiguration?: boolean;
76
- hasChatCompletion?: boolean;
77
- hasResponsesApi?: boolean;
78
- }
79
- /** Input-attachment configuration for an agent (application) deployment. */
80
- export interface AgentConfiguration {
81
- inputAttachmentTypes?: string[];
82
- }
83
- /** Full details payload for an agent (application)-type deployment. */
84
- export interface AgentEntityDetails {
85
- specification?: AgentSpecification;
86
- configuration?: AgentConfiguration;
87
- capabilities?: AgentCapabilities;
88
- }
89
- /** Sign-in status at both the personal and org-wide (global) level for a toolset. */
90
- export interface ToolsetAuthStatusDetails {
91
- global?: string;
92
- appLevel?: string;
93
- userLevel?: string;
94
- scopesSupported?: string[];
95
- authorizationEndpoint?: string;
96
- tokenEndpoint?: string;
97
- apiKeyHeader?: string;
98
- }
99
- /** Catalog-facing specification fields for a toolset. */
100
- export interface ToolsetSpecification {
101
- authentication?: AuthenticationType;
102
- permissions?: string[];
103
- hostedBy?: string;
104
- authStatus?: ToolsetAuthStatusDetails;
105
- createdAt?: number;
106
- /** Names of all tools the underlying MCP server supports, not just the allow-listed subset in `permissions`. */
107
- allTools?: string[];
108
- }
109
- /** Feature-support flags for a toolset. */
110
- export interface ToolsetCapabilities {
111
- hasMcp?: boolean;
112
- hasCaching?: boolean;
113
- hasSystemPrompt?: boolean;
114
- hasResume?: boolean;
115
- }
116
- /** Full details payload for a toolset-type deployment. */
117
- export interface ToolsetEntityDetails {
118
- specification?: ToolsetSpecification;
119
- capabilities?: ToolsetCapabilities;
120
- }
121
- /** Discriminated-union entity details for a deployment, keyed by catalog entity type. */
122
- export type EntitySpecificDetails = {
123
- type: 'MODEL';
124
- data: ModelEntityDetails;
125
- } | {
126
- type: 'AGENT';
127
- data: AgentEntityDetails;
128
- } | {
129
- type: 'TOOLSET';
130
- data: ToolsetEntityDetails;
131
- };
132
- //# sourceMappingURL=entity-details.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"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"}
@@ -1,33 +0,0 @@
1
- import { CatalogItemLimits } from '@epam/ai-dial-catalog';
2
- import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
3
- /** Labels and formatter callbacks for the deployment-limits mapping utility. */
4
- export interface DeploymentLimitsLabels {
5
- /** Heading of the group every token stat row is listed under. */
6
- tokenGroup: string;
7
- /** Label for the tokens-per-day stat row. */
8
- tokensPerDay: string;
9
- /** Label for the tokens-per-week stat row. */
10
- tokensPerWeek: string;
11
- /** Label for the tokens-per-month stat row. */
12
- tokensPerMonth: string;
13
- /** Note shown instead of a total on a row whose limit follows the cost limit. */
14
- followsCostLimit: string;
15
- /** Formats the "$X spent" caption under a row's label. */
16
- formatSpentCaption: (amount: string) => 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
- /** Formats the ARIA label for an unlimited row, which has no total to announce. */
26
- formatFollowsCostLimitAriaLabel: (params: {
27
- label: string;
28
- used: string;
29
- }) => string;
30
- }
31
- /** Maps a deployment limits DTO to display-ready catalog limits, or `undefined` when no qualifying stats exist. */
32
- export declare const mapDeploymentLimitsDtoToCatalogLimits: (dto: DeploymentLimitsResponseDto | undefined, labels: DeploymentLimitsLabels) => CatalogItemLimits | undefined;
33
- //# sourceMappingURL=map-deployment-limits-to-catalog.d.ts.map
@@ -1 +0,0 @@
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;AAGvC,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,gBAAgB,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,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;CACd;AA4JD,mHAAmH;AACnH,eAAO,MAAM,qCAAqC,GAChD,KAAK,2BAA2B,GAAG,SAAS,EAC5C,QAAQ,sBAAsB,KAC7B,iBAAiB,GAAG,SA8BtB,CAAC"}
@@ -1,15 +0,0 @@
1
- import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
2
- /** Normalized monthly token usage consumed by the conversation input control. */
3
- export interface MonthlyUsageLimit {
4
- /** Normalized used-token count. */
5
- used: number;
6
- /** Configured monthly token limit. */
7
- total: number;
8
- /** Remaining monthly tokens, clamped to zero. */
9
- remaining: number;
10
- /** Monthly utilization percentage, clamped to 0–100. */
11
- usedPercent: number;
12
- }
13
- /** Maps the monthly deployment token limit to a display-ready value. */
14
- export declare const mapDeploymentLimitsToInput: (dto: DeploymentLimitsResponseDto | undefined) => MonthlyUsageLimit | undefined;
15
- //# sourceMappingURL=map-deployment-limits-to-input.d.ts.map
@@ -1 +0,0 @@
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,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,iFAAiF;AACjF,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,GACrC,KAAK,2BAA2B,GAAG,SAAS,KAC3C,iBAAiB,GAAG,SAqBtB,CAAC"}
@@ -1,60 +0,0 @@
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
- /**
5
- * Maps a toolset's auth settings (from a deployment listing row) into the
6
- * lib's credential-status shape, including both `USER` and `GLOBAL` sign-in
7
- * status, whether the toolset is public, and whether the current user (if an
8
- * admin) may manage both levels. Named apart from
9
- * `map-entity-details-to-catalog.ts`'s `mapToolsetCredentials` (a different
10
- * input shape, `ToolsetEntityDetails`) to avoid an ambiguous `export *`
11
- * collision between the two modules.
12
- *
13
- * For a non-admin on a public toolset that already has `GLOBAL` credentials
14
- * signed in, the lib's own `LoginWithMyCreds` CTA fires unconditionally off
15
- * `isPublic` alone, regardless of whether org-wide credentials already cover
16
- * everyone (`node_modules/@epam/ai-dial-catalog/dist/index.js`, the `ct`
17
- * helper). Global auth is sufficient to use the toolset — a personal login
18
- * is optional, not required — so this suppresses that CTA by reporting
19
- * `authenticationType: None`, which is the lib's own documented signal to
20
- * hide the credentials control entirely.
21
- */
22
- export declare const mapDeploymentToolsetCredentials: (toolsetId: string, authSettings: DialToolsetAuthSettingsDto | undefined, isAdmin: boolean) => CatalogItemCredentials | undefined;
23
- /** Translated folder-path labels for the Personal/Shared/Public deployment groupings. */
24
- export interface DeploymentFolderLabels {
25
- personal: string;
26
- shared: string;
27
- public: string;
28
- }
29
- export declare const resolveDeploymentFolder: (deployment: Pick<DeploymentItemDto, "isMy" | "sharedWithMe" | "applicationFolder">, labels: DeploymentFolderLabels) => string[];
30
- /** Parameters for {@link mapDeploymentToCatalogItem}. */
31
- export interface MapDeploymentToCatalogItemOptions {
32
- favoriteIds?: ReadonlySet<string>;
33
- entityDetails?: EntitySpecificDetails;
34
- folderLabels: DeploymentFolderLabels;
35
- editableSchemaIds?: string[];
36
- isCustomAppsEditable?: boolean;
37
- /** The viewer's active display locale, used to resolve `displayName`/`description`. */
38
- activeLocale: string;
39
- /** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
40
- primaryLocale: string;
41
- /** Resolves a deployment's raw `iconUrl` to a displayable URL. Host-owned. */
42
- resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
43
- }
44
- /** Maps a deployment listing row into the catalog UI's `CatalogItem` shape. */
45
- export declare const mapDeploymentToCatalogItem: (deployment: DeploymentItemDto, { favoriteIds, entityDetails, folderLabels, editableSchemaIds, isCustomAppsEditable, activeLocale, primaryLocale, resolveIconUrl, }: MapDeploymentToCatalogItemOptions) => CatalogItem;
46
- /** Parameters for {@link mapToolsetToCatalogItem}. */
47
- export interface MapToolsetToCatalogItemOptions {
48
- favoriteIds?: ReadonlySet<string>;
49
- isAdmin?: boolean;
50
- folderLabels?: DeploymentFolderLabels;
51
- /** The viewer's active display locale, used to resolve `displayName`/`description`. */
52
- activeLocale: string;
53
- /** The fixed content language `displayName`/`description` fall back to when `activeLocale` has no entry. */
54
- primaryLocale: string;
55
- /** Resolves a toolset's raw `iconUrl` to a displayable URL. Host-owned. */
56
- resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
57
- }
58
- /** Maps a toolset listing row into the catalog UI's `CatalogItem` shape. */
59
- export declare const mapToolsetToCatalogItem: (toolset: DialToolsetDto, { favoriteIds, isAdmin, folderLabels, activeLocale, primaryLocale, resolveIconUrl, }: MapToolsetToCatalogItemOptions) => CatalogItem;
60
- //# sourceMappingURL=map-deployment-to-catalog-item.d.ts.map
@@ -1 +0,0 @@
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;AAKvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAkB9D;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,+BAA+B,GAC1C,WAAW,MAAM,EACjB,cAAc,0BAA0B,GAAG,SAAS,EACpD,SAAS,OAAO,KACf,sBAAsB,GAAG,SA4B3B,CAAC;AAkBF,yFAAyF;AACzF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,uBAAuB,GAClC,YAAY,IAAI,CACd,iBAAiB,EACjB,MAAM,GAAG,cAAc,GAAG,mBAAmB,CAC9C,EACD,QAAQ,sBAAsB,KAC7B,MAAM,EAmBR,CAAC;AA4BF,yDAAyD;AACzD,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,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;CACrE;AAED,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,GACrC,YAAY,iBAAiB,EAC7B,qIASG,iCAAiC,KACnC,WA2CF,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"}
@@ -1,23 +0,0 @@
1
- import { CatalogItemCredentials, CatalogItemTabData } from '@epam/ai-dial-catalog';
2
- import { DeploymentDetailsDto } from '@epam/ai-dial-chat-api-client';
3
- import { EntitySpecificDetails, ToolsetEntityDetails } from './entity-details';
4
- /**
5
- * Maps a toolset's specification into the lib's credential-status shape,
6
- * for refreshing the details panel after login/logout. Includes both
7
- * `USER` and `GLOBAL` status, whether the toolset is public, and whether
8
- * the current user (if an admin) may manage both levels.
9
- */
10
- export declare const mapToolsetCredentials: (toolsetId: string, data: ToolsetEntityDetails, isAdmin: boolean) => CatalogItemCredentials | undefined;
11
- /**
12
- * Converts a strongly-typed entity domain model into the lib's `CatalogItemTabData` shape.
13
- * Every label is a fixed English string — the app's i18n keys for these labels are dropped
14
- * on the move, since the lib cannot import the app's translation-key enum.
15
- */
16
- export declare const mapEntityDetailsToCatalogDetails: (details: EntitySpecificDetails) => CatalogItemTabData;
17
- /**
18
- * Converts the backend `DeploymentDetailsDto` (model/application/toolset,
19
- * fetched by id) into the strongly-typed `EntitySpecificDetails` domain model
20
- * consumed by `mapEntityDetailsToCatalogDetails`.
21
- */
22
- export declare const mapDeploymentDetailsDtoToEntityDetails: (dto: DeploymentDetailsDto) => EntitySpecificDetails;
23
- //# sourceMappingURL=map-entity-details-to-catalog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAGL,KAAK,qBAAqB,EAI1B,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AA4O1B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,EACjB,MAAM,oBAAoB,EAC1B,SAAS,OAAO,KACf,sBAAsB,GAAG,SAoB3B,CAAC;AAgEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAC3C,SAAS,qBAAqB,KAC7B,kBASF,CAAC;AA0NF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,GACjD,KAAK,oBAAoB,KACxB,qBASF,CAAC"}
@@ -1,43 +0,0 @@
1
- import { CatalogItemOverview, CatalogItem } from '@epam/ai-dial-catalog';
2
- import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
3
- import { PromptSource } from '../prompt/prompt-resource';
4
- import { DeploymentFolderLabels } from './map-deployment-to-catalog-item';
5
- /** Translated labels for the Overview tab's author/updated rows and section title. */
6
- export interface PromptOverviewLabels {
7
- authorLabel: string;
8
- updatedLabel: string;
9
- sectionTitle: string;
10
- }
11
- /**
12
- * Builds the Overview tab data for a prompt: who authored it and when it last
13
- * changed. The description is not repeated here — the Details tab already
14
- * shows it above the body.
15
- */
16
- export declare const buildPromptOverview: (prompt: PromptResponseDto, labels: PromptOverviewLabels) => CatalogItemOverview;
17
- /**
18
- * Whether a prompt item came from the organisation namespace, which the public
19
- * prompt endpoints serve. Personal prompts resolve through the caller's own
20
- * bucket, while shared prompts carry their owner's bucket in the resource URL.
21
- */
22
- export declare const isOrganisationPromptItem: (item: CatalogItem) => boolean;
23
- /** Parameters for {@link mapPromptToCatalogItem}. */
24
- export interface MapPromptToCatalogItemOptions {
25
- /** Personal/Shared/Public folder labels; i18n stays at the app edge. */
26
- folderLabels: DeploymentFolderLabels;
27
- /** Author/updated/section-title labels for the Overview tab; i18n stays at the app edge. */
28
- overviewLabels: PromptOverviewLabels;
29
- /** Namespace the prompt came from; drives ownership flags and the folder prefix. */
30
- source: PromptSource;
31
- /** Favorited resource ids from the user config, keyed by prompt path. */
32
- favoriteIds: ReadonlySet<string>;
33
- }
34
- /**
35
- * Maps a prompt DTO into a catalog item.
36
- *
37
- * `prompt.id` is already the full `prompts/{bucket}/{path}` resource path —
38
- * the owner bucket for a shared-with-me prompt, the caller's own bucket
39
- * otherwise — the same shape every other resource type's `CatalogItem.id`
40
- * carries, so no per-source qualification is needed here.
41
- */
42
- export declare const mapPromptToCatalogItem: (prompt: PromptResponseDto, { folderLabels, overviewLabels, source, favoriteIds, }: MapPromptToCatalogItemOptions) => CatalogItem;
43
- //# sourceMappingURL=map-prompt-to-catalog-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map-prompt-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-prompt-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAkB/E,sFAAsF;AACtF,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,QAAQ,oBAAoB,KAC3B,mBAaF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,WAAW,KAAG,OACxB,CAAC;AAEtC,qDAAqD;AACrD,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,YAAY,EAAE,sBAAsB,CAAC;IACrC,4FAA4F;IAC5F,cAAc,EAAE,oBAAoB,CAAC;IACrC,oFAAoF;IACpF,MAAM,EAAE,YAAY,CAAC;IACrB,yEAAyE;IACzE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,iBAAiB,EACzB,wDAKG,6BAA6B,KAC/B,WAsCF,CAAC"}
@@ -1,87 +0,0 @@
1
- import { CatalogContentTreeNode, CatalogItem, CatalogItemOverview } from '@epam/ai-dial-catalog';
2
- import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
3
- import { SkillAboutDetails } from '../skill/skill-manifest';
4
- import { SkillSource } from '../skill/skill-types';
5
- import { DeploymentFolderLabels } from './map-deployment-to-catalog-item';
6
- /** Parameters for {@link mapSkillToCatalogItem}. */
7
- export interface MapSkillToCatalogItemOptions {
8
- /** Personal/Shared/Public folder labels; i18n stays at the app edge. */
9
- folderLabels: DeploymentFolderLabels;
10
- /** Namespace the skill came from; drives ownership flags and the folder prefix. */
11
- source: SkillSource;
12
- /** Favorited resource ids from the user config, keyed by skill resource URL. */
13
- favoriteIds: ReadonlySet<string>;
14
- }
15
- /**
16
- * Maps a skill's DIAL Core metadata into a catalog item. The full
17
- * `skills/{bucket}/{path}` resource URL is used as `CatalogItem.id` rather
18
- * than the bucket-relative path: the catalog lists two buckets, and the same
19
- * relative path can exist in both.
20
- */
21
- export declare const mapSkillToCatalogItem: (skill: SkillMetadataItemDto, { folderLabels, source, favoriteIds }: MapSkillToCatalogItemOptions) => CatalogItem;
22
- /** Translated labels for the skill Overview tab's Specification/Details sections. */
23
- export interface SkillOverviewLabels {
24
- whenToUseLabel: string;
25
- allowedToolsLabel: string;
26
- bundledResourcesLabel: string;
27
- specificationSectionTitle: string;
28
- authorLabel: string;
29
- updatedLabel: string;
30
- fileCountLabel: string;
31
- detailsSectionTitle: string;
32
- }
33
- /**
34
- * Resolves the manifest file's opaque listing id across DIAL Core versions.
35
- * Some return file-relative paths (`SKILL.md`), while others prefix the
36
- * skill's path and its internal `files` directory. The returned id is kept
37
- * verbatim so it matches the corresponding tree node exactly.
38
- */
39
- export declare const resolveSkillManifestFileId: (files: SkillMetadataItemDto[], skillPath: string) => string;
40
- /**
41
- * Converts an opaque file-listing id into the path expected by the single-file
42
- * download endpoint. Core may prefix listing paths with the skill path and its
43
- * internal `files` directory, while the endpoint accepts a path relative to
44
- * that directory. File-relative ids are returned unchanged.
45
- */
46
- export declare const resolveSkillFileDownloadPath: (fileId: string, skillPath: string) => string | null;
47
- /**
48
- * Builds the Overview tab data for a skill: a Specification section from its
49
- * parsed manifest frontmatter, followed by a Details section covering who
50
- * authored it, when it last changed, and its file inventory. Grouping folders
51
- * in the file listing are excluded from both the count and the rows. Sizes are
52
- * not shown — the skill metadata carries no content-length field.
53
- */
54
- export declare const buildSkillOverview: (skill: SkillMetadataItemDto | undefined, files: SkillMetadataItemDto[], about: SkillAboutDetails | undefined, labels: SkillOverviewLabels) => CatalogItemOverview;
55
- /**
56
- * Builds the Content tab's hierarchical file tree for a skill from
57
- * `listSkillFiles({ recursive: true })`'s flat listing. Every entry's path is
58
- * first stripped of the skill's own path prefix and its internal `files`
59
- * storage directory (see `stripSkillPathPrefix`) — the skill's own root
60
- * folder and that `files` directory are Core storage implementation details,
61
- * not authored structure, so neither appears as a wrapping node. An entry
62
- * that strips to nothing (the skill root, or the bare `files` directory
63
- * itself) contributes no node. Every folder entry is attached under its own
64
- * stripped path so an empty grouping folder still appears; every file entry
65
- * attaches under the folder chain its stripped path implies, synthesizing
66
- * any intermediate folder the listing never enumerated on its own. A file
67
- * node's `id` is the listing entry's own (unstripped) path, so it round-trips
68
- * back to `downloadSkillFile` without being re-derived; a folder node's `id`
69
- * is the stripped path and only keys client-side expand/collapse state.
70
- */
71
- export declare const buildSkillContentTree: (files: SkillMetadataItemDto[], skillPath: string) => CatalogContentTreeNode[];
72
- /**
73
- * Reads a skill file response as raw bytes, or `null` when the body is
74
- * larger than `SKILL_MANIFEST_MAX_BYTES`. The declared `content-length` is
75
- * checked first so an oversized body is never read into memory at all; the
76
- * actual byte length is checked again after reading, for a response with no
77
- * (or an inaccurate) declared length. Applies identically to every skill
78
- * file, text or binary — not only `SKILL.md`.
79
- */
80
- export declare const readSkillFileBytes: (response: Response) => Promise<Uint8Array | null>;
81
- /**
82
- * Reads a skill manifest response as text, or `null` when the body is larger
83
- * than `SKILL_MANIFEST_MAX_BYTES`. The size is checked before decoding, so an
84
- * oversized manifest is never turned into a string.
85
- */
86
- export declare const readSkillManifest: (response: Response) => Promise<string | null>;
87
- //# sourceMappingURL=map-skill-to-catalog-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map-skill-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-skill-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EAGzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAQvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAA4B,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAiB/E,oDAAoD;AACpD,MAAM,WAAW,4BAA4B;IAC3C,wEAAwE;IACxE,YAAY,EAAE,sBAAsB,CAAC;IACrC,mFAAmF;IACnF,MAAM,EAAE,WAAW,CAAC;IACpB,gFAAgF;IAChF,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,oBAAoB,EAC3B,uCAAuC,4BAA4B,KAClE,WA4BF,CAAC;AAKF,qFAAqF;AACrF,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AA2CD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,OAAO,oBAAoB,EAAE,EAC7B,WAAW,MAAM,KAChB,MAeF,CAAC;AAuCF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAAM,GAAG,IAA+C,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,oBAAoB,GAAG,SAAS,EACvC,OAAO,oBAAoB,EAAE,EAC7B,OAAO,iBAAiB,GAAG,SAAS,EACpC,QAAQ,mBAAmB,KAC1B,mBAyBF,CAAC;AA4DF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,oBAAoB,EAAE,EAC7B,WAAW,MAAM,KAChB,sBAAsB,EA6BxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,QAAQ,KACjB,OAAO,CAAC,UAAU,GAAG,IAAI,CAa3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,QAAQ,KACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAKvB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
2
- import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
3
- /** Resource families that DIAL Core exposes an MCP endpoint for. */
4
- export declare enum McpResourceKind {
5
- /** Toolsets, served under `/v1/toolset/{id}/mcp`. */
6
- Toolset = "toolset",
7
- /** Application deployments, served under `/v1/deployments/{id}/mcp`. */
8
- Application = "application"
9
- }
10
- /** Builds the MCP endpoint URL for a toolset resource. */
11
- export declare const buildToolsetMcpUrl: (baseUrl: string, id: string) => string;
12
- /** Builds the MCP endpoint URL for an application-deployment resource. */
13
- export declare const buildApplicationMcpUrl: (baseUrl: string, id: string) => string;
14
- /** Returns the MCP resource kind a catalog item's Connect endpoint belongs to, or `null` when the item exposes no MCP endpoint. */
15
- export declare const resolveMcpResourceKind: (type: CatalogEntityType, supportsMcp?: boolean) => McpResourceKind | null;
16
- /** Builds the "Connect" tab's resource/endpoint/snippet data for the MCP endpoint of the given resource kind. */
17
- export declare const buildConnectApi: (baseUrl: string, id: string, kind: McpResourceKind) => CatalogItemApiDetails;
18
- //# sourceMappingURL=mcp-endpoint-url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/mcp-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oEAAoE;AACpE,oBAAY,eAAe;IACzB,qDAAqD;IACrD,OAAO,YAAY;IACnB,wEAAwE;IACxE,WAAW,gBAAgB;CAC5B;AAmBD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAE9E,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MACY,CAAC;AAUlF,mIAAmI;AACnI,eAAO,MAAM,sBAAsB,GACjC,MAAM,iBAAiB,EACvB,cAAc,OAAO,KACpB,eAAe,GAAG,IAMpB,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,IAAI,MAAM,EACV,MAAM,eAAe,KACpB,qBAWF,CAAC"}
@@ -1,17 +0,0 @@
1
- import { PublishConversationResultDto, PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
2
- import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
3
- import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
4
- /**
5
- * The publish API's entity-type path param values. Re-declared as a plain
6
- * string-literal union rather than importing the generated
7
- * `PublishCatalogEntityEntityTypeEnum`, so this module has no dependency on
8
- * the app's own `server-api` layer.
9
- */
10
- export type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill';
11
- /** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
12
- export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
13
- /** Maps a publish-history API response entry to the catalog lib's `PublishHistoryEntry` model. */
14
- export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
15
- /** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
16
- export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
17
- //# sourceMappingURL=publish.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,SAAS,GACT,aAAa,GACb,QAAQ,GACR,OAAO,CAAC;AAYZ,qIAAqI;AACrI,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,KACtB,wBAAwB,GAAG,SAA2C,CAAC;AAE1E,kGAAkG;AAClG,eAAO,MAAM,yBAAyB,GACpC,KAAK,sBAAsB,KAC1B,mBAID,CAAC;AAEH,iHAAiH;AACjH,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,mBAKD,CAAC"}