@breign/client 1.0.181 → 1.0.183
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/apis/AdminApi.d.ts +46 -10
- package/dist/apis/AdminApi.js +101 -15
- package/dist/apis/EngineApi.d.ts +43 -1
- package/dist/apis/EngineApi.js +100 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +7 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +3 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +1 -1
- package/dist/models/AiGatewaySettingsUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUio.js +3 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +3 -0
- package/dist/models/AiGatewayUserBudgetUio.d.ts +58 -0
- package/dist/models/AiGatewayUserBudgetUio.js +67 -0
- package/dist/models/ModelDefinitionUio.d.ts +1 -1
- package/dist/models/ModelUserAccessUio.d.ts +50 -0
- package/dist/models/ModelUserAccessUio.js +62 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.d.ts +56 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.js +66 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +7 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +5 -0
- package/dist/models/OrganizationModelAccessUio.d.ts +33 -0
- package/dist/models/OrganizationModelAccessUio.js +51 -0
- package/dist/models/OrganizationUio.d.ts +0 -6
- package/dist/models/OrganizationUio.js +0 -2
- package/dist/models/PlatformEngineAccessModelsInnerUio.d.ts +38 -0
- package/dist/models/PlatformEngineAccessModelsInnerUio.js +54 -0
- package/dist/models/PlatformEngineAccessUio.d.ts +33 -0
- package/dist/models/PlatformEngineAccessUio.js +51 -0
- package/dist/models/SetModelUserAccessUio.d.ts +44 -0
- package/dist/models/SetModelUserAccessUio.js +58 -0
- package/dist/models/TokenPriceSuggestionRequestUio.d.ts +39 -0
- package/dist/models/TokenPriceSuggestionRequestUio.js +55 -0
- package/dist/models/TokenPriceSuggestionUio.d.ts +70 -0
- package/dist/models/TokenPriceSuggestionUio.js +72 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/openapi.json +482 -59
- package/package.json +1 -1
- package/dist/models/AllowPlatformEnginesUio.d.ts +0 -32
- package/dist/models/AllowPlatformEnginesUio.js +0 -50
|
@@ -0,0 +1,58 @@
|
|
|
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 AiGatewayUserBudgetUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayUserBudgetUio {
|
|
18
|
+
/**
|
|
19
|
+
* Breign user id this budget applies to, or `*` for every user (each one separately). A budget on a specific user overrides the `*` one for that user.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayUserBudgetUio
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Budget en euros pour la période, tous modèles à clé propre de l'organisation confondus. Une consommation sans prix en euros n'y compte pas.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AiGatewayUserBudgetUio
|
|
28
|
+
*/
|
|
29
|
+
amount: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiGatewayUserBudgetUio
|
|
34
|
+
*/
|
|
35
|
+
period: AiGatewayUserBudgetUioPeriodEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Euros déjà consommés sur la période en cours (réponse seulement). Absent pour `*` : chaque utilisateur a sa propre consommation.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AiGatewayUserBudgetUio
|
|
40
|
+
*/
|
|
41
|
+
readonly used?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AiGatewayUserBudgetUioPeriodEnum: {
|
|
47
|
+
readonly Day: "day";
|
|
48
|
+
readonly Month: "month";
|
|
49
|
+
};
|
|
50
|
+
export type AiGatewayUserBudgetUioPeriodEnum = typeof AiGatewayUserBudgetUioPeriodEnum[keyof typeof AiGatewayUserBudgetUioPeriodEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AiGatewayUserBudgetUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAiGatewayUserBudgetUio(value: object): value is AiGatewayUserBudgetUio;
|
|
55
|
+
export declare function AiGatewayUserBudgetUioFromJSON(json: any): AiGatewayUserBudgetUio;
|
|
56
|
+
export declare function AiGatewayUserBudgetUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUserBudgetUio;
|
|
57
|
+
export declare function AiGatewayUserBudgetUioToJSON(json: any): AiGatewayUserBudgetUio;
|
|
58
|
+
export declare function AiGatewayUserBudgetUioToJSONTyped(value?: Omit<AiGatewayUserBudgetUio, 'used'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.AiGatewayUserBudgetUioPeriodEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayUserBudgetUio = instanceOfAiGatewayUserBudgetUio;
|
|
18
|
+
exports.AiGatewayUserBudgetUioFromJSON = AiGatewayUserBudgetUioFromJSON;
|
|
19
|
+
exports.AiGatewayUserBudgetUioFromJSONTyped = AiGatewayUserBudgetUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayUserBudgetUioToJSON = AiGatewayUserBudgetUioToJSON;
|
|
21
|
+
exports.AiGatewayUserBudgetUioToJSONTyped = AiGatewayUserBudgetUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewayUserBudgetUioPeriodEnum = {
|
|
26
|
+
Day: 'day',
|
|
27
|
+
Month: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AiGatewayUserBudgetUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAiGatewayUserBudgetUio(value) {
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('period' in value) || value['period'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayUserBudgetUioFromJSON(json) {
|
|
42
|
+
return AiGatewayUserBudgetUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayUserBudgetUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'userId': json['userId'],
|
|
50
|
+
'amount': json['amount'],
|
|
51
|
+
'period': json['period'],
|
|
52
|
+
'used': json['used'] == null ? undefined : json['used'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayUserBudgetUioToJSON(json) {
|
|
56
|
+
return AiGatewayUserBudgetUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AiGatewayUserBudgetUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'userId': value['userId'],
|
|
64
|
+
'amount': value['amount'],
|
|
65
|
+
'period': value['period'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -76,7 +76,7 @@ export interface ModelDefinitionUio {
|
|
|
76
76
|
*/
|
|
77
77
|
maxTokens?: number;
|
|
78
78
|
/**
|
|
79
|
-
* Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme.
|
|
79
|
+
* Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme, ou par l'admin d'organisation sur ses moteurs à clé propre (compté dans les budgets en euros).
|
|
80
80
|
* @type {number}
|
|
81
81
|
* @memberof ModelDefinitionUio
|
|
82
82
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Restriction d'un modèle à certains membres d'une organisation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelUserAccessUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelUserAccessUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelUserAccessUio
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelUserAccessUio
|
|
28
|
+
*/
|
|
29
|
+
modelId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Vrai ⇒ seuls `userIds` et les admins de l'organisation peuvent utiliser le modèle.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ModelUserAccessUio
|
|
34
|
+
*/
|
|
35
|
+
restrictToUsers: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof ModelUserAccessUio
|
|
40
|
+
*/
|
|
41
|
+
userIds: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ModelUserAccessUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfModelUserAccessUio(value: object): value is ModelUserAccessUio;
|
|
47
|
+
export declare function ModelUserAccessUioFromJSON(json: any): ModelUserAccessUio;
|
|
48
|
+
export declare function ModelUserAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelUserAccessUio;
|
|
49
|
+
export declare function ModelUserAccessUioToJSON(json: any): ModelUserAccessUio;
|
|
50
|
+
export declare function ModelUserAccessUioToJSONTyped(value?: ModelUserAccessUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfModelUserAccessUio = instanceOfModelUserAccessUio;
|
|
17
|
+
exports.ModelUserAccessUioFromJSON = ModelUserAccessUioFromJSON;
|
|
18
|
+
exports.ModelUserAccessUioFromJSONTyped = ModelUserAccessUioFromJSONTyped;
|
|
19
|
+
exports.ModelUserAccessUioToJSON = ModelUserAccessUioToJSON;
|
|
20
|
+
exports.ModelUserAccessUioToJSONTyped = ModelUserAccessUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelUserAccessUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelUserAccessUio(value) {
|
|
25
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('modelId' in value) || value['modelId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('restrictToUsers' in value) || value['restrictToUsers'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userIds' in value) || value['userIds'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ModelUserAccessUioFromJSON(json) {
|
|
36
|
+
return ModelUserAccessUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ModelUserAccessUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'providerId': json['providerId'],
|
|
44
|
+
'modelId': json['modelId'],
|
|
45
|
+
'restrictToUsers': json['restrictToUsers'],
|
|
46
|
+
'userIds': json['userIds'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ModelUserAccessUioToJSON(json) {
|
|
50
|
+
return ModelUserAccessUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ModelUserAccessUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'providerId': value['providerId'],
|
|
58
|
+
'modelId': value['modelId'],
|
|
59
|
+
'restrictToUsers': value['restrictToUsers'],
|
|
60
|
+
'userIds': value['userIds'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 OrganisationPlatformEngineUsageModelsInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganisationPlatformEngineUsageModelsInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganisationPlatformEngineUsageModelsInnerUio
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrganisationPlatformEngineUsageModelsInnerUio
|
|
28
|
+
*/
|
|
29
|
+
modelId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OrganisationPlatformEngineUsageModelsInnerUio
|
|
34
|
+
*/
|
|
35
|
+
agents: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof OrganisationPlatformEngineUsageModelsInnerUio
|
|
40
|
+
*/
|
|
41
|
+
defaultEngine: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Bases de connaissances indexées avec ce modèle d'embedding.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof OrganisationPlatformEngineUsageModelsInnerUio
|
|
46
|
+
*/
|
|
47
|
+
knowledgeBases: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the OrganisationPlatformEngineUsageModelsInnerUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfOrganisationPlatformEngineUsageModelsInnerUio(value: object): value is OrganisationPlatformEngineUsageModelsInnerUio;
|
|
53
|
+
export declare function OrganisationPlatformEngineUsageModelsInnerUioFromJSON(json: any): OrganisationPlatformEngineUsageModelsInnerUio;
|
|
54
|
+
export declare function OrganisationPlatformEngineUsageModelsInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganisationPlatformEngineUsageModelsInnerUio;
|
|
55
|
+
export declare function OrganisationPlatformEngineUsageModelsInnerUioToJSON(json: any): OrganisationPlatformEngineUsageModelsInnerUio;
|
|
56
|
+
export declare function OrganisationPlatformEngineUsageModelsInnerUioToJSONTyped(value?: OrganisationPlatformEngineUsageModelsInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfOrganisationPlatformEngineUsageModelsInnerUio = instanceOfOrganisationPlatformEngineUsageModelsInnerUio;
|
|
17
|
+
exports.OrganisationPlatformEngineUsageModelsInnerUioFromJSON = OrganisationPlatformEngineUsageModelsInnerUioFromJSON;
|
|
18
|
+
exports.OrganisationPlatformEngineUsageModelsInnerUioFromJSONTyped = OrganisationPlatformEngineUsageModelsInnerUioFromJSONTyped;
|
|
19
|
+
exports.OrganisationPlatformEngineUsageModelsInnerUioToJSON = OrganisationPlatformEngineUsageModelsInnerUioToJSON;
|
|
20
|
+
exports.OrganisationPlatformEngineUsageModelsInnerUioToJSONTyped = OrganisationPlatformEngineUsageModelsInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrganisationPlatformEngineUsageModelsInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrganisationPlatformEngineUsageModelsInnerUio(value) {
|
|
25
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('modelId' in value) || value['modelId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('agents' in value) || value['agents'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('defaultEngine' in value) || value['defaultEngine'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('knowledgeBases' in value) || value['knowledgeBases'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function OrganisationPlatformEngineUsageModelsInnerUioFromJSON(json) {
|
|
38
|
+
return OrganisationPlatformEngineUsageModelsInnerUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function OrganisationPlatformEngineUsageModelsInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'providerId': json['providerId'],
|
|
46
|
+
'modelId': json['modelId'],
|
|
47
|
+
'agents': json['agents'],
|
|
48
|
+
'defaultEngine': json['defaultEngine'],
|
|
49
|
+
'knowledgeBases': json['knowledgeBases'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function OrganisationPlatformEngineUsageModelsInnerUioToJSON(json) {
|
|
53
|
+
return OrganisationPlatformEngineUsageModelsInnerUioToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function OrganisationPlatformEngineUsageModelsInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'providerId': value['providerId'],
|
|
61
|
+
'modelId': value['modelId'],
|
|
62
|
+
'agents': value['agents'],
|
|
63
|
+
'defaultEngine': value['defaultEngine'],
|
|
64
|
+
'knowledgeBases': value['knowledgeBases'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrganisationPlatformEngineUsageModelsInnerUio } from './OrganisationPlatformEngineUsageModelsInnerUio';
|
|
12
13
|
/**
|
|
13
14
|
* Ce qu'une organisation perd si on lui retire les moteurs plateforme.
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface OrganisationPlatformEngineUsageUio {
|
|
|
33
34
|
* @memberof OrganisationPlatformEngineUsageUio
|
|
34
35
|
*/
|
|
35
36
|
knowledgeBases: number;
|
|
37
|
+
/**
|
|
38
|
+
* Le même usage, modèle par modèle.
|
|
39
|
+
* @type {Array<OrganisationPlatformEngineUsageModelsInnerUio>}
|
|
40
|
+
* @memberof OrganisationPlatformEngineUsageUio
|
|
41
|
+
*/
|
|
42
|
+
models: Array<OrganisationPlatformEngineUsageModelsInnerUio>;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Check if a given object implements the OrganisationPlatformEngineUsageUio interface.
|
|
@@ -18,6 +18,7 @@ exports.OrganisationPlatformEngineUsageUioFromJSON = OrganisationPlatformEngineU
|
|
|
18
18
|
exports.OrganisationPlatformEngineUsageUioFromJSONTyped = OrganisationPlatformEngineUsageUioFromJSONTyped;
|
|
19
19
|
exports.OrganisationPlatformEngineUsageUioToJSON = OrganisationPlatformEngineUsageUioToJSON;
|
|
20
20
|
exports.OrganisationPlatformEngineUsageUioToJSONTyped = OrganisationPlatformEngineUsageUioToJSONTyped;
|
|
21
|
+
const OrganisationPlatformEngineUsageModelsInnerUio_1 = require("./OrganisationPlatformEngineUsageModelsInnerUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the OrganisationPlatformEngineUsageUio interface.
|
|
23
24
|
*/
|
|
@@ -28,6 +29,8 @@ function instanceOfOrganisationPlatformEngineUsageUio(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('knowledgeBases' in value) || value['knowledgeBases'] === undefined)
|
|
30
31
|
return false;
|
|
32
|
+
if (!('models' in value) || value['models'] === undefined)
|
|
33
|
+
return false;
|
|
31
34
|
return true;
|
|
32
35
|
}
|
|
33
36
|
function OrganisationPlatformEngineUsageUioFromJSON(json) {
|
|
@@ -41,6 +44,7 @@ function OrganisationPlatformEngineUsageUioFromJSONTyped(json, ignoreDiscriminat
|
|
|
41
44
|
'agents': json['agents'],
|
|
42
45
|
'defaultEngine': json['defaultEngine'],
|
|
43
46
|
'knowledgeBases': json['knowledgeBases'],
|
|
47
|
+
'models': (json['models'].map(OrganisationPlatformEngineUsageModelsInnerUio_1.OrganisationPlatformEngineUsageModelsInnerUioFromJSON)),
|
|
44
48
|
};
|
|
45
49
|
}
|
|
46
50
|
function OrganisationPlatformEngineUsageUioToJSON(json) {
|
|
@@ -54,5 +58,6 @@ function OrganisationPlatformEngineUsageUioToJSONTyped(value, ignoreDiscriminato
|
|
|
54
58
|
'agents': value['agents'],
|
|
55
59
|
'defaultEngine': value['defaultEngine'],
|
|
56
60
|
'knowledgeBases': value['knowledgeBases'],
|
|
61
|
+
'models': (value['models'].map(OrganisationPlatformEngineUsageModelsInnerUio_1.OrganisationPlatformEngineUsageModelsInnerUioToJSON)),
|
|
57
62
|
};
|
|
58
63
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ModelUserAccessUio } from './ModelUserAccessUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationModelAccessUio
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationModelAccessUio {
|
|
19
|
+
/**
|
|
20
|
+
* Seuls les modèles restreints, ou l'ayant été, figurent ici. Absent ⇒ tous les membres.
|
|
21
|
+
* @type {Array<ModelUserAccessUio>}
|
|
22
|
+
* @memberof OrganizationModelAccessUio
|
|
23
|
+
*/
|
|
24
|
+
rules: Array<ModelUserAccessUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the OrganizationModelAccessUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfOrganizationModelAccessUio(value: object): value is OrganizationModelAccessUio;
|
|
30
|
+
export declare function OrganizationModelAccessUioFromJSON(json: any): OrganizationModelAccessUio;
|
|
31
|
+
export declare function OrganizationModelAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationModelAccessUio;
|
|
32
|
+
export declare function OrganizationModelAccessUioToJSON(json: any): OrganizationModelAccessUio;
|
|
33
|
+
export declare function OrganizationModelAccessUioToJSONTyped(value?: OrganizationModelAccessUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfOrganizationModelAccessUio = instanceOfOrganizationModelAccessUio;
|
|
17
|
+
exports.OrganizationModelAccessUioFromJSON = OrganizationModelAccessUioFromJSON;
|
|
18
|
+
exports.OrganizationModelAccessUioFromJSONTyped = OrganizationModelAccessUioFromJSONTyped;
|
|
19
|
+
exports.OrganizationModelAccessUioToJSON = OrganizationModelAccessUioToJSON;
|
|
20
|
+
exports.OrganizationModelAccessUioToJSONTyped = OrganizationModelAccessUioToJSONTyped;
|
|
21
|
+
const ModelUserAccessUio_1 = require("./ModelUserAccessUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OrganizationModelAccessUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOrganizationModelAccessUio(value) {
|
|
26
|
+
if (!('rules' in value) || value['rules'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function OrganizationModelAccessUioFromJSON(json) {
|
|
31
|
+
return OrganizationModelAccessUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function OrganizationModelAccessUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'rules': (json['rules'].map(ModelUserAccessUio_1.ModelUserAccessUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OrganizationModelAccessUioToJSON(json) {
|
|
42
|
+
return OrganizationModelAccessUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OrganizationModelAccessUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'rules': (value['rules'].map(ModelUserAccessUio_1.ModelUserAccessUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -48,12 +48,6 @@ export interface OrganizationUio {
|
|
|
48
48
|
* @memberof OrganizationUio
|
|
49
49
|
*/
|
|
50
50
|
ocr?: OrganizationOcrConfigUio | null;
|
|
51
|
-
/**
|
|
52
|
-
* L'organisation peut choisir les moteurs plateforme Breign.
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof OrganizationUio
|
|
55
|
-
*/
|
|
56
|
-
allowPlatformEngines?: boolean;
|
|
57
51
|
/**
|
|
58
52
|
*
|
|
59
53
|
* @type {Array<OrganizationUserUio>}
|
|
@@ -46,7 +46,6 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'slug': json['slug'],
|
|
47
47
|
'engine': json['engine'] == null ? undefined : (0, OrganizationEngineUio_1.OrganizationEngineUioFromJSON)(json['engine']),
|
|
48
48
|
'ocr': json['ocr'] == null ? undefined : (0, OrganizationOcrConfigUio_1.OrganizationOcrConfigUioFromJSON)(json['ocr']),
|
|
49
|
-
'allowPlatformEngines': json['allowPlatformEngines'] == null ? undefined : json['allowPlatformEngines'],
|
|
50
49
|
'users': json['users'] == null ? undefined : (json['users'].map(OrganizationUserUio_1.OrganizationUserUioFromJSON)),
|
|
51
50
|
};
|
|
52
51
|
}
|
|
@@ -63,7 +62,6 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
62
|
'slug': value['slug'],
|
|
64
63
|
'engine': (0, OrganizationEngineUio_1.OrganizationEngineUioToJSON)(value['engine']),
|
|
65
64
|
'ocr': (0, OrganizationOcrConfigUio_1.OrganizationOcrConfigUioToJSON)(value['ocr']),
|
|
66
|
-
'allowPlatformEngines': value['allowPlatformEngines'],
|
|
67
65
|
'users': value['users'] == null ? undefined : (value['users'].map(OrganizationUserUio_1.OrganizationUserUioToJSON)),
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PlatformEngineAccessModelsInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface PlatformEngineAccessModelsInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PlatformEngineAccessModelsInnerUio
|
|
22
|
+
*/
|
|
23
|
+
modelId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PlatformEngineAccessModelsInnerUio
|
|
28
|
+
*/
|
|
29
|
+
organizationIds: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PlatformEngineAccessModelsInnerUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPlatformEngineAccessModelsInnerUio(value: object): value is PlatformEngineAccessModelsInnerUio;
|
|
35
|
+
export declare function PlatformEngineAccessModelsInnerUioFromJSON(json: any): PlatformEngineAccessModelsInnerUio;
|
|
36
|
+
export declare function PlatformEngineAccessModelsInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEngineAccessModelsInnerUio;
|
|
37
|
+
export declare function PlatformEngineAccessModelsInnerUioToJSON(json: any): PlatformEngineAccessModelsInnerUio;
|
|
38
|
+
export declare function PlatformEngineAccessModelsInnerUioToJSONTyped(value?: PlatformEngineAccessModelsInnerUio | 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.instanceOfPlatformEngineAccessModelsInnerUio = instanceOfPlatformEngineAccessModelsInnerUio;
|
|
17
|
+
exports.PlatformEngineAccessModelsInnerUioFromJSON = PlatformEngineAccessModelsInnerUioFromJSON;
|
|
18
|
+
exports.PlatformEngineAccessModelsInnerUioFromJSONTyped = PlatformEngineAccessModelsInnerUioFromJSONTyped;
|
|
19
|
+
exports.PlatformEngineAccessModelsInnerUioToJSON = PlatformEngineAccessModelsInnerUioToJSON;
|
|
20
|
+
exports.PlatformEngineAccessModelsInnerUioToJSONTyped = PlatformEngineAccessModelsInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlatformEngineAccessModelsInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPlatformEngineAccessModelsInnerUio(value) {
|
|
25
|
+
if (!('modelId' in value) || value['modelId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('organizationIds' in value) || value['organizationIds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PlatformEngineAccessModelsInnerUioFromJSON(json) {
|
|
32
|
+
return PlatformEngineAccessModelsInnerUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PlatformEngineAccessModelsInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'modelId': json['modelId'],
|
|
40
|
+
'organizationIds': json['organizationIds'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PlatformEngineAccessModelsInnerUioToJSON(json) {
|
|
44
|
+
return PlatformEngineAccessModelsInnerUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PlatformEngineAccessModelsInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'modelId': value['modelId'],
|
|
52
|
+
'organizationIds': value['organizationIds'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { PlatformEngineAccessModelsInnerUio } from './PlatformEngineAccessModelsInnerUio';
|
|
13
|
+
/**
|
|
14
|
+
* Organisations qui ont accès à chaque modèle d'un moteur plateforme.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PlatformEngineAccessUio
|
|
17
|
+
*/
|
|
18
|
+
export interface PlatformEngineAccessUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PlatformEngineAccessModelsInnerUio>}
|
|
22
|
+
* @memberof PlatformEngineAccessUio
|
|
23
|
+
*/
|
|
24
|
+
models: Array<PlatformEngineAccessModelsInnerUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PlatformEngineAccessUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPlatformEngineAccessUio(value: object): value is PlatformEngineAccessUio;
|
|
30
|
+
export declare function PlatformEngineAccessUioFromJSON(json: any): PlatformEngineAccessUio;
|
|
31
|
+
export declare function PlatformEngineAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEngineAccessUio;
|
|
32
|
+
export declare function PlatformEngineAccessUioToJSON(json: any): PlatformEngineAccessUio;
|
|
33
|
+
export declare function PlatformEngineAccessUioToJSONTyped(value?: PlatformEngineAccessUio | null, ignoreDiscriminator?: boolean): any;
|