@breign/client 1.0.124 → 1.0.125
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 +17 -12
- package/dist/apis/AgentApi.js +29 -14
- package/dist/apis/KnowledgeApi.d.ts +1 -113
- package/dist/apis/KnowledgeApi.js +0 -282
- package/dist/apis/MetricsApi.d.ts +15 -13
- package/dist/apis/MetricsApi.js +27 -21
- package/dist/apis/OrganizationsApi.d.ts +1 -26
- package/dist/apis/OrganizationsApi.js +0 -64
- package/dist/apis/SkillsApi.d.ts +14 -1
- package/dist/apis/SkillsApi.js +29 -0
- package/dist/models/AddModuleRequestUio.d.ts +60 -0
- package/dist/models/AddModuleRequestUio.js +68 -0
- package/dist/models/AgentPatchUio.d.ts +0 -30
- package/dist/models/AgentPatchUio.js +0 -10
- package/dist/models/AgentRefUio.d.ts +38 -0
- package/dist/models/AgentRefUio.js +54 -0
- package/dist/models/AgentRequestUio.d.ts +0 -59
- package/dist/models/AgentRequestUio.js +0 -22
- package/dist/models/AgentUio.d.ts +6 -44
- package/dist/models/AgentUio.js +2 -14
- package/dist/models/index.d.ts +2 -6
- package/dist/models/index.js +2 -6
- package/dist/openapi.json +281 -770
- package/package.json +1 -1
- package/dist/models/AgentRequestProfilePictureUio.d.ts +0 -50
- package/dist/models/AgentRequestProfilePictureUio.js +0 -62
- package/dist/models/DocumentAddRequestUio.d.ts +0 -38
- package/dist/models/DocumentAddRequestUio.js +0 -52
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +0 -56
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +0 -56
- package/dist/models/UserAgentAccessAgentUio.d.ts +0 -38
- package/dist/models/UserAgentAccessAgentUio.js +0 -54
- package/dist/models/UserAgentAccessRequestUio.d.ts +0 -38
- package/dist/models/UserAgentAccessRequestUio.js +0 -54
- package/dist/models/UserAgentAccessUio.d.ts +0 -45
- package/dist/models/UserAgentAccessUio.js +0 -59
package/dist/apis/SkillsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AvailableCommandUio, LibrarySkillInstallRequestUio, LibrarySkillSyncRequestUio, LibrarySkillsPageUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentRefUio, AvailableCommandUio, LibrarySkillInstallRequestUio, LibrarySkillSyncRequestUio, LibrarySkillsPageUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface AssignSkillToAgentRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
skillAssignRequestUio: SkillAssignRequestUio;
|
|
@@ -38,6 +38,9 @@ export interface GetAgentSkillsRequest {
|
|
|
38
38
|
export interface GetSkillRequest {
|
|
39
39
|
skillId: string;
|
|
40
40
|
}
|
|
41
|
+
export interface GetSkillAgentsRequest {
|
|
42
|
+
skillId: string;
|
|
43
|
+
}
|
|
41
44
|
export interface GetSkillFileRequest {
|
|
42
45
|
skillId: string;
|
|
43
46
|
fileId: string;
|
|
@@ -148,6 +151,16 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
148
151
|
* Get a skill by ID
|
|
149
152
|
*/
|
|
150
153
|
getSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
154
|
+
/**
|
|
155
|
+
* Returns all agents that have this skill installed. La réponse est une projection minimale : les deux adaptateurs ne sélectionnent que `id` et `name` (skills-pg.adapter.ts, skills-mongodb.adapter.ts).
|
|
156
|
+
* Get agents using a skill
|
|
157
|
+
*/
|
|
158
|
+
getSkillAgentsRaw(requestParameters: GetSkillAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentRefUio>>>;
|
|
159
|
+
/**
|
|
160
|
+
* Returns all agents that have this skill installed. La réponse est une projection minimale : les deux adaptateurs ne sélectionnent que `id` et `name` (skills-pg.adapter.ts, skills-mongodb.adapter.ts).
|
|
161
|
+
* Get agents using a skill
|
|
162
|
+
*/
|
|
163
|
+
getSkillAgents(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentRefUio>>;
|
|
151
164
|
/**
|
|
152
165
|
* Get a skill file with content
|
|
153
166
|
*/
|
package/dist/apis/SkillsApi.js
CHANGED
|
@@ -283,6 +283,35 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
283
283
|
const response = await this.getSkillRaw({ skillId: skillId }, initOverrides);
|
|
284
284
|
return await response.value();
|
|
285
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Returns all agents that have this skill installed. La réponse est une projection minimale : les deux adaptateurs ne sélectionnent que `id` et `name` (skills-pg.adapter.ts, skills-mongodb.adapter.ts).
|
|
288
|
+
* Get agents using a skill
|
|
289
|
+
*/
|
|
290
|
+
async getSkillAgentsRaw(requestParameters, initOverrides) {
|
|
291
|
+
if (requestParameters['skillId'] == null) {
|
|
292
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkillAgents().');
|
|
293
|
+
}
|
|
294
|
+
const queryParameters = {};
|
|
295
|
+
const headerParameters = {};
|
|
296
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
297
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
298
|
+
}
|
|
299
|
+
const response = await this.request({
|
|
300
|
+
path: `/skills/{skillId}/agents`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
301
|
+
method: 'GET',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
}, initOverrides);
|
|
305
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentRefUioFromJSON));
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Returns all agents that have this skill installed. La réponse est une projection minimale : les deux adaptateurs ne sélectionnent que `id` et `name` (skills-pg.adapter.ts, skills-mongodb.adapter.ts).
|
|
309
|
+
* Get agents using a skill
|
|
310
|
+
*/
|
|
311
|
+
async getSkillAgents(skillId, initOverrides) {
|
|
312
|
+
const response = await this.getSkillAgentsRaw({ skillId: skillId }, initOverrides);
|
|
313
|
+
return await response.value();
|
|
314
|
+
}
|
|
286
315
|
/**
|
|
287
316
|
* Get a skill file with content
|
|
288
317
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
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 AddModuleRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AddModuleRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddModuleRequestUio
|
|
22
|
+
*/
|
|
23
|
+
type: AddModuleRequestUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddModuleRequestUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: any; }}
|
|
33
|
+
* @memberof AddModuleRequestUio
|
|
34
|
+
*/
|
|
35
|
+
configuration: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof AddModuleRequestUio
|
|
42
|
+
*/
|
|
43
|
+
restricted?: boolean | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const AddModuleRequestUioTypeEnum: {
|
|
49
|
+
readonly ContextualKnowledgeWeaviate: "ContextualKnowledgeWeaviate";
|
|
50
|
+
readonly External: "External";
|
|
51
|
+
};
|
|
52
|
+
export type AddModuleRequestUioTypeEnum = typeof AddModuleRequestUioTypeEnum[keyof typeof AddModuleRequestUioTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the AddModuleRequestUio interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfAddModuleRequestUio(value: object): value is AddModuleRequestUio;
|
|
57
|
+
export declare function AddModuleRequestUioFromJSON(json: any): AddModuleRequestUio;
|
|
58
|
+
export declare function AddModuleRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddModuleRequestUio;
|
|
59
|
+
export declare function AddModuleRequestUioToJSON(json: any): AddModuleRequestUio;
|
|
60
|
+
export declare function AddModuleRequestUioToJSONTyped(value?: AddModuleRequestUio | 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.AddModuleRequestUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAddModuleRequestUio = instanceOfAddModuleRequestUio;
|
|
18
|
+
exports.AddModuleRequestUioFromJSON = AddModuleRequestUioFromJSON;
|
|
19
|
+
exports.AddModuleRequestUioFromJSONTyped = AddModuleRequestUioFromJSONTyped;
|
|
20
|
+
exports.AddModuleRequestUioToJSON = AddModuleRequestUioToJSON;
|
|
21
|
+
exports.AddModuleRequestUioToJSONTyped = AddModuleRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AddModuleRequestUioTypeEnum = {
|
|
26
|
+
ContextualKnowledgeWeaviate: 'ContextualKnowledgeWeaviate',
|
|
27
|
+
External: 'External'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AddModuleRequestUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAddModuleRequestUio(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AddModuleRequestUioFromJSON(json) {
|
|
42
|
+
return AddModuleRequestUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AddModuleRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'type': json['type'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'configuration': json['_configuration'],
|
|
52
|
+
'restricted': json['restricted'] == null ? undefined : json['restricted'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AddModuleRequestUioToJSON(json) {
|
|
56
|
+
return AddModuleRequestUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AddModuleRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'type': value['type'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'_configuration': value['configuration'],
|
|
66
|
+
'restricted': value['restricted'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -111,24 +111,6 @@ export interface AgentPatchUio {
|
|
|
111
111
|
* @memberof AgentPatchUio
|
|
112
112
|
*/
|
|
113
113
|
description?: string;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof AgentPatchUio
|
|
118
|
-
*/
|
|
119
|
-
template?: string;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof AgentPatchUio
|
|
124
|
-
*/
|
|
125
|
-
color?: string;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof AgentPatchUio
|
|
130
|
-
*/
|
|
131
|
-
picture?: string;
|
|
132
114
|
/**
|
|
133
115
|
*
|
|
134
116
|
* @type {string}
|
|
@@ -147,18 +129,6 @@ export interface AgentPatchUio {
|
|
|
147
129
|
* @memberof AgentPatchUio
|
|
148
130
|
*/
|
|
149
131
|
knowledgeBaseIds?: Array<string>;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {boolean}
|
|
153
|
-
* @memberof AgentPatchUio
|
|
154
|
-
*/
|
|
155
|
-
isTemplate?: boolean;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {boolean}
|
|
159
|
-
* @memberof AgentPatchUio
|
|
160
|
-
*/
|
|
161
|
-
deleted?: boolean;
|
|
162
132
|
/**
|
|
163
133
|
*
|
|
164
134
|
* @type {AgentTypeUio}
|
|
@@ -54,14 +54,9 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'role': json['role'] == null ? undefined : json['role'],
|
|
55
55
|
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
56
56
|
'description': json['description'] == null ? undefined : json['description'],
|
|
57
|
-
'template': json['template'] == null ? undefined : json['template'],
|
|
58
|
-
'color': json['color'] == null ? undefined : json['color'],
|
|
59
|
-
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
60
57
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
61
58
|
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
62
59
|
'knowledgeBaseIds': json['knowledgeBaseIds'] == null ? undefined : json['knowledgeBaseIds'],
|
|
63
|
-
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
64
|
-
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
65
60
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
66
61
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
67
62
|
'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
|
|
@@ -93,14 +88,9 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
88
|
'role': value['role'],
|
|
94
89
|
'defaultLanguage': value['defaultLanguage'],
|
|
95
90
|
'description': value['description'],
|
|
96
|
-
'template': value['template'],
|
|
97
|
-
'color': value['color'],
|
|
98
|
-
'picture': value['picture'],
|
|
99
91
|
'createdAt': value['createdAt'],
|
|
100
92
|
'isActivated': value['isActivated'],
|
|
101
93
|
'knowledgeBaseIds': value['knowledgeBaseIds'],
|
|
102
|
-
'isTemplate': value['isTemplate'],
|
|
103
|
-
'deleted': value['deleted'],
|
|
104
94
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
105
95
|
'personal': value['personal'],
|
|
106
96
|
'hideConversationsInHistory': value['hideConversationsInHistory'],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentRefUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentRefUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentRefUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentRefUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentRefUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentRefUio(value: object): value is AgentRefUio;
|
|
35
|
+
export declare function AgentRefUioFromJSON(json: any): AgentRefUio;
|
|
36
|
+
export declare function AgentRefUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRefUio;
|
|
37
|
+
export declare function AgentRefUioToJSON(json: any): AgentRefUio;
|
|
38
|
+
export declare function AgentRefUioToJSONTyped(value?: AgentRefUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentRefUio = instanceOfAgentRefUio;
|
|
17
|
+
exports.AgentRefUioFromJSON = AgentRefUioFromJSON;
|
|
18
|
+
exports.AgentRefUioFromJSONTyped = AgentRefUioFromJSONTyped;
|
|
19
|
+
exports.AgentRefUioToJSON = AgentRefUioToJSON;
|
|
20
|
+
exports.AgentRefUioToJSONTyped = AgentRefUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentRefUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentRefUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentRefUioFromJSON(json) {
|
|
32
|
+
return AgentRefUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentRefUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentRefUioToJSON(json) {
|
|
44
|
+
return AgentRefUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentRefUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentModuleUio } from './AgentModuleUio';
|
|
13
12
|
import type { PersonaUio } from './PersonaUio';
|
|
14
|
-
import type { EngineUio } from './EngineUio';
|
|
15
13
|
import type { PromptInitUio } from './PromptInitUio';
|
|
16
|
-
import type { AgentRequestProfilePictureUio } from './AgentRequestProfilePictureUio';
|
|
17
14
|
/**
|
|
18
15
|
*
|
|
19
16
|
* @export
|
|
@@ -32,24 +29,12 @@ export interface AgentRequestUio {
|
|
|
32
29
|
* @memberof AgentRequestUio
|
|
33
30
|
*/
|
|
34
31
|
persona: PersonaUio;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {EngineUio}
|
|
38
|
-
* @memberof AgentRequestUio
|
|
39
|
-
*/
|
|
40
|
-
engine?: EngineUio;
|
|
41
32
|
/**
|
|
42
33
|
*
|
|
43
34
|
* @type {PromptInitUio}
|
|
44
35
|
* @memberof AgentRequestUio
|
|
45
36
|
*/
|
|
46
37
|
promptInit: PromptInitUio;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {AgentRequestProfilePictureUio}
|
|
50
|
-
* @memberof AgentRequestUio
|
|
51
|
-
*/
|
|
52
|
-
profilePicture?: AgentRequestProfilePictureUio;
|
|
53
38
|
/**
|
|
54
39
|
*
|
|
55
40
|
* @type {string}
|
|
@@ -74,56 +59,12 @@ export interface AgentRequestUio {
|
|
|
74
59
|
* @memberof AgentRequestUio
|
|
75
60
|
*/
|
|
76
61
|
description?: string;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof AgentRequestUio
|
|
81
|
-
*/
|
|
82
|
-
template?: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof AgentRequestUio
|
|
87
|
-
*/
|
|
88
|
-
color?: string;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof AgentRequestUio
|
|
93
|
-
*/
|
|
94
|
-
picture?: string;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof AgentRequestUio
|
|
99
|
-
*/
|
|
100
|
-
createdAt?: string;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {boolean}
|
|
104
|
-
* @memberof AgentRequestUio
|
|
105
|
-
*/
|
|
106
|
-
isActivated?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {{ [key: string]: AgentModuleUio; }}
|
|
110
|
-
* @memberof AgentRequestUio
|
|
111
|
-
*/
|
|
112
|
-
modules?: {
|
|
113
|
-
[key: string]: AgentModuleUio;
|
|
114
|
-
};
|
|
115
62
|
/**
|
|
116
63
|
*
|
|
117
64
|
* @type {boolean}
|
|
118
65
|
* @memberof AgentRequestUio
|
|
119
66
|
*/
|
|
120
67
|
personal?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof AgentRequestUio
|
|
125
|
-
*/
|
|
126
|
-
createdBy?: string;
|
|
127
68
|
}
|
|
128
69
|
/**
|
|
129
70
|
* Check if a given object implements the AgentRequestUio interface.
|
|
@@ -18,12 +18,8 @@ exports.AgentRequestUioFromJSON = AgentRequestUioFromJSON;
|
|
|
18
18
|
exports.AgentRequestUioFromJSONTyped = AgentRequestUioFromJSONTyped;
|
|
19
19
|
exports.AgentRequestUioToJSON = AgentRequestUioToJSON;
|
|
20
20
|
exports.AgentRequestUioToJSONTyped = AgentRequestUioToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const AgentModuleUio_1 = require("./AgentModuleUio");
|
|
23
21
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
|
-
const EngineUio_1 = require("./EngineUio");
|
|
25
22
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
26
|
-
const AgentRequestProfilePictureUio_1 = require("./AgentRequestProfilePictureUio");
|
|
27
23
|
/**
|
|
28
24
|
* Check if a given object implements the AgentRequestUio interface.
|
|
29
25
|
*/
|
|
@@ -48,21 +44,12 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
44
|
return {
|
|
49
45
|
'name': json['name'],
|
|
50
46
|
'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
51
|
-
'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
52
47
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
53
|
-
'profilePicture': json['profilePicture'] == null ? undefined : (0, AgentRequestProfilePictureUio_1.AgentRequestProfilePictureUioFromJSON)(json['profilePicture']),
|
|
54
48
|
'organisationId': json['organisationId'],
|
|
55
49
|
'role': json['role'] == null ? undefined : json['role'],
|
|
56
50
|
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
57
51
|
'description': json['description'] == null ? undefined : json['description'],
|
|
58
|
-
'template': json['template'] == null ? undefined : json['template'],
|
|
59
|
-
'color': json['color'] == null ? undefined : json['color'],
|
|
60
|
-
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
61
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
62
|
-
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
63
|
-
'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
64
52
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
65
|
-
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
66
53
|
};
|
|
67
54
|
}
|
|
68
55
|
function AgentRequestUioToJSON(json) {
|
|
@@ -75,20 +62,11 @@ function AgentRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
62
|
return {
|
|
76
63
|
'name': value['name'],
|
|
77
64
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
78
|
-
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
79
65
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
80
|
-
'profilePicture': (0, AgentRequestProfilePictureUio_1.AgentRequestProfilePictureUioToJSON)(value['profilePicture']),
|
|
81
66
|
'organisationId': value['organisationId'],
|
|
82
67
|
'role': value['role'],
|
|
83
68
|
'defaultLanguage': value['defaultLanguage'],
|
|
84
69
|
'description': value['description'],
|
|
85
|
-
'template': value['template'],
|
|
86
|
-
'color': value['color'],
|
|
87
|
-
'picture': value['picture'],
|
|
88
|
-
'createdAt': value['createdAt'],
|
|
89
|
-
'isActivated': value['isActivated'],
|
|
90
|
-
'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
91
70
|
'personal': value['personal'],
|
|
92
|
-
'createdBy': value['createdBy'],
|
|
93
71
|
};
|
|
94
72
|
}
|
|
@@ -52,12 +52,6 @@ export interface AgentUio {
|
|
|
52
52
|
modules: {
|
|
53
53
|
[key: string]: any;
|
|
54
54
|
};
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<AgentToolUio>}
|
|
58
|
-
* @memberof AgentUio
|
|
59
|
-
*/
|
|
60
|
-
tools?: Array<AgentToolUio>;
|
|
61
55
|
/**
|
|
62
56
|
*
|
|
63
57
|
* @type {Array<string>}
|
|
@@ -132,24 +126,6 @@ export interface AgentUio {
|
|
|
132
126
|
* @memberof AgentUio
|
|
133
127
|
*/
|
|
134
128
|
description?: string;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof AgentUio
|
|
139
|
-
*/
|
|
140
|
-
template?: string;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof AgentUio
|
|
145
|
-
*/
|
|
146
|
-
color?: string;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {string}
|
|
150
|
-
* @memberof AgentUio
|
|
151
|
-
*/
|
|
152
|
-
picture?: string;
|
|
153
129
|
/**
|
|
154
130
|
*
|
|
155
131
|
* @type {string}
|
|
@@ -168,32 +144,12 @@ export interface AgentUio {
|
|
|
168
144
|
* @memberof AgentUio
|
|
169
145
|
*/
|
|
170
146
|
isActivated?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @memberof AgentUio
|
|
175
|
-
*/
|
|
176
|
-
isTemplate?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {boolean}
|
|
180
|
-
* @memberof AgentUio
|
|
181
|
-
*/
|
|
182
|
-
deleted?: boolean;
|
|
183
147
|
/**
|
|
184
148
|
*
|
|
185
149
|
* @type {AgentTypeUio}
|
|
186
150
|
* @memberof AgentUio
|
|
187
151
|
*/
|
|
188
152
|
agentType?: AgentTypeUio;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {{ [key: string]: any; }}
|
|
192
|
-
* @memberof AgentUio
|
|
193
|
-
*/
|
|
194
|
-
favoriteOutfit?: {
|
|
195
|
-
[key: string]: any;
|
|
196
|
-
};
|
|
197
153
|
/**
|
|
198
154
|
*
|
|
199
155
|
* @type {boolean}
|
|
@@ -254,6 +210,12 @@ export interface AgentUio {
|
|
|
254
210
|
* @memberof AgentUio
|
|
255
211
|
*/
|
|
256
212
|
providerSource?: AgentUioProviderSourceEnum;
|
|
213
|
+
/**
|
|
214
|
+
* Réhydraté en objets par GET /agents/{agentId}, le seul endpoint qui joint la table des tools de l'organisation. Les autres endpoints qui renvoient un agent (liste, création, mise à jour) omettent la propriété : en base elle ne contient que des identifiants.
|
|
215
|
+
* @type {Array<AgentToolUio>}
|
|
216
|
+
* @memberof AgentUio
|
|
217
|
+
*/
|
|
218
|
+
tools?: Array<AgentToolUio>;
|
|
257
219
|
}
|
|
258
220
|
/**
|
|
259
221
|
* @export
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -74,7 +74,6 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'name': json['name'],
|
|
75
75
|
'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
76
76
|
'modules': json['modules'],
|
|
77
|
-
'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
|
|
78
77
|
'knowledgeBaseIds': json['knowledgeBaseIds'] == null ? undefined : json['knowledgeBaseIds'],
|
|
79
78
|
'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
80
79
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
@@ -87,16 +86,10 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
86
|
'roleDetails': json['roleDetails'] == null ? undefined : (0, AgentRoleDetailsUio_1.AgentRoleDetailsUioFromJSON)(json['roleDetails']),
|
|
88
87
|
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
89
88
|
'description': json['description'] == null ? undefined : json['description'],
|
|
90
|
-
'template': json['template'] == null ? undefined : json['template'],
|
|
91
|
-
'color': json['color'] == null ? undefined : json['color'],
|
|
92
|
-
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
93
89
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
94
90
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
95
91
|
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
96
|
-
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
97
|
-
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
98
92
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
99
|
-
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
100
93
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
101
94
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
102
95
|
'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
|
|
@@ -107,6 +100,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
100
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
108
101
|
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
109
102
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
103
|
+
'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
|
|
110
104
|
};
|
|
111
105
|
}
|
|
112
106
|
function AgentUioToJSON(json) {
|
|
@@ -121,7 +115,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
121
115
|
'name': value['name'],
|
|
122
116
|
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
123
117
|
'modules': value['modules'],
|
|
124
|
-
'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
|
|
125
118
|
'knowledgeBaseIds': value['knowledgeBaseIds'],
|
|
126
119
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
127
120
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
@@ -134,16 +127,10 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
134
127
|
'roleDetails': (0, AgentRoleDetailsUio_1.AgentRoleDetailsUioToJSON)(value['roleDetails']),
|
|
135
128
|
'defaultLanguage': value['defaultLanguage'],
|
|
136
129
|
'description': value['description'],
|
|
137
|
-
'template': value['template'],
|
|
138
|
-
'color': value['color'],
|
|
139
|
-
'picture': value['picture'],
|
|
140
130
|
'createdAt': value['createdAt'],
|
|
141
131
|
'updatedAt': value['updatedAt'],
|
|
142
132
|
'isActivated': value['isActivated'],
|
|
143
|
-
'isTemplate': value['isTemplate'],
|
|
144
|
-
'deleted': value['deleted'],
|
|
145
133
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
146
|
-
'favoriteOutfit': value['favoriteOutfit'],
|
|
147
134
|
'personal': value['personal'],
|
|
148
135
|
'createdBy': value['createdBy'],
|
|
149
136
|
'hideConversationsInHistory': value['hideConversationsInHistory'],
|
|
@@ -154,5 +141,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
154
141
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
155
142
|
'engineSource': value['engineSource'],
|
|
156
143
|
'providerSource': value['providerSource'],
|
|
144
|
+
'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
|
|
157
145
|
};
|
|
158
146
|
}
|