@breign/client 1.0.158 → 1.0.160
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/AiGatewayApi.d.ts +28 -1
- package/dist/apis/AiGatewayApi.js +63 -0
- package/dist/apis/PromptsApi.d.ts +41 -1
- package/dist/apis/PromptsApi.js +92 -0
- package/dist/apis/ToolsApi.d.ts +46 -1
- package/dist/apis/ToolsApi.js +107 -0
- package/dist/models/AgentRateLimitSettingsUio.d.ts +80 -0
- package/dist/models/AgentRateLimitSettingsUio.js +80 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.d.ts +50 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.js +54 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +64 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.js +72 -0
- package/dist/models/AiGatewaySettingsUio.d.ts +57 -0
- package/dist/models/AiGatewaySettingsUio.js +65 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +39 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +51 -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/PromptRateLimitResponseUio.d.ts +50 -0
- package/dist/models/PromptRateLimitResponseUio.js +62 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/openapi.json +752 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -0,0 +1,114 @@
|
|
|
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.McpCallLogUioScopeEnum = void 0;
|
|
17
|
+
exports.instanceOfMcpCallLogUio = instanceOfMcpCallLogUio;
|
|
18
|
+
exports.McpCallLogUioFromJSON = McpCallLogUioFromJSON;
|
|
19
|
+
exports.McpCallLogUioFromJSONTyped = McpCallLogUioFromJSONTyped;
|
|
20
|
+
exports.McpCallLogUioToJSON = McpCallLogUioToJSON;
|
|
21
|
+
exports.McpCallLogUioToJSONTyped = McpCallLogUioToJSONTyped;
|
|
22
|
+
const McpCallLogEventUio_1 = require("./McpCallLogEventUio");
|
|
23
|
+
const McpCallLogStatusUio_1 = require("./McpCallLogStatusUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.McpCallLogUioScopeEnum = {
|
|
28
|
+
Organization: 'organization',
|
|
29
|
+
User: 'user'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the McpCallLogUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfMcpCallLogUio(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('toolId' in value) || value['toolId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('event' in value) || value['event'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('retried' in value) || value['retried'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function McpCallLogUioFromJSON(json) {
|
|
54
|
+
return McpCallLogUioFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function McpCallLogUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'orgId': json['orgId'],
|
|
63
|
+
'toolId': json['toolId'],
|
|
64
|
+
'toolName': json['toolName'] == null ? undefined : json['toolName'],
|
|
65
|
+
'event': (0, McpCallLogEventUio_1.McpCallLogEventUioFromJSON)(json['event']),
|
|
66
|
+
'method': json['method'] == null ? undefined : json['method'],
|
|
67
|
+
'status': (0, McpCallLogStatusUio_1.McpCallLogStatusUioFromJSON)(json['status']),
|
|
68
|
+
'durationMs': json['durationMs'] == null ? undefined : json['durationMs'],
|
|
69
|
+
'serverUrl': json['serverUrl'] == null ? undefined : json['serverUrl'],
|
|
70
|
+
'scope': json['scope'],
|
|
71
|
+
'authType': json['authType'] == null ? undefined : json['authType'],
|
|
72
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
73
|
+
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
74
|
+
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
75
|
+
'httpStatus': json['httpStatus'] == null ? undefined : json['httpStatus'],
|
|
76
|
+
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
77
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
78
|
+
'retried': json['retried'],
|
|
79
|
+
'requestPreview': json['requestPreview'] == null ? undefined : json['requestPreview'],
|
|
80
|
+
'responsePreview': json['responsePreview'] == null ? undefined : json['responsePreview'],
|
|
81
|
+
'createdAt': json['createdAt'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function McpCallLogUioToJSON(json) {
|
|
85
|
+
return McpCallLogUioToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function McpCallLogUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'id': value['id'],
|
|
93
|
+
'orgId': value['orgId'],
|
|
94
|
+
'toolId': value['toolId'],
|
|
95
|
+
'toolName': value['toolName'],
|
|
96
|
+
'event': (0, McpCallLogEventUio_1.McpCallLogEventUioToJSON)(value['event']),
|
|
97
|
+
'method': value['method'],
|
|
98
|
+
'status': (0, McpCallLogStatusUio_1.McpCallLogStatusUioToJSON)(value['status']),
|
|
99
|
+
'durationMs': value['durationMs'],
|
|
100
|
+
'serverUrl': value['serverUrl'],
|
|
101
|
+
'scope': value['scope'],
|
|
102
|
+
'authType': value['authType'],
|
|
103
|
+
'userId': value['userId'],
|
|
104
|
+
'agentId': value['agentId'],
|
|
105
|
+
'conversationId': value['conversationId'],
|
|
106
|
+
'httpStatus': value['httpStatus'],
|
|
107
|
+
'errorCode': value['errorCode'],
|
|
108
|
+
'errorMessage': value['errorMessage'],
|
|
109
|
+
'retried': value['retried'],
|
|
110
|
+
'requestPreview': value['requestPreview'],
|
|
111
|
+
'responsePreview': value['responsePreview'],
|
|
112
|
+
'createdAt': value['createdAt'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 McpCallLogsDeletedResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface McpCallLogsDeletedResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof McpCallLogsDeletedResponseUio
|
|
22
|
+
*/
|
|
23
|
+
deleted: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the McpCallLogsDeletedResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMcpCallLogsDeletedResponseUio(value: object): value is McpCallLogsDeletedResponseUio;
|
|
29
|
+
export declare function McpCallLogsDeletedResponseUioFromJSON(json: any): McpCallLogsDeletedResponseUio;
|
|
30
|
+
export declare function McpCallLogsDeletedResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogsDeletedResponseUio;
|
|
31
|
+
export declare function McpCallLogsDeletedResponseUioToJSON(json: any): McpCallLogsDeletedResponseUio;
|
|
32
|
+
export declare function McpCallLogsDeletedResponseUioToJSONTyped(value?: McpCallLogsDeletedResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMcpCallLogsDeletedResponseUio = instanceOfMcpCallLogsDeletedResponseUio;
|
|
17
|
+
exports.McpCallLogsDeletedResponseUioFromJSON = McpCallLogsDeletedResponseUioFromJSON;
|
|
18
|
+
exports.McpCallLogsDeletedResponseUioFromJSONTyped = McpCallLogsDeletedResponseUioFromJSONTyped;
|
|
19
|
+
exports.McpCallLogsDeletedResponseUioToJSON = McpCallLogsDeletedResponseUioToJSON;
|
|
20
|
+
exports.McpCallLogsDeletedResponseUioToJSONTyped = McpCallLogsDeletedResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the McpCallLogsDeletedResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMcpCallLogsDeletedResponseUio(value) {
|
|
25
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function McpCallLogsDeletedResponseUioFromJSON(json) {
|
|
30
|
+
return McpCallLogsDeletedResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function McpCallLogsDeletedResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'deleted': json['deleted'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function McpCallLogsDeletedResponseUioToJSON(json) {
|
|
41
|
+
return McpCallLogsDeletedResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function McpCallLogsDeletedResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'deleted': value['deleted'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { McpCallLogUio } from './McpCallLogUio';
|
|
13
|
+
import type { McpCallLogCursorUio } from './McpCallLogCursorUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface McpCallLogsResponseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface McpCallLogsResponseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<McpCallLogUio>}
|
|
23
|
+
* @memberof McpCallLogsResponseUio
|
|
24
|
+
*/
|
|
25
|
+
logs: Array<McpCallLogUio>;
|
|
26
|
+
/**
|
|
27
|
+
* Null once the last page has been served.
|
|
28
|
+
* @type {McpCallLogCursorUio}
|
|
29
|
+
* @memberof McpCallLogsResponseUio
|
|
30
|
+
*/
|
|
31
|
+
nextCursor: McpCallLogCursorUio | null;
|
|
32
|
+
/**
|
|
33
|
+
* Whether this tool is currently capturing arguments and responses.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof McpCallLogsResponseUio
|
|
36
|
+
*/
|
|
37
|
+
payloadLogging: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this tool records all of its activity. Off by default: only failures and configuration changes are kept, which is what an investigation actually reads.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof McpCallLogsResponseUio
|
|
42
|
+
*/
|
|
43
|
+
verboseLogging: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* How long traces are kept before the nightly purge drops them.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof McpCallLogsResponseUio
|
|
48
|
+
*/
|
|
49
|
+
retentionDays: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the McpCallLogsResponseUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfMcpCallLogsResponseUio(value: object): value is McpCallLogsResponseUio;
|
|
55
|
+
export declare function McpCallLogsResponseUioFromJSON(json: any): McpCallLogsResponseUio;
|
|
56
|
+
export declare function McpCallLogsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpCallLogsResponseUio;
|
|
57
|
+
export declare function McpCallLogsResponseUioToJSON(json: any): McpCallLogsResponseUio;
|
|
58
|
+
export declare function McpCallLogsResponseUioToJSONTyped(value?: McpCallLogsResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfMcpCallLogsResponseUio = instanceOfMcpCallLogsResponseUio;
|
|
17
|
+
exports.McpCallLogsResponseUioFromJSON = McpCallLogsResponseUioFromJSON;
|
|
18
|
+
exports.McpCallLogsResponseUioFromJSONTyped = McpCallLogsResponseUioFromJSONTyped;
|
|
19
|
+
exports.McpCallLogsResponseUioToJSON = McpCallLogsResponseUioToJSON;
|
|
20
|
+
exports.McpCallLogsResponseUioToJSONTyped = McpCallLogsResponseUioToJSONTyped;
|
|
21
|
+
const McpCallLogUio_1 = require("./McpCallLogUio");
|
|
22
|
+
const McpCallLogCursorUio_1 = require("./McpCallLogCursorUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the McpCallLogsResponseUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfMcpCallLogsResponseUio(value) {
|
|
27
|
+
if (!('logs' in value) || value['logs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('payloadLogging' in value) || value['payloadLogging'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('verboseLogging' in value) || value['verboseLogging'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('retentionDays' in value) || value['retentionDays'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function McpCallLogsResponseUioFromJSON(json) {
|
|
40
|
+
return McpCallLogsResponseUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function McpCallLogsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'logs': (json['logs'].map(McpCallLogUio_1.McpCallLogUioFromJSON)),
|
|
48
|
+
'nextCursor': (0, McpCallLogCursorUio_1.McpCallLogCursorUioFromJSON)(json['nextCursor']),
|
|
49
|
+
'payloadLogging': json['payloadLogging'],
|
|
50
|
+
'verboseLogging': json['verboseLogging'],
|
|
51
|
+
'retentionDays': json['retentionDays'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function McpCallLogsResponseUioToJSON(json) {
|
|
55
|
+
return McpCallLogsResponseUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function McpCallLogsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'logs': (value['logs'].map(McpCallLogUio_1.McpCallLogUioToJSON)),
|
|
63
|
+
'nextCursor': (0, McpCallLogCursorUio_1.McpCallLogCursorUioToJSON)(value['nextCursor']),
|
|
64
|
+
'payloadLogging': value['payloadLogging'],
|
|
65
|
+
'verboseLogging': value['verboseLogging'],
|
|
66
|
+
'retentionDays': value['retentionDays'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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
|
+
* At least one switch. Whichever is omitted keeps its current value, so the screen can flip one without resetting the other.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface McpLogsSettingsRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface McpLogsSettingsRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* Keep the arguments and responses of the calls that get recorded.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof McpLogsSettingsRequestUio
|
|
22
|
+
*/
|
|
23
|
+
payloads?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Record all activity, not only failures and configuration changes.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof McpLogsSettingsRequestUio
|
|
28
|
+
*/
|
|
29
|
+
verbose?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the McpLogsSettingsRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMcpLogsSettingsRequestUio(value: object): value is McpLogsSettingsRequestUio;
|
|
35
|
+
export declare function McpLogsSettingsRequestUioFromJSON(json: any): McpLogsSettingsRequestUio;
|
|
36
|
+
export declare function McpLogsSettingsRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpLogsSettingsRequestUio;
|
|
37
|
+
export declare function McpLogsSettingsRequestUioToJSON(json: any): McpLogsSettingsRequestUio;
|
|
38
|
+
export declare function McpLogsSettingsRequestUioToJSONTyped(value?: McpLogsSettingsRequestUio | null, ignoreDiscriminator?: boolean): any;
|