@epam/ai-dial-chat-hooks 1.0.0 → 1.0.2

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 (203) hide show
  1. package/api-error/api-error.d.ts +18 -0
  2. package/api-error/api-error.d.ts.map +1 -0
  3. package/api-transport/create-csrf-middleware.d.ts +15 -0
  4. package/api-transport/create-csrf-middleware.d.ts.map +1 -0
  5. package/api-transport/create-unauthorized-middleware.d.ts +40 -0
  6. package/api-transport/create-unauthorized-middleware.d.ts.map +1 -0
  7. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -2
  8. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
  9. package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +1 -1
  10. package/catalog/catalog-derivations.d.ts +27 -0
  11. package/catalog/catalog-derivations.d.ts.map +1 -0
  12. package/catalog/catalog-primary-action.d.ts +47 -0
  13. package/catalog/catalog-primary-action.d.ts.map +1 -0
  14. package/catalog/create-publish-api.d.ts +32 -0
  15. package/catalog/create-publish-api.d.ts.map +1 -0
  16. package/catalog/deployment-endpoint-url.d.ts +19 -0
  17. package/catalog/deployment-endpoint-url.d.ts.map +1 -0
  18. package/catalog/deployment-id.d.ts +21 -0
  19. package/catalog/deployment-id.d.ts.map +1 -0
  20. package/catalog/entity-details.d.ts +132 -0
  21. package/catalog/entity-details.d.ts.map +1 -0
  22. package/catalog/map-deployment-limits-to-catalog.d.ts +33 -0
  23. package/catalog/map-deployment-limits-to-catalog.d.ts.map +1 -0
  24. package/catalog/map-deployment-limits-to-input.d.ts +15 -0
  25. package/catalog/map-deployment-limits-to-input.d.ts.map +1 -0
  26. package/catalog/map-deployment-to-catalog-item.d.ts +60 -0
  27. package/catalog/map-deployment-to-catalog-item.d.ts.map +1 -0
  28. package/catalog/map-entity-details-to-catalog.d.ts +23 -0
  29. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -0
  30. package/catalog/map-prompt-to-catalog-item.d.ts +43 -0
  31. package/catalog/map-prompt-to-catalog-item.d.ts.map +1 -0
  32. package/catalog/map-skill-to-catalog-item.d.ts +87 -0
  33. package/catalog/map-skill-to-catalog-item.d.ts.map +1 -0
  34. package/catalog/mcp-endpoint-url.d.ts +18 -0
  35. package/catalog/mcp-endpoint-url.d.ts.map +1 -0
  36. package/catalog/publish.d.ts +17 -0
  37. package/catalog/publish.d.ts.map +1 -0
  38. package/catalog/useCatalogItemDetails.d.ts +73 -0
  39. package/catalog/useCatalogItemDetails.d.ts.map +1 -0
  40. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +37 -0
  41. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +1 -0
  42. package/catalog/usePublishFolders/usePublishFolders.d.ts +71 -0
  43. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -0
  44. package/conversation/announcement-message.d.ts +34 -0
  45. package/conversation/announcement-message.d.ts.map +1 -0
  46. package/conversation/conversation-transfer/import-conversation.d.ts.map +1 -1
  47. package/conversation/conversation-transfer/queue.d.ts +1 -1
  48. package/conversation/conversation-transfer/queue.d.ts.map +1 -1
  49. package/conversation/conversation-transfer/types.d.ts +0 -27
  50. package/conversation/conversation-transfer/types.d.ts.map +1 -1
  51. package/conversation/create-chat-stream-api.d.ts +38 -0
  52. package/conversation/create-chat-stream-api.d.ts.map +1 -0
  53. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +39 -0
  54. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +1 -0
  55. package/conversation/display-name-watch.d.ts +4 -0
  56. package/conversation/display-name-watch.d.ts.map +1 -0
  57. package/conversation/footer-message.d.ts +10 -0
  58. package/conversation/footer-message.d.ts.map +1 -0
  59. package/conversation/get-model-id-from-conversation-id.d.ts +27 -0
  60. package/conversation/get-model-id-from-conversation-id.d.ts.map +1 -0
  61. package/conversation/greeting.d.ts +18 -0
  62. package/conversation/greeting.d.ts.map +1 -0
  63. package/conversation/message-factory.d.ts +7 -0
  64. package/conversation/message-factory.d.ts.map +1 -0
  65. package/conversation/message-utils.d.ts +27 -0
  66. package/conversation/message-utils.d.ts.map +1 -0
  67. package/conversation/overlay-messages.d.ts +5 -0
  68. package/conversation/overlay-messages.d.ts.map +1 -0
  69. package/conversation/quick-app-conversation-starters.d.ts +10 -0
  70. package/conversation/quick-app-conversation-starters.d.ts.map +1 -0
  71. package/conversation/starter-option.d.ts +21 -0
  72. package/conversation/starter-option.d.ts.map +1 -0
  73. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +34 -0
  74. package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +1 -0
  75. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +37 -0
  76. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +1 -0
  77. package/conversation/useConversationExport/useConversationExport.d.ts +2 -1
  78. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
  79. package/conversation/useConversationHandlers/starter-option.d.ts.map +1 -1
  80. package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +1 -1
  81. package/conversation/useConversationImport/useConversationImport.d.ts +2 -1
  82. package/conversation/useConversationImport/useConversationImport.d.ts.map +1 -1
  83. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +24 -0
  84. package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +1 -0
  85. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +58 -0
  86. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -0
  87. package/conversation/useConversationStream/conversation-path.d.ts +0 -2
  88. package/conversation/useConversationStream/conversation-path.d.ts.map +1 -1
  89. package/conversation/useConversationStream/useConversationStream.d.ts.map +1 -1
  90. package/conversation/useImportFilePicker/useImportFilePicker.d.ts +32 -0
  91. package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +1 -0
  92. package/files/annotation.d.ts +10 -0
  93. package/files/annotation.d.ts.map +1 -0
  94. package/files/attachment-canvas.d.ts +90 -0
  95. package/files/attachment-canvas.d.ts.map +1 -0
  96. package/files/attachment-dto-to-display.d.ts +10 -0
  97. package/files/attachment-dto-to-display.d.ts.map +1 -0
  98. package/files/attachment-types.d.ts +14 -0
  99. package/files/attachment-types.d.ts.map +1 -0
  100. package/files/create-files-api.d.ts +52 -0
  101. package/files/create-files-api.d.ts.map +1 -0
  102. package/files/create-upload-file-with-progress.d.ts +24 -0
  103. package/files/create-upload-file-with-progress.d.ts.map +1 -0
  104. package/files/dial-file-manager-mapping.util.d.ts +1 -1
  105. package/files/dial-file-manager-mapping.util.d.ts.map +1 -1
  106. package/files/dial-file-manager-path.util.d.ts.map +1 -1
  107. package/files/dial-file-manager.types.d.ts +2 -5
  108. package/files/dial-file-manager.types.d.ts.map +1 -1
  109. package/files/dial-file-to-attachment.d.ts +26 -0
  110. package/files/dial-file-to-attachment.d.ts.map +1 -0
  111. package/files/dial-file.d.ts +17 -0
  112. package/files/dial-file.d.ts.map +1 -0
  113. package/files/file-manager-variant.d.ts +2 -20
  114. package/files/file-manager-variant.d.ts.map +1 -1
  115. package/files/prepare-download-destination.d.ts +8 -0
  116. package/files/prepare-download-destination.d.ts.map +1 -0
  117. package/files/resolve-dial-file-api-path.d.ts +1 -5
  118. package/files/resolve-dial-file-api-path.d.ts.map +1 -1
  119. package/files/useDialFileListing/useDialFileListing.d.ts.map +1 -1
  120. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +1 -1
  121. package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +1 -1
  122. package/index.d.ts +82 -3
  123. package/index.d.ts.map +1 -1
  124. package/index.js +17933 -2128
  125. package/oauth/authorize-url.d.ts +16 -0
  126. package/oauth/authorize-url.d.ts.map +1 -0
  127. package/oauth/handshake.d.ts +30 -0
  128. package/oauth/handshake.d.ts.map +1 -0
  129. package/oauth/models.d.ts +74 -0
  130. package/oauth/models.d.ts.map +1 -0
  131. package/oauth/popup.d.ts +30 -0
  132. package/oauth/popup.d.ts.map +1 -0
  133. package/oauth/toolset-id.d.ts +23 -0
  134. package/oauth/toolset-id.d.ts.map +1 -0
  135. package/oauth/types.d.ts +84 -0
  136. package/oauth/types.d.ts.map +1 -0
  137. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +54 -0
  138. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +1 -0
  139. package/oauth/useToolsetLogin/useToolsetLogin.d.ts +72 -0
  140. package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -0
  141. package/package.json +20 -9
  142. package/prompt/export-prompt.d.ts +31 -0
  143. package/prompt/export-prompt.d.ts.map +1 -0
  144. package/prompt/prompt-resource.d.ts +30 -0
  145. package/prompt/prompt-resource.d.ts.map +1 -0
  146. package/prompt/prompt.d.ts +34 -0
  147. package/prompt/prompt.d.ts.map +1 -0
  148. package/prompt/usePromptsState/usePromptsState.d.ts +34 -0
  149. package/prompt/usePromptsState/usePromptsState.d.ts.map +1 -0
  150. package/scheduled-task/scheduled-task-mapping.d.ts +19 -0
  151. package/scheduled-task/scheduled-task-mapping.d.ts.map +1 -0
  152. package/scheduled-task/scheduled-task-trigger.d.ts +27 -0
  153. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -0
  154. package/shared/application-schema.d.ts +10 -0
  155. package/shared/application-schema.d.ts.map +1 -0
  156. package/shared/browser-timezone.d.ts +7 -0
  157. package/shared/browser-timezone.d.ts.map +1 -0
  158. package/shared/cron-weekday.d.ts +5 -0
  159. package/shared/cron-weekday.d.ts.map +1 -0
  160. package/shared/custom-apps.d.ts +7 -0
  161. package/shared/custom-apps.d.ts.map +1 -0
  162. package/shared/external-services.d.ts +16 -0
  163. package/shared/external-services.d.ts.map +1 -0
  164. package/shared/formatting.d.ts +5 -0
  165. package/shared/formatting.d.ts.map +1 -0
  166. package/shared/locale.d.ts +45 -0
  167. package/shared/locale.d.ts.map +1 -0
  168. package/shared/string-utils.d.ts +9 -0
  169. package/shared/string-utils.d.ts.map +1 -0
  170. package/shared/toolset-login-events.d.ts +15 -0
  171. package/shared/toolset-login-events.d.ts.map +1 -0
  172. package/skill/skill-file-batch-validation.d.ts +70 -0
  173. package/skill/skill-file-batch-validation.d.ts.map +1 -0
  174. package/skill/skill-file-preview.d.ts +25 -0
  175. package/skill/skill-file-preview.d.ts.map +1 -0
  176. package/skill/skill-manifest.d.ts +28 -0
  177. package/skill/skill-manifest.d.ts.map +1 -0
  178. package/skill/skill-types.d.ts +42 -0
  179. package/skill/skill-types.d.ts.map +1 -0
  180. package/skill/skill.d.ts +114 -0
  181. package/skill/skill.d.ts.map +1 -0
  182. package/skill/useSkillEditorLoad.d.ts +74 -0
  183. package/skill/useSkillEditorLoad.d.ts.map +1 -0
  184. package/skill/useSkillEditorSubmit.d.ts +105 -0
  185. package/skill/useSkillEditorSubmit.d.ts.map +1 -0
  186. package/skill/useSkillFileActions.d.ts +53 -0
  187. package/skill/useSkillFileActions.d.ts.map +1 -0
  188. package/skill/useSkillFilePreview.d.ts +38 -0
  189. package/skill/useSkillFilePreview.d.ts.map +1 -0
  190. package/skill/useSkillsState/useSkillsState.d.ts +35 -0
  191. package/skill/useSkillsState/useSkillsState.d.ts.map +1 -0
  192. package/usage/useUsageData/useUsageData.d.ts +20 -0
  193. package/usage/useUsageData/useUsageData.d.ts.map +1 -0
  194. package/useShareLink/useShareLink.d.ts +2 -2
  195. package/useShareLink/useShareLink.d.ts.map +1 -1
  196. package/useToolsMenu/useToolsMenu.d.ts +7 -16
  197. package/useToolsMenu/useToolsMenu.d.ts.map +1 -1
  198. package/files/string-utils.d.ts +0 -3
  199. package/files/string-utils.d.ts.map +0 -1
  200. package/files/upload-batch.types.d.ts +0 -22
  201. package/files/upload-batch.types.d.ts.map +0 -1
  202. package/files/useGridEditingScroll/useGridEditingScroll.d.ts +0 -27
  203. package/files/useGridEditingScroll/useGridEditingScroll.d.ts.map +0 -1
@@ -0,0 +1,18 @@
1
+ /** Normalized shape returned by {@link getApiErrorDetails}. */
2
+ export interface ApiErrorDetails {
3
+ /** HTTP status code carried by the error, when available. */
4
+ status?: number;
5
+ /** Resolved human-readable error message, or `null` when none could be resolved. */
6
+ message: string | null;
7
+ /** Extracted W3C trace ID, when the error's response carries a valid `traceparent`. */
8
+ traceId?: string;
9
+ }
10
+ /** True when the API indicates the conversation resource no longer exists at the path. */
11
+ export declare const isConversationNotFoundError: (error: unknown) => boolean;
12
+ /** HTTP status code carried by a thrown API error, or `undefined` if none is attached. */
13
+ export declare const getApiErrorStatus: (error: unknown) => number | undefined;
14
+ /** Resolves a human-readable message from an API error's response body, or falls back to `Error.message`. */
15
+ export declare const getApiErrorMessage: (error: unknown) => Promise<string | null>;
16
+ /** Normalizes any API error into a `{ status?, message, traceId? }` shape. */
17
+ export declare const getApiErrorDetails: (error: unknown) => Promise<ApiErrorDetails>;
18
+ //# sourceMappingURL=api-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error.d.ts","sourceRoot":"","sources":["../../src/api-error/api-error.ts"],"names":[],"mappings":"AAMA,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,uFAAuF;IACvF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAqED,0FAA0F;AAC1F,eAAO,MAAM,2BAA2B,GAAI,OAAO,OAAO,KAAG,OAI5D,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAC3B,CAAC;AAElC,6GAA6G;AAC7G,eAAO,MAAM,kBAAkB,GAC7B,OAAO,OAAO,KACb,OAAO,CAAC,MAAM,GAAG,IAAI,CAevB,CAAC;AAEF,8EAA8E;AAc9E,eAAO,MAAM,kBAAkB,GAC7B,OAAO,OAAO,KACb,OAAO,CAAC,eAAe,CAwCzB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { Middleware } from '@epam/ai-dial-chat-api-client';
2
+ /** Host capabilities {@link createCsrfMiddleware} needs to attach and capture a CSRF token. */
3
+ export interface CreateCsrfMiddlewareDeps {
4
+ /** Returns the currently held CSRF token, or `null` when none is set. */
5
+ getCsrfToken: () => string | null;
6
+ /** Stores a CSRF token captured from a response header, or `null` to clear it. */
7
+ setCsrfToken: (token: string | null) => void;
8
+ }
9
+ /**
10
+ * Builds a generated-client `Middleware` that attaches `X-CSRF-Token` on every
11
+ * non-GET request when a token is set, and captures a rotated token from the
12
+ * `x-csrf-token` response header.
13
+ */
14
+ export declare const createCsrfMiddleware: (deps: CreateCsrfMiddlewareDeps) => Middleware;
15
+ //# sourceMappingURL=create-csrf-middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-csrf-middleware.d.ts","sourceRoot":"","sources":["../../src/api-transport/create-csrf-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,+FAA+F;AAC/F,MAAM,WAAW,wBAAwB;IACvC,yEAAyE;IACzE,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAClC,kFAAkF;IAClF,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,wBAAwB,KAC7B,UAqBD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Middleware } from '@epam/ai-dial-chat-api-client';
2
+ /** Outcome of a CSRF-token refresh attempt, reported back to {@link createUnauthorizedMiddleware}. */
3
+ export type CsrfRefreshOutcome = {
4
+ status: 'ok';
5
+ token: string;
6
+ } | {
7
+ status: 'unauthorized' | 'failed';
8
+ };
9
+ /** An error thrown to indicate the caller is unauthenticated. */
10
+ export interface UnauthorizedErrorLike extends Error {
11
+ readonly status: 401;
12
+ readonly url: string;
13
+ }
14
+ /** Host capabilities {@link createUnauthorizedMiddleware} needs to handle 401s and invalid-CSRF retries. */
15
+ export interface CreateUnauthorizedMiddlewareDeps {
16
+ /** Notifies the host that a request was unauthorized (also expected to clear any held CSRF token). */
17
+ notifyUnauthorized: (url: string) => void;
18
+ /** Attempts to refresh the CSRF token, de-duplicating concurrent calls. */
19
+ refreshCsrfToken: () => Promise<CsrfRefreshOutcome>;
20
+ /** Classifies a response body as an invalid-CSRF error. */
21
+ isInvalidCsrfErrorBody: (body: string) => boolean;
22
+ /** Returns the currently held CSRF token, or `null` when none is set. */
23
+ getCsrfToken: () => string | null;
24
+ /**
25
+ * Stores a CSRF token captured from a response header. Needed here (in
26
+ * addition to the CSRF middleware's own `post` hook) because the
27
+ * invalid-CSRF retry issues its own `fetch` outside the generated-client
28
+ * middleware pipeline, so its response header is never seen by that hook.
29
+ */
30
+ setCsrfToken: (token: string | null) => void;
31
+ /** Constructs the error thrown to signal an unauthorized request. */
32
+ createUnauthorizedError: (url: string) => UnauthorizedErrorLike;
33
+ }
34
+ /**
35
+ * Builds a generated-client `Middleware` that throws on 401, and on a
36
+ * classified invalid-CSRF 403 refreshes the token and retries the original
37
+ * request exactly once.
38
+ */
39
+ export declare const createUnauthorizedMiddleware: (deps: CreateUnauthorizedMiddlewareDeps) => Middleware;
40
+ //# sourceMappingURL=create-unauthorized-middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-unauthorized-middleware.d.ts","sourceRoot":"","sources":["../../src/api-transport/create-unauthorized-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAIhE,sGAAsG;AACtG,MAAM,MAAM,kBAAkB,GAC1B;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,MAAM,EAAE,cAAc,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE1C,iEAAiE;AACjE,MAAM,WAAW,qBAAsB,SAAQ,KAAK;IAClD,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,4GAA4G;AAC5G,MAAM,WAAW,gCAAgC;IAC/C,sGAAsG;IACtG,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,2EAA2E;IAC3E,gBAAgB,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACpD,2DAA2D;IAC3D,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAClD,yEAAyE;IACzE,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAClC;;;;;OAKG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,qEAAqE;IACrE,uBAAuB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,qBAAqB,CAAC;CACjE;AAgCD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GACvC,MAAM,gCAAgC,KACrC,UAoEF,CAAC"}
@@ -11,8 +11,6 @@ export interface UseAttachmentActionResult {
11
11
  /** Default click handler for an attachment tile: download, canvas-preview, or open-in-browser. */
12
12
  handleAttachmentClick: (attachment: DisplayAttachment) => void;
13
13
  }
14
- /** Returns true when a value looks like a DIAL Core file id (`files/{bucket}/{path}`). */
15
- export declare const isDialFileId: (url: string) => boolean;
16
14
  /** Returns true when `downloadAttachment` can trigger a download for `attachment`. */
17
15
  export declare const isDownloadableAttachment: (attachment: DisplayAttachment) => boolean;
18
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAML,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAInC,qHAAqH;AACrH,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;AAExE,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,kGAAkG;IAClG,qBAAqB,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAChE;AAED,0FAA0F;AAC1F,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,OAAmC,CAAC;AAE/E,sFAAsF;AACtF,eAAO,MAAM,wBAAwB,GACnC,YAAY,iBAAiB,KAC5B,OAEsB,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,iBAAiB,EAC7B,oBAAoB,kBAAkB,KACrC,OAuBF,CAAC;AAqDF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAEjC,yBAAyB,KAAG,yBAmC9B,CAAC"}
1
+ {"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAKnC,qHAAqH;AACrH,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;AAExE,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,kGAAkG;IAClG,qBAAqB,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAChE;AAED,sFAAsF;AACtF,eAAO,MAAM,wBAAwB,GACnC,YAAY,iBAAiB,KAC5B,OAEsB,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,iBAAiB,EAC7B,oBAAoB,kBAAkB,KACrC,OA0BF,CAAC;AAsDF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAEjC,yBAAyB,KAAG,yBAmC9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAttachmentValidation.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentValidation/useAttachmentValidation.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,EACrB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AAmCnC,sDAAsD;AACtD,oBAAY,+BAA+B;IACzC,4EAA4E;IAC5E,cAAc,mBAAmB;IACjC,yEAAyE;IACzE,eAAe,oBAAoB;CACpC;AAED,8GAA8G;AAC9G,MAAM,WAAW,8BAA8B;IAC7C,2CAA2C;IAC3C,MAAM,EAAE,+BAA+B,CAAC;IACxC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,6HAA6H;IAC7H,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sDAAsD;AACtD,MAAM,WAAW,6BAA6B;IAC5C,6DAA6D;IAC7D,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,+GAA+G;IAC/G,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACpE,wGAAwG;IACxG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uDAAuD;AACvD,MAAM,WAAW,6BAA6B;IAC5C,uGAAuG;IACvG,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,2DAA2D;IAC3D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,+FAA+F;IAC/F,kBAAkB,EAAE,CAClB,UAAU,EAAE,UAAU,KACnB,qBAAqB,GAAG,SAAS,CAAC;IACvC,gHAAgH;IAChH,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,sDAIrC,6BAA6B,KAAG,6BAqDlC,CAAC"}
1
+ {"version":3,"file":"useAttachmentValidation.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentValidation/useAttachmentValidation.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,EACrB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAC;AAMnC,sDAAsD;AACtD,oBAAY,+BAA+B;IACzC,4EAA4E;IAC5E,cAAc,mBAAmB;IACjC,yEAAyE;IACzE,eAAe,oBAAoB;CACpC;AAED,8GAA8G;AAC9G,MAAM,WAAW,8BAA8B;IAC7C,2CAA2C;IAC3C,MAAM,EAAE,+BAA+B,CAAC;IACxC,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,6HAA6H;IAC7H,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sDAAsD;AACtD,MAAM,WAAW,6BAA6B;IAC5C,6DAA6D;IAC7D,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,+GAA+G;IAC/G,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACpE,wGAAwG;IACxG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uDAAuD;AACvD,MAAM,WAAW,6BAA6B;IAC5C,uGAAuG;IACvG,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,2DAA2D;IAC3D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,+FAA+F;IAC/F,kBAAkB,EAAE,CAClB,UAAU,EAAE,UAAU,KACnB,qBAAqB,GAAG,SAAS,CAAC;IACvC,gHAAgH;IAChH,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,sDAIrC,6BAA6B,KAAG,6BAqDlC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { CatalogItem } from '@epam/ai-dial-catalog';
2
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
3
+ /**
4
+ * Filters catalog items to those whose type is in `visibleTypes`.
5
+ * Call only when selector mode is active; otherwise pass through the original array.
6
+ */
7
+ export declare const filterCatalogItemsBySelector: (items: readonly CatalogItem[], visibleTypes: ReadonlySet<CatalogEntityType>) => CatalogItem[];
8
+ /**
9
+ * Filters out items owned by the current user when `hideOwned` is true.
10
+ * Always returns a new array so callers may safely assign to mutable collections.
11
+ */
12
+ export declare const filterHiddenOwnedItems: (items: readonly CatalogItem[], hideOwned: boolean) => CatalogItem[];
13
+ /**
14
+ * Returns items marked as a user favorite, in original order.
15
+ */
16
+ export declare const deriveFavoriteItems: (items: readonly CatalogItem[]) => CatalogItem[];
17
+ /**
18
+ * Returns the subset of `tabOrder` entries whose entity type is present in
19
+ * `items`, preserving tab order.
20
+ */
21
+ export declare const deriveAvailableTabIds: <T extends CatalogEntityType>(items: readonly CatalogItem[], tabOrder: readonly T[]) => T[];
22
+ /**
23
+ * Returns the intersection of `persistedTopics` with topics that appear in
24
+ * `items`. Returns a new Set and never mutates either input.
25
+ */
26
+ export declare const reconcileFilterTopics: (persistedTopics: ReadonlySet<string>, items: readonly CatalogItem[]) => Set<string>;
27
+ //# sourceMappingURL=catalog-derivations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-derivations.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-derivations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,OAAO,SAAS,WAAW,EAAE,EAC7B,cAAc,WAAW,CAAC,iBAAiB,CAAC,KAC3C,WAAW,EAAyD,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,SAAS,WAAW,EAAE,EAC7B,WAAW,OAAO,KACjB,WAAW,EACkD,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,SAAS,WAAW,EAAE,KAC5B,WAAW,EAAiD,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,iBAAiB,EAC/D,OAAO,SAAS,WAAW,EAAE,EAC7B,UAAU,SAAS,CAAC,EAAE,KACrB,CAAC,EAGH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,iBAAiB,WAAW,CAAC,MAAM,CAAC,EACpC,OAAO,SAAS,WAAW,EAAE,KAC5B,GAAG,CAAC,MAAM,CAKZ,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { CatalogItem } from '@epam/ai-dial-catalog';
2
+ import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
3
+ /** Discriminant for primary-action result variants. */
4
+ export declare enum CatalogPrimaryActionType {
5
+ Deployment = "deployment",
6
+ Prompt = "prompt"
7
+ }
8
+ /** Primary action resolved for a deployment (model, agent, toolset, or skill). */
9
+ export interface CatalogPrimaryActionDeployment {
10
+ /** Discriminant. */
11
+ kind: CatalogPrimaryActionType.Deployment;
12
+ /** Deployment entity id. */
13
+ id: string;
14
+ }
15
+ /** Primary action resolved for a prompt. */
16
+ export interface CatalogPrimaryActionPrompt {
17
+ /** Discriminant. */
18
+ kind: CatalogPrimaryActionType.Prompt;
19
+ /** Prompt entity id. */
20
+ id: string;
21
+ /** Display name of the prompt. */
22
+ name: string;
23
+ /** Short description of the prompt. */
24
+ description: string;
25
+ /** Resolved prompt body (seeded from details or fetched). */
26
+ content: string;
27
+ /** Whether the prompt body contains at least one `{{parameter}}` placeholder. */
28
+ hasParameters: boolean;
29
+ }
30
+ /** Discriminated union of catalog primary-action results. */
31
+ export type CatalogPrimaryActionResult = CatalogPrimaryActionDeployment | CatalogPrimaryActionPrompt;
32
+ /**
33
+ * Resolves the primary action for a catalog item.
34
+ *
35
+ * For prompts: prefers already-seeded content from `item.details`; otherwise
36
+ * calls `fetchPrompt` once to retrieve the body. Sets `hasParameters` based on
37
+ * whether the content contains prompt-parameter placeholders.
38
+ *
39
+ * For all other entity types: returns a deployment result with the item id.
40
+ *
41
+ * The function does not navigate, select a deployment, show notifications, or
42
+ * import route constants — those remain the caller's responsibility.
43
+ *
44
+ * @throws When `fetchPrompt` rejects (propagated to the caller without wrapping).
45
+ */
46
+ export declare const resolveCatalogPrimaryAction: (item: CatalogItem, fetchPrompt: (item: CatalogItem) => Promise<PromptResponseDto>) => Promise<CatalogPrimaryActionResult>;
47
+ //# sourceMappingURL=catalog-primary-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-primary-action.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-primary-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,uDAAuD;AACvD,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,kFAAkF;AAClF,MAAM,WAAW,8BAA8B;IAC7C,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAC1C,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,4CAA4C;AAC5C,MAAM,WAAW,0BAA0B;IACzC,oBAAoB;IACpB,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC;IACtC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,MAAM,0BAA0B,GAClC,8BAA8B,GAC9B,0BAA0B,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,WAAW,EACjB,aAAa,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,iBAAiB,CAAC,KAC7D,OAAO,CAAC,0BAA0B,CAmBpC,CAAC"}
@@ -0,0 +1,32 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,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"}
@@ -0,0 +1,19 @@
1
+ import { CatalogItemApiDetails } from '@epam/ai-dial-catalog';
2
+ /** Builds the OpenAI-compatible Chat Completions endpoint URL for a deployment. */
3
+ export declare const buildChatCompletionsUrl: (baseUrl: string, id: string) => string;
4
+ /** Builds the Responses API endpoint URL for a deployment. */
5
+ export declare const buildResponsesUrl: (baseUrl: string) => string;
6
+ /** Which generation APIs a deployment reports supporting. */
7
+ export interface DeploymentGenerationApiSupport {
8
+ hasChatCompletion?: boolean;
9
+ hasResponsesApi?: boolean;
10
+ }
11
+ /**
12
+ * Builds the "Connect" tab's endpoint list for a model or application
13
+ * deployment: the OpenAI-compatible Chat Completions endpoint and/or the
14
+ * Responses API endpoint, each included only when the deployment reports
15
+ * supporting it. DIAL Core routes both APIs the same way for models and
16
+ * custom applications, keyed by the deployment id.
17
+ */
18
+ export declare const buildDeploymentConnectApi: (baseUrl: string, id: string, { hasChatCompletion, hasResponsesApi }: DeploymentGenerationApiSupport) => CatalogItemApiDetails | undefined;
19
+ //# sourceMappingURL=deployment-endpoint-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-endpoint-url.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-endpoint-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAuB/B,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,KAAG,MAC2B,CAAC;AAElG,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MACC,CAAC;AAEtD,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,MAAM,EACf,IAAI,MAAM,EACV,wCAAwC,8BAA8B,KACrE,qBAAqB,GAAG,SAqC1B,CAAC"}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-id.d.ts","sourceRoot":"","sources":["../../src/catalog/deployment-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAIlC,CAAC;AAEf;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,iBAAiB,EAAE,EAChC,eAAe,MAAM,GAAG,IAAI,GAAG,SAAS,KACvC,iBAAiB,GAAG,SAMtB,CAAC"}
@@ -0,0 +1,132 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,MAAM,YAAY;IAClB,KAAK,UAAU;CAChB;AAUD,oDAAoD;AACpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,kEAAkE;AAClE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4CAA4C;AAC5C,MAAM,WAAW,YAAY;IAC3B,yEAAyE;IACzE,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wDAAwD;AACxD,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB;AAID,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAQD,mEAAmE;AACnE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAID,qFAAqF;AACrF,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAOD,2CAA2C;AAC3C,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,0DAA0D;AAC1D,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AASD,yFAAyF;AACzF,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC"}
@@ -0,0 +1,33 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-limits-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,+BAA+B,CAAC;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"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-limits-to-input.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-limits-to-input.ts"],"names":[],"mappings":"AAAA,OAAO,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"}
@@ -0,0 +1,60 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-deployment-to-catalog-item.d.ts","sourceRoot":"","sources":["../../src/catalog/map-deployment-to-catalog-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACf,MAAM,+BAA+B,CAAC;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"}
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;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"}