@breign/client 1.0.5 → 1.0.7
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 +5 -4
- package/dist/apis/AgentApi.js +6 -3
- package/dist/apis/EngineApi.d.ts +6 -5
- package/dist/apis/EngineApi.js +13 -7
- package/dist/apis/FilesApi.d.ts +21 -21
- package/dist/apis/FilesApi.js +42 -42
- package/dist/apis/GeneralApi.d.ts +2 -2
- package/dist/apis/GeneralApi.js +3 -3
- package/dist/apis/GuardiansApi.d.ts +54 -54
- package/dist/apis/GuardiansApi.js +91 -91
- package/dist/apis/KnowledgeApi.d.ts +72 -72
- package/dist/apis/KnowledgeApi.js +152 -152
- package/dist/apis/ManifestsApi.d.ts +28 -28
- package/dist/apis/ManifestsApi.js +45 -45
- package/dist/apis/MetricsApi.d.ts +14 -14
- package/dist/apis/MetricsApi.js +18 -18
- package/dist/apis/OrganizationsApi.d.ts +3 -3
- package/dist/apis/OrganizationsApi.js +4 -4
- package/dist/apis/PromptsApi.d.ts +31 -31
- package/dist/apis/PromptsApi.js +60 -60
- package/dist/apis/RemotesApi.d.ts +3 -3
- package/dist/apis/RemotesApi.js +4 -4
- package/dist/apis/ToolsApi.d.ts +6 -6
- package/dist/apis/ToolsApi.js +8 -8
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +4 -4
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentRequestUio.d.ts +10 -1
- package/dist/models/AgentRequestUio.js +5 -3
- package/dist/models/AgentUio.d.ts +10 -3
- package/dist/models/AgentUio.js +4 -3
- package/dist/models/AppCreateRequestUio.d.ts +6 -0
- package/dist/models/AppCreateRequestUio.js +2 -0
- package/dist/models/AppSequencesInnerUio.d.ts +38 -0
- package/dist/models/AppSequencesInnerUio.js +50 -0
- package/dist/models/AppUio.d.ts +24 -3
- package/dist/models/AppUio.js +11 -10
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +10 -2
- package/dist/models/ChatMessageUio.js +6 -2
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +9 -3
- package/dist/models/ChatUio.js +5 -3
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationFlowNodeUio.js +55 -0
- package/dist/models/ConversationUio.d.ts +7 -0
- package/dist/models/ConversationUio.js +5 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
- package/dist/models/DefaultEngineRequestUio.js +3 -7
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- package/dist/models/FileCreationRequestUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.js +1 -3
- package/dist/models/FileCreationResponseUio.d.ts +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
- package/dist/models/GuardianCreateRequestUio.js +5 -0
- package/dist/models/GuardianEngineUio.d.ts +0 -7
- package/dist/models/GuardianEngineUio.js +0 -5
- package/dist/models/GuardianPutRequestUio.d.ts +7 -0
- package/dist/models/GuardianPutRequestUio.js +3 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +7 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
- package/dist/models/KnowledgeBaseUio.d.ts +124 -0
- package/dist/models/KnowledgeBaseUio.js +88 -0
- package/dist/models/OrganizationUio.d.ts +0 -9
- package/dist/models/OrganizationUio.js +0 -6
- package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
- package/dist/models/ProviderCreateRequestUio.js +4 -9
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +4 -9
- package/dist/models/ProviderUio.js +4 -9
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/openapi.json +369 -120
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
- package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
- package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
- package/dist/models/GuardianEngineTypeUio.js +0 -52
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
- package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
|
+
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
13
14
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,6 +30,12 @@ export interface GuardianPutRequestUio {
|
|
|
29
30
|
* @memberof GuardianPutRequestUio
|
|
30
31
|
*/
|
|
31
32
|
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {GuardianTypeUio}
|
|
36
|
+
* @memberof GuardianPutRequestUio
|
|
37
|
+
*/
|
|
38
|
+
type?: GuardianTypeUio;
|
|
32
39
|
/**
|
|
33
40
|
*
|
|
34
41
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.GuardianPutRequestUioFromJSONTyped = GuardianPutRequestUioFromJSONTyped;
|
|
|
19
19
|
exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
|
|
20
20
|
exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
|
+
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
22
23
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -36,6 +37,7 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'role': json['role'] == null ? undefined : (0, GuardianRoleUio_1.GuardianRoleUioFromJSON)(json['role']),
|
|
38
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
40
|
+
'type': json['type'] == null ? undefined : (0, GuardianTypeUio_1.GuardianTypeUioFromJSON)(json['type']),
|
|
39
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
40
42
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
41
43
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
@@ -52,6 +54,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
54
|
return {
|
|
53
55
|
'role': (0, GuardianRoleUio_1.GuardianRoleUioToJSON)(value['role']),
|
|
54
56
|
'name': value['name'],
|
|
57
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioToJSON)(value['type']),
|
|
55
58
|
'description': value['description'],
|
|
56
59
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
57
60
|
'thresholds': value['thresholds'],
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const GuardianTypeUio: {
|
|
17
|
+
readonly Node: "node";
|
|
18
|
+
readonly Openai: "openai";
|
|
19
|
+
readonly Llmguards: "llmguards";
|
|
20
|
+
};
|
|
21
|
+
export type GuardianTypeUio = typeof GuardianTypeUio[keyof typeof GuardianTypeUio];
|
|
22
|
+
export declare function instanceOfGuardianTypeUio(value: any): boolean;
|
|
23
|
+
export declare function GuardianTypeUioFromJSON(json: any): GuardianTypeUio;
|
|
24
|
+
export declare function GuardianTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuardianTypeUio;
|
|
25
|
+
export declare function GuardianTypeUioToJSON(value?: GuardianTypeUio | null): any;
|
|
26
|
+
export declare function GuardianTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): GuardianTypeUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.GuardianTypeUio = void 0;
|
|
17
|
+
exports.instanceOfGuardianTypeUio = instanceOfGuardianTypeUio;
|
|
18
|
+
exports.GuardianTypeUioFromJSON = GuardianTypeUioFromJSON;
|
|
19
|
+
exports.GuardianTypeUioFromJSONTyped = GuardianTypeUioFromJSONTyped;
|
|
20
|
+
exports.GuardianTypeUioToJSON = GuardianTypeUioToJSON;
|
|
21
|
+
exports.GuardianTypeUioToJSONTyped = GuardianTypeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GuardianTypeUio = {
|
|
27
|
+
Node: 'node',
|
|
28
|
+
Openai: 'openai',
|
|
29
|
+
Llmguards: 'llmguards'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfGuardianTypeUio(value) {
|
|
32
|
+
for (const key in exports.GuardianTypeUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.GuardianTypeUio, key)) {
|
|
34
|
+
if (exports.GuardianTypeUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function GuardianTypeUioFromJSON(json) {
|
|
42
|
+
return GuardianTypeUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GuardianTypeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function GuardianTypeUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function GuardianTypeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
+
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
14
15
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -30,6 +31,12 @@ export interface GuardianUio {
|
|
|
30
31
|
* @memberof GuardianUio
|
|
31
32
|
*/
|
|
32
33
|
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GuardianTypeUio}
|
|
37
|
+
* @memberof GuardianUio
|
|
38
|
+
*/
|
|
39
|
+
type: GuardianTypeUio;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {string}
|
|
@@ -20,6 +20,7 @@ exports.GuardianUioToJSON = GuardianUioToJSON;
|
|
|
20
20
|
exports.GuardianUioToJSONTyped = GuardianUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
22
|
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
23
|
+
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
23
24
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the GuardianUio interface.
|
|
@@ -27,6 +28,8 @@ const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
|
27
28
|
function instanceOfGuardianUio(value) {
|
|
28
29
|
if (!('id' in value) || value['id'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
30
33
|
if (!('role' in value) || value['role'] === undefined)
|
|
31
34
|
return false;
|
|
32
35
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -45,6 +48,7 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
48
|
return {
|
|
46
49
|
'id': json['id'],
|
|
47
50
|
'name': json['name'] == null ? undefined : json['name'],
|
|
51
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioFromJSON)(json['type']),
|
|
48
52
|
'description': json['description'] == null ? undefined : json['description'],
|
|
49
53
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
50
54
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
@@ -69,6 +73,7 @@ function GuardianUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
73
|
return {
|
|
70
74
|
'id': value['id'],
|
|
71
75
|
'name': value['name'],
|
|
76
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioToJSON)(value['type']),
|
|
72
77
|
'description': value['description'],
|
|
73
78
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
74
79
|
'agentId': value['agentId'],
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ImportFileToAgentKnowledge200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ImportFileToAgentKnowledge200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImportFileToAgentKnowledge200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImportFileToAgentKnowledge200ResponseUio
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ImportFileToAgentKnowledge200ResponseUio
|
|
34
|
+
*/
|
|
35
|
+
type?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ImportFileToAgentKnowledge200ResponseUio
|
|
40
|
+
*/
|
|
41
|
+
size?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ImportFileToAgentKnowledge200ResponseUio
|
|
46
|
+
*/
|
|
47
|
+
chunkCount?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ImportFileToAgentKnowledge200ResponseUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfImportFileToAgentKnowledge200ResponseUio(value: object): value is ImportFileToAgentKnowledge200ResponseUio;
|
|
53
|
+
export declare function ImportFileToAgentKnowledge200ResponseUioFromJSON(json: any): ImportFileToAgentKnowledge200ResponseUio;
|
|
54
|
+
export declare function ImportFileToAgentKnowledge200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportFileToAgentKnowledge200ResponseUio;
|
|
55
|
+
export declare function ImportFileToAgentKnowledge200ResponseUioToJSON(json: any): ImportFileToAgentKnowledge200ResponseUio;
|
|
56
|
+
export declare function ImportFileToAgentKnowledge200ResponseUioToJSONTyped(value?: ImportFileToAgentKnowledge200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfImportFileToAgentKnowledge200ResponseUio = instanceOfImportFileToAgentKnowledge200ResponseUio;
|
|
17
|
+
exports.ImportFileToAgentKnowledge200ResponseUioFromJSON = ImportFileToAgentKnowledge200ResponseUioFromJSON;
|
|
18
|
+
exports.ImportFileToAgentKnowledge200ResponseUioFromJSONTyped = ImportFileToAgentKnowledge200ResponseUioFromJSONTyped;
|
|
19
|
+
exports.ImportFileToAgentKnowledge200ResponseUioToJSON = ImportFileToAgentKnowledge200ResponseUioToJSON;
|
|
20
|
+
exports.ImportFileToAgentKnowledge200ResponseUioToJSONTyped = ImportFileToAgentKnowledge200ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ImportFileToAgentKnowledge200ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfImportFileToAgentKnowledge200ResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ImportFileToAgentKnowledge200ResponseUioFromJSON(json) {
|
|
28
|
+
return ImportFileToAgentKnowledge200ResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ImportFileToAgentKnowledge200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
38
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
39
|
+
'chunkCount': json['chunkCount'] == null ? undefined : json['chunkCount'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ImportFileToAgentKnowledge200ResponseUioToJSON(json) {
|
|
43
|
+
return ImportFileToAgentKnowledge200ResponseUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ImportFileToAgentKnowledge200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'type': value['type'],
|
|
53
|
+
'size': value['size'],
|
|
54
|
+
'chunkCount': value['chunkCount'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 KnowledgeBaseFilesInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface KnowledgeBaseFilesInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
34
|
+
*/
|
|
35
|
+
knowledgeBaseId: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfKnowledgeBaseFilesInnerUio(value: object): value is KnowledgeBaseFilesInnerUio;
|
|
41
|
+
export declare function KnowledgeBaseFilesInnerUioFromJSON(json: any): KnowledgeBaseFilesInnerUio;
|
|
42
|
+
export declare function KnowledgeBaseFilesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseFilesInnerUio;
|
|
43
|
+
export declare function KnowledgeBaseFilesInnerUioToJSON(json: any): KnowledgeBaseFilesInnerUio;
|
|
44
|
+
export declare function KnowledgeBaseFilesInnerUioToJSONTyped(value?: KnowledgeBaseFilesInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfKnowledgeBaseFilesInnerUio = instanceOfKnowledgeBaseFilesInnerUio;
|
|
17
|
+
exports.KnowledgeBaseFilesInnerUioFromJSON = KnowledgeBaseFilesInnerUioFromJSON;
|
|
18
|
+
exports.KnowledgeBaseFilesInnerUioFromJSONTyped = KnowledgeBaseFilesInnerUioFromJSONTyped;
|
|
19
|
+
exports.KnowledgeBaseFilesInnerUioToJSON = KnowledgeBaseFilesInnerUioToJSON;
|
|
20
|
+
exports.KnowledgeBaseFilesInnerUioToJSONTyped = KnowledgeBaseFilesInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfKnowledgeBaseFilesInnerUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('knowledgeBaseId' in value) || value['knowledgeBaseId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function KnowledgeBaseFilesInnerUioFromJSON(json) {
|
|
34
|
+
return KnowledgeBaseFilesInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function KnowledgeBaseFilesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'knowledgeBaseId': json['knowledgeBaseId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function KnowledgeBaseFilesInnerUioToJSON(json) {
|
|
47
|
+
return KnowledgeBaseFilesInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function KnowledgeBaseFilesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { KnowledgeBasePrivacyUio } from './KnowledgeBasePrivacyUio';
|
|
13
|
+
import type { KnowledgeBaseFilesInnerUio } from './KnowledgeBaseFilesInnerUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface KnowledgeBaseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface KnowledgeBaseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof KnowledgeBaseUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof KnowledgeBaseUio
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof KnowledgeBaseUio
|
|
36
|
+
*/
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof KnowledgeBaseUio
|
|
42
|
+
*/
|
|
43
|
+
updatedAt?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof KnowledgeBaseUio
|
|
48
|
+
*/
|
|
49
|
+
organisationId?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof KnowledgeBaseUio
|
|
54
|
+
*/
|
|
55
|
+
authorizedAgents: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* DEPRECATED
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof KnowledgeBaseUio
|
|
60
|
+
*/
|
|
61
|
+
isTemplate?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {KnowledgeBasePrivacyUio}
|
|
65
|
+
* @memberof KnowledgeBaseUio
|
|
66
|
+
*/
|
|
67
|
+
privacy?: KnowledgeBasePrivacyUio;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof KnowledgeBaseUio
|
|
72
|
+
*/
|
|
73
|
+
role?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof KnowledgeBaseUio
|
|
78
|
+
*/
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof KnowledgeBaseUio
|
|
84
|
+
*/
|
|
85
|
+
picture?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof KnowledgeBaseUio
|
|
90
|
+
*/
|
|
91
|
+
template?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof KnowledgeBaseUio
|
|
96
|
+
*/
|
|
97
|
+
agentType?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {Array<KnowledgeBaseFilesInnerUio>}
|
|
101
|
+
* @memberof KnowledgeBaseUio
|
|
102
|
+
*/
|
|
103
|
+
files?: Array<KnowledgeBaseFilesInnerUio>;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof KnowledgeBaseUio
|
|
108
|
+
*/
|
|
109
|
+
status?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof KnowledgeBaseUio
|
|
114
|
+
*/
|
|
115
|
+
indexed?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the KnowledgeBaseUio interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfKnowledgeBaseUio(value: object): value is KnowledgeBaseUio;
|
|
121
|
+
export declare function KnowledgeBaseUioFromJSON(json: any): KnowledgeBaseUio;
|
|
122
|
+
export declare function KnowledgeBaseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseUio;
|
|
123
|
+
export declare function KnowledgeBaseUioToJSON(json: any): KnowledgeBaseUio;
|
|
124
|
+
export declare function KnowledgeBaseUioToJSONTyped(value?: KnowledgeBaseUio | 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.instanceOfKnowledgeBaseUio = instanceOfKnowledgeBaseUio;
|
|
17
|
+
exports.KnowledgeBaseUioFromJSON = KnowledgeBaseUioFromJSON;
|
|
18
|
+
exports.KnowledgeBaseUioFromJSONTyped = KnowledgeBaseUioFromJSONTyped;
|
|
19
|
+
exports.KnowledgeBaseUioToJSON = KnowledgeBaseUioToJSON;
|
|
20
|
+
exports.KnowledgeBaseUioToJSONTyped = KnowledgeBaseUioToJSONTyped;
|
|
21
|
+
const KnowledgeBasePrivacyUio_1 = require("./KnowledgeBasePrivacyUio");
|
|
22
|
+
const KnowledgeBaseFilesInnerUio_1 = require("./KnowledgeBaseFilesInnerUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the KnowledgeBaseUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfKnowledgeBaseUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('authorizedAgents' in value) || value['authorizedAgents'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function KnowledgeBaseUioFromJSON(json) {
|
|
38
|
+
return KnowledgeBaseUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function KnowledgeBaseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'createdAt': json['createdAt'],
|
|
48
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
49
|
+
'organisationId': json['organisationId'] == null ? undefined : json['organisationId'],
|
|
50
|
+
'authorizedAgents': json['authorizedAgents'],
|
|
51
|
+
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
52
|
+
'privacy': json['privacy'] == null ? undefined : (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioFromJSON)(json['privacy']),
|
|
53
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
54
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
55
|
+
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
56
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
57
|
+
'agentType': json['agentType'] == null ? undefined : json['agentType'],
|
|
58
|
+
'files': json['files'] == null ? undefined : (json['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioFromJSON)),
|
|
59
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
60
|
+
'indexed': json['indexed'] == null ? undefined : json['indexed'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function KnowledgeBaseUioToJSON(json) {
|
|
64
|
+
return KnowledgeBaseUioToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function KnowledgeBaseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'createdAt': value['createdAt'],
|
|
74
|
+
'updatedAt': value['updatedAt'],
|
|
75
|
+
'organisationId': value['organisationId'],
|
|
76
|
+
'authorizedAgents': value['authorizedAgents'],
|
|
77
|
+
'isTemplate': value['isTemplate'],
|
|
78
|
+
'privacy': (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioToJSON)(value['privacy']),
|
|
79
|
+
'role': value['role'],
|
|
80
|
+
'description': value['description'],
|
|
81
|
+
'picture': value['picture'],
|
|
82
|
+
'template': value['template'],
|
|
83
|
+
'agentType': value['agentType'],
|
|
84
|
+
'files': value['files'] == null ? undefined : (value['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioToJSON)),
|
|
85
|
+
'status': value['status'],
|
|
86
|
+
'indexed': value['indexed'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentModuleUio } from './AgentModuleUio';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -28,14 +27,6 @@ export interface OrganizationUio {
|
|
|
28
27
|
* @memberof OrganizationUio
|
|
29
28
|
*/
|
|
30
29
|
name: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {{ [key: string]: AgentModuleUio; }}
|
|
34
|
-
* @memberof OrganizationUio
|
|
35
|
-
*/
|
|
36
|
-
modules: {
|
|
37
|
-
[key: string]: AgentModuleUio;
|
|
38
|
-
};
|
|
39
30
|
}
|
|
40
31
|
/**
|
|
41
32
|
* Check if a given object implements the OrganizationUio interface.
|
|
@@ -18,8 +18,6 @@ exports.OrganizationUioFromJSON = OrganizationUioFromJSON;
|
|
|
18
18
|
exports.OrganizationUioFromJSONTyped = OrganizationUioFromJSONTyped;
|
|
19
19
|
exports.OrganizationUioToJSON = OrganizationUioToJSON;
|
|
20
20
|
exports.OrganizationUioToJSONTyped = OrganizationUioToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const AgentModuleUio_1 = require("./AgentModuleUio");
|
|
23
21
|
/**
|
|
24
22
|
* Check if a given object implements the OrganizationUio interface.
|
|
25
23
|
*/
|
|
@@ -28,8 +26,6 @@ function instanceOfOrganizationUio(value) {
|
|
|
28
26
|
return false;
|
|
29
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
30
28
|
return false;
|
|
31
|
-
if (!('modules' in value) || value['modules'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
return true;
|
|
34
30
|
}
|
|
35
31
|
function OrganizationUioFromJSON(json) {
|
|
@@ -42,7 +38,6 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
38
|
return {
|
|
43
39
|
'id': json['id'],
|
|
44
40
|
'name': json['name'],
|
|
45
|
-
'modules': ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
function OrganizationUioToJSON(json) {
|
|
@@ -55,6 +50,5 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
50
|
return {
|
|
56
51
|
'id': value['id'],
|
|
57
52
|
'name': value['name'],
|
|
58
|
-
'modules': ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
59
53
|
};
|
|
60
54
|
}
|