@breign/client 1.0.207 → 1.0.209
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/ToolsApi.d.ts +6 -3
- package/dist/apis/ToolsApi.js +6 -3
- package/dist/models/ToolPresetCreateRequestUio.d.ts +7 -0
- package/dist/models/ToolPresetCreateRequestUio.js +3 -0
- package/dist/models/ToolPresetImportItemUio.d.ts +7 -0
- package/dist/models/ToolPresetImportItemUio.js +3 -0
- package/dist/models/ToolPresetTypeUio.d.ts +26 -0
- package/dist/models/ToolPresetTypeUio.js +52 -0
- package/dist/models/ToolPresetUio.d.ts +8 -1
- package/dist/models/ToolPresetUio.js +3 -0
- package/dist/models/ToolPresetUpdateRequestUio.d.ts +7 -0
- package/dist/models/ToolPresetUpdateRequestUio.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +34 -1
- package/package.json +1 -1
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, ToolOpenApiDefinitionInputUio, ToolOpenApiPreviewResponseUio, ToolOpenApiReimportRequestUio, ToolOpenApiReimportResponseUio, 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, ToolPresetTypeUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -43,6 +43,9 @@ export interface DisconnectOAuth2ToolRequest {
|
|
|
43
43
|
export interface GetToolConnectionStatusRequest {
|
|
44
44
|
toolId: string;
|
|
45
45
|
}
|
|
46
|
+
export interface GetToolPresetsRequest {
|
|
47
|
+
types?: Array<ToolPresetTypeUio>;
|
|
48
|
+
}
|
|
46
49
|
export interface GetToolSecureRequest {
|
|
47
50
|
toolId: string;
|
|
48
51
|
}
|
|
@@ -200,14 +203,14 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
200
203
|
* Get the list of active tool presets
|
|
201
204
|
* Get tool presets
|
|
202
205
|
*/
|
|
203
|
-
getToolPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
206
|
+
getToolPresetsRaw(requestParameters: GetToolPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
204
207
|
[key: string]: any;
|
|
205
208
|
}>>>;
|
|
206
209
|
/**
|
|
207
210
|
* Get the list of active tool presets
|
|
208
211
|
* Get tool presets
|
|
209
212
|
*/
|
|
210
|
-
getToolPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
213
|
+
getToolPresets(types?: Array<ToolPresetTypeUio>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
211
214
|
[key: string]: any;
|
|
212
215
|
}>>;
|
|
213
216
|
/**
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -337,8 +337,11 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
337
337
|
* Get the list of active tool presets
|
|
338
338
|
* Get tool presets
|
|
339
339
|
*/
|
|
340
|
-
async getToolPresetsRaw(initOverrides) {
|
|
340
|
+
async getToolPresetsRaw(requestParameters, initOverrides) {
|
|
341
341
|
const queryParameters = {};
|
|
342
|
+
if (requestParameters['types'] != null) {
|
|
343
|
+
queryParameters['types'] = requestParameters['types'];
|
|
344
|
+
}
|
|
342
345
|
const headerParameters = {};
|
|
343
346
|
if (this.configuration && this.configuration.apiKey) {
|
|
344
347
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -355,8 +358,8 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
355
358
|
* Get the list of active tool presets
|
|
356
359
|
* Get tool presets
|
|
357
360
|
*/
|
|
358
|
-
async getToolPresets(initOverrides) {
|
|
359
|
-
const response = await this.getToolPresetsRaw(initOverrides);
|
|
361
|
+
async getToolPresets(types, initOverrides) {
|
|
362
|
+
const response = await this.getToolPresetsRaw({ types: types }, initOverrides);
|
|
360
363
|
return await response.value();
|
|
361
364
|
}
|
|
362
365
|
/**
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
|
|
13
|
+
import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
|
|
13
14
|
import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
|
|
14
15
|
import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
|
|
15
16
|
/**
|
|
@@ -42,6 +43,12 @@ export interface ToolPresetCreateRequestUio {
|
|
|
42
43
|
* @memberof ToolPresetCreateRequestUio
|
|
43
44
|
*/
|
|
44
45
|
descriptionFr?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {ToolPresetTypeUio}
|
|
49
|
+
* @memberof ToolPresetCreateRequestUio
|
|
50
|
+
*/
|
|
51
|
+
type?: ToolPresetTypeUio;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ToolPresetCreateRequestUioFromJSONTyped = ToolPresetCreateRequestUioFrom
|
|
|
19
19
|
exports.ToolPresetCreateRequestUioToJSON = ToolPresetCreateRequestUioToJSON;
|
|
20
20
|
exports.ToolPresetCreateRequestUioToJSONTyped = ToolPresetCreateRequestUioToJSONTyped;
|
|
21
21
|
const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
|
|
22
|
+
const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
|
|
22
23
|
const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
|
|
23
24
|
const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
|
|
24
25
|
/**
|
|
@@ -47,6 +48,7 @@ function ToolPresetCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'name': json['name'],
|
|
48
49
|
'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
|
|
49
50
|
'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
|
|
51
|
+
'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
|
|
50
52
|
'url': json['url'],
|
|
51
53
|
'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
|
|
52
54
|
'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
|
|
@@ -73,6 +75,7 @@ function ToolPresetCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
73
75
|
'name': value['name'],
|
|
74
76
|
'descriptionEn': value['descriptionEn'],
|
|
75
77
|
'descriptionFr': value['descriptionFr'],
|
|
78
|
+
'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
|
|
76
79
|
'url': value['url'],
|
|
77
80
|
'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
|
|
78
81
|
'logoUrl': value['logoUrl'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
|
|
13
|
+
import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
|
|
13
14
|
import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
|
|
14
15
|
import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
|
|
15
16
|
/**
|
|
@@ -60,6 +61,12 @@ export interface ToolPresetImportItemUio {
|
|
|
60
61
|
* @memberof ToolPresetImportItemUio
|
|
61
62
|
*/
|
|
62
63
|
descriptionFr?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {ToolPresetTypeUio}
|
|
67
|
+
* @memberof ToolPresetImportItemUio
|
|
68
|
+
*/
|
|
69
|
+
type?: ToolPresetTypeUio;
|
|
63
70
|
/**
|
|
64
71
|
*
|
|
65
72
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ToolPresetImportItemUioFromJSONTyped = ToolPresetImportItemUioFromJSONTy
|
|
|
19
19
|
exports.ToolPresetImportItemUioToJSON = ToolPresetImportItemUioToJSON;
|
|
20
20
|
exports.ToolPresetImportItemUioToJSONTyped = ToolPresetImportItemUioToJSONTyped;
|
|
21
21
|
const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
|
|
22
|
+
const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
|
|
22
23
|
const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
|
|
23
24
|
const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
|
|
24
25
|
/**
|
|
@@ -50,6 +51,7 @@ function ToolPresetImportItemUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'name': json['name'],
|
|
51
52
|
'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
|
|
52
53
|
'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
|
|
54
|
+
'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
|
|
53
55
|
'url': json['url'],
|
|
54
56
|
'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
|
|
55
57
|
'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
|
|
@@ -79,6 +81,7 @@ function ToolPresetImportItemUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
81
|
'name': value['name'],
|
|
80
82
|
'descriptionEn': value['descriptionEn'],
|
|
81
83
|
'descriptionFr': value['descriptionFr'],
|
|
84
|
+
'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
|
|
82
85
|
'url': value['url'],
|
|
83
86
|
'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
|
|
84
87
|
'logoUrl': value['logoUrl'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ToolPresetTypeUio: {
|
|
17
|
+
readonly Mcp: "mcp";
|
|
18
|
+
readonly ToolApi: "tool_api";
|
|
19
|
+
readonly Openapi: "openapi";
|
|
20
|
+
};
|
|
21
|
+
export type ToolPresetTypeUio = typeof ToolPresetTypeUio[keyof typeof ToolPresetTypeUio];
|
|
22
|
+
export declare function instanceOfToolPresetTypeUio(value: any): boolean;
|
|
23
|
+
export declare function ToolPresetTypeUioFromJSON(json: any): ToolPresetTypeUio;
|
|
24
|
+
export declare function ToolPresetTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetTypeUio;
|
|
25
|
+
export declare function ToolPresetTypeUioToJSON(value?: ToolPresetTypeUio | null): any;
|
|
26
|
+
export declare function ToolPresetTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ToolPresetTypeUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ToolPresetTypeUio = void 0;
|
|
17
|
+
exports.instanceOfToolPresetTypeUio = instanceOfToolPresetTypeUio;
|
|
18
|
+
exports.ToolPresetTypeUioFromJSON = ToolPresetTypeUioFromJSON;
|
|
19
|
+
exports.ToolPresetTypeUioFromJSONTyped = ToolPresetTypeUioFromJSONTyped;
|
|
20
|
+
exports.ToolPresetTypeUioToJSON = ToolPresetTypeUioToJSON;
|
|
21
|
+
exports.ToolPresetTypeUioToJSONTyped = ToolPresetTypeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ToolPresetTypeUio = {
|
|
27
|
+
Mcp: 'mcp',
|
|
28
|
+
ToolApi: 'tool_api',
|
|
29
|
+
Openapi: 'openapi'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfToolPresetTypeUio(value) {
|
|
32
|
+
for (const key in exports.ToolPresetTypeUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ToolPresetTypeUio, key)) {
|
|
34
|
+
if (exports.ToolPresetTypeUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ToolPresetTypeUioFromJSON(json) {
|
|
42
|
+
return ToolPresetTypeUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ToolPresetTypeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ToolPresetTypeUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ToolPresetTypeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
|
|
13
|
+
import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
|
|
13
14
|
import type { ToolPresetConfigOptionUio } from './ToolPresetConfigOptionUio';
|
|
14
15
|
import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
|
|
15
16
|
/**
|
|
@@ -49,7 +50,13 @@ export interface ToolPresetUio {
|
|
|
49
50
|
*/
|
|
50
51
|
descriptionFr: string;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Kind of tool created from the preset. Optional so that a client talking to an API without this field keeps working: absent means mcp.
|
|
54
|
+
* @type {ToolPresetTypeUio}
|
|
55
|
+
* @memberof ToolPresetUio
|
|
56
|
+
*/
|
|
57
|
+
type?: ToolPresetTypeUio;
|
|
58
|
+
/**
|
|
59
|
+
* MCP server URL (mcp), ai-plugin manifest URL (tool_api) or OpenAPI definition URL (openapi), possibly with {{key}} variables declared in configOptions
|
|
53
60
|
* @type {string}
|
|
54
61
|
* @memberof ToolPresetUio
|
|
55
62
|
*/
|
|
@@ -19,6 +19,7 @@ exports.ToolPresetUioFromJSONTyped = ToolPresetUioFromJSONTyped;
|
|
|
19
19
|
exports.ToolPresetUioToJSON = ToolPresetUioToJSON;
|
|
20
20
|
exports.ToolPresetUioToJSONTyped = ToolPresetUioToJSONTyped;
|
|
21
21
|
const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
|
|
22
|
+
const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
|
|
22
23
|
const ToolPresetConfigOptionUio_1 = require("./ToolPresetConfigOptionUio");
|
|
23
24
|
const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
|
|
24
25
|
/**
|
|
@@ -68,6 +69,7 @@ function ToolPresetUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
69
|
'name': json['name'],
|
|
69
70
|
'descriptionEn': json['descriptionEn'],
|
|
70
71
|
'descriptionFr': json['descriptionFr'],
|
|
72
|
+
'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
|
|
71
73
|
'url': json['url'],
|
|
72
74
|
'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioFromJSON)),
|
|
73
75
|
'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
|
|
@@ -97,6 +99,7 @@ function ToolPresetUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
99
|
'name': value['name'],
|
|
98
100
|
'descriptionEn': value['descriptionEn'],
|
|
99
101
|
'descriptionFr': value['descriptionFr'],
|
|
102
|
+
'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
|
|
100
103
|
'url': value['url'],
|
|
101
104
|
'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioToJSON)),
|
|
102
105
|
'logoUrl': value['logoUrl'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
|
|
13
|
+
import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
|
|
13
14
|
import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
|
|
14
15
|
import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
|
|
15
16
|
/**
|
|
@@ -42,6 +43,12 @@ export interface ToolPresetUpdateRequestUio {
|
|
|
42
43
|
* @memberof ToolPresetUpdateRequestUio
|
|
43
44
|
*/
|
|
44
45
|
descriptionFr?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {ToolPresetTypeUio}
|
|
49
|
+
* @memberof ToolPresetUpdateRequestUio
|
|
50
|
+
*/
|
|
51
|
+
type?: ToolPresetTypeUio;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ToolPresetUpdateRequestUioFromJSONTyped = ToolPresetUpdateRequestUioFrom
|
|
|
19
19
|
exports.ToolPresetUpdateRequestUioToJSON = ToolPresetUpdateRequestUioToJSON;
|
|
20
20
|
exports.ToolPresetUpdateRequestUioToJSONTyped = ToolPresetUpdateRequestUioToJSONTyped;
|
|
21
21
|
const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
|
|
22
|
+
const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
|
|
22
23
|
const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
|
|
23
24
|
const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
|
|
24
25
|
/**
|
|
@@ -39,6 +40,7 @@ function ToolPresetUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'name': json['name'] == null ? undefined : json['name'],
|
|
40
41
|
'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
|
|
41
42
|
'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
|
|
43
|
+
'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
|
|
42
44
|
'url': json['url'] == null ? undefined : json['url'],
|
|
43
45
|
'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
|
|
44
46
|
'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
|
|
@@ -65,6 +67,7 @@ function ToolPresetUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
65
67
|
'name': value['name'],
|
|
66
68
|
'descriptionEn': value['descriptionEn'],
|
|
67
69
|
'descriptionFr': value['descriptionFr'],
|
|
70
|
+
'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
|
|
68
71
|
'url': value['url'],
|
|
69
72
|
'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
|
|
70
73
|
'logoUrl': value['logoUrl'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -759,6 +759,7 @@ export * from './ToolPresetImportResponseUio';
|
|
|
759
759
|
export * from './ToolPresetOAuthRegistrationUio';
|
|
760
760
|
export * from './ToolPresetPageUio';
|
|
761
761
|
export * from './ToolPresetTransportUio';
|
|
762
|
+
export * from './ToolPresetTypeUio';
|
|
762
763
|
export * from './ToolPresetUio';
|
|
763
764
|
export * from './ToolPresetUpdateRequestUio';
|
|
764
765
|
export * from './ToolResultUio';
|
package/dist/models/index.js
CHANGED
|
@@ -777,6 +777,7 @@ __exportStar(require("./ToolPresetImportResponseUio"), exports);
|
|
|
777
777
|
__exportStar(require("./ToolPresetOAuthRegistrationUio"), exports);
|
|
778
778
|
__exportStar(require("./ToolPresetPageUio"), exports);
|
|
779
779
|
__exportStar(require("./ToolPresetTransportUio"), exports);
|
|
780
|
+
__exportStar(require("./ToolPresetTypeUio"), exports);
|
|
780
781
|
__exportStar(require("./ToolPresetUio"), exports);
|
|
781
782
|
__exportStar(require("./ToolPresetUpdateRequestUio"), exports);
|
|
782
783
|
__exportStar(require("./ToolResultUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -12959,6 +12959,20 @@
|
|
|
12959
12959
|
"get" : {
|
|
12960
12960
|
"description" : "Get the list of active tool presets",
|
|
12961
12961
|
"operationId" : "getToolPresets",
|
|
12962
|
+
"parameters" : [ {
|
|
12963
|
+
"description" : "Preset types the client knows how to add. Without it, only mcp presets are returned, so that a client predating preset types never offers an API or OpenAPI preset as an MCP server.",
|
|
12964
|
+
"explode" : true,
|
|
12965
|
+
"in" : "query",
|
|
12966
|
+
"name" : "types",
|
|
12967
|
+
"required" : false,
|
|
12968
|
+
"schema" : {
|
|
12969
|
+
"items" : {
|
|
12970
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
12971
|
+
},
|
|
12972
|
+
"type" : "array"
|
|
12973
|
+
},
|
|
12974
|
+
"style" : "form"
|
|
12975
|
+
} ],
|
|
12962
12976
|
"responses" : {
|
|
12963
12977
|
"200" : {
|
|
12964
12978
|
"content" : {
|
|
@@ -32211,6 +32225,10 @@
|
|
|
32211
32225
|
"title" : "ToolOpenApiCreate",
|
|
32212
32226
|
"type" : "object"
|
|
32213
32227
|
},
|
|
32228
|
+
"ToolPresetType" : {
|
|
32229
|
+
"enum" : [ "mcp", "tool_api", "openapi" ],
|
|
32230
|
+
"type" : "string"
|
|
32231
|
+
},
|
|
32214
32232
|
"TTSRequest" : {
|
|
32215
32233
|
"properties" : {
|
|
32216
32234
|
"text" : {
|
|
@@ -39823,8 +39841,14 @@
|
|
|
39823
39841
|
"descriptionFr" : {
|
|
39824
39842
|
"type" : "string"
|
|
39825
39843
|
},
|
|
39844
|
+
"type" : {
|
|
39845
|
+
"allOf" : [ {
|
|
39846
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
39847
|
+
} ],
|
|
39848
|
+
"description" : "Kind of tool created from the preset. Optional so that a client talking to an API without this field keeps working: absent means mcp."
|
|
39849
|
+
},
|
|
39826
39850
|
"url" : {
|
|
39827
|
-
"description" : "MCP server URL, possibly with {{key}} variables declared in configOptions",
|
|
39851
|
+
"description" : "MCP server URL (mcp), ai-plugin manifest URL (tool_api) or OpenAPI definition URL (openapi), possibly with {{key}} variables declared in configOptions",
|
|
39828
39852
|
"type" : "string"
|
|
39829
39853
|
},
|
|
39830
39854
|
"configOptions" : {
|
|
@@ -39936,6 +39960,9 @@
|
|
|
39936
39960
|
"descriptionFr" : {
|
|
39937
39961
|
"type" : "string"
|
|
39938
39962
|
},
|
|
39963
|
+
"type" : {
|
|
39964
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
39965
|
+
},
|
|
39939
39966
|
"url" : {
|
|
39940
39967
|
"type" : "string"
|
|
39941
39968
|
},
|
|
@@ -40069,6 +40096,9 @@
|
|
|
40069
40096
|
"descriptionFr" : {
|
|
40070
40097
|
"type" : "string"
|
|
40071
40098
|
},
|
|
40099
|
+
"type" : {
|
|
40100
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
40101
|
+
},
|
|
40072
40102
|
"url" : {
|
|
40073
40103
|
"type" : "string"
|
|
40074
40104
|
},
|
|
@@ -40149,6 +40179,9 @@
|
|
|
40149
40179
|
"descriptionFr" : {
|
|
40150
40180
|
"type" : "string"
|
|
40151
40181
|
},
|
|
40182
|
+
"type" : {
|
|
40183
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
40184
|
+
},
|
|
40152
40185
|
"url" : {
|
|
40153
40186
|
"type" : "string"
|
|
40154
40187
|
},
|