@breign/client 1.0.84 → 1.0.86

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.
@@ -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)
@@ -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,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
+ * Array of instruction items or a map of language code to instruction items (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsInstructionItemsUio
16
+ */
17
+ export interface FlowContentsInstructionItemsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsInstructionItemsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsInstructionItemsUio(value: object): value is FlowContentsInstructionItemsUio;
23
+ export declare function FlowContentsInstructionItemsUioFromJSON(json: any): FlowContentsInstructionItemsUio;
24
+ export declare function FlowContentsInstructionItemsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsInstructionItemsUio;
25
+ export declare function FlowContentsInstructionItemsUioToJSON(json: any): FlowContentsInstructionItemsUio;
26
+ export declare function FlowContentsInstructionItemsUioToJSONTyped(value?: FlowContentsInstructionItemsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsInstructionItemsUio = instanceOfFlowContentsInstructionItemsUio;
17
+ exports.FlowContentsInstructionItemsUioFromJSON = FlowContentsInstructionItemsUioFromJSON;
18
+ exports.FlowContentsInstructionItemsUioFromJSONTyped = FlowContentsInstructionItemsUioFromJSONTyped;
19
+ exports.FlowContentsInstructionItemsUioToJSON = FlowContentsInstructionItemsUioToJSON;
20
+ exports.FlowContentsInstructionItemsUioToJSONTyped = FlowContentsInstructionItemsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsInstructionItemsUio interface.
23
+ */
24
+ function instanceOfFlowContentsInstructionItemsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsInstructionItemsUioFromJSON(json) {
28
+ return FlowContentsInstructionItemsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsInstructionItemsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsInstructionItemsUioToJSON(json) {
34
+ return FlowContentsInstructionItemsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsInstructionItemsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -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
+ * Instructions or a map of language code to instructions (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsInstructionsUio
16
+ */
17
+ export interface FlowContentsInstructionsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsInstructionsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsInstructionsUio(value: object): value is FlowContentsInstructionsUio;
23
+ export declare function FlowContentsInstructionsUioFromJSON(json: any): FlowContentsInstructionsUio;
24
+ export declare function FlowContentsInstructionsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsInstructionsUio;
25
+ export declare function FlowContentsInstructionsUioToJSON(json: any): FlowContentsInstructionsUio;
26
+ export declare function FlowContentsInstructionsUioToJSONTyped(value?: FlowContentsInstructionsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsInstructionsUio = instanceOfFlowContentsInstructionsUio;
17
+ exports.FlowContentsInstructionsUioFromJSON = FlowContentsInstructionsUioFromJSON;
18
+ exports.FlowContentsInstructionsUioFromJSONTyped = FlowContentsInstructionsUioFromJSONTyped;
19
+ exports.FlowContentsInstructionsUioToJSON = FlowContentsInstructionsUioToJSON;
20
+ exports.FlowContentsInstructionsUioToJSONTyped = FlowContentsInstructionsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsInstructionsUio interface.
23
+ */
24
+ function instanceOfFlowContentsInstructionsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsInstructionsUioFromJSON(json) {
28
+ return FlowContentsInstructionsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsInstructionsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsInstructionsUioToJSON(json) {
34
+ return FlowContentsInstructionsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsInstructionsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -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
+ * Array of suggestions or a map of language code to suggestion array (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsSuggestionsUio
16
+ */
17
+ export interface FlowContentsSuggestionsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsSuggestionsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsSuggestionsUio(value: object): value is FlowContentsSuggestionsUio;
23
+ export declare function FlowContentsSuggestionsUioFromJSON(json: any): FlowContentsSuggestionsUio;
24
+ export declare function FlowContentsSuggestionsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsSuggestionsUio;
25
+ export declare function FlowContentsSuggestionsUioToJSON(json: any): FlowContentsSuggestionsUio;
26
+ export declare function FlowContentsSuggestionsUioToJSONTyped(value?: FlowContentsSuggestionsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsSuggestionsUio = instanceOfFlowContentsSuggestionsUio;
17
+ exports.FlowContentsSuggestionsUioFromJSON = FlowContentsSuggestionsUioFromJSON;
18
+ exports.FlowContentsSuggestionsUioFromJSONTyped = FlowContentsSuggestionsUioFromJSONTyped;
19
+ exports.FlowContentsSuggestionsUioToJSON = FlowContentsSuggestionsUioToJSON;
20
+ exports.FlowContentsSuggestionsUioToJSONTyped = FlowContentsSuggestionsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsSuggestionsUio interface.
23
+ */
24
+ function instanceOfFlowContentsSuggestionsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsSuggestionsUioFromJSON(json) {
28
+ return FlowContentsSuggestionsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsSuggestionsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsSuggestionsUioToJSON(json) {
34
+ return FlowContentsSuggestionsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsSuggestionsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -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
+ * Text content or a map of language code to text (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsTextUio
16
+ */
17
+ export interface FlowContentsTextUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsTextUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsTextUio(value: object): value is FlowContentsTextUio;
23
+ export declare function FlowContentsTextUioFromJSON(json: any): FlowContentsTextUio;
24
+ export declare function FlowContentsTextUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsTextUio;
25
+ export declare function FlowContentsTextUioToJSON(json: any): FlowContentsTextUio;
26
+ export declare function FlowContentsTextUioToJSONTyped(value?: FlowContentsTextUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsTextUio = instanceOfFlowContentsTextUio;
17
+ exports.FlowContentsTextUioFromJSON = FlowContentsTextUioFromJSON;
18
+ exports.FlowContentsTextUioFromJSONTyped = FlowContentsTextUioFromJSONTyped;
19
+ exports.FlowContentsTextUioToJSON = FlowContentsTextUioToJSON;
20
+ exports.FlowContentsTextUioToJSONTyped = FlowContentsTextUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsTextUio interface.
23
+ */
24
+ function instanceOfFlowContentsTextUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsTextUioFromJSON(json) {
28
+ return FlowContentsTextUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsTextUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsTextUioToJSON(json) {
34
+ return FlowContentsTextUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsTextUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -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
+ * Array of texts or a map of language code to text array (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsTextsUio
16
+ */
17
+ export interface FlowContentsTextsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsTextsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsTextsUio(value: object): value is FlowContentsTextsUio;
23
+ export declare function FlowContentsTextsUioFromJSON(json: any): FlowContentsTextsUio;
24
+ export declare function FlowContentsTextsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsTextsUio;
25
+ export declare function FlowContentsTextsUioToJSON(json: any): FlowContentsTextsUio;
26
+ export declare function FlowContentsTextsUioToJSONTyped(value?: FlowContentsTextsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsTextsUio = instanceOfFlowContentsTextsUio;
17
+ exports.FlowContentsTextsUioFromJSON = FlowContentsTextsUioFromJSON;
18
+ exports.FlowContentsTextsUioFromJSONTyped = FlowContentsTextsUioFromJSONTyped;
19
+ exports.FlowContentsTextsUioToJSON = FlowContentsTextsUioToJSON;
20
+ exports.FlowContentsTextsUioToJSONTyped = FlowContentsTextsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsTextsUio interface.
23
+ */
24
+ function instanceOfFlowContentsTextsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsTextsUioFromJSON(json) {
28
+ return FlowContentsTextsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsTextsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsTextsUioToJSON(json) {
34
+ return FlowContentsTextsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsTextsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -9,8 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FlowContentsSuggestionUio } from './FlowContentsSuggestionUio';
12
+ import type { FlowContentsInstructionsUio } from './FlowContentsInstructionsUio';
13
+ import type { FlowContentsSuggestionsUio } from './FlowContentsSuggestionsUio';
14
+ import type { FlowContentsTextUio } from './FlowContentsTextUio';
15
+ import type { FlowContentsTextsUio } from './FlowContentsTextsUio';
13
16
  import type { ContentsToolsUio } from './ContentsToolsUio';
17
+ import type { FlowContentsInstructionItemsUio } from './FlowContentsInstructionItemsUio';
14
18
  /**
15
19
  *
16
20
  * @export
@@ -25,28 +29,28 @@ export interface FlowContentsUio {
25
29
  rephrase?: boolean;
26
30
  /**
27
31
  *
28
- * @type {string}
32
+ * @type {FlowContentsTextUio}
29
33
  * @memberof FlowContentsUio
30
34
  */
31
- text?: string;
35
+ text?: FlowContentsTextUio;
32
36
  /**
33
37
  *
34
- * @type {Array<string>}
38
+ * @type {FlowContentsTextsUio}
35
39
  * @memberof FlowContentsUio
36
40
  */
37
- texts?: Array<string>;
41
+ texts?: FlowContentsTextsUio;
38
42
  /**
39
43
  *
40
- * @type {string}
44
+ * @type {FlowContentsInstructionsUio}
41
45
  * @memberof FlowContentsUio
42
46
  */
43
- instructions?: string;
47
+ instructions?: FlowContentsInstructionsUio;
44
48
  /**
45
49
  *
46
- * @type {Array<string>}
50
+ * @type {FlowContentsInstructionItemsUio}
47
51
  * @memberof FlowContentsUio
48
52
  */
49
- instructionItems?: Array<string>;
53
+ instructionItems?: FlowContentsInstructionItemsUio;
50
54
  /**
51
55
  *
52
56
  * @type {ContentsToolsUio}
@@ -55,10 +59,10 @@ export interface FlowContentsUio {
55
59
  tools?: ContentsToolsUio;
56
60
  /**
57
61
  *
58
- * @type {Array<FlowContentsSuggestionUio>}
62
+ * @type {FlowContentsSuggestionsUio}
59
63
  * @memberof FlowContentsUio
60
64
  */
61
- suggestions?: Array<FlowContentsSuggestionUio>;
65
+ suggestions?: FlowContentsSuggestionsUio;
62
66
  }
63
67
  /**
64
68
  * Check if a given object implements the FlowContentsUio interface.
@@ -18,8 +18,12 @@ exports.FlowContentsUioFromJSON = FlowContentsUioFromJSON;
18
18
  exports.FlowContentsUioFromJSONTyped = FlowContentsUioFromJSONTyped;
19
19
  exports.FlowContentsUioToJSON = FlowContentsUioToJSON;
20
20
  exports.FlowContentsUioToJSONTyped = FlowContentsUioToJSONTyped;
21
- const FlowContentsSuggestionUio_1 = require("./FlowContentsSuggestionUio");
21
+ const FlowContentsInstructionsUio_1 = require("./FlowContentsInstructionsUio");
22
+ const FlowContentsSuggestionsUio_1 = require("./FlowContentsSuggestionsUio");
23
+ const FlowContentsTextUio_1 = require("./FlowContentsTextUio");
24
+ const FlowContentsTextsUio_1 = require("./FlowContentsTextsUio");
22
25
  const ContentsToolsUio_1 = require("./ContentsToolsUio");
26
+ const FlowContentsInstructionItemsUio_1 = require("./FlowContentsInstructionItemsUio");
23
27
  /**
24
28
  * Check if a given object implements the FlowContentsUio interface.
25
29
  */
@@ -35,12 +39,12 @@ function FlowContentsUioFromJSONTyped(json, ignoreDiscriminator) {
35
39
  }
36
40
  return {
37
41
  'rephrase': json['rephrase'] == null ? undefined : json['rephrase'],
38
- 'text': json['text'] == null ? undefined : json['text'],
39
- 'texts': json['texts'] == null ? undefined : json['texts'],
40
- 'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
- 'instructionItems': json['instructionItems'] == null ? undefined : json['instructionItems'],
42
+ 'text': json['text'] == null ? undefined : (0, FlowContentsTextUio_1.FlowContentsTextUioFromJSON)(json['text']),
43
+ 'texts': json['texts'] == null ? undefined : (0, FlowContentsTextsUio_1.FlowContentsTextsUioFromJSON)(json['texts']),
44
+ 'instructions': json['instructions'] == null ? undefined : (0, FlowContentsInstructionsUio_1.FlowContentsInstructionsUioFromJSON)(json['instructions']),
45
+ 'instructionItems': json['instructionItems'] == null ? undefined : (0, FlowContentsInstructionItemsUio_1.FlowContentsInstructionItemsUioFromJSON)(json['instructionItems']),
42
46
  'tools': json['tools'] == null ? undefined : (0, ContentsToolsUio_1.ContentsToolsUioFromJSON)(json['tools']),
43
- 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioFromJSON)),
47
+ 'suggestions': json['suggestions'] == null ? undefined : (0, FlowContentsSuggestionsUio_1.FlowContentsSuggestionsUioFromJSON)(json['suggestions']),
44
48
  };
45
49
  }
46
50
  function FlowContentsUioToJSON(json) {
@@ -52,11 +56,11 @@ function FlowContentsUioToJSONTyped(value, ignoreDiscriminator = false) {
52
56
  }
53
57
  return {
54
58
  'rephrase': value['rephrase'],
55
- 'text': value['text'],
56
- 'texts': value['texts'],
57
- 'instructions': value['instructions'],
58
- 'instructionItems': value['instructionItems'],
59
+ 'text': (0, FlowContentsTextUio_1.FlowContentsTextUioToJSON)(value['text']),
60
+ 'texts': (0, FlowContentsTextsUio_1.FlowContentsTextsUioToJSON)(value['texts']),
61
+ 'instructions': (0, FlowContentsInstructionsUio_1.FlowContentsInstructionsUioToJSON)(value['instructions']),
62
+ 'instructionItems': (0, FlowContentsInstructionItemsUio_1.FlowContentsInstructionItemsUioToJSON)(value['instructionItems']),
59
63
  'tools': (0, ContentsToolsUio_1.ContentsToolsUioToJSON)(value['tools']),
60
- 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioToJSON)),
64
+ 'suggestions': (0, FlowContentsSuggestionsUio_1.FlowContentsSuggestionsUioToJSON)(value['suggestions']),
61
65
  };
62
66
  }
@@ -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
+ }
@@ -131,7 +131,12 @@ export * from './FileStatusUpdateRequestUio';
131
131
  export * from './FileUio';
132
132
  export * from './FileWithDownloadUrlUio';
133
133
  export * from './FillersArrayInnerUio';
134
+ export * from './FlowContentsInstructionItemsUio';
135
+ export * from './FlowContentsInstructionsUio';
134
136
  export * from './FlowContentsSuggestionUio';
137
+ export * from './FlowContentsSuggestionsUio';
138
+ export * from './FlowContentsTextUio';
139
+ export * from './FlowContentsTextsUio';
135
140
  export * from './FlowContentsUio';
136
141
  export * from './FlowEditorNodeUio';
137
142
  export * from './FlowEditorUio';
@@ -159,6 +164,7 @@ export * from './ImageKnowledgeUio';
159
164
  export * from './ImportFileToAgentKnowledge200ResponseUio';
160
165
  export * from './InputUio';
161
166
  export * from './InstanceUio';
167
+ export * from './IntrospectMcpTool200ResponseUio';
162
168
  export * from './KnowledgeBaseConfigurationAuthenticationOneOfUio';
163
169
  export * from './KnowledgeBaseConfigurationAuthenticationUio';
164
170
  export * from './KnowledgeBaseConfigurationUio';
@@ -149,7 +149,12 @@ __exportStar(require("./FileStatusUpdateRequestUio"), exports);
149
149
  __exportStar(require("./FileUio"), exports);
150
150
  __exportStar(require("./FileWithDownloadUrlUio"), exports);
151
151
  __exportStar(require("./FillersArrayInnerUio"), exports);
152
+ __exportStar(require("./FlowContentsInstructionItemsUio"), exports);
153
+ __exportStar(require("./FlowContentsInstructionsUio"), exports);
152
154
  __exportStar(require("./FlowContentsSuggestionUio"), exports);
155
+ __exportStar(require("./FlowContentsSuggestionsUio"), exports);
156
+ __exportStar(require("./FlowContentsTextUio"), exports);
157
+ __exportStar(require("./FlowContentsTextsUio"), exports);
153
158
  __exportStar(require("./FlowContentsUio"), exports);
154
159
  __exportStar(require("./FlowEditorNodeUio"), exports);
155
160
  __exportStar(require("./FlowEditorUio"), exports);
@@ -177,6 +182,7 @@ __exportStar(require("./ImageKnowledgeUio"), exports);
177
182
  __exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
178
183
  __exportStar(require("./InputUio"), exports);
179
184
  __exportStar(require("./InstanceUio"), exports);
185
+ __exportStar(require("./IntrospectMcpTool200ResponseUio"), exports);
180
186
  __exportStar(require("./KnowledgeBaseConfigurationAuthenticationOneOfUio"), exports);
181
187
  __exportStar(require("./KnowledgeBaseConfigurationAuthenticationUio"), exports);
182
188
  __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",
@@ -9049,31 +9092,22 @@
9049
9092
  "type" : "boolean"
9050
9093
  },
9051
9094
  "text" : {
9052
- "type" : "string"
9095
+ "$ref" : "#/components/schemas/FlowContents_text"
9053
9096
  },
9054
9097
  "texts" : {
9055
- "items" : {
9056
- "type" : "string"
9057
- },
9058
- "type" : "array"
9098
+ "$ref" : "#/components/schemas/FlowContents_texts"
9059
9099
  },
9060
9100
  "instructions" : {
9061
- "type" : "string"
9101
+ "$ref" : "#/components/schemas/FlowContents_instructions"
9062
9102
  },
9063
9103
  "instructionItems" : {
9064
- "items" : {
9065
- "type" : "string"
9066
- },
9067
- "type" : "array"
9104
+ "$ref" : "#/components/schemas/FlowContents_instructionItems"
9068
9105
  },
9069
9106
  "tools" : {
9070
9107
  "$ref" : "#/components/schemas/ContentsTools"
9071
9108
  },
9072
9109
  "suggestions" : {
9073
- "items" : {
9074
- "$ref" : "#/components/schemas/FlowContentsSuggestion"
9075
- },
9076
- "type" : "array"
9110
+ "$ref" : "#/components/schemas/FlowContents_suggestions"
9077
9111
  }
9078
9112
  },
9079
9113
  "type" : "object"
@@ -12244,6 +12278,25 @@
12244
12278
  "required" : [ "authorizationUrl" ],
12245
12279
  "type" : "object"
12246
12280
  },
12281
+ "introspectMcpTool_200_response" : {
12282
+ "properties" : {
12283
+ "introspection" : {
12284
+ "additionalProperties" : true,
12285
+ "type" : "object"
12286
+ },
12287
+ "definition" : {
12288
+ "additionalProperties" : true,
12289
+ "type" : "object"
12290
+ },
12291
+ "allowedTools" : {
12292
+ "items" : {
12293
+ "type" : "string"
12294
+ },
12295
+ "type" : "array"
12296
+ }
12297
+ },
12298
+ "type" : "object"
12299
+ },
12247
12300
  "KnowledgeBase_files_inner" : {
12248
12301
  "properties" : {
12249
12302
  "id" : {
@@ -12361,6 +12414,79 @@
12361
12414
  "required" : [ "model", "providerId" ],
12362
12415
  "type" : "object"
12363
12416
  },
12417
+ "FlowContents_text" : {
12418
+ "anyOf" : [ {
12419
+ "type" : "string"
12420
+ }, {
12421
+ "additionalProperties" : {
12422
+ "type" : "string"
12423
+ },
12424
+ "type" : "object"
12425
+ } ],
12426
+ "description" : "Text content or a map of language code to text (multilang mode)"
12427
+ },
12428
+ "FlowContents_texts" : {
12429
+ "anyOf" : [ {
12430
+ "items" : {
12431
+ "type" : "string"
12432
+ },
12433
+ "type" : "array"
12434
+ }, {
12435
+ "additionalProperties" : {
12436
+ "items" : {
12437
+ "type" : "string"
12438
+ },
12439
+ "type" : "array"
12440
+ },
12441
+ "type" : "object"
12442
+ } ],
12443
+ "description" : "Array of texts or a map of language code to text array (multilang mode)"
12444
+ },
12445
+ "FlowContents_instructions" : {
12446
+ "anyOf" : [ {
12447
+ "type" : "string"
12448
+ }, {
12449
+ "additionalProperties" : {
12450
+ "type" : "string"
12451
+ },
12452
+ "type" : "object"
12453
+ } ],
12454
+ "description" : "Instructions or a map of language code to instructions (multilang mode)"
12455
+ },
12456
+ "FlowContents_instructionItems" : {
12457
+ "anyOf" : [ {
12458
+ "items" : {
12459
+ "type" : "string"
12460
+ },
12461
+ "type" : "array"
12462
+ }, {
12463
+ "additionalProperties" : {
12464
+ "items" : {
12465
+ "type" : "string"
12466
+ },
12467
+ "type" : "array"
12468
+ },
12469
+ "type" : "object"
12470
+ } ],
12471
+ "description" : "Array of instruction items or a map of language code to instruction items (multilang mode)"
12472
+ },
12473
+ "FlowContents_suggestions" : {
12474
+ "anyOf" : [ {
12475
+ "items" : {
12476
+ "$ref" : "#/components/schemas/FlowContentsSuggestion"
12477
+ },
12478
+ "type" : "array"
12479
+ }, {
12480
+ "additionalProperties" : {
12481
+ "items" : {
12482
+ "$ref" : "#/components/schemas/FlowContentsSuggestion"
12483
+ },
12484
+ "type" : "array"
12485
+ },
12486
+ "type" : "object"
12487
+ } ],
12488
+ "description" : "Array of suggestions or a map of language code to suggestion array (multilang mode)"
12489
+ },
12364
12490
  "AdvancedFlowEditorNode_position" : {
12365
12491
  "properties" : {
12366
12492
  "x" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",