@epam/ai-dial-chat-hooks 1.1.0-dev.393 → 1.1.0-dev.395
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 +180 -0
- package/catalog.js +3 -3
- package/index.d.ts +177 -0
- package/index.js +20 -20
- package/oauth.js +3 -3
- package/package.json +14 -14
- package/useOAuthCallbackCompletion-CvyTKLER.js +93 -0
- package/{useSkillFilePreview-BYfZUJhr.js → useSkillFilePreview-Dkx9F4D-.js} +530 -291
- package/useToolsetLogin-B05m134e.js +195 -0
- package/toolset-id-CkxRHyU0.js +0 -10
- package/useToolsetLogin-GhFtKs4D.js +0 -276
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 {
|
|
2
|
-
import { n as
|
|
3
|
-
export {
|
|
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/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. */
|
|
@@ -3029,6 +3077,21 @@ export declare interface ToolsetCapabilities {
|
|
|
3029
3077
|
hasResume?: boolean;
|
|
3030
3078
|
}
|
|
3031
3079
|
|
|
3080
|
+
/** Localized copy `useCatalogToolsetCredentials` needs for every outcome it can notify. */
|
|
3081
|
+
export declare interface ToolsetCredentialsLabels {
|
|
3082
|
+
loginSuccessTitle: string;
|
|
3083
|
+
loginSuccess: ToolsetCredentialsMessageLabels;
|
|
3084
|
+
apiKeyAddedSuccessTitle: string;
|
|
3085
|
+
apiKeyAddedSuccess: ToolsetCredentialsMessageLabels;
|
|
3086
|
+
logoutSuccessTitle: string;
|
|
3087
|
+
logoutSuccess: ToolsetCredentialsMessageLabels;
|
|
3088
|
+
apiKeyDeletedSuccessTitle: string;
|
|
3089
|
+
apiKeyDeletedSuccess: ToolsetCredentialsMessageLabels;
|
|
3090
|
+
popupBlockedError: string;
|
|
3091
|
+
loginFailedError: string;
|
|
3092
|
+
logoutFailedError: string;
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3032
3095
|
/** Scope the credentials submitted by a login apply to. */
|
|
3033
3096
|
export declare enum ToolsetCredentialsLevel {
|
|
3034
3097
|
Global = "GLOBAL",
|
|
@@ -3036,6 +3099,30 @@ export declare enum ToolsetCredentialsLevel {
|
|
|
3036
3099
|
App = "APP"
|
|
3037
3100
|
}
|
|
3038
3101
|
|
|
3102
|
+
/** Formats one credentials-level outcome's notification body. */
|
|
3103
|
+
export declare interface ToolsetCredentialsMessageLabels {
|
|
3104
|
+
user: (params: {
|
|
3105
|
+
name: string;
|
|
3106
|
+
version?: string;
|
|
3107
|
+
}) => string;
|
|
3108
|
+
org: (params: {
|
|
3109
|
+
name: string;
|
|
3110
|
+
version?: string;
|
|
3111
|
+
}) => string;
|
|
3112
|
+
global: (params: {
|
|
3113
|
+
name: string;
|
|
3114
|
+
version?: string;
|
|
3115
|
+
}) => string;
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
/** A host notification `useCatalogToolsetCredentials` asks to be shown. */
|
|
3119
|
+
export declare interface ToolsetCredentialsNotification {
|
|
3120
|
+
variant: NotificationVariant;
|
|
3121
|
+
title?: string;
|
|
3122
|
+
message: string;
|
|
3123
|
+
requestId?: string;
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3039
3126
|
/** Full details payload for a toolset-type deployment. */
|
|
3040
3127
|
export declare interface ToolsetEntityDetails {
|
|
3041
3128
|
specification?: ToolsetSpecification;
|
|
@@ -3429,6 +3516,57 @@ export declare interface UseAttachmentValidationResult {
|
|
|
3429
3516
|
fileAccept: string | undefined;
|
|
3430
3517
|
}
|
|
3431
3518
|
|
|
3519
|
+
/**
|
|
3520
|
+
* Owns the catalog's edit/delete/create-menu navigation: routing the details
|
|
3521
|
+
* panel's Edit action to the right editor URL for each item type, deleting an
|
|
3522
|
+
* item through the endpoint its type owns and refetching/notifying on
|
|
3523
|
+
* completion, and building the Create dropdown's options.
|
|
3524
|
+
*/
|
|
3525
|
+
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;
|
|
3526
|
+
|
|
3527
|
+
/** Parameters accepted by {@link useCatalogEditNavigation}. */
|
|
3528
|
+
export declare interface UseCatalogEditNavigationParams {
|
|
3529
|
+
deployments: DeploymentItemDto[];
|
|
3530
|
+
isCustomAppsEnabled: boolean;
|
|
3531
|
+
isSchemaAppsEnabled: boolean;
|
|
3532
|
+
isHideCustomAppCreationEnabled: boolean;
|
|
3533
|
+
isToolsetsEnabled: boolean;
|
|
3534
|
+
isPromptsEnabled: boolean;
|
|
3535
|
+
/** The quick-app schema id resolved by `useCatalogItems`, or `undefined` when no quick-app schema exists. */
|
|
3536
|
+
quickAppSchemaId: string | undefined;
|
|
3537
|
+
/** Already-configured editor-route URL builders. */
|
|
3538
|
+
urls: CatalogEditNavigationUrls;
|
|
3539
|
+
/** Navigates the host to a URL built by `urls`. */
|
|
3540
|
+
onNavigate: (url: string) => void;
|
|
3541
|
+
/** Already-configured DIAL Core operation: deletes a personal or shared prompt. */
|
|
3542
|
+
deletePrompt: (id: string) => Promise<unknown>;
|
|
3543
|
+
/** Already-configured DIAL Core operation: deletes a toolset. */
|
|
3544
|
+
deleteToolset: (id: string) => Promise<unknown>;
|
|
3545
|
+
/** Already-configured DIAL Core operation: deletes a skill package. */
|
|
3546
|
+
deleteSkill: (bucket: string, path: string) => Promise<unknown>;
|
|
3547
|
+
/** Already-configured DIAL Core operation: deletes a deployment/application. */
|
|
3548
|
+
deleteApplication: (id: string) => Promise<unknown>;
|
|
3549
|
+
refetchPrompts: () => Promise<void>;
|
|
3550
|
+
refetchToolsets: () => Promise<void>;
|
|
3551
|
+
refetchSkills: () => Promise<void>;
|
|
3552
|
+
refetchDeployments: () => Promise<void>;
|
|
3553
|
+
/** Called after a successful delete, so the host can notify with its own entity/operation vocabulary. */
|
|
3554
|
+
onDeleteSuccess: (item: CatalogItem) => void;
|
|
3555
|
+
/** Localized notification copy, resolved by the host. */
|
|
3556
|
+
labels: CatalogEditNavigationLabels;
|
|
3557
|
+
/** Called to surface a host notification when a delete fails. */
|
|
3558
|
+
onNotify: (notification: CatalogEditNavigationNotification) => void;
|
|
3559
|
+
/** Opens the file picker used to upload a skill archive from the Create menu. */
|
|
3560
|
+
triggerSkillArchivePicker: () => void;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
/** Return value of {@link useCatalogEditNavigation}. */
|
|
3564
|
+
export declare interface UseCatalogEditNavigationResult {
|
|
3565
|
+
handleEdit: (item: CatalogItem) => void;
|
|
3566
|
+
handleDelete: (item: CatalogItem) => Promise<void>;
|
|
3567
|
+
createOptions: DropdownItem[];
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3432
3570
|
/**
|
|
3433
3571
|
* Headless hook that encapsulates catalog item detail fetching.
|
|
3434
3572
|
* Extracts the inline dispatch logic from `CatalogView` into a reusable,
|
|
@@ -3476,6 +3614,45 @@ export declare interface UseCatalogItemDetailsResult {
|
|
|
3476
3614
|
onLoadSkillDetailsFile(fileId: string): Promise<SkillFileContent>;
|
|
3477
3615
|
}
|
|
3478
3616
|
|
|
3617
|
+
/**
|
|
3618
|
+
* Owns the catalog's toolset credential login/logout flow: wires the shared
|
|
3619
|
+
* OAuth/API-key login orchestration (`useToolsetLogin`) to this host's DIAL
|
|
3620
|
+
* Core operations, resolves each outcome to a notification and toolset
|
|
3621
|
+
* refetch, and owns the notification copy for every credential level /
|
|
3622
|
+
* API-key / org-fallback combination.
|
|
3623
|
+
*/
|
|
3624
|
+
export declare const useCatalogToolsetCredentials: ({ isAdmin, toolsets, refetchToolsets, callbackPath, loginToolset, logoutToolset, getToolset, labels, onNotify, }: UseCatalogToolsetCredentialsParams) => UseCatalogToolsetCredentialsResult;
|
|
3625
|
+
|
|
3626
|
+
/** Parameters accepted by {@link useCatalogToolsetCredentials}. */
|
|
3627
|
+
export declare interface UseCatalogToolsetCredentialsParams {
|
|
3628
|
+
isAdmin: boolean;
|
|
3629
|
+
toolsets: DialToolsetDto[];
|
|
3630
|
+
refetchToolsets: () => Promise<void>;
|
|
3631
|
+
/** Route the OAuth popup redirects back to once the provider completes. */
|
|
3632
|
+
callbackPath: string;
|
|
3633
|
+
/** Already-configured DIAL Core operation: submits credentials for one toolset. */
|
|
3634
|
+
loginToolset: (toolsetId: string, body: ToolsetLoginBodyDto) => Promise<unknown>;
|
|
3635
|
+
/** Already-configured DIAL Core operation: clears credentials for one toolset. */
|
|
3636
|
+
logoutToolset: (toolsetId: string, body: ToolsetLogoutBodyDto) => Promise<unknown>;
|
|
3637
|
+
/** Already-configured DIAL Core operation: re-reads one toolset. */
|
|
3638
|
+
getToolset: (toolsetId: string) => Promise<DialToolsetDto>;
|
|
3639
|
+
/** Localized notification copy, resolved by the host. */
|
|
3640
|
+
labels: ToolsetCredentialsLabels;
|
|
3641
|
+
/** Called to surface a host notification. */
|
|
3642
|
+
onNotify: (notification: ToolsetCredentialsNotification) => void;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
/** Return value of {@link useCatalogToolsetCredentials}. */
|
|
3646
|
+
export declare interface UseCatalogToolsetCredentialsResult {
|
|
3647
|
+
handleLogin: (item: CatalogItem, params: {
|
|
3648
|
+
level: CredentialsLevel;
|
|
3649
|
+
apiKey?: string;
|
|
3650
|
+
}) => Promise<void>;
|
|
3651
|
+
handleLogout: (item: CatalogItem, params: {
|
|
3652
|
+
level: CredentialsLevel;
|
|
3653
|
+
}) => Promise<void>;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3479
3656
|
/**
|
|
3480
3657
|
* Assembles the chat-settings form config (feature flags, current values, save
|
|
3481
3658
|
* 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 {
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
13
|
-
import { a as
|
|
14
|
-
import { A as
|
|
15
|
-
import {
|
|
16
|
-
import { i as
|
|
17
|
-
import { n as
|
|
18
|
-
import { a as
|
|
19
|
-
import { t as
|
|
20
|
-
import { n as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { n as
|
|
25
|
-
import { t as
|
|
26
|
-
import { useGridEditingScroll as
|
|
27
|
-
export { G as AttachmentValidationErrorReason,
|
|
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-6HiNLoEy.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 {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-hooks",
|
|
3
3
|
"description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.395",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -87,20 +87,20 @@
|
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"react": "^19.2.6",
|
|
90
|
-
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.
|
|
91
|
-
"@epam/ai-dial-attachment-input": "1.1.0-dev.
|
|
92
|
-
"@epam/ai-dial-catalog": "1.1.0-dev.
|
|
93
|
-
"@epam/ai-dial-chat-api-client": "1.1.0-dev.
|
|
94
|
-
"@epam/ai-dial-chat-overlay": "1.1.0-dev.
|
|
95
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
96
|
-
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.
|
|
97
|
-
"@epam/ai-dial-publish-panel": "1.1.0-dev.
|
|
98
|
-
"@epam/ai-dial-quotations": "1.1.0-dev.
|
|
90
|
+
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.395",
|
|
91
|
+
"@epam/ai-dial-attachment-input": "1.1.0-dev.395",
|
|
92
|
+
"@epam/ai-dial-catalog": "1.1.0-dev.395",
|
|
93
|
+
"@epam/ai-dial-chat-api-client": "1.1.0-dev.395",
|
|
94
|
+
"@epam/ai-dial-chat-overlay": "1.1.0-dev.395",
|
|
95
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.395",
|
|
96
|
+
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.395",
|
|
97
|
+
"@epam/ai-dial-publish-panel": "1.1.0-dev.395",
|
|
98
|
+
"@epam/ai-dial-quotations": "1.1.0-dev.395",
|
|
99
99
|
"@epam/ai-dial-react-file-manager": "*",
|
|
100
|
-
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.
|
|
101
|
-
"@epam/ai-dial-share": "1.1.0-dev.
|
|
102
|
-
"@epam/ai-dial-skill-editor": "1.1.0-dev.
|
|
103
|
-
"@epam/ai-dial-source-panel": "1.1.0-dev.
|
|
100
|
+
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.395",
|
|
101
|
+
"@epam/ai-dial-share": "1.1.0-dev.395",
|
|
102
|
+
"@epam/ai-dial-skill-editor": "1.1.0-dev.395",
|
|
103
|
+
"@epam/ai-dial-source-panel": "1.1.0-dev.395",
|
|
104
104
|
"@epam/ai-dial-ui-kit": "*",
|
|
105
105
|
"@epam/pdf-highlighter-kit": ">=0.0.14"
|
|
106
106
|
},
|