@breign/client 1.0.209 → 1.0.210
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/models/AgentMetricsOverviewUio.d.ts +7 -0
- package/dist/models/AgentMetricsOverviewUio.js +3 -0
- package/dist/models/AgentTokenCostByAppInnerUio.d.ts +40 -0
- package/dist/models/AgentTokenCostByAppInnerUio.js +54 -0
- package/dist/models/AgentTokenCostByModelInnerUio.d.ts +46 -0
- package/dist/models/AgentTokenCostByModelInnerUio.js +58 -0
- package/dist/models/AgentTokenCostUio.d.ts +54 -0
- package/dist/models/AgentTokenCostUio.js +64 -0
- package/dist/models/AiGatewayUsageCostUio.d.ts +1 -1
- package/dist/models/ModelConsumptionItemUio.d.ts +14 -0
- package/dist/models/ModelConsumptionItemUio.js +8 -0
- package/dist/models/ModelConsumptionSliceUio.d.ts +14 -0
- package/dist/models/ModelConsumptionSliceUio.js +8 -0
- package/dist/models/OrganizationModelConsumptionTotalUio.d.ts +14 -0
- package/dist/models/OrganizationModelConsumptionTotalUio.js +8 -0
- package/dist/models/OrganizationModelConsumptionUio.d.ts +7 -0
- package/dist/models/OrganizationModelConsumptionUio.js +5 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/openapi.json +96 -5
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SubscriptionMetricUio } from './SubscriptionMetricUio';
|
|
13
|
+
import type { AgentTokenCostUio } from './AgentTokenCostUio';
|
|
13
14
|
import type { AgentMetricsByAppUio } from './AgentMetricsByAppUio';
|
|
14
15
|
import type { AgentTokenUsageByTaskUio } from './AgentTokenUsageByTaskUio';
|
|
15
16
|
import type { AgentTokenBreakdownUio } from './AgentTokenBreakdownUio';
|
|
@@ -114,6 +115,12 @@ export interface AgentMetricsOverviewUio {
|
|
|
114
115
|
* @memberof AgentMetricsOverviewUio
|
|
115
116
|
*/
|
|
116
117
|
periodComparison?: AgentMetricsPeriodComparisonUio;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {AgentTokenCostUio}
|
|
121
|
+
* @memberof AgentMetricsOverviewUio
|
|
122
|
+
*/
|
|
123
|
+
tokenCost?: AgentTokenCostUio;
|
|
117
124
|
/**
|
|
118
125
|
*
|
|
119
126
|
* @type {Array<AgentTokenUsageMetricUio>}
|
|
@@ -19,6 +19,7 @@ exports.AgentMetricsOverviewUioFromJSONTyped = AgentMetricsOverviewUioFromJSONTy
|
|
|
19
19
|
exports.AgentMetricsOverviewUioToJSON = AgentMetricsOverviewUioToJSON;
|
|
20
20
|
exports.AgentMetricsOverviewUioToJSONTyped = AgentMetricsOverviewUioToJSONTyped;
|
|
21
21
|
const SubscriptionMetricUio_1 = require("./SubscriptionMetricUio");
|
|
22
|
+
const AgentTokenCostUio_1 = require("./AgentTokenCostUio");
|
|
22
23
|
const AgentMetricsByAppUio_1 = require("./AgentMetricsByAppUio");
|
|
23
24
|
const AgentTokenUsageByTaskUio_1 = require("./AgentTokenUsageByTaskUio");
|
|
24
25
|
const AgentTokenBreakdownUio_1 = require("./AgentTokenBreakdownUio");
|
|
@@ -64,6 +65,7 @@ function AgentMetricsOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
65
|
'metricsByApp': json['metricsByApp'] == null ? undefined : (json['metricsByApp'].map(AgentMetricsByAppUio_1.AgentMetricsByAppUioFromJSON)),
|
|
65
66
|
'topTools': json['topTools'] == null ? undefined : (json['topTools'].map(AgentToolUsageMetricUio_1.AgentToolUsageMetricUioFromJSON)),
|
|
66
67
|
'periodComparison': json['periodComparison'] == null ? undefined : (0, AgentMetricsPeriodComparisonUio_1.AgentMetricsPeriodComparisonUioFromJSON)(json['periodComparison']),
|
|
68
|
+
'tokenCost': json['tokenCost'] == null ? undefined : (0, AgentTokenCostUio_1.AgentTokenCostUioFromJSON)(json['tokenCost']),
|
|
67
69
|
'tokenUsage': json['tokenUsage'] == null ? undefined : (json['tokenUsage'].map(AgentTokenUsageMetricUio_1.AgentTokenUsageMetricUioFromJSON)),
|
|
68
70
|
'subscription': json['subscription'] == null ? undefined : (0, SubscriptionMetricUio_1.SubscriptionMetricUioFromJSON)(json['subscription']),
|
|
69
71
|
'costs': json['costs'] == null ? undefined : (0, CostMetricUio_1.CostMetricUioFromJSON)(json['costs']),
|
|
@@ -92,6 +94,7 @@ function AgentMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
92
94
|
'metricsByApp': value['metricsByApp'] == null ? undefined : (value['metricsByApp'].map(AgentMetricsByAppUio_1.AgentMetricsByAppUioToJSON)),
|
|
93
95
|
'topTools': value['topTools'] == null ? undefined : (value['topTools'].map(AgentToolUsageMetricUio_1.AgentToolUsageMetricUioToJSON)),
|
|
94
96
|
'periodComparison': (0, AgentMetricsPeriodComparisonUio_1.AgentMetricsPeriodComparisonUioToJSON)(value['periodComparison']),
|
|
97
|
+
'tokenCost': (0, AgentTokenCostUio_1.AgentTokenCostUioToJSON)(value['tokenCost']),
|
|
95
98
|
'tokenUsage': value['tokenUsage'] == null ? undefined : (value['tokenUsage'].map(AgentTokenUsageMetricUio_1.AgentTokenUsageMetricUioToJSON)),
|
|
96
99
|
'subscription': (0, SubscriptionMetricUio_1.SubscriptionMetricUioToJSON)(value['subscription']),
|
|
97
100
|
'costs': (0, CostMetricUio_1.CostMetricUioToJSON)(value['costs']),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 AgentTokenCostByAppInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentTokenCostByAppInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
* Null pour les tours sans app (appel direct).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentTokenCostByAppInnerUio
|
|
22
|
+
*/
|
|
23
|
+
appId: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
26
|
+
* @type {{ [key: string]: number; }}
|
|
27
|
+
* @memberof AgentTokenCostByAppInnerUio
|
|
28
|
+
*/
|
|
29
|
+
cost: {
|
|
30
|
+
[key: string]: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AgentTokenCostByAppInnerUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfAgentTokenCostByAppInnerUio(value: object): value is AgentTokenCostByAppInnerUio;
|
|
37
|
+
export declare function AgentTokenCostByAppInnerUioFromJSON(json: any): AgentTokenCostByAppInnerUio;
|
|
38
|
+
export declare function AgentTokenCostByAppInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenCostByAppInnerUio;
|
|
39
|
+
export declare function AgentTokenCostByAppInnerUioToJSON(json: any): AgentTokenCostByAppInnerUio;
|
|
40
|
+
export declare function AgentTokenCostByAppInnerUioToJSONTyped(value?: AgentTokenCostByAppInnerUio | 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.instanceOfAgentTokenCostByAppInnerUio = instanceOfAgentTokenCostByAppInnerUio;
|
|
17
|
+
exports.AgentTokenCostByAppInnerUioFromJSON = AgentTokenCostByAppInnerUioFromJSON;
|
|
18
|
+
exports.AgentTokenCostByAppInnerUioFromJSONTyped = AgentTokenCostByAppInnerUioFromJSONTyped;
|
|
19
|
+
exports.AgentTokenCostByAppInnerUioToJSON = AgentTokenCostByAppInnerUioToJSON;
|
|
20
|
+
exports.AgentTokenCostByAppInnerUioToJSONTyped = AgentTokenCostByAppInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentTokenCostByAppInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentTokenCostByAppInnerUio(value) {
|
|
25
|
+
if (!('appId' in value) || value['appId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentTokenCostByAppInnerUioFromJSON(json) {
|
|
32
|
+
return AgentTokenCostByAppInnerUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentTokenCostByAppInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'appId': json['appId'],
|
|
40
|
+
'cost': json['cost'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentTokenCostByAppInnerUioToJSON(json) {
|
|
44
|
+
return AgentTokenCostByAppInnerUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentTokenCostByAppInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'appId': value['appId'],
|
|
52
|
+
'cost': value['cost'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentTokenCostByModelInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentTokenCostByModelInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentTokenCostByModelInnerUio
|
|
22
|
+
*/
|
|
23
|
+
provider: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentTokenCostByModelInnerUio
|
|
28
|
+
*/
|
|
29
|
+
model: string;
|
|
30
|
+
/**
|
|
31
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
32
|
+
* @type {{ [key: string]: number; }}
|
|
33
|
+
* @memberof AgentTokenCostByModelInnerUio
|
|
34
|
+
*/
|
|
35
|
+
cost: {
|
|
36
|
+
[key: string]: number;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AgentTokenCostByModelInnerUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAgentTokenCostByModelInnerUio(value: object): value is AgentTokenCostByModelInnerUio;
|
|
43
|
+
export declare function AgentTokenCostByModelInnerUioFromJSON(json: any): AgentTokenCostByModelInnerUio;
|
|
44
|
+
export declare function AgentTokenCostByModelInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenCostByModelInnerUio;
|
|
45
|
+
export declare function AgentTokenCostByModelInnerUioToJSON(json: any): AgentTokenCostByModelInnerUio;
|
|
46
|
+
export declare function AgentTokenCostByModelInnerUioToJSONTyped(value?: AgentTokenCostByModelInnerUio | 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.instanceOfAgentTokenCostByModelInnerUio = instanceOfAgentTokenCostByModelInnerUio;
|
|
17
|
+
exports.AgentTokenCostByModelInnerUioFromJSON = AgentTokenCostByModelInnerUioFromJSON;
|
|
18
|
+
exports.AgentTokenCostByModelInnerUioFromJSONTyped = AgentTokenCostByModelInnerUioFromJSONTyped;
|
|
19
|
+
exports.AgentTokenCostByModelInnerUioToJSON = AgentTokenCostByModelInnerUioToJSON;
|
|
20
|
+
exports.AgentTokenCostByModelInnerUioToJSONTyped = AgentTokenCostByModelInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentTokenCostByModelInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentTokenCostByModelInnerUio(value) {
|
|
25
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AgentTokenCostByModelInnerUioFromJSON(json) {
|
|
34
|
+
return AgentTokenCostByModelInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AgentTokenCostByModelInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'provider': json['provider'],
|
|
42
|
+
'model': json['model'],
|
|
43
|
+
'cost': json['cost'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AgentTokenCostByModelInnerUioToJSON(json) {
|
|
47
|
+
return AgentTokenCostByModelInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AgentTokenCostByModelInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'provider': value['provider'],
|
|
55
|
+
'model': value['model'],
|
|
56
|
+
'cost': value['cost'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { AgentTokenCostByAppInnerUio } from './AgentTokenCostByAppInnerUio';
|
|
13
|
+
import type { AgentTokenCostByModelInnerUio } from './AgentTokenCostByModelInnerUio';
|
|
14
|
+
/**
|
|
15
|
+
* Coût des tokens de l'agent sur la période (coût figé à l'écriture, sinon prix actuel). Joint seulement pour un administrateur de l'organisation ; les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AgentTokenCostUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AgentTokenCostUio {
|
|
20
|
+
/**
|
|
21
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
22
|
+
* @type {{ [key: string]: number; }}
|
|
23
|
+
* @memberof AgentTokenCostUio
|
|
24
|
+
*/
|
|
25
|
+
total: {
|
|
26
|
+
[key: string]: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Tokens sans prix connu ; le coût est alors une estimation partielle.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof AgentTokenCostUio
|
|
32
|
+
*/
|
|
33
|
+
unpricedTokens: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<AgentTokenCostByAppInnerUio>}
|
|
37
|
+
* @memberof AgentTokenCostUio
|
|
38
|
+
*/
|
|
39
|
+
byApp: Array<AgentTokenCostByAppInnerUio>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<AgentTokenCostByModelInnerUio>}
|
|
43
|
+
* @memberof AgentTokenCostUio
|
|
44
|
+
*/
|
|
45
|
+
byModel: Array<AgentTokenCostByModelInnerUio>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AgentTokenCostUio interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAgentTokenCostUio(value: object): value is AgentTokenCostUio;
|
|
51
|
+
export declare function AgentTokenCostUioFromJSON(json: any): AgentTokenCostUio;
|
|
52
|
+
export declare function AgentTokenCostUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenCostUio;
|
|
53
|
+
export declare function AgentTokenCostUioToJSON(json: any): AgentTokenCostUio;
|
|
54
|
+
export declare function AgentTokenCostUioToJSONTyped(value?: AgentTokenCostUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfAgentTokenCostUio = instanceOfAgentTokenCostUio;
|
|
17
|
+
exports.AgentTokenCostUioFromJSON = AgentTokenCostUioFromJSON;
|
|
18
|
+
exports.AgentTokenCostUioFromJSONTyped = AgentTokenCostUioFromJSONTyped;
|
|
19
|
+
exports.AgentTokenCostUioToJSON = AgentTokenCostUioToJSON;
|
|
20
|
+
exports.AgentTokenCostUioToJSONTyped = AgentTokenCostUioToJSONTyped;
|
|
21
|
+
const AgentTokenCostByAppInnerUio_1 = require("./AgentTokenCostByAppInnerUio");
|
|
22
|
+
const AgentTokenCostByModelInnerUio_1 = require("./AgentTokenCostByModelInnerUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AgentTokenCostUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAgentTokenCostUio(value) {
|
|
27
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('byApp' in value) || value['byApp'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('byModel' in value) || value['byModel'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AgentTokenCostUioFromJSON(json) {
|
|
38
|
+
return AgentTokenCostUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AgentTokenCostUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'unpricedTokens': json['unpricedTokens'],
|
|
47
|
+
'byApp': (json['byApp'].map(AgentTokenCostByAppInnerUio_1.AgentTokenCostByAppInnerUioFromJSON)),
|
|
48
|
+
'byModel': (json['byModel'].map(AgentTokenCostByModelInnerUio_1.AgentTokenCostByModelInnerUioFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AgentTokenCostUioToJSON(json) {
|
|
52
|
+
return AgentTokenCostUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AgentTokenCostUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'total': value['total'],
|
|
60
|
+
'unpricedTokens': value['unpricedTokens'],
|
|
61
|
+
'byApp': (value['byApp'].map(AgentTokenCostByAppInnerUio_1.AgentTokenCostByAppInnerUioToJSON)),
|
|
62
|
+
'byModel': (value['byModel'].map(AgentTokenCostByModelInnerUio_1.AgentTokenCostByModelInnerUioToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Coût
|
|
13
|
+
* Coût estimé du périmètre demandé : moteurs de l'organisation, ou modèles Breign (`providerSource=INTERNAL`, réservé au superAdmin).
|
|
14
14
|
* @export
|
|
15
15
|
* @interface AiGatewayUsageCostUio
|
|
16
16
|
*/
|
|
@@ -58,6 +58,20 @@ export interface ModelConsumptionItemUio {
|
|
|
58
58
|
* @memberof ModelConsumptionItemUio
|
|
59
59
|
*/
|
|
60
60
|
totalTokens: number;
|
|
61
|
+
/**
|
|
62
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
63
|
+
* @type {{ [key: string]: number; }}
|
|
64
|
+
* @memberof ModelConsumptionItemUio
|
|
65
|
+
*/
|
|
66
|
+
cost: {
|
|
67
|
+
[key: string]: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof ModelConsumptionItemUio
|
|
73
|
+
*/
|
|
74
|
+
unpricedTokens: number;
|
|
61
75
|
/**
|
|
62
76
|
*
|
|
63
77
|
* @type {Array<ModelConsumptionSliceUio>}
|
|
@@ -37,6 +37,10 @@ function instanceOfModelConsumptionItemUio(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
|
|
43
|
+
return false;
|
|
40
44
|
if (!('sources' in value) || value['sources'] === undefined)
|
|
41
45
|
return false;
|
|
42
46
|
if (!('users' in value) || value['users'] === undefined)
|
|
@@ -58,6 +62,8 @@ function ModelConsumptionItemUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
62
|
'inputTokens': json['inputTokens'],
|
|
59
63
|
'outputTokens': json['outputTokens'],
|
|
60
64
|
'totalTokens': json['totalTokens'],
|
|
65
|
+
'cost': json['cost'],
|
|
66
|
+
'unpricedTokens': json['unpricedTokens'],
|
|
61
67
|
'sources': (json['sources'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioFromJSON)),
|
|
62
68
|
'users': (json['users'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioFromJSON)),
|
|
63
69
|
};
|
|
@@ -77,6 +83,8 @@ function ModelConsumptionItemUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
77
83
|
'inputTokens': value['inputTokens'],
|
|
78
84
|
'outputTokens': value['outputTokens'],
|
|
79
85
|
'totalTokens': value['totalTokens'],
|
|
86
|
+
'cost': value['cost'],
|
|
87
|
+
'unpricedTokens': value['unpricedTokens'],
|
|
80
88
|
'sources': (value['sources'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioToJSON)),
|
|
81
89
|
'users': (value['users'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioToJSON)),
|
|
82
90
|
};
|
|
@@ -57,6 +57,20 @@ export interface ModelConsumptionSliceUio {
|
|
|
57
57
|
* @memberof ModelConsumptionSliceUio
|
|
58
58
|
*/
|
|
59
59
|
totalTokens: number;
|
|
60
|
+
/**
|
|
61
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
62
|
+
* @type {{ [key: string]: number; }}
|
|
63
|
+
* @memberof ModelConsumptionSliceUio
|
|
64
|
+
*/
|
|
65
|
+
cost: {
|
|
66
|
+
[key: string]: number;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Tokens sans prix connu ; le coût est alors une estimation partielle.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof ModelConsumptionSliceUio
|
|
72
|
+
*/
|
|
73
|
+
unpricedTokens: number;
|
|
60
74
|
}
|
|
61
75
|
/**
|
|
62
76
|
* @export
|
|
@@ -46,6 +46,10 @@ function instanceOfModelConsumptionSliceUio(value) {
|
|
|
46
46
|
return false;
|
|
47
47
|
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
|
|
52
|
+
return false;
|
|
49
53
|
return true;
|
|
50
54
|
}
|
|
51
55
|
function ModelConsumptionSliceUioFromJSON(json) {
|
|
@@ -63,6 +67,8 @@ function ModelConsumptionSliceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
67
|
'inputTokens': json['inputTokens'],
|
|
64
68
|
'outputTokens': json['outputTokens'],
|
|
65
69
|
'totalTokens': json['totalTokens'],
|
|
70
|
+
'cost': json['cost'],
|
|
71
|
+
'unpricedTokens': json['unpricedTokens'],
|
|
66
72
|
};
|
|
67
73
|
}
|
|
68
74
|
function ModelConsumptionSliceUioToJSON(json) {
|
|
@@ -80,5 +86,7 @@ function ModelConsumptionSliceUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
80
86
|
'inputTokens': value['inputTokens'],
|
|
81
87
|
'outputTokens': value['outputTokens'],
|
|
82
88
|
'totalTokens': value['totalTokens'],
|
|
89
|
+
'cost': value['cost'],
|
|
90
|
+
'unpricedTokens': value['unpricedTokens'],
|
|
83
91
|
};
|
|
84
92
|
}
|
|
@@ -45,6 +45,20 @@ export interface OrganizationModelConsumptionTotalUio {
|
|
|
45
45
|
* @memberof OrganizationModelConsumptionTotalUio
|
|
46
46
|
*/
|
|
47
47
|
uniqueUsers: number;
|
|
48
|
+
/**
|
|
49
|
+
* Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.
|
|
50
|
+
* @type {{ [key: string]: number; }}
|
|
51
|
+
* @memberof OrganizationModelConsumptionTotalUio
|
|
52
|
+
*/
|
|
53
|
+
cost: {
|
|
54
|
+
[key: string]: number;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof OrganizationModelConsumptionTotalUio
|
|
60
|
+
*/
|
|
61
|
+
unpricedTokens: number;
|
|
48
62
|
}
|
|
49
63
|
/**
|
|
50
64
|
* Check if a given object implements the OrganizationModelConsumptionTotalUio interface.
|
|
@@ -32,6 +32,10 @@ function instanceOfOrganizationModelConsumptionTotalUio(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('uniqueUsers' in value) || value['uniqueUsers'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
|
|
38
|
+
return false;
|
|
35
39
|
return true;
|
|
36
40
|
}
|
|
37
41
|
function OrganizationModelConsumptionTotalUioFromJSON(json) {
|
|
@@ -47,6 +51,8 @@ function OrganizationModelConsumptionTotalUioFromJSONTyped(json, ignoreDiscrimin
|
|
|
47
51
|
'outputTokens': json['outputTokens'],
|
|
48
52
|
'totalTokens': json['totalTokens'],
|
|
49
53
|
'uniqueUsers': json['uniqueUsers'],
|
|
54
|
+
'cost': json['cost'],
|
|
55
|
+
'unpricedTokens': json['unpricedTokens'],
|
|
50
56
|
};
|
|
51
57
|
}
|
|
52
58
|
function OrganizationModelConsumptionTotalUioToJSON(json) {
|
|
@@ -62,5 +68,7 @@ function OrganizationModelConsumptionTotalUioToJSONTyped(value, ignoreDiscrimina
|
|
|
62
68
|
'outputTokens': value['outputTokens'],
|
|
63
69
|
'totalTokens': value['totalTokens'],
|
|
64
70
|
'uniqueUsers': value['uniqueUsers'],
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'unpricedTokens': value['unpricedTokens'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ModelConsumptionSliceUio } from './ModelConsumptionSliceUio';
|
|
12
13
|
import type { OrganizationModelConsumptionTotalUio } from './OrganizationModelConsumptionTotalUio';
|
|
13
14
|
import type { ModelConsumptionItemUio } from './ModelConsumptionItemUio';
|
|
14
15
|
/**
|
|
@@ -29,6 +30,12 @@ export interface OrganizationModelConsumptionUio {
|
|
|
29
30
|
* @memberof OrganizationModelConsumptionUio
|
|
30
31
|
*/
|
|
31
32
|
byModel: Array<ModelConsumptionItemUio>;
|
|
33
|
+
/**
|
|
34
|
+
* Consommation par utilisateur, tous modèles confondus.
|
|
35
|
+
* @type {Array<ModelConsumptionSliceUio>}
|
|
36
|
+
* @memberof OrganizationModelConsumptionUio
|
|
37
|
+
*/
|
|
38
|
+
byUser: Array<ModelConsumptionSliceUio>;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the OrganizationModelConsumptionUio interface.
|
|
@@ -18,6 +18,7 @@ exports.OrganizationModelConsumptionUioFromJSON = OrganizationModelConsumptionUi
|
|
|
18
18
|
exports.OrganizationModelConsumptionUioFromJSONTyped = OrganizationModelConsumptionUioFromJSONTyped;
|
|
19
19
|
exports.OrganizationModelConsumptionUioToJSON = OrganizationModelConsumptionUioToJSON;
|
|
20
20
|
exports.OrganizationModelConsumptionUioToJSONTyped = OrganizationModelConsumptionUioToJSONTyped;
|
|
21
|
+
const ModelConsumptionSliceUio_1 = require("./ModelConsumptionSliceUio");
|
|
21
22
|
const OrganizationModelConsumptionTotalUio_1 = require("./OrganizationModelConsumptionTotalUio");
|
|
22
23
|
const ModelConsumptionItemUio_1 = require("./ModelConsumptionItemUio");
|
|
23
24
|
/**
|
|
@@ -28,6 +29,8 @@ function instanceOfOrganizationModelConsumptionUio(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('byModel' in value) || value['byModel'] === undefined)
|
|
30
31
|
return false;
|
|
32
|
+
if (!('byUser' in value) || value['byUser'] === undefined)
|
|
33
|
+
return false;
|
|
31
34
|
return true;
|
|
32
35
|
}
|
|
33
36
|
function OrganizationModelConsumptionUioFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ function OrganizationModelConsumptionUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
40
43
|
return {
|
|
41
44
|
'total': (0, OrganizationModelConsumptionTotalUio_1.OrganizationModelConsumptionTotalUioFromJSON)(json['total']),
|
|
42
45
|
'byModel': (json['byModel'].map(ModelConsumptionItemUio_1.ModelConsumptionItemUioFromJSON)),
|
|
46
|
+
'byUser': (json['byUser'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioFromJSON)),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
function OrganizationModelConsumptionUioToJSON(json) {
|
|
@@ -52,5 +56,6 @@ function OrganizationModelConsumptionUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
52
56
|
return {
|
|
53
57
|
'total': (0, OrganizationModelConsumptionTotalUio_1.OrganizationModelConsumptionTotalUioToJSON)(value['total']),
|
|
54
58
|
'byModel': (value['byModel'].map(ModelConsumptionItemUio_1.ModelConsumptionItemUioToJSON)),
|
|
59
|
+
'byUser': (value['byUser'].map(ModelConsumptionSliceUio_1.ModelConsumptionSliceUioToJSON)),
|
|
55
60
|
};
|
|
56
61
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -85,6 +85,9 @@ export * from './AgentSubscriptionUio';
|
|
|
85
85
|
export * from './AgentTicketActivityUio';
|
|
86
86
|
export * from './AgentTicketCreationUio';
|
|
87
87
|
export * from './AgentTokenBreakdownUio';
|
|
88
|
+
export * from './AgentTokenCostByAppInnerUio';
|
|
89
|
+
export * from './AgentTokenCostByModelInnerUio';
|
|
90
|
+
export * from './AgentTokenCostUio';
|
|
88
91
|
export * from './AgentTokenUsageByTaskUio';
|
|
89
92
|
export * from './AgentTokenUsageMetricUio';
|
|
90
93
|
export * from './AgentToolAllowedMethodsRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -103,6 +103,9 @@ __exportStar(require("./AgentSubscriptionUio"), exports);
|
|
|
103
103
|
__exportStar(require("./AgentTicketActivityUio"), exports);
|
|
104
104
|
__exportStar(require("./AgentTicketCreationUio"), exports);
|
|
105
105
|
__exportStar(require("./AgentTokenBreakdownUio"), exports);
|
|
106
|
+
__exportStar(require("./AgentTokenCostByAppInnerUio"), exports);
|
|
107
|
+
__exportStar(require("./AgentTokenCostByModelInnerUio"), exports);
|
|
108
|
+
__exportStar(require("./AgentTokenCostUio"), exports);
|
|
106
109
|
__exportStar(require("./AgentTokenUsageByTaskUio"), exports);
|
|
107
110
|
__exportStar(require("./AgentTokenUsageMetricUio"), exports);
|
|
108
111
|
__exportStar(require("./AgentToolAllowedMethodsRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -25885,6 +25885,9 @@
|
|
|
25885
25885
|
"periodComparison" : {
|
|
25886
25886
|
"$ref" : "#/components/schemas/AgentMetricsPeriodComparison"
|
|
25887
25887
|
},
|
|
25888
|
+
"tokenCost" : {
|
|
25889
|
+
"$ref" : "#/components/schemas/AgentTokenCost"
|
|
25890
|
+
},
|
|
25888
25891
|
"tokenUsage" : {
|
|
25889
25892
|
"items" : {
|
|
25890
25893
|
"$ref" : "#/components/schemas/AgentTokenUsageMetric"
|
|
@@ -26023,6 +26026,32 @@
|
|
|
26023
26026
|
"required" : [ "conversations", "ephemeralInstancesCreated", "errorConversationCount", "feedbackPositive", "totalRequests", "totalTokensUsed", "uniqueUsersCount" ],
|
|
26024
26027
|
"type" : "object"
|
|
26025
26028
|
},
|
|
26029
|
+
"AgentTokenCost" : {
|
|
26030
|
+
"description" : "Coût des tokens de l'agent sur la période (coût figé à l'écriture, sinon prix actuel). Joint seulement pour un administrateur de l'organisation ; les modèles Breign ne sont valorisés que pour le superAdmin.",
|
|
26031
|
+
"properties" : {
|
|
26032
|
+
"total" : {
|
|
26033
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
26034
|
+
},
|
|
26035
|
+
"unpricedTokens" : {
|
|
26036
|
+
"description" : "Tokens sans prix connu ; le coût est alors une estimation partielle.",
|
|
26037
|
+
"type" : "number"
|
|
26038
|
+
},
|
|
26039
|
+
"byApp" : {
|
|
26040
|
+
"items" : {
|
|
26041
|
+
"$ref" : "#/components/schemas/AgentTokenCost_byApp_inner"
|
|
26042
|
+
},
|
|
26043
|
+
"type" : "array"
|
|
26044
|
+
},
|
|
26045
|
+
"byModel" : {
|
|
26046
|
+
"items" : {
|
|
26047
|
+
"$ref" : "#/components/schemas/AgentTokenCost_byModel_inner"
|
|
26048
|
+
},
|
|
26049
|
+
"type" : "array"
|
|
26050
|
+
}
|
|
26051
|
+
},
|
|
26052
|
+
"required" : [ "byApp", "byModel", "total", "unpricedTokens" ],
|
|
26053
|
+
"type" : "object"
|
|
26054
|
+
},
|
|
26026
26055
|
"AgentTokenUsageMetric" : {
|
|
26027
26056
|
"properties" : {
|
|
26028
26057
|
"provider" : {
|
|
@@ -30900,9 +30929,23 @@
|
|
|
30900
30929
|
"$ref" : "#/components/schemas/ModelConsumptionItem"
|
|
30901
30930
|
},
|
|
30902
30931
|
"type" : "array"
|
|
30932
|
+
},
|
|
30933
|
+
"byUser" : {
|
|
30934
|
+
"description" : "Consommation par utilisateur, tous modèles confondus.",
|
|
30935
|
+
"items" : {
|
|
30936
|
+
"$ref" : "#/components/schemas/ModelConsumptionSlice"
|
|
30937
|
+
},
|
|
30938
|
+
"type" : "array"
|
|
30903
30939
|
}
|
|
30904
30940
|
},
|
|
30905
|
-
"required" : [ "byModel", "total" ],
|
|
30941
|
+
"required" : [ "byModel", "byUser", "total" ],
|
|
30942
|
+
"type" : "object"
|
|
30943
|
+
},
|
|
30944
|
+
"ModelConsumptionCost" : {
|
|
30945
|
+
"additionalProperties" : {
|
|
30946
|
+
"type" : "number"
|
|
30947
|
+
},
|
|
30948
|
+
"description" : "Montant par devise ISO ; deux devises ne s'additionnent pas. Coût figé à l'écriture de la métrique, sinon prix actuel. Les modèles Breign ne sont valorisés que pour le superAdmin.",
|
|
30906
30949
|
"type" : "object"
|
|
30907
30950
|
},
|
|
30908
30951
|
"ModelConsumptionItem" : {
|
|
@@ -30930,6 +30973,12 @@
|
|
|
30930
30973
|
"totalTokens" : {
|
|
30931
30974
|
"type" : "number"
|
|
30932
30975
|
},
|
|
30976
|
+
"cost" : {
|
|
30977
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
30978
|
+
},
|
|
30979
|
+
"unpricedTokens" : {
|
|
30980
|
+
"type" : "number"
|
|
30981
|
+
},
|
|
30933
30982
|
"sources" : {
|
|
30934
30983
|
"items" : {
|
|
30935
30984
|
"$ref" : "#/components/schemas/ModelConsumptionSlice"
|
|
@@ -30943,7 +30992,7 @@
|
|
|
30943
30992
|
"type" : "array"
|
|
30944
30993
|
}
|
|
30945
30994
|
},
|
|
30946
|
-
"required" : [ "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "users" ],
|
|
30995
|
+
"required" : [ "cost", "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "unpricedTokens", "users" ],
|
|
30947
30996
|
"type" : "object"
|
|
30948
30997
|
},
|
|
30949
30998
|
"ModelConsumptionSlice" : {
|
|
@@ -30971,9 +31020,16 @@
|
|
|
30971
31020
|
},
|
|
30972
31021
|
"totalTokens" : {
|
|
30973
31022
|
"type" : "number"
|
|
31023
|
+
},
|
|
31024
|
+
"cost" : {
|
|
31025
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
31026
|
+
},
|
|
31027
|
+
"unpricedTokens" : {
|
|
31028
|
+
"description" : "Tokens sans prix connu ; le coût est alors une estimation partielle.",
|
|
31029
|
+
"type" : "number"
|
|
30974
31030
|
}
|
|
30975
31031
|
},
|
|
30976
|
-
"required" : [ "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens" ],
|
|
31032
|
+
"required" : [ "cost", "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens", "unpricedTokens" ],
|
|
30977
31033
|
"type" : "object"
|
|
30978
31034
|
},
|
|
30979
31035
|
"Guardian" : {
|
|
@@ -34824,7 +34880,7 @@
|
|
|
34824
34880
|
"type" : "object"
|
|
34825
34881
|
},
|
|
34826
34882
|
"AiGatewayUsageCost" : {
|
|
34827
|
-
"description" : "Coût
|
|
34883
|
+
"description" : "Coût estimé du périmètre demandé : moteurs de l'organisation, ou modèles Breign (`providerSource=INTERNAL`, réservé au superAdmin).",
|
|
34828
34884
|
"properties" : {
|
|
34829
34885
|
"total" : {
|
|
34830
34886
|
"$ref" : "#/components/schemas/AiGatewayCostByCurrency"
|
|
@@ -41295,6 +41351,35 @@
|
|
|
41295
41351
|
"required" : [ "model", "providerId" ],
|
|
41296
41352
|
"type" : "object"
|
|
41297
41353
|
},
|
|
41354
|
+
"AgentTokenCost_byApp_inner" : {
|
|
41355
|
+
"properties" : {
|
|
41356
|
+
"appId" : {
|
|
41357
|
+
"description" : "Null pour les tours sans app (appel direct).",
|
|
41358
|
+
"nullable" : true,
|
|
41359
|
+
"type" : "string"
|
|
41360
|
+
},
|
|
41361
|
+
"cost" : {
|
|
41362
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
41363
|
+
}
|
|
41364
|
+
},
|
|
41365
|
+
"required" : [ "appId", "cost" ],
|
|
41366
|
+
"type" : "object"
|
|
41367
|
+
},
|
|
41368
|
+
"AgentTokenCost_byModel_inner" : {
|
|
41369
|
+
"properties" : {
|
|
41370
|
+
"provider" : {
|
|
41371
|
+
"type" : "string"
|
|
41372
|
+
},
|
|
41373
|
+
"model" : {
|
|
41374
|
+
"type" : "string"
|
|
41375
|
+
},
|
|
41376
|
+
"cost" : {
|
|
41377
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
41378
|
+
}
|
|
41379
|
+
},
|
|
41380
|
+
"required" : [ "cost", "model", "provider" ],
|
|
41381
|
+
"type" : "object"
|
|
41382
|
+
},
|
|
41298
41383
|
"OrgUsageMetricsResponse_total" : {
|
|
41299
41384
|
"properties" : {
|
|
41300
41385
|
"requests" : {
|
|
@@ -42364,9 +42449,15 @@
|
|
|
42364
42449
|
},
|
|
42365
42450
|
"uniqueUsers" : {
|
|
42366
42451
|
"type" : "number"
|
|
42452
|
+
},
|
|
42453
|
+
"cost" : {
|
|
42454
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
42455
|
+
},
|
|
42456
|
+
"unpricedTokens" : {
|
|
42457
|
+
"type" : "number"
|
|
42367
42458
|
}
|
|
42368
42459
|
},
|
|
42369
|
-
"required" : [ "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers" ],
|
|
42460
|
+
"required" : [ "cost", "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers", "unpricedTokens" ],
|
|
42370
42461
|
"type" : "object"
|
|
42371
42462
|
},
|
|
42372
42463
|
"OrganizationMember_user" : {
|