@breign/client 1.0.20 → 1.0.22
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/EngineApi.d.ts +13 -0
- package/dist/apis/EngineApi.js +29 -0
- package/dist/apis/ToolsApi.d.ts +63 -1
- package/dist/apis/ToolsApi.js +152 -0
- package/dist/models/AgentModuleUio.d.ts +1 -1
- package/dist/models/AgentModuleUio.js +3 -3
- package/dist/models/AgentToolUio.d.ts +9 -1
- package/dist/models/AgentToolUio.js +4 -2
- package/dist/models/GuardianEngineUio.d.ts +1 -1
- package/dist/models/GuardianEngineUio.js +3 -3
- package/dist/models/RevealTokenRequestUio.d.ts +32 -0
- package/dist/models/RevealTokenRequestUio.js +50 -0
- package/dist/models/RevealTokenResponseUio.d.ts +32 -0
- package/dist/models/RevealTokenResponseUio.js +50 -0
- package/dist/models/SetTokenRequestUio.d.ts +32 -0
- package/dist/models/SetTokenRequestUio.js +50 -0
- package/dist/models/ToolCreateRequestUio.d.ts +66 -0
- package/dist/models/ToolCreateRequestUio.js +66 -0
- package/dist/models/ToolSecureConfigurationUio.d.ts +75 -0
- package/dist/models/ToolSecureConfigurationUio.js +61 -0
- package/dist/models/ToolSecureManifestUio.d.ts +35 -0
- package/dist/models/ToolSecureManifestUio.js +50 -0
- package/dist/models/ToolSecureMcpDefinitionUio.d.ts +51 -0
- package/dist/models/ToolSecureMcpDefinitionUio.js +56 -0
- package/dist/models/ToolSecureMcpUio.d.ts +46 -0
- package/dist/models/ToolSecureMcpUio.js +55 -0
- package/dist/models/ToolSecureUio.d.ts +86 -0
- package/dist/models/ToolSecureUio.js +85 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/openapi.json +456 -0
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
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 ToolCreateRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolCreateRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolCreateRequestUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolCreateRequestUio
|
|
28
|
+
*/
|
|
29
|
+
orgId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* e.g. tool_api | mcp
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolCreateRequestUio
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof ToolCreateRequestUio
|
|
46
|
+
*/
|
|
47
|
+
configuration: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {{ [key: string]: any; }}
|
|
53
|
+
* @memberof ToolCreateRequestUio
|
|
54
|
+
*/
|
|
55
|
+
mcp?: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ToolCreateRequestUio interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfToolCreateRequestUio(value: object): value is ToolCreateRequestUio;
|
|
63
|
+
export declare function ToolCreateRequestUioFromJSON(json: any): ToolCreateRequestUio;
|
|
64
|
+
export declare function ToolCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCreateRequestUio;
|
|
65
|
+
export declare function ToolCreateRequestUioToJSON(json: any): ToolCreateRequestUio;
|
|
66
|
+
export declare function ToolCreateRequestUioToJSONTyped(value?: ToolCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfToolCreateRequestUio = instanceOfToolCreateRequestUio;
|
|
17
|
+
exports.ToolCreateRequestUioFromJSON = ToolCreateRequestUioFromJSON;
|
|
18
|
+
exports.ToolCreateRequestUioFromJSONTyped = ToolCreateRequestUioFromJSONTyped;
|
|
19
|
+
exports.ToolCreateRequestUioToJSON = ToolCreateRequestUioToJSON;
|
|
20
|
+
exports.ToolCreateRequestUioToJSONTyped = ToolCreateRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolCreateRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolCreateRequestUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ToolCreateRequestUioFromJSON(json) {
|
|
36
|
+
return ToolCreateRequestUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ToolCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'orgId': json['orgId'],
|
|
45
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'configuration': json['configuration'],
|
|
48
|
+
'mcp': json['mcp'] == null ? undefined : json['mcp'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ToolCreateRequestUioToJSON(json) {
|
|
52
|
+
return ToolCreateRequestUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ToolCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'orgId': value['orgId'],
|
|
61
|
+
'description': value['description'],
|
|
62
|
+
'type': value['type'],
|
|
63
|
+
'configuration': value['configuration'],
|
|
64
|
+
'mcp': value['mcp'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ToolSecureConfigurationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolSecureConfigurationUio {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ToolSecureConfigurationUio
|
|
23
|
+
*/
|
|
24
|
+
readonly tokenMasked?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ToolSecureConfigurationUio
|
|
29
|
+
*/
|
|
30
|
+
readonly tokenPreview?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof ToolSecureConfigurationUio
|
|
35
|
+
*/
|
|
36
|
+
readonly hasToken?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* URL du manifest .well-known
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ToolSecureConfigurationUio
|
|
41
|
+
*/
|
|
42
|
+
manifest?: string;
|
|
43
|
+
/**
|
|
44
|
+
* MCP endpoint
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ToolSecureConfigurationUio
|
|
47
|
+
*/
|
|
48
|
+
url?: string;
|
|
49
|
+
/**
|
|
50
|
+
* ex: http, sse
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ToolSecureConfigurationUio
|
|
53
|
+
*/
|
|
54
|
+
transport?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ToolSecureConfigurationUio
|
|
59
|
+
*/
|
|
60
|
+
authType?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof ToolSecureConfigurationUio
|
|
65
|
+
*/
|
|
66
|
+
allowedTools?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ToolSecureConfigurationUio interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfToolSecureConfigurationUio(value: object): value is ToolSecureConfigurationUio;
|
|
72
|
+
export declare function ToolSecureConfigurationUioFromJSON(json: any): ToolSecureConfigurationUio;
|
|
73
|
+
export declare function ToolSecureConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolSecureConfigurationUio;
|
|
74
|
+
export declare function ToolSecureConfigurationUioToJSON(json: any): ToolSecureConfigurationUio;
|
|
75
|
+
export declare function ToolSecureConfigurationUioToJSONTyped(value?: Omit<ToolSecureConfigurationUio, 'tokenMasked' | 'tokenPreview' | 'hasToken'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.instanceOfToolSecureConfigurationUio = instanceOfToolSecureConfigurationUio;
|
|
17
|
+
exports.ToolSecureConfigurationUioFromJSON = ToolSecureConfigurationUioFromJSON;
|
|
18
|
+
exports.ToolSecureConfigurationUioFromJSONTyped = ToolSecureConfigurationUioFromJSONTyped;
|
|
19
|
+
exports.ToolSecureConfigurationUioToJSON = ToolSecureConfigurationUioToJSON;
|
|
20
|
+
exports.ToolSecureConfigurationUioToJSONTyped = ToolSecureConfigurationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolSecureConfigurationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolSecureConfigurationUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ToolSecureConfigurationUioFromJSON(json) {
|
|
28
|
+
return ToolSecureConfigurationUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ToolSecureConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'tokenMasked': json['tokenMasked'] == null ? undefined : json['tokenMasked'],
|
|
37
|
+
'tokenPreview': json['tokenPreview'] == null ? undefined : json['tokenPreview'],
|
|
38
|
+
'hasToken': json['hasToken'] == null ? undefined : json['hasToken'],
|
|
39
|
+
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
40
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
41
|
+
'transport': json['transport'] == null ? undefined : json['transport'],
|
|
42
|
+
'authType': json['authType'] == null ? undefined : json['authType'],
|
|
43
|
+
'allowedTools': json['allowedTools'] == null ? undefined : json['allowedTools'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ToolSecureConfigurationUioToJSON(json) {
|
|
47
|
+
return ToolSecureConfigurationUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ToolSecureConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
...value,
|
|
55
|
+
'manifest': value['manifest'],
|
|
56
|
+
'url': value['url'],
|
|
57
|
+
'transport': value['transport'],
|
|
58
|
+
'authType': value['authType'],
|
|
59
|
+
'allowedTools': value['allowedTools'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 ToolSecureManifestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolSecureManifestUio {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {{ [key: string]: any; }}
|
|
22
|
+
* @memberof ToolSecureManifestUio
|
|
23
|
+
*/
|
|
24
|
+
definition?: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ToolSecureManifestUio interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfToolSecureManifestUio(value: object): value is ToolSecureManifestUio;
|
|
32
|
+
export declare function ToolSecureManifestUioFromJSON(json: any): ToolSecureManifestUio;
|
|
33
|
+
export declare function ToolSecureManifestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolSecureManifestUio;
|
|
34
|
+
export declare function ToolSecureManifestUioToJSON(json: any): ToolSecureManifestUio;
|
|
35
|
+
export declare function ToolSecureManifestUioToJSONTyped(value?: ToolSecureManifestUio | 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.instanceOfToolSecureManifestUio = instanceOfToolSecureManifestUio;
|
|
17
|
+
exports.ToolSecureManifestUioFromJSON = ToolSecureManifestUioFromJSON;
|
|
18
|
+
exports.ToolSecureManifestUioFromJSONTyped = ToolSecureManifestUioFromJSONTyped;
|
|
19
|
+
exports.ToolSecureManifestUioToJSON = ToolSecureManifestUioToJSON;
|
|
20
|
+
exports.ToolSecureManifestUioToJSONTyped = ToolSecureManifestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolSecureManifestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolSecureManifestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ToolSecureManifestUioFromJSON(json) {
|
|
28
|
+
return ToolSecureManifestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ToolSecureManifestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'definition': json['definition'] == null ? undefined : json['definition'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ToolSecureManifestUioToJSON(json) {
|
|
40
|
+
return ToolSecureManifestUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ToolSecureManifestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
...value,
|
|
48
|
+
'definition': value['definition'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ToolSecureMcpDefinitionUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolSecureMcpDefinitionUio {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ToolSecureMcpDefinitionUio
|
|
23
|
+
*/
|
|
24
|
+
url?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ToolSecureMcpDefinitionUio
|
|
29
|
+
*/
|
|
30
|
+
transport?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ToolSecureMcpDefinitionUio
|
|
35
|
+
*/
|
|
36
|
+
authType?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof ToolSecureMcpDefinitionUio
|
|
41
|
+
*/
|
|
42
|
+
retrievedAt?: Date;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ToolSecureMcpDefinitionUio interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfToolSecureMcpDefinitionUio(value: object): value is ToolSecureMcpDefinitionUio;
|
|
48
|
+
export declare function ToolSecureMcpDefinitionUioFromJSON(json: any): ToolSecureMcpDefinitionUio;
|
|
49
|
+
export declare function ToolSecureMcpDefinitionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolSecureMcpDefinitionUio;
|
|
50
|
+
export declare function ToolSecureMcpDefinitionUioToJSON(json: any): ToolSecureMcpDefinitionUio;
|
|
51
|
+
export declare function ToolSecureMcpDefinitionUioToJSONTyped(value?: ToolSecureMcpDefinitionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfToolSecureMcpDefinitionUio = instanceOfToolSecureMcpDefinitionUio;
|
|
17
|
+
exports.ToolSecureMcpDefinitionUioFromJSON = ToolSecureMcpDefinitionUioFromJSON;
|
|
18
|
+
exports.ToolSecureMcpDefinitionUioFromJSONTyped = ToolSecureMcpDefinitionUioFromJSONTyped;
|
|
19
|
+
exports.ToolSecureMcpDefinitionUioToJSON = ToolSecureMcpDefinitionUioToJSON;
|
|
20
|
+
exports.ToolSecureMcpDefinitionUioToJSONTyped = ToolSecureMcpDefinitionUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolSecureMcpDefinitionUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolSecureMcpDefinitionUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ToolSecureMcpDefinitionUioFromJSON(json) {
|
|
28
|
+
return ToolSecureMcpDefinitionUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ToolSecureMcpDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
37
|
+
'transport': json['transport'] == null ? undefined : json['transport'],
|
|
38
|
+
'authType': json['authType'] == null ? undefined : json['authType'],
|
|
39
|
+
'retrievedAt': json['retrievedAt'] == null ? undefined : (new Date(json['retrievedAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ToolSecureMcpDefinitionUioToJSON(json) {
|
|
43
|
+
return ToolSecureMcpDefinitionUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ToolSecureMcpDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
...value,
|
|
51
|
+
'url': value['url'],
|
|
52
|
+
'transport': value['transport'],
|
|
53
|
+
'authType': value['authType'],
|
|
54
|
+
'retrievedAt': value['retrievedAt'] == null ? undefined : ((value['retrievedAt']).toISOString()),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ToolSecureMcpDefinitionUio } from './ToolSecureMcpDefinitionUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolSecureMcpUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolSecureMcpUio {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ToolSecureMcpDefinitionUio}
|
|
23
|
+
* @memberof ToolSecureMcpUio
|
|
24
|
+
*/
|
|
25
|
+
definition?: ToolSecureMcpDefinitionUio;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {any}
|
|
29
|
+
* @memberof ToolSecureMcpUio
|
|
30
|
+
*/
|
|
31
|
+
introspection?: any | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof ToolSecureMcpUio
|
|
36
|
+
*/
|
|
37
|
+
allowedTools?: Array<string>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ToolSecureMcpUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfToolSecureMcpUio(value: object): value is ToolSecureMcpUio;
|
|
43
|
+
export declare function ToolSecureMcpUioFromJSON(json: any): ToolSecureMcpUio;
|
|
44
|
+
export declare function ToolSecureMcpUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolSecureMcpUio;
|
|
45
|
+
export declare function ToolSecureMcpUioToJSON(json: any): ToolSecureMcpUio;
|
|
46
|
+
export declare function ToolSecureMcpUioToJSONTyped(value?: ToolSecureMcpUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfToolSecureMcpUio = instanceOfToolSecureMcpUio;
|
|
17
|
+
exports.ToolSecureMcpUioFromJSON = ToolSecureMcpUioFromJSON;
|
|
18
|
+
exports.ToolSecureMcpUioFromJSONTyped = ToolSecureMcpUioFromJSONTyped;
|
|
19
|
+
exports.ToolSecureMcpUioToJSON = ToolSecureMcpUioToJSON;
|
|
20
|
+
exports.ToolSecureMcpUioToJSONTyped = ToolSecureMcpUioToJSONTyped;
|
|
21
|
+
const ToolSecureMcpDefinitionUio_1 = require("./ToolSecureMcpDefinitionUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ToolSecureMcpUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfToolSecureMcpUio(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ToolSecureMcpUioFromJSON(json) {
|
|
29
|
+
return ToolSecureMcpUioFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ToolSecureMcpUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...json,
|
|
37
|
+
'definition': json['definition'] == null ? undefined : (0, ToolSecureMcpDefinitionUio_1.ToolSecureMcpDefinitionUioFromJSON)(json['definition']),
|
|
38
|
+
'introspection': json['introspection'] == null ? undefined : json['introspection'],
|
|
39
|
+
'allowedTools': json['allowedTools'] == null ? undefined : json['allowedTools'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ToolSecureMcpUioToJSON(json) {
|
|
43
|
+
return ToolSecureMcpUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ToolSecureMcpUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
...value,
|
|
51
|
+
'definition': (0, ToolSecureMcpDefinitionUio_1.ToolSecureMcpDefinitionUioToJSON)(value['definition']),
|
|
52
|
+
'introspection': value['introspection'],
|
|
53
|
+
'allowedTools': value['allowedTools'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 { ToolSecureManifestUio } from './ToolSecureManifestUio';
|
|
13
|
+
import type { ToolSecureMcpUio } from './ToolSecureMcpUio';
|
|
14
|
+
import type { ToolSecureConfigurationUio } from './ToolSecureConfigurationUio';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ToolSecureUio
|
|
19
|
+
*/
|
|
20
|
+
export interface ToolSecureUio {
|
|
21
|
+
[key: string]: any | any;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ToolSecureUio
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ToolSecureUio
|
|
32
|
+
*/
|
|
33
|
+
orgId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ToolSecureUio
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ToolSecureUio
|
|
44
|
+
*/
|
|
45
|
+
description?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* tool_api | mcp
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ToolSecureUio
|
|
50
|
+
*/
|
|
51
|
+
type: ToolSecureUioTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {ToolSecureConfigurationUio}
|
|
55
|
+
* @memberof ToolSecureUio
|
|
56
|
+
*/
|
|
57
|
+
configuration: ToolSecureConfigurationUio;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {ToolSecureManifestUio}
|
|
61
|
+
* @memberof ToolSecureUio
|
|
62
|
+
*/
|
|
63
|
+
manifest?: ToolSecureManifestUio | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {ToolSecureMcpUio}
|
|
67
|
+
* @memberof ToolSecureUio
|
|
68
|
+
*/
|
|
69
|
+
mcp?: ToolSecureMcpUio | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const ToolSecureUioTypeEnum: {
|
|
75
|
+
readonly ToolApi: "tool_api";
|
|
76
|
+
readonly Mcp: "mcp";
|
|
77
|
+
};
|
|
78
|
+
export type ToolSecureUioTypeEnum = typeof ToolSecureUioTypeEnum[keyof typeof ToolSecureUioTypeEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the ToolSecureUio interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfToolSecureUio(value: object): value is ToolSecureUio;
|
|
83
|
+
export declare function ToolSecureUioFromJSON(json: any): ToolSecureUio;
|
|
84
|
+
export declare function ToolSecureUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolSecureUio;
|
|
85
|
+
export declare function ToolSecureUioToJSON(json: any): ToolSecureUio;
|
|
86
|
+
export declare function ToolSecureUioToJSONTyped(value?: ToolSecureUio | null, ignoreDiscriminator?: boolean): any;
|