@breign/client 1.0.31 → 1.0.33
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/AgentApi.d.ts +2 -1
- package/dist/apis/AgentApi.js +5 -2
- package/dist/apis/OrganizationsApi.d.ts +14 -1
- package/dist/apis/OrganizationsApi.js +29 -0
- package/dist/models/AgentPatchUio.d.ts +6 -0
- package/dist/models/AgentPatchUio.js +2 -0
- package/dist/models/AgentRequestUio.d.ts +12 -0
- package/dist/models/AgentRequestUio.js +4 -0
- package/dist/models/AgentUio.d.ts +12 -0
- package/dist/models/AgentUio.js +4 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +14 -0
- package/dist/models/ProviderCreateRequestUio.js +10 -0
- package/dist/models/ProviderSimpleUio.d.ts +6 -0
- package/dist/models/ProviderSimpleUio.js +2 -0
- package/dist/models/ProviderUio.d.ts +14 -0
- package/dist/models/ProviderUio.js +10 -0
- package/dist/models/RoleUio.d.ts +62 -0
- package/dist/models/RoleUio.js +68 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +98 -0
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export interface GetModulesRequest {
|
|
|
72
72
|
}
|
|
73
73
|
export interface ListOrganizationAgentsRequest {
|
|
74
74
|
organizationId: string;
|
|
75
|
+
isCreator?: boolean;
|
|
75
76
|
}
|
|
76
77
|
export interface RemoveAgentProfileImageRequest {
|
|
77
78
|
agentId: string;
|
|
@@ -269,7 +270,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
269
270
|
/**
|
|
270
271
|
* List agents for an organization
|
|
271
272
|
*/
|
|
272
|
-
listOrganizationAgents(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
273
|
+
listOrganizationAgents(organizationId: string, isCreator?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
273
274
|
/**
|
|
274
275
|
* Removes the profile image for an agent
|
|
275
276
|
* Remove agent profile image
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -567,6 +567,9 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
567
567
|
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAgents().');
|
|
568
568
|
}
|
|
569
569
|
const queryParameters = {};
|
|
570
|
+
if (requestParameters['isCreator'] != null) {
|
|
571
|
+
queryParameters['isCreator'] = requestParameters['isCreator'];
|
|
572
|
+
}
|
|
570
573
|
const headerParameters = {};
|
|
571
574
|
if (this.configuration && this.configuration.apiKey) {
|
|
572
575
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -582,8 +585,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
582
585
|
/**
|
|
583
586
|
* List agents for an organization
|
|
584
587
|
*/
|
|
585
|
-
async listOrganizationAgents(organizationId, initOverrides) {
|
|
586
|
-
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId }, initOverrides);
|
|
588
|
+
async listOrganizationAgents(organizationId, isCreator, initOverrides) {
|
|
589
|
+
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator }, initOverrides);
|
|
587
590
|
return await response.value();
|
|
588
591
|
}
|
|
589
592
|
/**
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OrganizationUio } from '../models/index';
|
|
13
|
+
import type { OrganizationUio, RoleUio } from '../models/index';
|
|
14
14
|
export interface GetOrganizationByIdRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface ListOrganizationRolesRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
@@ -28,4 +31,14 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
28
31
|
* Get an organization by ID
|
|
29
32
|
*/
|
|
30
33
|
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves all roles configured for the given organization
|
|
36
|
+
* List roles of an organization
|
|
37
|
+
*/
|
|
38
|
+
listOrganizationRolesRaw(requestParameters: ListOrganizationRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RoleUio>>>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves all roles configured for the given organization
|
|
41
|
+
* List roles of an organization
|
|
42
|
+
*/
|
|
43
|
+
listOrganizationRoles(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RoleUio>>;
|
|
31
44
|
}
|
|
@@ -82,5 +82,34 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
82
82
|
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves all roles configured for the given organization
|
|
87
|
+
* List roles of an organization
|
|
88
|
+
*/
|
|
89
|
+
async listOrganizationRolesRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['organizationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationRoles().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
97
|
+
}
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: `/organizations/{organizationId}/roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.RoleUioFromJSON));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves all roles configured for the given organization
|
|
108
|
+
* List roles of an organization
|
|
109
|
+
*/
|
|
110
|
+
async listOrganizationRoles(organizationId, initOverrides) {
|
|
111
|
+
const response = await this.listOrganizationRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
85
114
|
}
|
|
86
115
|
exports.OrganizationsApi = OrganizationsApi;
|
|
@@ -162,6 +162,12 @@ export interface AgentPatchUio {
|
|
|
162
162
|
* @memberof AgentPatchUio
|
|
163
163
|
*/
|
|
164
164
|
agentType?: AgentTypeUio;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {boolean}
|
|
168
|
+
* @memberof AgentPatchUio
|
|
169
|
+
*/
|
|
170
|
+
personal?: boolean;
|
|
165
171
|
}
|
|
166
172
|
/**
|
|
167
173
|
* Check if a given object implements the AgentPatchUio interface.
|
|
@@ -60,6 +60,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
61
61
|
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
62
62
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
63
|
+
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function AgentPatchUioToJSON(json) {
|
|
@@ -93,5 +94,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
94
|
'isTemplate': value['isTemplate'],
|
|
94
95
|
'deleted': value['deleted'],
|
|
95
96
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
97
|
+
'personal': value['personal'],
|
|
96
98
|
};
|
|
97
99
|
}
|
|
@@ -112,6 +112,18 @@ export interface AgentRequestUio {
|
|
|
112
112
|
modules?: {
|
|
113
113
|
[key: string]: AgentModuleUio;
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof AgentRequestUio
|
|
119
|
+
*/
|
|
120
|
+
personal?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AgentRequestUio
|
|
125
|
+
*/
|
|
126
|
+
createdBy?: string;
|
|
115
127
|
}
|
|
116
128
|
/**
|
|
117
129
|
* Check if a given object implements the AgentRequestUio interface.
|
|
@@ -61,6 +61,8 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
62
62
|
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
63
63
|
'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
64
|
+
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
65
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
68
|
function AgentRequestUioToJSON(json) {
|
|
@@ -86,5 +88,7 @@ function AgentRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
88
|
'createdAt': value['createdAt'],
|
|
87
89
|
'isActivated': value['isActivated'],
|
|
88
90
|
'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
91
|
+
'personal': value['personal'],
|
|
92
|
+
'createdBy': value['createdBy'],
|
|
89
93
|
};
|
|
90
94
|
}
|
|
@@ -183,6 +183,18 @@ export interface AgentUio {
|
|
|
183
183
|
favoriteOutfit?: {
|
|
184
184
|
[key: string]: any;
|
|
185
185
|
};
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {boolean}
|
|
189
|
+
* @memberof AgentUio
|
|
190
|
+
*/
|
|
191
|
+
personal?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof AgentUio
|
|
196
|
+
*/
|
|
197
|
+
createdBy?: string;
|
|
186
198
|
}
|
|
187
199
|
/**
|
|
188
200
|
* Check if a given object implements the AgentUio interface.
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -76,6 +76,8 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
76
|
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
77
77
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
78
78
|
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
79
|
+
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
80
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
79
81
|
};
|
|
80
82
|
}
|
|
81
83
|
function AgentUioToJSON(json) {
|
|
@@ -112,5 +114,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
112
114
|
'deleted': value['deleted'],
|
|
113
115
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
114
116
|
'favoriteOutfit': value['favoriteOutfit'],
|
|
117
|
+
'personal': value['personal'],
|
|
118
|
+
'createdBy': value['createdBy'],
|
|
115
119
|
};
|
|
116
120
|
}
|
|
@@ -46,7 +46,21 @@ export interface ProviderCreateRequestUio {
|
|
|
46
46
|
* @memberof ProviderCreateRequestUio
|
|
47
47
|
*/
|
|
48
48
|
endpoint?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProviderCreateRequestUio
|
|
53
|
+
*/
|
|
54
|
+
providerSource?: ProviderCreateRequestUioProviderSourceEnum;
|
|
49
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const ProviderCreateRequestUioProviderSourceEnum: {
|
|
60
|
+
readonly Internal: "INTERNAL";
|
|
61
|
+
readonly External: "EXTERNAL";
|
|
62
|
+
};
|
|
63
|
+
export type ProviderCreateRequestUioProviderSourceEnum = typeof ProviderCreateRequestUioProviderSourceEnum[keyof typeof ProviderCreateRequestUioProviderSourceEnum];
|
|
50
64
|
/**
|
|
51
65
|
* Check if a given object implements the ProviderCreateRequestUio interface.
|
|
52
66
|
*/
|
|
@@ -13,12 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProviderCreateRequestUioProviderSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfProviderCreateRequestUio = instanceOfProviderCreateRequestUio;
|
|
17
18
|
exports.ProviderCreateRequestUioFromJSON = ProviderCreateRequestUioFromJSON;
|
|
18
19
|
exports.ProviderCreateRequestUioFromJSONTyped = ProviderCreateRequestUioFromJSONTyped;
|
|
19
20
|
exports.ProviderCreateRequestUioToJSON = ProviderCreateRequestUioToJSON;
|
|
20
21
|
exports.ProviderCreateRequestUioToJSONTyped = ProviderCreateRequestUioToJSONTyped;
|
|
21
22
|
const ProviderTypeUio_1 = require("./ProviderTypeUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProviderCreateRequestUioProviderSourceEnum = {
|
|
27
|
+
Internal: 'INTERNAL',
|
|
28
|
+
External: 'EXTERNAL'
|
|
29
|
+
};
|
|
22
30
|
/**
|
|
23
31
|
* Check if a given object implements the ProviderCreateRequestUio interface.
|
|
24
32
|
*/
|
|
@@ -44,6 +52,7 @@ function ProviderCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
52
|
'models': json['models'],
|
|
45
53
|
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
46
54
|
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
55
|
+
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
47
56
|
};
|
|
48
57
|
}
|
|
49
58
|
function ProviderCreateRequestUioToJSON(json) {
|
|
@@ -59,5 +68,6 @@ function ProviderCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
59
68
|
'models': value['models'],
|
|
60
69
|
'apiKey': value['apiKey'],
|
|
61
70
|
'endpoint': value['endpoint'],
|
|
71
|
+
'providerSource': value['providerSource'],
|
|
62
72
|
};
|
|
63
73
|
}
|
|
@@ -43,6 +43,7 @@ function ProviderSimpleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'id': json['id'],
|
|
44
44
|
'name': json['name'],
|
|
45
45
|
'providerType': json['providerType'],
|
|
46
|
+
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
46
47
|
'models': json['models'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
@@ -57,6 +58,7 @@ function ProviderSimpleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
58
|
'id': value['id'],
|
|
58
59
|
'name': value['name'],
|
|
59
60
|
'providerType': value['providerType'],
|
|
61
|
+
'providerSource': value['providerSource'],
|
|
60
62
|
'models': value['models'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -46,6 +46,12 @@ export interface ProviderUio {
|
|
|
46
46
|
* @memberof ProviderUio
|
|
47
47
|
*/
|
|
48
48
|
endpoint?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProviderUio
|
|
53
|
+
*/
|
|
54
|
+
providerSource?: ProviderUioProviderSourceEnum;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {string}
|
|
@@ -59,6 +65,14 @@ export interface ProviderUio {
|
|
|
59
65
|
*/
|
|
60
66
|
createdAt: string;
|
|
61
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const ProviderUioProviderSourceEnum: {
|
|
72
|
+
readonly Internal: "INTERNAL";
|
|
73
|
+
readonly External: "EXTERNAL";
|
|
74
|
+
};
|
|
75
|
+
export type ProviderUioProviderSourceEnum = typeof ProviderUioProviderSourceEnum[keyof typeof ProviderUioProviderSourceEnum];
|
|
62
76
|
/**
|
|
63
77
|
* Check if a given object implements the ProviderUio interface.
|
|
64
78
|
*/
|
|
@@ -13,12 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProviderUioProviderSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfProviderUio = instanceOfProviderUio;
|
|
17
18
|
exports.ProviderUioFromJSON = ProviderUioFromJSON;
|
|
18
19
|
exports.ProviderUioFromJSONTyped = ProviderUioFromJSONTyped;
|
|
19
20
|
exports.ProviderUioToJSON = ProviderUioToJSON;
|
|
20
21
|
exports.ProviderUioToJSONTyped = ProviderUioToJSONTyped;
|
|
21
22
|
const ProviderTypeUio_1 = require("./ProviderTypeUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProviderUioProviderSourceEnum = {
|
|
27
|
+
Internal: 'INTERNAL',
|
|
28
|
+
External: 'EXTERNAL'
|
|
29
|
+
};
|
|
22
30
|
/**
|
|
23
31
|
* Check if a given object implements the ProviderUio interface.
|
|
24
32
|
*/
|
|
@@ -48,6 +56,7 @@ function ProviderUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
56
|
'models': json['models'],
|
|
49
57
|
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
50
58
|
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
59
|
+
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
51
60
|
'id': json['id'],
|
|
52
61
|
'createdAt': json['createdAt'],
|
|
53
62
|
};
|
|
@@ -65,6 +74,7 @@ function ProviderUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
74
|
'models': value['models'],
|
|
66
75
|
'apiKey': value['apiKey'],
|
|
67
76
|
'endpoint': value['endpoint'],
|
|
77
|
+
'providerSource': value['providerSource'],
|
|
68
78
|
'id': value['id'],
|
|
69
79
|
'createdAt': value['createdAt'],
|
|
70
80
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RoleUio
|
|
16
|
+
*/
|
|
17
|
+
export interface RoleUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RoleUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RoleUio
|
|
28
|
+
*/
|
|
29
|
+
organizationId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RoleUio
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RoleUio
|
|
40
|
+
*/
|
|
41
|
+
color: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RoleUio
|
|
46
|
+
*/
|
|
47
|
+
description?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RoleUio
|
|
52
|
+
*/
|
|
53
|
+
createdAt: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RoleUio interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRoleUio(value: object): value is RoleUio;
|
|
59
|
+
export declare function RoleUioFromJSON(json: any): RoleUio;
|
|
60
|
+
export declare function RoleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleUio;
|
|
61
|
+
export declare function RoleUioToJSON(json: any): RoleUio;
|
|
62
|
+
export declare function RoleUioToJSONTyped(value?: RoleUio | 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.instanceOfRoleUio = instanceOfRoleUio;
|
|
17
|
+
exports.RoleUioFromJSON = RoleUioFromJSON;
|
|
18
|
+
exports.RoleUioFromJSONTyped = RoleUioFromJSONTyped;
|
|
19
|
+
exports.RoleUioToJSON = RoleUioToJSON;
|
|
20
|
+
exports.RoleUioToJSONTyped = RoleUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RoleUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRoleUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function RoleUioFromJSON(json) {
|
|
38
|
+
return RoleUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function RoleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'organizationId': json['organizationId'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'color': json['color'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'createdAt': json['createdAt'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function RoleUioToJSON(json) {
|
|
54
|
+
return RoleUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function RoleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'organizationId': value['organizationId'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'color': value['color'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'createdAt': value['createdAt'],
|
|
67
|
+
};
|
|
68
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export * from './ProviderUio';
|
|
|
147
147
|
export * from './ProviderValiationRequestUio';
|
|
148
148
|
export * from './RevealTokenRequestUio';
|
|
149
149
|
export * from './RevealTokenResponseUio';
|
|
150
|
+
export * from './RoleUio';
|
|
150
151
|
export * from './S3UploadBodyUio';
|
|
151
152
|
export * from './STTResponseUio';
|
|
152
153
|
export * from './SetTokenRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -165,6 +165,7 @@ __exportStar(require("./ProviderUio"), exports);
|
|
|
165
165
|
__exportStar(require("./ProviderValiationRequestUio"), exports);
|
|
166
166
|
__exportStar(require("./RevealTokenRequestUio"), exports);
|
|
167
167
|
__exportStar(require("./RevealTokenResponseUio"), exports);
|
|
168
|
+
__exportStar(require("./RoleUio"), exports);
|
|
168
169
|
__exportStar(require("./S3UploadBodyUio"), exports);
|
|
169
170
|
__exportStar(require("./STTResponseUio"), exports);
|
|
170
171
|
__exportStar(require("./SetTokenRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -159,6 +159,14 @@
|
|
|
159
159
|
"schema" : {
|
|
160
160
|
"type" : "string"
|
|
161
161
|
}
|
|
162
|
+
}, {
|
|
163
|
+
"description" : "If true, only returns agents created by the authenticated user.\n",
|
|
164
|
+
"in" : "query",
|
|
165
|
+
"name" : "isCreator",
|
|
166
|
+
"required" : false,
|
|
167
|
+
"schema" : {
|
|
168
|
+
"type" : "boolean"
|
|
169
|
+
}
|
|
162
170
|
} ],
|
|
163
171
|
"responses" : {
|
|
164
172
|
"200" : {
|
|
@@ -3900,6 +3908,50 @@
|
|
|
3900
3908
|
"tags" : [ "organizations" ]
|
|
3901
3909
|
}
|
|
3902
3910
|
},
|
|
3911
|
+
"/organizations/{organizationId}/roles" : {
|
|
3912
|
+
"get" : {
|
|
3913
|
+
"description" : "Retrieves all roles configured for the given organization",
|
|
3914
|
+
"operationId" : "listOrganizationRoles",
|
|
3915
|
+
"parameters" : [ {
|
|
3916
|
+
"description" : "ID of the organization",
|
|
3917
|
+
"in" : "path",
|
|
3918
|
+
"name" : "organizationId",
|
|
3919
|
+
"required" : true,
|
|
3920
|
+
"schema" : {
|
|
3921
|
+
"type" : "string"
|
|
3922
|
+
}
|
|
3923
|
+
} ],
|
|
3924
|
+
"responses" : {
|
|
3925
|
+
"200" : {
|
|
3926
|
+
"content" : {
|
|
3927
|
+
"application/json" : {
|
|
3928
|
+
"schema" : {
|
|
3929
|
+
"items" : {
|
|
3930
|
+
"$ref" : "#/components/schemas/Role"
|
|
3931
|
+
},
|
|
3932
|
+
"type" : "array"
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
},
|
|
3936
|
+
"description" : "Roles found"
|
|
3937
|
+
},
|
|
3938
|
+
"401" : {
|
|
3939
|
+
"description" : "Unauthorized"
|
|
3940
|
+
},
|
|
3941
|
+
"403" : {
|
|
3942
|
+
"description" : "Forbidden - User doesn't have permission"
|
|
3943
|
+
},
|
|
3944
|
+
"404" : {
|
|
3945
|
+
"description" : "Organization not found"
|
|
3946
|
+
},
|
|
3947
|
+
"500" : {
|
|
3948
|
+
"description" : "Server error"
|
|
3949
|
+
}
|
|
3950
|
+
},
|
|
3951
|
+
"summary" : "List roles of an organization",
|
|
3952
|
+
"tags" : [ "organizations" ]
|
|
3953
|
+
}
|
|
3954
|
+
},
|
|
3903
3955
|
"/manifests" : {
|
|
3904
3956
|
"get" : {
|
|
3905
3957
|
"description" : "Retrieves manifests, filtered by user ID for non-admin users",
|
|
@@ -6091,6 +6143,12 @@
|
|
|
6091
6143
|
"additionalProperties" : true,
|
|
6092
6144
|
"maxProperties" : 100,
|
|
6093
6145
|
"type" : "object"
|
|
6146
|
+
},
|
|
6147
|
+
"personal" : {
|
|
6148
|
+
"type" : "boolean"
|
|
6149
|
+
},
|
|
6150
|
+
"createdBy" : {
|
|
6151
|
+
"type" : "string"
|
|
6094
6152
|
}
|
|
6095
6153
|
},
|
|
6096
6154
|
"required" : [ "id", "modules", "name", "organisationId", "persona", "promptInit" ],
|
|
@@ -6249,6 +6307,12 @@
|
|
|
6249
6307
|
"$ref" : "#/components/schemas/AgentModule"
|
|
6250
6308
|
},
|
|
6251
6309
|
"type" : "object"
|
|
6310
|
+
},
|
|
6311
|
+
"personal" : {
|
|
6312
|
+
"type" : "boolean"
|
|
6313
|
+
},
|
|
6314
|
+
"createdBy" : {
|
|
6315
|
+
"type" : "string"
|
|
6252
6316
|
}
|
|
6253
6317
|
},
|
|
6254
6318
|
"required" : [ "name", "organisationId", "persona", "promptInit" ],
|
|
@@ -6334,6 +6398,9 @@
|
|
|
6334
6398
|
},
|
|
6335
6399
|
"agentType" : {
|
|
6336
6400
|
"$ref" : "#/components/schemas/AgentType"
|
|
6401
|
+
},
|
|
6402
|
+
"personal" : {
|
|
6403
|
+
"type" : "boolean"
|
|
6337
6404
|
}
|
|
6338
6405
|
},
|
|
6339
6406
|
"type" : "object"
|
|
@@ -7855,6 +7922,10 @@
|
|
|
7855
7922
|
},
|
|
7856
7923
|
"endpoint" : {
|
|
7857
7924
|
"type" : "string"
|
|
7925
|
+
},
|
|
7926
|
+
"providerSource" : {
|
|
7927
|
+
"enum" : [ "INTERNAL", "EXTERNAL" ],
|
|
7928
|
+
"type" : "string"
|
|
7858
7929
|
}
|
|
7859
7930
|
},
|
|
7860
7931
|
"required" : [ "models", "name", "providerType" ],
|
|
@@ -7872,6 +7943,9 @@
|
|
|
7872
7943
|
"providerType" : {
|
|
7873
7944
|
"type" : "string"
|
|
7874
7945
|
},
|
|
7946
|
+
"providerSource" : {
|
|
7947
|
+
"type" : "string"
|
|
7948
|
+
},
|
|
7875
7949
|
"models" : {
|
|
7876
7950
|
"items" : {
|
|
7877
7951
|
"type" : "string"
|
|
@@ -8157,6 +8231,30 @@
|
|
|
8157
8231
|
"required" : [ "id", "name" ],
|
|
8158
8232
|
"type" : "object"
|
|
8159
8233
|
},
|
|
8234
|
+
"Role" : {
|
|
8235
|
+
"properties" : {
|
|
8236
|
+
"id" : {
|
|
8237
|
+
"type" : "string"
|
|
8238
|
+
},
|
|
8239
|
+
"organizationId" : {
|
|
8240
|
+
"type" : "string"
|
|
8241
|
+
},
|
|
8242
|
+
"name" : {
|
|
8243
|
+
"type" : "string"
|
|
8244
|
+
},
|
|
8245
|
+
"color" : {
|
|
8246
|
+
"type" : "string"
|
|
8247
|
+
},
|
|
8248
|
+
"description" : {
|
|
8249
|
+
"type" : "string"
|
|
8250
|
+
},
|
|
8251
|
+
"createdAt" : {
|
|
8252
|
+
"type" : "string"
|
|
8253
|
+
}
|
|
8254
|
+
},
|
|
8255
|
+
"required" : [ "color", "createdAt", "id", "name", "organizationId" ],
|
|
8256
|
+
"type" : "object"
|
|
8257
|
+
},
|
|
8160
8258
|
"Manifest" : {
|
|
8161
8259
|
"additionalProperties" : true,
|
|
8162
8260
|
"properties" : {
|