@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,104 @@
|
|
|
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.instanceOfAiGatewayV1ReportRowUio = instanceOfAiGatewayV1ReportRowUio;
|
|
17
|
+
exports.AiGatewayV1ReportRowUioFromJSON = AiGatewayV1ReportRowUioFromJSON;
|
|
18
|
+
exports.AiGatewayV1ReportRowUioFromJSONTyped = AiGatewayV1ReportRowUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayV1ReportRowUioToJSON = AiGatewayV1ReportRowUioToJSON;
|
|
20
|
+
exports.AiGatewayV1ReportRowUioToJSONTyped = AiGatewayV1ReportRowUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayV1ReportRowUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayV1ReportRowUio(value) {
|
|
25
|
+
if (!('totalCost' in value) || value['totalCost'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('marketCost' in value) || value['marketCost'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('surchargeCost' in value) || value['surchargeCost'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('gatewayCost' in value) || value['gatewayCost'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('cachedInputTokens' in value) || value['cachedInputTokens'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('cacheCreationInputTokens' in value) || value['cacheCreationInputTokens'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('requestCount' in value) || value['requestCount'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function AiGatewayV1ReportRowUioFromJSON(json) {
|
|
48
|
+
return AiGatewayV1ReportRowUioFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function AiGatewayV1ReportRowUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'day': json['day'] == null ? undefined : json['day'],
|
|
56
|
+
'hour': json['hour'] == null ? undefined : json['hour'],
|
|
57
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
58
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
59
|
+
'tag': json['tag'] == null ? undefined : json['tag'],
|
|
60
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
61
|
+
'credentialType': json['credential_type'] == null ? undefined : json['credential_type'],
|
|
62
|
+
'zeroDataRetention': json['zero_data_retention'] == null ? undefined : json['zero_data_retention'],
|
|
63
|
+
'apiKeyName': json['api_key_name'] == null ? undefined : json['api_key_name'],
|
|
64
|
+
'totalCost': json['total_cost'],
|
|
65
|
+
'marketCost': json['market_cost'],
|
|
66
|
+
'surchargeCost': json['surcharge_cost'],
|
|
67
|
+
'gatewayCost': json['gateway_cost'],
|
|
68
|
+
'inputTokens': json['input_tokens'],
|
|
69
|
+
'outputTokens': json['output_tokens'],
|
|
70
|
+
'cachedInputTokens': json['cached_input_tokens'],
|
|
71
|
+
'cacheCreationInputTokens': json['cache_creation_input_tokens'],
|
|
72
|
+
'reasoningTokens': json['reasoning_tokens'],
|
|
73
|
+
'requestCount': json['request_count'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function AiGatewayV1ReportRowUioToJSON(json) {
|
|
77
|
+
return AiGatewayV1ReportRowUioToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function AiGatewayV1ReportRowUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'day': value['day'],
|
|
85
|
+
'hour': value['hour'],
|
|
86
|
+
'user': value['user'],
|
|
87
|
+
'model': value['model'],
|
|
88
|
+
'tag': value['tag'],
|
|
89
|
+
'provider': value['provider'],
|
|
90
|
+
'credential_type': value['credentialType'],
|
|
91
|
+
'zero_data_retention': value['zeroDataRetention'],
|
|
92
|
+
'api_key_name': value['apiKeyName'],
|
|
93
|
+
'total_cost': value['totalCost'],
|
|
94
|
+
'market_cost': value['marketCost'],
|
|
95
|
+
'surcharge_cost': value['surchargeCost'],
|
|
96
|
+
'gateway_cost': value['gatewayCost'],
|
|
97
|
+
'input_tokens': value['inputTokens'],
|
|
98
|
+
'output_tokens': value['outputTokens'],
|
|
99
|
+
'cached_input_tokens': value['cachedInputTokens'],
|
|
100
|
+
'cache_creation_input_tokens': value['cacheCreationInputTokens'],
|
|
101
|
+
'reasoning_tokens': value['reasoningTokens'],
|
|
102
|
+
'request_count': value['requestCount'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -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 { AiGatewayV1ReportRowUio } from './AiGatewayV1ReportRowUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayV1ReportUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayV1ReportUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AiGatewayV1ReportRowUio>}
|
|
22
|
+
* @memberof AiGatewayV1ReportUio
|
|
23
|
+
*/
|
|
24
|
+
results: Array<AiGatewayV1ReportRowUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AiGatewayV1ReportUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAiGatewayV1ReportUio(value: object): value is AiGatewayV1ReportUio;
|
|
30
|
+
export declare function AiGatewayV1ReportUioFromJSON(json: any): AiGatewayV1ReportUio;
|
|
31
|
+
export declare function AiGatewayV1ReportUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ReportUio;
|
|
32
|
+
export declare function AiGatewayV1ReportUioToJSON(json: any): AiGatewayV1ReportUio;
|
|
33
|
+
export declare function AiGatewayV1ReportUioToJSONTyped(value?: AiGatewayV1ReportUio | 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.instanceOfAiGatewayV1ReportUio = instanceOfAiGatewayV1ReportUio;
|
|
17
|
+
exports.AiGatewayV1ReportUioFromJSON = AiGatewayV1ReportUioFromJSON;
|
|
18
|
+
exports.AiGatewayV1ReportUioFromJSONTyped = AiGatewayV1ReportUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayV1ReportUioToJSON = AiGatewayV1ReportUioToJSON;
|
|
20
|
+
exports.AiGatewayV1ReportUioToJSONTyped = AiGatewayV1ReportUioToJSONTyped;
|
|
21
|
+
const AiGatewayV1ReportRowUio_1 = require("./AiGatewayV1ReportRowUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayV1ReportUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayV1ReportUio(value) {
|
|
26
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayV1ReportUioFromJSON(json) {
|
|
31
|
+
return AiGatewayV1ReportUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AiGatewayV1ReportUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'results': (json['results'].map(AiGatewayV1ReportRowUio_1.AiGatewayV1ReportRowUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayV1ReportUioToJSON(json) {
|
|
42
|
+
return AiGatewayV1ReportUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayV1ReportUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'results': (value['results'].map(AiGatewayV1ReportRowUio_1.AiGatewayV1ReportRowUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -61,6 +61,23 @@ export * from './AiGatewayMessageUio';
|
|
|
61
61
|
export * from './AiGatewayModelListDataInnerUio';
|
|
62
62
|
export * from './AiGatewayModelListUio';
|
|
63
63
|
export * from './AiGatewayModelUio';
|
|
64
|
+
export * from './AiGatewayUsageBreakdownItemUio';
|
|
65
|
+
export * from './AiGatewayUsagePointUio';
|
|
66
|
+
export * from './AiGatewayUsageTotalUio';
|
|
67
|
+
export * from './AiGatewayUsageUio';
|
|
68
|
+
export * from './AiGatewayV1CreditsUio';
|
|
69
|
+
export * from './AiGatewayV1EndpointPricingUio';
|
|
70
|
+
export * from './AiGatewayV1EndpointUio';
|
|
71
|
+
export * from './AiGatewayV1GenerationDataUio';
|
|
72
|
+
export * from './AiGatewayV1GenerationUio';
|
|
73
|
+
export * from './AiGatewayV1ModelEndpointsDataArchitectureUio';
|
|
74
|
+
export * from './AiGatewayV1ModelEndpointsDataUio';
|
|
75
|
+
export * from './AiGatewayV1ModelEndpointsUio';
|
|
76
|
+
export * from './AiGatewayV1ModelListUio';
|
|
77
|
+
export * from './AiGatewayV1ModelPricingUio';
|
|
78
|
+
export * from './AiGatewayV1ModelUio';
|
|
79
|
+
export * from './AiGatewayV1ReportRowUio';
|
|
80
|
+
export * from './AiGatewayV1ReportUio';
|
|
64
81
|
export * from './AnimationCreateRequestUio';
|
|
65
82
|
export * from './AnimationUio';
|
|
66
83
|
export * from './AnonymizationStatusUio';
|
package/dist/models/index.js
CHANGED
|
@@ -79,6 +79,23 @@ __exportStar(require("./AiGatewayMessageUio"), exports);
|
|
|
79
79
|
__exportStar(require("./AiGatewayModelListDataInnerUio"), exports);
|
|
80
80
|
__exportStar(require("./AiGatewayModelListUio"), exports);
|
|
81
81
|
__exportStar(require("./AiGatewayModelUio"), exports);
|
|
82
|
+
__exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
|
|
83
|
+
__exportStar(require("./AiGatewayUsagePointUio"), exports);
|
|
84
|
+
__exportStar(require("./AiGatewayUsageTotalUio"), exports);
|
|
85
|
+
__exportStar(require("./AiGatewayUsageUio"), exports);
|
|
86
|
+
__exportStar(require("./AiGatewayV1CreditsUio"), exports);
|
|
87
|
+
__exportStar(require("./AiGatewayV1EndpointPricingUio"), exports);
|
|
88
|
+
__exportStar(require("./AiGatewayV1EndpointUio"), exports);
|
|
89
|
+
__exportStar(require("./AiGatewayV1GenerationDataUio"), exports);
|
|
90
|
+
__exportStar(require("./AiGatewayV1GenerationUio"), exports);
|
|
91
|
+
__exportStar(require("./AiGatewayV1ModelEndpointsDataArchitectureUio"), exports);
|
|
92
|
+
__exportStar(require("./AiGatewayV1ModelEndpointsDataUio"), exports);
|
|
93
|
+
__exportStar(require("./AiGatewayV1ModelEndpointsUio"), exports);
|
|
94
|
+
__exportStar(require("./AiGatewayV1ModelListUio"), exports);
|
|
95
|
+
__exportStar(require("./AiGatewayV1ModelPricingUio"), exports);
|
|
96
|
+
__exportStar(require("./AiGatewayV1ModelUio"), exports);
|
|
97
|
+
__exportStar(require("./AiGatewayV1ReportRowUio"), exports);
|
|
98
|
+
__exportStar(require("./AiGatewayV1ReportUio"), exports);
|
|
82
99
|
__exportStar(require("./AnimationCreateRequestUio"), exports);
|
|
83
100
|
__exportStar(require("./AnimationUio"), exports);
|
|
84
101
|
__exportStar(require("./AnonymizationStatusUio"), exports);
|