@breign/client 1.0.108 → 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/SkillsApi.d.ts +12 -1
- package/dist/apis/SkillsApi.js +27 -0
- 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/AvailableCommandUio.d.ts +52 -0
- package/dist/models/AvailableCommandUio.js +66 -0
- 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 +19 -1
- package/dist/models/index.js +19 -1
- package/dist/openapi.json +1454 -314
- package/package.json +1 -1
- package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
- package/dist/models/AudioFillerExistsResponseUio.js +0 -50
|
@@ -0,0 +1,66 @@
|
|
|
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.AvailableCommandUioSourceEnum = void 0;
|
|
17
|
+
exports.instanceOfAvailableCommandUio = instanceOfAvailableCommandUio;
|
|
18
|
+
exports.AvailableCommandUioFromJSON = AvailableCommandUioFromJSON;
|
|
19
|
+
exports.AvailableCommandUioFromJSONTyped = AvailableCommandUioFromJSONTyped;
|
|
20
|
+
exports.AvailableCommandUioToJSON = AvailableCommandUioToJSON;
|
|
21
|
+
exports.AvailableCommandUioToJSONTyped = AvailableCommandUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AvailableCommandUioSourceEnum = {
|
|
26
|
+
Predefined: 'predefined',
|
|
27
|
+
Skill: 'skill'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AvailableCommandUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAvailableCommandUio(value) {
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AvailableCommandUioFromJSON(json) {
|
|
42
|
+
return AvailableCommandUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AvailableCommandUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'slug': json['slug'],
|
|
50
|
+
'description': json['description'],
|
|
51
|
+
'source': json['source'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AvailableCommandUioToJSON(json) {
|
|
55
|
+
return AvailableCommandUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AvailableCommandUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'description': value['description'],
|
|
64
|
+
'source': value['source'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -45,6 +45,12 @@ export interface FileCreationRequestUio {
|
|
|
45
45
|
* @memberof FileCreationRequestUio
|
|
46
46
|
*/
|
|
47
47
|
hash?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the file is a FAQ document
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof FileCreationRequestUio
|
|
52
|
+
*/
|
|
53
|
+
isFAQ?: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the FileCreationRequestUio interface.
|
|
@@ -43,6 +43,7 @@ function FileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'ext': json['ext'],
|
|
44
44
|
'size': json['size'],
|
|
45
45
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
46
|
+
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function FileCreationRequestUioToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function FileCreationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'ext': value['ext'],
|
|
59
60
|
'size': value['size'],
|
|
60
61
|
'hash': value['hash'],
|
|
62
|
+
'isFAQ': value['isFAQ'],
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -28,6 +28,36 @@ export interface FileCreationResponseUio {
|
|
|
28
28
|
* @memberof FileCreationResponseUio
|
|
29
29
|
*/
|
|
30
30
|
id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof FileCreationResponseUio
|
|
35
|
+
*/
|
|
36
|
+
knowledgeBaseId?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof FileCreationResponseUio
|
|
41
|
+
*/
|
|
42
|
+
knowledgeType?: FileCreationResponseUioKnowledgeTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof FileCreationResponseUio
|
|
47
|
+
*/
|
|
48
|
+
isFAQ?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof FileCreationResponseUio
|
|
53
|
+
*/
|
|
54
|
+
uploadId?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof FileCreationResponseUio
|
|
59
|
+
*/
|
|
60
|
+
hash?: string;
|
|
31
61
|
/**
|
|
32
62
|
*
|
|
33
63
|
* @type {string}
|
|
@@ -91,6 +121,14 @@ export interface FileCreationResponseUio {
|
|
|
91
121
|
*/
|
|
92
122
|
isActive?: boolean;
|
|
93
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const FileCreationResponseUioKnowledgeTypeEnum: {
|
|
128
|
+
readonly File: "file";
|
|
129
|
+
readonly Website: "website";
|
|
130
|
+
};
|
|
131
|
+
export type FileCreationResponseUioKnowledgeTypeEnum = typeof FileCreationResponseUioKnowledgeTypeEnum[keyof typeof FileCreationResponseUioKnowledgeTypeEnum];
|
|
94
132
|
/**
|
|
95
133
|
* Check if a given object implements the FileCreationResponseUio interface.
|
|
96
134
|
*/
|
|
@@ -13,12 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FileCreationResponseUioKnowledgeTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfFileCreationResponseUio = instanceOfFileCreationResponseUio;
|
|
17
18
|
exports.FileCreationResponseUioFromJSON = FileCreationResponseUioFromJSON;
|
|
18
19
|
exports.FileCreationResponseUioFromJSONTyped = FileCreationResponseUioFromJSONTyped;
|
|
19
20
|
exports.FileCreationResponseUioToJSON = FileCreationResponseUioToJSON;
|
|
20
21
|
exports.FileCreationResponseUioToJSONTyped = FileCreationResponseUioToJSONTyped;
|
|
21
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FileCreationResponseUioKnowledgeTypeEnum = {
|
|
27
|
+
File: 'file',
|
|
28
|
+
Website: 'website'
|
|
29
|
+
};
|
|
22
30
|
/**
|
|
23
31
|
* Check if a given object implements the FileCreationResponseUio interface.
|
|
24
32
|
*/
|
|
@@ -41,6 +49,11 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
49
|
return {
|
|
42
50
|
'name': json['name'] == null ? undefined : json['name'],
|
|
43
51
|
'id': json['id'],
|
|
52
|
+
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
53
|
+
'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
|
|
54
|
+
'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
|
|
55
|
+
'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
|
|
56
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
44
57
|
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
45
58
|
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
46
59
|
'key': json['key'] == null ? undefined : json['key'],
|
|
@@ -63,6 +76,11 @@ function FileCreationResponseUioToJSONTyped(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'],
|
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;
|