@epam/ai-dial-chat-hooks 1.1.0-dev.393 → 1.1.0-dev.396

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.
package/catalog.d.ts CHANGED
@@ -7,12 +7,15 @@ import { CatalogItemDetailsFetchResult } from '@epam/ai-dial-catalog';
7
7
  import { CatalogItemLimits } from '@epam/ai-dial-catalog';
8
8
  import { CatalogItemOverview } from '@epam/ai-dial-catalog';
9
9
  import { CatalogItemTabData } from '@epam/ai-dial-catalog';
10
+ import { CredentialsLevel } from '@epam/ai-dial-catalog';
10
11
  import { DeploymentDetailsDto } from '@epam/ai-dial-chat-api-client';
11
12
  import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
12
13
  import { DeploymentLimitsResponseDto } from '@epam/ai-dial-chat-api-client';
13
14
  import { DialToolsetAuthSettingsDto } from '@epam/ai-dial-chat-api-client';
14
15
  import { DialToolsetDto } from '@epam/ai-dial-chat-api-client';
16
+ import { DropdownItem } from '@epam/ai-dial-ui-kit';
15
17
  import { ListFilesResponseDto } from '@epam/ai-dial-chat-api-client';
18
+ import { NotificationVariant } from '@epam/ai-dial-ui-kit';
16
19
  import { PromptResponseDto } from '@epam/ai-dial-chat-api-client';
17
20
  import { PublicationRule } from '@epam/ai-dial-publish-panel';
18
21
  import { PublishApi } from '@epam/ai-dial-chat-api-client';
@@ -25,6 +28,8 @@ import { PublishResultDto } from '@epam/ai-dial-chat-api-client';
25
28
  import { PublishRuleDto } from '@epam/ai-dial-chat-api-client';
26
29
  import { SkillFileListResponseDto } from '@epam/ai-dial-chat-api-client';
27
30
  import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
31
+ import { ToolsetLoginBodyDto } from '@epam/ai-dial-chat-api-client';
32
+ import { ToolsetLogoutBodyDto } from '@epam/ai-dial-chat-api-client';
28
33
  import { UnpublishCatalogEntityDto } from '@epam/ai-dial-chat-api-client';
29
34
  import { UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
30
35
 
@@ -156,6 +161,52 @@ export declare interface CatalogDetailsApi {
156
161
  }, signal?: AbortSignal): Promise<SkillFileListResponseDto>;
157
162
  }
158
163
 
164
+ /** Localized copy `useCatalogEditNavigation` needs for the Create menu and delete errors. */
165
+ export declare interface CatalogEditNavigationLabels {
166
+ createQuickApp: string;
167
+ createToolset: string;
168
+ createCustomApp: string;
169
+ createSkill: string;
170
+ createSkillWriteInstructions: string;
171
+ createSkillUpload: string;
172
+ createPrompt: string;
173
+ deleteError: string;
174
+ }
175
+
176
+ /** A host notification `useCatalogEditNavigation` asks to be shown for a failed delete. */
177
+ export declare interface CatalogEditNavigationNotification {
178
+ message: string;
179
+ requestId?: string;
180
+ }
181
+
182
+ /**
183
+ * Injected editor-route URL builders, already closed over the host's own
184
+ * route paths and query-parameter scheme. The lib knows nothing about either
185
+ * — it only asks for "the URL to edit/create this kind of item".
186
+ */
187
+ export declare interface CatalogEditNavigationUrls {
188
+ /** URL to edit an existing prompt. */
189
+ buildPromptEditUrl(promptId: string): string;
190
+ /** URL to create a new prompt. */
191
+ buildPromptCreateUrl(): string;
192
+ /** URL to edit an existing skill. */
193
+ buildSkillEditUrl(skillId: string): string;
194
+ /** URL to create a new skill. */
195
+ buildSkillCreateUrl(): string;
196
+ /** URL to edit an existing toolset. */
197
+ buildToolsetEditUrl(toolsetId: string): string;
198
+ /** URL to create a new toolset. */
199
+ buildToolsetCreateUrl(): string;
200
+ /** URL to edit an existing custom (schema-less) app. */
201
+ buildCustomAppEditUrl(appId: string): string;
202
+ /** URL to create a new custom (schema-less) app. */
203
+ buildCustomAppCreateUrl(): string;
204
+ /** URL to edit an existing quick app under the given schema. */
205
+ buildQuickAppEditUrl(schemaId: string, appId: string): string;
206
+ /** URL to create a new quick app under the given schema. */
207
+ buildQuickAppCreateUrl(schemaId: string): string;
208
+ }
209
+
159
210
  /** Primary action resolved for a deployment (model, agent, toolset, or skill). */
160
211
  export declare interface CatalogPrimaryActionDeployment {
161
212
  /** Discriminant. */
@@ -734,6 +785,45 @@ export declare interface ToolsetCapabilities {
734
785
  hasResume?: boolean;
735
786
  }
736
787
 
788
+ /** Localized copy `useCatalogToolsetCredentials` needs for every outcome it can notify. */
789
+ export declare interface ToolsetCredentialsLabels {
790
+ loginSuccessTitle: string;
791
+ loginSuccess: ToolsetCredentialsMessageLabels;
792
+ apiKeyAddedSuccessTitle: string;
793
+ apiKeyAddedSuccess: ToolsetCredentialsMessageLabels;
794
+ logoutSuccessTitle: string;
795
+ logoutSuccess: ToolsetCredentialsMessageLabels;
796
+ apiKeyDeletedSuccessTitle: string;
797
+ apiKeyDeletedSuccess: ToolsetCredentialsMessageLabels;
798
+ popupBlockedError: string;
799
+ loginFailedError: string;
800
+ logoutFailedError: string;
801
+ }
802
+
803
+ /** Formats one credentials-level outcome's notification body. */
804
+ export declare interface ToolsetCredentialsMessageLabels {
805
+ user: (params: {
806
+ name: string;
807
+ version?: string;
808
+ }) => string;
809
+ org: (params: {
810
+ name: string;
811
+ version?: string;
812
+ }) => string;
813
+ global: (params: {
814
+ name: string;
815
+ version?: string;
816
+ }) => string;
817
+ }
818
+
819
+ /** A host notification `useCatalogToolsetCredentials` asks to be shown. */
820
+ export declare interface ToolsetCredentialsNotification {
821
+ variant: NotificationVariant;
822
+ title?: string;
823
+ message: string;
824
+ requestId?: string;
825
+ }
826
+
737
827
  /** Full details payload for a toolset-type deployment. */
738
828
  export declare interface ToolsetEntityDetails {
739
829
  specification?: ToolsetSpecification;
@@ -766,6 +856,57 @@ export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPu
766
856
  */
767
857
  export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto;
768
858
 
859
+ /**
860
+ * Owns the catalog's edit/delete/create-menu navigation: routing the details
861
+ * panel's Edit action to the right editor URL for each item type, deleting an
862
+ * item through the endpoint its type owns and refetching/notifying on
863
+ * completion, and building the Create dropdown's options.
864
+ */
865
+ export declare const useCatalogEditNavigation: ({ deployments, isCustomAppsEnabled, isSchemaAppsEnabled, isHideCustomAppCreationEnabled, isToolsetsEnabled, isPromptsEnabled, quickAppSchemaId, urls, onNavigate, deletePrompt, deleteToolset, deleteSkill, deleteApplication, refetchPrompts, refetchToolsets, refetchSkills, refetchDeployments, onDeleteSuccess, labels, onNotify, triggerSkillArchivePicker, }: UseCatalogEditNavigationParams) => UseCatalogEditNavigationResult;
866
+
867
+ /** Parameters accepted by {@link useCatalogEditNavigation}. */
868
+ export declare interface UseCatalogEditNavigationParams {
869
+ deployments: DeploymentItemDto[];
870
+ isCustomAppsEnabled: boolean;
871
+ isSchemaAppsEnabled: boolean;
872
+ isHideCustomAppCreationEnabled: boolean;
873
+ isToolsetsEnabled: boolean;
874
+ isPromptsEnabled: boolean;
875
+ /** The quick-app schema id resolved by `useCatalogItems`, or `undefined` when no quick-app schema exists. */
876
+ quickAppSchemaId: string | undefined;
877
+ /** Already-configured editor-route URL builders. */
878
+ urls: CatalogEditNavigationUrls;
879
+ /** Navigates the host to a URL built by `urls`. */
880
+ onNavigate: (url: string) => void;
881
+ /** Already-configured DIAL Core operation: deletes a personal or shared prompt. */
882
+ deletePrompt: (id: string) => Promise<unknown>;
883
+ /** Already-configured DIAL Core operation: deletes a toolset. */
884
+ deleteToolset: (id: string) => Promise<unknown>;
885
+ /** Already-configured DIAL Core operation: deletes a skill package. */
886
+ deleteSkill: (bucket: string, path: string) => Promise<unknown>;
887
+ /** Already-configured DIAL Core operation: deletes a deployment/application. */
888
+ deleteApplication: (id: string) => Promise<unknown>;
889
+ refetchPrompts: () => Promise<void>;
890
+ refetchToolsets: () => Promise<void>;
891
+ refetchSkills: () => Promise<void>;
892
+ refetchDeployments: () => Promise<void>;
893
+ /** Called after a successful delete, so the host can notify with its own entity/operation vocabulary. */
894
+ onDeleteSuccess: (item: CatalogItem) => void;
895
+ /** Localized notification copy, resolved by the host. */
896
+ labels: CatalogEditNavigationLabels;
897
+ /** Called to surface a host notification when a delete fails. */
898
+ onNotify: (notification: CatalogEditNavigationNotification) => void;
899
+ /** Opens the file picker used to upload a skill archive from the Create menu. */
900
+ triggerSkillArchivePicker: () => void;
901
+ }
902
+
903
+ /** Return value of {@link useCatalogEditNavigation}. */
904
+ export declare interface UseCatalogEditNavigationResult {
905
+ handleEdit: (item: CatalogItem) => void;
906
+ handleDelete: (item: CatalogItem) => Promise<void>;
907
+ createOptions: DropdownItem[];
908
+ }
909
+
769
910
  /**
770
911
  * Headless hook that encapsulates catalog item detail fetching.
771
912
  * Extracts the inline dispatch logic from `CatalogView` into a reusable,
@@ -813,6 +954,45 @@ export declare interface UseCatalogItemDetailsResult {
813
954
  onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
814
955
  }
815
956
 
957
+ /**
958
+ * Owns the catalog's toolset credential login/logout flow: wires the shared
959
+ * OAuth/API-key login orchestration (`useToolsetLogin`) to this host's DIAL
960
+ * Core operations, resolves each outcome to a notification and toolset
961
+ * refetch, and owns the notification copy for every credential level /
962
+ * API-key / org-fallback combination.
963
+ */
964
+ export declare const useCatalogToolsetCredentials: ({ isAdmin, toolsets, refetchToolsets, callbackPath, loginToolset, logoutToolset, getToolset, labels, onNotify, }: UseCatalogToolsetCredentialsParams) => UseCatalogToolsetCredentialsResult;
965
+
966
+ /** Parameters accepted by {@link useCatalogToolsetCredentials}. */
967
+ export declare interface UseCatalogToolsetCredentialsParams {
968
+ isAdmin: boolean;
969
+ toolsets: DialToolsetDto[];
970
+ refetchToolsets: () => Promise<void>;
971
+ /** Route the OAuth popup redirects back to once the provider completes. */
972
+ callbackPath: string;
973
+ /** Already-configured DIAL Core operation: submits credentials for one toolset. */
974
+ loginToolset: (toolsetId: string, body: ToolsetLoginBodyDto) => Promise<unknown>;
975
+ /** Already-configured DIAL Core operation: clears credentials for one toolset. */
976
+ logoutToolset: (toolsetId: string, body: ToolsetLogoutBodyDto) => Promise<unknown>;
977
+ /** Already-configured DIAL Core operation: re-reads one toolset. */
978
+ getToolset: (toolsetId: string) => Promise<DialToolsetDto>;
979
+ /** Localized notification copy, resolved by the host. */
980
+ labels: ToolsetCredentialsLabels;
981
+ /** Called to surface a host notification. */
982
+ onNotify: (notification: ToolsetCredentialsNotification) => void;
983
+ }
984
+
985
+ /** Return value of {@link useCatalogToolsetCredentials}. */
986
+ export declare interface UseCatalogToolsetCredentialsResult {
987
+ handleLogin: (item: CatalogItem, params: {
988
+ level: CredentialsLevel;
989
+ apiKey?: string;
990
+ }) => Promise<void>;
991
+ handleLogout: (item: CatalogItem, params: {
992
+ level: CredentialsLevel;
993
+ }) => Promise<void>;
994
+ }
995
+
816
996
  /**
817
997
  * Manages the set of favorited entity ids: loads on mount, applies optimistic
818
998
  * toggle with exact-inverse rollback on failure, and re-throws persistence
package/catalog.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, P as h, Q as g, R as _, S as v, T as y, U as b, V as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, b as O, c as k, d as A, f as j, g as M, h as N, i as P, j as F, k as I, l as L, m as R, n as z, o as B, p as V, q as H, r as U, s as W, t as G, u as K, v as q, w as J, x as Y, y as X, z as Z } from "./useSkillFilePreview-BYfZUJhr.js";
2
- import { n as Q, t as $ } from "./deployment-id-CxWgJTs9.js";
3
- export { H as AuthenticationType, W as CatalogPrimaryActionType, P as FavoriteEntityType, E as McpResourceKind, I as PUBLIC_SKILL_BUCKET, e as SKILL_LISTING_MAX_PAGES, F as SKILL_LISTING_PAGE_SIZE, f as SKILL_MANIFEST_MAX_BYTES, G as SkillPreviewErrorKind, p as SkillSource, q as buildApplicationMcpUrl, l as buildChatCompletionsUrl, X as buildConnectApi, w as buildDeploymentConnectApi, a as buildPromptOverview, C as buildResponsesUrl, v as buildSkillContentTree, n as buildSkillOverview, O as buildToolsetMcpUrl, T as createPublishApiClient, L as deriveAvailableTabIds, K as deriveFavoriteItems, $ as encodeDeploymentId, A as filterCatalogItemsBySelector, j as filterHiddenOwnedItems, Q as findDeploymentByIdOrReference, c as isOrganisationPromptItem, s as mapDeploymentDetailsDtoToEntityDetails, u as mapDeploymentLimitsDtoToCatalogLimits, o as mapDeploymentLimitsToInput, _ as mapDeploymentToCatalogItem, Z as mapDeploymentToolsetCredentials, b as mapEntityDetailsToCatalogDetails, d as mapPromptToCatalogItem, R as mapPublishConversationResultDto, N as mapPublishHistoryEntryDto, J as mapSkillToCatalogItem, S as mapToolsetCredentials, t as mapToolsetToCatalogItem, h as parseSkillResourceUrl, y as readSkillFileBytes, i as readSkillManifest, V as reconcileFilterTopics, k as resolveCatalogPrimaryAction, x as resolveDeploymentFolder, Y as resolveMcpResourceKind, r as resolveSkillFileDownloadPath, m as resolveSkillManifestFileId, M as toPublishEntityType, g as toPublishRuleDto, B as useCatalogItemDetails, D as useFavoriteEntitiesState, U as usePublishFolders, z as useSkillFilePreview };
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, b as k, c as A, d as j, et as M, f as N, g as P, h as F, i as I, j as L, k as R, l as z, m as B, n as V, o as H, p as U, q as W, r as G, s as K, t as q, u as J, v as Y, w as X, x as Z, y as Q, z as $ } from "./useSkillFilePreview-Dkx9F4D-.js";
2
+ import { n as ee, t as te } from "./deployment-id-CxWgJTs9.js";
3
+ export { T as AuthenticationType, z as CatalogPrimaryActionType, I as FavoriteEntityType, Q as McpResourceKind, L as PUBLIC_SKILL_BUCKET, p as SKILL_LISTING_MAX_PAGES, m as SKILL_LISTING_PAGE_SIZE, g as SKILL_MANIFEST_MAX_BYTES, q as SkillPreviewErrorKind, o as SkillSource, k as buildApplicationMcpUrl, w as buildChatCompletionsUrl, Z as buildConnectApi, E as buildDeploymentConnectApi, f as buildPromptOverview, _ as buildResponsesUrl, X as buildSkillContentTree, b as buildSkillOverview, y as buildToolsetMcpUrl, e as createPublishApiClient, j as deriveAvailableTabIds, N as deriveFavoriteItems, te as encodeDeploymentId, U as filterCatalogItemsBySelector, B as filterHiddenOwnedItems, ee as findDeploymentByIdOrReference, v as isOrganisationPromptItem, C as mapDeploymentDetailsDtoToEntityDetails, u as mapDeploymentLimitsDtoToCatalogLimits, W as mapDeploymentLimitsToInput, n as mapDeploymentToCatalogItem, S as mapDeploymentToolsetCredentials, s as mapEntityDetailsToCatalogDetails, $ as mapPromptToCatalogItem, P as mapPublishConversationResultDto, D as mapPublishHistoryEntryDto, a as mapSkillToCatalogItem, d as mapToolsetCredentials, c as mapToolsetToCatalogItem, l as parseSkillResourceUrl, i as readSkillFileBytes, h as readSkillManifest, F as reconcileFilterTopics, J as resolveCatalogPrimaryAction, x as resolveDeploymentFolder, r as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, t as resolveSkillManifestFileId, Y as toPublishEntityType, M as toPublishRuleDto, A as useCatalogEditNavigation, K as useCatalogItemDetails, H as useCatalogToolsetCredentials, O as useFavoriteEntitiesState, G as usePublishFolders, V as useSkillFilePreview };
package/conversation.d.ts CHANGED
@@ -214,6 +214,8 @@ export declare interface ConversationStreamChannel {
214
214
  ensureConnected: () => void;
215
215
  /** Resolves with a channel id, waiting for an in-flight subscribe if one isn't established yet, so a completion sent immediately after mount can still carry it. */
216
216
  waitForChannel: (timeoutMs?: number) => Promise<string | null>;
217
+ /** Notifies the host that a generation just ended (completed or errored), so it can consider disconnecting an idle channel. */
218
+ notifyGenerationSettled?: () => void;
217
219
  }
218
220
 
219
221
  /** Optional host-owned overlay generation-lifecycle notifications. Each method is independently optional. */
package/conversation.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./useToolsMenu-6HiNLoEy.js";
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./useToolsMenu-DLd2C4uO.js";
2
2
  export { S as attachmentToDto, M as attachmentsToDtos, p as buildAnnouncementSignature, c as createChatStreamApi, E as createDeploymentChangedMessage, x as createMessagePair, z as deriveConversationRowActionState, f as formatAppVersion, j as getConversationPath, C as getConversationSource, i as getLastDeploymentId, r as getLastUserMessageToolConfiguration, u as getModelIdFromConversationId, R as getQuickAppConversationStarters, P as getStarterConversationText, m as getStarterPopulateText, b as getStarterSubmitText, n as getStartersFromSchema, l as getTimeOfDayGreeting, O as hasActiveToolConfig, V as hasAnnouncementContent, t as hasStructuredAnnouncement, T as isAwaitingGenerationResume, I as isMessageChanged, d as isMessageStreaming, D as messageHasStages, e as normalizeResponseFormat, g as sanitizeAnnouncementHtml, o as sanitizeAnnouncementMessageHtml, a as sanitizeFooterHtml, s as shouldWatchForDisplayNameUpdate, h as toOverlayMessages, y as useActiveConversationSync, B as useAsyncConfirmDialog, k as useAttachmentUpload, A as useChatSettingsFormConfig, v as useConversationHandlers, L as useConversationLookupMaps, _ as useConversationPanelItems, N as useConversationStream, w as useImportFilePicker, F as useToolsMenu };
package/index.d.ts CHANGED
@@ -27,6 +27,7 @@ import { CopyItemDto } from '@epam/ai-dial-chat-api-client';
27
27
  import { CreateFolderDto } from '@epam/ai-dial-chat-api-client';
28
28
  import { CreateFolderResponseDto } from '@epam/ai-dial-chat-api-client';
29
29
  import { CreateScheduledTaskBodyDto } from '@epam/ai-dial-chat-api-client';
30
+ import { CredentialsLevel } from '@epam/ai-dial-catalog';
30
31
  import { CustomVisualizer } from '@epam/ai-dial-chat-shared';
31
32
  import type { CustomVisualizerDataLayout } from '@epam/ai-dial-chat-shared';
32
33
  import { DeleteFilesResponseDto } from '@epam/ai-dial-chat-api-client';
@@ -55,6 +56,7 @@ import { DiscardSharedItemDto } from '@epam/ai-dial-chat-api-client';
55
56
  import { DiscardSharedResponseDto } from '@epam/ai-dial-chat-api-client';
56
57
  import { Dispatch } from 'react';
57
58
  import { DisplayAttachment } from '@epam/ai-dial-chat-shared';
59
+ import { DropdownItem } from '@epam/ai-dial-ui-kit';
58
60
  import { ExportFolder } from '@epam/ai-dial-chat-shared';
59
61
  import { FileManagerColumnKey } from '@epam/ai-dial-react-file-manager';
60
62
  import { FileMetadataResponseDto } from '@epam/ai-dial-chat-api-client';
@@ -488,6 +490,52 @@ export declare interface CatalogDetailsApi {
488
490
  }, signal?: AbortSignal): Promise<SkillFileListResponseDto>;
489
491
  }
490
492
 
493
+ /** Localized copy `useCatalogEditNavigation` needs for the Create menu and delete errors. */
494
+ export declare interface CatalogEditNavigationLabels {
495
+ createQuickApp: string;
496
+ createToolset: string;
497
+ createCustomApp: string;
498
+ createSkill: string;
499
+ createSkillWriteInstructions: string;
500
+ createSkillUpload: string;
501
+ createPrompt: string;
502
+ deleteError: string;
503
+ }
504
+
505
+ /** A host notification `useCatalogEditNavigation` asks to be shown for a failed delete. */
506
+ export declare interface CatalogEditNavigationNotification {
507
+ message: string;
508
+ requestId?: string;
509
+ }
510
+
511
+ /**
512
+ * Injected editor-route URL builders, already closed over the host's own
513
+ * route paths and query-parameter scheme. The lib knows nothing about either
514
+ * — it only asks for "the URL to edit/create this kind of item".
515
+ */
516
+ export declare interface CatalogEditNavigationUrls {
517
+ /** URL to edit an existing prompt. */
518
+ buildPromptEditUrl(promptId: string): string;
519
+ /** URL to create a new prompt. */
520
+ buildPromptCreateUrl(): string;
521
+ /** URL to edit an existing skill. */
522
+ buildSkillEditUrl(skillId: string): string;
523
+ /** URL to create a new skill. */
524
+ buildSkillCreateUrl(): string;
525
+ /** URL to edit an existing toolset. */
526
+ buildToolsetEditUrl(toolsetId: string): string;
527
+ /** URL to create a new toolset. */
528
+ buildToolsetCreateUrl(): string;
529
+ /** URL to edit an existing custom (schema-less) app. */
530
+ buildCustomAppEditUrl(appId: string): string;
531
+ /** URL to create a new custom (schema-less) app. */
532
+ buildCustomAppCreateUrl(): string;
533
+ /** URL to edit an existing quick app under the given schema. */
534
+ buildQuickAppEditUrl(schemaId: string, appId: string): string;
535
+ /** URL to create a new quick app under the given schema. */
536
+ buildQuickAppCreateUrl(schemaId: string): string;
537
+ }
538
+
491
539
  /** Primary action resolved for a deployment (model, agent, toolset, or skill). */
492
540
  export declare interface CatalogPrimaryActionDeployment {
493
541
  /** Discriminant. */
@@ -687,6 +735,8 @@ export declare interface ConversationStreamChannel {
687
735
  ensureConnected: () => void;
688
736
  /** Resolves with a channel id, waiting for an in-flight subscribe if one isn't established yet, so a completion sent immediately after mount can still carry it. */
689
737
  waitForChannel: (timeoutMs?: number) => Promise<string | null>;
738
+ /** Notifies the host that a generation just ended (completed or errored), so it can consider disconnecting an idle channel. */
739
+ notifyGenerationSettled?: () => void;
690
740
  }
691
741
 
692
742
  /** Optional host-owned overlay generation-lifecycle notifications. Each method is independently optional. */
@@ -3029,6 +3079,21 @@ export declare interface ToolsetCapabilities {
3029
3079
  hasResume?: boolean;
3030
3080
  }
3031
3081
 
3082
+ /** Localized copy `useCatalogToolsetCredentials` needs for every outcome it can notify. */
3083
+ export declare interface ToolsetCredentialsLabels {
3084
+ loginSuccessTitle: string;
3085
+ loginSuccess: ToolsetCredentialsMessageLabels;
3086
+ apiKeyAddedSuccessTitle: string;
3087
+ apiKeyAddedSuccess: ToolsetCredentialsMessageLabels;
3088
+ logoutSuccessTitle: string;
3089
+ logoutSuccess: ToolsetCredentialsMessageLabels;
3090
+ apiKeyDeletedSuccessTitle: string;
3091
+ apiKeyDeletedSuccess: ToolsetCredentialsMessageLabels;
3092
+ popupBlockedError: string;
3093
+ loginFailedError: string;
3094
+ logoutFailedError: string;
3095
+ }
3096
+
3032
3097
  /** Scope the credentials submitted by a login apply to. */
3033
3098
  export declare enum ToolsetCredentialsLevel {
3034
3099
  Global = "GLOBAL",
@@ -3036,6 +3101,30 @@ export declare enum ToolsetCredentialsLevel {
3036
3101
  App = "APP"
3037
3102
  }
3038
3103
 
3104
+ /** Formats one credentials-level outcome's notification body. */
3105
+ export declare interface ToolsetCredentialsMessageLabels {
3106
+ user: (params: {
3107
+ name: string;
3108
+ version?: string;
3109
+ }) => string;
3110
+ org: (params: {
3111
+ name: string;
3112
+ version?: string;
3113
+ }) => string;
3114
+ global: (params: {
3115
+ name: string;
3116
+ version?: string;
3117
+ }) => string;
3118
+ }
3119
+
3120
+ /** A host notification `useCatalogToolsetCredentials` asks to be shown. */
3121
+ export declare interface ToolsetCredentialsNotification {
3122
+ variant: NotificationVariant;
3123
+ title?: string;
3124
+ message: string;
3125
+ requestId?: string;
3126
+ }
3127
+
3039
3128
  /** Full details payload for a toolset-type deployment. */
3040
3129
  export declare interface ToolsetEntityDetails {
3041
3130
  specification?: ToolsetSpecification;
@@ -3429,6 +3518,57 @@ export declare interface UseAttachmentValidationResult {
3429
3518
  fileAccept: string | undefined;
3430
3519
  }
3431
3520
 
3521
+ /**
3522
+ * Owns the catalog's edit/delete/create-menu navigation: routing the details
3523
+ * panel's Edit action to the right editor URL for each item type, deleting an
3524
+ * item through the endpoint its type owns and refetching/notifying on
3525
+ * completion, and building the Create dropdown's options.
3526
+ */
3527
+ export declare const useCatalogEditNavigation: ({ deployments, isCustomAppsEnabled, isSchemaAppsEnabled, isHideCustomAppCreationEnabled, isToolsetsEnabled, isPromptsEnabled, quickAppSchemaId, urls, onNavigate, deletePrompt, deleteToolset, deleteSkill, deleteApplication, refetchPrompts, refetchToolsets, refetchSkills, refetchDeployments, onDeleteSuccess, labels, onNotify, triggerSkillArchivePicker, }: UseCatalogEditNavigationParams) => UseCatalogEditNavigationResult;
3528
+
3529
+ /** Parameters accepted by {@link useCatalogEditNavigation}. */
3530
+ export declare interface UseCatalogEditNavigationParams {
3531
+ deployments: DeploymentItemDto[];
3532
+ isCustomAppsEnabled: boolean;
3533
+ isSchemaAppsEnabled: boolean;
3534
+ isHideCustomAppCreationEnabled: boolean;
3535
+ isToolsetsEnabled: boolean;
3536
+ isPromptsEnabled: boolean;
3537
+ /** The quick-app schema id resolved by `useCatalogItems`, or `undefined` when no quick-app schema exists. */
3538
+ quickAppSchemaId: string | undefined;
3539
+ /** Already-configured editor-route URL builders. */
3540
+ urls: CatalogEditNavigationUrls;
3541
+ /** Navigates the host to a URL built by `urls`. */
3542
+ onNavigate: (url: string) => void;
3543
+ /** Already-configured DIAL Core operation: deletes a personal or shared prompt. */
3544
+ deletePrompt: (id: string) => Promise<unknown>;
3545
+ /** Already-configured DIAL Core operation: deletes a toolset. */
3546
+ deleteToolset: (id: string) => Promise<unknown>;
3547
+ /** Already-configured DIAL Core operation: deletes a skill package. */
3548
+ deleteSkill: (bucket: string, path: string) => Promise<unknown>;
3549
+ /** Already-configured DIAL Core operation: deletes a deployment/application. */
3550
+ deleteApplication: (id: string) => Promise<unknown>;
3551
+ refetchPrompts: () => Promise<void>;
3552
+ refetchToolsets: () => Promise<void>;
3553
+ refetchSkills: () => Promise<void>;
3554
+ refetchDeployments: () => Promise<void>;
3555
+ /** Called after a successful delete, so the host can notify with its own entity/operation vocabulary. */
3556
+ onDeleteSuccess: (item: CatalogItem) => void;
3557
+ /** Localized notification copy, resolved by the host. */
3558
+ labels: CatalogEditNavigationLabels;
3559
+ /** Called to surface a host notification when a delete fails. */
3560
+ onNotify: (notification: CatalogEditNavigationNotification) => void;
3561
+ /** Opens the file picker used to upload a skill archive from the Create menu. */
3562
+ triggerSkillArchivePicker: () => void;
3563
+ }
3564
+
3565
+ /** Return value of {@link useCatalogEditNavigation}. */
3566
+ export declare interface UseCatalogEditNavigationResult {
3567
+ handleEdit: (item: CatalogItem) => void;
3568
+ handleDelete: (item: CatalogItem) => Promise<void>;
3569
+ createOptions: DropdownItem[];
3570
+ }
3571
+
3432
3572
  /**
3433
3573
  * Headless hook that encapsulates catalog item detail fetching.
3434
3574
  * Extracts the inline dispatch logic from `CatalogView` into a reusable,
@@ -3476,6 +3616,45 @@ export declare interface UseCatalogItemDetailsResult {
3476
3616
  onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
3477
3617
  }
3478
3618
 
3619
+ /**
3620
+ * Owns the catalog's toolset credential login/logout flow: wires the shared
3621
+ * OAuth/API-key login orchestration (`useToolsetLogin`) to this host's DIAL
3622
+ * Core operations, resolves each outcome to a notification and toolset
3623
+ * refetch, and owns the notification copy for every credential level /
3624
+ * API-key / org-fallback combination.
3625
+ */
3626
+ export declare const useCatalogToolsetCredentials: ({ isAdmin, toolsets, refetchToolsets, callbackPath, loginToolset, logoutToolset, getToolset, labels, onNotify, }: UseCatalogToolsetCredentialsParams) => UseCatalogToolsetCredentialsResult;
3627
+
3628
+ /** Parameters accepted by {@link useCatalogToolsetCredentials}. */
3629
+ export declare interface UseCatalogToolsetCredentialsParams {
3630
+ isAdmin: boolean;
3631
+ toolsets: DialToolsetDto[];
3632
+ refetchToolsets: () => Promise<void>;
3633
+ /** Route the OAuth popup redirects back to once the provider completes. */
3634
+ callbackPath: string;
3635
+ /** Already-configured DIAL Core operation: submits credentials for one toolset. */
3636
+ loginToolset: (toolsetId: string, body: ToolsetLoginBodyDto) => Promise<unknown>;
3637
+ /** Already-configured DIAL Core operation: clears credentials for one toolset. */
3638
+ logoutToolset: (toolsetId: string, body: ToolsetLogoutBodyDto) => Promise<unknown>;
3639
+ /** Already-configured DIAL Core operation: re-reads one toolset. */
3640
+ getToolset: (toolsetId: string) => Promise<DialToolsetDto>;
3641
+ /** Localized notification copy, resolved by the host. */
3642
+ labels: ToolsetCredentialsLabels;
3643
+ /** Called to surface a host notification. */
3644
+ onNotify: (notification: ToolsetCredentialsNotification) => void;
3645
+ }
3646
+
3647
+ /** Return value of {@link useCatalogToolsetCredentials}. */
3648
+ export declare interface UseCatalogToolsetCredentialsResult {
3649
+ handleLogin: (item: CatalogItem, params: {
3650
+ level: CredentialsLevel;
3651
+ apiKey?: string;
3652
+ }) => Promise<void>;
3653
+ handleLogout: (item: CatalogItem, params: {
3654
+ level: CredentialsLevel;
3655
+ }) => Promise<void>;
3656
+ }
3657
+
3479
3658
  /**
3480
3659
  * Assembles the chat-settings form config (feature flags, current values, save
3481
3660
  * handler, labels) for either an in-flight local composer or a persisted
package/index.js CHANGED
@@ -5,23 +5,23 @@ import { i as L, n as R, r as z, t as B } from "./string-utils-iBi2Y55C.js";
5
5
  import { a as V, i as H, n as U, r as W, t as G } from "./useAttachmentValidation-CkMTd5lA.js";
6
6
  import { n as K, t as q } from "./date-BeuD8G79.js";
7
7
  import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./useConversationImport-C2h1GBY4.js";
8
- import { A as re, B as ie, C as ae, D as oe, E as se, F as ce, G as le, H as ue, I as de, J as fe, K as pe, L as me, M as he, N as ge, O as _e, P as ve, Q as ye, R as be, S as xe, T as Se, U as Ce, V as we, W as Te, X as Ee, Y as De, Z as Oe, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, i as Le, j as Re, k as ze, l as Be, m as Ve, n as He, o as Ue, p as We, q as Ge, r as Ke, s as qe, t as Je, u as Ye, v as Xe, w as Ze, x as Qe, y as $e, z as et } from "./useSkillFilePreview-BYfZUJhr.js";
9
- import { n as tt, t as nt } from "./deployment-id-CxWgJTs9.js";
10
- import { n as rt, r as it, t as at } from "./toolset-id-CkxRHyU0.js";
11
- import { a as ot, c as st, i as ct, n as lt, o as ut, r as dt, s as ft, t as pt } from "./prompt-resource-Bt1I-8ri.js";
12
- import { n as mt, t as ht } from "./formatting-CZyyxBG3.js";
13
- import { a as gt, c as _t, d as vt, f as yt, h as bt, i as xt, l as St, m as Ct, n as wt, o as Tt, p as Et, r as Dt, s as Ot, t as kt, u as At } from "./skill-manifest-CCX8s4nn.js";
14
- import { A as jt, B as Mt, C as Nt, D as Pt, E as Ft, F as It, H as Lt, I as Rt, L as zt, M as Bt, N as Vt, O as Ht, P as Ut, R as Wt, S as Gt, T as Kt, V as qt, _ as Jt, a as Yt, b as Xt, c as Zt, d as Qt, f as $t, g as en, h as tn, i as nn, j as rn, k as an, l as on, m as sn, n as cn, o as ln, p as un, r as dn, s as fn, t as pn, u as mn, v as hn, w as gn, x as _n, y as vn, z as yn } from "./useToolsMenu-6HiNLoEy.js";
15
- import { C as bn, S as xn, _ as Sn, a as Cn, b as wn, c as Tn, d as En, f as Dn, g as On, h as kn, i as An, l as jn, m as Mn, n as Nn, o as Pn, p as Fn, r as In, s as Ln, t as Rn, u as zn, v as Bn, x as Vn, y as Hn } from "./useToolsetLogin-GhFtKs4D.js";
16
- import { i as Un, n as Wn, r as Gn, t as Kn } from "./scheduled-task-trigger-D9RZCk52.js";
17
- import { n as qn, t as Jn } from "./cron-weekday-B4w29eAC.js";
18
- import { a as Yn, i as Xn, n as Zn, o as Qn, r as $n, t as er } from "./useSkillFileActions-BU5PzZ_8.js";
19
- import { t as tr } from "./useSkillsState-BoLlwmzb.js";
20
- import { n as nr, t as rr } from "./useShareRecipientsCount-BgwCLKY0.js";
21
- import { t as ir } from "./useConversationScroll-CliIMnjP.js";
22
- import { t as ar } from "./useConversationSources-DKaKvjXZ.js";
23
- import { $ as or, A as sr, B as cr, C as lr, Ct as ur, D as dr, E as fr, F as pr, G as mr, H as hr, I as gr, J as _r, K as vr, L as yr, M as br, N as xr, O as Sr, P as Cr, Q as wr, R as Tr, S as Er, St as Dr, T as Or, U as kr, V as Ar, W as jr, X as Mr, Y as Nr, Z as Pr, _ as Fr, _t as Ir, a as Lr, at as Rr, b as zr, bt as Br, c as Vr, ct as Hr, d as Ur, dt as Wr, et as Gr, f as Kr, ft as qr, g as Jr, gt as Yr, h as Xr, ht as Zr, i as Qr, it as $r, j as ei, k as ti, l as ni, lt as ri, m as ii, mt as ai, n as oi, nt as si, o as ci, ot as li, p as ui, pt as di, q as fi, r as pi, rt as mi, s as hi, st as gi, t as _i, tt as vi, u as yi, ut as bi, v as xi, vt as Si, w as Ci, wt as wi, x as Ti, xt as Ei, y as Di, yt as Oi, z as ki } from "./useDialFileManagerTabConfig-DGQw8H8H.js";
24
- import { n as Ai, r as ji, t as Mi } from "./usePanelMaxWidth-BEZYuqF9.js";
25
- import { t as Ni } from "./useShareLink-xkiaxATt.js";
26
- import { useGridEditingScroll as Pi } from "@epam/ai-dial-chat-shared";
27
- export { G as AttachmentValidationErrorReason, Ge as AuthenticationType, ai as COLUMNS_WITHOUT_AUTHOR, Zr as COLUMNS_WITH_AUTHOR, Yr as CORE_PERMISSION_MAP, qe as CatalogPrimaryActionType, $ as ConversationExportMode, te as ConversationTransferErrorCode, Y as ConversationTransferWarningCode, Ir as DATE_OPTIONS, Q as DEFAULT_MAX_ARCHIVE_BYTES, Wr as DialFileManagerActionProfile, qr as DialFileManagerVariant, wi as DialFilesApiUploadMode, Kr as DownloadDestinationType, J as EXPORT_APP_NAME, Z as ExportFileNameKind, Le as FavoriteEntityType, Ei as FileManagerNotificationReason, Dr as FileNameValidationErrorReason, ur as FileOperationKind, ke as McpResourceKind, En as OAuthResourceKind, Si as PATH_SEPARATOR_REGEXP, b as PROMPT_CONTENT_MAX_LENGTH, O as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, T as PROMPT_DESCRIPTION_MAX_LENGTH, S as PROMPT_NAME_MAX_LENGTH, ze as PUBLIC_SKILL_BUCKET, x as PromptFieldError, pt as PromptSource, Oi as RESERVED_MARKER_NAME, rr as RecipientsCountStatus, wt as SKILL_FILE_UPLOAD_MAX_BYTES, re as SKILL_LISTING_MAX_PAGES, Re as SKILL_LISTING_PAGE_SIZE, Dt as SKILL_MANIFEST_FILE, he as SKILL_MANIFEST_MAX_BYTES, xt as SKILL_UPLOAD_MAX_FILES, gt as SKILL_UPLOAD_MAX_TOTAL_BYTES, $n as SkillEditorLoadState, Je as SkillPreviewErrorKind, ge as SkillSource, Dn as TOOLSET_REDIRECT_STATE_KEY, Fn as ToolsetAuthStatus, Mn as ToolsetAuthTypes, kn as ToolsetCredentialsLevel, Rn as ToolsetLoginOutcomeType, On as ToolsetOAuthCallbackQuery, Sn as ToolsetOAuthChannelControlType, Bn as ToolsetOAuthFailureReason, Hn as ToolsetOAuthInitiationResultType, wn as ToolsetOAuthResultType, Br as UPLOAD_CONCURRENCY, Un as UnsupportedTriggerReason, Vn as WithLogin, Jr as annotationToDisplayAttachment, Di as annotationToPdfCanvasContent, Jn as apSchedulerDayToJsDay, dt as appendLocaleCode, Fr as attachmentDtoToDisplayAttachment, xi as attachmentDtosToDisplayAttachments, $t as attachmentToDto, un as attachmentsToDtos, ct as buildAdditionalLocaleOptions, Wt as buildAnnouncementSignature, Xe as buildApplicationMcpUrl, fe as buildChatCompletionsUrl, $e as buildConnectApi, De as buildDeploymentConnectApi, E as buildExternalServiceScopeId, Tr as buildFromCache, p as buildPromptExportEnvelope, d as buildPromptExportFileName, ce as buildPromptOverview, h as buildPromptPath, Ee as buildResponsesUrl, wr as buildSharedItemVirtualPath, xe as buildSkillContentTree, Tt as buildSkillFilesPayload, Ot as buildSkillManifest, _t as buildSkillManifestForSubmit, St as buildSkillManifestFromFrontmatter, ae as buildSkillOverview, xn as buildToolsetAuthorizeUrl, je as buildToolsetMcpUrl, zr as clearAttachmentCache, ot as composeLocalePayload, zt as createChatStreamApi, f as createCsrfMiddleware, rn as createDeploymentChangedMessage, yr as createFilesApiClient, Qt as createMessagePair, Oe as createPublishApiClient, m as createUnauthorizedMiddleware, gr as createUploadFileWithProgress, at as decodeToolsetId, ut as decomposeLocalizedFields, di as deriveActionProfile, Be as deriveAvailableTabIds, _n as deriveConversationRowActionState, Ye as deriveFavoriteItems, or as dialCorePathToRelative, ui as dialFileToAttachment, ii as dialFilesToAttachments, Xr as dialFolderPathToAttachment, W as downloadAttachment, In as emitToolsetLoginSuccess, nt as encodeDeploymentId, rt as encodeToolsetId, ki as fetchByTab, cr as fetchForSearch, Ne as filterCatalogItemsBySelector, Pe as filterHiddenOwnedItems, tt as findDeploymentByIdOrReference, Gr as findDialFileByPath, Ar as findFirstSuccessfulCopyMoveItem, vi as findFolderByVirtualPath, Ut as formatAppVersion, ht as formatCalendarDate, q as formatDateYM, K as formatDateYMD, si as formatOperationFolderName, X as formatQuotedNameList, u as getApiErrorDetails, c as getApiErrorMessage, l as getApiErrorStatus, v as getBrowserTimezone, ln as getConversationPath, en as getConversationSource, k as getExternalServiceFallbackName, Ft as getLastDeploymentId, Pt as getLastUserMessageToolConfiguration, Vt as getModelIdFromConversationId, Nr as getParentFolderPath, gn as getQuickAppConversationStarters, N as getRemainingCharacters, fn as getStarterConversationText, Gt as getStarterPopulateText, Zt as getStarterSubmitText, Nt as getStartersFromSchema, Bt as getTimeOfDayGreeting, jn as getToolsetOAuthChannelName, bn as getToolsetRedirectUri, Ti as getUrlFileName, mi as getVirtualPathName, on as hasActiveToolConfig, yn as hasAnnouncementContent, Er as hasAttachmentTextSource, $r as hasDialFileWritePermission, Rr as hasForbiddenNameSymbols, Mt as hasStructuredAnnouncement, B as includesIgnoreCase, Pn as initiateOAuthLogin, nn as isAwaitingGenerationResume, s as isConversationNotFoundError, li as isCopyMoveDuplicateAllowed, w as isCustomAppSchema, o as isDialFileAcceptType, e as isDialFileId, H as isDownloadableAttachment, lr as isExternalSourcePreviewable, mn as isMessageChanged, Ht as isMessageStreaming, de as isOrganisationPromptItem, it as isPublicToolsetId, M as isQuickAppSchema, gi as isShareActionsAllowed, g as isValidAbsoluteUrl, D as isValidFeaturesData, At as isValidSkillRelativePath, qn as jsDayToApSchedulerDay, hr as mapCorePermissions, ue as mapDeploymentDetailsDtoToEntityDetails, pe as mapDeploymentLimitsDtoToCatalogLimits, le as mapDeploymentLimitsToInput, be as mapDeploymentToCatalogItem, et as mapDeploymentToolsetCredentials, Ce as mapEntityDetailsToCatalogDetails, kr as mapFileMetadataToDialFile, Kn as mapFormValuesToCreateBody, Wn as mapFormValuesToUpdateBody, me as mapPromptToCatalogItem, Ve as mapPublishConversationResultDto, Ie as mapPublishHistoryEntryDto, Gn as mapScheduledTaskDtoToFormValues, jr as mapSearchItem, Ze as mapSkillToCatalogItem, Te as mapToolsetCredentials, ie as mapToolsetToCatalogItem, mr as mergeCreatedFolderIntoCache, an as messageHasStages, n as mimeTypesToAttachmentExtensionLabels, i as mimeTypesToDialFileAcceptTypes, t as mimeTypesToFileAccept, vt as nameFromPath, Ln as navigateToolsetOAuthPopup, jt as normalizeResponseFormat, yt as normalizeSkillName, Hr as normalizeVirtualPath, pr as openAnnotationAttachment, Tn as openToolsetOAuthPopup, mt as padTwoDigits, C as parseExternalServiceUrl, A as parseFeaturesData, ri as parseNewFolderVirtualPath, lt as parsePromptResourceUrl, Et as parseSkillManifest, kt as parseSkillManifestDocument, ve as parseSkillResourceUrl, fi as prepareCopyItems, Ur as prepareDownloadDestination, _r as prepareMoveRenameItems, Se as readSkillFileBytes, se as readSkillManifest, We as reconcileFilterTopics, Ci as referenceAttachmentToPdfCanvasContent, Me as resolveCatalogPrimaryAction, Or as resolveCodeCanvasContent, we as resolveDeploymentFolder, Mr as resolveDialFileApiPath, r as resolveDialFileBucketAndPath, fr as resolveExternalSourceContentType, dr as resolveHtmlCanvasContent, Sr as resolveImageCanvasContent, ti as resolveJsonCanvasContent, ft as resolveLocalizedText, sr as resolveMarkdownCanvasContent, Qe as resolveMcpResourceKind, ei as resolveOoxmlCanvasContent, bi as resolveOwnerCoords, br as resolvePdfCanvasContent, a as resolveRelativeDialFilePath, oe as resolveSkillFileDownloadPath, _e as resolveSkillManifestFileId, xr as resolveTextCanvasContent, Cr as resolveVisualizerCanvasContent, R as safeDecodeURI, z as safeDecodeURIComponent, qt as sanitizeAnnouncementHtml, Lt as sanitizeAnnouncementMessageHtml, Vr as sanitizeFileName, It as sanitizeFooterHtml, P as serializePromptExport, Rt as shouldWatchForDisplayNameUpdate, Ct as skillFileBytesToBlob, Yn as skillFileToAttachment, ni as splitFileNameExtension, L as stripSurroundingSlashes, An as subscribeToolsetLoginSuccess, st as toBaseLocale, Kt as toOverlayMessages, Fe as toPublishEntityType, ye as toPublishRuleDto, yi as trimFileNameToByteLimit, bt as unpackSkillArchive, vr as updateEntry, Xt as useActiveConversationSync, vn as useAsyncConfirmDialog, V as useAttachmentAction, sn as useAttachmentUpload, U as useAttachmentValidation, Ue as useCatalogItemDetails, cn as useChatSettingsFormConfig, ee as useConversationExport, Yt as useConversationHandlers, ne as useConversationImport, hn as useConversationLookupMaps, Jt as useConversationPanelItems, ir as useConversationScroll, ar as useConversationSources, dn as useConversationStream, hi as useDialFileListing, oi as useDialFileManager, _i as useDialFileManagerTabConfig, ci as useDialFileMetadata, Lr as useDialFileMutations, Qr as useDialFileSharing, pi as useDialFileUploadBatch, Ae as useFavoriteEntitiesState, Pi as useGridEditingScroll, tn as useImportFilePicker, Cn as useOAuthCallbackCompletion, ji as usePageFileDrag, Mi as usePanelMaxWidth, y as usePromptsState, Ke as usePublishFolders, Ni as useShareLink, nr as useShareRecipientsCount, Xn as useSkillEditorLoad, Zn as useSkillEditorSubmit, er as useSkillFileActions, He as useSkillFilePreview, tr as useSkillsState, pn as useToolsMenu, Nn as useToolsetLogin, j as useUsageData, Ai as useViewportWidth, I as validatePromptContent, _ as validatePromptDescription, F as validatePromptName, Qn as validateSkillFileBatch, Pr as virtualPathToApiPath, zn as waitForToolsetOAuthResult };
8
+ import { $ as re, A as ie, B as ae, C as oe, D as se, E as ce, F as le, G as ue, H as de, I as fe, J as pe, K as me, L as he, M as ge, N as _e, O as ve, P as ye, Q as be, R as xe, S as Se, T as Ce, U as we, V as Te, W as Ee, X as De, Y as Oe, Z as ke, _ as Ae, a as je, b as Me, c as Ne, d as Pe, et as Fe, f as Ie, g as Le, h as Re, i as ze, j as Be, k as Ve, l as He, m as Ue, n as We, o as Ge, p as Ke, q as qe, r as Je, s as Ye, t as Xe, u as Ze, v as Qe, w as $e, x as et, y as tt, z as nt } from "./useSkillFilePreview-Dkx9F4D-.js";
9
+ import { n as rt, t as it } from "./deployment-id-CxWgJTs9.js";
10
+ import { C as at, S as ot, T as st, _ as ct, a as lt, b as ut, c as dt, d as ft, f as pt, g as mt, h as ht, i as gt, l as _t, m as vt, n as yt, o as bt, p as xt, r as St, s as Ct, t as wt, u as Tt, v as Et, w as Dt, x as Ot, y as kt } from "./useToolsetLogin-B05m134e.js";
11
+ import { a as At, c as jt, i as Mt, n as Nt, o as Pt, r as Ft, s as It, t as Lt } from "./prompt-resource-Bt1I-8ri.js";
12
+ import { n as Rt, t as zt } from "./formatting-CZyyxBG3.js";
13
+ import { a as Bt, c as Vt, d as Ht, f as Ut, h as Wt, i as Gt, l as Kt, m as qt, n as Jt, o as Yt, p as Xt, r as Zt, s as Qt, t as $t, u as en } from "./skill-manifest-CCX8s4nn.js";
14
+ import { A as tn, B as nn, C as rn, D as an, E as on, F as sn, H as cn, I as ln, L as un, M as dn, N as fn, O as pn, P as mn, R as hn, S as gn, T as _n, V as vn, _ as yn, a as bn, b as xn, c as Sn, d as Cn, f as wn, g as Tn, h as En, i as Dn, j as On, k as kn, l as An, m as jn, n as Mn, o as Nn, p as Pn, r as Fn, s as In, t as Ln, u as Rn, v as zn, w as Bn, x as Vn, y as Hn, z as Un } from "./useToolsMenu-DLd2C4uO.js";
15
+ import { t as Wn } from "./useOAuthCallbackCompletion-CvyTKLER.js";
16
+ import { i as Gn, n as Kn, r as qn, t as Jn } from "./scheduled-task-trigger-D9RZCk52.js";
17
+ import { n as Yn, t as Xn } from "./cron-weekday-B4w29eAC.js";
18
+ import { a as Zn, i as Qn, n as $n, o as er, r as tr, t as nr } from "./useSkillFileActions-BU5PzZ_8.js";
19
+ import { t as rr } from "./useSkillsState-BoLlwmzb.js";
20
+ import { n as ir, t as ar } from "./useShareRecipientsCount-BgwCLKY0.js";
21
+ import { t as or } from "./useConversationScroll-CliIMnjP.js";
22
+ import { t as sr } from "./useConversationSources-DKaKvjXZ.js";
23
+ import { $ as cr, A as lr, B as ur, C as dr, Ct as fr, D as pr, E as mr, F as hr, G as gr, H as _r, I as vr, J as yr, K as br, L as xr, M as Sr, N as Cr, O as wr, P as Tr, Q as Er, R as Dr, S as Or, St as kr, T as Ar, U as jr, V as Mr, W as Nr, X as Pr, Y as Fr, Z as Ir, _ as Lr, _t as Rr, a as zr, at as Br, b as Vr, bt as Hr, c as Ur, ct as Wr, d as Gr, dt as Kr, et as qr, f as Jr, ft as Yr, g as Xr, gt as Zr, h as Qr, ht as $r, i as ei, it as ti, j as ni, k as ri, l as ii, lt as ai, m as oi, mt as si, n as ci, nt as li, o as ui, ot as di, p as fi, pt as pi, q as mi, r as hi, rt as gi, s as _i, st as vi, t as yi, tt as bi, u as xi, ut as Si, v as Ci, vt as wi, w as Ti, wt as Ei, x as Di, xt as Oi, y as ki, yt as Ai, z as ji } from "./useDialFileManagerTabConfig-DGQw8H8H.js";
24
+ import { n as Mi, r as Ni, t as Pi } from "./usePanelMaxWidth-BEZYuqF9.js";
25
+ import { t as Fi } from "./useShareLink-xkiaxATt.js";
26
+ import { useGridEditingScroll as Ii } from "@epam/ai-dial-chat-shared";
27
+ export { G as AttachmentValidationErrorReason, Oe as AuthenticationType, si as COLUMNS_WITHOUT_AUTHOR, $r as COLUMNS_WITH_AUTHOR, Zr as CORE_PERMISSION_MAP, He as CatalogPrimaryActionType, $ as ConversationExportMode, te as ConversationTransferErrorCode, Y as ConversationTransferWarningCode, Rr as DATE_OPTIONS, Q as DEFAULT_MAX_ARCHIVE_BYTES, Kr as DialFileManagerActionProfile, Yr as DialFileManagerVariant, Ei as DialFilesApiUploadMode, Jr as DownloadDestinationType, J as EXPORT_APP_NAME, Z as ExportFileNameKind, ze as FavoriteEntityType, Oi as FileManagerNotificationReason, kr as FileNameValidationErrorReason, fr as FileOperationKind, tt as McpResourceKind, pt as OAuthResourceKind, wi as PATH_SEPARATOR_REGEXP, b as PROMPT_CONTENT_MAX_LENGTH, O as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, T as PROMPT_DESCRIPTION_MAX_LENGTH, S as PROMPT_NAME_MAX_LENGTH, Be as PUBLIC_SKILL_BUCKET, x as PromptFieldError, Lt as PromptSource, Ai as RESERVED_MARKER_NAME, ar as RecipientsCountStatus, Jt as SKILL_FILE_UPLOAD_MAX_BYTES, ge as SKILL_LISTING_MAX_PAGES, _e as SKILL_LISTING_PAGE_SIZE, Zt as SKILL_MANIFEST_FILE, ye as SKILL_MANIFEST_MAX_BYTES, Gt as SKILL_UPLOAD_MAX_FILES, Bt as SKILL_UPLOAD_MAX_TOTAL_BYTES, tr as SkillEditorLoadState, Xe as SkillPreviewErrorKind, le as SkillSource, xt as TOOLSET_REDIRECT_STATE_KEY, vt as ToolsetAuthStatus, ht as ToolsetAuthTypes, mt as ToolsetCredentialsLevel, wt as ToolsetLoginOutcomeType, ct as ToolsetOAuthCallbackQuery, Et as ToolsetOAuthChannelControlType, kt as ToolsetOAuthFailureReason, ut as ToolsetOAuthInitiationResultType, Ot as ToolsetOAuthResultType, Hr as UPLOAD_CONCURRENCY, Gn as UnsupportedTriggerReason, ot as WithLogin, Xr as annotationToDisplayAttachment, ki as annotationToPdfCanvasContent, Xn as apSchedulerDayToJsDay, Ft as appendLocaleCode, Lr as attachmentDtoToDisplayAttachment, Ci as attachmentDtosToDisplayAttachments, wn as attachmentToDto, Pn as attachmentsToDtos, Mt as buildAdditionalLocaleOptions, hn as buildAnnouncementSignature, Me as buildApplicationMcpUrl, De as buildChatCompletionsUrl, et as buildConnectApi, ke as buildDeploymentConnectApi, E as buildExternalServiceScopeId, Dr as buildFromCache, p as buildPromptExportEnvelope, d as buildPromptExportFileName, he as buildPromptOverview, h as buildPromptPath, be as buildResponsesUrl, Er as buildSharedItemVirtualPath, $e as buildSkillContentTree, Yt as buildSkillFilesPayload, Qt as buildSkillManifest, Vt as buildSkillManifestForSubmit, Kt as buildSkillManifestFromFrontmatter, Ce as buildSkillOverview, bt as buildToolsetAuthorizeUrl, Se as buildToolsetMcpUrl, Vr as clearAttachmentCache, At as composeLocalePayload, un as createChatStreamApi, f as createCsrfMiddleware, On as createDeploymentChangedMessage, xr as createFilesApiClient, Cn as createMessagePair, re as createPublishApiClient, m as createUnauthorizedMiddleware, vr as createUploadFileWithProgress, at as decodeToolsetId, Pt as decomposeLocalizedFields, pi as deriveActionProfile, Pe as deriveAvailableTabIds, Vn as deriveConversationRowActionState, Ie as deriveFavoriteItems, cr as dialCorePathToRelative, fi as dialFileToAttachment, oi as dialFilesToAttachments, Qr as dialFolderPathToAttachment, W as downloadAttachment, Tt as emitToolsetLoginSuccess, it as encodeDeploymentId, Dt as encodeToolsetId, ji as fetchByTab, ur as fetchForSearch, Ke as filterCatalogItemsBySelector, Ue as filterHiddenOwnedItems, rt as findDeploymentByIdOrReference, qr as findDialFileByPath, Mr as findFirstSuccessfulCopyMoveItem, bi as findFolderByVirtualPath, mn as formatAppVersion, zt as formatCalendarDate, q as formatDateYM, K as formatDateYMD, li as formatOperationFolderName, X as formatQuotedNameList, u as getApiErrorDetails, c as getApiErrorMessage, l as getApiErrorStatus, v as getBrowserTimezone, Nn as getConversationPath, Tn as getConversationSource, k as getExternalServiceFallbackName, on as getLastDeploymentId, an as getLastUserMessageToolConfiguration, fn as getModelIdFromConversationId, Fr as getParentFolderPath, Bn as getQuickAppConversationStarters, N as getRemainingCharacters, In as getStarterConversationText, gn as getStarterPopulateText, Sn as getStarterSubmitText, rn as getStartersFromSchema, dn as getTimeOfDayGreeting, dt as getToolsetOAuthChannelName, Ct as getToolsetRedirectUri, Di as getUrlFileName, gi as getVirtualPathName, An as hasActiveToolConfig, Un as hasAnnouncementContent, Or as hasAttachmentTextSource, ti as hasDialFileWritePermission, Br as hasForbiddenNameSymbols, nn as hasStructuredAnnouncement, B as includesIgnoreCase, St as initiateOAuthLogin, Dn as isAwaitingGenerationResume, s as isConversationNotFoundError, di as isCopyMoveDuplicateAllowed, w as isCustomAppSchema, o as isDialFileAcceptType, e as isDialFileId, H as isDownloadableAttachment, dr as isExternalSourcePreviewable, Rn as isMessageChanged, pn as isMessageStreaming, xe as isOrganisationPromptItem, st as isPublicToolsetId, M as isQuickAppSchema, vi as isShareActionsAllowed, g as isValidAbsoluteUrl, D as isValidFeaturesData, en as isValidSkillRelativePath, Yn as jsDayToApSchedulerDay, _r as mapCorePermissions, Ee as mapDeploymentDetailsDtoToEntityDetails, pe as mapDeploymentLimitsDtoToCatalogLimits, qe as mapDeploymentLimitsToInput, ae as mapDeploymentToCatalogItem, Te as mapDeploymentToolsetCredentials, ue as mapEntityDetailsToCatalogDetails, jr as mapFileMetadataToDialFile, Jn as mapFormValuesToCreateBody, Kn as mapFormValuesToUpdateBody, nt as mapPromptToCatalogItem, Le as mapPublishConversationResultDto, Ae as mapPublishHistoryEntryDto, qn as mapScheduledTaskDtoToFormValues, Nr as mapSearchItem, ce as mapSkillToCatalogItem, me as mapToolsetCredentials, de as mapToolsetToCatalogItem, gr as mergeCreatedFolderIntoCache, kn as messageHasStages, n as mimeTypesToAttachmentExtensionLabels, i as mimeTypesToDialFileAcceptTypes, t as mimeTypesToFileAccept, Ht as nameFromPath, gt as navigateToolsetOAuthPopup, tn as normalizeResponseFormat, Ut as normalizeSkillName, Wr as normalizeVirtualPath, hr as openAnnotationAttachment, lt as openToolsetOAuthPopup, Rt as padTwoDigits, C as parseExternalServiceUrl, A as parseFeaturesData, ai as parseNewFolderVirtualPath, Nt as parsePromptResourceUrl, Xt as parseSkillManifest, $t as parseSkillManifestDocument, fe as parseSkillResourceUrl, mi as prepareCopyItems, Gr as prepareDownloadDestination, yr as prepareMoveRenameItems, se as readSkillFileBytes, ve as readSkillManifest, Re as reconcileFilterTopics, Ti as referenceAttachmentToPdfCanvasContent, Ze as resolveCatalogPrimaryAction, Ar as resolveCodeCanvasContent, we as resolveDeploymentFolder, Pr as resolveDialFileApiPath, r as resolveDialFileBucketAndPath, mr as resolveExternalSourceContentType, pr as resolveHtmlCanvasContent, wr as resolveImageCanvasContent, ri as resolveJsonCanvasContent, It as resolveLocalizedText, lr as resolveMarkdownCanvasContent, oe as resolveMcpResourceKind, ni as resolveOoxmlCanvasContent, Si as resolveOwnerCoords, Sr as resolvePdfCanvasContent, a as resolveRelativeDialFilePath, Ve as resolveSkillFileDownloadPath, ie as resolveSkillManifestFileId, Cr as resolveTextCanvasContent, Tr as resolveVisualizerCanvasContent, R as safeDecodeURI, z as safeDecodeURIComponent, vn as sanitizeAnnouncementHtml, cn as sanitizeAnnouncementMessageHtml, Ur as sanitizeFileName, sn as sanitizeFooterHtml, P as serializePromptExport, ln as shouldWatchForDisplayNameUpdate, qt as skillFileBytesToBlob, Zn as skillFileToAttachment, ii as splitFileNameExtension, L as stripSurroundingSlashes, ft as subscribeToolsetLoginSuccess, jt as toBaseLocale, _n as toOverlayMessages, Qe as toPublishEntityType, Fe as toPublishRuleDto, xi as trimFileNameToByteLimit, Wt as unpackSkillArchive, br as updateEntry, xn as useActiveConversationSync, Hn as useAsyncConfirmDialog, V as useAttachmentAction, jn as useAttachmentUpload, U as useAttachmentValidation, Ne as useCatalogEditNavigation, Ye as useCatalogItemDetails, Ge as useCatalogToolsetCredentials, Mn as useChatSettingsFormConfig, ee as useConversationExport, bn as useConversationHandlers, ne as useConversationImport, zn as useConversationLookupMaps, yn as useConversationPanelItems, or as useConversationScroll, sr as useConversationSources, Fn as useConversationStream, _i as useDialFileListing, ci as useDialFileManager, yi as useDialFileManagerTabConfig, ui as useDialFileMetadata, zr as useDialFileMutations, ei as useDialFileSharing, hi as useDialFileUploadBatch, je as useFavoriteEntitiesState, Ii as useGridEditingScroll, En as useImportFilePicker, Wn as useOAuthCallbackCompletion, Ni as usePageFileDrag, Pi as usePanelMaxWidth, y as usePromptsState, Je as usePublishFolders, Fi as useShareLink, ir as useShareRecipientsCount, Qn as useSkillEditorLoad, $n as useSkillEditorSubmit, nr as useSkillFileActions, We as useSkillFilePreview, rr as useSkillsState, Ln as useToolsMenu, yt as useToolsetLogin, j as useUsageData, Mi as useViewportWidth, I as validatePromptContent, _ as validatePromptDescription, F as validatePromptName, er as validateSkillFileBatch, Ir as virtualPathToApiPath, _t as waitForToolsetOAuthResult };
package/oauth.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./toolset-id-CkxRHyU0.js";
2
- import { C as r, S as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C, x as w, y as T } from "./useToolsetLogin-GhFtKs4D.js";
3
- export { l as OAuthResourceKind, u as TOOLSET_REDIRECT_STATE_KEY, v as ToolsetAuthStatus, h as ToolsetAuthTypes, f as ToolsetCredentialsLevel, x as ToolsetLoginOutcomeType, d as ToolsetOAuthCallbackQuery, a as ToolsetOAuthChannelControlType, C as ToolsetOAuthFailureReason, T as ToolsetOAuthInitiationResultType, s as ToolsetOAuthResultType, w as WithLogin, i as buildToolsetAuthorizeUrl, n as decodeToolsetId, y as emitToolsetLoginSuccess, e as encodeToolsetId, m as getToolsetOAuthChannelName, r as getToolsetRedirectUri, _ as initiateOAuthLogin, t as isPublicToolsetId, b as navigateToolsetOAuthPopup, c as openToolsetOAuthPopup, p as subscribeToolsetLoginSuccess, o as useOAuthCallbackCompletion, g as useToolsetLogin, S as waitForToolsetOAuthResult };
1
+ import { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./useToolsetLogin-B05m134e.js";
2
+ import { t as T } from "./useOAuthCallbackCompletion-CvyTKLER.js";
3
+ export { c as OAuthResourceKind, g as TOOLSET_REDIRECT_STATE_KEY, p as ToolsetAuthStatus, u as ToolsetAuthTypes, l as ToolsetCredentialsLevel, y as ToolsetLoginOutcomeType, r as ToolsetOAuthCallbackQuery, x as ToolsetOAuthChannelControlType, w as ToolsetOAuthFailureReason, a as ToolsetOAuthInitiationResultType, C as ToolsetOAuthResultType, t as WithLogin, h as buildToolsetAuthorizeUrl, e as decodeToolsetId, b as emitToolsetLoginSuccess, S as encodeToolsetId, o as getToolsetOAuthChannelName, v as getToolsetRedirectUri, _ as initiateOAuthLogin, n as isPublicToolsetId, d as navigateToolsetOAuthPopup, i as openToolsetOAuthPopup, s as subscribeToolsetLoginSuccess, T as useOAuthCallbackCompletion, m as useToolsetLogin, f as waitForToolsetOAuthResult };