@breign/client 1.0.158 → 1.0.159
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 +46 -1
- package/dist/apis/ToolsApi.js +107 -0
- package/dist/models/McpCallLogCursorUio.d.ts +38 -0
- package/dist/models/McpCallLogCursorUio.js +54 -0
- package/dist/models/McpCallLogEventUio.d.ts +27 -0
- package/dist/models/McpCallLogEventUio.js +53 -0
- package/dist/models/McpCallLogStatusUio.d.ts +25 -0
- package/dist/models/McpCallLogStatusUio.js +51 -0
- package/dist/models/McpCallLogUio.d.ts +162 -0
- package/dist/models/McpCallLogUio.js +114 -0
- package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
- package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
- package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
- package/dist/models/McpCallLogsResponseUio.js +68 -0
- package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsRequestUio.js +50 -0
- package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsResponseUio.js +54 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/openapi.json +353 -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, IntrospectMcpTool200ResponseUio, 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, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -28,6 +28,9 @@ export interface ConvertTextToSpeechRequest {
|
|
|
28
28
|
export interface CreateToolRequest {
|
|
29
29
|
toolCreateRequestUio: ToolCreateRequestUio;
|
|
30
30
|
}
|
|
31
|
+
export interface DeleteMcpCallLogsRequest {
|
|
32
|
+
toolId: string;
|
|
33
|
+
}
|
|
31
34
|
export interface DeleteToolRequest {
|
|
32
35
|
toolId: string;
|
|
33
36
|
}
|
|
@@ -46,6 +49,14 @@ export interface GetToolSecureRequest {
|
|
|
46
49
|
export interface IntrospectMcpToolRequest {
|
|
47
50
|
toolId: string;
|
|
48
51
|
}
|
|
52
|
+
export interface ListMcpCallLogsRequest {
|
|
53
|
+
toolId: string;
|
|
54
|
+
event?: McpCallLogEventUio;
|
|
55
|
+
status?: McpCallLogStatusUio;
|
|
56
|
+
limit?: number;
|
|
57
|
+
beforeCreatedAt?: string;
|
|
58
|
+
beforeId?: string;
|
|
59
|
+
}
|
|
49
60
|
export interface RevealToolTokenRequest {
|
|
50
61
|
toolId: string;
|
|
51
62
|
revealTokenRequestUio: RevealTokenRequestUio;
|
|
@@ -69,6 +80,10 @@ export interface UpdateMcpAllowedToolsRequest {
|
|
|
69
80
|
toolId: string;
|
|
70
81
|
toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio;
|
|
71
82
|
}
|
|
83
|
+
export interface UpdateMcpLogsSettingsRequest {
|
|
84
|
+
toolId: string;
|
|
85
|
+
mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio;
|
|
86
|
+
}
|
|
72
87
|
export interface UpdateToolRequest {
|
|
73
88
|
toolId: string;
|
|
74
89
|
toolUpdateRequestUio: ToolUpdateRequestUio;
|
|
@@ -121,6 +136,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
121
136
|
* Create a new tool
|
|
122
137
|
*/
|
|
123
138
|
createTool(toolCreateRequestUio: ToolCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentToolUio>;
|
|
139
|
+
/**
|
|
140
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
141
|
+
* Erase the MCP traces of a tool
|
|
142
|
+
*/
|
|
143
|
+
deleteMcpCallLogsRaw(requestParameters: DeleteMcpCallLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpCallLogsDeletedResponseUio>>;
|
|
144
|
+
/**
|
|
145
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
146
|
+
* Erase the MCP traces of a tool
|
|
147
|
+
*/
|
|
148
|
+
deleteMcpCallLogs(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpCallLogsDeletedResponseUio>;
|
|
124
149
|
/**
|
|
125
150
|
* Delete a tool
|
|
126
151
|
*/
|
|
@@ -189,6 +214,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
189
214
|
* Introspect an MCP tool server to refresh available actions
|
|
190
215
|
*/
|
|
191
216
|
introspectMcpTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntrospectMcpTool200ResponseUio>;
|
|
217
|
+
/**
|
|
218
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
219
|
+
* Read the MCP traces of a tool
|
|
220
|
+
*/
|
|
221
|
+
listMcpCallLogsRaw(requestParameters: ListMcpCallLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpCallLogsResponseUio>>;
|
|
222
|
+
/**
|
|
223
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
224
|
+
* Read the MCP traces of a tool
|
|
225
|
+
*/
|
|
226
|
+
listMcpCallLogs(toolId: string, event?: McpCallLogEventUio, status?: McpCallLogStatusUio, limit?: number, beforeCreatedAt?: string, beforeId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpCallLogsResponseUio>;
|
|
192
227
|
/**
|
|
193
228
|
* Returns the raw token if it exists and the caller is authorized.
|
|
194
229
|
* Reveal stored tool token (masked in GET)
|
|
@@ -235,6 +270,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
235
270
|
* Replace the list of allowed MCP tools for an MCP tool
|
|
236
271
|
*/
|
|
237
272
|
updateMcpAllowedTools(toolId: string, toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolAllowedToolsResponseUio>;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
275
|
+
* Turn MCP payload capture on or off for a tool
|
|
276
|
+
*/
|
|
277
|
+
updateMcpLogsSettingsRaw(requestParameters: UpdateMcpLogsSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpLogsSettingsResponseUio>>;
|
|
278
|
+
/**
|
|
279
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
280
|
+
* Turn MCP payload capture on or off for a tool
|
|
281
|
+
*/
|
|
282
|
+
updateMcpLogsSettings(toolId: string, mcpLogsSettingsRequestUio: McpLogsSettingsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpLogsSettingsResponseUio>;
|
|
238
283
|
/**
|
|
239
284
|
* Update a tool
|
|
240
285
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -193,6 +193,35 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
193
193
|
const response = await this.createToolRaw({ toolCreateRequestUio: toolCreateRequestUio }, initOverrides);
|
|
194
194
|
return await response.value();
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
198
|
+
* Erase the MCP traces of a tool
|
|
199
|
+
*/
|
|
200
|
+
async deleteMcpCallLogsRaw(requestParameters, initOverrides) {
|
|
201
|
+
if (requestParameters['toolId'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling deleteMcpCallLogs().');
|
|
203
|
+
}
|
|
204
|
+
const queryParameters = {};
|
|
205
|
+
const headerParameters = {};
|
|
206
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
207
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
208
|
+
}
|
|
209
|
+
const response = await this.request({
|
|
210
|
+
path: `/tools/{toolId}/mcp/logs`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
211
|
+
method: 'DELETE',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}, initOverrides);
|
|
215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpCallLogsDeletedResponseUioFromJSON)(jsonValue));
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Drops every trace of this tool. The way out when payload capture was left on and recorded something it should not have.
|
|
219
|
+
* Erase the MCP traces of a tool
|
|
220
|
+
*/
|
|
221
|
+
async deleteMcpCallLogs(toolId, initOverrides) {
|
|
222
|
+
const response = await this.deleteMcpCallLogsRaw({ toolId: toolId }, initOverrides);
|
|
223
|
+
return await response.value();
|
|
224
|
+
}
|
|
196
225
|
/**
|
|
197
226
|
* Delete a tool
|
|
198
227
|
*/
|
|
@@ -384,6 +413,50 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
384
413
|
const response = await this.introspectMcpToolRaw({ toolId: toolId }, initOverrides);
|
|
385
414
|
return await response.value();
|
|
386
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
418
|
+
* Read the MCP traces of a tool
|
|
419
|
+
*/
|
|
420
|
+
async listMcpCallLogsRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['toolId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling listMcpCallLogs().');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
if (requestParameters['event'] != null) {
|
|
426
|
+
queryParameters['event'] = requestParameters['event'];
|
|
427
|
+
}
|
|
428
|
+
if (requestParameters['status'] != null) {
|
|
429
|
+
queryParameters['status'] = requestParameters['status'];
|
|
430
|
+
}
|
|
431
|
+
if (requestParameters['limit'] != null) {
|
|
432
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
433
|
+
}
|
|
434
|
+
if (requestParameters['beforeCreatedAt'] != null) {
|
|
435
|
+
queryParameters['beforeCreatedAt'] = requestParameters['beforeCreatedAt'];
|
|
436
|
+
}
|
|
437
|
+
if (requestParameters['beforeId'] != null) {
|
|
438
|
+
queryParameters['beforeId'] = requestParameters['beforeId'];
|
|
439
|
+
}
|
|
440
|
+
const headerParameters = {};
|
|
441
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
442
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
443
|
+
}
|
|
444
|
+
const response = await this.request({
|
|
445
|
+
path: `/tools/{toolId}/mcp/logs`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
446
|
+
method: 'GET',
|
|
447
|
+
headers: headerParameters,
|
|
448
|
+
query: queryParameters,
|
|
449
|
+
}, initOverrides);
|
|
450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpCallLogsResponseUioFromJSON)(jsonValue));
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Traces of the exchanges with the MCP server of this tool, most recent first: connections, token refreshes, tool calls, and the configuration changes an administrator made. Reserved to administrators of the organisation owning the tool — a trace names the methods called and, when payload capture is on, carries an excerpt of the exchange. Paging walks backwards through time with a composite cursor. Both halves of `nextCursor` must be sent back together: a date alone cannot separate two traces written in the same millisecond.
|
|
454
|
+
* Read the MCP traces of a tool
|
|
455
|
+
*/
|
|
456
|
+
async listMcpCallLogs(toolId, event, status, limit, beforeCreatedAt, beforeId, initOverrides) {
|
|
457
|
+
const response = await this.listMcpCallLogsRaw({ toolId: toolId, event: event, status: status, limit: limit, beforeCreatedAt: beforeCreatedAt, beforeId: beforeId }, initOverrides);
|
|
458
|
+
return await response.value();
|
|
459
|
+
}
|
|
387
460
|
/**
|
|
388
461
|
* Returns the raw token if it exists and the caller is authorized.
|
|
389
462
|
* Reveal stored tool token (masked in GET)
|
|
@@ -555,6 +628,40 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
555
628
|
const response = await this.updateMcpAllowedToolsRaw({ toolId: toolId, toolAllowedToolsRequestUio: toolAllowedToolsRequestUio }, initOverrides);
|
|
556
629
|
return await response.value();
|
|
557
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
633
|
+
* Turn MCP payload capture on or off for a tool
|
|
634
|
+
*/
|
|
635
|
+
async updateMcpLogsSettingsRaw(requestParameters, initOverrides) {
|
|
636
|
+
if (requestParameters['toolId'] == null) {
|
|
637
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateMcpLogsSettings().');
|
|
638
|
+
}
|
|
639
|
+
if (requestParameters['mcpLogsSettingsRequestUio'] == null) {
|
|
640
|
+
throw new runtime.RequiredError('mcpLogsSettingsRequestUio', 'Required parameter "mcpLogsSettingsRequestUio" was null or undefined when calling updateMcpLogsSettings().');
|
|
641
|
+
}
|
|
642
|
+
const queryParameters = {};
|
|
643
|
+
const headerParameters = {};
|
|
644
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
645
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
647
|
+
}
|
|
648
|
+
const response = await this.request({
|
|
649
|
+
path: `/tools/{toolId}/mcp/logs/settings`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
650
|
+
method: 'PUT',
|
|
651
|
+
headers: headerParameters,
|
|
652
|
+
query: queryParameters,
|
|
653
|
+
body: (0, index_1.McpLogsSettingsRequestUioToJSON)(requestParameters['mcpLogsSettingsRequestUio']),
|
|
654
|
+
}, initOverrides);
|
|
655
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpLogsSettingsResponseUioFromJSON)(jsonValue));
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Whether the arguments and responses of the calls to this tool are kept in its traces. Off by default, and deliberately its own endpoint rather than a field of the tool: the arguments of an MCP call carry whatever the user asked for, so switching capture on is a debugging act an administrator takes knowingly, and the tool edit form can never reset it by accident.
|
|
659
|
+
* Turn MCP payload capture on or off for a tool
|
|
660
|
+
*/
|
|
661
|
+
async updateMcpLogsSettings(toolId, mcpLogsSettingsRequestUio, initOverrides) {
|
|
662
|
+
const response = await this.updateMcpLogsSettingsRaw({ toolId: toolId, mcpLogsSettingsRequestUio: mcpLogsSettingsRequestUio }, initOverrides);
|
|
663
|
+
return await response.value();
|
|
664
|
+
}
|
|
558
665
|
/**
|
|
559
666
|
* Update a tool
|
|
560
667
|
*/
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface McpCallLogCursorUio
|
|
16
|
+
*/
|
|
17
|
+
export interface McpCallLogCursorUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof McpCallLogCursorUio
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof McpCallLogCursorUio
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the McpCallLogCursorUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMcpCallLogCursorUio(value: object): value is McpCallLogCursorUio;
|
|
35
|
+
export declare function McpCallLogCursorUioFromJSON(json: any): McpCallLogCursorUio;
|
|
36
|
+
export declare function McpCallLogCursorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogCursorUio;
|
|
37
|
+
export declare function McpCallLogCursorUioToJSON(json: any): McpCallLogCursorUio;
|
|
38
|
+
export declare function McpCallLogCursorUioToJSONTyped(value?: McpCallLogCursorUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfMcpCallLogCursorUio = instanceOfMcpCallLogCursorUio;
|
|
17
|
+
exports.McpCallLogCursorUioFromJSON = McpCallLogCursorUioFromJSON;
|
|
18
|
+
exports.McpCallLogCursorUioFromJSONTyped = McpCallLogCursorUioFromJSONTyped;
|
|
19
|
+
exports.McpCallLogCursorUioToJSON = McpCallLogCursorUioToJSON;
|
|
20
|
+
exports.McpCallLogCursorUioToJSONTyped = McpCallLogCursorUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the McpCallLogCursorUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMcpCallLogCursorUio(value) {
|
|
25
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function McpCallLogCursorUioFromJSON(json) {
|
|
32
|
+
return McpCallLogCursorUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function McpCallLogCursorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'createdAt': json['createdAt'],
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function McpCallLogCursorUioToJSON(json) {
|
|
44
|
+
return McpCallLogCursorUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function McpCallLogCursorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'createdAt': value['createdAt'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Which moment of the exchange the trace covers. Three are network — opening the connection, renewing the tokens, calling the tool — and the fourth is an administrator changing the configuration, without which "it worked yesterday" stays unverifiable.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const McpCallLogEventUio: {
|
|
17
|
+
readonly Connect: "connect";
|
|
18
|
+
readonly AuthRefresh: "auth_refresh";
|
|
19
|
+
readonly ToolCall: "tool_call";
|
|
20
|
+
readonly ConfigChange: "config_change";
|
|
21
|
+
};
|
|
22
|
+
export type McpCallLogEventUio = typeof McpCallLogEventUio[keyof typeof McpCallLogEventUio];
|
|
23
|
+
export declare function instanceOfMcpCallLogEventUio(value: any): boolean;
|
|
24
|
+
export declare function McpCallLogEventUioFromJSON(json: any): McpCallLogEventUio;
|
|
25
|
+
export declare function McpCallLogEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogEventUio;
|
|
26
|
+
export declare function McpCallLogEventUioToJSON(value?: McpCallLogEventUio | null): any;
|
|
27
|
+
export declare function McpCallLogEventUioToJSONTyped(value: any, ignoreDiscriminator: boolean): McpCallLogEventUio;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.McpCallLogEventUio = void 0;
|
|
17
|
+
exports.instanceOfMcpCallLogEventUio = instanceOfMcpCallLogEventUio;
|
|
18
|
+
exports.McpCallLogEventUioFromJSON = McpCallLogEventUioFromJSON;
|
|
19
|
+
exports.McpCallLogEventUioFromJSONTyped = McpCallLogEventUioFromJSONTyped;
|
|
20
|
+
exports.McpCallLogEventUioToJSON = McpCallLogEventUioToJSON;
|
|
21
|
+
exports.McpCallLogEventUioToJSONTyped = McpCallLogEventUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Which moment of the exchange the trace covers. Three are network — opening the connection, renewing the tokens, calling the tool — and the fourth is an administrator changing the configuration, without which "it worked yesterday" stays unverifiable.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.McpCallLogEventUio = {
|
|
27
|
+
Connect: 'connect',
|
|
28
|
+
AuthRefresh: 'auth_refresh',
|
|
29
|
+
ToolCall: 'tool_call',
|
|
30
|
+
ConfigChange: 'config_change'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfMcpCallLogEventUio(value) {
|
|
33
|
+
for (const key in exports.McpCallLogEventUio) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.McpCallLogEventUio, key)) {
|
|
35
|
+
if (exports.McpCallLogEventUio[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function McpCallLogEventUioFromJSON(json) {
|
|
43
|
+
return McpCallLogEventUioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function McpCallLogEventUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function McpCallLogEventUioToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function McpCallLogEventUioToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 McpCallLogStatusUio: {
|
|
17
|
+
readonly Ok: "ok";
|
|
18
|
+
readonly Error: "error";
|
|
19
|
+
};
|
|
20
|
+
export type McpCallLogStatusUio = typeof McpCallLogStatusUio[keyof typeof McpCallLogStatusUio];
|
|
21
|
+
export declare function instanceOfMcpCallLogStatusUio(value: any): boolean;
|
|
22
|
+
export declare function McpCallLogStatusUioFromJSON(json: any): McpCallLogStatusUio;
|
|
23
|
+
export declare function McpCallLogStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogStatusUio;
|
|
24
|
+
export declare function McpCallLogStatusUioToJSON(value?: McpCallLogStatusUio | null): any;
|
|
25
|
+
export declare function McpCallLogStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): McpCallLogStatusUio;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.McpCallLogStatusUio = void 0;
|
|
17
|
+
exports.instanceOfMcpCallLogStatusUio = instanceOfMcpCallLogStatusUio;
|
|
18
|
+
exports.McpCallLogStatusUioFromJSON = McpCallLogStatusUioFromJSON;
|
|
19
|
+
exports.McpCallLogStatusUioFromJSONTyped = McpCallLogStatusUioFromJSONTyped;
|
|
20
|
+
exports.McpCallLogStatusUioToJSON = McpCallLogStatusUioToJSON;
|
|
21
|
+
exports.McpCallLogStatusUioToJSONTyped = McpCallLogStatusUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.McpCallLogStatusUio = {
|
|
27
|
+
Ok: 'ok',
|
|
28
|
+
Error: 'error'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfMcpCallLogStatusUio(value) {
|
|
31
|
+
for (const key in exports.McpCallLogStatusUio) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.McpCallLogStatusUio, key)) {
|
|
33
|
+
if (exports.McpCallLogStatusUio[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function McpCallLogStatusUioFromJSON(json) {
|
|
41
|
+
return McpCallLogStatusUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function McpCallLogStatusUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function McpCallLogStatusUioToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function McpCallLogStatusUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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 { McpCallLogEventUio } from './McpCallLogEventUio';
|
|
13
|
+
import type { McpCallLogStatusUio } from './McpCallLogStatusUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface McpCallLogUio
|
|
18
|
+
*/
|
|
19
|
+
export interface McpCallLogUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof McpCallLogUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof McpCallLogUio
|
|
30
|
+
*/
|
|
31
|
+
orgId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof McpCallLogUio
|
|
36
|
+
*/
|
|
37
|
+
toolId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the tool when the call happened; it survives a later rename.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof McpCallLogUio
|
|
42
|
+
*/
|
|
43
|
+
toolName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {McpCallLogEventUio}
|
|
47
|
+
* @memberof McpCallLogUio
|
|
48
|
+
*/
|
|
49
|
+
event: McpCallLogEventUio;
|
|
50
|
+
/**
|
|
51
|
+
* MCP method called, or the configuration action for a `config_change`.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof McpCallLogUio
|
|
54
|
+
*/
|
|
55
|
+
method?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {McpCallLogStatusUio}
|
|
59
|
+
* @memberof McpCallLogUio
|
|
60
|
+
*/
|
|
61
|
+
status: McpCallLogStatusUio;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof McpCallLogUio
|
|
66
|
+
*/
|
|
67
|
+
durationMs?: number | null;
|
|
68
|
+
/**
|
|
69
|
+
* Server URL without its query string, which can carry a token.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof McpCallLogUio
|
|
72
|
+
*/
|
|
73
|
+
serverUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof McpCallLogUio
|
|
78
|
+
*/
|
|
79
|
+
scope: McpCallLogUioScopeEnum;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof McpCallLogUio
|
|
84
|
+
*/
|
|
85
|
+
authType?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Whoever the exchange was made for — the owner of the credentials used. On a `config_change` it is the author of the change instead.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof McpCallLogUio
|
|
90
|
+
*/
|
|
91
|
+
userId?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof McpCallLogUio
|
|
96
|
+
*/
|
|
97
|
+
agentId?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof McpCallLogUio
|
|
102
|
+
*/
|
|
103
|
+
conversationId?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof McpCallLogUio
|
|
108
|
+
*/
|
|
109
|
+
httpStatus?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof McpCallLogUio
|
|
114
|
+
*/
|
|
115
|
+
errorCode?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof McpCallLogUio
|
|
120
|
+
*/
|
|
121
|
+
errorMessage?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
* The call was replayed on a fresh connection after a first failure.
|
|
124
|
+
* @type {boolean}
|
|
125
|
+
* @memberof McpCallLogUio
|
|
126
|
+
*/
|
|
127
|
+
retried: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Captured only while payload capture is on, secrets redacted and size bounded.
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof McpCallLogUio
|
|
132
|
+
*/
|
|
133
|
+
requestPreview?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof McpCallLogUio
|
|
138
|
+
*/
|
|
139
|
+
responsePreview?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof McpCallLogUio
|
|
144
|
+
*/
|
|
145
|
+
createdAt: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export declare const McpCallLogUioScopeEnum: {
|
|
151
|
+
readonly Organization: "organization";
|
|
152
|
+
readonly User: "user";
|
|
153
|
+
};
|
|
154
|
+
export type McpCallLogUioScopeEnum = typeof McpCallLogUioScopeEnum[keyof typeof McpCallLogUioScopeEnum];
|
|
155
|
+
/**
|
|
156
|
+
* Check if a given object implements the McpCallLogUio interface.
|
|
157
|
+
*/
|
|
158
|
+
export declare function instanceOfMcpCallLogUio(value: object): value is McpCallLogUio;
|
|
159
|
+
export declare function McpCallLogUioFromJSON(json: any): McpCallLogUio;
|
|
160
|
+
export declare function McpCallLogUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogUio;
|
|
161
|
+
export declare function McpCallLogUioToJSON(json: any): McpCallLogUio;
|
|
162
|
+
export declare function McpCallLogUioToJSONTyped(value?: McpCallLogUio | null, ignoreDiscriminator?: boolean): any;
|