@breign/client 1.0.109 → 1.0.110
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/AppApi.d.ts +92 -18
- package/dist/apis/AppApi.js +196 -32
- package/dist/apis/KnowledgeApi.d.ts +120 -8
- package/dist/apis/KnowledgeApi.js +268 -30
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +3 -2
- package/dist/apis/ToolsApi.d.ts +42 -1
- package/dist/apis/ToolsApi.js +87 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
- package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
- package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
- package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
- package/dist/models/AddCustomFillerRequestUio.js +50 -0
- package/dist/models/AgentPatchUio.d.ts +1 -1
- package/dist/models/AgentUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.d.ts +6 -0
- package/dist/models/FileCreationRequestUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +38 -0
- package/dist/models/FileCreationResponseUio.js +18 -0
- package/dist/models/FileUio.d.ts +38 -0
- package/dist/models/FileUio.js +18 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
- package/dist/models/FileWithDownloadUrlUio.js +18 -0
- package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
- package/dist/models/KnowledgeSitePageUio.js +101 -0
- package/dist/models/MessageStatusErrorUio.d.ts +38 -0
- package/dist/models/MessageStatusErrorUio.js +50 -0
- package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
- package/dist/models/MessageStatusToolCallUio.js +54 -0
- package/dist/models/MessageStatusUio.d.ts +79 -0
- package/dist/models/MessageStatusUio.js +73 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
- package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
- package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
- package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
- package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.js +18 -1
- package/dist/openapi.json +1365 -282
- package/package.json +1 -1
- package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
- package/dist/models/AudioFillerExistsResponseUio.js +0 -50
package/dist/models/FileUio.d.ts
CHANGED
|
@@ -29,6 +29,36 @@ export interface FileUio {
|
|
|
29
29
|
* @memberof FileUio
|
|
30
30
|
*/
|
|
31
31
|
id: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof FileUio
|
|
36
|
+
*/
|
|
37
|
+
knowledgeBaseId?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof FileUio
|
|
42
|
+
*/
|
|
43
|
+
knowledgeType?: FileUioKnowledgeTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof FileUio
|
|
48
|
+
*/
|
|
49
|
+
isFAQ?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof FileUio
|
|
54
|
+
*/
|
|
55
|
+
uploadId?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof FileUio
|
|
60
|
+
*/
|
|
61
|
+
hash?: string;
|
|
32
62
|
/**
|
|
33
63
|
*
|
|
34
64
|
* @type {string}
|
|
@@ -90,6 +120,14 @@ export interface FileUio {
|
|
|
90
120
|
*/
|
|
91
121
|
isActive?: boolean;
|
|
92
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export declare const FileUioKnowledgeTypeEnum: {
|
|
127
|
+
readonly File: "file";
|
|
128
|
+
readonly Website: "website";
|
|
129
|
+
};
|
|
130
|
+
export type FileUioKnowledgeTypeEnum = typeof FileUioKnowledgeTypeEnum[keyof typeof FileUioKnowledgeTypeEnum];
|
|
93
131
|
/**
|
|
94
132
|
* Check if a given object implements the FileUio interface.
|
|
95
133
|
*/
|
package/dist/models/FileUio.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FileUioKnowledgeTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfFileUio = instanceOfFileUio;
|
|
17
18
|
exports.FileUioFromJSON = FileUioFromJSON;
|
|
18
19
|
exports.FileUioFromJSONTyped = FileUioFromJSONTyped;
|
|
@@ -20,6 +21,13 @@ exports.FileUioToJSON = FileUioToJSON;
|
|
|
20
21
|
exports.FileUioToJSONTyped = FileUioToJSONTyped;
|
|
21
22
|
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
22
23
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.FileUioKnowledgeTypeEnum = {
|
|
28
|
+
File: 'file',
|
|
29
|
+
Website: 'website'
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* Check if a given object implements the FileUio interface.
|
|
25
33
|
*/
|
|
@@ -38,6 +46,11 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
46
|
return {
|
|
39
47
|
'name': json['name'] == null ? undefined : json['name'],
|
|
40
48
|
'id': json['id'],
|
|
49
|
+
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
50
|
+
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
51
|
+
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
52
|
+
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
53
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
41
54
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
42
55
|
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
43
56
|
'key': json['key'] == null ? undefined : json['key'],
|
|
@@ -60,6 +73,11 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
73
|
return {
|
|
61
74
|
'name': value['name'],
|
|
62
75
|
'id': value['id'],
|
|
76
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
77
|
+
'knowledgeType': value['knowledgeType'],
|
|
78
|
+
'isFAQ': value['isFAQ'],
|
|
79
|
+
'uploadId': value['uploadId'],
|
|
80
|
+
'hash': value['hash'],
|
|
63
81
|
'contentType': value['contentType'],
|
|
64
82
|
'ext': value['ext'],
|
|
65
83
|
'key': value['key'],
|
|
@@ -29,6 +29,36 @@ export interface FileWithDownloadUrlUio {
|
|
|
29
29
|
* @memberof FileWithDownloadUrlUio
|
|
30
30
|
*/
|
|
31
31
|
id: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof FileWithDownloadUrlUio
|
|
36
|
+
*/
|
|
37
|
+
knowledgeBaseId?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof FileWithDownloadUrlUio
|
|
42
|
+
*/
|
|
43
|
+
knowledgeType?: FileWithDownloadUrlUioKnowledgeTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof FileWithDownloadUrlUio
|
|
48
|
+
*/
|
|
49
|
+
isFAQ?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof FileWithDownloadUrlUio
|
|
54
|
+
*/
|
|
55
|
+
uploadId?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof FileWithDownloadUrlUio
|
|
60
|
+
*/
|
|
61
|
+
hash?: string;
|
|
32
62
|
/**
|
|
33
63
|
*
|
|
34
64
|
* @type {string}
|
|
@@ -96,6 +126,14 @@ export interface FileWithDownloadUrlUio {
|
|
|
96
126
|
*/
|
|
97
127
|
downloadURL: string;
|
|
98
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
export declare const FileWithDownloadUrlUioKnowledgeTypeEnum: {
|
|
133
|
+
readonly File: "file";
|
|
134
|
+
readonly Website: "website";
|
|
135
|
+
};
|
|
136
|
+
export type FileWithDownloadUrlUioKnowledgeTypeEnum = typeof FileWithDownloadUrlUioKnowledgeTypeEnum[keyof typeof FileWithDownloadUrlUioKnowledgeTypeEnum];
|
|
99
137
|
/**
|
|
100
138
|
* Check if a given object implements the FileWithDownloadUrlUio interface.
|
|
101
139
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FileWithDownloadUrlUioKnowledgeTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfFileWithDownloadUrlUio = instanceOfFileWithDownloadUrlUio;
|
|
17
18
|
exports.FileWithDownloadUrlUioFromJSON = FileWithDownloadUrlUioFromJSON;
|
|
18
19
|
exports.FileWithDownloadUrlUioFromJSONTyped = FileWithDownloadUrlUioFromJSONTyped;
|
|
@@ -20,6 +21,13 @@ exports.FileWithDownloadUrlUioToJSON = FileWithDownloadUrlUioToJSON;
|
|
|
20
21
|
exports.FileWithDownloadUrlUioToJSONTyped = FileWithDownloadUrlUioToJSONTyped;
|
|
21
22
|
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
22
23
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.FileWithDownloadUrlUioKnowledgeTypeEnum = {
|
|
28
|
+
File: 'file',
|
|
29
|
+
Website: 'website'
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* Check if a given object implements the FileWithDownloadUrlUio interface.
|
|
25
33
|
*/
|
|
@@ -40,6 +48,11 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
48
|
return {
|
|
41
49
|
'name': json['name'] == null ? undefined : json['name'],
|
|
42
50
|
'id': json['id'],
|
|
51
|
+
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
52
|
+
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
53
|
+
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
54
|
+
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
55
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
43
56
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
44
57
|
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
45
58
|
'key': json['key'] == null ? undefined : json['key'],
|
|
@@ -63,6 +76,11 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
76
|
return {
|
|
64
77
|
'name': value['name'],
|
|
65
78
|
'id': value['id'],
|
|
79
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
80
|
+
'knowledgeType': value['knowledgeType'],
|
|
81
|
+
'isFAQ': value['isFAQ'],
|
|
82
|
+
'uploadId': value['uploadId'],
|
|
83
|
+
'hash': value['hash'],
|
|
66
84
|
'contentType': value['contentType'],
|
|
67
85
|
'ext': value['ext'],
|
|
68
86
|
'key': value['key'],
|
|
@@ -0,0 +1,129 @@
|
|
|
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 { FileStatusUio } from './FileStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface KnowledgeSitePageUio
|
|
17
|
+
*/
|
|
18
|
+
export interface KnowledgeSitePageUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof KnowledgeSitePageUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof KnowledgeSitePageUio
|
|
29
|
+
*/
|
|
30
|
+
knowledgeBaseId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof KnowledgeSitePageUio
|
|
35
|
+
*/
|
|
36
|
+
key: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof KnowledgeSitePageUio
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof KnowledgeSitePageUio
|
|
47
|
+
*/
|
|
48
|
+
url: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof KnowledgeSitePageUio
|
|
53
|
+
*/
|
|
54
|
+
siteId: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof KnowledgeSitePageUio
|
|
59
|
+
*/
|
|
60
|
+
uploadId?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof KnowledgeSitePageUio
|
|
65
|
+
*/
|
|
66
|
+
postURL?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof KnowledgeSitePageUio
|
|
71
|
+
*/
|
|
72
|
+
formData?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof KnowledgeSitePageUio
|
|
77
|
+
*/
|
|
78
|
+
contentType?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof KnowledgeSitePageUio
|
|
83
|
+
*/
|
|
84
|
+
ext?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof KnowledgeSitePageUio
|
|
89
|
+
*/
|
|
90
|
+
size?: number;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof KnowledgeSitePageUio
|
|
95
|
+
*/
|
|
96
|
+
hash?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {FileStatusUio}
|
|
100
|
+
* @memberof KnowledgeSitePageUio
|
|
101
|
+
*/
|
|
102
|
+
status: FileStatusUio;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof KnowledgeSitePageUio
|
|
107
|
+
*/
|
|
108
|
+
createdAt: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof KnowledgeSitePageUio
|
|
113
|
+
*/
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof KnowledgeSitePageUio
|
|
119
|
+
*/
|
|
120
|
+
isActive: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Check if a given object implements the KnowledgeSitePageUio interface.
|
|
124
|
+
*/
|
|
125
|
+
export declare function instanceOfKnowledgeSitePageUio(value: object): value is KnowledgeSitePageUio;
|
|
126
|
+
export declare function KnowledgeSitePageUioFromJSON(json: any): KnowledgeSitePageUio;
|
|
127
|
+
export declare function KnowledgeSitePageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeSitePageUio;
|
|
128
|
+
export declare function KnowledgeSitePageUioToJSON(json: any): KnowledgeSitePageUio;
|
|
129
|
+
export declare function KnowledgeSitePageUioToJSONTyped(value?: KnowledgeSitePageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,101 @@
|
|
|
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.instanceOfKnowledgeSitePageUio = instanceOfKnowledgeSitePageUio;
|
|
17
|
+
exports.KnowledgeSitePageUioFromJSON = KnowledgeSitePageUioFromJSON;
|
|
18
|
+
exports.KnowledgeSitePageUioFromJSONTyped = KnowledgeSitePageUioFromJSONTyped;
|
|
19
|
+
exports.KnowledgeSitePageUioToJSON = KnowledgeSitePageUioToJSON;
|
|
20
|
+
exports.KnowledgeSitePageUioToJSONTyped = KnowledgeSitePageUioToJSONTyped;
|
|
21
|
+
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the KnowledgeSitePageUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfKnowledgeSitePageUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('knowledgeBaseId' in value) || value['knowledgeBaseId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function KnowledgeSitePageUioFromJSON(json) {
|
|
49
|
+
return KnowledgeSitePageUioFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function KnowledgeSitePageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'knowledgeBaseId': json['knowledgeBaseId'],
|
|
58
|
+
'key': json['key'],
|
|
59
|
+
'name': json['name'],
|
|
60
|
+
'url': json['url'],
|
|
61
|
+
'siteId': json['siteId'],
|
|
62
|
+
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
63
|
+
'postURL': json['postURL'] == null ? undefined : json['postURL'],
|
|
64
|
+
'formData': json['formData'] == null ? undefined : json['formData'],
|
|
65
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
66
|
+
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
67
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
68
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
69
|
+
'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
70
|
+
'createdAt': json['createdAt'],
|
|
71
|
+
'updatedAt': json['updatedAt'],
|
|
72
|
+
'isActive': json['isActive'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function KnowledgeSitePageUioToJSON(json) {
|
|
76
|
+
return KnowledgeSitePageUioToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function KnowledgeSitePageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
85
|
+
'key': value['key'],
|
|
86
|
+
'name': value['name'],
|
|
87
|
+
'url': value['url'],
|
|
88
|
+
'siteId': value['siteId'],
|
|
89
|
+
'uploadId': value['uploadId'],
|
|
90
|
+
'postURL': value['postURL'],
|
|
91
|
+
'formData': value['formData'],
|
|
92
|
+
'contentType': value['contentType'],
|
|
93
|
+
'ext': value['ext'],
|
|
94
|
+
'size': value['size'],
|
|
95
|
+
'hash': value['hash'],
|
|
96
|
+
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
97
|
+
'createdAt': value['createdAt'],
|
|
98
|
+
'updatedAt': value['updatedAt'],
|
|
99
|
+
'isActive': value['isActive'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -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 MessageStatusErrorUio
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageStatusErrorUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MessageStatusErrorUio
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MessageStatusErrorUio
|
|
28
|
+
*/
|
|
29
|
+
message?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MessageStatusErrorUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMessageStatusErrorUio(value: object): value is MessageStatusErrorUio;
|
|
35
|
+
export declare function MessageStatusErrorUioFromJSON(json: any): MessageStatusErrorUio;
|
|
36
|
+
export declare function MessageStatusErrorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusErrorUio;
|
|
37
|
+
export declare function MessageStatusErrorUioToJSON(json: any): MessageStatusErrorUio;
|
|
38
|
+
export declare function MessageStatusErrorUioToJSONTyped(value?: MessageStatusErrorUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMessageStatusErrorUio = instanceOfMessageStatusErrorUio;
|
|
17
|
+
exports.MessageStatusErrorUioFromJSON = MessageStatusErrorUioFromJSON;
|
|
18
|
+
exports.MessageStatusErrorUioFromJSONTyped = MessageStatusErrorUioFromJSONTyped;
|
|
19
|
+
exports.MessageStatusErrorUioToJSON = MessageStatusErrorUioToJSON;
|
|
20
|
+
exports.MessageStatusErrorUioToJSONTyped = MessageStatusErrorUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MessageStatusErrorUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMessageStatusErrorUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MessageStatusErrorUioFromJSON(json) {
|
|
28
|
+
return MessageStatusErrorUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MessageStatusErrorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
36
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MessageStatusErrorUioToJSON(json) {
|
|
40
|
+
return MessageStatusErrorUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MessageStatusErrorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'code': value['code'],
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 MessageStatusToolCallUio
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageStatusToolCallUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MessageStatusToolCallUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof MessageStatusToolCallUio
|
|
28
|
+
*/
|
|
29
|
+
stepIndex: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MessageStatusToolCallUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMessageStatusToolCallUio(value: object): value is MessageStatusToolCallUio;
|
|
35
|
+
export declare function MessageStatusToolCallUioFromJSON(json: any): MessageStatusToolCallUio;
|
|
36
|
+
export declare function MessageStatusToolCallUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusToolCallUio;
|
|
37
|
+
export declare function MessageStatusToolCallUioToJSON(json: any): MessageStatusToolCallUio;
|
|
38
|
+
export declare function MessageStatusToolCallUioToJSONTyped(value?: MessageStatusToolCallUio | 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.instanceOfMessageStatusToolCallUio = instanceOfMessageStatusToolCallUio;
|
|
17
|
+
exports.MessageStatusToolCallUioFromJSON = MessageStatusToolCallUioFromJSON;
|
|
18
|
+
exports.MessageStatusToolCallUioFromJSONTyped = MessageStatusToolCallUioFromJSONTyped;
|
|
19
|
+
exports.MessageStatusToolCallUioToJSON = MessageStatusToolCallUioToJSON;
|
|
20
|
+
exports.MessageStatusToolCallUioToJSONTyped = MessageStatusToolCallUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MessageStatusToolCallUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMessageStatusToolCallUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('stepIndex' in value) || value['stepIndex'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MessageStatusToolCallUioFromJSON(json) {
|
|
32
|
+
return MessageStatusToolCallUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MessageStatusToolCallUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'stepIndex': json['stepIndex'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MessageStatusToolCallUioToJSON(json) {
|
|
44
|
+
return MessageStatusToolCallUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MessageStatusToolCallUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'stepIndex': value['stepIndex'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { MessageStatusErrorUio } from './MessageStatusErrorUio';
|
|
13
|
+
import type { MessageStatusToolCallUio } from './MessageStatusToolCallUio';
|
|
14
|
+
import type { ToolUsedUio } from './ToolUsedUio';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface MessageStatusUio
|
|
19
|
+
*/
|
|
20
|
+
export interface MessageStatusUio {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof MessageStatusUio
|
|
25
|
+
*/
|
|
26
|
+
status: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof MessageStatusUio
|
|
31
|
+
*/
|
|
32
|
+
content?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof MessageStatusUio
|
|
37
|
+
*/
|
|
38
|
+
reasoning?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof MessageStatusUio
|
|
43
|
+
*/
|
|
44
|
+
reaction?: MessageStatusUioReactionEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {MessageStatusErrorUio}
|
|
48
|
+
* @memberof MessageStatusUio
|
|
49
|
+
*/
|
|
50
|
+
error?: MessageStatusErrorUio;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {MessageStatusToolCallUio}
|
|
54
|
+
* @memberof MessageStatusUio
|
|
55
|
+
*/
|
|
56
|
+
toolCall?: MessageStatusToolCallUio;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<ToolUsedUio>}
|
|
60
|
+
* @memberof MessageStatusUio
|
|
61
|
+
*/
|
|
62
|
+
toolsUsed?: Array<ToolUsedUio>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export declare const MessageStatusUioReactionEnum: {
|
|
68
|
+
readonly Positive: "positive";
|
|
69
|
+
readonly Negative: "negative";
|
|
70
|
+
};
|
|
71
|
+
export type MessageStatusUioReactionEnum = typeof MessageStatusUioReactionEnum[keyof typeof MessageStatusUioReactionEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the MessageStatusUio interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfMessageStatusUio(value: object): value is MessageStatusUio;
|
|
76
|
+
export declare function MessageStatusUioFromJSON(json: any): MessageStatusUio;
|
|
77
|
+
export declare function MessageStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusUio;
|
|
78
|
+
export declare function MessageStatusUioToJSON(json: any): MessageStatusUio;
|
|
79
|
+
export declare function MessageStatusUioToJSONTyped(value?: MessageStatusUio | null, ignoreDiscriminator?: boolean): any;
|