@breign/client 1.0.84 → 1.0.85
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 +12 -1
- package/dist/apis/ToolsApi.js +27 -0
- package/dist/models/IntrospectMcpTool200ResponseUio.d.ts +48 -0
- package/dist/models/IntrospectMcpTool200ResponseUio.js +52 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +62 -0
- 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, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -36,6 +36,9 @@ export interface DisconnectOAuth2ToolRequest {
|
|
|
36
36
|
export interface GetToolSecureRequest {
|
|
37
37
|
toolId: string;
|
|
38
38
|
}
|
|
39
|
+
export interface IntrospectMcpToolRequest {
|
|
40
|
+
toolId: string;
|
|
41
|
+
}
|
|
39
42
|
export interface RevealToolTokenRequest {
|
|
40
43
|
toolId: string;
|
|
41
44
|
revealTokenRequestUio: RevealTokenRequestUio;
|
|
@@ -126,6 +129,14 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
126
129
|
* Get a specific tool (UI-safe)
|
|
127
130
|
*/
|
|
128
131
|
getToolSecure(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolSecureUio>;
|
|
132
|
+
/**
|
|
133
|
+
* Introspect an MCP tool server to refresh available actions
|
|
134
|
+
*/
|
|
135
|
+
introspectMcpToolRaw(requestParameters: IntrospectMcpToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntrospectMcpTool200ResponseUio>>;
|
|
136
|
+
/**
|
|
137
|
+
* Introspect an MCP tool server to refresh available actions
|
|
138
|
+
*/
|
|
139
|
+
introspectMcpTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntrospectMcpTool200ResponseUio>;
|
|
129
140
|
/**
|
|
130
141
|
* Returns the raw token if it exists and the caller is authorized.
|
|
131
142
|
* Reveal stored tool token (masked in GET)
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -266,6 +266,33 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
266
266
|
const response = await this.getToolSecureRaw({ toolId: toolId }, initOverrides);
|
|
267
267
|
return await response.value();
|
|
268
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Introspect an MCP tool server to refresh available actions
|
|
271
|
+
*/
|
|
272
|
+
async introspectMcpToolRaw(requestParameters, initOverrides) {
|
|
273
|
+
if (requestParameters['toolId'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling introspectMcpTool().');
|
|
275
|
+
}
|
|
276
|
+
const queryParameters = {};
|
|
277
|
+
const headerParameters = {};
|
|
278
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
279
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
280
|
+
}
|
|
281
|
+
const response = await this.request({
|
|
282
|
+
path: `/tools/{toolId}/mcp/introspect`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
283
|
+
method: 'GET',
|
|
284
|
+
headers: headerParameters,
|
|
285
|
+
query: queryParameters,
|
|
286
|
+
}, initOverrides);
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntrospectMcpTool200ResponseUioFromJSON)(jsonValue));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Introspect an MCP tool server to refresh available actions
|
|
291
|
+
*/
|
|
292
|
+
async introspectMcpTool(toolId, initOverrides) {
|
|
293
|
+
const response = await this.introspectMcpToolRaw({ toolId: toolId }, initOverrides);
|
|
294
|
+
return await response.value();
|
|
295
|
+
}
|
|
269
296
|
/**
|
|
270
297
|
* Returns the raw token if it exists and the caller is authorized.
|
|
271
298
|
* Reveal stored tool token (masked in GET)
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* @interface IntrospectMcpTool200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface IntrospectMcpTool200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof IntrospectMcpTool200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
introspection?: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {{ [key: string]: any; }}
|
|
29
|
+
* @memberof IntrospectMcpTool200ResponseUio
|
|
30
|
+
*/
|
|
31
|
+
definition?: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof IntrospectMcpTool200ResponseUio
|
|
38
|
+
*/
|
|
39
|
+
allowedTools?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the IntrospectMcpTool200ResponseUio interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfIntrospectMcpTool200ResponseUio(value: object): value is IntrospectMcpTool200ResponseUio;
|
|
45
|
+
export declare function IntrospectMcpTool200ResponseUioFromJSON(json: any): IntrospectMcpTool200ResponseUio;
|
|
46
|
+
export declare function IntrospectMcpTool200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntrospectMcpTool200ResponseUio;
|
|
47
|
+
export declare function IntrospectMcpTool200ResponseUioToJSON(json: any): IntrospectMcpTool200ResponseUio;
|
|
48
|
+
export declare function IntrospectMcpTool200ResponseUioToJSONTyped(value?: IntrospectMcpTool200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfIntrospectMcpTool200ResponseUio = instanceOfIntrospectMcpTool200ResponseUio;
|
|
17
|
+
exports.IntrospectMcpTool200ResponseUioFromJSON = IntrospectMcpTool200ResponseUioFromJSON;
|
|
18
|
+
exports.IntrospectMcpTool200ResponseUioFromJSONTyped = IntrospectMcpTool200ResponseUioFromJSONTyped;
|
|
19
|
+
exports.IntrospectMcpTool200ResponseUioToJSON = IntrospectMcpTool200ResponseUioToJSON;
|
|
20
|
+
exports.IntrospectMcpTool200ResponseUioToJSONTyped = IntrospectMcpTool200ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IntrospectMcpTool200ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIntrospectMcpTool200ResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function IntrospectMcpTool200ResponseUioFromJSON(json) {
|
|
28
|
+
return IntrospectMcpTool200ResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function IntrospectMcpTool200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'introspection': json['introspection'] == null ? undefined : json['introspection'],
|
|
36
|
+
'definition': json['definition'] == null ? undefined : json['definition'],
|
|
37
|
+
'allowedTools': json['allowedTools'] == null ? undefined : json['allowedTools'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IntrospectMcpTool200ResponseUioToJSON(json) {
|
|
41
|
+
return IntrospectMcpTool200ResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IntrospectMcpTool200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'introspection': value['introspection'],
|
|
49
|
+
'definition': value['definition'],
|
|
50
|
+
'allowedTools': value['allowedTools'],
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ export * from './ImageKnowledgeUio';
|
|
|
159
159
|
export * from './ImportFileToAgentKnowledge200ResponseUio';
|
|
160
160
|
export * from './InputUio';
|
|
161
161
|
export * from './InstanceUio';
|
|
162
|
+
export * from './IntrospectMcpTool200ResponseUio';
|
|
162
163
|
export * from './KnowledgeBaseConfigurationAuthenticationOneOfUio';
|
|
163
164
|
export * from './KnowledgeBaseConfigurationAuthenticationUio';
|
|
164
165
|
export * from './KnowledgeBaseConfigurationUio';
|
package/dist/models/index.js
CHANGED
|
@@ -177,6 +177,7 @@ __exportStar(require("./ImageKnowledgeUio"), exports);
|
|
|
177
177
|
__exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
|
|
178
178
|
__exportStar(require("./InputUio"), exports);
|
|
179
179
|
__exportStar(require("./InstanceUio"), exports);
|
|
180
|
+
__exportStar(require("./IntrospectMcpTool200ResponseUio"), exports);
|
|
180
181
|
__exportStar(require("./KnowledgeBaseConfigurationAuthenticationOneOfUio"), exports);
|
|
181
182
|
__exportStar(require("./KnowledgeBaseConfigurationAuthenticationUio"), exports);
|
|
182
183
|
__exportStar(require("./KnowledgeBaseConfigurationUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -6922,6 +6922,49 @@
|
|
|
6922
6922
|
"tags" : [ "tools" ]
|
|
6923
6923
|
}
|
|
6924
6924
|
},
|
|
6925
|
+
"/tools/{toolId}/mcp/introspect" : {
|
|
6926
|
+
"get" : {
|
|
6927
|
+
"operationId" : "introspectMcpTool",
|
|
6928
|
+
"parameters" : [ {
|
|
6929
|
+
"description" : "Tool identifier",
|
|
6930
|
+
"in" : "path",
|
|
6931
|
+
"name" : "toolId",
|
|
6932
|
+
"required" : true,
|
|
6933
|
+
"schema" : {
|
|
6934
|
+
"type" : "string"
|
|
6935
|
+
}
|
|
6936
|
+
} ],
|
|
6937
|
+
"responses" : {
|
|
6938
|
+
"200" : {
|
|
6939
|
+
"content" : {
|
|
6940
|
+
"application/json" : {
|
|
6941
|
+
"schema" : {
|
|
6942
|
+
"$ref" : "#/components/schemas/introspectMcpTool_200_response"
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
},
|
|
6946
|
+
"description" : "MCP introspection result"
|
|
6947
|
+
},
|
|
6948
|
+
"400" : {
|
|
6949
|
+
"description" : "Tool configuration missing"
|
|
6950
|
+
},
|
|
6951
|
+
"401" : {
|
|
6952
|
+
"description" : "Unauthorized"
|
|
6953
|
+
},
|
|
6954
|
+
"403" : {
|
|
6955
|
+
"description" : "Forbidden"
|
|
6956
|
+
},
|
|
6957
|
+
"404" : {
|
|
6958
|
+
"description" : "Tool not found"
|
|
6959
|
+
},
|
|
6960
|
+
"500" : {
|
|
6961
|
+
"description" : "MCP introspection failed"
|
|
6962
|
+
}
|
|
6963
|
+
},
|
|
6964
|
+
"summary" : "Introspect an MCP tool server to refresh available actions",
|
|
6965
|
+
"tags" : [ "tools" ]
|
|
6966
|
+
}
|
|
6967
|
+
},
|
|
6925
6968
|
"/skills" : {
|
|
6926
6969
|
"get" : {
|
|
6927
6970
|
"description" : "Returns a paginated list of skills scoped to an organization",
|
|
@@ -12244,6 +12287,25 @@
|
|
|
12244
12287
|
"required" : [ "authorizationUrl" ],
|
|
12245
12288
|
"type" : "object"
|
|
12246
12289
|
},
|
|
12290
|
+
"introspectMcpTool_200_response" : {
|
|
12291
|
+
"properties" : {
|
|
12292
|
+
"introspection" : {
|
|
12293
|
+
"additionalProperties" : true,
|
|
12294
|
+
"type" : "object"
|
|
12295
|
+
},
|
|
12296
|
+
"definition" : {
|
|
12297
|
+
"additionalProperties" : true,
|
|
12298
|
+
"type" : "object"
|
|
12299
|
+
},
|
|
12300
|
+
"allowedTools" : {
|
|
12301
|
+
"items" : {
|
|
12302
|
+
"type" : "string"
|
|
12303
|
+
},
|
|
12304
|
+
"type" : "array"
|
|
12305
|
+
}
|
|
12306
|
+
},
|
|
12307
|
+
"type" : "object"
|
|
12308
|
+
},
|
|
12247
12309
|
"KnowledgeBase_files_inner" : {
|
|
12248
12310
|
"properties" : {
|
|
12249
12311
|
"id" : {
|