@breign/client 1.0.201 → 1.0.203

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.
@@ -39,6 +39,9 @@ export interface DeleteContextCustomVariableKeyRequest {
39
39
  conversationId: string;
40
40
  key: string;
41
41
  }
42
+ export interface DeleteConversationByIdRequest {
43
+ conversationId: string;
44
+ }
42
45
  export interface DeleteConversationWorkspaceFileRequest {
43
46
  conversationId: string;
44
47
  path: string;
@@ -213,6 +216,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
213
216
  * Delete a custom variable key from the context of a conversation
214
217
  */
215
218
  deleteContextCustomVariableKey(conversationId: string, key: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
219
+ /**
220
+ * Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
221
+ * Permanently delete a conversation.
222
+ */
223
+ deleteConversationByIdRaw(requestParameters: DeleteConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
224
+ /**
225
+ * Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
226
+ * Permanently delete a conversation.
227
+ */
228
+ deleteConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
216
229
  /**
217
230
  * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
218
231
  * Delete a file from a conversation workspace
@@ -273,6 +273,34 @@ class ConversationsApi extends runtime.BaseAPI {
273
273
  async deleteContextCustomVariableKey(conversationId, key, initOverrides) {
274
274
  await this.deleteContextCustomVariableKeyRaw({ conversationId: conversationId, key: key }, initOverrides);
275
275
  }
276
+ /**
277
+ * Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
278
+ * Permanently delete a conversation.
279
+ */
280
+ async deleteConversationByIdRaw(requestParameters, initOverrides) {
281
+ if (requestParameters['conversationId'] == null) {
282
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversationById().');
283
+ }
284
+ const queryParameters = {};
285
+ const headerParameters = {};
286
+ if (this.configuration && this.configuration.apiKey) {
287
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
288
+ }
289
+ const response = await this.request({
290
+ path: `/conversations/{conversationId}/permanent`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
291
+ method: 'DELETE',
292
+ headers: headerParameters,
293
+ query: queryParameters,
294
+ }, initOverrides);
295
+ return new runtime.VoidApiResponse(response);
296
+ }
297
+ /**
298
+ * Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.
299
+ * Permanently delete a conversation.
300
+ */
301
+ async deleteConversationById(conversationId, initOverrides) {
302
+ await this.deleteConversationByIdRaw({ conversationId: conversationId }, initOverrides);
303
+ }
276
304
  /**
277
305
  * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
278
306
  * Delete a file from a conversation workspace
@@ -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
@@ -15714,6 +15714,40 @@
15714
15714
  "tags" : [ "prompts" ]
15715
15715
  }
15716
15716
  },
15717
+ "/conversations/{conversationId}/permanent" : {
15718
+ "delete" : {
15719
+ "description" : "Permanently deletes a conversation, archived or not: its messages are removed from the database and its attachments from the file storage. Unlike `DELETE /conversations/{conversationId}`, which only archives it, this cannot be undone.\n",
15720
+ "operationId" : "deleteConversationById",
15721
+ "parameters" : [ {
15722
+ "description" : "The ID of the conversation",
15723
+ "in" : "path",
15724
+ "name" : "conversationId",
15725
+ "required" : true,
15726
+ "schema" : {
15727
+ "type" : "string"
15728
+ }
15729
+ } ],
15730
+ "responses" : {
15731
+ "204" : {
15732
+ "description" : "Conversation permanently deleted."
15733
+ },
15734
+ "401" : {
15735
+ "description" : "Unauthorized"
15736
+ },
15737
+ "403" : {
15738
+ "description" : "Forbidden - User cannot delete this conversation"
15739
+ },
15740
+ "404" : {
15741
+ "description" : "Conversation not found"
15742
+ },
15743
+ "500" : {
15744
+ "description" : "Server error"
15745
+ }
15746
+ },
15747
+ "summary" : "Permanently delete a conversation.",
15748
+ "tags" : [ "conversations" ]
15749
+ }
15750
+ },
15717
15751
  "/conversations/{conversationId}/prompts" : {
15718
15752
  "post" : {
15719
15753
  "description" : "Adds a new message to an existing conversation and gets the AI response",
@@ -31208,8 +31242,30 @@
31208
31242
  "embeddingDimensions" : {
31209
31243
  "nullable" : true,
31210
31244
  "type" : "number"
31245
+ },
31246
+ "defaults" : {
31247
+ "$ref" : "#/components/schemas/KnowledgeBaseConfigurationDefaults"
31248
+ }
31249
+ },
31250
+ "type" : "object"
31251
+ },
31252
+ "KnowledgeBaseConfigurationDefaults" : {
31253
+ "properties" : {
31254
+ "fusionType" : {
31255
+ "enum" : [ "rankedFusion", "relativeScoreFusion" ],
31256
+ "type" : "string"
31257
+ },
31258
+ "scoreThresholds" : {
31259
+ "$ref" : "#/components/schemas/KnowledgeBaseConfigurationDefaults_scoreThresholds"
31260
+ },
31261
+ "maxDocuments" : {
31262
+ "type" : "number"
31263
+ },
31264
+ "emptyKnowledgeResult" : {
31265
+ "type" : "string"
31211
31266
  }
31212
31267
  },
31268
+ "required" : [ "emptyKnowledgeResult", "fusionType", "maxDocuments", "scoreThresholds" ],
31213
31269
  "type" : "object"
31214
31270
  },
31215
31271
  "KnowledgeBaseConfigurationUpdateRequest" : {
@@ -41063,6 +41119,19 @@
41063
41119
  "$ref" : "#/components/schemas/KnowledgeBaseConfiguration_authentication_oneOf"
41064
41120
  } ]
41065
41121
  },
41122
+ "KnowledgeBaseConfigurationDefaults_scoreThresholds" : {
41123
+ "description" : "Seuil par défaut selon le type de fusion (identique pour les deux sur Qdrant, qui n'a pas de fusion).",
41124
+ "properties" : {
41125
+ "rankedFusion" : {
41126
+ "type" : "number"
41127
+ },
41128
+ "relativeScoreFusion" : {
41129
+ "type" : "number"
41130
+ }
41131
+ },
41132
+ "required" : [ "rankedFusion", "relativeScoreFusion" ],
41133
+ "type" : "object"
41134
+ },
41066
41135
  "KnowledgeBaseConfigurationUpdateRequest_authentication_oneOf" : {
41067
41136
  "nullable" : true,
41068
41137
  "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.203",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",