@breign/client 1.0.208 → 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/apis/ToolsApi.d.ts +6 -3
- package/dist/apis/ToolsApi.js +6 -3
- 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 +114 -9
- package/package.json +1 -1
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, McpCallLogEventUio, McpCallLogStatusUio, McpCallLogsDeletedResponseUio, McpCallLogsResponseUio, McpLogsSettingsRequestUio, McpLogsSettingsResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolOpenApiDefinitionInputUio, ToolOpenApiPreviewResponseUio, ToolOpenApiReimportRequestUio, ToolOpenApiReimportResponseUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, McpCallLogEventUio, McpCallLogStatusUio, McpCallLogsDeletedResponseUio, McpCallLogsResponseUio, McpLogsSettingsRequestUio, McpLogsSettingsResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolOpenApiDefinitionInputUio, ToolOpenApiPreviewResponseUio, ToolOpenApiReimportRequestUio, ToolOpenApiReimportResponseUio, ToolPresetTypeUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -43,6 +43,9 @@ export interface DisconnectOAuth2ToolRequest {
|
|
|
43
43
|
export interface GetToolConnectionStatusRequest {
|
|
44
44
|
toolId: string;
|
|
45
45
|
}
|
|
46
|
+
export interface GetToolPresetsRequest {
|
|
47
|
+
types?: Array<ToolPresetTypeUio>;
|
|
48
|
+
}
|
|
46
49
|
export interface GetToolSecureRequest {
|
|
47
50
|
toolId: string;
|
|
48
51
|
}
|
|
@@ -200,14 +203,14 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
200
203
|
* Get the list of active tool presets
|
|
201
204
|
* Get tool presets
|
|
202
205
|
*/
|
|
203
|
-
getToolPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
206
|
+
getToolPresetsRaw(requestParameters: GetToolPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
204
207
|
[key: string]: any;
|
|
205
208
|
}>>>;
|
|
206
209
|
/**
|
|
207
210
|
* Get the list of active tool presets
|
|
208
211
|
* Get tool presets
|
|
209
212
|
*/
|
|
210
|
-
getToolPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
213
|
+
getToolPresets(types?: Array<ToolPresetTypeUio>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
211
214
|
[key: string]: any;
|
|
212
215
|
}>>;
|
|
213
216
|
/**
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -337,8 +337,11 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
337
337
|
* Get the list of active tool presets
|
|
338
338
|
* Get tool presets
|
|
339
339
|
*/
|
|
340
|
-
async getToolPresetsRaw(initOverrides) {
|
|
340
|
+
async getToolPresetsRaw(requestParameters, initOverrides) {
|
|
341
341
|
const queryParameters = {};
|
|
342
|
+
if (requestParameters['types'] != null) {
|
|
343
|
+
queryParameters['types'] = requestParameters['types'];
|
|
344
|
+
}
|
|
342
345
|
const headerParameters = {};
|
|
343
346
|
if (this.configuration && this.configuration.apiKey) {
|
|
344
347
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -355,8 +358,8 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
355
358
|
* Get the list of active tool presets
|
|
356
359
|
* Get tool presets
|
|
357
360
|
*/
|
|
358
|
-
async getToolPresets(initOverrides) {
|
|
359
|
-
const response = await this.getToolPresetsRaw(initOverrides);
|
|
361
|
+
async getToolPresets(types, initOverrides) {
|
|
362
|
+
const response = await this.getToolPresetsRaw({ types: types }, initOverrides);
|
|
360
363
|
return await response.value();
|
|
361
364
|
}
|
|
362
365
|
/**
|
|
@@ -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
|
@@ -12959,6 +12959,20 @@
|
|
|
12959
12959
|
"get" : {
|
|
12960
12960
|
"description" : "Get the list of active tool presets",
|
|
12961
12961
|
"operationId" : "getToolPresets",
|
|
12962
|
+
"parameters" : [ {
|
|
12963
|
+
"description" : "Preset types the client knows how to add. Without it, only mcp presets are returned, so that a client predating preset types never offers an API or OpenAPI preset as an MCP server.",
|
|
12964
|
+
"explode" : true,
|
|
12965
|
+
"in" : "query",
|
|
12966
|
+
"name" : "types",
|
|
12967
|
+
"required" : false,
|
|
12968
|
+
"schema" : {
|
|
12969
|
+
"items" : {
|
|
12970
|
+
"$ref" : "#/components/schemas/ToolPresetType"
|
|
12971
|
+
},
|
|
12972
|
+
"type" : "array"
|
|
12973
|
+
},
|
|
12974
|
+
"style" : "form"
|
|
12975
|
+
} ],
|
|
12962
12976
|
"responses" : {
|
|
12963
12977
|
"200" : {
|
|
12964
12978
|
"content" : {
|
|
@@ -25871,6 +25885,9 @@
|
|
|
25871
25885
|
"periodComparison" : {
|
|
25872
25886
|
"$ref" : "#/components/schemas/AgentMetricsPeriodComparison"
|
|
25873
25887
|
},
|
|
25888
|
+
"tokenCost" : {
|
|
25889
|
+
"$ref" : "#/components/schemas/AgentTokenCost"
|
|
25890
|
+
},
|
|
25874
25891
|
"tokenUsage" : {
|
|
25875
25892
|
"items" : {
|
|
25876
25893
|
"$ref" : "#/components/schemas/AgentTokenUsageMetric"
|
|
@@ -26009,6 +26026,32 @@
|
|
|
26009
26026
|
"required" : [ "conversations", "ephemeralInstancesCreated", "errorConversationCount", "feedbackPositive", "totalRequests", "totalTokensUsed", "uniqueUsersCount" ],
|
|
26010
26027
|
"type" : "object"
|
|
26011
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
|
+
},
|
|
26012
26055
|
"AgentTokenUsageMetric" : {
|
|
26013
26056
|
"properties" : {
|
|
26014
26057
|
"provider" : {
|
|
@@ -30886,9 +30929,23 @@
|
|
|
30886
30929
|
"$ref" : "#/components/schemas/ModelConsumptionItem"
|
|
30887
30930
|
},
|
|
30888
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"
|
|
30889
30939
|
}
|
|
30890
30940
|
},
|
|
30891
|
-
"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.",
|
|
30892
30949
|
"type" : "object"
|
|
30893
30950
|
},
|
|
30894
30951
|
"ModelConsumptionItem" : {
|
|
@@ -30916,6 +30973,12 @@
|
|
|
30916
30973
|
"totalTokens" : {
|
|
30917
30974
|
"type" : "number"
|
|
30918
30975
|
},
|
|
30976
|
+
"cost" : {
|
|
30977
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
30978
|
+
},
|
|
30979
|
+
"unpricedTokens" : {
|
|
30980
|
+
"type" : "number"
|
|
30981
|
+
},
|
|
30919
30982
|
"sources" : {
|
|
30920
30983
|
"items" : {
|
|
30921
30984
|
"$ref" : "#/components/schemas/ModelConsumptionSlice"
|
|
@@ -30929,7 +30992,7 @@
|
|
|
30929
30992
|
"type" : "array"
|
|
30930
30993
|
}
|
|
30931
30994
|
},
|
|
30932
|
-
"required" : [ "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "users" ],
|
|
30995
|
+
"required" : [ "cost", "inputTokens", "model", "outputTokens", "provider", "providerName", "requests", "sources", "totalTokens", "unpricedTokens", "users" ],
|
|
30933
30996
|
"type" : "object"
|
|
30934
30997
|
},
|
|
30935
30998
|
"ModelConsumptionSlice" : {
|
|
@@ -30957,9 +31020,16 @@
|
|
|
30957
31020
|
},
|
|
30958
31021
|
"totalTokens" : {
|
|
30959
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"
|
|
30960
31030
|
}
|
|
30961
31031
|
},
|
|
30962
|
-
"required" : [ "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens" ],
|
|
31032
|
+
"required" : [ "cost", "inputTokens", "key", "kind", "label", "outputTokens", "requests", "totalTokens", "unpricedTokens" ],
|
|
30963
31033
|
"type" : "object"
|
|
30964
31034
|
},
|
|
30965
31035
|
"Guardian" : {
|
|
@@ -32211,6 +32281,10 @@
|
|
|
32211
32281
|
"title" : "ToolOpenApiCreate",
|
|
32212
32282
|
"type" : "object"
|
|
32213
32283
|
},
|
|
32284
|
+
"ToolPresetType" : {
|
|
32285
|
+
"enum" : [ "mcp", "tool_api", "openapi" ],
|
|
32286
|
+
"type" : "string"
|
|
32287
|
+
},
|
|
32214
32288
|
"TTSRequest" : {
|
|
32215
32289
|
"properties" : {
|
|
32216
32290
|
"text" : {
|
|
@@ -34806,7 +34880,7 @@
|
|
|
34806
34880
|
"type" : "object"
|
|
34807
34881
|
},
|
|
34808
34882
|
"AiGatewayUsageCost" : {
|
|
34809
|
-
"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).",
|
|
34810
34884
|
"properties" : {
|
|
34811
34885
|
"total" : {
|
|
34812
34886
|
"$ref" : "#/components/schemas/AiGatewayCostByCurrency"
|
|
@@ -40559,10 +40633,6 @@
|
|
|
40559
40633
|
"enum" : [ "pending", "done" ],
|
|
40560
40634
|
"type" : "string"
|
|
40561
40635
|
},
|
|
40562
|
-
"ToolPresetType" : {
|
|
40563
|
-
"enum" : [ "mcp", "tool_api", "openapi" ],
|
|
40564
|
-
"type" : "string"
|
|
40565
|
-
},
|
|
40566
40636
|
"ToolPresetTransport" : {
|
|
40567
40637
|
"enum" : [ "http", "sse" ],
|
|
40568
40638
|
"type" : "string"
|
|
@@ -41281,6 +41351,35 @@
|
|
|
41281
41351
|
"required" : [ "model", "providerId" ],
|
|
41282
41352
|
"type" : "object"
|
|
41283
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
|
+
},
|
|
41284
41383
|
"OrgUsageMetricsResponse_total" : {
|
|
41285
41384
|
"properties" : {
|
|
41286
41385
|
"requests" : {
|
|
@@ -42350,9 +42449,15 @@
|
|
|
42350
42449
|
},
|
|
42351
42450
|
"uniqueUsers" : {
|
|
42352
42451
|
"type" : "number"
|
|
42452
|
+
},
|
|
42453
|
+
"cost" : {
|
|
42454
|
+
"$ref" : "#/components/schemas/ModelConsumptionCost"
|
|
42455
|
+
},
|
|
42456
|
+
"unpricedTokens" : {
|
|
42457
|
+
"type" : "number"
|
|
42353
42458
|
}
|
|
42354
42459
|
},
|
|
42355
|
-
"required" : [ "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers" ],
|
|
42460
|
+
"required" : [ "cost", "inputTokens", "outputTokens", "requests", "totalTokens", "uniqueUsers", "unpricedTokens" ],
|
|
42356
42461
|
"type" : "object"
|
|
42357
42462
|
},
|
|
42358
42463
|
"OrganizationMember_user" : {
|