@epam/ai-dial-chat-api-client 1.0.0-rc.6 → 1.0.0
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/generated/src/apis/ConversationsApi.d.ts +16 -1
- package/generated/src/apis/ConversationsApi.d.ts.map +1 -1
- package/generated/src/apis/ConversationsApi.js +38 -0
- package/generated/src/apis/DeploymentsApi.d.ts +2 -2
- package/generated/src/apis/DeploymentsApi.js +2 -2
- package/generated/src/apis/PublishApi.d.ts +27 -1
- package/generated/src/apis/PublishApi.d.ts.map +1 -1
- package/generated/src/apis/PublishApi.js +48 -1
- package/generated/src/apis/ToolsetsApi.d.ts +51 -1
- package/generated/src/apis/ToolsetsApi.d.ts.map +1 -1
- package/generated/src/apis/ToolsetsApi.js +110 -1
- package/generated/src/models/index.d.ts +343 -0
- package/generated/src/models/index.d.ts.map +1 -1
- package/generated/src/models/index.js +18 -1
- package/package.json +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ConversationDeletionResultDto, ConversationListResponseDto, ConversationMetadataDto, ConversationResponseDto, CreateConversationDto, DeleteAllConversationsBodyDto, DeleteConversationsBodyDto, DuplicateConversationResponseDto, GenerateTitleResponseDto, PublishConversationDto, PublishConversationResultDto, RenameConversationBodyDto, RenameConversationResponseDto, SaveConversationBodyDto, SendCompletionDto, StopCompletionDto, WatchConversationBodyDto } from '../models/index';
|
|
13
|
+
import type { ConversationDeletionResultDto, ConversationListResponseDto, ConversationMetadataDto, ConversationResponseDto, CreateConversationDto, DeleteAllConversationsBodyDto, DeleteConversationsBodyDto, DuplicateConversationResponseDto, GenerateTitleResponseDto, PublishConversationDto, PublishConversationResultDto, RenameConversationBodyDto, RenameConversationResponseDto, SaveConversationBodyDto, SendCompletionDto, StopCompletionDto, UnpublishConversationDto, UnpublishConversationResultDto, WatchConversationBodyDto } from '../models/index';
|
|
14
14
|
export interface CreateConversationRequest {
|
|
15
15
|
createConversationDto: CreateConversationDto;
|
|
16
16
|
}
|
|
@@ -63,6 +63,11 @@ export interface StopCompletionRequest {
|
|
|
63
63
|
}
|
|
64
64
|
export interface StreamCompletionRequest {
|
|
65
65
|
sendCompletionDto: SendCompletionDto;
|
|
66
|
+
xTimezone?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface UnpublishConversationRequest {
|
|
69
|
+
path: string;
|
|
70
|
+
unpublishConversationDto: UnpublishConversationDto;
|
|
66
71
|
}
|
|
67
72
|
export interface WatchConversationRequest {
|
|
68
73
|
watchConversationBodyDto: WatchConversationBodyDto;
|
|
@@ -217,6 +222,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
217
222
|
* Stream a chat completion
|
|
218
223
|
*/
|
|
219
224
|
streamCompletion(requestParameters: StreamCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* Submits a removal request for one already-published folder of an owned conversation by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the conversation’s publish history. The conversation title is re-fetched server-side and used as the publication name, so the request is legible in the admin queue.
|
|
227
|
+
* Request removal of a published conversation from a folder
|
|
228
|
+
*/
|
|
229
|
+
unpublishConversationRaw(requestParameters: UnpublishConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UnpublishConversationResultDto>>;
|
|
230
|
+
/**
|
|
231
|
+
* Submits a removal request for one already-published folder of an owned conversation by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the conversation’s publish history. The conversation title is re-fetched server-side and used as the publication name, so the request is legible in the admin queue.
|
|
232
|
+
* Request removal of a published conversation from a folder
|
|
233
|
+
*/
|
|
234
|
+
unpublishConversation(requestParameters: UnpublishConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UnpublishConversationResultDto>;
|
|
220
235
|
/**
|
|
221
236
|
* Opens an SSE stream that proxies DIAL Core resource-update events for the given conversation path. Used by the frontend to detect when LLM naming completes.
|
|
222
237
|
* Subscribe to conversation resource updates via SSE
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ConversationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C;AAED,MAAM,WAAW,6BAA6B;IAC5C,6BAA6B,EAAE,6BAA6B,CAAC;CAC9D;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,0BAA0B,EAAE,0BAA0B,CAAC;CACxD;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,oCAAoC;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB,EAAE,sBAAsB,CAAC;CAChD;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB,EAAE,yBAAyB,CAAC;CACtD;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB,EAAE,uBAAuB,CAAC;CAClD;AAED,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConversationsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ConversationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,yBAAyB;IACxC,qBAAq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|
|
480
480
|
headerParameters['Content-Type'] = 'application/json';
|
|
481
|
+
if (requestParameters['xTimezone'] != null) {
|
|
482
|
+
headerParameters['X-Timezone'] = String(requestParameters['xTimezone']);
|
|
483
|
+
}
|
|
481
484
|
let urlPath = `/api/v1/conversations/completions`;
|
|
482
485
|
const response = await this.request({
|
|
483
486
|
path: urlPath,
|
|
@@ -495,6 +498,41 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
495
498
|
async streamCompletion(requestParameters, initOverrides) {
|
|
496
499
|
await this.streamCompletionRaw(requestParameters, initOverrides);
|
|
497
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* Submits a removal request for one already-published folder of an owned conversation by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the conversation’s publish history. The conversation title is re-fetched server-side and used as the publication name, so the request is legible in the admin queue.
|
|
503
|
+
* Request removal of a published conversation from a folder
|
|
504
|
+
*/
|
|
505
|
+
async unpublishConversationRaw(requestParameters, initOverrides) {
|
|
506
|
+
if (requestParameters['path'] == null) {
|
|
507
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling unpublishConversation().');
|
|
508
|
+
}
|
|
509
|
+
if (requestParameters['unpublishConversationDto'] == null) {
|
|
510
|
+
throw new runtime.RequiredError('unpublishConversationDto', 'Required parameter "unpublishConversationDto" was null or undefined when calling unpublishConversation().');
|
|
511
|
+
}
|
|
512
|
+
const queryParameters = {};
|
|
513
|
+
if (requestParameters['path'] != null) {
|
|
514
|
+
queryParameters['path'] = requestParameters['path'];
|
|
515
|
+
}
|
|
516
|
+
const headerParameters = {};
|
|
517
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
518
|
+
let urlPath = `/api/v1/conversations/unpublish`;
|
|
519
|
+
const response = await this.request({
|
|
520
|
+
path: urlPath,
|
|
521
|
+
method: 'POST',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
body: requestParameters['unpublishConversationDto'],
|
|
525
|
+
}, initOverrides);
|
|
526
|
+
return new runtime.JSONApiResponse(response);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Submits a removal request for one already-published folder of an owned conversation by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the conversation’s publish history. The conversation title is re-fetched server-side and used as the publication name, so the request is legible in the admin queue.
|
|
530
|
+
* Request removal of a published conversation from a folder
|
|
531
|
+
*/
|
|
532
|
+
async unpublishConversation(requestParameters, initOverrides) {
|
|
533
|
+
const response = await this.unpublishConversationRaw(requestParameters, initOverrides);
|
|
534
|
+
return await response.value();
|
|
535
|
+
}
|
|
498
536
|
/**
|
|
499
537
|
* Opens an SSE stream that proxies DIAL Core resource-update events for the given conversation path. Used by the frontend to detect when LLM naming completes.
|
|
500
538
|
* Subscribe to conversation resource updates via SSE
|
|
@@ -39,12 +39,12 @@ export declare class DeploymentsApi extends runtime.BaseAPI {
|
|
|
39
39
|
*/
|
|
40
40
|
getDeploymentConfiguration(requestParameters: GetDeploymentConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentConfigurationDto>;
|
|
41
41
|
/**
|
|
42
|
-
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response
|
|
42
|
+
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response sets Cache-Control to private, no-store so browsers and intermediaries never reuse a stale copy after the active user or toolset credentials change.
|
|
43
43
|
* Get full details for a single deployment
|
|
44
44
|
*/
|
|
45
45
|
getDeploymentDetailsRaw(requestParameters: GetDeploymentDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentDetailsDto>>;
|
|
46
46
|
/**
|
|
47
|
-
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response
|
|
47
|
+
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response sets Cache-Control to private, no-store so browsers and intermediaries never reuse a stale copy after the active user or toolset credentials change.
|
|
48
48
|
* Get full details for a single deployment
|
|
49
49
|
*/
|
|
50
50
|
getDeploymentDetails(requestParameters: GetDeploymentDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentDetailsDto>;
|
|
@@ -49,7 +49,7 @@ class DeploymentsApi extends runtime.BaseAPI {
|
|
|
49
49
|
return await response.value();
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response
|
|
52
|
+
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response sets Cache-Control to private, no-store so browsers and intermediaries never reuse a stale copy after the active user or toolset credentials change.
|
|
53
53
|
* Get full details for a single deployment
|
|
54
54
|
*/
|
|
55
55
|
async getDeploymentDetailsRaw(requestParameters, initOverrides) {
|
|
@@ -69,7 +69,7 @@ class DeploymentsApi extends runtime.BaseAPI {
|
|
|
69
69
|
return new runtime.JSONApiResponse(response);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response
|
|
72
|
+
* Fetches the full per-entity payload for a model, application, or toolset by id (dispatching to DIAL Core\'s getModel/getApplication/getToolset based on the resolved deployment type) and maps it into a frontend-safe DeploymentDetailsDto. Results are cached server-side for 60 seconds per user; the response sets Cache-Control to private, no-store so browsers and intermediaries never reuse a stale copy after the active user or toolset credentials change.
|
|
73
73
|
* Get full details for a single deployment
|
|
74
74
|
*/
|
|
75
75
|
async getDeploymentDetails(requestParameters, initOverrides) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto } from '../models/index';
|
|
13
|
+
import type { PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRulesResultDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '../models/index';
|
|
14
14
|
export interface GetCatalogPublishHistoryRequest {
|
|
15
15
|
entityType: GetCatalogPublishHistoryEntityTypeEnum;
|
|
16
16
|
entityId: string;
|
|
@@ -23,6 +23,11 @@ export interface PublishCatalogEntityRequest {
|
|
|
23
23
|
entityId: string;
|
|
24
24
|
publishCatalogEntityDto: PublishCatalogEntityDto;
|
|
25
25
|
}
|
|
26
|
+
export interface UnpublishCatalogEntityRequest {
|
|
27
|
+
entityType: UnpublishCatalogEntityEntityTypeEnum;
|
|
28
|
+
entityId: string;
|
|
29
|
+
unpublishCatalogEntityDto: UnpublishCatalogEntityDto;
|
|
30
|
+
}
|
|
26
31
|
/**
|
|
27
32
|
*
|
|
28
33
|
*/
|
|
@@ -57,6 +62,16 @@ export declare class PublishApi extends runtime.BaseAPI {
|
|
|
57
62
|
* Publish a catalog entity to an Organization folder
|
|
58
63
|
*/
|
|
59
64
|
publishCatalogEntity(requestParameters: PublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishResultDto>;
|
|
65
|
+
/**
|
|
66
|
+
* Submits a removal request for one already-published folder of a catalog entity (Toolset, Application, Prompt, or Skill) by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the entity’s publish history. This endpoint keeps no records of its own — DIAL Core is the sole source of truth.
|
|
67
|
+
* Request removal of a published catalog entity from a folder
|
|
68
|
+
*/
|
|
69
|
+
unpublishCatalogEntityRaw(requestParameters: UnpublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UnpublishResultDto>>;
|
|
70
|
+
/**
|
|
71
|
+
* Submits a removal request for one already-published folder of a catalog entity (Toolset, Application, Prompt, or Skill) by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the entity’s publish history. This endpoint keeps no records of its own — DIAL Core is the sole source of truth.
|
|
72
|
+
* Request removal of a published catalog entity from a folder
|
|
73
|
+
*/
|
|
74
|
+
unpublishCatalogEntity(requestParameters: UnpublishCatalogEntityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UnpublishResultDto>;
|
|
60
75
|
}
|
|
61
76
|
/**
|
|
62
77
|
* @export
|
|
@@ -80,4 +95,15 @@ export declare const PublishCatalogEntityEntityTypeEnum: {
|
|
|
80
95
|
readonly Skill: "skill";
|
|
81
96
|
};
|
|
82
97
|
export type PublishCatalogEntityEntityTypeEnum = (typeof PublishCatalogEntityEntityTypeEnum)[keyof typeof PublishCatalogEntityEntityTypeEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const UnpublishCatalogEntityEntityTypeEnum: {
|
|
102
|
+
readonly Model: "model";
|
|
103
|
+
readonly Toolset: "toolset";
|
|
104
|
+
readonly Application: "application";
|
|
105
|
+
readonly Prompt: "prompt";
|
|
106
|
+
readonly Skill: "skill";
|
|
107
|
+
};
|
|
108
|
+
export type UnpublishCatalogEntityEntityTypeEnum = (typeof UnpublishCatalogEntityEntityTypeEnum)[keyof typeof UnpublishCatalogEntityEntityTypeEnum];
|
|
83
109
|
//# sourceMappingURL=PublishApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,
|
|
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,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,sCAAsC,CAAC;IACnD,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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AC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAoDnD;;;OAGG;IACG,sBAAsB,CAC1B,iBAAiB,EAAE,6BAA6B,EAChD,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,kBAAkB,CAAC;CAO/B;AAED;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;CAMzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAChD,CAAC,OAAO,sCAAsC,CAAC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AACvG;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;CAMrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAC5C,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAC/F;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;CAMvC,CAAC;AACX,MAAM,MAAM,oCAAoC,GAC9C,CAAC,OAAO,oCAAoC,CAAC,CAAC,MAAM,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.PublishApi = void 0;
|
|
16
|
+
exports.UnpublishCatalogEntityEntityTypeEnum = exports.PublishCatalogEntityEntityTypeEnum = exports.GetCatalogPublishHistoryEntityTypeEnum = exports.PublishApi = void 0;
|
|
17
17
|
const tslib_1 = require("tslib");
|
|
18
18
|
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
19
|
/**
|
|
@@ -119,6 +119,43 @@ class PublishApi extends runtime.BaseAPI {
|
|
|
119
119
|
const response = await this.publishCatalogEntityRaw(requestParameters, initOverrides);
|
|
120
120
|
return await response.value();
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Submits a removal request for one already-published folder of a catalog entity (Toolset, Application, Prompt, or Skill) by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the entity’s publish history. This endpoint keeps no records of its own — DIAL Core is the sole source of truth.
|
|
124
|
+
* Request removal of a published catalog entity from a folder
|
|
125
|
+
*/
|
|
126
|
+
async unpublishCatalogEntityRaw(requestParameters, initOverrides) {
|
|
127
|
+
if (requestParameters['entityType'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling unpublishCatalogEntity().');
|
|
129
|
+
}
|
|
130
|
+
if (requestParameters['entityId'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling unpublishCatalogEntity().');
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters['unpublishCatalogEntityDto'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('unpublishCatalogEntityDto', 'Required parameter "unpublishCatalogEntityDto" was null or undefined when calling unpublishCatalogEntity().');
|
|
135
|
+
}
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
let urlPath = `/api/v1/catalog/{entityType}/{entityId}/unpublish`;
|
|
140
|
+
urlPath = urlPath.replace(`{${'entityType'}}`, encodeURIComponent(String(requestParameters['entityType'])));
|
|
141
|
+
urlPath = urlPath.replace(`{${'entityId'}}`, encodeURIComponent(String(requestParameters['entityId'])));
|
|
142
|
+
const response = await this.request({
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'POST',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
body: requestParameters['unpublishCatalogEntityDto'],
|
|
148
|
+
}, initOverrides);
|
|
149
|
+
return new runtime.JSONApiResponse(response);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Submits a removal request for one already-published folder of a catalog entity (Toolset, Application, Prompt, or Skill) by proxying DIAL Core\'s Publication API (`createPublication`) with a single `DELETE`-action resource. **The removal takes effect only after an administrator approves the request.** Until then the published copy stays visible to everyone who could already see it, and the folder continues to appear in the entity’s publish history. This endpoint keeps no records of its own — DIAL Core is the sole source of truth.
|
|
153
|
+
* Request removal of a published catalog entity from a folder
|
|
154
|
+
*/
|
|
155
|
+
async unpublishCatalogEntity(requestParameters, initOverrides) {
|
|
156
|
+
const response = await this.unpublishCatalogEntityRaw(requestParameters, initOverrides);
|
|
157
|
+
return await response.value();
|
|
158
|
+
}
|
|
122
159
|
}
|
|
123
160
|
exports.PublishApi = PublishApi;
|
|
124
161
|
/**
|
|
@@ -141,3 +178,13 @@ exports.PublishCatalogEntityEntityTypeEnum = {
|
|
|
141
178
|
Prompt: 'prompt',
|
|
142
179
|
Skill: 'skill',
|
|
143
180
|
};
|
|
181
|
+
/**
|
|
182
|
+
* @export
|
|
183
|
+
*/
|
|
184
|
+
exports.UnpublishCatalogEntityEntityTypeEnum = {
|
|
185
|
+
Model: 'model',
|
|
186
|
+
Toolset: 'toolset',
|
|
187
|
+
Application: 'application',
|
|
188
|
+
Prompt: 'prompt',
|
|
189
|
+
Skill: 'skill',
|
|
190
|
+
};
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DialToolsetDto, DialToolsetListResponseDto, MutatedToolsetDto, ToolsetAuthResultDto, ToolsetBodyDto, ToolsetLoginBodyDto, ToolsetLogoutBodyDto } from '../models/index';
|
|
13
|
+
import type { DialToolsetDto, DialToolsetListResponseDto, ListMcpAppToolsResponseDto, McpAppToolCallRequestDto, McpAppToolCallResponseDto, MutatedToolsetDto, ToolsetAuthResultDto, ToolsetBodyDto, ToolsetLoginBodyDto, ToolsetLogoutBodyDto } from '../models/index';
|
|
14
|
+
export interface CallToolsetMcpAppToolRequest {
|
|
15
|
+
toolsetName: string;
|
|
16
|
+
mcpAppToolCallRequestDto: McpAppToolCallRequestDto;
|
|
17
|
+
}
|
|
14
18
|
export interface CreateToolsetRequest {
|
|
15
19
|
toolsetBodyDto: ToolsetBodyDto;
|
|
16
20
|
}
|
|
@@ -20,6 +24,14 @@ export interface DeleteToolsetRequest {
|
|
|
20
24
|
export interface GetToolsetRequest {
|
|
21
25
|
toolsetName: string;
|
|
22
26
|
}
|
|
27
|
+
export interface GetToolsetMcpAppResourceRequest {
|
|
28
|
+
toolsetName: string;
|
|
29
|
+
resourceUri: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ListMcpAppToolsRequest {
|
|
32
|
+
deploymentId: string;
|
|
33
|
+
kind: ListMcpAppToolsKindEnum;
|
|
34
|
+
}
|
|
23
35
|
export interface LoginToolsetRequest {
|
|
24
36
|
toolsetName: string;
|
|
25
37
|
toolsetLoginBodyDto: ToolsetLoginBodyDto;
|
|
@@ -36,6 +48,16 @@ export interface UpdateToolsetRequest {
|
|
|
36
48
|
*
|
|
37
49
|
*/
|
|
38
50
|
export declare class ToolsetsApi extends runtime.BaseAPI {
|
|
51
|
+
/**
|
|
52
|
+
* Validates toolName against the tools the MCP session currently exposes, then forwards a tools/call JSON-RPC request through DIAL Core\'s existing generic MCP proxy for this toolset. Not cached — every call is a live, potentially side-effecting tool invocation.
|
|
53
|
+
* Forward an MCP App\'s self-initiated tool call
|
|
54
|
+
*/
|
|
55
|
+
callToolsetMcpAppToolRaw(requestParameters: CallToolsetMcpAppToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpAppToolCallResponseDto>>;
|
|
56
|
+
/**
|
|
57
|
+
* Validates toolName against the tools the MCP session currently exposes, then forwards a tools/call JSON-RPC request through DIAL Core\'s existing generic MCP proxy for this toolset. Not cached — every call is a live, potentially side-effecting tool invocation.
|
|
58
|
+
* Forward an MCP App\'s self-initiated tool call
|
|
59
|
+
*/
|
|
60
|
+
callToolsetMcpAppTool(requestParameters: CallToolsetMcpAppToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpAppToolCallResponseDto>;
|
|
39
61
|
/**
|
|
40
62
|
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
41
63
|
* Create a new toolset
|
|
@@ -66,6 +88,26 @@ export declare class ToolsetsApi extends runtime.BaseAPI {
|
|
|
66
88
|
* Get toolset by name
|
|
67
89
|
*/
|
|
68
90
|
getToolset(requestParameters: GetToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DialToolsetDto>;
|
|
91
|
+
/**
|
|
92
|
+
* Raw-passthrough proxy of DIAL Core\'s GET /v1/deployments/{deployment_name}/mcp/resources?uri=... — the response body is Core\'s resource body unchanged, forwarded with Content-Type/Content-Security-Policy/X-Content-Type-Options from Core. Cached server-side for 30 seconds per toolset+resourceUri.
|
|
93
|
+
* Fetch a toolset\'s MCP Apps ui:// resource
|
|
94
|
+
*/
|
|
95
|
+
getToolsetMcpAppResourceRaw(requestParameters: GetToolsetMcpAppResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
96
|
+
/**
|
|
97
|
+
* Raw-passthrough proxy of DIAL Core\'s GET /v1/deployments/{deployment_name}/mcp/resources?uri=... — the response body is Core\'s resource body unchanged, forwarded with Content-Type/Content-Security-Policy/X-Content-Type-Options from Core. Cached server-side for 30 seconds per toolset+resourceUri.
|
|
98
|
+
* Fetch a toolset\'s MCP Apps ui:// resource
|
|
99
|
+
*/
|
|
100
|
+
getToolsetMcpAppResource(requestParameters: GetToolsetMcpAppResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Calls DIAL Core\'s generic MCP JSON-RPC proxy\'s tools/list for the given deployment (toolset or application) and returns only the tools that declare an MCP Apps UI resource (`_meta.ui.resourceUri`).
|
|
103
|
+
* List MCP Apps-capable tools for an MCP-enabled deployment
|
|
104
|
+
*/
|
|
105
|
+
listMcpAppToolsRaw(requestParameters: ListMcpAppToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListMcpAppToolsResponseDto>>;
|
|
106
|
+
/**
|
|
107
|
+
* Calls DIAL Core\'s generic MCP JSON-RPC proxy\'s tools/list for the given deployment (toolset or application) and returns only the tools that declare an MCP Apps UI resource (`_meta.ui.resourceUri`).
|
|
108
|
+
* List MCP Apps-capable tools for an MCP-enabled deployment
|
|
109
|
+
*/
|
|
110
|
+
listMcpAppTools(requestParameters: ListMcpAppToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListMcpAppToolsResponseDto>;
|
|
69
111
|
/**
|
|
70
112
|
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
71
113
|
* List available toolsets
|
|
@@ -107,4 +149,12 @@ export declare class ToolsetsApi extends runtime.BaseAPI {
|
|
|
107
149
|
*/
|
|
108
150
|
updateToolset(requestParameters: UpdateToolsetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MutatedToolsetDto>;
|
|
109
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @export
|
|
154
|
+
*/
|
|
155
|
+
export declare const ListMcpAppToolsKindEnum: {
|
|
156
|
+
readonly Toolset: "toolset";
|
|
157
|
+
readonly Application: "application";
|
|
158
|
+
};
|
|
159
|
+
export type ListMcpAppToolsKindEnum = (typeof ListMcpAppToolsKindEnum)[keyof typeof ListMcpAppToolsKindEnum];
|
|
110
160
|
//# sourceMappingURL=ToolsetsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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AAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAyCrD;;;OAGG;IACG,aAAa,CACjB,iBAAiB,EAAE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,oBAAoB,CAAC;IAQhC;;;OAGG;IACG,gBAAgB,CACpB,iBAAiB,EAAE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAyClD;;;OAGG;IACG,aAAa,CACjB,iBAAiB,EAAE,oBAAoB,EACvC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GACzD,OAAO,CAAC,iBAAiB,CAAC;CAO9B"}
|
|
1
|
+
{"version":3,"file":"ToolsetsApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/apis/ToolsetsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,CA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MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -13,13 +13,46 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ToolsetsApi = void 0;
|
|
16
|
+
exports.ListMcpAppToolsKindEnum = exports.ToolsetsApi = void 0;
|
|
17
17
|
const tslib_1 = require("tslib");
|
|
18
18
|
const runtime = tslib_1.__importStar(require("../runtime"));
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
class ToolsetsApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Validates toolName against the tools the MCP session currently exposes, then forwards a tools/call JSON-RPC request through DIAL Core\'s existing generic MCP proxy for this toolset. Not cached — every call is a live, potentially side-effecting tool invocation.
|
|
25
|
+
* Forward an MCP App\'s self-initiated tool call
|
|
26
|
+
*/
|
|
27
|
+
async callToolsetMcpAppToolRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters['toolsetName'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling callToolsetMcpAppTool().');
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['mcpAppToolCallRequestDto'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('mcpAppToolCallRequestDto', 'Required parameter "mcpAppToolCallRequestDto" was null or undefined when calling callToolsetMcpAppTool().');
|
|
33
|
+
}
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
37
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}/mcp-app-tool-call`;
|
|
38
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
39
|
+
const response = await this.request({
|
|
40
|
+
path: urlPath,
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
body: requestParameters['mcpAppToolCallRequestDto'],
|
|
45
|
+
}, initOverrides);
|
|
46
|
+
return new runtime.JSONApiResponse(response);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validates toolName against the tools the MCP session currently exposes, then forwards a tools/call JSON-RPC request through DIAL Core\'s existing generic MCP proxy for this toolset. Not cached — every call is a live, potentially side-effecting tool invocation.
|
|
50
|
+
* Forward an MCP App\'s self-initiated tool call
|
|
51
|
+
*/
|
|
52
|
+
async callToolsetMcpAppTool(requestParameters, initOverrides) {
|
|
53
|
+
const response = await this.callToolsetMcpAppToolRaw(requestParameters, initOverrides);
|
|
54
|
+
return await response.value();
|
|
55
|
+
}
|
|
23
56
|
/**
|
|
24
57
|
* Creates a new toolset for the authenticated session user by proxying DIAL Core. Invalidates the toolset list cache on success.
|
|
25
58
|
* Create a new toolset
|
|
@@ -104,6 +137,75 @@ class ToolsetsApi extends runtime.BaseAPI {
|
|
|
104
137
|
const response = await this.getToolsetRaw(requestParameters, initOverrides);
|
|
105
138
|
return await response.value();
|
|
106
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Raw-passthrough proxy of DIAL Core\'s GET /v1/deployments/{deployment_name}/mcp/resources?uri=... — the response body is Core\'s resource body unchanged, forwarded with Content-Type/Content-Security-Policy/X-Content-Type-Options from Core. Cached server-side for 30 seconds per toolset+resourceUri.
|
|
142
|
+
* Fetch a toolset\'s MCP Apps ui:// resource
|
|
143
|
+
*/
|
|
144
|
+
async getToolsetMcpAppResourceRaw(requestParameters, initOverrides) {
|
|
145
|
+
if (requestParameters['toolsetName'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('toolsetName', 'Required parameter "toolsetName" was null or undefined when calling getToolsetMcpAppResource().');
|
|
147
|
+
}
|
|
148
|
+
if (requestParameters['resourceUri'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('resourceUri', 'Required parameter "resourceUri" was null or undefined when calling getToolsetMcpAppResource().');
|
|
150
|
+
}
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
if (requestParameters['resourceUri'] != null) {
|
|
153
|
+
queryParameters['resourceUri'] = requestParameters['resourceUri'];
|
|
154
|
+
}
|
|
155
|
+
const headerParameters = {};
|
|
156
|
+
let urlPath = `/api/v1/toolsets/{toolsetName}/mcp-app-resource`;
|
|
157
|
+
urlPath = urlPath.replace(`{${'toolsetName'}}`, encodeURIComponent(String(requestParameters['toolsetName'])));
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: urlPath,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.VoidApiResponse(response);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Raw-passthrough proxy of DIAL Core\'s GET /v1/deployments/{deployment_name}/mcp/resources?uri=... — the response body is Core\'s resource body unchanged, forwarded with Content-Type/Content-Security-Policy/X-Content-Type-Options from Core. Cached server-side for 30 seconds per toolset+resourceUri.
|
|
168
|
+
* Fetch a toolset\'s MCP Apps ui:// resource
|
|
169
|
+
*/
|
|
170
|
+
async getToolsetMcpAppResource(requestParameters, initOverrides) {
|
|
171
|
+
await this.getToolsetMcpAppResourceRaw(requestParameters, initOverrides);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Calls DIAL Core\'s generic MCP JSON-RPC proxy\'s tools/list for the given deployment (toolset or application) and returns only the tools that declare an MCP Apps UI resource (`_meta.ui.resourceUri`).
|
|
175
|
+
* List MCP Apps-capable tools for an MCP-enabled deployment
|
|
176
|
+
*/
|
|
177
|
+
async listMcpAppToolsRaw(requestParameters, initOverrides) {
|
|
178
|
+
if (requestParameters['deploymentId'] == null) {
|
|
179
|
+
throw new runtime.RequiredError('deploymentId', 'Required parameter "deploymentId" was null or undefined when calling listMcpAppTools().');
|
|
180
|
+
}
|
|
181
|
+
if (requestParameters['kind'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('kind', 'Required parameter "kind" was null or undefined when calling listMcpAppTools().');
|
|
183
|
+
}
|
|
184
|
+
const queryParameters = {};
|
|
185
|
+
if (requestParameters['deploymentId'] != null) {
|
|
186
|
+
queryParameters['deploymentId'] = requestParameters['deploymentId'];
|
|
187
|
+
}
|
|
188
|
+
if (requestParameters['kind'] != null) {
|
|
189
|
+
queryParameters['kind'] = requestParameters['kind'];
|
|
190
|
+
}
|
|
191
|
+
const headerParameters = {};
|
|
192
|
+
let urlPath = `/api/v1/toolsets/mcp-apps/tools`;
|
|
193
|
+
const response = await this.request({
|
|
194
|
+
path: urlPath,
|
|
195
|
+
method: 'GET',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Calls DIAL Core\'s generic MCP JSON-RPC proxy\'s tools/list for the given deployment (toolset or application) and returns only the tools that declare an MCP Apps UI resource (`_meta.ui.resourceUri`).
|
|
203
|
+
* List MCP Apps-capable tools for an MCP-enabled deployment
|
|
204
|
+
*/
|
|
205
|
+
async listMcpAppTools(requestParameters, initOverrides) {
|
|
206
|
+
const response = await this.listMcpAppToolsRaw(requestParameters, initOverrides);
|
|
207
|
+
return await response.value();
|
|
208
|
+
}
|
|
107
209
|
/**
|
|
108
210
|
* Returns the list of DIAL Core toolsets visible to the authenticated session user. Proxies GET /openai/toolsets using the caller\'s session access token. Results are cached server-side for 30 seconds per user; the response carries no client-facing Cache-Control so a browser never serves a stale copy across a login/logout that already invalidated that cache.
|
|
109
211
|
* List available toolsets
|
|
@@ -229,3 +331,10 @@ class ToolsetsApi extends runtime.BaseAPI {
|
|
|
229
331
|
}
|
|
230
332
|
}
|
|
231
333
|
exports.ToolsetsApi = ToolsetsApi;
|
|
334
|
+
/**
|
|
335
|
+
* @export
|
|
336
|
+
*/
|
|
337
|
+
exports.ListMcpAppToolsKindEnum = {
|
|
338
|
+
Toolset: 'toolset',
|
|
339
|
+
Application: 'application',
|
|
340
|
+
};
|