@breign/client 1.0.144 → 1.0.146

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateToolApprovalRequestUio, DeleteOrganizationUser200ResponseUio, EditToolApprovalRequestUio, OrganizationEngineUio, OrganizationMemberUio, OrganizationUio, OrganizationUserInviteRequestUio, OrganizationUserInviteResponseUio, RoleCreateRequestUio, RoleUio, ToolApprovalUio, ToolApprovalsResponseUio } from '../models/index';
13
+ import type { CreateToolApprovalRequestUio, DeleteOrganizationUser200ResponseUio, EditToolApprovalRequestUio, OrganizationEngineUio, OrganizationMemberUio, OrganizationOcrConfigUio, OrganizationOcrConfigUpdateRequestUio, OrganizationUio, OrganizationUserInviteRequestUio, OrganizationUserInviteResponseUio, RoleCreateRequestUio, RoleUio, ToolApprovalUio, ToolApprovalsResponseUio } from '../models/index';
14
14
  export interface CreateOrganizationRoleRequest {
15
15
  organizationId: string;
16
16
  roleCreateRequestUio: RoleCreateRequestUio;
@@ -44,6 +44,9 @@ export interface GetOrganizationBySlugRequest {
44
44
  export interface GetOrganizationEngineRequest {
45
45
  organizationId: string;
46
46
  }
47
+ export interface GetOrganizationOcrConfigRequest {
48
+ organizationId: string;
49
+ }
47
50
  export interface InviteOrganizationUserRequest {
48
51
  organizationId: string;
49
52
  organizationUserInviteRequestUio: OrganizationUserInviteRequestUio;
@@ -62,6 +65,10 @@ export interface RevokeToolApprovalRequest {
62
65
  organizationId: string;
63
66
  approvalId: string;
64
67
  }
68
+ export interface UpdateOrganizationOcrConfigRequest {
69
+ organizationId: string;
70
+ organizationOcrConfigUpdateRequestUio: OrganizationOcrConfigUpdateRequestUio;
71
+ }
65
72
  export interface UpdateOrganizationRoleRequest {
66
73
  organizationId: string;
67
74
  roleId: string;
@@ -159,6 +166,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
159
166
  * Get an organization engine configuration
160
167
  */
161
168
  getOrganizationEngine(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationEngineUio>;
169
+ /**
170
+ * Retourne la configuration OCR (mode, providerId, modelId) de l\'organisation. Une organisation sans configuration renvoie une configuration désactivée (mode DISABLED) : l\'absence de configuration vaut OCR désactivé.
171
+ * Get an organization OCR configuration
172
+ */
173
+ getOrganizationOcrConfigRaw(requestParameters: GetOrganizationOcrConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationOcrConfigUio>>;
174
+ /**
175
+ * Retourne la configuration OCR (mode, providerId, modelId) de l\'organisation. Une organisation sans configuration renvoie une configuration désactivée (mode DISABLED) : l\'absence de configuration vaut OCR désactivé.
176
+ * Get an organization OCR configuration
177
+ */
178
+ getOrganizationOcrConfig(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationOcrConfigUio>;
162
179
  /**
163
180
  * Invite a user to an organization
164
181
  */
@@ -215,6 +232,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
215
232
  * Revoke an approval
216
233
  */
217
234
  revokeToolApproval(organizationId: string, approvalId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
235
+ /**
236
+ * Remplace la configuration OCR de l\'organisation. `mode: DISABLED` supprime la configuration. Sinon `providerId` et `modelId` sont requis, le moteur IA doit appartenir à l\'organisation, et le modèle doit porter la capacité attendue par le mode (`hasVision` pour LLM, `hasOcr` pour les modes MISTRAL_OCR_*).
237
+ * Set an organization OCR configuration
238
+ */
239
+ updateOrganizationOcrConfigRaw(requestParameters: UpdateOrganizationOcrConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationOcrConfigUio>>;
240
+ /**
241
+ * Remplace la configuration OCR de l\'organisation. `mode: DISABLED` supprime la configuration. Sinon `providerId` et `modelId` sont requis, le moteur IA doit appartenir à l\'organisation, et le modèle doit porter la capacité attendue par le mode (`hasVision` pour LLM, `hasOcr` pour les modes MISTRAL_OCR_*).
242
+ * Set an organization OCR configuration
243
+ */
244
+ updateOrganizationOcrConfig(organizationId: string, organizationOcrConfigUpdateRequestUio: OrganizationOcrConfigUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationOcrConfigUio>;
218
245
  /**
219
246
  * Updates an existing agent role in the specified organization
220
247
  * Update a role in an organization
@@ -334,6 +334,35 @@ class OrganizationsApi extends runtime.BaseAPI {
334
334
  const response = await this.getOrganizationEngineRaw({ organizationId: organizationId }, initOverrides);
335
335
  return await response.value();
336
336
  }
337
+ /**
338
+ * Retourne la configuration OCR (mode, providerId, modelId) de l\'organisation. Une organisation sans configuration renvoie une configuration désactivée (mode DISABLED) : l\'absence de configuration vaut OCR désactivé.
339
+ * Get an organization OCR configuration
340
+ */
341
+ async getOrganizationOcrConfigRaw(requestParameters, initOverrides) {
342
+ if (requestParameters['organizationId'] == null) {
343
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationOcrConfig().');
344
+ }
345
+ const queryParameters = {};
346
+ const headerParameters = {};
347
+ if (this.configuration && this.configuration.apiKey) {
348
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
349
+ }
350
+ const response = await this.request({
351
+ path: `/organizations/{organizationId}/ocr`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
352
+ method: 'GET',
353
+ headers: headerParameters,
354
+ query: queryParameters,
355
+ }, initOverrides);
356
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationOcrConfigUioFromJSON)(jsonValue));
357
+ }
358
+ /**
359
+ * Retourne la configuration OCR (mode, providerId, modelId) de l\'organisation. Une organisation sans configuration renvoie une configuration désactivée (mode DISABLED) : l\'absence de configuration vaut OCR désactivé.
360
+ * Get an organization OCR configuration
361
+ */
362
+ async getOrganizationOcrConfig(organizationId, initOverrides) {
363
+ const response = await this.getOrganizationOcrConfigRaw({ organizationId: organizationId }, initOverrides);
364
+ return await response.value();
365
+ }
337
366
  /**
338
367
  * Invite a user to an organization
339
368
  */
@@ -511,6 +540,40 @@ class OrganizationsApi extends runtime.BaseAPI {
511
540
  async revokeToolApproval(organizationId, approvalId, initOverrides) {
512
541
  await this.revokeToolApprovalRaw({ organizationId: organizationId, approvalId: approvalId }, initOverrides);
513
542
  }
543
+ /**
544
+ * Remplace la configuration OCR de l\'organisation. `mode: DISABLED` supprime la configuration. Sinon `providerId` et `modelId` sont requis, le moteur IA doit appartenir à l\'organisation, et le modèle doit porter la capacité attendue par le mode (`hasVision` pour LLM, `hasOcr` pour les modes MISTRAL_OCR_*).
545
+ * Set an organization OCR configuration
546
+ */
547
+ async updateOrganizationOcrConfigRaw(requestParameters, initOverrides) {
548
+ if (requestParameters['organizationId'] == null) {
549
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationOcrConfig().');
550
+ }
551
+ if (requestParameters['organizationOcrConfigUpdateRequestUio'] == null) {
552
+ throw new runtime.RequiredError('organizationOcrConfigUpdateRequestUio', 'Required parameter "organizationOcrConfigUpdateRequestUio" was null or undefined when calling updateOrganizationOcrConfig().');
553
+ }
554
+ const queryParameters = {};
555
+ const headerParameters = {};
556
+ headerParameters['Content-Type'] = 'application/json';
557
+ if (this.configuration && this.configuration.apiKey) {
558
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
559
+ }
560
+ const response = await this.request({
561
+ path: `/organizations/{organizationId}/ocr`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
562
+ method: 'PUT',
563
+ headers: headerParameters,
564
+ query: queryParameters,
565
+ body: (0, index_1.OrganizationOcrConfigUpdateRequestUioToJSON)(requestParameters['organizationOcrConfigUpdateRequestUio']),
566
+ }, initOverrides);
567
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationOcrConfigUioFromJSON)(jsonValue));
568
+ }
569
+ /**
570
+ * Remplace la configuration OCR de l\'organisation. `mode: DISABLED` supprime la configuration. Sinon `providerId` et `modelId` sont requis, le moteur IA doit appartenir à l\'organisation, et le modèle doit porter la capacité attendue par le mode (`hasVision` pour LLM, `hasOcr` pour les modes MISTRAL_OCR_*).
571
+ * Set an organization OCR configuration
572
+ */
573
+ async updateOrganizationOcrConfig(organizationId, organizationOcrConfigUpdateRequestUio, initOverrides) {
574
+ const response = await this.updateOrganizationOcrConfigRaw({ organizationId: organizationId, organizationOcrConfigUpdateRequestUio: organizationOcrConfigUpdateRequestUio }, initOverrides);
575
+ return await response.value();
576
+ }
514
577
  /**
515
578
  * Updates an existing agent role in the specified organization
516
579
  * Update a role in an organization
@@ -0,0 +1,63 @@
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
+ * Websocket INPUT command sent to the app when a user message arrives.
14
+ * @export
15
+ * @interface AppInputNotificationUio
16
+ */
17
+ export interface AppInputNotificationUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AppInputNotificationUio
22
+ */
23
+ type: AppInputNotificationUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AppInputNotificationUio
28
+ */
29
+ messageId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AppInputNotificationUio
34
+ */
35
+ conversationId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AppInputNotificationUio
40
+ */
41
+ text: string;
42
+ /**
43
+ * True when fillers are enabled for this turn, including when an empty filler is sent.
44
+ * @type {boolean}
45
+ * @memberof AppInputNotificationUio
46
+ */
47
+ hasFillers: boolean;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const AppInputNotificationUioTypeEnum: {
53
+ readonly Input: "INPUT";
54
+ };
55
+ export type AppInputNotificationUioTypeEnum = typeof AppInputNotificationUioTypeEnum[keyof typeof AppInputNotificationUioTypeEnum];
56
+ /**
57
+ * Check if a given object implements the AppInputNotificationUio interface.
58
+ */
59
+ export declare function instanceOfAppInputNotificationUio(value: object): value is AppInputNotificationUio;
60
+ export declare function AppInputNotificationUioFromJSON(json: any): AppInputNotificationUio;
61
+ export declare function AppInputNotificationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInputNotificationUio;
62
+ export declare function AppInputNotificationUioToJSON(json: any): AppInputNotificationUio;
63
+ export declare function AppInputNotificationUioToJSONTyped(value?: AppInputNotificationUio | 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.AppInputNotificationUioTypeEnum = void 0;
17
+ exports.instanceOfAppInputNotificationUio = instanceOfAppInputNotificationUio;
18
+ exports.AppInputNotificationUioFromJSON = AppInputNotificationUioFromJSON;
19
+ exports.AppInputNotificationUioFromJSONTyped = AppInputNotificationUioFromJSONTyped;
20
+ exports.AppInputNotificationUioToJSON = AppInputNotificationUioToJSON;
21
+ exports.AppInputNotificationUioToJSONTyped = AppInputNotificationUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AppInputNotificationUioTypeEnum = {
26
+ Input: 'INPUT'
27
+ };
28
+ /**
29
+ * Check if a given object implements the AppInputNotificationUio interface.
30
+ */
31
+ function instanceOfAppInputNotificationUio(value) {
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ if (!('messageId' in value) || value['messageId'] === undefined)
35
+ return false;
36
+ if (!('text' in value) || value['text'] === undefined)
37
+ return false;
38
+ if (!('hasFillers' in value) || value['hasFillers'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AppInputNotificationUioFromJSON(json) {
43
+ return AppInputNotificationUioFromJSONTyped(json, false);
44
+ }
45
+ function AppInputNotificationUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'type': json['type'],
51
+ 'messageId': json['messageId'],
52
+ 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
53
+ 'text': json['text'],
54
+ 'hasFillers': json['hasFillers'],
55
+ };
56
+ }
57
+ function AppInputNotificationUioToJSON(json) {
58
+ return AppInputNotificationUioToJSONTyped(json, false);
59
+ }
60
+ function AppInputNotificationUioToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'type': value['type'],
66
+ 'messageId': value['messageId'],
67
+ 'conversationId': value['conversationId'],
68
+ 'text': value['text'],
69
+ 'hasFillers': value['hasFillers'],
70
+ };
71
+ }
@@ -126,6 +126,12 @@ export interface ChatMessageUio {
126
126
  * @memberof ChatMessageUio
127
127
  */
128
128
  timestamp: string;
129
+ /**
130
+ * True when fillers are enabled for this turn, including when an empty filler is sent.
131
+ * @type {boolean}
132
+ * @memberof ChatMessageUio
133
+ */
134
+ hasFillers?: boolean;
129
135
  /**
130
136
  *
131
137
  * @type {Array<ToolActionUio>}
@@ -74,6 +74,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
74
74
  'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
75
75
  'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
76
76
  'timestamp': json['timestamp'],
77
+ 'hasFillers': json['hasFillers'] == null ? undefined : json['hasFillers'],
77
78
  'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
78
79
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
79
80
  'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
@@ -107,6 +108,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
107
108
  'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
108
109
  'flowNodeIterations': value['flowNodeIterations'],
109
110
  'timestamp': value['timestamp'],
111
+ 'hasFillers': value['hasFillers'],
110
112
  'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
111
113
  'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
112
114
  'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
@@ -63,6 +63,12 @@ export interface ModelDefinitionUio {
63
63
  * @memberof ModelDefinitionUio
64
64
  */
65
65
  hasSpeechToText?: boolean;
66
+ /**
67
+ * Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.
68
+ * @type {boolean}
69
+ * @memberof ModelDefinitionUio
70
+ */
71
+ hasOcr?: boolean;
66
72
  /**
67
73
  *
68
74
  * @type {number}
@@ -44,6 +44,7 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'hasReasoning': json['hasReasoning'] == null ? undefined : json['hasReasoning'],
45
45
  'hasEmbedding': json['hasEmbedding'] == null ? undefined : json['hasEmbedding'],
46
46
  'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
47
+ 'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
47
48
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
48
49
  'options': json['options'] == null ? undefined : json['options'],
49
50
  };
@@ -64,6 +65,7 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
64
65
  'hasReasoning': value['hasReasoning'],
65
66
  'hasEmbedding': value['hasEmbedding'],
66
67
  'hasSpeechToText': value['hasSpeechToText'],
68
+ 'hasOcr': value['hasOcr'],
67
69
  'maxTokens': value['maxTokens'],
68
70
  'options': value['options'],
69
71
  };
@@ -0,0 +1,27 @@
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
+ * Mode d'extraction de texte des documents, configuré par organisation. DISABLED : aucun OCR. LLM : relecture page par page par un modèle de vision. MISTRAL_OCR_IMAGES / MISTRAL_OCR_DOCUMENT : OCR dédié Mistral, page par page ou sur le document entier.
14
+ * @export
15
+ */
16
+ export declare const OcrModeUio: {
17
+ readonly Disabled: "DISABLED";
18
+ readonly Llm: "LLM";
19
+ readonly MistralOcrImages: "MISTRAL_OCR_IMAGES";
20
+ readonly MistralOcrDocument: "MISTRAL_OCR_DOCUMENT";
21
+ };
22
+ export type OcrModeUio = typeof OcrModeUio[keyof typeof OcrModeUio];
23
+ export declare function instanceOfOcrModeUio(value: any): boolean;
24
+ export declare function OcrModeUioFromJSON(json: any): OcrModeUio;
25
+ export declare function OcrModeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OcrModeUio;
26
+ export declare function OcrModeUioToJSON(value?: OcrModeUio | null): any;
27
+ export declare function OcrModeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): OcrModeUio;
@@ -0,0 +1,53 @@
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.OcrModeUio = void 0;
17
+ exports.instanceOfOcrModeUio = instanceOfOcrModeUio;
18
+ exports.OcrModeUioFromJSON = OcrModeUioFromJSON;
19
+ exports.OcrModeUioFromJSONTyped = OcrModeUioFromJSONTyped;
20
+ exports.OcrModeUioToJSON = OcrModeUioToJSON;
21
+ exports.OcrModeUioToJSONTyped = OcrModeUioToJSONTyped;
22
+ /**
23
+ * Mode d'extraction de texte des documents, configuré par organisation. DISABLED : aucun OCR. LLM : relecture page par page par un modèle de vision. MISTRAL_OCR_IMAGES / MISTRAL_OCR_DOCUMENT : OCR dédié Mistral, page par page ou sur le document entier.
24
+ * @export
25
+ */
26
+ exports.OcrModeUio = {
27
+ Disabled: 'DISABLED',
28
+ Llm: 'LLM',
29
+ MistralOcrImages: 'MISTRAL_OCR_IMAGES',
30
+ MistralOcrDocument: 'MISTRAL_OCR_DOCUMENT'
31
+ };
32
+ function instanceOfOcrModeUio(value) {
33
+ for (const key in exports.OcrModeUio) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.OcrModeUio, key)) {
35
+ if (exports.OcrModeUio[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function OcrModeUioFromJSON(json) {
43
+ return OcrModeUioFromJSONTyped(json, false);
44
+ }
45
+ function OcrModeUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function OcrModeUioToJSON(value) {
49
+ return value;
50
+ }
51
+ function OcrModeUioToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -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
+ import type { OcrModeUio } from './OcrModeUio';
13
+ /**
14
+ * Configuration OCR attachée à une organisation. Le mode DISABLED — ou une valeur absente là où le champ est optionnel — vaut OCR désactivé : il n'y a aucun repli sur une configuration d'environnement.
15
+ * @export
16
+ * @interface OrganizationOcrConfigUio
17
+ */
18
+ export interface OrganizationOcrConfigUio {
19
+ /**
20
+ *
21
+ * @type {OcrModeUio}
22
+ * @memberof OrganizationOcrConfigUio
23
+ */
24
+ mode: OcrModeUio;
25
+ /**
26
+ * Moteur IA de l'organisation portant le modèle d'OCR.
27
+ * @type {string}
28
+ * @memberof OrganizationOcrConfigUio
29
+ */
30
+ providerId?: string;
31
+ /**
32
+ * `modelId` du modèle chez le fournisseur (ex. "mistral-ocr-latest"), et non l'identifiant interne `ModelDefinition.id`.
33
+ * @type {string}
34
+ * @memberof OrganizationOcrConfigUio
35
+ */
36
+ modelId?: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the OrganizationOcrConfigUio interface.
40
+ */
41
+ export declare function instanceOfOrganizationOcrConfigUio(value: object): value is OrganizationOcrConfigUio;
42
+ export declare function OrganizationOcrConfigUioFromJSON(json: any): OrganizationOcrConfigUio;
43
+ export declare function OrganizationOcrConfigUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationOcrConfigUio;
44
+ export declare function OrganizationOcrConfigUioToJSON(json: any): OrganizationOcrConfigUio;
45
+ export declare function OrganizationOcrConfigUioToJSONTyped(value?: OrganizationOcrConfigUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfOrganizationOcrConfigUio = instanceOfOrganizationOcrConfigUio;
17
+ exports.OrganizationOcrConfigUioFromJSON = OrganizationOcrConfigUioFromJSON;
18
+ exports.OrganizationOcrConfigUioFromJSONTyped = OrganizationOcrConfigUioFromJSONTyped;
19
+ exports.OrganizationOcrConfigUioToJSON = OrganizationOcrConfigUioToJSON;
20
+ exports.OrganizationOcrConfigUioToJSONTyped = OrganizationOcrConfigUioToJSONTyped;
21
+ const OcrModeUio_1 = require("./OcrModeUio");
22
+ /**
23
+ * Check if a given object implements the OrganizationOcrConfigUio interface.
24
+ */
25
+ function instanceOfOrganizationOcrConfigUio(value) {
26
+ if (!('mode' in value) || value['mode'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function OrganizationOcrConfigUioFromJSON(json) {
31
+ return OrganizationOcrConfigUioFromJSONTyped(json, false);
32
+ }
33
+ function OrganizationOcrConfigUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'mode': (0, OcrModeUio_1.OcrModeUioFromJSON)(json['mode']),
39
+ 'providerId': json['providerId'] == null ? undefined : json['providerId'],
40
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
41
+ };
42
+ }
43
+ function OrganizationOcrConfigUioToJSON(json) {
44
+ return OrganizationOcrConfigUioToJSONTyped(json, false);
45
+ }
46
+ function OrganizationOcrConfigUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'mode': (0, OcrModeUio_1.OcrModeUioToJSON)(value['mode']),
52
+ 'providerId': value['providerId'],
53
+ 'modelId': value['modelId'],
54
+ };
55
+ }
@@ -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
+ import type { OcrModeUio } from './OcrModeUio';
13
+ /**
14
+ * `providerId` et `modelId` sont requis dès que `mode` vaut autre chose que DISABLED. Cette règle conditionnelle est validée côté serveur.
15
+ * @export
16
+ * @interface OrganizationOcrConfigUpdateRequestUio
17
+ */
18
+ export interface OrganizationOcrConfigUpdateRequestUio {
19
+ /**
20
+ *
21
+ * @type {OcrModeUio}
22
+ * @memberof OrganizationOcrConfigUpdateRequestUio
23
+ */
24
+ mode: OcrModeUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof OrganizationOcrConfigUpdateRequestUio
29
+ */
30
+ providerId?: string | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof OrganizationOcrConfigUpdateRequestUio
35
+ */
36
+ modelId?: string | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the OrganizationOcrConfigUpdateRequestUio interface.
40
+ */
41
+ export declare function instanceOfOrganizationOcrConfigUpdateRequestUio(value: object): value is OrganizationOcrConfigUpdateRequestUio;
42
+ export declare function OrganizationOcrConfigUpdateRequestUioFromJSON(json: any): OrganizationOcrConfigUpdateRequestUio;
43
+ export declare function OrganizationOcrConfigUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationOcrConfigUpdateRequestUio;
44
+ export declare function OrganizationOcrConfigUpdateRequestUioToJSON(json: any): OrganizationOcrConfigUpdateRequestUio;
45
+ export declare function OrganizationOcrConfigUpdateRequestUioToJSONTyped(value?: OrganizationOcrConfigUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfOrganizationOcrConfigUpdateRequestUio = instanceOfOrganizationOcrConfigUpdateRequestUio;
17
+ exports.OrganizationOcrConfigUpdateRequestUioFromJSON = OrganizationOcrConfigUpdateRequestUioFromJSON;
18
+ exports.OrganizationOcrConfigUpdateRequestUioFromJSONTyped = OrganizationOcrConfigUpdateRequestUioFromJSONTyped;
19
+ exports.OrganizationOcrConfigUpdateRequestUioToJSON = OrganizationOcrConfigUpdateRequestUioToJSON;
20
+ exports.OrganizationOcrConfigUpdateRequestUioToJSONTyped = OrganizationOcrConfigUpdateRequestUioToJSONTyped;
21
+ const OcrModeUio_1 = require("./OcrModeUio");
22
+ /**
23
+ * Check if a given object implements the OrganizationOcrConfigUpdateRequestUio interface.
24
+ */
25
+ function instanceOfOrganizationOcrConfigUpdateRequestUio(value) {
26
+ if (!('mode' in value) || value['mode'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function OrganizationOcrConfigUpdateRequestUioFromJSON(json) {
31
+ return OrganizationOcrConfigUpdateRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function OrganizationOcrConfigUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'mode': (0, OcrModeUio_1.OcrModeUioFromJSON)(json['mode']),
39
+ 'providerId': json['providerId'] == null ? undefined : json['providerId'],
40
+ 'modelId': json['modelId'] == null ? undefined : json['modelId'],
41
+ };
42
+ }
43
+ function OrganizationOcrConfigUpdateRequestUioToJSON(json) {
44
+ return OrganizationOcrConfigUpdateRequestUioToJSONTyped(json, false);
45
+ }
46
+ function OrganizationOcrConfigUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'mode': (0, OcrModeUio_1.OcrModeUioToJSON)(value['mode']),
52
+ 'providerId': value['providerId'],
53
+ 'modelId': value['modelId'],
54
+ };
55
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { OrganizationEngineUio } from './OrganizationEngineUio';
13
13
  import type { OrganizationUserUio } from './OrganizationUserUio';
14
+ import type { OrganizationOcrConfigUio } from './OrganizationOcrConfigUio';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -41,6 +42,12 @@ export interface OrganizationUio {
41
42
  * @memberof OrganizationUio
42
43
  */
43
44
  engine?: OrganizationEngineUio | null;
45
+ /**
46
+ *
47
+ * @type {OrganizationOcrConfigUio}
48
+ * @memberof OrganizationUio
49
+ */
50
+ ocr?: OrganizationOcrConfigUio | null;
44
51
  /**
45
52
  *
46
53
  * @type {Array<OrganizationUserUio>}
@@ -20,6 +20,7 @@ exports.OrganizationUioToJSON = OrganizationUioToJSON;
20
20
  exports.OrganizationUioToJSONTyped = OrganizationUioToJSONTyped;
21
21
  const OrganizationEngineUio_1 = require("./OrganizationEngineUio");
22
22
  const OrganizationUserUio_1 = require("./OrganizationUserUio");
23
+ const OrganizationOcrConfigUio_1 = require("./OrganizationOcrConfigUio");
23
24
  /**
24
25
  * Check if a given object implements the OrganizationUio interface.
25
26
  */
@@ -44,6 +45,7 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'name': json['name'],
45
46
  'slug': json['slug'],
46
47
  'engine': json['engine'] == null ? undefined : (0, OrganizationEngineUio_1.OrganizationEngineUioFromJSON)(json['engine']),
48
+ 'ocr': json['ocr'] == null ? undefined : (0, OrganizationOcrConfigUio_1.OrganizationOcrConfigUioFromJSON)(json['ocr']),
47
49
  'users': json['users'] == null ? undefined : (json['users'].map(OrganizationUserUio_1.OrganizationUserUioFromJSON)),
48
50
  };
49
51
  }
@@ -59,6 +61,7 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
59
61
  'name': value['name'],
60
62
  'slug': value['slug'],
61
63
  'engine': (0, OrganizationEngineUio_1.OrganizationEngineUioToJSON)(value['engine']),
64
+ 'ocr': (0, OrganizationOcrConfigUio_1.OrganizationOcrConfigUioToJSON)(value['ocr']),
62
65
  'users': value['users'] == null ? undefined : (value['users'].map(OrganizationUserUio_1.OrganizationUserUioToJSON)),
63
66
  };
64
67
  }
@@ -111,6 +111,7 @@ export * from './AppConfigurationUio';
111
111
  export * from './AppCreateRequestEphemeralInstancesUio';
112
112
  export * from './AppCreateRequestUio';
113
113
  export * from './AppFlowCreateRequestUio';
114
+ export * from './AppInputNotificationUio';
114
115
  export * from './AppInstanceCreateRequestOneOfUio';
115
116
  export * from './AppInstanceCreateRequestUio';
116
117
  export * from './AppInstanceEphemeralCreateRequestUio';
@@ -316,6 +317,7 @@ export * from './MetricsUsersResponseUio';
316
317
  export * from './ModelAgentUio';
317
318
  export * from './ModelDefinitionUio';
318
319
  export * from './ModelUio';
320
+ export * from './OcrModeUio';
319
321
  export * from './OpenAiChatCompletionRequestStreamOptionsUio';
320
322
  export * from './OpenAiChatCompletionRequestUio';
321
323
  export * from './OpenAiChatCompletionResponseUio';
@@ -325,6 +327,8 @@ export * from './OrgUsageTimeSeriesPointUio';
325
327
  export * from './OrganizationEngineUio';
326
328
  export * from './OrganizationMemberUio';
327
329
  export * from './OrganizationMemberUserUio';
330
+ export * from './OrganizationOcrConfigUio';
331
+ export * from './OrganizationOcrConfigUpdateRequestUio';
328
332
  export * from './OrganizationUio';
329
333
  export * from './OrganizationUserInviteRequestUio';
330
334
  export * from './OrganizationUserInviteResponseUio';
@@ -129,6 +129,7 @@ __exportStar(require("./AppConfigurationUio"), exports);
129
129
  __exportStar(require("./AppCreateRequestEphemeralInstancesUio"), exports);
130
130
  __exportStar(require("./AppCreateRequestUio"), exports);
131
131
  __exportStar(require("./AppFlowCreateRequestUio"), exports);
132
+ __exportStar(require("./AppInputNotificationUio"), exports);
132
133
  __exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
133
134
  __exportStar(require("./AppInstanceCreateRequestUio"), exports);
134
135
  __exportStar(require("./AppInstanceEphemeralCreateRequestUio"), exports);
@@ -334,6 +335,7 @@ __exportStar(require("./MetricsUsersResponseUio"), exports);
334
335
  __exportStar(require("./ModelAgentUio"), exports);
335
336
  __exportStar(require("./ModelDefinitionUio"), exports);
336
337
  __exportStar(require("./ModelUio"), exports);
338
+ __exportStar(require("./OcrModeUio"), exports);
337
339
  __exportStar(require("./OpenAiChatCompletionRequestStreamOptionsUio"), exports);
338
340
  __exportStar(require("./OpenAiChatCompletionRequestUio"), exports);
339
341
  __exportStar(require("./OpenAiChatCompletionResponseUio"), exports);
@@ -343,6 +345,8 @@ __exportStar(require("./OrgUsageTimeSeriesPointUio"), exports);
343
345
  __exportStar(require("./OrganizationEngineUio"), exports);
344
346
  __exportStar(require("./OrganizationMemberUio"), exports);
345
347
  __exportStar(require("./OrganizationMemberUserUio"), exports);
348
+ __exportStar(require("./OrganizationOcrConfigUio"), exports);
349
+ __exportStar(require("./OrganizationOcrConfigUpdateRequestUio"), exports);
346
350
  __exportStar(require("./OrganizationUio"), exports);
347
351
  __exportStar(require("./OrganizationUserInviteRequestUio"), exports);
348
352
  __exportStar(require("./OrganizationUserInviteResponseUio"), exports);
package/dist/openapi.json CHANGED
@@ -8094,6 +8094,99 @@
8094
8094
  "tags" : [ "organizations" ]
8095
8095
  }
8096
8096
  },
8097
+ "/organizations/{organizationId}/ocr" : {
8098
+ "get" : {
8099
+ "description" : "Retourne la configuration OCR (mode, providerId, modelId) de l'organisation. Une organisation sans configuration renvoie une configuration désactivée (mode DISABLED) : l'absence de configuration vaut OCR désactivé.",
8100
+ "operationId" : "getOrganizationOcrConfig",
8101
+ "parameters" : [ {
8102
+ "description" : "ID of the organization",
8103
+ "in" : "path",
8104
+ "name" : "organizationId",
8105
+ "required" : true,
8106
+ "schema" : {
8107
+ "type" : "string"
8108
+ }
8109
+ } ],
8110
+ "responses" : {
8111
+ "200" : {
8112
+ "content" : {
8113
+ "application/json" : {
8114
+ "schema" : {
8115
+ "$ref" : "#/components/schemas/OrganizationOcrConfig"
8116
+ }
8117
+ }
8118
+ },
8119
+ "description" : "OCR configuration, or { mode: DISABLED } when not configured"
8120
+ },
8121
+ "401" : {
8122
+ "description" : "Unauthorized"
8123
+ },
8124
+ "403" : {
8125
+ "description" : "Forbidden - User doesn't have permission"
8126
+ },
8127
+ "404" : {
8128
+ "description" : "Organization not found"
8129
+ },
8130
+ "500" : {
8131
+ "description" : "Server error"
8132
+ }
8133
+ },
8134
+ "summary" : "Get an organization OCR configuration",
8135
+ "tags" : [ "organizations" ]
8136
+ },
8137
+ "put" : {
8138
+ "description" : "Remplace la configuration OCR de l'organisation. `mode: DISABLED` supprime la configuration. Sinon `providerId` et `modelId` sont requis, le moteur IA doit appartenir à l'organisation, et le modèle doit porter la capacité attendue par le mode (`hasVision` pour LLM, `hasOcr` pour les modes MISTRAL_OCR_*).",
8139
+ "operationId" : "updateOrganizationOcrConfig",
8140
+ "parameters" : [ {
8141
+ "description" : "ID of the organization",
8142
+ "in" : "path",
8143
+ "name" : "organizationId",
8144
+ "required" : true,
8145
+ "schema" : {
8146
+ "type" : "string"
8147
+ }
8148
+ } ],
8149
+ "requestBody" : {
8150
+ "content" : {
8151
+ "application/json" : {
8152
+ "schema" : {
8153
+ "$ref" : "#/components/schemas/OrganizationOcrConfigUpdateRequest"
8154
+ }
8155
+ }
8156
+ },
8157
+ "required" : true
8158
+ },
8159
+ "responses" : {
8160
+ "200" : {
8161
+ "content" : {
8162
+ "application/json" : {
8163
+ "schema" : {
8164
+ "$ref" : "#/components/schemas/OrganizationOcrConfig"
8165
+ }
8166
+ }
8167
+ },
8168
+ "description" : "OCR configuration updated, or { mode: DISABLED } when disabled"
8169
+ },
8170
+ "400" : {
8171
+ "description" : "Invalid configuration (missing model, or model lacking the required capability)"
8172
+ },
8173
+ "401" : {
8174
+ "description" : "Unauthorized"
8175
+ },
8176
+ "403" : {
8177
+ "description" : "Forbidden - User doesn't have permission"
8178
+ },
8179
+ "404" : {
8180
+ "description" : "Organization not found"
8181
+ },
8182
+ "500" : {
8183
+ "description" : "Server error"
8184
+ }
8185
+ },
8186
+ "summary" : "Set an organization OCR configuration",
8187
+ "tags" : [ "organizations" ]
8188
+ }
8189
+ },
8097
8190
  "/organizations/{organizationId}/agents/{agentId}" : {
8098
8191
  "get" : {
8099
8192
  "description" : "Retrieves metrics for a brain agent",
@@ -15607,6 +15700,30 @@
15607
15700
  "required" : [ "defaultLanguage", "description", "engine", "id", "isParent", "name", "organisationId", "persona", "role" ],
15608
15701
  "type" : "object"
15609
15702
  },
15703
+ "AppInputNotification" : {
15704
+ "description" : "Websocket INPUT command sent to the app when a user message arrives.",
15705
+ "properties" : {
15706
+ "type" : {
15707
+ "enum" : [ "INPUT" ],
15708
+ "type" : "string"
15709
+ },
15710
+ "messageId" : {
15711
+ "type" : "string"
15712
+ },
15713
+ "conversationId" : {
15714
+ "type" : "string"
15715
+ },
15716
+ "text" : {
15717
+ "type" : "string"
15718
+ },
15719
+ "hasFillers" : {
15720
+ "description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
15721
+ "type" : "boolean"
15722
+ }
15723
+ },
15724
+ "required" : [ "hasFillers", "messageId", "text", "type" ],
15725
+ "type" : "object"
15726
+ },
15610
15727
  "HealthCheckResponse" : {
15611
15728
  "properties" : {
15612
15729
  "status" : {
@@ -17167,6 +17284,10 @@
17167
17284
  "timestamp" : {
17168
17285
  "type" : "string"
17169
17286
  },
17287
+ "hasFillers" : {
17288
+ "description" : "True when fillers are enabled for this turn, including when an empty filler is sent.",
17289
+ "type" : "boolean"
17290
+ },
17170
17291
  "actions" : {
17171
17292
  "items" : {
17172
17293
  "$ref" : "#/components/schemas/ToolAction"
@@ -19417,6 +19538,10 @@
19417
19538
  "hasSpeechToText" : {
19418
19539
  "type" : "boolean"
19419
19540
  },
19541
+ "hasOcr" : {
19542
+ "description" : "Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.",
19543
+ "type" : "boolean"
19544
+ },
19420
19545
  "maxTokens" : {
19421
19546
  "minimum" : 1,
19422
19547
  "type" : "integer"
@@ -19860,6 +19985,9 @@
19860
19985
  "engine" : {
19861
19986
  "$ref" : "#/components/schemas/OrganizationEngine"
19862
19987
  },
19988
+ "ocr" : {
19989
+ "$ref" : "#/components/schemas/OrganizationOcrConfig"
19990
+ },
19863
19991
  "users" : {
19864
19992
  "items" : {
19865
19993
  "$ref" : "#/components/schemas/OrganizationUser"
@@ -19977,6 +20105,45 @@
19977
20105
  },
19978
20106
  "type" : "object"
19979
20107
  },
20108
+ "OrganizationOcrConfig" : {
20109
+ "additionalProperties" : false,
20110
+ "description" : "Configuration OCR attachée à une organisation. Le mode DISABLED — ou une valeur absente là où le champ est optionnel — vaut OCR désactivé : il n'y a aucun repli sur une configuration d'environnement.",
20111
+ "nullable" : true,
20112
+ "properties" : {
20113
+ "mode" : {
20114
+ "$ref" : "#/components/schemas/OcrMode"
20115
+ },
20116
+ "providerId" : {
20117
+ "description" : "Moteur IA de l'organisation portant le modèle d'OCR.",
20118
+ "type" : "string"
20119
+ },
20120
+ "modelId" : {
20121
+ "description" : "`modelId` du modèle chez le fournisseur (ex. \"mistral-ocr-latest\"), et non l'identifiant interne `ModelDefinition.id`.",
20122
+ "type" : "string"
20123
+ }
20124
+ },
20125
+ "required" : [ "mode" ],
20126
+ "type" : "object"
20127
+ },
20128
+ "OrganizationOcrConfigUpdateRequest" : {
20129
+ "additionalProperties" : false,
20130
+ "description" : "`providerId` et `modelId` sont requis dès que `mode` vaut autre chose que DISABLED. Cette règle conditionnelle est validée côté serveur.",
20131
+ "properties" : {
20132
+ "mode" : {
20133
+ "$ref" : "#/components/schemas/OcrMode"
20134
+ },
20135
+ "providerId" : {
20136
+ "nullable" : true,
20137
+ "type" : "string"
20138
+ },
20139
+ "modelId" : {
20140
+ "nullable" : true,
20141
+ "type" : "string"
20142
+ }
20143
+ },
20144
+ "required" : [ "mode" ],
20145
+ "type" : "object"
20146
+ },
19980
20147
  "MetricsBrainsAgentResponse" : {
19981
20148
  "properties" : {
19982
20149
  "conversationCount" : {
@@ -23326,6 +23493,11 @@
23326
23493
  },
23327
23494
  "type" : "object"
23328
23495
  },
23496
+ "OcrMode" : {
23497
+ "description" : "Mode d'extraction de texte des documents, configuré par organisation. DISABLED : aucun OCR. LLM : relecture page par page par un modèle de vision. MISTRAL_OCR_IMAGES / MISTRAL_OCR_DOCUMENT : OCR dédié Mistral, page par page ou sur le document entier.",
23498
+ "enum" : [ "DISABLED", "LLM", "MISTRAL_OCR_IMAGES", "MISTRAL_OCR_DOCUMENT" ],
23499
+ "type" : "string"
23500
+ },
23329
23501
  "TextToSpeechProvider" : {
23330
23502
  "enum" : [ "ELEVENLABS" ],
23331
23503
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.144",
3
+ "version": "1.0.146",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",