@breign/client 1.0.125 → 1.0.126
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/KnowledgeApi.d.ts +127 -61
- package/dist/apis/KnowledgeApi.js +257 -108
- package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -0
- package/dist/models/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- package/dist/models/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -0
- package/dist/models/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/openapi.json +662 -222
- package/package.json +1 -1
- package/dist/models/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
|
@@ -23,6 +23,12 @@ const ChunkCreateRequestContentInnerUio_1 = require("./ChunkCreateRequestContent
|
|
|
23
23
|
* Check if a given object implements the ChunkCreateRequestUio interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfChunkCreateRequestUio(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
26
32
|
return true;
|
|
27
33
|
}
|
|
28
34
|
function ChunkCreateRequestUioFromJSON(json) {
|
|
@@ -33,9 +39,9 @@ function ChunkCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
39
|
return json;
|
|
34
40
|
}
|
|
35
41
|
return {
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'version': json['version']
|
|
38
|
-
'content':
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'version': json['version'],
|
|
44
|
+
'content': (json['content'].map(ChunkCreateRequestContentInnerUio_1.ChunkCreateRequestContentInnerUioFromJSON)),
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
function ChunkCreateRequestUioToJSON(json) {
|
|
@@ -48,6 +54,6 @@ function ChunkCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
54
|
return {
|
|
49
55
|
'name': value['name'],
|
|
50
56
|
'version': value['version'],
|
|
51
|
-
'content':
|
|
57
|
+
'content': (value['content'].map(ChunkCreateRequestContentInnerUio_1.ChunkCreateRequestContentInnerUioToJSON)),
|
|
52
58
|
};
|
|
53
59
|
}
|
|
@@ -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
|
+
* Obligatoire lorsque `vectorStoreType` vaut `qdrant`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateKnowledgeBaseRequestEmbeddingConfigUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
28
|
+
*/
|
|
29
|
+
modelId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
34
|
+
*/
|
|
35
|
+
dimensions: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestEmbeddingConfigUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio(value: object): value is CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
41
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON(json: any): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
42
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
43
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON(json: any): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
44
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(value?: CreateKnowledgeBaseRequestEmbeddingConfigUio | 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.instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio = instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
17
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON = CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON;
|
|
18
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped = CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped;
|
|
19
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON = CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON;
|
|
20
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped = CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestEmbeddingConfigUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio(value) {
|
|
25
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('modelId' in value) || value['modelId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('dimensions' in value) || value['dimensions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON(json) {
|
|
34
|
+
return CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'providerId': json['providerId'],
|
|
42
|
+
'modelId': json['modelId'],
|
|
43
|
+
'dimensions': json['dimensions'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON(json) {
|
|
47
|
+
return CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'providerId': value['providerId'],
|
|
55
|
+
'modelId': value['modelId'],
|
|
56
|
+
'dimensions': value['dimensions'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { CreateKnowledgeBaseRequestEmbeddingConfigUio } from './CreateKnowledgeBaseRequestEmbeddingConfigUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateKnowledgeBaseRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateKnowledgeBaseRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
29
|
+
*/
|
|
30
|
+
authorizedAgents?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Défaut `weaviate` lorsque omis.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
35
|
+
*/
|
|
36
|
+
vectorStoreType?: CreateKnowledgeBaseRequestUioVectorStoreTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CreateKnowledgeBaseRequestEmbeddingConfigUio}
|
|
40
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
41
|
+
*/
|
|
42
|
+
embeddingConfig?: CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const CreateKnowledgeBaseRequestUioVectorStoreTypeEnum: {
|
|
48
|
+
readonly Weaviate: "weaviate";
|
|
49
|
+
readonly Qdrant: "qdrant";
|
|
50
|
+
};
|
|
51
|
+
export type CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = typeof CreateKnowledgeBaseRequestUioVectorStoreTypeEnum[keyof typeof CreateKnowledgeBaseRequestUioVectorStoreTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestUio interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfCreateKnowledgeBaseRequestUio(value: object): value is CreateKnowledgeBaseRequestUio;
|
|
56
|
+
export declare function CreateKnowledgeBaseRequestUioFromJSON(json: any): CreateKnowledgeBaseRequestUio;
|
|
57
|
+
export declare function CreateKnowledgeBaseRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKnowledgeBaseRequestUio;
|
|
58
|
+
export declare function CreateKnowledgeBaseRequestUioToJSON(json: any): CreateKnowledgeBaseRequestUio;
|
|
59
|
+
export declare function CreateKnowledgeBaseRequestUioToJSONTyped(value?: CreateKnowledgeBaseRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateKnowledgeBaseRequestUio = instanceOfCreateKnowledgeBaseRequestUio;
|
|
18
|
+
exports.CreateKnowledgeBaseRequestUioFromJSON = CreateKnowledgeBaseRequestUioFromJSON;
|
|
19
|
+
exports.CreateKnowledgeBaseRequestUioFromJSONTyped = CreateKnowledgeBaseRequestUioFromJSONTyped;
|
|
20
|
+
exports.CreateKnowledgeBaseRequestUioToJSON = CreateKnowledgeBaseRequestUioToJSON;
|
|
21
|
+
exports.CreateKnowledgeBaseRequestUioToJSONTyped = CreateKnowledgeBaseRequestUioToJSONTyped;
|
|
22
|
+
const CreateKnowledgeBaseRequestEmbeddingConfigUio_1 = require("./CreateKnowledgeBaseRequestEmbeddingConfigUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = {
|
|
27
|
+
Weaviate: 'weaviate',
|
|
28
|
+
Qdrant: 'qdrant'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfCreateKnowledgeBaseRequestUio(value) {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function CreateKnowledgeBaseRequestUioFromJSON(json) {
|
|
39
|
+
return CreateKnowledgeBaseRequestUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateKnowledgeBaseRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'authorizedAgents': json['authorizedAgents'] == null ? undefined : json['authorizedAgents'],
|
|
48
|
+
'vectorStoreType': json['vectorStoreType'] == null ? undefined : json['vectorStoreType'],
|
|
49
|
+
'embeddingConfig': json['embeddingConfig'] == null ? undefined : (0, CreateKnowledgeBaseRequestEmbeddingConfigUio_1.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON)(json['embeddingConfig']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CreateKnowledgeBaseRequestUioToJSON(json) {
|
|
53
|
+
return CreateKnowledgeBaseRequestUioToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CreateKnowledgeBaseRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'authorizedAgents': value['authorizedAgents'],
|
|
62
|
+
'vectorStoreType': value['vectorStoreType'],
|
|
63
|
+
'embeddingConfig': (0, CreateKnowledgeBaseRequestEmbeddingConfigUio_1.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON)(value['embeddingConfig']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CreateKnowledgeBaseResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateKnowledgeBaseResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateKnowledgeBaseResponseUio
|
|
22
|
+
*/
|
|
23
|
+
knowledgeBaseId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateKnowledgeBaseResponseUio
|
|
28
|
+
*/
|
|
29
|
+
vectorStoreType: CreateKnowledgeBaseResponseUioVectorStoreTypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreateKnowledgeBaseResponseUioVectorStoreTypeEnum: {
|
|
35
|
+
readonly Weaviate: "weaviate";
|
|
36
|
+
readonly Qdrant: "qdrant";
|
|
37
|
+
};
|
|
38
|
+
export type CreateKnowledgeBaseResponseUioVectorStoreTypeEnum = typeof CreateKnowledgeBaseResponseUioVectorStoreTypeEnum[keyof typeof CreateKnowledgeBaseResponseUioVectorStoreTypeEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CreateKnowledgeBaseResponseUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCreateKnowledgeBaseResponseUio(value: object): value is CreateKnowledgeBaseResponseUio;
|
|
43
|
+
export declare function CreateKnowledgeBaseResponseUioFromJSON(json: any): CreateKnowledgeBaseResponseUio;
|
|
44
|
+
export declare function CreateKnowledgeBaseResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKnowledgeBaseResponseUio;
|
|
45
|
+
export declare function CreateKnowledgeBaseResponseUioToJSON(json: any): CreateKnowledgeBaseResponseUio;
|
|
46
|
+
export declare function CreateKnowledgeBaseResponseUioToJSONTyped(value?: CreateKnowledgeBaseResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.CreateKnowledgeBaseResponseUioVectorStoreTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateKnowledgeBaseResponseUio = instanceOfCreateKnowledgeBaseResponseUio;
|
|
18
|
+
exports.CreateKnowledgeBaseResponseUioFromJSON = CreateKnowledgeBaseResponseUioFromJSON;
|
|
19
|
+
exports.CreateKnowledgeBaseResponseUioFromJSONTyped = CreateKnowledgeBaseResponseUioFromJSONTyped;
|
|
20
|
+
exports.CreateKnowledgeBaseResponseUioToJSON = CreateKnowledgeBaseResponseUioToJSON;
|
|
21
|
+
exports.CreateKnowledgeBaseResponseUioToJSONTyped = CreateKnowledgeBaseResponseUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateKnowledgeBaseResponseUioVectorStoreTypeEnum = {
|
|
26
|
+
Weaviate: 'weaviate',
|
|
27
|
+
Qdrant: 'qdrant'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateKnowledgeBaseResponseUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateKnowledgeBaseResponseUio(value) {
|
|
33
|
+
if (!('knowledgeBaseId' in value) || value['knowledgeBaseId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('vectorStoreType' in value) || value['vectorStoreType'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateKnowledgeBaseResponseUioFromJSON(json) {
|
|
40
|
+
return CreateKnowledgeBaseResponseUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateKnowledgeBaseResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'knowledgeBaseId': json['knowledgeBaseId'],
|
|
48
|
+
'vectorStoreType': json['vectorStoreType'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreateKnowledgeBaseResponseUioToJSON(json) {
|
|
52
|
+
return CreateKnowledgeBaseResponseUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreateKnowledgeBaseResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
60
|
+
'vectorStoreType': value['vectorStoreType'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 DeleteKnowledgeSitePage200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteKnowledgeSitePage200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteKnowledgeSitePage200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Présent et à `true` quand la connaissance entière a été supprimée
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof DeleteKnowledgeSitePage200ResponseUio
|
|
28
|
+
*/
|
|
29
|
+
lastPage?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeleteKnowledgeSitePage200ResponseUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeleteKnowledgeSitePage200ResponseUio(value: object): value is DeleteKnowledgeSitePage200ResponseUio;
|
|
35
|
+
export declare function DeleteKnowledgeSitePage200ResponseUioFromJSON(json: any): DeleteKnowledgeSitePage200ResponseUio;
|
|
36
|
+
export declare function DeleteKnowledgeSitePage200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteKnowledgeSitePage200ResponseUio;
|
|
37
|
+
export declare function DeleteKnowledgeSitePage200ResponseUioToJSON(json: any): DeleteKnowledgeSitePage200ResponseUio;
|
|
38
|
+
export declare function DeleteKnowledgeSitePage200ResponseUioToJSONTyped(value?: DeleteKnowledgeSitePage200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfDeleteKnowledgeSitePage200ResponseUio = instanceOfDeleteKnowledgeSitePage200ResponseUio;
|
|
17
|
+
exports.DeleteKnowledgeSitePage200ResponseUioFromJSON = DeleteKnowledgeSitePage200ResponseUioFromJSON;
|
|
18
|
+
exports.DeleteKnowledgeSitePage200ResponseUioFromJSONTyped = DeleteKnowledgeSitePage200ResponseUioFromJSONTyped;
|
|
19
|
+
exports.DeleteKnowledgeSitePage200ResponseUioToJSON = DeleteKnowledgeSitePage200ResponseUioToJSON;
|
|
20
|
+
exports.DeleteKnowledgeSitePage200ResponseUioToJSONTyped = DeleteKnowledgeSitePage200ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeleteKnowledgeSitePage200ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeleteKnowledgeSitePage200ResponseUio(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DeleteKnowledgeSitePage200ResponseUioFromJSON(json) {
|
|
30
|
+
return DeleteKnowledgeSitePage200ResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DeleteKnowledgeSitePage200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
'lastPage': json['lastPage'] == null ? undefined : json['lastPage'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function DeleteKnowledgeSitePage200ResponseUioToJSON(json) {
|
|
42
|
+
return DeleteKnowledgeSitePage200ResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DeleteKnowledgeSitePage200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'lastPage': value['lastPage'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -127,6 +127,7 @@ export interface FileCreationResponseUio {
|
|
|
127
127
|
export declare const FileCreationResponseUioKnowledgeTypeEnum: {
|
|
128
128
|
readonly File: "file";
|
|
129
129
|
readonly Website: "website";
|
|
130
|
+
readonly Image: "image";
|
|
130
131
|
};
|
|
131
132
|
export type FileCreationResponseUioKnowledgeTypeEnum = typeof FileCreationResponseUioKnowledgeTypeEnum[keyof typeof FileCreationResponseUioKnowledgeTypeEnum];
|
|
132
133
|
/**
|
|
@@ -25,7 +25,8 @@ const FileStatusUio_1 = require("./FileStatusUio");
|
|
|
25
25
|
*/
|
|
26
26
|
exports.FileCreationResponseUioKnowledgeTypeEnum = {
|
|
27
27
|
File: 'file',
|
|
28
|
-
Website: 'website'
|
|
28
|
+
Website: 'website',
|
|
29
|
+
Image: 'image'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the FileCreationResponseUio interface.
|
package/dist/models/FileUio.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { FileFormDataUio } from './FileFormDataUio';
|
|
13
12
|
import type { FileStatusUio } from './FileStatusUio';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -91,10 +90,12 @@ export interface FileUio {
|
|
|
91
90
|
postURL?: string;
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
94
|
-
* @type {
|
|
93
|
+
* @type {{ [key: string]: any; }}
|
|
95
94
|
* @memberof FileUio
|
|
96
95
|
*/
|
|
97
|
-
formData?:
|
|
96
|
+
formData?: {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
};
|
|
98
99
|
/**
|
|
99
100
|
*
|
|
100
101
|
* @type {string}
|
|
@@ -126,6 +127,7 @@ export interface FileUio {
|
|
|
126
127
|
export declare const FileUioKnowledgeTypeEnum: {
|
|
127
128
|
readonly File: "file";
|
|
128
129
|
readonly Website: "website";
|
|
130
|
+
readonly Image: "image";
|
|
129
131
|
};
|
|
130
132
|
export type FileUioKnowledgeTypeEnum = typeof FileUioKnowledgeTypeEnum[keyof typeof FileUioKnowledgeTypeEnum];
|
|
131
133
|
/**
|
package/dist/models/FileUio.js
CHANGED
|
@@ -19,14 +19,14 @@ exports.FileUioFromJSON = FileUioFromJSON;
|
|
|
19
19
|
exports.FileUioFromJSONTyped = FileUioFromJSONTyped;
|
|
20
20
|
exports.FileUioToJSON = FileUioToJSON;
|
|
21
21
|
exports.FileUioToJSONTyped = FileUioToJSONTyped;
|
|
22
|
-
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
23
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
27
26
|
exports.FileUioKnowledgeTypeEnum = {
|
|
28
27
|
File: 'file',
|
|
29
|
-
Website: 'website'
|
|
28
|
+
Website: 'website',
|
|
29
|
+
Image: 'image'
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the FileUio interface.
|
|
@@ -56,7 +56,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'key': json['key'] == null ? undefined : json['key'],
|
|
57
57
|
'size': json['size'] == null ? undefined : json['size'],
|
|
58
58
|
'postURL': json['postURL'] == null ? undefined : json['postURL'],
|
|
59
|
-
'formData': json['formData'] == null ? undefined :
|
|
59
|
+
'formData': json['formData'] == null ? undefined : json['formData'],
|
|
60
60
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
61
61
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
62
62
|
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
@@ -83,7 +83,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
83
|
'key': value['key'],
|
|
84
84
|
'size': value['size'],
|
|
85
85
|
'postURL': value['postURL'],
|
|
86
|
-
'formData':
|
|
86
|
+
'formData': value['formData'],
|
|
87
87
|
'createdAt': value['createdAt'],
|
|
88
88
|
'updatedAt': value['updatedAt'],
|
|
89
89
|
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { FileFormDataUio } from './FileFormDataUio';
|
|
13
12
|
import type { FileStatusUio } from './FileStatusUio';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -91,10 +90,12 @@ export interface FileWithDownloadUrlUio {
|
|
|
91
90
|
postURL?: string;
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
94
|
-
* @type {
|
|
93
|
+
* @type {{ [key: string]: any; }}
|
|
95
94
|
* @memberof FileWithDownloadUrlUio
|
|
96
95
|
*/
|
|
97
|
-
formData?:
|
|
96
|
+
formData?: {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
};
|
|
98
99
|
/**
|
|
99
100
|
*
|
|
100
101
|
* @type {string}
|
|
@@ -132,6 +133,7 @@ export interface FileWithDownloadUrlUio {
|
|
|
132
133
|
export declare const FileWithDownloadUrlUioKnowledgeTypeEnum: {
|
|
133
134
|
readonly File: "file";
|
|
134
135
|
readonly Website: "website";
|
|
136
|
+
readonly Image: "image";
|
|
135
137
|
};
|
|
136
138
|
export type FileWithDownloadUrlUioKnowledgeTypeEnum = typeof FileWithDownloadUrlUioKnowledgeTypeEnum[keyof typeof FileWithDownloadUrlUioKnowledgeTypeEnum];
|
|
137
139
|
/**
|
|
@@ -19,14 +19,14 @@ exports.FileWithDownloadUrlUioFromJSON = FileWithDownloadUrlUioFromJSON;
|
|
|
19
19
|
exports.FileWithDownloadUrlUioFromJSONTyped = FileWithDownloadUrlUioFromJSONTyped;
|
|
20
20
|
exports.FileWithDownloadUrlUioToJSON = FileWithDownloadUrlUioToJSON;
|
|
21
21
|
exports.FileWithDownloadUrlUioToJSONTyped = FileWithDownloadUrlUioToJSONTyped;
|
|
22
|
-
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
23
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
27
26
|
exports.FileWithDownloadUrlUioKnowledgeTypeEnum = {
|
|
28
27
|
File: 'file',
|
|
29
|
-
Website: 'website'
|
|
28
|
+
Website: 'website',
|
|
29
|
+
Image: 'image'
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the FileWithDownloadUrlUio interface.
|
|
@@ -58,7 +58,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'key': json['key'] == null ? undefined : json['key'],
|
|
59
59
|
'size': json['size'] == null ? undefined : json['size'],
|
|
60
60
|
'postURL': json['postURL'] == null ? undefined : json['postURL'],
|
|
61
|
-
'formData': json['formData'] == null ? undefined :
|
|
61
|
+
'formData': json['formData'] == null ? undefined : json['formData'],
|
|
62
62
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
63
63
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
64
64
|
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
@@ -86,7 +86,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
86
|
'key': value['key'],
|
|
87
87
|
'size': value['size'],
|
|
88
88
|
'postURL': value['postURL'],
|
|
89
|
-
'formData':
|
|
89
|
+
'formData': value['formData'],
|
|
90
90
|
'createdAt': value['createdAt'],
|
|
91
91
|
'updatedAt': value['updatedAt'],
|
|
92
92
|
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|