@breign/client 1.0.137 → 1.0.139
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/LibraryAgentsApi.d.ts +211 -0
- package/dist/apis/LibraryAgentsApi.js +537 -0
- package/dist/apis/OrganizationsApi.d.ts +58 -1
- package/dist/apis/OrganizationsApi.js +134 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentBundleDiffUio.d.ts +79 -0
- package/dist/models/AgentBundleDiffUio.js +85 -0
- package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
- package/dist/models/AgentBundleListDiffUio.js +58 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
- package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
- package/dist/models/AgentLibraryLinkUio.js +79 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
- package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
- package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
- package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +2 -2
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ConversationMessageApprovalUio.d.ts +70 -0
- package/dist/models/ConversationMessageApprovalUio.js +74 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
- package/dist/models/ConversationMessagesInnerUio.js +3 -0
- package/dist/models/CreateToolApprovalRequestUio.d.ts +53 -0
- package/dist/models/CreateToolApprovalRequestUio.js +67 -0
- package/dist/models/EditToolApprovalRequestUio.d.ts +47 -0
- package/dist/models/EditToolApprovalRequestUio.js +63 -0
- package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
- package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
- package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
- package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
- package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
- package/dist/models/LibraryAgentEntryUio.js +83 -0
- package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
- package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
- package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
- package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
- package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
- package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
- package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
- package/dist/models/LibraryAgentVersionUio.js +87 -0
- package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
- package/dist/models/LibraryAgentsPageUio.js +71 -0
- package/dist/models/ToolApprovalUio.d.ts +85 -0
- package/dist/models/ToolApprovalUio.js +88 -0
- package/dist/models/ToolApprovalsResponseUio.d.ts +33 -0
- package/dist/models/ToolApprovalsResponseUio.js +51 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +28 -0
- package/dist/models/ToolCallResultRequestUio.js +19 -1
- package/dist/models/ToolCallUio.d.ts +4 -4
- package/dist/models/ToolCallUio.js +2 -4
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/dist/openapi.json +6374 -4924
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfLibraryAgentPublishVersionRequestUio = instanceOfLibraryAgentPublishVersionRequestUio;
|
|
17
|
+
exports.LibraryAgentPublishVersionRequestUioFromJSON = LibraryAgentPublishVersionRequestUioFromJSON;
|
|
18
|
+
exports.LibraryAgentPublishVersionRequestUioFromJSONTyped = LibraryAgentPublishVersionRequestUioFromJSONTyped;
|
|
19
|
+
exports.LibraryAgentPublishVersionRequestUioToJSON = LibraryAgentPublishVersionRequestUioToJSON;
|
|
20
|
+
exports.LibraryAgentPublishVersionRequestUioToJSONTyped = LibraryAgentPublishVersionRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LibraryAgentPublishVersionRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLibraryAgentPublishVersionRequestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LibraryAgentPublishVersionRequestUioFromJSON(json) {
|
|
28
|
+
return LibraryAgentPublishVersionRequestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LibraryAgentPublishVersionRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
36
|
+
'bundle': json['bundle'] == null ? undefined : json['bundle'],
|
|
37
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
38
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
39
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LibraryAgentPublishVersionRequestUioToJSON(json) {
|
|
44
|
+
return LibraryAgentPublishVersionRequestUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LibraryAgentPublishVersionRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'agentId': value['agentId'],
|
|
52
|
+
'bundle': value['bundle'],
|
|
53
|
+
'version': value['version'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'description': value['description'],
|
|
56
|
+
'category': value['category'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { LibraryAgentBundleSummaryUio } from './LibraryAgentBundleSummaryUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LibraryAgentVersionUio
|
|
17
|
+
*/
|
|
18
|
+
export interface LibraryAgentVersionUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LibraryAgentVersionUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LibraryAgentVersionUio
|
|
29
|
+
*/
|
|
30
|
+
slug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LibraryAgentVersionUio
|
|
35
|
+
*/
|
|
36
|
+
version: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LibraryAgentVersionUio
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LibraryAgentVersionUio
|
|
47
|
+
*/
|
|
48
|
+
description: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LibraryAgentVersionUio
|
|
53
|
+
*/
|
|
54
|
+
category?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {LibraryAgentBundleSummaryUio}
|
|
58
|
+
* @memberof LibraryAgentVersionUio
|
|
59
|
+
*/
|
|
60
|
+
summary: LibraryAgentBundleSummaryUio;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof LibraryAgentVersionUio
|
|
65
|
+
*/
|
|
66
|
+
isLatest: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof LibraryAgentVersionUio
|
|
71
|
+
*/
|
|
72
|
+
sourceAgentId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof LibraryAgentVersionUio
|
|
77
|
+
*/
|
|
78
|
+
publishedAt: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof LibraryAgentVersionUio
|
|
83
|
+
*/
|
|
84
|
+
publishedBy?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof LibraryAgentVersionUio
|
|
89
|
+
*/
|
|
90
|
+
publishedByName?: string | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the LibraryAgentVersionUio interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfLibraryAgentVersionUio(value: object): value is LibraryAgentVersionUio;
|
|
96
|
+
export declare function LibraryAgentVersionUioFromJSON(json: any): LibraryAgentVersionUio;
|
|
97
|
+
export declare function LibraryAgentVersionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentVersionUio;
|
|
98
|
+
export declare function LibraryAgentVersionUioToJSON(json: any): LibraryAgentVersionUio;
|
|
99
|
+
export declare function LibraryAgentVersionUioToJSONTyped(value?: LibraryAgentVersionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.instanceOfLibraryAgentVersionUio = instanceOfLibraryAgentVersionUio;
|
|
17
|
+
exports.LibraryAgentVersionUioFromJSON = LibraryAgentVersionUioFromJSON;
|
|
18
|
+
exports.LibraryAgentVersionUioFromJSONTyped = LibraryAgentVersionUioFromJSONTyped;
|
|
19
|
+
exports.LibraryAgentVersionUioToJSON = LibraryAgentVersionUioToJSON;
|
|
20
|
+
exports.LibraryAgentVersionUioToJSONTyped = LibraryAgentVersionUioToJSONTyped;
|
|
21
|
+
const LibraryAgentBundleSummaryUio_1 = require("./LibraryAgentBundleSummaryUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LibraryAgentVersionUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLibraryAgentVersionUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('isLatest' in value) || value['isLatest'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('publishedAt' in value) || value['publishedAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function LibraryAgentVersionUioFromJSON(json) {
|
|
45
|
+
return LibraryAgentVersionUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function LibraryAgentVersionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'slug': json['slug'],
|
|
54
|
+
'version': json['version'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'description': json['description'],
|
|
57
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
58
|
+
'summary': (0, LibraryAgentBundleSummaryUio_1.LibraryAgentBundleSummaryUioFromJSON)(json['summary']),
|
|
59
|
+
'isLatest': json['isLatest'],
|
|
60
|
+
'sourceAgentId': json['sourceAgentId'] == null ? undefined : json['sourceAgentId'],
|
|
61
|
+
'publishedAt': (new Date(json['publishedAt'])),
|
|
62
|
+
'publishedBy': json['publishedBy'] == null ? undefined : json['publishedBy'],
|
|
63
|
+
'publishedByName': json['publishedByName'] == null ? undefined : json['publishedByName'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function LibraryAgentVersionUioToJSON(json) {
|
|
67
|
+
return LibraryAgentVersionUioToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function LibraryAgentVersionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'slug': value['slug'],
|
|
76
|
+
'version': value['version'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'category': value['category'],
|
|
80
|
+
'summary': (0, LibraryAgentBundleSummaryUio_1.LibraryAgentBundleSummaryUioToJSON)(value['summary']),
|
|
81
|
+
'isLatest': value['isLatest'],
|
|
82
|
+
'sourceAgentId': value['sourceAgentId'],
|
|
83
|
+
'publishedAt': ((value['publishedAt']).toISOString()),
|
|
84
|
+
'publishedBy': value['publishedBy'],
|
|
85
|
+
'publishedByName': value['publishedByName'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { LibraryAgentEntryUio } from './LibraryAgentEntryUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LibraryAgentsPageUio
|
|
17
|
+
*/
|
|
18
|
+
export interface LibraryAgentsPageUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LibraryAgentEntryUio>}
|
|
22
|
+
* @memberof LibraryAgentsPageUio
|
|
23
|
+
*/
|
|
24
|
+
data: Array<LibraryAgentEntryUio>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof LibraryAgentsPageUio
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof LibraryAgentsPageUio
|
|
35
|
+
*/
|
|
36
|
+
page: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LibraryAgentsPageUio
|
|
41
|
+
*/
|
|
42
|
+
limit: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof LibraryAgentsPageUio
|
|
47
|
+
*/
|
|
48
|
+
totalPages: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof LibraryAgentsPageUio
|
|
53
|
+
*/
|
|
54
|
+
allCategories: Array<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the LibraryAgentsPageUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfLibraryAgentsPageUio(value: object): value is LibraryAgentsPageUio;
|
|
60
|
+
export declare function LibraryAgentsPageUioFromJSON(json: any): LibraryAgentsPageUio;
|
|
61
|
+
export declare function LibraryAgentsPageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentsPageUio;
|
|
62
|
+
export declare function LibraryAgentsPageUioToJSON(json: any): LibraryAgentsPageUio;
|
|
63
|
+
export declare function LibraryAgentsPageUioToJSONTyped(value?: LibraryAgentsPageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfLibraryAgentsPageUio = instanceOfLibraryAgentsPageUio;
|
|
17
|
+
exports.LibraryAgentsPageUioFromJSON = LibraryAgentsPageUioFromJSON;
|
|
18
|
+
exports.LibraryAgentsPageUioFromJSONTyped = LibraryAgentsPageUioFromJSONTyped;
|
|
19
|
+
exports.LibraryAgentsPageUioToJSON = LibraryAgentsPageUioToJSON;
|
|
20
|
+
exports.LibraryAgentsPageUioToJSONTyped = LibraryAgentsPageUioToJSONTyped;
|
|
21
|
+
const LibraryAgentEntryUio_1 = require("./LibraryAgentEntryUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LibraryAgentsPageUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLibraryAgentsPageUio(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('allCategories' in value) || value['allCategories'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function LibraryAgentsPageUioFromJSON(json) {
|
|
41
|
+
return LibraryAgentsPageUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LibraryAgentsPageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': (json['data'].map(LibraryAgentEntryUio_1.LibraryAgentEntryUioFromJSON)),
|
|
49
|
+
'total': json['total'],
|
|
50
|
+
'page': json['page'],
|
|
51
|
+
'limit': json['limit'],
|
|
52
|
+
'totalPages': json['totalPages'],
|
|
53
|
+
'allCategories': json['allCategories'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function LibraryAgentsPageUioToJSON(json) {
|
|
57
|
+
return LibraryAgentsPageUioToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function LibraryAgentsPageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'data': (value['data'].map(LibraryAgentEntryUio_1.LibraryAgentEntryUioToJSON)),
|
|
65
|
+
'total': value['total'],
|
|
66
|
+
'page': value['page'],
|
|
67
|
+
'limit': value['limit'],
|
|
68
|
+
'totalPages': value['totalPages'],
|
|
69
|
+
'allCategories': value['allCategories'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
* One operation the user has authorised an agent to perform. Two families share this shape: an address the agent sandbox may reach, and a python command it may run. An address is stored normalised — query string, fragment and credentials removed — so a token carried by the URL the user saw is not kept here; a command is stored as it was approved, since the command itself is what was judged.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolApprovalUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolApprovalUio {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier to revoke the approval with.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolApprovalUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* What the approval covers. agentUser — this agent, for this user, across all of their conversations — is the only scope stored today. user is still listed because rows stored under it remain in force and readable. A one-off "allow once" answer creates no row here at all: it is recorded on the tool call it answered, see ToolCallApproval.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolApprovalUio
|
|
28
|
+
*/
|
|
29
|
+
scopeKind: ToolApprovalUioScopeKindEnum;
|
|
30
|
+
/**
|
|
31
|
+
* The tool the approval applies to. Approvals never cross tools.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolApprovalUio
|
|
34
|
+
*/
|
|
35
|
+
toolName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Which family the approval belongs to. url is an address the agent sandbox may reach; urlPattern is a glob covering a whole site, subdomains included; command is one exact command line it may run.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolApprovalUio
|
|
40
|
+
*/
|
|
41
|
+
resourceKind: ToolApprovalUioResourceKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
* What is granted, in the family's own notation. A url is a PREFIX: it covers any path below it, with any query parameters. A urlPattern is a GLOB, not a regular expression: a star stands for any text up to the next slash, everything else is literal, the pattern covers the start of the address and is matched case-insensitively. It must start with https://, close its host with a slash, and end with a slash or a star. A command is matched exactly, whitespace aside — a command that differs at all is asked about again.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ToolApprovalUio
|
|
46
|
+
*/
|
|
47
|
+
resource: string;
|
|
48
|
+
/**
|
|
49
|
+
* Present on an agentUser-scoped approval.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ToolApprovalUio
|
|
52
|
+
*/
|
|
53
|
+
agentId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ToolApprovalUio
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const ToolApprovalUioScopeKindEnum: {
|
|
65
|
+
readonly AgentUser: "agentUser";
|
|
66
|
+
readonly User: "user";
|
|
67
|
+
};
|
|
68
|
+
export type ToolApprovalUioScopeKindEnum = typeof ToolApprovalUioScopeKindEnum[keyof typeof ToolApprovalUioScopeKindEnum];
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const ToolApprovalUioResourceKindEnum: {
|
|
73
|
+
readonly Url: "url";
|
|
74
|
+
readonly Command: "command";
|
|
75
|
+
readonly UrlPattern: "urlPattern";
|
|
76
|
+
};
|
|
77
|
+
export type ToolApprovalUioResourceKindEnum = typeof ToolApprovalUioResourceKindEnum[keyof typeof ToolApprovalUioResourceKindEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the ToolApprovalUio interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfToolApprovalUio(value: object): value is ToolApprovalUio;
|
|
82
|
+
export declare function ToolApprovalUioFromJSON(json: any): ToolApprovalUio;
|
|
83
|
+
export declare function ToolApprovalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolApprovalUio;
|
|
84
|
+
export declare function ToolApprovalUioToJSON(json: any): ToolApprovalUio;
|
|
85
|
+
export declare function ToolApprovalUioToJSONTyped(value?: ToolApprovalUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ToolApprovalUioResourceKindEnum = exports.ToolApprovalUioScopeKindEnum = void 0;
|
|
17
|
+
exports.instanceOfToolApprovalUio = instanceOfToolApprovalUio;
|
|
18
|
+
exports.ToolApprovalUioFromJSON = ToolApprovalUioFromJSON;
|
|
19
|
+
exports.ToolApprovalUioFromJSONTyped = ToolApprovalUioFromJSONTyped;
|
|
20
|
+
exports.ToolApprovalUioToJSON = ToolApprovalUioToJSON;
|
|
21
|
+
exports.ToolApprovalUioToJSONTyped = ToolApprovalUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ToolApprovalUioScopeKindEnum = {
|
|
26
|
+
AgentUser: 'agentUser',
|
|
27
|
+
User: 'user'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.ToolApprovalUioResourceKindEnum = {
|
|
33
|
+
Url: 'url',
|
|
34
|
+
Command: 'command',
|
|
35
|
+
UrlPattern: 'urlPattern'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ToolApprovalUio interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfToolApprovalUio(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('scopeKind' in value) || value['scopeKind'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('toolName' in value) || value['toolName'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('resourceKind' in value) || value['resourceKind'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('resource' in value) || value['resource'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function ToolApprovalUioFromJSON(json) {
|
|
56
|
+
return ToolApprovalUioFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ToolApprovalUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': json['id'],
|
|
64
|
+
'scopeKind': json['scopeKind'],
|
|
65
|
+
'toolName': json['toolName'],
|
|
66
|
+
'resourceKind': json['resourceKind'],
|
|
67
|
+
'resource': json['resource'],
|
|
68
|
+
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
69
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ToolApprovalUioToJSON(json) {
|
|
73
|
+
return ToolApprovalUioToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function ToolApprovalUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'scopeKind': value['scopeKind'],
|
|
82
|
+
'toolName': value['toolName'],
|
|
83
|
+
'resourceKind': value['resourceKind'],
|
|
84
|
+
'resource': value['resource'],
|
|
85
|
+
'agentId': value['agentId'],
|
|
86
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ToolApprovalUio } from './ToolApprovalUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ToolApprovalsResponseUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolApprovalsResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ToolApprovalUio>}
|
|
22
|
+
* @memberof ToolApprovalsResponseUio
|
|
23
|
+
*/
|
|
24
|
+
approvals: Array<ToolApprovalUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ToolApprovalsResponseUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfToolApprovalsResponseUio(value: object): value is ToolApprovalsResponseUio;
|
|
30
|
+
export declare function ToolApprovalsResponseUioFromJSON(json: any): ToolApprovalsResponseUio;
|
|
31
|
+
export declare function ToolApprovalsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolApprovalsResponseUio;
|
|
32
|
+
export declare function ToolApprovalsResponseUioToJSON(json: any): ToolApprovalsResponseUio;
|
|
33
|
+
export declare function ToolApprovalsResponseUioToJSONTyped(value?: ToolApprovalsResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfToolApprovalsResponseUio = instanceOfToolApprovalsResponseUio;
|
|
17
|
+
exports.ToolApprovalsResponseUioFromJSON = ToolApprovalsResponseUioFromJSON;
|
|
18
|
+
exports.ToolApprovalsResponseUioFromJSONTyped = ToolApprovalsResponseUioFromJSONTyped;
|
|
19
|
+
exports.ToolApprovalsResponseUioToJSON = ToolApprovalsResponseUioToJSON;
|
|
20
|
+
exports.ToolApprovalsResponseUioToJSONTyped = ToolApprovalsResponseUioToJSONTyped;
|
|
21
|
+
const ToolApprovalUio_1 = require("./ToolApprovalUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ToolApprovalsResponseUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfToolApprovalsResponseUio(value) {
|
|
26
|
+
if (!('approvals' in value) || value['approvals'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ToolApprovalsResponseUioFromJSON(json) {
|
|
31
|
+
return ToolApprovalsResponseUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ToolApprovalsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'approvals': (json['approvals'].map(ToolApprovalUio_1.ToolApprovalUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ToolApprovalsResponseUioToJSON(json) {
|
|
42
|
+
return ToolApprovalsResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ToolApprovalsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'approvals': (value['approvals'].map(ToolApprovalUio_1.ToolApprovalUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -40,6 +40,18 @@ export interface ToolCallResultRequestUio {
|
|
|
40
40
|
* @memberof ToolCallResultRequestUio
|
|
41
41
|
*/
|
|
42
42
|
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Only read when resolving a bash_network_approval or bash_python_approval call with status completed: how far the approval reaches. once — the suspended reply and nothing after it, so the same request is asked about again next time — is the default, and nothing is stored. agentUser covers this agent, for this user, across all of their conversations, and is kept until revoked. Any other value is refused with a 400. Never widens what the agent is allowed to do: the server-side lock and the per-agent switch remain prerequisites. Only the user the question was asked of may answer it: an approval is a personal consent, so another caller — an admin included — gets a 403.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ToolCallResultRequestUio
|
|
47
|
+
*/
|
|
48
|
+
approvalScope?: ToolCallResultRequestUioApprovalScopeEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Only read when resolving a bash_network_approval call with status completed: how wide the approval is. prefix (the default) grants the prefix shown in the request — origin plus first path segment; origin grants the whole domain. Nothing narrower is offered: nobody can predict the paths an API will serve, and an approval that is too fine is paid for in repeated questions. The server recomputes both from the URL it recorded, so a client cannot submit a prefix of its own. Ignored on a bash_python_approval call, which has a single width: the exact command the server already recorded.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ToolCallResultRequestUio
|
|
53
|
+
*/
|
|
54
|
+
approvalWidth?: ToolCallResultRequestUioApprovalWidthEnum;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
57
|
* @export
|
|
@@ -50,6 +62,22 @@ export declare const ToolCallResultRequestUioStatusEnum: {
|
|
|
50
62
|
readonly Refused: "refused";
|
|
51
63
|
};
|
|
52
64
|
export type ToolCallResultRequestUioStatusEnum = typeof ToolCallResultRequestUioStatusEnum[keyof typeof ToolCallResultRequestUioStatusEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const ToolCallResultRequestUioApprovalScopeEnum: {
|
|
69
|
+
readonly Once: "once";
|
|
70
|
+
readonly AgentUser: "agentUser";
|
|
71
|
+
};
|
|
72
|
+
export type ToolCallResultRequestUioApprovalScopeEnum = typeof ToolCallResultRequestUioApprovalScopeEnum[keyof typeof ToolCallResultRequestUioApprovalScopeEnum];
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const ToolCallResultRequestUioApprovalWidthEnum: {
|
|
77
|
+
readonly Prefix: "prefix";
|
|
78
|
+
readonly Origin: "origin";
|
|
79
|
+
};
|
|
80
|
+
export type ToolCallResultRequestUioApprovalWidthEnum = typeof ToolCallResultRequestUioApprovalWidthEnum[keyof typeof ToolCallResultRequestUioApprovalWidthEnum];
|
|
53
81
|
/**
|
|
54
82
|
* Check if a given object implements the ToolCallResultRequestUio interface.
|
|
55
83
|
*/
|