@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.
Files changed (58) hide show
  1. package/dist/apis/KnowledgeApi.d.ts +127 -61
  2. package/dist/apis/KnowledgeApi.js +257 -108
  3. package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +1 -1
  4. package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
  5. package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
  6. package/dist/models/ChunkCreateRequestUio.js +10 -4
  7. package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
  8. package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
  9. package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
  10. package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
  11. package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
  12. package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
  13. package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
  14. package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -0
  15. package/dist/models/FileCreationResponseUio.d.ts +1 -0
  16. package/dist/models/FileCreationResponseUio.js +2 -1
  17. package/dist/models/FileUio.d.ts +5 -3
  18. package/dist/models/FileUio.js +4 -4
  19. package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
  20. package/dist/models/FileWithDownloadUrlUio.js +4 -4
  21. package/dist/models/ImageKnowledgeUio.d.ts +13 -6
  22. package/dist/models/ImageKnowledgeUio.js +23 -6
  23. package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
  24. package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
  25. package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
  26. package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
  27. package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
  28. package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
  29. package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
  30. package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
  31. package/dist/models/KnowledgeBaseUio.d.ts +6 -62
  32. package/dist/models/KnowledgeBaseUio.js +2 -22
  33. package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
  34. package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
  35. package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
  36. package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
  37. package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
  38. package/dist/models/KnowledgeFileSummaryUio.js +2 -3
  39. package/dist/models/KnowledgeFileUio.d.ts +140 -0
  40. package/dist/models/KnowledgeFileUio.js +92 -0
  41. package/dist/models/UploadedStatusUpdateRequestUio.d.ts +39 -0
  42. package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
  43. package/dist/models/index.d.ts +11 -6
  44. package/dist/models/index.js +11 -6
  45. package/dist/openapi.json +662 -222
  46. package/package.json +1 -1
  47. package/dist/models/FileFormDataUio.d.ts +0 -38
  48. package/dist/models/FileFormDataUio.js +0 -50
  49. package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
  50. package/dist/models/FileStatusUpdateRequestUio.js +0 -51
  51. package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
  52. package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
  53. package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
  54. package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
  55. package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
  56. package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
  57. package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
  58. package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { FileStatusUio } from './FileStatusUio';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -20,19 +21,19 @@ export interface ImageKnowledgeUio {
20
21
  * @type {string}
21
22
  * @memberof ImageKnowledgeUio
22
23
  */
23
- id?: string;
24
+ id: string;
24
25
  /**
25
26
  *
26
27
  * @type {string}
27
28
  * @memberof ImageKnowledgeUio
28
29
  */
29
- knowledgeBaseId?: string;
30
+ knowledgeBaseId: string;
30
31
  /**
31
32
  *
32
33
  * @type {string}
33
34
  * @memberof ImageKnowledgeUio
34
35
  */
35
- name?: string;
36
+ name: string;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -56,13 +57,13 @@ export interface ImageKnowledgeUio {
56
57
  * @type {string}
57
58
  * @memberof ImageKnowledgeUio
58
59
  */
59
- key?: string;
60
+ key: string;
60
61
  /**
61
62
  *
62
63
  * @type {string}
63
64
  * @memberof ImageKnowledgeUio
64
65
  */
65
- createdAt?: string;
66
+ createdAt: string;
66
67
  /**
67
68
  *
68
69
  * @type {string}
@@ -71,10 +72,16 @@ export interface ImageKnowledgeUio {
71
72
  updatedAt?: string;
72
73
  /**
73
74
  *
75
+ * @type {FileStatusUio}
76
+ * @memberof ImageKnowledgeUio
77
+ */
78
+ status: FileStatusUio;
79
+ /**
80
+ * URL publique de l'image. Toujours renseignée par le backend : soit stockée (MongoDB), soit dérivée de `key` à la lecture (PostgreSQL).
74
81
  * @type {string}
75
82
  * @memberof ImageKnowledgeUio
76
83
  */
77
- url?: string;
84
+ url: string;
78
85
  }
79
86
  /**
80
87
  * Check if a given object implements the ImageKnowledgeUio interface.
@@ -18,10 +18,25 @@ exports.ImageKnowledgeUioFromJSON = ImageKnowledgeUioFromJSON;
18
18
  exports.ImageKnowledgeUioFromJSONTyped = ImageKnowledgeUioFromJSONTyped;
19
19
  exports.ImageKnowledgeUioToJSON = ImageKnowledgeUioToJSON;
20
20
  exports.ImageKnowledgeUioToJSONTyped = ImageKnowledgeUioToJSONTyped;
21
+ const FileStatusUio_1 = require("./FileStatusUio");
21
22
  /**
22
23
  * Check if a given object implements the ImageKnowledgeUio interface.
23
24
  */
24
25
  function instanceOfImageKnowledgeUio(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 (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('key' in value) || value['key'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ if (!('url' in value) || value['url'] === undefined)
39
+ return false;
25
40
  return true;
26
41
  }
27
42
  function ImageKnowledgeUioFromJSON(json) {
@@ -32,16 +47,17 @@ function ImageKnowledgeUioFromJSONTyped(json, ignoreDiscriminator) {
32
47
  return json;
33
48
  }
34
49
  return {
35
- 'id': json['id'] == null ? undefined : json['id'],
36
- 'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
37
- 'name': json['name'] == null ? undefined : json['name'],
50
+ 'id': json['id'],
51
+ 'knowledgeBaseId': json['knowledgeBaseId'],
52
+ 'name': json['name'],
38
53
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
39
54
  'ext': json['ext'] == null ? undefined : json['ext'],
40
55
  'size': json['size'] == null ? undefined : json['size'],
41
- 'key': json['key'] == null ? undefined : json['key'],
42
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
56
+ 'key': json['key'],
57
+ 'createdAt': json['createdAt'],
43
58
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
44
- 'url': json['url'] == null ? undefined : json['url'],
59
+ 'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
60
+ 'url': json['url'],
45
61
  };
46
62
  }
47
63
  function ImageKnowledgeUioToJSON(json) {
@@ -61,6 +77,7 @@ function ImageKnowledgeUioToJSONTyped(value, ignoreDiscriminator = false) {
61
77
  'key': value['key'],
62
78
  'createdAt': value['createdAt'],
63
79
  'updatedAt': value['updatedAt'],
80
+ 'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
64
81
  'url': value['url'],
65
82
  };
66
83
  }
@@ -16,6 +16,12 @@ import type { KnowledgeBaseConfigurationAuthenticationUio } from './KnowledgeBas
16
16
  * @interface KnowledgeBaseConfigurationUio
17
17
  */
18
18
  export interface KnowledgeBaseConfigurationUio {
19
+ /**
20
+ * Dérivé du module installé sur la knowledge base. Lecture seule : ce champ n'est pas accepté par le PUT.
21
+ * @type {string}
22
+ * @memberof KnowledgeBaseConfigurationUio
23
+ */
24
+ vectorStoreType?: KnowledgeBaseConfigurationUioVectorStoreTypeEnum;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -137,6 +143,14 @@ export interface KnowledgeBaseConfigurationUio {
137
143
  */
138
144
  embeddingDimensions?: number | null;
139
145
  }
146
+ /**
147
+ * @export
148
+ */
149
+ export declare const KnowledgeBaseConfigurationUioVectorStoreTypeEnum: {
150
+ readonly Weaviate: "weaviate";
151
+ readonly Qdrant: "qdrant";
152
+ };
153
+ export type KnowledgeBaseConfigurationUioVectorStoreTypeEnum = typeof KnowledgeBaseConfigurationUioVectorStoreTypeEnum[keyof typeof KnowledgeBaseConfigurationUioVectorStoreTypeEnum];
140
154
  /**
141
155
  * @export
142
156
  */
@@ -13,13 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.KnowledgeBaseConfigurationUioFusionTypeEnum = exports.KnowledgeBaseConfigurationUioSchemeEnum = void 0;
16
+ exports.KnowledgeBaseConfigurationUioFusionTypeEnum = exports.KnowledgeBaseConfigurationUioSchemeEnum = exports.KnowledgeBaseConfigurationUioVectorStoreTypeEnum = void 0;
17
17
  exports.instanceOfKnowledgeBaseConfigurationUio = instanceOfKnowledgeBaseConfigurationUio;
18
18
  exports.KnowledgeBaseConfigurationUioFromJSON = KnowledgeBaseConfigurationUioFromJSON;
19
19
  exports.KnowledgeBaseConfigurationUioFromJSONTyped = KnowledgeBaseConfigurationUioFromJSONTyped;
20
20
  exports.KnowledgeBaseConfigurationUioToJSON = KnowledgeBaseConfigurationUioToJSON;
21
21
  exports.KnowledgeBaseConfigurationUioToJSONTyped = KnowledgeBaseConfigurationUioToJSONTyped;
22
22
  const KnowledgeBaseConfigurationAuthenticationUio_1 = require("./KnowledgeBaseConfigurationAuthenticationUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.KnowledgeBaseConfigurationUioVectorStoreTypeEnum = {
27
+ Weaviate: 'weaviate',
28
+ Qdrant: 'qdrant'
29
+ };
23
30
  /**
24
31
  * @export
25
32
  */
@@ -48,6 +55,7 @@ function KnowledgeBaseConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
48
55
  return json;
49
56
  }
50
57
  return {
58
+ 'vectorStoreType': json['vectorStoreType'] == null ? undefined : json['vectorStoreType'],
51
59
  'host': json['host'] == null ? undefined : json['host'],
52
60
  'scheme': json['scheme'] == null ? undefined : json['scheme'],
53
61
  'authentication': json['authentication'] == null ? undefined : (0, KnowledgeBaseConfigurationAuthenticationUio_1.KnowledgeBaseConfigurationAuthenticationUioFromJSON)(json['authentication']),
@@ -78,6 +86,7 @@ function KnowledgeBaseConfigurationUioToJSONTyped(value, ignoreDiscriminator = f
78
86
  return value;
79
87
  }
80
88
  return {
89
+ 'vectorStoreType': value['vectorStoreType'],
81
90
  'host': value['host'],
82
91
  'scheme': value['scheme'],
83
92
  'authentication': (0, KnowledgeBaseConfigurationAuthenticationUio_1.KnowledgeBaseConfigurationAuthenticationUioToJSON)(value['authentication']),
@@ -0,0 +1,45 @@
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 KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio
16
+ */
17
+ export interface KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio
22
+ */
23
+ type?: KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio
28
+ */
29
+ apiKey?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum: {
35
+ readonly ApiKey: "API_KEY";
36
+ };
37
+ export type KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum = typeof KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum[keyof typeof KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum];
38
+ /**
39
+ * Check if a given object implements the KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio interface.
40
+ */
41
+ export declare function instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio(value: object): value is KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio;
42
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSON(json: any): KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio;
43
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio;
44
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSON(json: any): KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio;
45
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSONTyped(value?: KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum = void 0;
17
+ exports.instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio = instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio;
18
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSON = KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSON;
19
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped = KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped;
20
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSON = KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSON;
21
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSONTyped = KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioTypeEnum = {
26
+ ApiKey: 'API_KEY'
27
+ };
28
+ /**
29
+ * Check if a given object implements the KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio interface.
30
+ */
31
+ function instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio(value) {
32
+ return true;
33
+ }
34
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSON(json) {
35
+ return KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped(json, false);
36
+ }
37
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'type': json['type'] == null ? undefined : json['type'],
43
+ 'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
44
+ };
45
+ }
46
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSON(json) {
47
+ return KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSONTyped(json, false);
48
+ }
49
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'type': value['type'],
55
+ 'apiKey': value['apiKey'],
56
+ };
57
+ }
@@ -0,0 +1,22 @@
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 { KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio } from './KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio';
13
+ /**
14
+ * @type KnowledgeBaseConfigurationUpdateRequestAuthenticationUio
15
+ *
16
+ * @export
17
+ */
18
+ export type KnowledgeBaseConfigurationUpdateRequestAuthenticationUio = KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio | string;
19
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSON(json: any): KnowledgeBaseConfigurationUpdateRequestAuthenticationUio;
20
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationUpdateRequestAuthenticationUio;
21
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSON(json: any): any;
22
+ export declare function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSONTyped(value?: KnowledgeBaseConfigurationUpdateRequestAuthenticationUio | 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.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSON = KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSON;
17
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSONTyped = KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSONTyped;
18
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSON = KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSON;
19
+ exports.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSONTyped = KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSONTyped;
20
+ const KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio_1 = require("./KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio");
21
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSON(json) {
22
+ return KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSONTyped(json, false);
23
+ }
24
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ if (typeof json !== 'object') {
29
+ return json;
30
+ }
31
+ if ((0, KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio_1.instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio)(json)) {
32
+ return (0, KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio_1.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioFromJSONTyped)(json, true);
33
+ }
34
+ return {};
35
+ }
36
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSON(json) {
37
+ return KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSONTyped(json, false);
38
+ }
39
+ function KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ if (typeof value !== 'object') {
44
+ return value;
45
+ }
46
+ if ((0, KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio_1.instanceOfKnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio)(value)) {
47
+ return (0, KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio_1.KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUioToJSON)(value);
48
+ }
49
+ return {};
50
+ }
@@ -0,0 +1,157 @@
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 { KnowledgeBaseConfigurationUpdateRequestAuthenticationUio } from './KnowledgeBaseConfigurationUpdateRequestAuthenticationUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface KnowledgeBaseConfigurationUpdateRequestUio
17
+ */
18
+ export interface KnowledgeBaseConfigurationUpdateRequestUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
23
+ */
24
+ indexName: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
29
+ */
30
+ host?: string | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
35
+ */
36
+ scheme?: KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum | null;
37
+ /**
38
+ *
39
+ * @type {KnowledgeBaseConfigurationUpdateRequestAuthenticationUio}
40
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
41
+ */
42
+ authentication?: KnowledgeBaseConfigurationUpdateRequestAuthenticationUio;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
47
+ */
48
+ emptyKnowledgeResult?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
53
+ */
54
+ additionalInstructions?: string | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
59
+ */
60
+ fusionType?: KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum | null;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
65
+ */
66
+ scoreThreshold?: number | null;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
71
+ */
72
+ maxDocuments?: number | null;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
77
+ */
78
+ maxRetrievalLength?: number | null;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
83
+ */
84
+ isChunkingEnriched?: boolean | null;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
89
+ */
90
+ boostScore?: number | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
95
+ */
96
+ toolDescription?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
101
+ */
102
+ toolParametersQueryDescription?: string | null;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
107
+ */
108
+ vectorizerModel?: string | null;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
113
+ */
114
+ vectorizerModelDimensions?: number | null;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
119
+ */
120
+ embeddingProviderId?: string | null;
121
+ /**
122
+ *
123
+ * @type {string}
124
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
125
+ */
126
+ embeddingModelId?: string | null;
127
+ /**
128
+ *
129
+ * @type {number}
130
+ * @memberof KnowledgeBaseConfigurationUpdateRequestUio
131
+ */
132
+ embeddingDimensions?: number | null;
133
+ }
134
+ /**
135
+ * @export
136
+ */
137
+ export declare const KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum: {
138
+ readonly Http: "http";
139
+ readonly Https: "https";
140
+ };
141
+ export type KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum = typeof KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum[keyof typeof KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum];
142
+ /**
143
+ * @export
144
+ */
145
+ export declare const KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum: {
146
+ readonly RankedFusion: "rankedFusion";
147
+ readonly RelativeScoreFusion: "relativeScoreFusion";
148
+ };
149
+ export type KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum = typeof KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum[keyof typeof KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum];
150
+ /**
151
+ * Check if a given object implements the KnowledgeBaseConfigurationUpdateRequestUio interface.
152
+ */
153
+ export declare function instanceOfKnowledgeBaseConfigurationUpdateRequestUio(value: object): value is KnowledgeBaseConfigurationUpdateRequestUio;
154
+ export declare function KnowledgeBaseConfigurationUpdateRequestUioFromJSON(json: any): KnowledgeBaseConfigurationUpdateRequestUio;
155
+ export declare function KnowledgeBaseConfigurationUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationUpdateRequestUio;
156
+ export declare function KnowledgeBaseConfigurationUpdateRequestUioToJSON(json: any): KnowledgeBaseConfigurationUpdateRequestUio;
157
+ export declare function KnowledgeBaseConfigurationUpdateRequestUioToJSONTyped(value?: KnowledgeBaseConfigurationUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,102 @@
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.KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum = exports.KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum = void 0;
17
+ exports.instanceOfKnowledgeBaseConfigurationUpdateRequestUio = instanceOfKnowledgeBaseConfigurationUpdateRequestUio;
18
+ exports.KnowledgeBaseConfigurationUpdateRequestUioFromJSON = KnowledgeBaseConfigurationUpdateRequestUioFromJSON;
19
+ exports.KnowledgeBaseConfigurationUpdateRequestUioFromJSONTyped = KnowledgeBaseConfigurationUpdateRequestUioFromJSONTyped;
20
+ exports.KnowledgeBaseConfigurationUpdateRequestUioToJSON = KnowledgeBaseConfigurationUpdateRequestUioToJSON;
21
+ exports.KnowledgeBaseConfigurationUpdateRequestUioToJSONTyped = KnowledgeBaseConfigurationUpdateRequestUioToJSONTyped;
22
+ const KnowledgeBaseConfigurationUpdateRequestAuthenticationUio_1 = require("./KnowledgeBaseConfigurationUpdateRequestAuthenticationUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.KnowledgeBaseConfigurationUpdateRequestUioSchemeEnum = {
27
+ Http: 'http',
28
+ Https: 'https'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.KnowledgeBaseConfigurationUpdateRequestUioFusionTypeEnum = {
34
+ RankedFusion: 'rankedFusion',
35
+ RelativeScoreFusion: 'relativeScoreFusion'
36
+ };
37
+ /**
38
+ * Check if a given object implements the KnowledgeBaseConfigurationUpdateRequestUio interface.
39
+ */
40
+ function instanceOfKnowledgeBaseConfigurationUpdateRequestUio(value) {
41
+ if (!('indexName' in value) || value['indexName'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function KnowledgeBaseConfigurationUpdateRequestUioFromJSON(json) {
46
+ return KnowledgeBaseConfigurationUpdateRequestUioFromJSONTyped(json, false);
47
+ }
48
+ function KnowledgeBaseConfigurationUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'indexName': json['indexName'],
54
+ 'host': json['host'] == null ? undefined : json['host'],
55
+ 'scheme': json['scheme'] == null ? undefined : json['scheme'],
56
+ 'authentication': json['authentication'] == null ? undefined : (0, KnowledgeBaseConfigurationUpdateRequestAuthenticationUio_1.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioFromJSON)(json['authentication']),
57
+ 'emptyKnowledgeResult': json['emptyKnowledgeResult'] == null ? undefined : json['emptyKnowledgeResult'],
58
+ 'additionalInstructions': json['additionalInstructions'] == null ? undefined : json['additionalInstructions'],
59
+ 'fusionType': json['fusionType'] == null ? undefined : json['fusionType'],
60
+ 'scoreThreshold': json['scoreThreshold'] == null ? undefined : json['scoreThreshold'],
61
+ 'maxDocuments': json['maxDocuments'] == null ? undefined : json['maxDocuments'],
62
+ 'maxRetrievalLength': json['maxRetrievalLength'] == null ? undefined : json['maxRetrievalLength'],
63
+ 'isChunkingEnriched': json['isChunkingEnriched'] == null ? undefined : json['isChunkingEnriched'],
64
+ 'boostScore': json['boostScore'] == null ? undefined : json['boostScore'],
65
+ 'toolDescription': json['toolDescription'] == null ? undefined : json['toolDescription'],
66
+ 'toolParametersQueryDescription': json['toolParametersQueryDescription'] == null ? undefined : json['toolParametersQueryDescription'],
67
+ 'vectorizerModel': json['vectorizerModel'] == null ? undefined : json['vectorizerModel'],
68
+ 'vectorizerModelDimensions': json['vectorizerModelDimensions'] == null ? undefined : json['vectorizerModelDimensions'],
69
+ 'embeddingProviderId': json['embeddingProviderId'] == null ? undefined : json['embeddingProviderId'],
70
+ 'embeddingModelId': json['embeddingModelId'] == null ? undefined : json['embeddingModelId'],
71
+ 'embeddingDimensions': json['embeddingDimensions'] == null ? undefined : json['embeddingDimensions'],
72
+ };
73
+ }
74
+ function KnowledgeBaseConfigurationUpdateRequestUioToJSON(json) {
75
+ return KnowledgeBaseConfigurationUpdateRequestUioToJSONTyped(json, false);
76
+ }
77
+ function KnowledgeBaseConfigurationUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'indexName': value['indexName'],
83
+ 'host': value['host'],
84
+ 'scheme': value['scheme'],
85
+ 'authentication': (0, KnowledgeBaseConfigurationUpdateRequestAuthenticationUio_1.KnowledgeBaseConfigurationUpdateRequestAuthenticationUioToJSON)(value['authentication']),
86
+ 'emptyKnowledgeResult': value['emptyKnowledgeResult'],
87
+ 'additionalInstructions': value['additionalInstructions'],
88
+ 'fusionType': value['fusionType'],
89
+ 'scoreThreshold': value['scoreThreshold'],
90
+ 'maxDocuments': value['maxDocuments'],
91
+ 'maxRetrievalLength': value['maxRetrievalLength'],
92
+ 'isChunkingEnriched': value['isChunkingEnriched'],
93
+ 'boostScore': value['boostScore'],
94
+ 'toolDescription': value['toolDescription'],
95
+ 'toolParametersQueryDescription': value['toolParametersQueryDescription'],
96
+ 'vectorizerModel': value['vectorizerModel'],
97
+ 'vectorizerModelDimensions': value['vectorizerModelDimensions'],
98
+ 'embeddingProviderId': value['embeddingProviderId'],
99
+ 'embeddingModelId': value['embeddingModelId'],
100
+ 'embeddingDimensions': value['embeddingDimensions'],
101
+ };
102
+ }