@epam/ai-dial-chat-api-client 1.3.6 → 1.4.0-dev.103

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.
@@ -16,12 +16,12 @@ import type { OrgUnitsResponseDto } from '../models/index';
16
16
  */
17
17
  export declare class OrgUnitsApi extends runtime.BaseAPI {
18
18
  /**
19
- * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
19
+ * Returns the DIAL Core org units the authenticated user may see, flat in Core order, each with the caller\'s `permissions` (namespace to actions). `hasAdminAccess` is true when Core reports full admin access. `enabled` is false (and `hasAdminAccess` false, `units` empty) when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
20
20
  * List the org units visible to the caller
21
21
  */
22
22
  listOrgUnitsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgUnitsResponseDto>>;
23
23
  /**
24
- * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
24
+ * Returns the DIAL Core org units the authenticated user may see, flat in Core order, each with the caller\'s `permissions` (namespace to actions). `hasAdminAccess` is true when Core reports full admin access. `enabled` is false (and `hasAdminAccess` false, `units` empty) when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
25
25
  * List the org units visible to the caller
26
26
  */
27
27
  listOrgUnits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgUnitsResponseDto>;
@@ -20,7 +20,7 @@ const runtime = require("../runtime");
20
20
  */
21
21
  class OrgUnitsApi extends runtime.BaseAPI {
22
22
  /**
23
- * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
23
+ * Returns the DIAL Core org units the authenticated user may see, flat in Core order, each with the caller\'s `permissions` (namespace to actions). `hasAdminAccess` is true when Core reports full admin access. `enabled` is false (and `hasAdminAccess` false, `units` empty) when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
24
24
  * List the org units visible to the caller
25
25
  */
26
26
  async listOrgUnitsRaw(initOverrides) {
@@ -43,7 +43,7 @@ class OrgUnitsApi extends runtime.BaseAPI {
43
43
  return new runtime.JSONApiResponse(response);
44
44
  }
45
45
  /**
46
- * Returns the DIAL Core org units the authenticated user may see, flat and parents first. `enabled` is false when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
46
+ * Returns the DIAL Core org units the authenticated user may see, flat in Core order, each with the caller\'s `permissions` (namespace to actions). `hasAdminAccess` is true when Core reports full admin access. `enabled` is false (and `hasAdminAccess` false, `units` empty) when DIAL Core has org units turned off. Answers 403 while the `features.orgUnitsEnabled` flag is off. Results are cached server-side for 60 seconds per user.
47
47
  * List the org units visible to the caller
48
48
  */
49
49
  async listOrgUnits(initOverrides) {
@@ -164,12 +164,12 @@ export declare class ProjectsApi extends runtime.BaseAPI {
164
164
  */
165
165
  downloadProject(requestParameters: DownloadProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
166
166
  /**
167
- * Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
167
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
168
168
  * Download one output of a project
169
169
  */
170
170
  downloadProjectArtifactRaw(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
171
171
  /**
172
- * Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
172
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
173
173
  * Download one output of a project
174
174
  */
175
175
  downloadProjectArtifact(requestParameters: DownloadProjectArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
@@ -283,7 +283,7 @@ class ProjectsApi extends runtime.BaseAPI {
283
283
  return await response.value();
284
284
  }
285
285
  /**
286
- * Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
286
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
287
287
  * Download one output of a project
288
288
  */
289
289
  async downloadProjectArtifactRaw(requestParameters, initOverrides) {
@@ -314,7 +314,7 @@ class ProjectsApi extends runtime.BaseAPI {
314
314
  return new runtime.BlobApiResponse(response);
315
315
  }
316
316
  /**
317
- * Streams one file directly under the project `artifacts/` folder as an attachment with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
317
+ * Streams one file under the project `artifacts/` folder, a direct child or a nested path, as an attachment named after its last path segment, with `X-Content-Type-Options: nosniff`. Any reader of the project may call it.
318
318
  * Download one output of a project
319
319
  */
320
320
  async downloadProjectArtifact(requestParameters, initOverrides) {
@@ -10,7 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto, ResourceDependenciesResultDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '../models/index';
13
+ import type { CopyCatalogEntityToOrgUnitDto, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto, ResourceDependenciesResultDto, ResourceIdResponseDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '../models/index';
14
+ export interface CopyCatalogEntityToOrgUnitRequest {
15
+ entityType: CopyCatalogEntityToOrgUnitEntityTypeEnum;
16
+ entityId: string;
17
+ copyCatalogEntityToOrgUnitDto: CopyCatalogEntityToOrgUnitDto;
18
+ }
14
19
  export interface GetCatalogPublishDependenciesRequest {
15
20
  entityType: GetCatalogPublishDependenciesEntityTypeEnum;
16
21
  entityId: string;
@@ -23,6 +28,10 @@ export interface GetCatalogUnpublishAccessRequest {
23
28
  entityType: GetCatalogUnpublishAccessEntityTypeEnum;
24
29
  entityId: string;
25
30
  }
31
+ export interface GetCatalogVersionStatusesRequest {
32
+ entityType: GetCatalogVersionStatusesEntityTypeEnum;
33
+ entityId: string;
34
+ }
26
35
  export interface GetPublishRulesRequest {
27
36
  folderPath: string;
28
37
  }
@@ -40,6 +49,16 @@ export interface UnpublishCatalogEntityRequest {
40
49
  *
41
50
  */
42
51
  export declare class PublishApi extends runtime.BaseAPI {
52
+ /**
53
+ * Copies a catalog entity of the caller\'s own bucket into `folderPath` of the public bucket under the same name, by proxying DIAL Core\'s resource copy. No publication request is created: DIAL Core decides whether the caller may write into the folder and applies its per-type rules to the copy, and its 403 and 409 are returned as they are. Applications, toolsets, prompts and skills are supported; other types answer 400. A target that already exists answers 409: the copy never overwrites. Answers 403 while the `features.orgUnitsEnabled` flag is off.
54
+ * Copy an own catalog entity into an org-unit folder
55
+ */
56
+ copyCatalogEntityToOrgUnitRaw(requestParameters: CopyCatalogEntityToOrgUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceIdResponseDto>>;
57
+ /**
58
+ * Copies a catalog entity of the caller\'s own bucket into `folderPath` of the public bucket under the same name, by proxying DIAL Core\'s resource copy. No publication request is created: DIAL Core decides whether the caller may write into the folder and applies its per-type rules to the copy, and its 403 and 409 are returned as they are. Applications, toolsets, prompts and skills are supported; other types answer 400. A target that already exists answers 409: the copy never overwrites. Answers 403 while the `features.orgUnitsEnabled` flag is off.
59
+ * Copy an own catalog entity into an org-unit folder
60
+ */
61
+ copyCatalogEntityToOrgUnit(requestParameters: CopyCatalogEntityToOrgUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceIdResponseDto>;
43
62
  /**
44
63
  * Returns the direct references of a catalog entity (Toolset, Application, Prompt, Skill or Project) that are not in the public bucket, so the publisher can publish them too before the published copy reaches its audience. Resources that publishing already carries along (the application icon and its declared files) are not listed, and a dependency’s own dependencies are not followed. The list is advisory: when it cannot be resolved the response is an empty list rather than an error. Kinds that reference no other resource always return an empty list.
45
64
  * List the private dependencies of a catalog entity
@@ -70,6 +89,16 @@ export declare class PublishApi extends runtime.BaseAPI {
70
89
  * Check whether the caller may request removal of a catalog entity
71
90
  */
72
91
  getCatalogUnpublishAccess(requestParameters: GetCatalogUnpublishAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UnpublishAccessDto>;
92
+ /**
93
+ * Returns one entry per saved version of the application or toolset (same owner, folder and base name) with its publication status: `not-published`, `in-review`, `published` (with its folders and publisher) or `unknown` for a resource owned by another user. Derived from the caller’s own publications in DIAL Core, read once per request, and never from chat-api-side storage. Only applications and toolsets have versions.
94
+ * Get the publication status of every version of an entity
95
+ */
96
+ getCatalogVersionStatusesRaw(requestParameters: GetCatalogVersionStatusesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<VersionStatusEntryDto>>>;
97
+ /**
98
+ * Returns one entry per saved version of the application or toolset (same owner, folder and base name) with its publication status: `not-published`, `in-review`, `published` (with its folders and publisher) or `unknown` for a resource owned by another user. Derived from the caller’s own publications in DIAL Core, read once per request, and never from chat-api-side storage. Only applications and toolsets have versions.
99
+ * Get the publication status of every version of an entity
100
+ */
101
+ getCatalogVersionStatuses(requestParameters: GetCatalogVersionStatusesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionStatusEntryDto>>;
73
102
  /**
74
103
  * Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
75
104
  * Get a destination folder\'s already-configured access rules
@@ -101,6 +130,18 @@ export declare class PublishApi extends runtime.BaseAPI {
101
130
  */
102
131
  unpublishCatalogEntity(requestParameters: UnpublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UnpublishResultDto>;
103
132
  }
133
+ /**
134
+ * @export
135
+ */
136
+ export declare const CopyCatalogEntityToOrgUnitEntityTypeEnum: {
137
+ readonly Model: "model";
138
+ readonly Toolset: "toolset";
139
+ readonly Application: "application";
140
+ readonly Prompt: "prompt";
141
+ readonly Skill: "skill";
142
+ readonly Project: "project";
143
+ };
144
+ export type CopyCatalogEntityToOrgUnitEntityTypeEnum = (typeof CopyCatalogEntityToOrgUnitEntityTypeEnum)[keyof typeof CopyCatalogEntityToOrgUnitEntityTypeEnum];
104
145
  /**
105
146
  * @export
106
147
  */
@@ -137,6 +178,18 @@ export declare const GetCatalogUnpublishAccessEntityTypeEnum: {
137
178
  readonly Project: "project";
138
179
  };
139
180
  export type GetCatalogUnpublishAccessEntityTypeEnum = (typeof GetCatalogUnpublishAccessEntityTypeEnum)[keyof typeof GetCatalogUnpublishAccessEntityTypeEnum];
181
+ /**
182
+ * @export
183
+ */
184
+ export declare const GetCatalogVersionStatusesEntityTypeEnum: {
185
+ readonly Model: "model";
186
+ readonly Toolset: "toolset";
187
+ readonly Application: "application";
188
+ readonly Prompt: "prompt";
189
+ readonly Skill: "skill";
190
+ readonly Project: "project";
191
+ };
192
+ export type GetCatalogVersionStatusesEntityTypeEnum = (typeof GetCatalogVersionStatusesEntityTypeEnum)[keyof typeof GetCatalogVersionStatusesEntityTypeEnum];
140
193
  /**
141
194
  * @export
142
195
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PublishApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/ap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,CAAC"}
1
+ {"version":3,"file":"PublishApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/PublishApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,EACrB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,wCAAwC,CAAC;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B,EAAE,6BAA6B,CAAC;CAC9D;AAED,MAAM,WAAW,oCAAoC;IACnD,UAAU,EAAE,2CAA2C,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,sCAAsC,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,uCAAuC,CAAC;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,uCAAuC,CAAC;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,kCAAkC,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB,EAAE,uBAAuB,CAAC;CAClD;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,oCAAoC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB,EAAE,yBAAyB,CAAC;CACtD;AAED;;GAEG;AACH,qBAAa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;;;;;CAOvC,CAAC;AACX,MAAM,MAAM,oCAAoC,GAC9C,CAAC,OAAO,oCAAoC,CAAC,CAAC,MAAM,OAAO,oCAAoC,CAAC,CAAC"}
@@ -13,12 +13,56 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UnpublishCatalogEntityEntityTypeEnum = exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogUnpublishAccessEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.GetCatalogPublishDependenciesEntityTypeEnum = exports.PublishApi = void 0;
16
+ exports.UnpublishCatalogEntityEntityTypeEnum = exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogVersionStatusesEntityTypeEnum = exports.GetCatalogUnpublishAccessEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.GetCatalogPublishDependenciesEntityTypeEnum = exports.CopyCatalogEntityToOrgUnitEntityTypeEnum = exports.PublishApi = void 0;
17
17
  const runtime = require("../runtime");
18
18
  /**
19
19
  *
20
20
  */
21
21
  class PublishApi extends runtime.BaseAPI {
22
+ /**
23
+ * Copies a catalog entity of the caller\'s own bucket into `folderPath` of the public bucket under the same name, by proxying DIAL Core\'s resource copy. No publication request is created: DIAL Core decides whether the caller may write into the folder and applies its per-type rules to the copy, and its 403 and 409 are returned as they are. Applications, toolsets, prompts and skills are supported; other types answer 400. A target that already exists answers 409: the copy never overwrites. Answers 403 while the `features.orgUnitsEnabled` flag is off.
24
+ * Copy an own catalog entity into an org-unit folder
25
+ */
26
+ async copyCatalogEntityToOrgUnitRaw(requestParameters, initOverrides) {
27
+ if (requestParameters['entityType'] == null) {
28
+ throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling copyCatalogEntityToOrgUnit().');
29
+ }
30
+ if (requestParameters['entityId'] == null) {
31
+ throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling copyCatalogEntityToOrgUnit().');
32
+ }
33
+ if (requestParameters['copyCatalogEntityToOrgUnitDto'] == null) {
34
+ throw new runtime.RequiredError('copyCatalogEntityToOrgUnitDto', 'Required parameter "copyCatalogEntityToOrgUnitDto" was null or undefined when calling copyCatalogEntityToOrgUnit().');
35
+ }
36
+ const queryParameters = {};
37
+ const headerParameters = {};
38
+ headerParameters['Content-Type'] = 'application/json';
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = await token('bearer', []);
42
+ if (tokenString) {
43
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
44
+ }
45
+ }
46
+ let urlPath = `/api/v1/catalog/{entityType}/{entityId}/copy-to-org-unit`;
47
+ urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
48
+ urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
49
+ const response = await this.request({
50
+ path: urlPath,
51
+ method: 'POST',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ body: requestParameters['copyCatalogEntityToOrgUnitDto'],
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response);
57
+ }
58
+ /**
59
+ * Copies a catalog entity of the caller\'s own bucket into `folderPath` of the public bucket under the same name, by proxying DIAL Core\'s resource copy. No publication request is created: DIAL Core decides whether the caller may write into the folder and applies its per-type rules to the copy, and its 403 and 409 are returned as they are. Applications, toolsets, prompts and skills are supported; other types answer 400. A target that already exists answers 409: the copy never overwrites. Answers 403 while the `features.orgUnitsEnabled` flag is off.
60
+ * Copy an own catalog entity into an org-unit folder
61
+ */
62
+ async copyCatalogEntityToOrgUnit(requestParameters, initOverrides) {
63
+ const response = await this.copyCatalogEntityToOrgUnitRaw(requestParameters, initOverrides);
64
+ return await response.value();
65
+ }
22
66
  /**
23
67
  * Returns the direct references of a catalog entity (Toolset, Application, Prompt, Skill or Project) that are not in the public bucket, so the publisher can publish them too before the published copy reaches its audience. Resources that publishing already carries along (the application icon and its declared files) are not listed, and a dependency’s own dependencies are not followed. The list is advisory: when it cannot be resolved the response is an empty list rather than an error. Kinds that reference no other resource always return an empty list.
24
68
  * List the private dependencies of a catalog entity
@@ -136,6 +180,45 @@ class PublishApi extends runtime.BaseAPI {
136
180
  const response = await this.getCatalogUnpublishAccessRaw(requestParameters, initOverrides);
137
181
  return await response.value();
138
182
  }
183
+ /**
184
+ * Returns one entry per saved version of the application or toolset (same owner, folder and base name) with its publication status: `not-published`, `in-review`, `published` (with its folders and publisher) or `unknown` for a resource owned by another user. Derived from the caller’s own publications in DIAL Core, read once per request, and never from chat-api-side storage. Only applications and toolsets have versions.
185
+ * Get the publication status of every version of an entity
186
+ */
187
+ async getCatalogVersionStatusesRaw(requestParameters, initOverrides) {
188
+ if (requestParameters['entityType'] == null) {
189
+ throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling getCatalogVersionStatuses().');
190
+ }
191
+ if (requestParameters['entityId'] == null) {
192
+ throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling getCatalogVersionStatuses().');
193
+ }
194
+ const queryParameters = {};
195
+ const headerParameters = {};
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = await token('bearer', []);
199
+ if (tokenString) {
200
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
201
+ }
202
+ }
203
+ let urlPath = `/api/v1/catalog/{entityType}/{entityId}/version-statuses`;
204
+ urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
205
+ urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
206
+ const response = await this.request({
207
+ path: urlPath,
208
+ method: 'GET',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ }, initOverrides);
212
+ return new runtime.JSONApiResponse(response);
213
+ }
214
+ /**
215
+ * Returns one entry per saved version of the application or toolset (same owner, folder and base name) with its publication status: `not-published`, `in-review`, `published` (with its folders and publisher) or `unknown` for a resource owned by another user. Derived from the caller’s own publications in DIAL Core, read once per request, and never from chat-api-side storage. Only applications and toolsets have versions.
216
+ * Get the publication status of every version of an entity
217
+ */
218
+ async getCatalogVersionStatuses(requestParameters, initOverrides) {
219
+ const response = await this.getCatalogVersionStatusesRaw(requestParameters, initOverrides);
220
+ return await response.value();
221
+ }
139
222
  /**
140
223
  * Returns the exact requested folder\'s own access-restriction rules by proxying DIAL Core\'s `getPublicationRules` — ancestor-folder rules in the underlying response are discarded, never returned.
141
224
  * Get a destination folder\'s already-configured access rules
@@ -263,6 +346,17 @@ class PublishApi extends runtime.BaseAPI {
263
346
  }
264
347
  }
265
348
  exports.PublishApi = PublishApi;
349
+ /**
350
+ * @export
351
+ */
352
+ exports.CopyCatalogEntityToOrgUnitEntityTypeEnum = {
353
+ Model: 'model',
354
+ Toolset: 'toolset',
355
+ Application: 'application',
356
+ Prompt: 'prompt',
357
+ Skill: 'skill',
358
+ Project: 'project',
359
+ };
266
360
  /**
267
361
  * @export
268
362
  */
@@ -296,6 +390,17 @@ exports.GetCatalogUnpublishAccessEntityTypeEnum = {
296
390
  Skill: 'skill',
297
391
  Project: 'project',
298
392
  };
393
+ /**
394
+ * @export
395
+ */
396
+ exports.GetCatalogVersionStatusesEntityTypeEnum = {
397
+ Model: 'model',
398
+ Toolset: 'toolset',
399
+ Application: 'application',
400
+ Prompt: 'prompt',
401
+ Skill: 'skill',
402
+ Project: 'project',
403
+ };
299
404
  /**
300
405
  * @export
301
406
  */