@breign/client 1.0.130 → 1.0.132
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/AiGatewayApi.d.ts +133 -1
- package/dist/apis/AiGatewayApi.js +264 -1
- package/dist/models/AiGatewayUsageBreakdownItemUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageBreakdownItemUio.js +70 -0
- package/dist/models/AiGatewayUsagePointUio.d.ts +56 -0
- package/dist/models/AiGatewayUsagePointUio.js +66 -0
- package/dist/models/AiGatewayUsageTotalUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageTotalUio.js +70 -0
- package/dist/models/AiGatewayUsageUio.d.ts +59 -0
- package/dist/models/AiGatewayUsageUio.js +69 -0
- package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
- package/dist/models/AiGatewayV1CreditsUio.js +52 -0
- package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
- package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
- package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
- package/dist/models/AiGatewayV1EndpointUio.js +85 -0
- package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
- package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
- package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
- package/dist/models/AiGatewayV1GenerationUio.js +51 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
- package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
- package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
- package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
- package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
- package/dist/models/AiGatewayV1ModelListUio.js +62 -0
- package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
- package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
- package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
- package/dist/models/AiGatewayV1ModelUio.js +99 -0
- package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
- package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
- package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
- package/dist/models/AiGatewayV1ReportUio.js +51 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/openapi.json +1337 -345
- package/package.json +1 -1
|
@@ -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 { AiGatewayV1ModelEndpointsDataUio } from './AiGatewayV1ModelEndpointsDataUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayV1ModelEndpointsUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayV1ModelEndpointsUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AiGatewayV1ModelEndpointsDataUio}
|
|
22
|
+
* @memberof AiGatewayV1ModelEndpointsUio
|
|
23
|
+
*/
|
|
24
|
+
data: AiGatewayV1ModelEndpointsDataUio;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AiGatewayV1ModelEndpointsUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAiGatewayV1ModelEndpointsUio(value: object): value is AiGatewayV1ModelEndpointsUio;
|
|
30
|
+
export declare function AiGatewayV1ModelEndpointsUioFromJSON(json: any): AiGatewayV1ModelEndpointsUio;
|
|
31
|
+
export declare function AiGatewayV1ModelEndpointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ModelEndpointsUio;
|
|
32
|
+
export declare function AiGatewayV1ModelEndpointsUioToJSON(json: any): AiGatewayV1ModelEndpointsUio;
|
|
33
|
+
export declare function AiGatewayV1ModelEndpointsUioToJSONTyped(value?: AiGatewayV1ModelEndpointsUio | 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.instanceOfAiGatewayV1ModelEndpointsUio = instanceOfAiGatewayV1ModelEndpointsUio;
|
|
17
|
+
exports.AiGatewayV1ModelEndpointsUioFromJSON = AiGatewayV1ModelEndpointsUioFromJSON;
|
|
18
|
+
exports.AiGatewayV1ModelEndpointsUioFromJSONTyped = AiGatewayV1ModelEndpointsUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayV1ModelEndpointsUioToJSON = AiGatewayV1ModelEndpointsUioToJSON;
|
|
20
|
+
exports.AiGatewayV1ModelEndpointsUioToJSONTyped = AiGatewayV1ModelEndpointsUioToJSONTyped;
|
|
21
|
+
const AiGatewayV1ModelEndpointsDataUio_1 = require("./AiGatewayV1ModelEndpointsDataUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayV1ModelEndpointsUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayV1ModelEndpointsUio(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayV1ModelEndpointsUioFromJSON(json) {
|
|
31
|
+
return AiGatewayV1ModelEndpointsUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AiGatewayV1ModelEndpointsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': (0, AiGatewayV1ModelEndpointsDataUio_1.AiGatewayV1ModelEndpointsDataUioFromJSON)(json['data']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayV1ModelEndpointsUioToJSON(json) {
|
|
42
|
+
return AiGatewayV1ModelEndpointsUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayV1ModelEndpointsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'data': (0, AiGatewayV1ModelEndpointsDataUio_1.AiGatewayV1ModelEndpointsDataUioToJSON)(value['data']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { AiGatewayV1ModelUio } from './AiGatewayV1ModelUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayV1ModelListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayV1ModelListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayV1ModelListUio
|
|
23
|
+
*/
|
|
24
|
+
object: AiGatewayV1ModelListUioObjectEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AiGatewayV1ModelUio>}
|
|
28
|
+
* @memberof AiGatewayV1ModelListUio
|
|
29
|
+
*/
|
|
30
|
+
data: Array<AiGatewayV1ModelUio>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AiGatewayV1ModelListUioObjectEnum: {
|
|
36
|
+
readonly List: "list";
|
|
37
|
+
};
|
|
38
|
+
export type AiGatewayV1ModelListUioObjectEnum = typeof AiGatewayV1ModelListUioObjectEnum[keyof typeof AiGatewayV1ModelListUioObjectEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AiGatewayV1ModelListUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAiGatewayV1ModelListUio(value: object): value is AiGatewayV1ModelListUio;
|
|
43
|
+
export declare function AiGatewayV1ModelListUioFromJSON(json: any): AiGatewayV1ModelListUio;
|
|
44
|
+
export declare function AiGatewayV1ModelListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ModelListUio;
|
|
45
|
+
export declare function AiGatewayV1ModelListUioToJSON(json: any): AiGatewayV1ModelListUio;
|
|
46
|
+
export declare function AiGatewayV1ModelListUioToJSONTyped(value?: AiGatewayV1ModelListUio | 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.AiGatewayV1ModelListUioObjectEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayV1ModelListUio = instanceOfAiGatewayV1ModelListUio;
|
|
18
|
+
exports.AiGatewayV1ModelListUioFromJSON = AiGatewayV1ModelListUioFromJSON;
|
|
19
|
+
exports.AiGatewayV1ModelListUioFromJSONTyped = AiGatewayV1ModelListUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayV1ModelListUioToJSON = AiGatewayV1ModelListUioToJSON;
|
|
21
|
+
exports.AiGatewayV1ModelListUioToJSONTyped = AiGatewayV1ModelListUioToJSONTyped;
|
|
22
|
+
const AiGatewayV1ModelUio_1 = require("./AiGatewayV1ModelUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewayV1ModelListUioObjectEnum = {
|
|
27
|
+
List: 'list'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AiGatewayV1ModelListUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAiGatewayV1ModelListUio(value) {
|
|
33
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AiGatewayV1ModelListUioFromJSON(json) {
|
|
40
|
+
return AiGatewayV1ModelListUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AiGatewayV1ModelListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'object': json['object'],
|
|
48
|
+
'data': (json['data'].map(AiGatewayV1ModelUio_1.AiGatewayV1ModelUioFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AiGatewayV1ModelListUioToJSON(json) {
|
|
52
|
+
return AiGatewayV1ModelListUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AiGatewayV1ModelListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'object': value['object'],
|
|
60
|
+
'data': (value['data'].map(AiGatewayV1ModelUio_1.AiGatewayV1ModelUioToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewayV1ModelPricingUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayV1ModelPricingUio {
|
|
18
|
+
/**
|
|
19
|
+
* Coût par token en entrée
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayV1ModelPricingUio
|
|
22
|
+
*/
|
|
23
|
+
input?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Coût par token en sortie
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayV1ModelPricingUio
|
|
28
|
+
*/
|
|
29
|
+
output?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Toujours null — Breign ne tarife pas la lecture de cache
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiGatewayV1ModelPricingUio
|
|
34
|
+
*/
|
|
35
|
+
inputCacheRead?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Toujours null — Breign ne tarife pas l'écriture de cache
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiGatewayV1ModelPricingUio
|
|
40
|
+
*/
|
|
41
|
+
inputCacheWrite?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AiGatewayV1ModelPricingUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAiGatewayV1ModelPricingUio(value: object): value is AiGatewayV1ModelPricingUio;
|
|
47
|
+
export declare function AiGatewayV1ModelPricingUioFromJSON(json: any): AiGatewayV1ModelPricingUio;
|
|
48
|
+
export declare function AiGatewayV1ModelPricingUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ModelPricingUio;
|
|
49
|
+
export declare function AiGatewayV1ModelPricingUioToJSON(json: any): AiGatewayV1ModelPricingUio;
|
|
50
|
+
export declare function AiGatewayV1ModelPricingUioToJSONTyped(value?: AiGatewayV1ModelPricingUio | 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.instanceOfAiGatewayV1ModelPricingUio = instanceOfAiGatewayV1ModelPricingUio;
|
|
17
|
+
exports.AiGatewayV1ModelPricingUioFromJSON = AiGatewayV1ModelPricingUioFromJSON;
|
|
18
|
+
exports.AiGatewayV1ModelPricingUioFromJSONTyped = AiGatewayV1ModelPricingUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayV1ModelPricingUioToJSON = AiGatewayV1ModelPricingUioToJSON;
|
|
20
|
+
exports.AiGatewayV1ModelPricingUioToJSONTyped = AiGatewayV1ModelPricingUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayV1ModelPricingUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayV1ModelPricingUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AiGatewayV1ModelPricingUioFromJSON(json) {
|
|
28
|
+
return AiGatewayV1ModelPricingUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayV1ModelPricingUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
36
|
+
'output': json['output'] == null ? undefined : json['output'],
|
|
37
|
+
'inputCacheRead': json['input_cache_read'] == null ? undefined : json['input_cache_read'],
|
|
38
|
+
'inputCacheWrite': json['input_cache_write'] == null ? undefined : json['input_cache_write'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayV1ModelPricingUioToJSON(json) {
|
|
42
|
+
return AiGatewayV1ModelPricingUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayV1ModelPricingUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'input': value['input'],
|
|
50
|
+
'output': value['output'],
|
|
51
|
+
'input_cache_read': value['inputCacheRead'],
|
|
52
|
+
'input_cache_write': value['inputCacheWrite'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { AiGatewayV1ModelPricingUio } from './AiGatewayV1ModelPricingUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayV1ModelUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayV1ModelUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayV1ModelUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewayV1ModelUio
|
|
29
|
+
*/
|
|
30
|
+
object: AiGatewayV1ModelUioObjectEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AiGatewayV1ModelUio
|
|
35
|
+
*/
|
|
36
|
+
created: number;
|
|
37
|
+
/**
|
|
38
|
+
* Toujours null — date de sortie non conservée par Breign
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AiGatewayV1ModelUio
|
|
41
|
+
*/
|
|
42
|
+
released?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AiGatewayV1ModelUio
|
|
47
|
+
*/
|
|
48
|
+
ownedBy: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AiGatewayV1ModelUio
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Toujours null — description non conservée par Breign
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AiGatewayV1ModelUio
|
|
59
|
+
*/
|
|
60
|
+
description?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Toujours null — taille de contexte non conservée par Breign
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof AiGatewayV1ModelUio
|
|
65
|
+
*/
|
|
66
|
+
contextWindow?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof AiGatewayV1ModelUio
|
|
71
|
+
*/
|
|
72
|
+
maxTokens?: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AiGatewayV1ModelUio
|
|
77
|
+
*/
|
|
78
|
+
type: AiGatewayV1ModelUioTypeEnum;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof AiGatewayV1ModelUio
|
|
83
|
+
*/
|
|
84
|
+
tags: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {AiGatewayV1ModelPricingUio}
|
|
88
|
+
* @memberof AiGatewayV1ModelUio
|
|
89
|
+
*/
|
|
90
|
+
pricing?: AiGatewayV1ModelPricingUio | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const AiGatewayV1ModelUioObjectEnum: {
|
|
96
|
+
readonly Model: "model";
|
|
97
|
+
};
|
|
98
|
+
export type AiGatewayV1ModelUioObjectEnum = typeof AiGatewayV1ModelUioObjectEnum[keyof typeof AiGatewayV1ModelUioObjectEnum];
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const AiGatewayV1ModelUioTypeEnum: {
|
|
103
|
+
readonly Language: "language";
|
|
104
|
+
readonly Embedding: "embedding";
|
|
105
|
+
};
|
|
106
|
+
export type AiGatewayV1ModelUioTypeEnum = typeof AiGatewayV1ModelUioTypeEnum[keyof typeof AiGatewayV1ModelUioTypeEnum];
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the AiGatewayV1ModelUio interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfAiGatewayV1ModelUio(value: object): value is AiGatewayV1ModelUio;
|
|
111
|
+
export declare function AiGatewayV1ModelUioFromJSON(json: any): AiGatewayV1ModelUio;
|
|
112
|
+
export declare function AiGatewayV1ModelUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ModelUio;
|
|
113
|
+
export declare function AiGatewayV1ModelUioToJSON(json: any): AiGatewayV1ModelUio;
|
|
114
|
+
export declare function AiGatewayV1ModelUioToJSONTyped(value?: AiGatewayV1ModelUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.AiGatewayV1ModelUioTypeEnum = exports.AiGatewayV1ModelUioObjectEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayV1ModelUio = instanceOfAiGatewayV1ModelUio;
|
|
18
|
+
exports.AiGatewayV1ModelUioFromJSON = AiGatewayV1ModelUioFromJSON;
|
|
19
|
+
exports.AiGatewayV1ModelUioFromJSONTyped = AiGatewayV1ModelUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayV1ModelUioToJSON = AiGatewayV1ModelUioToJSON;
|
|
21
|
+
exports.AiGatewayV1ModelUioToJSONTyped = AiGatewayV1ModelUioToJSONTyped;
|
|
22
|
+
const AiGatewayV1ModelPricingUio_1 = require("./AiGatewayV1ModelPricingUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewayV1ModelUioObjectEnum = {
|
|
27
|
+
Model: 'model'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.AiGatewayV1ModelUioTypeEnum = {
|
|
33
|
+
Language: 'language',
|
|
34
|
+
Embedding: 'embedding'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AiGatewayV1ModelUio interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfAiGatewayV1ModelUio(value) {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('ownedBy' in value) || value['ownedBy'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function AiGatewayV1ModelUioFromJSON(json) {
|
|
57
|
+
return AiGatewayV1ModelUioFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AiGatewayV1ModelUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'object': json['object'],
|
|
66
|
+
'created': json['created'],
|
|
67
|
+
'released': json['released'] == null ? undefined : json['released'],
|
|
68
|
+
'ownedBy': json['owned_by'],
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
71
|
+
'contextWindow': json['context_window'] == null ? undefined : json['context_window'],
|
|
72
|
+
'maxTokens': json['max_tokens'] == null ? undefined : json['max_tokens'],
|
|
73
|
+
'type': json['type'],
|
|
74
|
+
'tags': json['tags'],
|
|
75
|
+
'pricing': json['pricing'] == null ? undefined : (0, AiGatewayV1ModelPricingUio_1.AiGatewayV1ModelPricingUioFromJSON)(json['pricing']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function AiGatewayV1ModelUioToJSON(json) {
|
|
79
|
+
return AiGatewayV1ModelUioToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function AiGatewayV1ModelUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'object': value['object'],
|
|
88
|
+
'created': value['created'],
|
|
89
|
+
'released': value['released'],
|
|
90
|
+
'owned_by': value['ownedBy'],
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'description': value['description'],
|
|
93
|
+
'context_window': value['contextWindow'],
|
|
94
|
+
'max_tokens': value['maxTokens'],
|
|
95
|
+
'type': value['type'],
|
|
96
|
+
'tags': value['tags'],
|
|
97
|
+
'pricing': (0, AiGatewayV1ModelPricingUio_1.AiGatewayV1ModelPricingUioToJSON)(value['pricing']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
* Porte la seule clé de regroupement correspondant au group_by demandé, plus les métriques agrégées.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewayV1ReportRowUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayV1ReportRowUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
22
|
+
*/
|
|
23
|
+
day?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
28
|
+
*/
|
|
29
|
+
hour?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
34
|
+
*/
|
|
35
|
+
user?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
40
|
+
*/
|
|
41
|
+
model?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
46
|
+
*/
|
|
47
|
+
tag?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
52
|
+
*/
|
|
53
|
+
provider?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
58
|
+
*/
|
|
59
|
+
credentialType?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
64
|
+
*/
|
|
65
|
+
zeroDataRetention?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
70
|
+
*/
|
|
71
|
+
apiKeyName?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
76
|
+
*/
|
|
77
|
+
totalCost: number;
|
|
78
|
+
/**
|
|
79
|
+
* Égal à total_cost — Breign ne sert pas d'appels BYOK
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
82
|
+
*/
|
|
83
|
+
marketCost: number;
|
|
84
|
+
/**
|
|
85
|
+
* Toujours 0 — aucune capacité facturée en supplément
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
88
|
+
*/
|
|
89
|
+
surchargeCost: number;
|
|
90
|
+
/**
|
|
91
|
+
* Toujours 0 — la passerelle ne facture pas de coût propre
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
94
|
+
*/
|
|
95
|
+
gatewayCost: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
100
|
+
*/
|
|
101
|
+
inputTokens: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
106
|
+
*/
|
|
107
|
+
outputTokens: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
112
|
+
*/
|
|
113
|
+
cachedInputTokens: number;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
118
|
+
*/
|
|
119
|
+
cacheCreationInputTokens: number;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
124
|
+
*/
|
|
125
|
+
reasoningTokens: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof AiGatewayV1ReportRowUio
|
|
130
|
+
*/
|
|
131
|
+
requestCount: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the AiGatewayV1ReportRowUio interface.
|
|
135
|
+
*/
|
|
136
|
+
export declare function instanceOfAiGatewayV1ReportRowUio(value: object): value is AiGatewayV1ReportRowUio;
|
|
137
|
+
export declare function AiGatewayV1ReportRowUioFromJSON(json: any): AiGatewayV1ReportRowUio;
|
|
138
|
+
export declare function AiGatewayV1ReportRowUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ReportRowUio;
|
|
139
|
+
export declare function AiGatewayV1ReportRowUioToJSON(json: any): AiGatewayV1ReportRowUio;
|
|
140
|
+
export declare function AiGatewayV1ReportRowUioToJSONTyped(value?: AiGatewayV1ReportRowUio | null, ignoreDiscriminator?: boolean): any;
|