@breign/db-schemas 0.1.78 → 0.1.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/engine.d.ts
CHANGED
|
@@ -7,8 +7,11 @@ export type Provider = {
|
|
|
7
7
|
apiKey: string;
|
|
8
8
|
endpoint?: string;
|
|
9
9
|
createdAt: Date;
|
|
10
|
-
|
|
10
|
+
/** Null pour un moteur plateforme, dont la clé appartient à Breign. */
|
|
11
|
+
organizationId: string | null;
|
|
11
12
|
providerSource?: ProviderSource;
|
|
13
|
+
/** Moteur configuré par un superadmin et proposé aux organisations autorisées. */
|
|
14
|
+
isPlatform?: boolean;
|
|
12
15
|
};
|
|
13
16
|
export type ProviderSource = 'INTERNAL' | 'EXTERNAL';
|
|
14
17
|
export type ProviderSimple = Pick<Provider, 'id' | 'name' | 'providerType' | 'models'>;
|
|
@@ -11,6 +11,8 @@ export type Organization = {
|
|
|
11
11
|
};
|
|
12
12
|
/** Configuration OCR de l'organisation. Absente ⇒ OCR désactivé. */
|
|
13
13
|
ocr?: OrganizationOcrConfig | null;
|
|
14
|
+
/** L'organisation peut choisir les moteurs plateforme (clé Breign). */
|
|
15
|
+
allowPlatformEngines?: boolean;
|
|
14
16
|
users: {
|
|
15
17
|
id: string;
|
|
16
18
|
role: 'admin' | 'user' | string;
|
package/package.json
CHANGED
package/src/types/engine.ts
CHANGED
|
@@ -8,8 +8,11 @@ export type Provider = {
|
|
|
8
8
|
apiKey: string;
|
|
9
9
|
endpoint?: string; // TODO: mandatory ?
|
|
10
10
|
createdAt: Date;
|
|
11
|
-
|
|
11
|
+
/** Null pour un moteur plateforme, dont la clé appartient à Breign. */
|
|
12
|
+
organizationId: string | null;
|
|
12
13
|
providerSource?: ProviderSource;
|
|
14
|
+
/** Moteur configuré par un superadmin et proposé aux organisations autorisées. */
|
|
15
|
+
isPlatform?: boolean;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
export type ProviderSource = 'INTERNAL' | 'EXTERNAL';
|
|
@@ -12,6 +12,8 @@ export type Organization = {
|
|
|
12
12
|
};
|
|
13
13
|
/** Configuration OCR de l'organisation. Absente ⇒ OCR désactivé. */
|
|
14
14
|
ocr?: OrganizationOcrConfig | null;
|
|
15
|
+
/** L'organisation peut choisir les moteurs plateforme (clé Breign). */
|
|
16
|
+
allowPlatformEngines?: boolean;
|
|
15
17
|
users: {
|
|
16
18
|
id: string;
|
|
17
19
|
role: 'admin' | 'user' | string;
|