@epam/ai-dial-chat-hooks 1.4.0-dev.12 → 1.4.0-dev.126
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/api-error/map-api-error.d.ts +10 -0
- package/api-error/map-api-error.d.ts.map +1 -0
- package/api-error/map-api-error.js +11 -0
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.js +35 -44
- package/catalog/create-publish-api.d.ts +28 -1
- package/catalog/create-publish-api.d.ts.map +1 -1
- package/catalog/create-publish-api.js +21 -1
- package/catalog/entity-details.d.ts +5 -2
- package/catalog/entity-details.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.d.ts +4 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.js +15 -13
- package/catalog/publish-dependency-icons.d.ts +22 -0
- package/catalog/publish-dependency-icons.d.ts.map +1 -0
- package/catalog/publish-dependency-icons.js +11 -0
- package/catalog/publish-target-taken.d.ts +31 -0
- package/catalog/publish-target-taken.d.ts.map +1 -0
- package/catalog/publish-target-taken.js +14 -0
- package/catalog/publish.d.ts +15 -2
- package/catalog/publish.d.ts.map +1 -1
- package/catalog/publish.js +15 -4
- package/catalog/resource-name-conflict.d.ts.map +1 -1
- package/catalog/resource-name-conflict.js +19 -22
- package/catalog/resource-save-adapter.d.ts +7 -2
- package/catalog/resource-save-adapter.d.ts.map +1 -1
- package/catalog/resource-save-adapters.d.ts +32 -7
- package/catalog/resource-save-adapters.d.ts.map +1 -1
- package/catalog/resource-save-adapters.js +47 -41
- package/catalog/resource-save.d.ts +17 -9
- package/catalog/resource-save.d.ts.map +1 -1
- package/catalog/resource-save.js +34 -25
- package/catalog/save-destination-root.d.ts +12 -0
- package/catalog/save-destination-root.d.ts.map +1 -0
- package/catalog/save-destination-root.js +6 -0
- package/catalog/use-publish-dependencies.d.ts +19 -0
- package/catalog/use-publish-dependencies.d.ts.map +1 -0
- package/catalog/use-publish-dependencies.js +25 -0
- package/catalog/use-publish-target-guard.d.ts +45 -0
- package/catalog/use-publish-target-guard.d.ts.map +1 -0
- package/catalog/use-publish-target-guard.js +18 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -2
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
- package/catalog/usePublishFolders/usePublishFolders.js +29 -29
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +27 -6
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -1
- package/catalog/useResourceSavePanel/useResourceSavePanel.js +184 -118
- package/catalog/useVersionHistory/useVersionHistory.d.ts +38 -0
- package/catalog/useVersionHistory/useVersionHistory.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistory.js +49 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts +30 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistorySection.js +31 -0
- package/catalog/version-history.d.ts +42 -0
- package/catalog/version-history.d.ts.map +1 -0
- package/catalog/version-history.js +27 -0
- package/catalog.js +39 -31
- package/conversation/announcement-message.d.ts +12 -0
- package/conversation/announcement-message.d.ts.map +1 -1
- package/conversation/announcement-message.js +16 -10
- package/conversation/conversation-list.d.ts +7 -1
- package/conversation/conversation-list.d.ts.map +1 -1
- package/conversation/conversation-list.js +11 -2
- package/conversation/conversation-transfer/zip-export.d.ts +1 -1
- package/conversation/conversation-transfer/zip-export.d.ts.map +1 -1
- package/conversation/conversation-transfer/zip-export.js +7 -8
- package/conversation/conversation-transfer/zip-import.d.ts.map +1 -1
- package/conversation/conversation-transfer/zip-import.js +8 -9
- package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
- package/conversation/useConversationExport/useConversationExport.js +3 -1
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
- package/conversation/useConversationStream/generation-resume.js +119 -96
- package/conversation.js +44 -44
- package/entry-points/catalog.d.ts +7 -0
- package/entry-points/catalog.d.ts.map +1 -1
- package/entry-points/file-manager.d.ts +1 -0
- package/entry-points/file-manager.d.ts.map +1 -1
- package/entry-points/project.d.ts +5 -0
- package/entry-points/project.d.ts.map +1 -1
- package/entry-points/scheduled-tasks.d.ts +2 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -1
- package/entry-points/usage-limits.d.ts +1 -0
- package/entry-points/usage-limits.d.ts.map +1 -1
- package/entry-points/utils.d.ts +7 -0
- package/entry-points/utils.d.ts.map +1 -1
- package/file-manager.js +33 -32
- package/files/annotation.d.ts +3 -3
- package/files/annotation.d.ts.map +1 -1
- package/files/annotation.js +12 -11
- package/files/attachment-canvas.d.ts +1 -1
- package/files/attachment-canvas.d.ts.map +1 -1
- package/files/attachment-canvas.js +135 -135
- package/files/attachment-type-labels.d.ts +3 -0
- package/files/attachment-type-labels.d.ts.map +1 -0
- package/files/attachment-type-labels.js +12 -0
- package/files/attachment-types.d.ts +0 -2
- package/files/attachment-types.d.ts.map +1 -1
- package/files/attachment-types.js +7 -14
- package/files/dial-file.d.ts +24 -0
- package/files/dial-file.d.ts.map +1 -1
- package/files/dial-file.js +35 -5
- package/index.d.ts +23 -0
- package/index.d.ts.map +1 -1
- package/index.js +266 -244
- package/org-units/models.d.ts +11 -0
- package/org-units/models.d.ts.map +1 -0
- package/org-units/org-unit-guards.d.ts +98 -0
- package/org-units/org-unit-guards.d.ts.map +1 -0
- package/org-units/org-unit-guards.js +41 -0
- package/org-units/types.d.ts +14 -0
- package/org-units/types.d.ts.map +1 -0
- package/org-units/types.js +6 -0
- package/org-units/useFolderGuards/useFolderGuards.d.ts +31 -0
- package/org-units/useFolderGuards/useFolderGuards.d.ts.map +1 -0
- package/org-units/useFolderGuards/useFolderGuards.js +50 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts +34 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -0
- package/org-units/useOrgUnits/useOrgUnits.js +54 -0
- package/package.json +19 -19
- package/project/project-conversation-data-source.js +4 -4
- package/project/project-sharing-client.d.ts +8 -0
- package/project/project-sharing-client.d.ts.map +1 -0
- package/project/project-sharing-client.js +11 -0
- package/project/project-sharing.d.ts +28 -0
- package/project/project-sharing.d.ts.map +1 -0
- package/project/project-sharing.js +22 -0
- package/project/use-pinned-project-chats.d.ts +4 -2
- package/project/use-pinned-project-chats.d.ts.map +1 -1
- package/project/use-pinned-project-chats.js +152 -96
- package/project/use-project-conversations.d.ts.map +1 -1
- package/project/use-project-conversations.js +2 -2
- package/project/use-project-remove-from-list.d.ts +30 -0
- package/project/use-project-remove-from-list.d.ts.map +1 -0
- package/project/use-project-remove-from-list.js +39 -0
- package/project/use-project-revoke-access.d.ts +15 -0
- package/project/use-project-revoke-access.d.ts.map +1 -0
- package/project/use-project-revoke-access.js +32 -0
- package/project/use-project-share-recipients.d.ts +7 -0
- package/project/use-project-share-recipients.d.ts.map +1 -0
- package/project/use-project-share-recipients.js +36 -0
- package/project/use-projects.d.ts +1 -0
- package/project/use-projects.d.ts.map +1 -1
- package/project/use-projects.js +2 -1
- package/project.js +7 -2
- package/scheduled-task/scheduled-task-description.d.ts +19 -13
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-description.js +39 -55
- package/scheduled-task/scheduled-task-display.d.ts +67 -6
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-display.js +55 -43
- package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -5
- package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-next-occurrence.js +16 -16
- package/scheduled-task/scheduled-task-time-format.d.ts +36 -0
- package/scheduled-task/scheduled-task-time-format.d.ts.map +1 -0
- package/scheduled-task/scheduled-task-time-format.js +34 -0
- package/scheduled-task/scheduled-task-trigger.d.ts +6 -4
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-trigger.js +92 -115
- package/scheduled-tasks.js +15 -13
- package/shared/timezones.d.ts +30 -0
- package/shared/timezones.d.ts.map +1 -0
- package/shared/timezones.js +102 -0
- package/skill/skill-archive.d.ts.map +1 -1
- package/skill/skill-archive.js +6 -7
- package/skill/skill.d.ts +2 -2
- package/skill/skill.d.ts.map +1 -1
- package/skill/skill.js +33 -34
- package/skill/useSkillEditorLoad.js +1 -1
- package/skill/useSkillEditorSubmit.d.ts +4 -1
- package/skill/useSkillEditorSubmit.d.ts.map +1 -1
- package/skill/useSkillEditorSubmit.js +125 -121
- package/usage/map-usage-data-to-dashboard.d.ts +22 -1
- package/usage/map-usage-data-to-dashboard.d.ts.map +1 -1
- package/usage/map-usage-data-to-dashboard.js +33 -2
- package/usage/spending-limits-mode.d.ts +37 -0
- package/usage/spending-limits-mode.d.ts.map +1 -0
- package/usage/spending-limits-mode.js +15 -0
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +6 -2
- package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +4 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -1
- package/usage/useUsageLimitBanner/useUsageLimitBanner.js +55 -47
- package/usage-limits.js +6 -5
- package/usage.js +3 -3
- package/utils.js +28 -22
- package/shared/cron-day-of-month.d.ts +0 -21
- package/shared/cron-day-of-month.d.ts.map +0 -1
- package/shared/cron-day-of-month.js +0 -13
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `operation` with a rejection replaced by the error `mapError` builds
|
|
3
|
+
* for it. A rejection `mapError` has no replacement for is rethrown unchanged.
|
|
4
|
+
* Reading an API error body is asynchronous, so the mapping lives here rather
|
|
5
|
+
* than in a synchronous predicate.
|
|
6
|
+
* @param operation - the request whose rejection may need a typed error
|
|
7
|
+
* @param mapError - resolves the replacement error, or `undefined` to keep the original
|
|
8
|
+
*/
|
|
9
|
+
export declare const withApiErrorMapping: <Args extends unknown[], Result>(operation: (...args: Args) => Promise<Result>, mapError: (error: unknown) => Promise<unknown>) => (...args: Args) => Promise<Result>;
|
|
10
|
+
//# sourceMappingURL=map-api-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-api-error.d.ts","sourceRoot":"","sources":["../../src/api-error/map-api-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC7B,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,EAC7B,WAAW,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,EAC7C,UAAU,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,MAEzC,GAAG,MAAM,IAAI,KAAG,OAAO,CAAC,MAAM,CAQpC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DisplayAttachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
/** Resolves a DIAL Core file id to a downloadable URL. Host-owned — encodes the app's own file-download
|
|
2
|
+
/** Resolves a DIAL Core file id or project file id to a downloadable URL, or `undefined` when the host serves none. Host-owned — encodes the app's own file-download endpoints. */
|
|
3
3
|
export type ResolveDownloadUrl = (fileId: string) => string | undefined;
|
|
4
4
|
/** Parameters for {@link useAttachmentAction}. */
|
|
5
5
|
export interface UseAttachmentActionParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAWnC,mLAAmL;AACnL,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;AAExE,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,kGAAkG;IAClG,qBAAqB,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAChE;AASD,oIAAoI;AACpI,eAAO,MAAM,wBAAwB,GACnC,YAAY,iBAAiB,KAC5B,OACkE,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,iBAAiB,EAC7B,oBAAoB,kBAAkB,KACrC,OA0BF,CAAC;AAiCF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAEjC,yBAAyB,KAAG,yBAmC9B,CAAC"}
|
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
import { isDialFileId as e, isDialFolderId as t } from "../../files/dial-file.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { isDialFileId as e, isDialFolderId as t, isDialProjectFileId as n, isDialStoredFileId as r } from "../../files/dial-file.js";
|
|
2
|
+
import { openAnnotationAttachment as i } from "../../files/annotation.js";
|
|
3
|
+
import { AttachmentContentType as a, useAttachmentCanvas as o } from "@epam/ai-dial-attachment-canvas";
|
|
4
|
+
import { MIMEType as s, base64ToBlob as c, ensureDownloadFilename as l, triggerAnchorDownload as u, triggerBlobDownload as d } from "@epam/ai-dial-chat-shared";
|
|
5
|
+
import { parsePdfPageReference as f } from "@epam/ai-dial-quotations";
|
|
6
|
+
import { useCallback as p } from "react";
|
|
6
7
|
//#region src/attachment/useAttachmentAction/useAttachmentAction.ts
|
|
7
|
-
var
|
|
8
|
-
let { url: n, name: r, contentType:
|
|
9
|
-
if (
|
|
8
|
+
var m = (r) => r != null && (e(r) && !t(r) || n(r)), h = (e) => m(e.url) || e.data != null, g = (e, t) => {
|
|
9
|
+
let { url: n, name: r, contentType: i, data: a } = e;
|
|
10
|
+
if (m(n)) {
|
|
10
11
|
let e = t(n);
|
|
11
|
-
return e != null && (
|
|
12
|
+
return e != null && (u(e, l(r, n, i)), !0);
|
|
12
13
|
}
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
let i = r.
|
|
18
|
-
if (e(i)) {
|
|
19
|
-
let e = n(i);
|
|
20
|
-
if (e == null) return;
|
|
21
|
-
let r = t.title ?? i.split("/").pop() ?? "";
|
|
22
|
-
s(e, o(r, i, t.type));
|
|
23
|
-
} else window.open(r, "_blank", "noopener,noreferrer");
|
|
24
|
-
}, h = (t, r) => {
|
|
25
|
-
let i = l(t.url);
|
|
14
|
+
return a != null && (d(c(a, i || s.Plain), l(r, n, i)), !0);
|
|
15
|
+
}, _ = (e, t) => {
|
|
16
|
+
let n = f(e.url);
|
|
17
|
+
if (n == null) return null;
|
|
18
|
+
let i = r(n.baseUrl) ? t(n.baseUrl) : n.baseUrl;
|
|
26
19
|
if (i == null) return null;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type: n.Pdf,
|
|
31
|
-
url: a
|
|
20
|
+
if (n.page == null) return {
|
|
21
|
+
type: a.Pdf,
|
|
22
|
+
url: i
|
|
32
23
|
};
|
|
33
|
-
let o = `reference-page-${
|
|
24
|
+
let o = `reference-page-${n.page}`;
|
|
34
25
|
return {
|
|
35
|
-
type:
|
|
36
|
-
url:
|
|
26
|
+
type: a.Pdf,
|
|
27
|
+
url: i,
|
|
37
28
|
highlights: [{
|
|
38
29
|
id: o,
|
|
39
30
|
bboxes: [{
|
|
40
|
-
page:
|
|
31
|
+
page: n.page,
|
|
41
32
|
x1: 0,
|
|
42
33
|
y1: 0,
|
|
43
34
|
x2: 0,
|
|
@@ -50,22 +41,22 @@ var d = (n) => n != null && e(n) && !t(n), f = (e) => d(e.url) || e.data != null
|
|
|
50
41
|
}],
|
|
51
42
|
selectedHighlightId: o
|
|
52
43
|
};
|
|
53
|
-
},
|
|
54
|
-
let { openCanvas: t } =
|
|
55
|
-
return { handleAttachmentClick:
|
|
56
|
-
let { url: r, referenceUrl:
|
|
57
|
-
if (r != null ||
|
|
58
|
-
|
|
44
|
+
}, v = ({ resolveDownloadUrl: e }) => {
|
|
45
|
+
let { openCanvas: t } = o();
|
|
46
|
+
return { handleAttachmentClick: p((n) => {
|
|
47
|
+
let { url: r, referenceUrl: a, data: o, name: s } = n;
|
|
48
|
+
if (r != null || o != null) {
|
|
49
|
+
g(n, e);
|
|
59
50
|
return;
|
|
60
51
|
}
|
|
61
|
-
if (
|
|
62
|
-
let
|
|
52
|
+
if (a == null) return;
|
|
53
|
+
let c = {
|
|
63
54
|
type: n.contentType,
|
|
64
|
-
url:
|
|
65
|
-
title:
|
|
66
|
-
},
|
|
67
|
-
|
|
55
|
+
url: a,
|
|
56
|
+
title: s
|
|
57
|
+
}, l = _(c, e);
|
|
58
|
+
l ? t(l, s) : i(c, e);
|
|
68
59
|
}, [t, e]) };
|
|
69
60
|
};
|
|
70
61
|
//#endregion
|
|
71
|
-
export {
|
|
62
|
+
export { g as downloadAttachment, h as isDownloadableAttachment, v as useAttachmentAction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
1
|
+
import { ApplicationValuesDependenciesRequestDto, CopyCatalogEntityToOrgUnitDto, PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, PublishTargetCheckDto, ResourceIdResponseDto, ResourceDependenciesResultDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { PublicationRule } from '@epam/ai-dial-publish-panel';
|
|
3
3
|
import { CatalogPublishEntityType } from './publish';
|
|
4
4
|
/**
|
|
@@ -11,6 +11,12 @@ export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto
|
|
|
11
11
|
export interface PublishApiClient {
|
|
12
12
|
/** Submits a publication request for one catalog entity into `folderPath`. */
|
|
13
13
|
publishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: PublishCatalogEntityDto) => Promise<PublishResultDto>;
|
|
14
|
+
/**
|
|
15
|
+
* Copies one own catalog entity into an org-unit folder of the public bucket
|
|
16
|
+
* without a publication request; DIAL Core decides the right and its 403 and
|
|
17
|
+
* 409 reject the promise. Resolves to the id of the copy.
|
|
18
|
+
*/
|
|
19
|
+
copyCatalogEntityToOrgUnit: (entityType: CatalogPublishEntityType, entityId: string, body: CopyCatalogEntityToOrgUnitDto) => Promise<ResourceIdResponseDto>;
|
|
14
20
|
/**
|
|
15
21
|
* Submits a removal request for one already-published folder of a catalog
|
|
16
22
|
* entity. The removal takes effect only after an administrator approves it,
|
|
@@ -19,10 +25,31 @@ export interface PublishApiClient {
|
|
|
19
25
|
unpublishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: UnpublishCatalogEntityDto) => Promise<UnpublishResultDto>;
|
|
20
26
|
/** Reads the folders one catalog entity is already published to. */
|
|
21
27
|
getCatalogPublishHistory: (entityType: CatalogPublishEntityType, entityId: string) => Promise<PublishHistoryEntryDto[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Reads the direct dependencies of one catalog entity that are not in the
|
|
30
|
+
* public bucket. Advisory: the backend answers an empty list when it cannot
|
|
31
|
+
* resolve them.
|
|
32
|
+
*/
|
|
33
|
+
getCatalogPublishDependencies: (entityType: CatalogPublishEntityType, entityId: string) => Promise<ResourceDependenciesResultDto>;
|
|
34
|
+
/**
|
|
35
|
+
* Reads the private dependencies of application property values that are not
|
|
36
|
+
* saved yet, from the values alone; the backend reads no application. Advisory
|
|
37
|
+
* like {@link PublishApiClient.getCatalogPublishDependencies}.
|
|
38
|
+
*/
|
|
39
|
+
getApplicationValuesPublishDependencies: (body: ApplicationValuesDependenciesRequestDto) => Promise<ResourceDependenciesResultDto>;
|
|
22
40
|
/** Reads whether the caller may request removal of one catalog entity. */
|
|
23
41
|
getCatalogUnpublishAccess: (entityType: CatalogPublishEntityType, entityId: string) => Promise<UnpublishAccessDto>;
|
|
42
|
+
/** Reads the publication status of every saved version of one application or toolset. */
|
|
43
|
+
getCatalogVersionStatuses: (entityType: CatalogPublishEntityType, entityId: string) => Promise<VersionStatusEntryDto[]>;
|
|
24
44
|
/** Reads a destination folder's already-configured access rules. */
|
|
25
45
|
getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Reads whether the published copy of one catalog entity would land on a path
|
|
48
|
+
* that is already taken, for `folderPath` (plain, `/`-joined) and `version`.
|
|
49
|
+
* Advisory: a copy hidden from the caller, or still pending approval, is not
|
|
50
|
+
* found, and the publish request still answers `409` for it.
|
|
51
|
+
*/
|
|
52
|
+
checkPublishTarget: (entityType: CatalogPublishEntityType, entityId: string, folderPath: string, version?: string) => Promise<PublishTargetCheckDto>;
|
|
26
53
|
}
|
|
27
54
|
/**
|
|
28
55
|
* Wraps the generated `PublishApi` in the positional-argument surface the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"create-publish-api.d.ts","source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C,CAAC;IAC5C;;;;OAIG;IACH,uCAAuC,EAAE,CACvC,IAAI,EAAE,uCAAuC,KAC1C,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,0EAA0E;IAC1E,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,yFAAyF;IACzF,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACtC,oEAAoE;IACpE,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IACpE;;;;;OAKG;IACH,kBAAkB,EAAE,CAClB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,KACb,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrC;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,UAAU,KACrB,gBA6CD,CAAC"}
|
|
@@ -9,6 +9,11 @@ var e = (e) => ({
|
|
|
9
9
|
entityId: n,
|
|
10
10
|
publishCatalogEntityDto: r
|
|
11
11
|
}),
|
|
12
|
+
copyCatalogEntityToOrgUnit: (t, n, r) => e.copyCatalogEntityToOrgUnit({
|
|
13
|
+
entityType: t,
|
|
14
|
+
entityId: n,
|
|
15
|
+
copyCatalogEntityToOrgUnitDto: r
|
|
16
|
+
}),
|
|
12
17
|
unpublishCatalogEntity: (t, n, r) => e.unpublishCatalogEntity({
|
|
13
18
|
entityType: t,
|
|
14
19
|
entityId: n,
|
|
@@ -18,14 +23,29 @@ var e = (e) => ({
|
|
|
18
23
|
entityType: t,
|
|
19
24
|
entityId: n
|
|
20
25
|
}),
|
|
26
|
+
getCatalogPublishDependencies: (t, n) => e.getCatalogPublishDependencies({
|
|
27
|
+
entityType: t,
|
|
28
|
+
entityId: n
|
|
29
|
+
}),
|
|
30
|
+
getApplicationValuesPublishDependencies: (t) => e.getApplicationValuesPublishDependencies({ applicationValuesDependenciesRequestDto: t }),
|
|
21
31
|
getCatalogUnpublishAccess: (t, n) => e.getCatalogUnpublishAccess({
|
|
22
32
|
entityType: t,
|
|
23
33
|
entityId: n
|
|
24
34
|
}),
|
|
35
|
+
getCatalogVersionStatuses: (t, n) => e.getCatalogVersionStatuses({
|
|
36
|
+
entityType: t,
|
|
37
|
+
entityId: n
|
|
38
|
+
}),
|
|
25
39
|
getPublishRules: async (t) => (await e.getPublishRules({ folderPath: t })).rules.map(({ function: e, ...t }) => ({
|
|
26
40
|
...t,
|
|
27
41
|
function: e
|
|
28
|
-
}))
|
|
42
|
+
})),
|
|
43
|
+
checkPublishTarget: (t, n, r, i) => e.getCatalogPublishTarget({
|
|
44
|
+
entityType: t,
|
|
45
|
+
entityId: n,
|
|
46
|
+
folderPath: r,
|
|
47
|
+
version: i
|
|
48
|
+
})
|
|
29
49
|
});
|
|
30
50
|
//#endregion
|
|
31
51
|
export { t as createPublishApiClient, e as toPublishRuleDto };
|
|
@@ -22,6 +22,7 @@ export interface ModelCapabilities {
|
|
|
22
22
|
}
|
|
23
23
|
/** Catalog-facing specification fields for a model deployment. */
|
|
24
24
|
export interface ModelSpecification {
|
|
25
|
+
/** Provider that hosts the model, from DIAL Core's top-level model `provider`, e.g. `Azure`. */
|
|
25
26
|
provider?: string;
|
|
26
27
|
vendor?: string;
|
|
27
28
|
license?: string;
|
|
@@ -32,6 +33,10 @@ export interface ModelSpecification {
|
|
|
32
33
|
inputTypes?: string[];
|
|
33
34
|
hostedBy?: string;
|
|
34
35
|
createdAt?: number;
|
|
36
|
+
/** Date the model is deprecated but still served, as DIAL Core sends it (documented as `YYYY-MM-DD`). */
|
|
37
|
+
deprecationDate?: string;
|
|
38
|
+
/** Date the provider stops serving the model, as DIAL Core sends it (documented as `YYYY-MM-DD`). */
|
|
39
|
+
endOfService?: string;
|
|
35
40
|
}
|
|
36
41
|
/** One priced unit for a model deployment. */
|
|
37
42
|
export interface ModelPriceRow {
|
|
@@ -62,7 +67,6 @@ export interface ModelEntityDetails {
|
|
|
62
67
|
}
|
|
63
68
|
/** Catalog-facing specification fields for an agent (application) deployment. */
|
|
64
69
|
export interface AgentSpecification {
|
|
65
|
-
provider?: string;
|
|
66
70
|
vendor?: string;
|
|
67
71
|
license?: string;
|
|
68
72
|
knowledgeCutoffDate?: string;
|
|
@@ -109,7 +113,6 @@ export interface ToolsetAuthStatusDetails {
|
|
|
109
113
|
}
|
|
110
114
|
/** Catalog-facing specification fields for a toolset. */
|
|
111
115
|
export interface ToolsetSpecification {
|
|
112
|
-
provider?: string;
|
|
113
116
|
vendor?: string;
|
|
114
117
|
license?: string;
|
|
115
118
|
knowledgeCutoffDate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,MAAM,YAAY;IAClB,KAAK,UAAU;CAChB;AAUD,oDAAoD;AACpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE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
38
|
+
/** Default: `'Deprecation date'`. */
|
|
39
|
+
deprecationDate: string;
|
|
40
|
+
/** Default: `'End of service'`. */
|
|
41
|
+
endOfService: string;
|
|
38
42
|
/** Default: `'Context window'`. */
|
|
39
43
|
contextWindow: string;
|
|
40
44
|
/** Default: `'Max output tokens'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAGL,KAAK,qBAAqB,EAI1B,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AA+B1B;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mGAAmG;AACnG,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAGL,KAAK,qBAAqB,EAI1B,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AA+B1B;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,QAAQ,EA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qBASF,CAAC"}
|
|
@@ -25,6 +25,8 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
25
25
|
parameters: "Parameters",
|
|
26
26
|
hostedBy: "Hosted by",
|
|
27
27
|
releaseDate: "Release date",
|
|
28
|
+
deprecationDate: "Deprecation date",
|
|
29
|
+
endOfService: "End of service",
|
|
28
30
|
contextWindow: "Context window",
|
|
29
31
|
maxOutputTokens: "Max output tokens",
|
|
30
32
|
inputModalities: "Input modalities",
|
|
@@ -79,6 +81,12 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
79
81
|
}), a.createdAt != null && o.push({
|
|
80
82
|
label: t.releaseDate,
|
|
81
83
|
value: n(a.createdAt)
|
|
84
|
+
}), a.deprecationDate != null && o.push({
|
|
85
|
+
label: t.deprecationDate,
|
|
86
|
+
value: l(a.deprecationDate)
|
|
87
|
+
}), a.endOfService != null && o.push({
|
|
88
|
+
label: t.endOfService,
|
|
89
|
+
value: l(a.endOfService)
|
|
82
90
|
}), a.contextWindowTokens != null && o.push({
|
|
83
91
|
label: t.contextWindow,
|
|
84
92
|
value: c(a.contextWindowTokens)
|
|
@@ -144,10 +152,7 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
144
152
|
let r = [];
|
|
145
153
|
if (e.specification != null) {
|
|
146
154
|
let { specification: i } = e, a = [];
|
|
147
|
-
i.
|
|
148
|
-
label: t.provider,
|
|
149
|
-
value: i.provider
|
|
150
|
-
}), i.vendor != null && a.push({
|
|
155
|
+
i.vendor != null && a.push({
|
|
151
156
|
label: t.vendor,
|
|
152
157
|
value: i.vendor
|
|
153
158
|
}), i.license != null && a.push({
|
|
@@ -233,9 +238,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
233
238
|
i.authentication != null && a.push({
|
|
234
239
|
label: t.authentication,
|
|
235
240
|
value: i.authentication
|
|
236
|
-
}), i.provider != null && a.push({
|
|
237
|
-
label: t.provider,
|
|
238
|
-
value: i.provider
|
|
239
241
|
}), i.vendor != null && a.push({
|
|
240
242
|
label: t.vendor,
|
|
241
243
|
value: i.vendor
|
|
@@ -356,13 +358,13 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
356
358
|
unit: t
|
|
357
359
|
} : void 0;
|
|
358
360
|
}, I = (e) => {
|
|
359
|
-
let { limits: t, pricing: n, features: r, catalogProperties: i, owner: a, inputAttachmentTypes: o, defaultMaxTokens: s, createdAt: c } = e.modelDetails ?? {},
|
|
361
|
+
let { limits: t, pricing: n, features: r, catalogProperties: i, owner: a, inputAttachmentTypes: o, defaultMaxTokens: s, createdAt: c, provider: l, deprecationDate: u, endOfService: d } = e.modelDetails ?? {}, f = t != null || i != null || a != null || c != null || l != null || u != null || d != null || (o?.length ?? 0) > 0;
|
|
360
362
|
return {
|
|
361
363
|
type: "MODEL",
|
|
362
364
|
data: {
|
|
363
365
|
capabilities: O(r),
|
|
364
|
-
specification:
|
|
365
|
-
provider:
|
|
366
|
+
specification: f ? {
|
|
367
|
+
provider: l,
|
|
366
368
|
vendor: i?.vendor,
|
|
367
369
|
license: i?.license,
|
|
368
370
|
knowledgeCutoffDate: i?.knowledgeCutoffDate,
|
|
@@ -371,7 +373,9 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
371
373
|
maxOutputTokens: t?.maxCompletionTokens ?? s,
|
|
372
374
|
inputTypes: o,
|
|
373
375
|
hostedBy: a,
|
|
374
|
-
createdAt: c
|
|
376
|
+
createdAt: c,
|
|
377
|
+
deprecationDate: u,
|
|
378
|
+
endOfService: d
|
|
375
379
|
} : void 0,
|
|
376
380
|
pricing: F(n),
|
|
377
381
|
api: { modelId: e.id }
|
|
@@ -384,7 +388,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
384
388
|
data: {
|
|
385
389
|
capabilities: O(i),
|
|
386
390
|
specification: s ? {
|
|
387
|
-
provider: a?.provider,
|
|
388
391
|
vendor: a?.vendor,
|
|
389
392
|
license: a?.license,
|
|
390
393
|
knowledgeCutoffDate: a?.knowledgeCutoffDate,
|
|
@@ -416,7 +419,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
416
419
|
capabilities: O(t?.features),
|
|
417
420
|
specification: t == null ? void 0 : {
|
|
418
421
|
authentication: R(n) ? n : void 0,
|
|
419
|
-
provider: t.catalogProperties?.provider,
|
|
420
422
|
vendor: t.catalogProperties?.vendor,
|
|
421
423
|
license: t.catalogProperties?.license,
|
|
422
424
|
knowledgeCutoffDate: t.catalogProperties?.knowledgeCutoffDate,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeploymentItemDto, DialToolsetDto, ResourceDependencyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** What {@link createPublishDependencyIconResolver} looks icons up in. */
|
|
3
|
+
export interface PublishDependencyIconSources {
|
|
4
|
+
/** The deployments the host has already loaded. */
|
|
5
|
+
deployments: DeploymentItemDto[];
|
|
6
|
+
/** The toolsets the host has already loaded. */
|
|
7
|
+
toolsets: DialToolsetDto[];
|
|
8
|
+
/** Turns a deployment's or toolset's raw `iconUrl` into a displayable URL. Host-owned. */
|
|
9
|
+
resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Builds the lookup that gives a publish dependency the icon of the entity it
|
|
13
|
+
* names, from lists the host already holds, so no extra request is made. Only
|
|
14
|
+
* applications and toolsets have an icon; a prompt, a skill, a file, or an
|
|
15
|
+
* entity the host has not loaded gets none, and the row falls back to initials.
|
|
16
|
+
* Ids are compared in their normalized form, so a differently percent-encoded
|
|
17
|
+
* id still matches.
|
|
18
|
+
* @param sources - the loaded lists and the host's icon-URL resolver
|
|
19
|
+
* @returns a function from a dependency entry to its icon URL, if any
|
|
20
|
+
*/
|
|
21
|
+
export declare const createPublishDependencyIconResolver: ({ deployments, toolsets, resolveIconUrl }: PublishDependencyIconSources) => (dto: ResourceDependencyDto) => string | undefined;
|
|
22
|
+
//# sourceMappingURL=publish-dependency-icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-dependency-icons.d.ts","sourceRoot":"","sources":["../../src/catalog/publish-dependency-icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAMvC,0EAA0E;AAC1E,MAAM,WAAW,4BAA4B;IAC3C,mDAAmD;IACnD,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,gDAAgD;IAChD,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,0FAA0F;IAC1F,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;CACrE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,GAC7C,2CAA2C,4BAA4B,MACvE,KAAK,qBAAqB,KAAG,MAAM,GAAG,SAetC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { findDeploymentByIdOrReference as e, normalizeDeploymentId as t } from "./deployment-id.js";
|
|
2
|
+
//#region src/catalog/publish-dependency-icons.ts
|
|
3
|
+
var n = ({ deployments: n, toolsets: r, resolveIconUrl: i }) => (a) => {
|
|
4
|
+
if (a.type === "application") return i(e(n, a.id)?.iconUrl);
|
|
5
|
+
if (a.type === "toolset") {
|
|
6
|
+
let e = t(a.id);
|
|
7
|
+
return i(r.find((n) => t(n.id) === e)?.iconUrl);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as createPublishDependencyIconResolver };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ApiErrorDetails } from '../api-error/api-error';
|
|
2
|
+
/**
|
|
3
|
+
* A publish rejected because the published path already holds another resource
|
|
4
|
+
* (`409` with code `target-exists`). Thrown by {@link wrapPublishTargetTaken} so
|
|
5
|
+
* a synchronous predicate can recognise it.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PublishTargetTakenError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* @param cause - the rejection of the generated-client call
|
|
10
|
+
*/
|
|
11
|
+
constructor(cause: unknown);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Whether `error` is the publish endpoint's `409` for a taken target.
|
|
15
|
+
* @param error - the rejection of a generated-client call
|
|
16
|
+
*/
|
|
17
|
+
export declare const isPublishTargetTakenResponse: (error: unknown) => Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the details of a failed publish describe the endpoint's `409` for an
|
|
20
|
+
* application that is already being published (code `publish-in-progress`).
|
|
21
|
+
* @param details - the result of `getApiErrorDetails` for the rejection
|
|
22
|
+
*/
|
|
23
|
+
export declare const isPublishInProgressDetails: ({ status, code, }: Pick<ApiErrorDetails, "status" | "code">) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Returns `publish` rejecting a taken-target `409` as a {@link PublishTargetTakenError}
|
|
26
|
+
* and every other failure unchanged. Reading the error body is asynchronous, so the
|
|
27
|
+
* conversion happens here, before `usePublishFlow`'s synchronous predicate sees it.
|
|
28
|
+
* @param publish - the host's publish request
|
|
29
|
+
*/
|
|
30
|
+
export declare const wrapPublishTargetTaken: <Args extends unknown[], Result>(publish: (...args: Args) => Promise<Result>) => (...args: Args) => Promise<Result>;
|
|
31
|
+
//# sourceMappingURL=publish-target-taken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-target-taken.d.ts","sourceRoot":"","sources":["../../src/catalog/publish-target-taken.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;IAChD;;OAEG;gBACS,KAAK,EAAE,OAAO;CAI3B;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,OAAO,OAAO,KACb,OAAO,CAAC,OAAO,CAGjB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,mBAGxC,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,KAAG,OACoB,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,EACnE,SAAS,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,uCAM1C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getApiErrorDetails as e } from "../api-error/api-error.js";
|
|
2
|
+
import { withApiErrorMapping as t } from "../api-error/map-api-error.js";
|
|
3
|
+
import { PublishConflictCode as n } from "@epam/ai-dial-chat-api-client";
|
|
4
|
+
//#region src/catalog/publish-target-taken.ts
|
|
5
|
+
var r = class extends Error {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super("The published path is already taken", { cause: e }), this.name = "PublishTargetTakenError";
|
|
8
|
+
}
|
|
9
|
+
}, i = async (t) => {
|
|
10
|
+
let { status: r, code: i } = await e(t);
|
|
11
|
+
return r === 409 && i === n.TargetExists;
|
|
12
|
+
}, a = ({ status: e, code: t }) => e === 409 && t === n.PublishInProgress, o = (e) => t(e, async (e) => await i(e) ? new r(e) : void 0);
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as PublishTargetTakenError, a as isPublishInProgressDetails, i as isPublishTargetTakenResponse, o as wrapPublishTargetTaken };
|
package/catalog/publish.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PublishConversationResultDto, PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
1
|
+
import { PublishConversationResultDto, PublishHistoryEntryDto, ResourceDependencyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
3
|
-
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
3
|
+
import { PublishDependency, PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
4
4
|
/**
|
|
5
5
|
* The publish API's entity-type path param values. Re-declared as a plain
|
|
6
6
|
* string-literal union rather than importing the generated
|
|
@@ -10,6 +10,8 @@ import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
|
10
10
|
export type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill' | 'project';
|
|
11
11
|
/** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
|
|
12
12
|
export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
|
|
13
|
+
/** Whether a catalog entity type has saved versions, and so a Versions history section. */
|
|
14
|
+
export declare const isVersionedCatalogEntityType: (type: CatalogEntityType) => boolean;
|
|
13
15
|
/**
|
|
14
16
|
* Whether a catalog entity id addresses the shared `public` bucket
|
|
15
17
|
* (`{resourceType}/public/{folder…}/{name}`), i.e. the id names a published
|
|
@@ -32,4 +34,15 @@ export declare const getPublicCatalogEntityFolderPath: (entityId: string) => str
|
|
|
32
34
|
export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
|
|
33
35
|
/** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
|
|
34
36
|
export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
|
|
37
|
+
/**
|
|
38
|
+
* Maps a publish-dependencies API response entry to the publish panel's
|
|
39
|
+
* `PublishDependency` model. The two `type` sets hold the same string values;
|
|
40
|
+
* the enum is only a type here so this module takes no runtime dependency on the
|
|
41
|
+
* optional `@epam/ai-dial-publish-panel` peer. A file whose url ends with `/` is
|
|
42
|
+
* a folder attachment.
|
|
43
|
+
* @param dto - one entry of a publish-dependencies response
|
|
44
|
+
* @param resolveIconUrl - the host's lookup of a displayable icon URL for the entry, e.g. from
|
|
45
|
+
* {@link createPublishDependencyIconResolver}; omitted when the host shows no icons
|
|
46
|
+
*/
|
|
47
|
+
export declare const mapResourceDependencyDto: (dto: ResourceDependencyDto, resolveIconUrl?: (dto: ResourceDependencyDto) => string | undefined) => PublishDependency;
|
|
35
48
|
//# sourceMappingURL=publish.d.ts.map
|
package/catalog/publish.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAiB,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EACV,iBAAiB,EAEjB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAGrC;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAClC,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAYvE,qIAAqI;AACrI,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,KACtB,wBAAwB,GAAG,SAA2C,CAAC;AAE1E,2FAA2F;AAC3F,eAAO,MAAM,4BAA4B,GACvC,MAAM,iBAAiB,KACtB,OACqE,CAAC;AAEzE;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,OACjB,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,MAAM,EAGlE,CAAC;AAET,kGAAkG;AAClG,eAAO,MAAM,yBAAyB,GACpC,KAAK,sBAAsB,KAC1B,mBAKD,CAAC;AAEH,iHAAiH;AACjH,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,mBAKD,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GACnC,KAAK,qBAAqB,EAC1B,iBAAiB,CAAC,GAAG,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,KAClE,iBAWF,CAAC"}
|
package/catalog/publish.js
CHANGED
|
@@ -7,14 +7,25 @@ var r = {
|
|
|
7
7
|
[t.Agent]: "application",
|
|
8
8
|
[t.Prompt]: "prompt",
|
|
9
9
|
[t.Skill]: "skill"
|
|
10
|
-
}, i = (e) => r[e], a = (e) => e.split("/")[1] === n,
|
|
10
|
+
}, i = (e) => r[e], a = (e) => e === t.Agent || e === t.Toolset, o = (e) => e.split("/")[1] === n, s = (t) => o(t) ? t.split("/").slice(2, -1).map(e) : [], c = (e) => ({
|
|
11
11
|
version: e.version,
|
|
12
12
|
publishedAt: Date.parse(e.publishedAt),
|
|
13
13
|
folderPath: e.folderPath.split("/").filter(Boolean),
|
|
14
14
|
publishCredentials: e.publishCredentials
|
|
15
|
-
}),
|
|
15
|
+
}), l = (e) => ({
|
|
16
16
|
publishedAt: Date.parse(e.publishedAt),
|
|
17
17
|
folderPath: e.folderPath.split("/").filter(Boolean)
|
|
18
|
-
})
|
|
18
|
+
}), u = (e, t) => {
|
|
19
|
+
let n = t?.(e);
|
|
20
|
+
return {
|
|
21
|
+
id: e.id,
|
|
22
|
+
name: e.name,
|
|
23
|
+
...e.version == null ? {} : { version: e.version },
|
|
24
|
+
type: e.type,
|
|
25
|
+
location: e.location,
|
|
26
|
+
...n == null ? {} : { iconUrl: n },
|
|
27
|
+
...e.type === "file" && e.id.endsWith("/") ? { isFolder: !0 } : {}
|
|
28
|
+
};
|
|
29
|
+
};
|
|
19
30
|
//#endregion
|
|
20
|
-
export {
|
|
31
|
+
export { s as getPublicCatalogEntityFolderPath, o as isPublicCatalogEntityId, a as isVersionedCatalogEntityType, l as mapPublishConversationResultDto, c as mapPublishHistoryEntryDto, u as mapResourceDependencyDto, i as toPublishEntityType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-name-conflict.d.ts","sourceRoot":"","sources":["../../src/catalog/resource-name-conflict.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource-name-conflict.d.ts","sourceRoot":"","sources":["../../src/catalog/resource-name-conflict.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,4FAA4F;AAC5F,oBAAY,wBAAwB;IAClC,wCAAwC;IACxC,KAAK,UAAU;IACf,0BAA0B;IAC1B,OAAO,YAAY;CACpB;AAED,mFAAmF;AACnF,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAC/C,wBAAwB,EACxB,MAAM,CACP,CAAC;AAUF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,OAAO,KACb,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAI9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAC3C,SAAS,mBAAmB,EAC5B,UAAU,4BAA4B,KACrC,mBAyBF,CAAC"}
|