@breign/client 1.0.202 → 1.0.204
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/dist/apis/ConversationsApi.d.ts +13 -0
- package/dist/apis/ConversationsApi.js +28 -0
- package/dist/apis/ToolsApi.d.ts +43 -1
- package/dist/apis/ToolsApi.js +105 -0
- package/dist/models/AgentToolUio.d.ts +7 -0
- package/dist/models/AgentToolUio.js +3 -0
- package/dist/models/ToolCreateRequestUio.d.ts +8 -1
- package/dist/models/ToolCreateRequestUio.js +3 -0
- package/dist/models/ToolOpenApiCreateUio.d.ts +60 -0
- package/dist/models/ToolOpenApiCreateUio.js +62 -0
- package/dist/models/ToolOpenApiDefinitionInputUio.d.ts +38 -0
- package/dist/models/ToolOpenApiDefinitionInputUio.js +50 -0
- package/dist/models/ToolOpenApiDetectedAuthUio.d.ts +55 -0
- package/dist/models/ToolOpenApiDetectedAuthUio.js +65 -0
- package/dist/models/ToolOpenApiInfoUio.d.ts +44 -0
- package/dist/models/ToolOpenApiInfoUio.js +58 -0
- package/dist/models/ToolOpenApiOAuth2FlowUio.d.ts +50 -0
- package/dist/models/ToolOpenApiOAuth2FlowUio.js +60 -0
- package/dist/models/ToolOpenApiOperationChangeUio.d.ts +38 -0
- package/dist/models/ToolOpenApiOperationChangeUio.js +54 -0
- package/dist/models/ToolOpenApiOperationUio.d.ts +117 -0
- package/dist/models/ToolOpenApiOperationUio.js +102 -0
- package/dist/models/ToolOpenApiPreviewResponseUio.d.ts +71 -0
- package/dist/models/ToolOpenApiPreviewResponseUio.js +77 -0
- package/dist/models/ToolOpenApiReimportRequestUio.d.ts +44 -0
- package/dist/models/ToolOpenApiReimportRequestUio.js +52 -0
- package/dist/models/ToolOpenApiReimportResponseUio.d.ts +70 -0
- package/dist/models/ToolOpenApiReimportResponseUio.js +74 -0
- package/dist/models/ToolOpenApiSourceUio.d.ts +46 -0
- package/dist/models/ToolOpenApiSourceUio.js +60 -0
- package/dist/models/ToolOpenApiUio.d.ts +94 -0
- package/dist/models/ToolOpenApiUio.js +88 -0
- package/dist/models/ToolSecureUio.d.ts +9 -1
- package/dist/models/ToolSecureUio.js +5 -1
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/openapi.json +531 -3
- package/package.json +1 -1
|
@@ -39,6 +39,9 @@ export interface DeleteContextCustomVariableKeyRequest {
|
|
|
39
39
|
conversationId: string;
|
|
40
40
|
key: string;
|
|
41
41
|
}
|
|
42
|
+
export interface DeleteConversationByIdRequest {
|
|
43
|
+
conversationId: string;
|
|
44
|
+
}
|
|
42
45
|
export interface DeleteConversationWorkspaceFileRequest {
|
|
43
46
|
conversationId: string;
|
|
44
47
|
path: string;
|
|
@@ -213,6 +216,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
213
216
|
* Delete a custom variable key from the context of a conversation
|
|
214
217
|
*/
|
|
215
218
|
deleteContextCustomVariableKey(conversationId: string, key: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
221
|
+
* Permanently delete a conversation.
|
|
222
|
+
*/
|
|
223
|
+
deleteConversationByIdRaw(requestParameters: DeleteConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
224
|
+
/**
|
|
225
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
226
|
+
* Permanently delete a conversation.
|
|
227
|
+
*/
|
|
228
|
+
deleteConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
216
229
|
/**
|
|
217
230
|
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
218
231
|
* Delete a file from a conversation workspace
|
|
@@ -273,6 +273,34 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
273
273
|
async deleteContextCustomVariableKey(conversationId, key, initOverrides) {
|
|
274
274
|
await this.deleteContextCustomVariableKeyRaw({ conversationId: conversationId, key: key }, initOverrides);
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
278
|
+
* Permanently delete a conversation.
|
|
279
|
+
*/
|
|
280
|
+
async deleteConversationByIdRaw(requestParameters, initOverrides) {
|
|
281
|
+
if (requestParameters['conversationId'] == null) {
|
|
282
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversationById().');
|
|
283
|
+
}
|
|
284
|
+
const queryParameters = {};
|
|
285
|
+
const headerParameters = {};
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
288
|
+
}
|
|
289
|
+
const response = await this.request({
|
|
290
|
+
path: `/conversations/{conversationId}/permanent`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
291
|
+
method: 'DELETE',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
}, initOverrides);
|
|
295
|
+
return new runtime.VoidApiResponse(response);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
|
|
299
|
+
* Permanently delete a conversation.
|
|
300
|
+
*/
|
|
301
|
+
async deleteConversationById(conversationId, initOverrides) {
|
|
302
|
+
await this.deleteConversationByIdRaw({ conversationId: conversationId }, initOverrides);
|
|
303
|
+
}
|
|
276
304
|
/**
|
|
277
305
|
* Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
|
|
278
306
|
* Delete a file from a conversation workspace
|
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, McpCallLogEventUio, McpCallLogStatusUio, McpCallLogsDeletedResponseUio, McpCallLogsResponseUio, McpLogsSettingsRequestUio, McpLogsSettingsResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, McpCallLogEventUio, McpCallLogStatusUio, McpCallLogsDeletedResponseUio, McpCallLogsResponseUio, McpLogsSettingsRequestUio, McpLogsSettingsResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolOpenApiDefinitionInputUio, ToolOpenApiPreviewResponseUio, ToolOpenApiReimportRequestUio, ToolOpenApiReimportResponseUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -57,6 +57,14 @@ export interface ListMcpCallLogsRequest {
|
|
|
57
57
|
beforeCreatedAt?: string;
|
|
58
58
|
beforeId?: string;
|
|
59
59
|
}
|
|
60
|
+
export interface PreviewOpenApiToolRequest {
|
|
61
|
+
organizationId: string;
|
|
62
|
+
toolOpenApiDefinitionInputUio: ToolOpenApiDefinitionInputUio;
|
|
63
|
+
}
|
|
64
|
+
export interface ReimportOpenApiToolRequest {
|
|
65
|
+
toolId: string;
|
|
66
|
+
toolOpenApiReimportRequestUio: ToolOpenApiReimportRequestUio;
|
|
67
|
+
}
|
|
60
68
|
export interface RevealToolTokenRequest {
|
|
61
69
|
toolId: string;
|
|
62
70
|
revealTokenRequestUio: RevealTokenRequestUio;
|
|
@@ -84,6 +92,10 @@ export interface UpdateMcpLogsSettingsRequest {
|
|
|
84
92
|
toolId: string;
|
|
85
93
|
mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio;
|
|
86
94
|
}
|
|
95
|
+
export interface UpdateOpenApiAllowedToolsRequest {
|
|
96
|
+
toolId: string;
|
|
97
|
+
toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio;
|
|
98
|
+
}
|
|
87
99
|
export interface UpdateToolRequest {
|
|
88
100
|
toolId: string;
|
|
89
101
|
toolUpdateRequestUio: ToolUpdateRequestUio;
|
|
@@ -224,6 +236,26 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
224
236
|
* Read the MCP traces of a tool
|
|
225
237
|
*/
|
|
226
238
|
listMcpCallLogs(toolId: string, event?: McpCallLogEventUio, status?: McpCallLogStatusUio, limit?: number, beforeCreatedAt?: string, beforeId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpCallLogsResponseUio>;
|
|
239
|
+
/**
|
|
240
|
+
* Parses an OpenAPI 3.0 or 3.1 definition given by URL or as JSON/YAML text, and returns one action per route and HTTP verb, named after its operationId. Nothing is saved. Swagger 2.0 and external `$ref` are refused.
|
|
241
|
+
* Read an OpenAPI definition and list the actions it would create
|
|
242
|
+
*/
|
|
243
|
+
previewOpenApiToolRaw(requestParameters: PreviewOpenApiToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolOpenApiPreviewResponseUio>>;
|
|
244
|
+
/**
|
|
245
|
+
* Parses an OpenAPI 3.0 or 3.1 definition given by URL or as JSON/YAML text, and returns one action per route and HTTP verb, named after its operationId. Nothing is saved. Swagger 2.0 and external `$ref` are refused.
|
|
246
|
+
* Read an OpenAPI definition and list the actions it would create
|
|
247
|
+
*/
|
|
248
|
+
previewOpenApiTool(organizationId: string, toolOpenApiDefinitionInputUio: ToolOpenApiDefinitionInputUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolOpenApiPreviewResponseUio>;
|
|
249
|
+
/**
|
|
250
|
+
* Compares the new definition with the stored one. With `dryRun`, returns the differences only. Otherwise saves the new actions: removed ones leave the allowed list, new ones are not allowed.
|
|
251
|
+
* Import the OpenAPI definition of an openapi tool again
|
|
252
|
+
*/
|
|
253
|
+
reimportOpenApiToolRaw(requestParameters: ReimportOpenApiToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolOpenApiReimportResponseUio>>;
|
|
254
|
+
/**
|
|
255
|
+
* Compares the new definition with the stored one. With `dryRun`, returns the differences only. Otherwise saves the new actions: removed ones leave the allowed list, new ones are not allowed.
|
|
256
|
+
* Import the OpenAPI definition of an openapi tool again
|
|
257
|
+
*/
|
|
258
|
+
reimportOpenApiTool(toolId: string, toolOpenApiReimportRequestUio: ToolOpenApiReimportRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolOpenApiReimportResponseUio>;
|
|
227
259
|
/**
|
|
228
260
|
* Returns the raw token if it exists and the caller is authorized.
|
|
229
261
|
* Reveal stored tool token (masked in GET)
|
|
@@ -280,6 +312,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
280
312
|
* Turn MCP payload capture on or off for a tool
|
|
281
313
|
*/
|
|
282
314
|
updateMcpLogsSettings(toolId: string, mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpLogsSettingsResponseUio>;
|
|
315
|
+
/**
|
|
316
|
+
* Each name must be an action of the imported definition. Same body as the MCP route.
|
|
317
|
+
* Replace the list of allowed actions of an openapi tool
|
|
318
|
+
*/
|
|
319
|
+
updateOpenApiAllowedToolsRaw(requestParameters: UpdateOpenApiAllowedToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolAllowedToolsResponseUio>>;
|
|
320
|
+
/**
|
|
321
|
+
* Each name must be an action of the imported definition. Same body as the MCP route.
|
|
322
|
+
* Replace the list of allowed actions of an openapi tool
|
|
323
|
+
*/
|
|
324
|
+
updateOpenApiAllowedTools(toolId: string, toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolAllowedToolsResponseUio>;
|
|
283
325
|
/**
|
|
284
326
|
* Update a tool
|
|
285
327
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -457,6 +457,77 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
457
457
|
const response = await this.listMcpCallLogsRaw({ toolId: toolId, event: event, status: status, limit: limit, beforeCreatedAt: beforeCreatedAt, beforeId: beforeId }, initOverrides);
|
|
458
458
|
return await response.value();
|
|
459
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* Parses an OpenAPI 3.0 or 3.1 definition given by URL or as JSON/YAML text, and returns one action per route and HTTP verb, named after its operationId. Nothing is saved. Swagger 2.0 and external `$ref` are refused.
|
|
462
|
+
* Read an OpenAPI definition and list the actions it would create
|
|
463
|
+
*/
|
|
464
|
+
async previewOpenApiToolRaw(requestParameters, initOverrides) {
|
|
465
|
+
if (requestParameters['organizationId'] == null) {
|
|
466
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling previewOpenApiTool().');
|
|
467
|
+
}
|
|
468
|
+
if (requestParameters['toolOpenApiDefinitionInputUio'] == null) {
|
|
469
|
+
throw new runtime.RequiredError('toolOpenApiDefinitionInputUio', 'Required parameter "toolOpenApiDefinitionInputUio" was null or undefined when calling previewOpenApiTool().');
|
|
470
|
+
}
|
|
471
|
+
const queryParameters = {};
|
|
472
|
+
if (requestParameters['organizationId'] != null) {
|
|
473
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
474
|
+
}
|
|
475
|
+
const headerParameters = {};
|
|
476
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
477
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
478
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
479
|
+
}
|
|
480
|
+
const response = await this.request({
|
|
481
|
+
path: `/tools/openapi/preview`,
|
|
482
|
+
method: 'POST',
|
|
483
|
+
headers: headerParameters,
|
|
484
|
+
query: queryParameters,
|
|
485
|
+
body: (0, index_1.ToolOpenApiDefinitionInputUioToJSON)(requestParameters['toolOpenApiDefinitionInputUio']),
|
|
486
|
+
}, initOverrides);
|
|
487
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolOpenApiPreviewResponseUioFromJSON)(jsonValue));
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Parses an OpenAPI 3.0 or 3.1 definition given by URL or as JSON/YAML text, and returns one action per route and HTTP verb, named after its operationId. Nothing is saved. Swagger 2.0 and external `$ref` are refused.
|
|
491
|
+
* Read an OpenAPI definition and list the actions it would create
|
|
492
|
+
*/
|
|
493
|
+
async previewOpenApiTool(organizationId, toolOpenApiDefinitionInputUio, initOverrides) {
|
|
494
|
+
const response = await this.previewOpenApiToolRaw({ organizationId: organizationId, toolOpenApiDefinitionInputUio: toolOpenApiDefinitionInputUio }, initOverrides);
|
|
495
|
+
return await response.value();
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Compares the new definition with the stored one. With `dryRun`, returns the differences only. Otherwise saves the new actions: removed ones leave the allowed list, new ones are not allowed.
|
|
499
|
+
* Import the OpenAPI definition of an openapi tool again
|
|
500
|
+
*/
|
|
501
|
+
async reimportOpenApiToolRaw(requestParameters, initOverrides) {
|
|
502
|
+
if (requestParameters['toolId'] == null) {
|
|
503
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling reimportOpenApiTool().');
|
|
504
|
+
}
|
|
505
|
+
if (requestParameters['toolOpenApiReimportRequestUio'] == null) {
|
|
506
|
+
throw new runtime.RequiredError('toolOpenApiReimportRequestUio', 'Required parameter "toolOpenApiReimportRequestUio" was null or undefined when calling reimportOpenApiTool().');
|
|
507
|
+
}
|
|
508
|
+
const queryParameters = {};
|
|
509
|
+
const headerParameters = {};
|
|
510
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
511
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
512
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
513
|
+
}
|
|
514
|
+
const response = await this.request({
|
|
515
|
+
path: `/tools/{toolId}/openapi/reimport`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
516
|
+
method: 'POST',
|
|
517
|
+
headers: headerParameters,
|
|
518
|
+
query: queryParameters,
|
|
519
|
+
body: (0, index_1.ToolOpenApiReimportRequestUioToJSON)(requestParameters['toolOpenApiReimportRequestUio']),
|
|
520
|
+
}, initOverrides);
|
|
521
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolOpenApiReimportResponseUioFromJSON)(jsonValue));
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Compares the new definition with the stored one. With `dryRun`, returns the differences only. Otherwise saves the new actions: removed ones leave the allowed list, new ones are not allowed.
|
|
525
|
+
* Import the OpenAPI definition of an openapi tool again
|
|
526
|
+
*/
|
|
527
|
+
async reimportOpenApiTool(toolId, toolOpenApiReimportRequestUio, initOverrides) {
|
|
528
|
+
const response = await this.reimportOpenApiToolRaw({ toolId: toolId, toolOpenApiReimportRequestUio: toolOpenApiReimportRequestUio }, initOverrides);
|
|
529
|
+
return await response.value();
|
|
530
|
+
}
|
|
460
531
|
/**
|
|
461
532
|
* Returns the raw token if it exists and the caller is authorized.
|
|
462
533
|
* Reveal stored tool token (masked in GET)
|
|
@@ -662,6 +733,40 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
662
733
|
const response = await this.updateMcpLogsSettingsRaw({ toolId: toolId, mcpLogsSettingsRequestUio: mcpLogsSettingsRequestUio }, initOverrides);
|
|
663
734
|
return await response.value();
|
|
664
735
|
}
|
|
736
|
+
/**
|
|
737
|
+
* Each name must be an action of the imported definition. Same body as the MCP route.
|
|
738
|
+
* Replace the list of allowed actions of an openapi tool
|
|
739
|
+
*/
|
|
740
|
+
async updateOpenApiAllowedToolsRaw(requestParameters, initOverrides) {
|
|
741
|
+
if (requestParameters['toolId'] == null) {
|
|
742
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateOpenApiAllowedTools().');
|
|
743
|
+
}
|
|
744
|
+
if (requestParameters['toolAllowedToolsRequestUio'] == null) {
|
|
745
|
+
throw new runtime.RequiredError('toolAllowedToolsRequestUio', 'Required parameter "toolAllowedToolsRequestUio" was null or undefined when calling updateOpenApiAllowedTools().');
|
|
746
|
+
}
|
|
747
|
+
const queryParameters = {};
|
|
748
|
+
const headerParameters = {};
|
|
749
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
750
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
751
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
752
|
+
}
|
|
753
|
+
const response = await this.request({
|
|
754
|
+
path: `/tools/{toolId}/openapi/allowed-tools`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
755
|
+
method: 'PUT',
|
|
756
|
+
headers: headerParameters,
|
|
757
|
+
query: queryParameters,
|
|
758
|
+
body: (0, index_1.ToolAllowedToolsRequestUioToJSON)(requestParameters['toolAllowedToolsRequestUio']),
|
|
759
|
+
}, initOverrides);
|
|
760
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolAllowedToolsResponseUioFromJSON)(jsonValue));
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Each name must be an action of the imported definition. Same body as the MCP route.
|
|
764
|
+
* Replace the list of allowed actions of an openapi tool
|
|
765
|
+
*/
|
|
766
|
+
async updateOpenApiAllowedTools(toolId, toolAllowedToolsRequestUio, initOverrides) {
|
|
767
|
+
const response = await this.updateOpenApiAllowedToolsRaw({ toolId: toolId, toolAllowedToolsRequestUio: toolAllowedToolsRequestUio }, initOverrides);
|
|
768
|
+
return await response.value();
|
|
769
|
+
}
|
|
665
770
|
/**
|
|
666
771
|
* Update a tool
|
|
667
772
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ToolOpenApiUio } from './ToolOpenApiUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -75,6 +76,12 @@ export interface AgentToolUio {
|
|
|
75
76
|
mcp?: {
|
|
76
77
|
[key: string]: any;
|
|
77
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {ToolOpenApiUio}
|
|
82
|
+
* @memberof AgentToolUio
|
|
83
|
+
*/
|
|
84
|
+
openapi?: ToolOpenApiUio;
|
|
78
85
|
/**
|
|
79
86
|
*
|
|
80
87
|
* @type {boolean}
|
|
@@ -19,6 +19,7 @@ exports.AgentToolUioFromJSON = AgentToolUioFromJSON;
|
|
|
19
19
|
exports.AgentToolUioFromJSONTyped = AgentToolUioFromJSONTyped;
|
|
20
20
|
exports.AgentToolUioToJSON = AgentToolUioToJSON;
|
|
21
21
|
exports.AgentToolUioToJSONTyped = AgentToolUioToJSONTyped;
|
|
22
|
+
const ToolOpenApiUio_1 = require("./ToolOpenApiUio");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -59,6 +60,7 @@ function AgentToolUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'configuration': json['configuration'] == null ? undefined : json['configuration'],
|
|
60
61
|
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
61
62
|
'mcp': json['mcp'] == null ? undefined : json['mcp'],
|
|
63
|
+
'openapi': json['openapi'] == null ? undefined : (0, ToolOpenApiUio_1.ToolOpenApiUioFromJSON)(json['openapi']),
|
|
62
64
|
'restricted': json['restricted'] == null ? undefined : json['restricted'],
|
|
63
65
|
'isSetup': json['isSetup'] == null ? undefined : json['isSetup'],
|
|
64
66
|
'allowedMethods': json['allowedMethods'] == null ? undefined : json['allowedMethods'],
|
|
@@ -81,6 +83,7 @@ function AgentToolUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
83
|
'configuration': value['configuration'],
|
|
82
84
|
'manifest': value['manifest'],
|
|
83
85
|
'mcp': value['mcp'],
|
|
86
|
+
'openapi': (0, ToolOpenApiUio_1.ToolOpenApiUioToJSON)(value['openapi']),
|
|
84
87
|
'restricted': value['restricted'],
|
|
85
88
|
'isSetup': value['isSetup'],
|
|
86
89
|
'allowedMethods': value['allowedMethods'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ToolOpenApiCreateUio } from './ToolOpenApiCreateUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -34,7 +35,7 @@ export interface ToolCreateRequestUio {
|
|
|
34
35
|
*/
|
|
35
36
|
description?: string | null;
|
|
36
37
|
/**
|
|
37
|
-
* e.g. tool_api | mcp
|
|
38
|
+
* e.g. tool_api | mcp | openapi
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof ToolCreateRequestUio
|
|
40
41
|
*/
|
|
@@ -69,6 +70,12 @@ export interface ToolCreateRequestUio {
|
|
|
69
70
|
mcp?: {
|
|
70
71
|
[key: string]: any;
|
|
71
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ToolOpenApiCreateUio}
|
|
76
|
+
* @memberof ToolCreateRequestUio
|
|
77
|
+
*/
|
|
78
|
+
openapi?: ToolOpenApiCreateUio;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.ToolCreateRequestUioFromJSON = ToolCreateRequestUioFromJSON;
|
|
|
19
19
|
exports.ToolCreateRequestUioFromJSONTyped = ToolCreateRequestUioFromJSONTyped;
|
|
20
20
|
exports.ToolCreateRequestUioToJSON = ToolCreateRequestUioToJSON;
|
|
21
21
|
exports.ToolCreateRequestUioToJSONTyped = ToolCreateRequestUioToJSONTyped;
|
|
22
|
+
const ToolOpenApiCreateUio_1 = require("./ToolOpenApiCreateUio");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -56,6 +57,7 @@ function ToolCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
57
|
'configuration': json['configuration'],
|
|
57
58
|
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
58
59
|
'mcp': json['mcp'] == null ? undefined : json['mcp'],
|
|
60
|
+
'openapi': json['openapi'] == null ? undefined : (0, ToolOpenApiCreateUio_1.ToolOpenApiCreateUioFromJSON)(json['openapi']),
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
63
|
function ToolCreateRequestUioToJSON(json) {
|
|
@@ -74,5 +76,6 @@ function ToolCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
76
|
'configuration': value['configuration'],
|
|
75
77
|
'manifest': value['manifest'],
|
|
76
78
|
'mcp': value['mcp'],
|
|
79
|
+
'openapi': (0, ToolOpenApiCreateUio_1.ToolOpenApiCreateUioToJSON)(value['openapi']),
|
|
77
80
|
};
|
|
78
81
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The definition of a new `openapi` tool. The server parses it again: the actions are never taken from the client.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolOpenApiCreateUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolOpenApiCreateUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolOpenApiCreateUio
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolOpenApiCreateUio
|
|
28
|
+
*/
|
|
29
|
+
content?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Set<string>}
|
|
33
|
+
* @memberof ToolOpenApiCreateUio
|
|
34
|
+
*/
|
|
35
|
+
allowedTools?: Set<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: string; }}
|
|
39
|
+
* @memberof ToolOpenApiCreateUio
|
|
40
|
+
*/
|
|
41
|
+
approvalModes?: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const ToolOpenApiCreateUioApprovalModesEnum: {
|
|
49
|
+
readonly Always: "always";
|
|
50
|
+
readonly Never: "never";
|
|
51
|
+
};
|
|
52
|
+
export type ToolOpenApiCreateUioApprovalModesEnum = typeof ToolOpenApiCreateUioApprovalModesEnum[keyof typeof ToolOpenApiCreateUioApprovalModesEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ToolOpenApiCreateUio interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfToolOpenApiCreateUio(value: object): value is ToolOpenApiCreateUio;
|
|
57
|
+
export declare function ToolOpenApiCreateUioFromJSON(json: any): ToolOpenApiCreateUio;
|
|
58
|
+
export declare function ToolOpenApiCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolOpenApiCreateUio;
|
|
59
|
+
export declare function ToolOpenApiCreateUioToJSON(json: any): ToolOpenApiCreateUio;
|
|
60
|
+
export declare function ToolOpenApiCreateUioToJSONTyped(value?: ToolOpenApiCreateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ToolOpenApiCreateUioApprovalModesEnum = void 0;
|
|
17
|
+
exports.instanceOfToolOpenApiCreateUio = instanceOfToolOpenApiCreateUio;
|
|
18
|
+
exports.ToolOpenApiCreateUioFromJSON = ToolOpenApiCreateUioFromJSON;
|
|
19
|
+
exports.ToolOpenApiCreateUioFromJSONTyped = ToolOpenApiCreateUioFromJSONTyped;
|
|
20
|
+
exports.ToolOpenApiCreateUioToJSON = ToolOpenApiCreateUioToJSON;
|
|
21
|
+
exports.ToolOpenApiCreateUioToJSONTyped = ToolOpenApiCreateUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ToolOpenApiCreateUioApprovalModesEnum = {
|
|
26
|
+
Always: 'always',
|
|
27
|
+
Never: 'never'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ToolOpenApiCreateUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfToolOpenApiCreateUio(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ToolOpenApiCreateUioFromJSON(json) {
|
|
36
|
+
return ToolOpenApiCreateUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ToolOpenApiCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
44
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
45
|
+
'allowedTools': json['allowedTools'] == null ? undefined : new Set(json['allowedTools']),
|
|
46
|
+
'approvalModes': json['approvalModes'] == null ? undefined : json['approvalModes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ToolOpenApiCreateUioToJSON(json) {
|
|
50
|
+
return ToolOpenApiCreateUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ToolOpenApiCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'url': value['url'],
|
|
58
|
+
'content': value['content'],
|
|
59
|
+
'allowedTools': value['allowedTools'] == null ? undefined : Array.from(value['allowedTools']),
|
|
60
|
+
'approvalModes': value['approvalModes'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A definition given by URL, or its JSON or YAML text. Exactly one of the two.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolOpenApiDefinitionInputUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolOpenApiDefinitionInputUio {
|
|
18
|
+
/**
|
|
19
|
+
* Public http(s) URL of the definition.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolOpenApiDefinitionInputUio
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* JSON or YAML text of the definition (2 MiB max).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolOpenApiDefinitionInputUio
|
|
28
|
+
*/
|
|
29
|
+
content?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ToolOpenApiDefinitionInputUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfToolOpenApiDefinitionInputUio(value: object): value is ToolOpenApiDefinitionInputUio;
|
|
35
|
+
export declare function ToolOpenApiDefinitionInputUioFromJSON(json: any): ToolOpenApiDefinitionInputUio;
|
|
36
|
+
export declare function ToolOpenApiDefinitionInputUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolOpenApiDefinitionInputUio;
|
|
37
|
+
export declare function ToolOpenApiDefinitionInputUioToJSON(json: any): ToolOpenApiDefinitionInputUio;
|
|
38
|
+
export declare function ToolOpenApiDefinitionInputUioToJSONTyped(value?: ToolOpenApiDefinitionInputUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfToolOpenApiDefinitionInputUio = instanceOfToolOpenApiDefinitionInputUio;
|
|
17
|
+
exports.ToolOpenApiDefinitionInputUioFromJSON = ToolOpenApiDefinitionInputUioFromJSON;
|
|
18
|
+
exports.ToolOpenApiDefinitionInputUioFromJSONTyped = ToolOpenApiDefinitionInputUioFromJSONTyped;
|
|
19
|
+
exports.ToolOpenApiDefinitionInputUioToJSON = ToolOpenApiDefinitionInputUioToJSON;
|
|
20
|
+
exports.ToolOpenApiDefinitionInputUioToJSONTyped = ToolOpenApiDefinitionInputUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolOpenApiDefinitionInputUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolOpenApiDefinitionInputUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ToolOpenApiDefinitionInputUioFromJSON(json) {
|
|
28
|
+
return ToolOpenApiDefinitionInputUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ToolOpenApiDefinitionInputUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
36
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ToolOpenApiDefinitionInputUioToJSON(json) {
|
|
40
|
+
return ToolOpenApiDefinitionInputUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ToolOpenApiDefinitionInputUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'url': value['url'],
|
|
48
|
+
'content': value['content'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ToolOpenApiOAuth2FlowUio } from './ToolOpenApiOAuth2FlowUio';
|
|
13
|
+
/**
|
|
14
|
+
* The authentication the definition declares in `securitySchemes`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolOpenApiDetectedAuthUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolOpenApiDetectedAuthUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ToolOpenApiDetectedAuthUio
|
|
23
|
+
*/
|
|
24
|
+
authType: ToolOpenApiDetectedAuthUioAuthTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ToolOpenApiDetectedAuthUio
|
|
29
|
+
*/
|
|
30
|
+
headerName?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ToolOpenApiOAuth2FlowUio}
|
|
34
|
+
* @memberof ToolOpenApiDetectedAuthUio
|
|
35
|
+
*/
|
|
36
|
+
oauth2?: ToolOpenApiOAuth2FlowUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const ToolOpenApiDetectedAuthUioAuthTypeEnum: {
|
|
42
|
+
readonly None: "none";
|
|
43
|
+
readonly Bearer: "bearer";
|
|
44
|
+
readonly Header: "header";
|
|
45
|
+
readonly Oauth2: "oauth2";
|
|
46
|
+
};
|
|
47
|
+
export type ToolOpenApiDetectedAuthUioAuthTypeEnum = typeof ToolOpenApiDetectedAuthUioAuthTypeEnum[keyof typeof ToolOpenApiDetectedAuthUioAuthTypeEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ToolOpenApiDetectedAuthUio interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfToolOpenApiDetectedAuthUio(value: object): value is ToolOpenApiDetectedAuthUio;
|
|
52
|
+
export declare function ToolOpenApiDetectedAuthUioFromJSON(json: any): ToolOpenApiDetectedAuthUio;
|
|
53
|
+
export declare function ToolOpenApiDetectedAuthUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolOpenApiDetectedAuthUio;
|
|
54
|
+
export declare function ToolOpenApiDetectedAuthUioToJSON(json: any): ToolOpenApiDetectedAuthUio;
|
|
55
|
+
export declare function ToolOpenApiDetectedAuthUioToJSONTyped(value?: ToolOpenApiDetectedAuthUio | null, ignoreDiscriminator?: boolean): any;
|