@breign/client 1.0.172 → 1.0.173
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 +110 -1
- package/dist/apis/AdminApi.js +263 -0
- package/dist/apis/AiGatewayApi.d.ts +41 -5
- package/dist/apis/AiGatewayApi.js +80 -7
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
- package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
- package/dist/models/AiGatewayUsageCostUio.js +62 -0
- package/dist/models/AiGatewayUsageUio.d.ts +7 -0
- package/dist/models/AiGatewayUsageUio.js +3 -0
- package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
- package/dist/models/AllowPlatformEnginesUio.js +50 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
- package/dist/models/DefaultEngineRequestUio.js +2 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
- package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
- package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
- package/dist/models/ModelDefinitionUio.d.ts +33 -0
- package/dist/models/ModelDefinitionUio.js +17 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
- package/dist/models/OrganizationUio.d.ts +6 -0
- package/dist/models/OrganizationUio.js +2 -0
- package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
- package/dist/models/PlatformEngineUsageUio.js +58 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
- package/dist/models/ProviderCreateRequestUio.js +4 -0
- package/dist/models/ProviderUio.d.ts +12 -0
- package/dist/models/ProviderUio.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/openapi.json +585 -2
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.GetAiGatewayV1ReportTagsMatchEnum = exports.GetAiGatewayV1ReportDatePartEnum = exports.GetAiGatewayV1ReportGroupByEnum = exports.GetAiGatewayMetricsGranularityEnum = exports.AiGatewayApi = void 0;
|
|
49
|
+
exports.GetAiGatewayV1ReportTagsMatchEnum = exports.GetAiGatewayV1ReportDatePartEnum = exports.GetAiGatewayV1ReportGroupByEnum = exports.GetAiGatewayMetricsGranularityEnum = exports.GetAiGatewayMetricsProviderSourceEnum = exports.AiGatewayApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -183,6 +183,35 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
183
183
|
async getAiGatewayCredits(organizationId, initOverrides) {
|
|
184
184
|
await this.getAiGatewayCreditsRaw({ organizationId: organizationId }, initOverrides);
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Limites des modèles Breign (providerSource INTERNAL) pour une organisation. Réservé au superAdmin. La forme de la réponse est la même que les settings d\'organisation : gatewayRpm et modelTokenQuotas portent ici le périmètre Breign.
|
|
188
|
+
* Get Breign model limit settings
|
|
189
|
+
*/
|
|
190
|
+
async getAiGatewayInternalSettingsRaw(requestParameters, initOverrides) {
|
|
191
|
+
if (requestParameters['organizationId'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAiGatewayInternalSettings().');
|
|
193
|
+
}
|
|
194
|
+
const queryParameters = {};
|
|
195
|
+
const headerParameters = {};
|
|
196
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
197
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
198
|
+
}
|
|
199
|
+
const response = await this.request({
|
|
200
|
+
path: `/organizations/{organizationId}/ai-gateway/internal-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
201
|
+
method: 'GET',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
}, initOverrides);
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Limites des modèles Breign (providerSource INTERNAL) pour une organisation. Réservé au superAdmin. La forme de la réponse est la même que les settings d\'organisation : gatewayRpm et modelTokenQuotas portent ici le périmètre Breign.
|
|
209
|
+
* Get Breign model limit settings
|
|
210
|
+
*/
|
|
211
|
+
async getAiGatewayInternalSettings(organizationId, initOverrides) {
|
|
212
|
+
const response = await this.getAiGatewayInternalSettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
213
|
+
return await response.value();
|
|
214
|
+
}
|
|
186
215
|
/**
|
|
187
216
|
* Usage de la passerelle pour l\'organisation sur une période : totaux, série temporelle et répartitions par modèle, par provider et par utilisateur. Réservé aux administrateurs de l\'organisation.
|
|
188
217
|
* Get AI gateway usage metrics
|
|
@@ -198,6 +227,9 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
198
227
|
if (requestParameters['endDate'] != null) {
|
|
199
228
|
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
200
229
|
}
|
|
230
|
+
if (requestParameters['providerSource'] != null) {
|
|
231
|
+
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
232
|
+
}
|
|
201
233
|
if (requestParameters['granularity'] != null) {
|
|
202
234
|
queryParameters['granularity'] = requestParameters['granularity'];
|
|
203
235
|
}
|
|
@@ -217,8 +249,8 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
217
249
|
* Usage de la passerelle pour l\'organisation sur une période : totaux, série temporelle et répartitions par modèle, par provider et par utilisateur. Réservé aux administrateurs de l\'organisation.
|
|
218
250
|
* Get AI gateway usage metrics
|
|
219
251
|
*/
|
|
220
|
-
async getAiGatewayMetrics(organizationId, startDate, endDate, granularity, initOverrides) {
|
|
221
|
-
const response = await this.getAiGatewayMetricsRaw({ organizationId: organizationId, startDate: startDate, endDate: endDate, granularity: granularity }, initOverrides);
|
|
252
|
+
async getAiGatewayMetrics(organizationId, startDate, endDate, providerSource, granularity, initOverrides) {
|
|
253
|
+
const response = await this.getAiGatewayMetricsRaw({ organizationId: organizationId, startDate: startDate, endDate: endDate, providerSource: providerSource, granularity: granularity }, initOverrides);
|
|
222
254
|
return await response.value();
|
|
223
255
|
}
|
|
224
256
|
/**
|
|
@@ -254,7 +286,7 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
254
286
|
return await response.value();
|
|
255
287
|
}
|
|
256
288
|
/**
|
|
257
|
-
*
|
|
289
|
+
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
258
290
|
* Get AI Gateway limits settings
|
|
259
291
|
*/
|
|
260
292
|
async getAiGatewaySettingsRaw(requestParameters, initOverrides) {
|
|
@@ -275,7 +307,7 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
275
307
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
276
308
|
}
|
|
277
309
|
/**
|
|
278
|
-
*
|
|
310
|
+
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
279
311
|
* Get AI Gateway limits settings
|
|
280
312
|
*/
|
|
281
313
|
async getAiGatewaySettings(organizationId, initOverrides) {
|
|
@@ -502,7 +534,41 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
502
534
|
return await response.value();
|
|
503
535
|
}
|
|
504
536
|
/**
|
|
505
|
-
*
|
|
537
|
+
* Le superAdmin fixe le RPM et les quotas des modèles Breign. Un quota visant un modèle à clé propre est refusé. N\'écrase pas les limites de l\'admin.
|
|
538
|
+
* Update Breign model limit settings
|
|
539
|
+
*/
|
|
540
|
+
async updateAiGatewayInternalSettingsRaw(requestParameters, initOverrides) {
|
|
541
|
+
if (requestParameters['organizationId'] == null) {
|
|
542
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateAiGatewayInternalSettings().');
|
|
543
|
+
}
|
|
544
|
+
if (requestParameters['aiGatewaySettingsUpdateRequestUio'] == null) {
|
|
545
|
+
throw new runtime.RequiredError('aiGatewaySettingsUpdateRequestUio', 'Required parameter "aiGatewaySettingsUpdateRequestUio" was null or undefined when calling updateAiGatewayInternalSettings().');
|
|
546
|
+
}
|
|
547
|
+
const queryParameters = {};
|
|
548
|
+
const headerParameters = {};
|
|
549
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
550
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
551
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
552
|
+
}
|
|
553
|
+
const response = await this.request({
|
|
554
|
+
path: `/organizations/{organizationId}/ai-gateway/internal-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
555
|
+
method: 'PUT',
|
|
556
|
+
headers: headerParameters,
|
|
557
|
+
query: queryParameters,
|
|
558
|
+
body: (0, index_1.AiGatewaySettingsUpdateRequestUioToJSON)(requestParameters['aiGatewaySettingsUpdateRequestUio']),
|
|
559
|
+
}, initOverrides);
|
|
560
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Le superAdmin fixe le RPM et les quotas des modèles Breign. Un quota visant un modèle à clé propre est refusé. N\'écrase pas les limites de l\'admin.
|
|
564
|
+
* Update Breign model limit settings
|
|
565
|
+
*/
|
|
566
|
+
async updateAiGatewayInternalSettings(organizationId, aiGatewaySettingsUpdateRequestUio, initOverrides) {
|
|
567
|
+
const response = await this.updateAiGatewayInternalSettingsRaw({ organizationId: organizationId, aiGatewaySettingsUpdateRequestUio: aiGatewaySettingsUpdateRequestUio }, initOverrides);
|
|
568
|
+
return await response.value();
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* L\'admin d\'organisation fixe le RPM et les quotas de ses modèles à clé propre. Un quota visant un modèle Breign est refusé.
|
|
506
572
|
* Update AI Gateway limits settings
|
|
507
573
|
*/
|
|
508
574
|
async updateAiGatewaySettingsRaw(requestParameters, initOverrides) {
|
|
@@ -528,7 +594,7 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
528
594
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySettingsUioFromJSON)(jsonValue));
|
|
529
595
|
}
|
|
530
596
|
/**
|
|
531
|
-
*
|
|
597
|
+
* L\'admin d\'organisation fixe le RPM et les quotas de ses modèles à clé propre. Un quota visant un modèle Breign est refusé.
|
|
532
598
|
* Update AI Gateway limits settings
|
|
533
599
|
*/
|
|
534
600
|
async updateAiGatewaySettings(organizationId, aiGatewaySettingsUpdateRequestUio, initOverrides) {
|
|
@@ -537,6 +603,13 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
537
603
|
}
|
|
538
604
|
}
|
|
539
605
|
exports.AiGatewayApi = AiGatewayApi;
|
|
606
|
+
/**
|
|
607
|
+
* @export
|
|
608
|
+
*/
|
|
609
|
+
exports.GetAiGatewayMetricsProviderSourceEnum = {
|
|
610
|
+
Internal: 'INTERNAL',
|
|
611
|
+
External: 'EXTERNAL'
|
|
612
|
+
};
|
|
540
613
|
/**
|
|
541
614
|
* @export
|
|
542
615
|
*/
|
|
@@ -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
|
+
import type { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayInternalSettingsSummaryUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayInternalSettingsSummaryUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
23
|
+
*/
|
|
24
|
+
organizationId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Max requests per minute per subject; null means unlimited
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
29
|
+
*/
|
|
30
|
+
gatewayRpm: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<AiGatewayModelTokenQuotaUio>}
|
|
34
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
35
|
+
*/
|
|
36
|
+
modelTokenQuotas: Array<AiGatewayModelTokenQuotaUio>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
41
|
+
*/
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
47
|
+
*/
|
|
48
|
+
updatedBy?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Usage du quota le plus entamé sur sa période en cours ; null sans quota.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
53
|
+
*/
|
|
54
|
+
maxQuotaRatio: number | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AiGatewayInternalSettingsSummaryUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAiGatewayInternalSettingsSummaryUio(value: object): value is AiGatewayInternalSettingsSummaryUio;
|
|
60
|
+
export declare function AiGatewayInternalSettingsSummaryUioFromJSON(json: any): AiGatewayInternalSettingsSummaryUio;
|
|
61
|
+
export declare function AiGatewayInternalSettingsSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayInternalSettingsSummaryUio;
|
|
62
|
+
export declare function AiGatewayInternalSettingsSummaryUioToJSON(json: any): AiGatewayInternalSettingsSummaryUio;
|
|
63
|
+
export declare function AiGatewayInternalSettingsSummaryUioToJSONTyped(value?: AiGatewayInternalSettingsSummaryUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfAiGatewayInternalSettingsSummaryUio = instanceOfAiGatewayInternalSettingsSummaryUio;
|
|
17
|
+
exports.AiGatewayInternalSettingsSummaryUioFromJSON = AiGatewayInternalSettingsSummaryUioFromJSON;
|
|
18
|
+
exports.AiGatewayInternalSettingsSummaryUioFromJSONTyped = AiGatewayInternalSettingsSummaryUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayInternalSettingsSummaryUioToJSON = AiGatewayInternalSettingsSummaryUioToJSON;
|
|
20
|
+
exports.AiGatewayInternalSettingsSummaryUioToJSONTyped = AiGatewayInternalSettingsSummaryUioToJSONTyped;
|
|
21
|
+
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayInternalSettingsSummaryUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayInternalSettingsSummaryUio(value) {
|
|
26
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('gatewayRpm' in value) || value['gatewayRpm'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('modelTokenQuotas' in value) || value['modelTokenQuotas'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('maxQuotaRatio' in value) || value['maxQuotaRatio'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AiGatewayInternalSettingsSummaryUioFromJSON(json) {
|
|
39
|
+
return AiGatewayInternalSettingsSummaryUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayInternalSettingsSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'organizationId': json['organizationId'],
|
|
47
|
+
'gatewayRpm': json['gatewayRpm'],
|
|
48
|
+
'modelTokenQuotas': (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
49
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
50
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
51
|
+
'maxQuotaRatio': json['maxQuotaRatio'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AiGatewayInternalSettingsSummaryUioToJSON(json) {
|
|
55
|
+
return AiGatewayInternalSettingsSummaryUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AiGatewayInternalSettingsSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'organizationId': value['organizationId'],
|
|
63
|
+
'gatewayRpm': value['gatewayRpm'],
|
|
64
|
+
'modelTokenQuotas': (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
65
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
66
|
+
'updatedBy': value['updatedBy'],
|
|
67
|
+
'maxQuotaRatio': value['maxQuotaRatio'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
* Coût estimé, joint seulement sur le périmètre des modèles Breign (réservé au superAdmin).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewayUsageCostUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayUsageCostUio {
|
|
18
|
+
/**
|
|
19
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas.
|
|
20
|
+
* @type {{ [key: string]: number; }}
|
|
21
|
+
* @memberof AiGatewayUsageCostUio
|
|
22
|
+
*/
|
|
23
|
+
total: {
|
|
24
|
+
[key: string]: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {{ [key: string]: { [key: string]: number; }; }}
|
|
29
|
+
* @memberof AiGatewayUsageCostUio
|
|
30
|
+
*/
|
|
31
|
+
byModel: {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: { [key: string]: number; }; }}
|
|
39
|
+
* @memberof AiGatewayUsageCostUio
|
|
40
|
+
*/
|
|
41
|
+
byUser: {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Tokens sans prix connu ; le coût est alors une estimation partielle.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AiGatewayUsageCostUio
|
|
50
|
+
*/
|
|
51
|
+
unpricedTokens: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the AiGatewayUsageCostUio interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfAiGatewayUsageCostUio(value: object): value is AiGatewayUsageCostUio;
|
|
57
|
+
export declare function AiGatewayUsageCostUioFromJSON(json: any): AiGatewayUsageCostUio;
|
|
58
|
+
export declare function AiGatewayUsageCostUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageCostUio;
|
|
59
|
+
export declare function AiGatewayUsageCostUioToJSON(json: any): AiGatewayUsageCostUio;
|
|
60
|
+
export declare function AiGatewayUsageCostUioToJSONTyped(value?: AiGatewayUsageCostUio | 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.instanceOfAiGatewayUsageCostUio = instanceOfAiGatewayUsageCostUio;
|
|
17
|
+
exports.AiGatewayUsageCostUioFromJSON = AiGatewayUsageCostUioFromJSON;
|
|
18
|
+
exports.AiGatewayUsageCostUioFromJSONTyped = AiGatewayUsageCostUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayUsageCostUioToJSON = AiGatewayUsageCostUioToJSON;
|
|
20
|
+
exports.AiGatewayUsageCostUioToJSONTyped = AiGatewayUsageCostUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayUsageCostUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayUsageCostUio(value) {
|
|
25
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('byModel' in value) || value['byModel'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('byUser' in value) || value['byUser'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AiGatewayUsageCostUioFromJSON(json) {
|
|
36
|
+
return AiGatewayUsageCostUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AiGatewayUsageCostUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'total': json['total'],
|
|
44
|
+
'byModel': json['byModel'],
|
|
45
|
+
'byUser': json['byUser'],
|
|
46
|
+
'unpricedTokens': json['unpricedTokens'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AiGatewayUsageCostUioToJSON(json) {
|
|
50
|
+
return AiGatewayUsageCostUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AiGatewayUsageCostUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'total': value['total'],
|
|
58
|
+
'byModel': value['byModel'],
|
|
59
|
+
'byUser': value['byUser'],
|
|
60
|
+
'unpricedTokens': value['unpricedTokens'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AiGatewayUsageCostUio } from './AiGatewayUsageCostUio';
|
|
12
13
|
import type { AiGatewayUsageTotalUio } from './AiGatewayUsageTotalUio';
|
|
13
14
|
import type { AiGatewayUsagePointUio } from './AiGatewayUsagePointUio';
|
|
14
15
|
import type { AiGatewayUsageBreakdownItemUio } from './AiGatewayUsageBreakdownItemUio';
|
|
@@ -48,6 +49,12 @@ export interface AiGatewayUsageUio {
|
|
|
48
49
|
* @memberof AiGatewayUsageUio
|
|
49
50
|
*/
|
|
50
51
|
byUser: Array<AiGatewayUsageBreakdownItemUio>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {AiGatewayUsageCostUio}
|
|
55
|
+
* @memberof AiGatewayUsageUio
|
|
56
|
+
*/
|
|
57
|
+
cost?: AiGatewayUsageCostUio;
|
|
51
58
|
}
|
|
52
59
|
/**
|
|
53
60
|
* Check if a given object implements the AiGatewayUsageUio interface.
|
|
@@ -18,6 +18,7 @@ exports.AiGatewayUsageUioFromJSON = AiGatewayUsageUioFromJSON;
|
|
|
18
18
|
exports.AiGatewayUsageUioFromJSONTyped = AiGatewayUsageUioFromJSONTyped;
|
|
19
19
|
exports.AiGatewayUsageUioToJSON = AiGatewayUsageUioToJSON;
|
|
20
20
|
exports.AiGatewayUsageUioToJSONTyped = AiGatewayUsageUioToJSONTyped;
|
|
21
|
+
const AiGatewayUsageCostUio_1 = require("./AiGatewayUsageCostUio");
|
|
21
22
|
const AiGatewayUsageTotalUio_1 = require("./AiGatewayUsageTotalUio");
|
|
22
23
|
const AiGatewayUsagePointUio_1 = require("./AiGatewayUsagePointUio");
|
|
23
24
|
const AiGatewayUsageBreakdownItemUio_1 = require("./AiGatewayUsageBreakdownItemUio");
|
|
@@ -50,6 +51,7 @@ function AiGatewayUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'byModel': (json['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
51
52
|
'byProvider': (json['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
52
53
|
'byUser': (json['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
54
|
+
'cost': json['cost'] == null ? undefined : (0, AiGatewayUsageCostUio_1.AiGatewayUsageCostUioFromJSON)(json['cost']),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function AiGatewayUsageUioToJSON(json) {
|
|
@@ -65,5 +67,6 @@ function AiGatewayUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
67
|
'byModel': (value['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
66
68
|
'byProvider': (value['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
67
69
|
'byUser': (value['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
70
|
+
'cost': (0, AiGatewayUsageCostUio_1.AiGatewayUsageCostUioToJSON)(value['cost']),
|
|
68
71
|
};
|
|
69
72
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AllowPlatformEnginesUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AllowPlatformEnginesUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AllowPlatformEnginesUio
|
|
22
|
+
*/
|
|
23
|
+
allowPlatformEngines: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AllowPlatformEnginesUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAllowPlatformEnginesUio(value: object): value is AllowPlatformEnginesUio;
|
|
29
|
+
export declare function AllowPlatformEnginesUioFromJSON(json: any): AllowPlatformEnginesUio;
|
|
30
|
+
export declare function AllowPlatformEnginesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllowPlatformEnginesUio;
|
|
31
|
+
export declare function AllowPlatformEnginesUioToJSON(json: any): AllowPlatformEnginesUio;
|
|
32
|
+
export declare function AllowPlatformEnginesUioToJSONTyped(value?: AllowPlatformEnginesUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfAllowPlatformEnginesUio = instanceOfAllowPlatformEnginesUio;
|
|
17
|
+
exports.AllowPlatformEnginesUioFromJSON = AllowPlatformEnginesUioFromJSON;
|
|
18
|
+
exports.AllowPlatformEnginesUioFromJSONTyped = AllowPlatformEnginesUioFromJSONTyped;
|
|
19
|
+
exports.AllowPlatformEnginesUioToJSON = AllowPlatformEnginesUioToJSON;
|
|
20
|
+
exports.AllowPlatformEnginesUioToJSONTyped = AllowPlatformEnginesUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AllowPlatformEnginesUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAllowPlatformEnginesUio(value) {
|
|
25
|
+
if (!('allowPlatformEngines' in value) || value['allowPlatformEngines'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AllowPlatformEnginesUioFromJSON(json) {
|
|
30
|
+
return AllowPlatformEnginesUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AllowPlatformEnginesUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'allowPlatformEngines': json['allowPlatformEngines'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AllowPlatformEnginesUioToJSON(json) {
|
|
41
|
+
return AllowPlatformEnginesUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AllowPlatformEnginesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'allowPlatformEngines': value['allowPlatformEngines'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface DefaultEngineRequestUio {
|
|
|
27
27
|
* @memberof DefaultEngineRequestUio
|
|
28
28
|
*/
|
|
29
29
|
model: string;
|
|
30
|
+
/**
|
|
31
|
+
* Requis quand le moteur est un moteur plateforme, pour savoir quelle organisation reçoit ce modèle par défaut.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DefaultEngineRequestUio
|
|
34
|
+
*/
|
|
35
|
+
organizationId?: string;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {{ [key: string]: any; }}
|
|
@@ -38,6 +38,7 @@ function DefaultEngineRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'providerId': json['providerId'],
|
|
40
40
|
'model': json['model'],
|
|
41
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
41
42
|
'options': json['options'] == null ? undefined : json['options'],
|
|
42
43
|
};
|
|
43
44
|
}
|
|
@@ -51,6 +52,7 @@ function DefaultEngineRequestUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
52
|
return {
|
|
52
53
|
'providerId': value['providerId'],
|
|
53
54
|
'model': value['model'],
|
|
55
|
+
'organizationId': value['organizationId'],
|
|
54
56
|
'options': value['options'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
|
|
34
|
+
*/
|
|
35
|
+
organizationId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio(value: object): value is DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
|
|
41
|
+
export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON(json: any): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
|
|
42
|
+
export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
|
|
43
|
+
export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON(json: any): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
|
|
44
|
+
export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(value?: DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio = instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
|
|
17
|
+
exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON;
|
|
18
|
+
exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped;
|
|
19
|
+
exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON;
|
|
20
|
+
exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON(json) {
|
|
34
|
+
return DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'organizationId': json['organizationId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON(json) {
|
|
47
|
+
return DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'organizationId': value['organizationId'],
|
|
57
|
+
};
|
|
58
|
+
}
|