@breign/client 1.0.201 → 1.0.202

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.
@@ -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
+ * Seuil par défaut selon le type de fusion (identique pour les deux sur Qdrant, qui n'a pas de fusion).
14
+ * @export
15
+ * @interface KnowledgeBaseConfigurationDefaultsScoreThresholdsUio
16
+ */
17
+ export interface KnowledgeBaseConfigurationDefaultsScoreThresholdsUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof KnowledgeBaseConfigurationDefaultsScoreThresholdsUio
22
+ */
23
+ rankedFusion: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof KnowledgeBaseConfigurationDefaultsScoreThresholdsUio
28
+ */
29
+ relativeScoreFusion: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the KnowledgeBaseConfigurationDefaultsScoreThresholdsUio interface.
33
+ */
34
+ export declare function instanceOfKnowledgeBaseConfigurationDefaultsScoreThresholdsUio(value: object): value is KnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
35
+ export declare function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSON(json: any): KnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
36
+ export declare function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
37
+ export declare function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSON(json: any): KnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
38
+ export declare function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSONTyped(value?: KnowledgeBaseConfigurationDefaultsScoreThresholdsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfKnowledgeBaseConfigurationDefaultsScoreThresholdsUio = instanceOfKnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
17
+ exports.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSON = KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSON;
18
+ exports.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSONTyped = KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSONTyped;
19
+ exports.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSON = KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSON;
20
+ exports.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSONTyped = KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the KnowledgeBaseConfigurationDefaultsScoreThresholdsUio interface.
23
+ */
24
+ function instanceOfKnowledgeBaseConfigurationDefaultsScoreThresholdsUio(value) {
25
+ if (!('rankedFusion' in value) || value['rankedFusion'] === undefined)
26
+ return false;
27
+ if (!('relativeScoreFusion' in value) || value['relativeScoreFusion'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSON(json) {
32
+ return KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSONTyped(json, false);
33
+ }
34
+ function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'rankedFusion': json['rankedFusion'],
40
+ 'relativeScoreFusion': json['relativeScoreFusion'],
41
+ };
42
+ }
43
+ function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSON(json) {
44
+ return KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSONTyped(json, false);
45
+ }
46
+ function KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'rankedFusion': value['rankedFusion'],
52
+ 'relativeScoreFusion': value['relativeScoreFusion'],
53
+ };
54
+ }
@@ -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 { KnowledgeBaseConfigurationDefaultsScoreThresholdsUio } from './KnowledgeBaseConfigurationDefaultsScoreThresholdsUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface KnowledgeBaseConfigurationDefaultsUio
17
+ */
18
+ export interface KnowledgeBaseConfigurationDefaultsUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof KnowledgeBaseConfigurationDefaultsUio
23
+ */
24
+ fusionType: KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum;
25
+ /**
26
+ *
27
+ * @type {KnowledgeBaseConfigurationDefaultsScoreThresholdsUio}
28
+ * @memberof KnowledgeBaseConfigurationDefaultsUio
29
+ */
30
+ scoreThresholds: KnowledgeBaseConfigurationDefaultsScoreThresholdsUio;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof KnowledgeBaseConfigurationDefaultsUio
35
+ */
36
+ maxDocuments: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof KnowledgeBaseConfigurationDefaultsUio
41
+ */
42
+ emptyKnowledgeResult: string;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum: {
48
+ readonly RankedFusion: "rankedFusion";
49
+ readonly RelativeScoreFusion: "relativeScoreFusion";
50
+ };
51
+ export type KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum = typeof KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum[keyof typeof KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum];
52
+ /**
53
+ * Check if a given object implements the KnowledgeBaseConfigurationDefaultsUio interface.
54
+ */
55
+ export declare function instanceOfKnowledgeBaseConfigurationDefaultsUio(value: object): value is KnowledgeBaseConfigurationDefaultsUio;
56
+ export declare function KnowledgeBaseConfigurationDefaultsUioFromJSON(json: any): KnowledgeBaseConfigurationDefaultsUio;
57
+ export declare function KnowledgeBaseConfigurationDefaultsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationDefaultsUio;
58
+ export declare function KnowledgeBaseConfigurationDefaultsUioToJSON(json: any): KnowledgeBaseConfigurationDefaultsUio;
59
+ export declare function KnowledgeBaseConfigurationDefaultsUioToJSONTyped(value?: KnowledgeBaseConfigurationDefaultsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum = void 0;
17
+ exports.instanceOfKnowledgeBaseConfigurationDefaultsUio = instanceOfKnowledgeBaseConfigurationDefaultsUio;
18
+ exports.KnowledgeBaseConfigurationDefaultsUioFromJSON = KnowledgeBaseConfigurationDefaultsUioFromJSON;
19
+ exports.KnowledgeBaseConfigurationDefaultsUioFromJSONTyped = KnowledgeBaseConfigurationDefaultsUioFromJSONTyped;
20
+ exports.KnowledgeBaseConfigurationDefaultsUioToJSON = KnowledgeBaseConfigurationDefaultsUioToJSON;
21
+ exports.KnowledgeBaseConfigurationDefaultsUioToJSONTyped = KnowledgeBaseConfigurationDefaultsUioToJSONTyped;
22
+ const KnowledgeBaseConfigurationDefaultsScoreThresholdsUio_1 = require("./KnowledgeBaseConfigurationDefaultsScoreThresholdsUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.KnowledgeBaseConfigurationDefaultsUioFusionTypeEnum = {
27
+ RankedFusion: 'rankedFusion',
28
+ RelativeScoreFusion: 'relativeScoreFusion'
29
+ };
30
+ /**
31
+ * Check if a given object implements the KnowledgeBaseConfigurationDefaultsUio interface.
32
+ */
33
+ function instanceOfKnowledgeBaseConfigurationDefaultsUio(value) {
34
+ if (!('fusionType' in value) || value['fusionType'] === undefined)
35
+ return false;
36
+ if (!('scoreThresholds' in value) || value['scoreThresholds'] === undefined)
37
+ return false;
38
+ if (!('maxDocuments' in value) || value['maxDocuments'] === undefined)
39
+ return false;
40
+ if (!('emptyKnowledgeResult' in value) || value['emptyKnowledgeResult'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function KnowledgeBaseConfigurationDefaultsUioFromJSON(json) {
45
+ return KnowledgeBaseConfigurationDefaultsUioFromJSONTyped(json, false);
46
+ }
47
+ function KnowledgeBaseConfigurationDefaultsUioFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'fusionType': json['fusionType'],
53
+ 'scoreThresholds': (0, KnowledgeBaseConfigurationDefaultsScoreThresholdsUio_1.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioFromJSON)(json['scoreThresholds']),
54
+ 'maxDocuments': json['maxDocuments'],
55
+ 'emptyKnowledgeResult': json['emptyKnowledgeResult'],
56
+ };
57
+ }
58
+ function KnowledgeBaseConfigurationDefaultsUioToJSON(json) {
59
+ return KnowledgeBaseConfigurationDefaultsUioToJSONTyped(json, false);
60
+ }
61
+ function KnowledgeBaseConfigurationDefaultsUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'fusionType': value['fusionType'],
67
+ 'scoreThresholds': (0, KnowledgeBaseConfigurationDefaultsScoreThresholdsUio_1.KnowledgeBaseConfigurationDefaultsScoreThresholdsUioToJSON)(value['scoreThresholds']),
68
+ 'maxDocuments': value['maxDocuments'],
69
+ 'emptyKnowledgeResult': value['emptyKnowledgeResult'],
70
+ };
71
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { KnowledgeBaseConfigurationDefaultsUio } from './KnowledgeBaseConfigurationDefaultsUio';
12
13
  import type { KnowledgeBaseConfigurationAuthenticationUio } from './KnowledgeBaseConfigurationAuthenticationUio';
13
14
  /**
14
15
  *
@@ -142,6 +143,12 @@ export interface KnowledgeBaseConfigurationUio {
142
143
  * @memberof KnowledgeBaseConfigurationUio
143
144
  */
144
145
  embeddingDimensions?: number | null;
146
+ /**
147
+ *
148
+ * @type {KnowledgeBaseConfigurationDefaultsUio}
149
+ * @memberof KnowledgeBaseConfigurationUio
150
+ */
151
+ defaults?: KnowledgeBaseConfigurationDefaultsUio;
145
152
  }
146
153
  /**
147
154
  * @export
@@ -19,6 +19,7 @@ exports.KnowledgeBaseConfigurationUioFromJSON = KnowledgeBaseConfigurationUioFro
19
19
  exports.KnowledgeBaseConfigurationUioFromJSONTyped = KnowledgeBaseConfigurationUioFromJSONTyped;
20
20
  exports.KnowledgeBaseConfigurationUioToJSON = KnowledgeBaseConfigurationUioToJSON;
21
21
  exports.KnowledgeBaseConfigurationUioToJSONTyped = KnowledgeBaseConfigurationUioToJSONTyped;
22
+ const KnowledgeBaseConfigurationDefaultsUio_1 = require("./KnowledgeBaseConfigurationDefaultsUio");
22
23
  const KnowledgeBaseConfigurationAuthenticationUio_1 = require("./KnowledgeBaseConfigurationAuthenticationUio");
23
24
  /**
24
25
  * @export
@@ -76,6 +77,7 @@ function KnowledgeBaseConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
76
77
  'embeddingProviderId': json['embeddingProviderId'] == null ? undefined : json['embeddingProviderId'],
77
78
  'embeddingModelId': json['embeddingModelId'] == null ? undefined : json['embeddingModelId'],
78
79
  'embeddingDimensions': json['embeddingDimensions'] == null ? undefined : json['embeddingDimensions'],
80
+ 'defaults': json['defaults'] == null ? undefined : (0, KnowledgeBaseConfigurationDefaultsUio_1.KnowledgeBaseConfigurationDefaultsUioFromJSON)(json['defaults']),
79
81
  };
80
82
  }
81
83
  function KnowledgeBaseConfigurationUioToJSON(json) {
@@ -107,5 +109,6 @@ function KnowledgeBaseConfigurationUioToJSONTyped(value, ignoreDiscriminator = f
107
109
  'embeddingProviderId': value['embeddingProviderId'],
108
110
  'embeddingModelId': value['embeddingModelId'],
109
111
  'embeddingDimensions': value['embeddingDimensions'],
112
+ 'defaults': (0, KnowledgeBaseConfigurationDefaultsUio_1.KnowledgeBaseConfigurationDefaultsUioToJSON)(value['defaults']),
110
113
  };
111
114
  }
@@ -410,6 +410,8 @@ export * from './InstanceUio';
410
410
  export * from './IntrospectMcpTool200ResponseUio';
411
411
  export * from './KnowledgeBaseConfigurationAuthenticationOneOfUio';
412
412
  export * from './KnowledgeBaseConfigurationAuthenticationUio';
413
+ export * from './KnowledgeBaseConfigurationDefaultsScoreThresholdsUio';
414
+ export * from './KnowledgeBaseConfigurationDefaultsUio';
413
415
  export * from './KnowledgeBaseConfigurationUio';
414
416
  export * from './KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio';
415
417
  export * from './KnowledgeBaseConfigurationUpdateRequestAuthenticationUio';
@@ -428,6 +428,8 @@ __exportStar(require("./InstanceUio"), exports);
428
428
  __exportStar(require("./IntrospectMcpTool200ResponseUio"), exports);
429
429
  __exportStar(require("./KnowledgeBaseConfigurationAuthenticationOneOfUio"), exports);
430
430
  __exportStar(require("./KnowledgeBaseConfigurationAuthenticationUio"), exports);
431
+ __exportStar(require("./KnowledgeBaseConfigurationDefaultsScoreThresholdsUio"), exports);
432
+ __exportStar(require("./KnowledgeBaseConfigurationDefaultsUio"), exports);
431
433
  __exportStar(require("./KnowledgeBaseConfigurationUio"), exports);
432
434
  __exportStar(require("./KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio"), exports);
433
435
  __exportStar(require("./KnowledgeBaseConfigurationUpdateRequestAuthenticationUio"), exports);
package/dist/openapi.json CHANGED
@@ -31208,8 +31208,30 @@
31208
31208
  "embeddingDimensions" : {
31209
31209
  "nullable" : true,
31210
31210
  "type" : "number"
31211
+ },
31212
+ "defaults" : {
31213
+ "$ref" : "#/components/schemas/KnowledgeBaseConfigurationDefaults"
31214
+ }
31215
+ },
31216
+ "type" : "object"
31217
+ },
31218
+ "KnowledgeBaseConfigurationDefaults" : {
31219
+ "properties" : {
31220
+ "fusionType" : {
31221
+ "enum" : [ "rankedFusion", "relativeScoreFusion" ],
31222
+ "type" : "string"
31223
+ },
31224
+ "scoreThresholds" : {
31225
+ "$ref" : "#/components/schemas/KnowledgeBaseConfigurationDefaults_scoreThresholds"
31226
+ },
31227
+ "maxDocuments" : {
31228
+ "type" : "number"
31229
+ },
31230
+ "emptyKnowledgeResult" : {
31231
+ "type" : "string"
31211
31232
  }
31212
31233
  },
31234
+ "required" : [ "emptyKnowledgeResult", "fusionType", "maxDocuments", "scoreThresholds" ],
31213
31235
  "type" : "object"
31214
31236
  },
31215
31237
  "KnowledgeBaseConfigurationUpdateRequest" : {
@@ -41063,6 +41085,19 @@
41063
41085
  "$ref" : "#/components/schemas/KnowledgeBaseConfiguration_authentication_oneOf"
41064
41086
  } ]
41065
41087
  },
41088
+ "KnowledgeBaseConfigurationDefaults_scoreThresholds" : {
41089
+ "description" : "Seuil par défaut selon le type de fusion (identique pour les deux sur Qdrant, qui n'a pas de fusion).",
41090
+ "properties" : {
41091
+ "rankedFusion" : {
41092
+ "type" : "number"
41093
+ },
41094
+ "relativeScoreFusion" : {
41095
+ "type" : "number"
41096
+ }
41097
+ },
41098
+ "required" : [ "rankedFusion", "relativeScoreFusion" ],
41099
+ "type" : "object"
41100
+ },
41066
41101
  "KnowledgeBaseConfigurationUpdateRequest_authentication_oneOf" : {
41067
41102
  "nullable" : true,
41068
41103
  "properties" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.201",
3
+ "version": "1.0.202",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",