@breign/client 1.0.131 → 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.
Files changed (32) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +108 -1
  2. package/dist/apis/AiGatewayApi.js +218 -1
  3. package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
  4. package/dist/models/AiGatewayV1CreditsUio.js +52 -0
  5. package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
  6. package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
  7. package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
  8. package/dist/models/AiGatewayV1EndpointUio.js +85 -0
  9. package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
  10. package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
  11. package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
  12. package/dist/models/AiGatewayV1GenerationUio.js +51 -0
  13. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
  14. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
  15. package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
  16. package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
  17. package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
  18. package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
  19. package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
  20. package/dist/models/AiGatewayV1ModelListUio.js +62 -0
  21. package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
  22. package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
  23. package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
  24. package/dist/models/AiGatewayV1ModelUio.js +99 -0
  25. package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
  26. package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
  27. package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
  28. package/dist/models/AiGatewayV1ReportUio.js +51 -0
  29. package/dist/models/index.d.ts +13 -0
  30. package/dist/models/index.js +13 -0
  31. package/dist/openapi.json +1176 -364
  32. package/package.json +1 -1
@@ -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;
@@ -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
+ }
@@ -65,6 +65,19 @@ export * from './AiGatewayUsageBreakdownItemUio';
65
65
  export * from './AiGatewayUsagePointUio';
66
66
  export * from './AiGatewayUsageTotalUio';
67
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';
68
81
  export * from './AnimationCreateRequestUio';
69
82
  export * from './AnimationUio';
70
83
  export * from './AnonymizationStatusUio';
@@ -83,6 +83,19 @@ __exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
83
83
  __exportStar(require("./AiGatewayUsagePointUio"), exports);
84
84
  __exportStar(require("./AiGatewayUsageTotalUio"), exports);
85
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);
86
99
  __exportStar(require("./AnimationCreateRequestUio"), exports);
87
100
  __exportStar(require("./AnimationUio"), exports);
88
101
  __exportStar(require("./AnonymizationStatusUio"), exports);