@breign/client 1.0.206 → 1.0.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AiGatewayApi.d.ts +36 -1
- package/dist/apis/AiGatewayApi.js +85 -0
- package/dist/models/AiGatewayRequestLogCursorUio.d.ts +38 -0
- package/dist/models/AiGatewayRequestLogCursorUio.js +54 -0
- package/dist/models/AiGatewayRequestLogStatusUio.d.ts +25 -0
- package/dist/models/AiGatewayRequestLogStatusUio.js +51 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.d.ts +141 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.js +123 -0
- package/dist/models/AiGatewayRequestLogUio.d.ts +157 -0
- package/dist/models/AiGatewayRequestLogUio.js +131 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.d.ts +46 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.js +60 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +280 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
13
|
+
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewayRequestLogStatusUio, AiGatewayRequestLogUio, AiGatewayRequestLogsResponseUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateAiGatewayChatCompletionRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
aiGatewayChatCompletionRequestUio: AiGatewayChatCompletionRequestUio;
|
|
@@ -44,6 +44,10 @@ export interface GetAiGatewayModelRequest {
|
|
|
44
44
|
organizationId: string;
|
|
45
45
|
model: string;
|
|
46
46
|
}
|
|
47
|
+
export interface GetAiGatewayRequestLogRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
logId: string;
|
|
50
|
+
}
|
|
47
51
|
export interface GetAiGatewaySettingsRequest {
|
|
48
52
|
organizationId: string;
|
|
49
53
|
}
|
|
@@ -74,6 +78,17 @@ export interface GetAiGatewayV1ReportRequest {
|
|
|
74
78
|
export interface ListAiGatewayModelsRequest {
|
|
75
79
|
organizationId: string;
|
|
76
80
|
}
|
|
81
|
+
export interface ListAiGatewayRequestLogsRequest {
|
|
82
|
+
organizationId: string;
|
|
83
|
+
userId?: string;
|
|
84
|
+
model?: string;
|
|
85
|
+
status?: AiGatewayRequestLogStatusUio;
|
|
86
|
+
startDate?: Date;
|
|
87
|
+
endDate?: Date;
|
|
88
|
+
limit?: number;
|
|
89
|
+
beforeCreatedAt?: string;
|
|
90
|
+
beforeId?: string;
|
|
91
|
+
}
|
|
77
92
|
export interface ListAiGatewayV1ModelsRequest {
|
|
78
93
|
organizationId: string;
|
|
79
94
|
}
|
|
@@ -169,6 +184,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
169
184
|
* Get a model available through the AI gateway
|
|
170
185
|
*/
|
|
171
186
|
getAiGatewayModel(organizationId: string, model: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayModelUio>;
|
|
187
|
+
/**
|
|
188
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
189
|
+
* Read one request sent to a provider, with its content
|
|
190
|
+
*/
|
|
191
|
+
getAiGatewayRequestLogRaw(requestParameters: GetAiGatewayRequestLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewayRequestLogUio>>;
|
|
192
|
+
/**
|
|
193
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
194
|
+
* Read one request sent to a provider, with its content
|
|
195
|
+
*/
|
|
196
|
+
getAiGatewayRequestLog(organizationId: string, logId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayRequestLogUio>;
|
|
172
197
|
/**
|
|
173
198
|
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
174
199
|
* Get AI Gateway limits settings
|
|
@@ -229,6 +254,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
229
254
|
* List models available through the AI gateway
|
|
230
255
|
*/
|
|
231
256
|
listAiGatewayModels(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayModelListUio>;
|
|
257
|
+
/**
|
|
258
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
259
|
+
* List the requests sent to providers by the AI gateway
|
|
260
|
+
*/
|
|
261
|
+
listAiGatewayRequestLogsRaw(requestParameters: ListAiGatewayRequestLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewayRequestLogsResponseUio>>;
|
|
262
|
+
/**
|
|
263
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
264
|
+
* List the requests sent to providers by the AI gateway
|
|
265
|
+
*/
|
|
266
|
+
listAiGatewayRequestLogs(organizationId: string, userId?: string, model?: string, status?: AiGatewayRequestLogStatusUio, startDate?: Date, endDate?: Date, limit?: number, beforeCreatedAt?: string, beforeId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayRequestLogsResponseUio>;
|
|
232
267
|
/**
|
|
233
268
|
* Équivalent de `GET /v1/models` de l\'AI Gateway Vercel, monté sous le préfixe organisation. Liste les modèles des providers configurés pour l\'organisation.
|
|
234
269
|
* List models (AI Gateway REST API)
|
|
@@ -319,6 +319,38 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
319
319
|
const response = await this.getAiGatewayModelRaw({ organizationId: organizationId, model: model }, initOverrides);
|
|
320
320
|
return await response.value();
|
|
321
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
324
|
+
* Read one request sent to a provider, with its content
|
|
325
|
+
*/
|
|
326
|
+
async getAiGatewayRequestLogRaw(requestParameters, initOverrides) {
|
|
327
|
+
if (requestParameters['organizationId'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAiGatewayRequestLog().');
|
|
329
|
+
}
|
|
330
|
+
if (requestParameters['logId'] == null) {
|
|
331
|
+
throw new runtime.RequiredError('logId', 'Required parameter "logId" was null or undefined when calling getAiGatewayRequestLog().');
|
|
332
|
+
}
|
|
333
|
+
const queryParameters = {};
|
|
334
|
+
const headerParameters = {};
|
|
335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
336
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
337
|
+
}
|
|
338
|
+
const response = await this.request({
|
|
339
|
+
path: `/organizations/{organizationId}/ai-gateway/request-logs/{logId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"logId"}}`, encodeURIComponent(String(requestParameters['logId']))),
|
|
340
|
+
method: 'GET',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
}, initOverrides);
|
|
344
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewayRequestLogUioFromJSON)(jsonValue));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
348
|
+
* Read one request sent to a provider, with its content
|
|
349
|
+
*/
|
|
350
|
+
async getAiGatewayRequestLog(organizationId, logId, initOverrides) {
|
|
351
|
+
const response = await this.getAiGatewayRequestLogRaw({ organizationId: organizationId, logId: logId }, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
322
354
|
/**
|
|
323
355
|
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
324
356
|
* Get AI Gateway limits settings
|
|
@@ -538,6 +570,59 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
538
570
|
const response = await this.listAiGatewayModelsRaw({ organizationId: organizationId }, initOverrides);
|
|
539
571
|
return await response.value();
|
|
540
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
575
|
+
* List the requests sent to providers by the AI gateway
|
|
576
|
+
*/
|
|
577
|
+
async listAiGatewayRequestLogsRaw(requestParameters, initOverrides) {
|
|
578
|
+
if (requestParameters['organizationId'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listAiGatewayRequestLogs().');
|
|
580
|
+
}
|
|
581
|
+
const queryParameters = {};
|
|
582
|
+
if (requestParameters['userId'] != null) {
|
|
583
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['model'] != null) {
|
|
586
|
+
queryParameters['model'] = requestParameters['model'];
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['status'] != null) {
|
|
589
|
+
queryParameters['status'] = requestParameters['status'];
|
|
590
|
+
}
|
|
591
|
+
if (requestParameters['startDate'] != null) {
|
|
592
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
593
|
+
}
|
|
594
|
+
if (requestParameters['endDate'] != null) {
|
|
595
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
596
|
+
}
|
|
597
|
+
if (requestParameters['limit'] != null) {
|
|
598
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
599
|
+
}
|
|
600
|
+
if (requestParameters['beforeCreatedAt'] != null) {
|
|
601
|
+
queryParameters['beforeCreatedAt'] = requestParameters['beforeCreatedAt'];
|
|
602
|
+
}
|
|
603
|
+
if (requestParameters['beforeId'] != null) {
|
|
604
|
+
queryParameters['beforeId'] = requestParameters['beforeId'];
|
|
605
|
+
}
|
|
606
|
+
const headerParameters = {};
|
|
607
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
608
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
609
|
+
}
|
|
610
|
+
const response = await this.request({
|
|
611
|
+
path: `/organizations/{organizationId}/ai-gateway/request-logs`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
612
|
+
method: 'GET',
|
|
613
|
+
headers: headerParameters,
|
|
614
|
+
query: queryParameters,
|
|
615
|
+
}, initOverrides);
|
|
616
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewayRequestLogsResponseUioFromJSON)(jsonValue));
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
620
|
+
* List the requests sent to providers by the AI gateway
|
|
621
|
+
*/
|
|
622
|
+
async listAiGatewayRequestLogs(organizationId, userId, model, status, startDate, endDate, limit, beforeCreatedAt, beforeId, initOverrides) {
|
|
623
|
+
const response = await this.listAiGatewayRequestLogsRaw({ organizationId: organizationId, userId: userId, model: model, status: status, startDate: startDate, endDate: endDate, limit: limit, beforeCreatedAt: beforeCreatedAt, beforeId: beforeId }, initOverrides);
|
|
624
|
+
return await response.value();
|
|
625
|
+
}
|
|
541
626
|
/**
|
|
542
627
|
* Équivalent de `GET /v1/models` de l\'AI Gateway Vercel, monté sous le préfixe organisation. Liste les modèles des providers configurés pour l\'organisation.
|
|
543
628
|
* List models (AI Gateway REST API)
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AiGatewayRequestLogCursorUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayRequestLogCursorUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayRequestLogCursorUio
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayRequestLogCursorUio
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AiGatewayRequestLogCursorUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAiGatewayRequestLogCursorUio(value: object): value is AiGatewayRequestLogCursorUio;
|
|
35
|
+
export declare function AiGatewayRequestLogCursorUioFromJSON(json: any): AiGatewayRequestLogCursorUio;
|
|
36
|
+
export declare function AiGatewayRequestLogCursorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogCursorUio;
|
|
37
|
+
export declare function AiGatewayRequestLogCursorUioToJSON(json: any): AiGatewayRequestLogCursorUio;
|
|
38
|
+
export declare function AiGatewayRequestLogCursorUioToJSONTyped(value?: AiGatewayRequestLogCursorUio | 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.instanceOfAiGatewayRequestLogCursorUio = instanceOfAiGatewayRequestLogCursorUio;
|
|
17
|
+
exports.AiGatewayRequestLogCursorUioFromJSON = AiGatewayRequestLogCursorUioFromJSON;
|
|
18
|
+
exports.AiGatewayRequestLogCursorUioFromJSONTyped = AiGatewayRequestLogCursorUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayRequestLogCursorUioToJSON = AiGatewayRequestLogCursorUioToJSON;
|
|
20
|
+
exports.AiGatewayRequestLogCursorUioToJSONTyped = AiGatewayRequestLogCursorUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayRequestLogCursorUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayRequestLogCursorUio(value) {
|
|
25
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AiGatewayRequestLogCursorUioFromJSON(json) {
|
|
32
|
+
return AiGatewayRequestLogCursorUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AiGatewayRequestLogCursorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'createdAt': json['createdAt'],
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayRequestLogCursorUioToJSON(json) {
|
|
44
|
+
return AiGatewayRequestLogCursorUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayRequestLogCursorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'createdAt': value['createdAt'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const AiGatewayRequestLogStatusUio: {
|
|
17
|
+
readonly Ok: "ok";
|
|
18
|
+
readonly Error: "error";
|
|
19
|
+
};
|
|
20
|
+
export type AiGatewayRequestLogStatusUio = typeof AiGatewayRequestLogStatusUio[keyof typeof AiGatewayRequestLogStatusUio];
|
|
21
|
+
export declare function instanceOfAiGatewayRequestLogStatusUio(value: any): boolean;
|
|
22
|
+
export declare function AiGatewayRequestLogStatusUioFromJSON(json: any): AiGatewayRequestLogStatusUio;
|
|
23
|
+
export declare function AiGatewayRequestLogStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogStatusUio;
|
|
24
|
+
export declare function AiGatewayRequestLogStatusUioToJSON(value?: AiGatewayRequestLogStatusUio | null): any;
|
|
25
|
+
export declare function AiGatewayRequestLogStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AiGatewayRequestLogStatusUio;
|
|
@@ -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.AiGatewayRequestLogStatusUio = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayRequestLogStatusUio = instanceOfAiGatewayRequestLogStatusUio;
|
|
18
|
+
exports.AiGatewayRequestLogStatusUioFromJSON = AiGatewayRequestLogStatusUioFromJSON;
|
|
19
|
+
exports.AiGatewayRequestLogStatusUioFromJSONTyped = AiGatewayRequestLogStatusUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayRequestLogStatusUioToJSON = AiGatewayRequestLogStatusUioToJSON;
|
|
21
|
+
exports.AiGatewayRequestLogStatusUioToJSONTyped = AiGatewayRequestLogStatusUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewayRequestLogStatusUio = {
|
|
27
|
+
Ok: 'ok',
|
|
28
|
+
Error: 'error'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfAiGatewayRequestLogStatusUio(value) {
|
|
31
|
+
for (const key in exports.AiGatewayRequestLogStatusUio) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.AiGatewayRequestLogStatusUio, key)) {
|
|
33
|
+
if (exports.AiGatewayRequestLogStatusUio[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function AiGatewayRequestLogStatusUioFromJSON(json) {
|
|
41
|
+
return AiGatewayRequestLogStatusUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayRequestLogStatusUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayRequestLogStatusUioToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function AiGatewayRequestLogStatusUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
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 { AiGatewayRequestLogStatusUio } from './AiGatewayRequestLogStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayRequestLogSummaryUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayRequestLogSummaryUio {
|
|
19
|
+
/**
|
|
20
|
+
* Identifiant de génération (`gen_<ulid>`), celui que le client a reçu.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
29
|
+
*/
|
|
30
|
+
organizationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
35
|
+
*/
|
|
36
|
+
userId: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Renseigné pour un tour d'agent sur un nœud.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
41
|
+
*/
|
|
42
|
+
agentId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Renseigné pour un tour d'agent sur un nœud.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
47
|
+
*/
|
|
48
|
+
conversationId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* chat/completions, embeddings, systemone ou openai/chat/completions.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
53
|
+
*/
|
|
54
|
+
route: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
59
|
+
*/
|
|
60
|
+
streamed: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
65
|
+
*/
|
|
66
|
+
model: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
71
|
+
*/
|
|
72
|
+
providerId: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
77
|
+
*/
|
|
78
|
+
providerName: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {AiGatewayRequestLogStatusUio}
|
|
82
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
83
|
+
*/
|
|
84
|
+
status: AiGatewayRequestLogStatusUio;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
89
|
+
*/
|
|
90
|
+
errorMessage: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
95
|
+
*/
|
|
96
|
+
finishReason: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
101
|
+
*/
|
|
102
|
+
durationMs: number;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
107
|
+
*/
|
|
108
|
+
promptTokens: number | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
113
|
+
*/
|
|
114
|
+
completionTokens: number | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
119
|
+
*/
|
|
120
|
+
reportingUser: string | null;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<string>}
|
|
124
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
125
|
+
*/
|
|
126
|
+
tags: Array<string>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof AiGatewayRequestLogSummaryUio
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the AiGatewayRequestLogSummaryUio interface.
|
|
136
|
+
*/
|
|
137
|
+
export declare function instanceOfAiGatewayRequestLogSummaryUio(value: object): value is AiGatewayRequestLogSummaryUio;
|
|
138
|
+
export declare function AiGatewayRequestLogSummaryUioFromJSON(json: any): AiGatewayRequestLogSummaryUio;
|
|
139
|
+
export declare function AiGatewayRequestLogSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogSummaryUio;
|
|
140
|
+
export declare function AiGatewayRequestLogSummaryUioToJSON(json: any): AiGatewayRequestLogSummaryUio;
|
|
141
|
+
export declare function AiGatewayRequestLogSummaryUioToJSONTyped(value?: AiGatewayRequestLogSummaryUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,123 @@
|
|
|
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.instanceOfAiGatewayRequestLogSummaryUio = instanceOfAiGatewayRequestLogSummaryUio;
|
|
17
|
+
exports.AiGatewayRequestLogSummaryUioFromJSON = AiGatewayRequestLogSummaryUioFromJSON;
|
|
18
|
+
exports.AiGatewayRequestLogSummaryUioFromJSONTyped = AiGatewayRequestLogSummaryUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayRequestLogSummaryUioToJSON = AiGatewayRequestLogSummaryUioToJSON;
|
|
20
|
+
exports.AiGatewayRequestLogSummaryUioToJSONTyped = AiGatewayRequestLogSummaryUioToJSONTyped;
|
|
21
|
+
const AiGatewayRequestLogStatusUio_1 = require("./AiGatewayRequestLogStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayRequestLogSummaryUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayRequestLogSummaryUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('route' in value) || value['route'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('streamed' in value) || value['streamed'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('providerName' in value) || value['providerName'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('errorMessage' in value) || value['errorMessage'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('finishReason' in value) || value['finishReason'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('promptTokens' in value) || value['promptTokens'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('completionTokens' in value) || value['completionTokens'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('reportingUser' in value) || value['reportingUser'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function AiGatewayRequestLogSummaryUioFromJSON(json) {
|
|
67
|
+
return AiGatewayRequestLogSummaryUioFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function AiGatewayRequestLogSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'organizationId': json['organizationId'],
|
|
76
|
+
'userId': json['userId'],
|
|
77
|
+
'agentId': json['agentId'],
|
|
78
|
+
'conversationId': json['conversationId'],
|
|
79
|
+
'route': json['route'],
|
|
80
|
+
'streamed': json['streamed'],
|
|
81
|
+
'model': json['model'],
|
|
82
|
+
'providerId': json['providerId'],
|
|
83
|
+
'providerName': json['providerName'],
|
|
84
|
+
'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioFromJSON)(json['status']),
|
|
85
|
+
'errorMessage': json['errorMessage'],
|
|
86
|
+
'finishReason': json['finishReason'],
|
|
87
|
+
'durationMs': json['durationMs'],
|
|
88
|
+
'promptTokens': json['promptTokens'],
|
|
89
|
+
'completionTokens': json['completionTokens'],
|
|
90
|
+
'reportingUser': json['reportingUser'],
|
|
91
|
+
'tags': json['tags'],
|
|
92
|
+
'createdAt': json['createdAt'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function AiGatewayRequestLogSummaryUioToJSON(json) {
|
|
96
|
+
return AiGatewayRequestLogSummaryUioToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
function AiGatewayRequestLogSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'organizationId': value['organizationId'],
|
|
105
|
+
'userId': value['userId'],
|
|
106
|
+
'agentId': value['agentId'],
|
|
107
|
+
'conversationId': value['conversationId'],
|
|
108
|
+
'route': value['route'],
|
|
109
|
+
'streamed': value['streamed'],
|
|
110
|
+
'model': value['model'],
|
|
111
|
+
'providerId': value['providerId'],
|
|
112
|
+
'providerName': value['providerName'],
|
|
113
|
+
'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioToJSON)(value['status']),
|
|
114
|
+
'errorMessage': value['errorMessage'],
|
|
115
|
+
'finishReason': value['finishReason'],
|
|
116
|
+
'durationMs': value['durationMs'],
|
|
117
|
+
'promptTokens': value['promptTokens'],
|
|
118
|
+
'completionTokens': value['completionTokens'],
|
|
119
|
+
'reportingUser': value['reportingUser'],
|
|
120
|
+
'tags': value['tags'],
|
|
121
|
+
'createdAt': value['createdAt'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
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 { AiGatewayRequestLogStatusUio } from './AiGatewayRequestLogStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayRequestLogUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayRequestLogUio {
|
|
19
|
+
/**
|
|
20
|
+
* Identifiant de génération (`gen_<ulid>`), celui que le client a reçu.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayRequestLogUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewayRequestLogUio
|
|
29
|
+
*/
|
|
30
|
+
organizationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AiGatewayRequestLogUio
|
|
35
|
+
*/
|
|
36
|
+
userId: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Renseigné pour un tour d'agent sur un nœud.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AiGatewayRequestLogUio
|
|
41
|
+
*/
|
|
42
|
+
agentId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Renseigné pour un tour d'agent sur un nœud.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AiGatewayRequestLogUio
|
|
47
|
+
*/
|
|
48
|
+
conversationId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* chat/completions, embeddings, systemone ou openai/chat/completions.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AiGatewayRequestLogUio
|
|
53
|
+
*/
|
|
54
|
+
route: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof AiGatewayRequestLogUio
|
|
59
|
+
*/
|
|
60
|
+
streamed: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AiGatewayRequestLogUio
|
|
65
|
+
*/
|
|
66
|
+
model: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AiGatewayRequestLogUio
|
|
71
|
+
*/
|
|
72
|
+
providerId: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AiGatewayRequestLogUio
|
|
77
|
+
*/
|
|
78
|
+
providerName: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {AiGatewayRequestLogStatusUio}
|
|
82
|
+
* @memberof AiGatewayRequestLogUio
|
|
83
|
+
*/
|
|
84
|
+
status: AiGatewayRequestLogStatusUio;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AiGatewayRequestLogUio
|
|
89
|
+
*/
|
|
90
|
+
errorMessage: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AiGatewayRequestLogUio
|
|
95
|
+
*/
|
|
96
|
+
finishReason: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof AiGatewayRequestLogUio
|
|
101
|
+
*/
|
|
102
|
+
durationMs: number;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof AiGatewayRequestLogUio
|
|
107
|
+
*/
|
|
108
|
+
promptTokens: number | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof AiGatewayRequestLogUio
|
|
113
|
+
*/
|
|
114
|
+
completionTokens: number | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof AiGatewayRequestLogUio
|
|
119
|
+
*/
|
|
120
|
+
reportingUser: string | null;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<string>}
|
|
124
|
+
* @memberof AiGatewayRequestLogUio
|
|
125
|
+
*/
|
|
126
|
+
tags: Array<string>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof AiGatewayRequestLogUio
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
/**
|
|
134
|
+
* Corps de la requête du client. Les images en base64 sont omises et les contenus très volumineux tronqués.
|
|
135
|
+
* @type {{ [key: string]: any; }}
|
|
136
|
+
* @memberof AiGatewayRequestLogUio
|
|
137
|
+
*/
|
|
138
|
+
request: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
} | null;
|
|
141
|
+
/**
|
|
142
|
+
* Réponse au format OpenAI ; partielle si un flux a échoué en route, nulle sans réponse. Pour un embedding, seuls le nombre et la dimension des vecteurs sont conservés.
|
|
143
|
+
* @type {{ [key: string]: any; }}
|
|
144
|
+
* @memberof AiGatewayRequestLogUio
|
|
145
|
+
*/
|
|
146
|
+
response: {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
} | null;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Check if a given object implements the AiGatewayRequestLogUio interface.
|
|
152
|
+
*/
|
|
153
|
+
export declare function instanceOfAiGatewayRequestLogUio(value: object): value is AiGatewayRequestLogUio;
|
|
154
|
+
export declare function AiGatewayRequestLogUioFromJSON(json: any): AiGatewayRequestLogUio;
|
|
155
|
+
export declare function AiGatewayRequestLogUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogUio;
|
|
156
|
+
export declare function AiGatewayRequestLogUioToJSON(json: any): AiGatewayRequestLogUio;
|
|
157
|
+
export declare function AiGatewayRequestLogUioToJSONTyped(value?: AiGatewayRequestLogUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,131 @@
|
|
|
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.instanceOfAiGatewayRequestLogUio = instanceOfAiGatewayRequestLogUio;
|
|
17
|
+
exports.AiGatewayRequestLogUioFromJSON = AiGatewayRequestLogUioFromJSON;
|
|
18
|
+
exports.AiGatewayRequestLogUioFromJSONTyped = AiGatewayRequestLogUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayRequestLogUioToJSON = AiGatewayRequestLogUioToJSON;
|
|
20
|
+
exports.AiGatewayRequestLogUioToJSONTyped = AiGatewayRequestLogUioToJSONTyped;
|
|
21
|
+
const AiGatewayRequestLogStatusUio_1 = require("./AiGatewayRequestLogStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayRequestLogUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayRequestLogUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('route' in value) || value['route'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('streamed' in value) || value['streamed'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('providerName' in value) || value['providerName'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('errorMessage' in value) || value['errorMessage'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('finishReason' in value) || value['finishReason'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('promptTokens' in value) || value['promptTokens'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('completionTokens' in value) || value['completionTokens'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('reportingUser' in value) || value['reportingUser'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('request' in value) || value['request'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('response' in value) || value['response'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
function AiGatewayRequestLogUioFromJSON(json) {
|
|
71
|
+
return AiGatewayRequestLogUioFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function AiGatewayRequestLogUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'organizationId': json['organizationId'],
|
|
80
|
+
'userId': json['userId'],
|
|
81
|
+
'agentId': json['agentId'],
|
|
82
|
+
'conversationId': json['conversationId'],
|
|
83
|
+
'route': json['route'],
|
|
84
|
+
'streamed': json['streamed'],
|
|
85
|
+
'model': json['model'],
|
|
86
|
+
'providerId': json['providerId'],
|
|
87
|
+
'providerName': json['providerName'],
|
|
88
|
+
'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioFromJSON)(json['status']),
|
|
89
|
+
'errorMessage': json['errorMessage'],
|
|
90
|
+
'finishReason': json['finishReason'],
|
|
91
|
+
'durationMs': json['durationMs'],
|
|
92
|
+
'promptTokens': json['promptTokens'],
|
|
93
|
+
'completionTokens': json['completionTokens'],
|
|
94
|
+
'reportingUser': json['reportingUser'],
|
|
95
|
+
'tags': json['tags'],
|
|
96
|
+
'createdAt': json['createdAt'],
|
|
97
|
+
'request': json['request'],
|
|
98
|
+
'response': json['response'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function AiGatewayRequestLogUioToJSON(json) {
|
|
102
|
+
return AiGatewayRequestLogUioToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
function AiGatewayRequestLogUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
'id': value['id'],
|
|
110
|
+
'organizationId': value['organizationId'],
|
|
111
|
+
'userId': value['userId'],
|
|
112
|
+
'agentId': value['agentId'],
|
|
113
|
+
'conversationId': value['conversationId'],
|
|
114
|
+
'route': value['route'],
|
|
115
|
+
'streamed': value['streamed'],
|
|
116
|
+
'model': value['model'],
|
|
117
|
+
'providerId': value['providerId'],
|
|
118
|
+
'providerName': value['providerName'],
|
|
119
|
+
'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioToJSON)(value['status']),
|
|
120
|
+
'errorMessage': value['errorMessage'],
|
|
121
|
+
'finishReason': value['finishReason'],
|
|
122
|
+
'durationMs': value['durationMs'],
|
|
123
|
+
'promptTokens': value['promptTokens'],
|
|
124
|
+
'completionTokens': value['completionTokens'],
|
|
125
|
+
'reportingUser': value['reportingUser'],
|
|
126
|
+
'tags': value['tags'],
|
|
127
|
+
'createdAt': value['createdAt'],
|
|
128
|
+
'request': value['request'],
|
|
129
|
+
'response': value['response'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AiGatewayRequestLogSummaryUio } from './AiGatewayRequestLogSummaryUio';
|
|
13
|
+
import type { AiGatewayRequestLogCursorUio } from './AiGatewayRequestLogCursorUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AiGatewayRequestLogsResponseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AiGatewayRequestLogsResponseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AiGatewayRequestLogSummaryUio>}
|
|
23
|
+
* @memberof AiGatewayRequestLogsResponseUio
|
|
24
|
+
*/
|
|
25
|
+
logs: Array<AiGatewayRequestLogSummaryUio>;
|
|
26
|
+
/**
|
|
27
|
+
* Null une fois la dernière page servie.
|
|
28
|
+
* @type {AiGatewayRequestLogCursorUio}
|
|
29
|
+
* @memberof AiGatewayRequestLogsResponseUio
|
|
30
|
+
*/
|
|
31
|
+
nextCursor: AiGatewayRequestLogCursorUio | null;
|
|
32
|
+
/**
|
|
33
|
+
* Durée de conservation des requêtes, en jours.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof AiGatewayRequestLogsResponseUio
|
|
36
|
+
*/
|
|
37
|
+
retentionDays: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AiGatewayRequestLogsResponseUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAiGatewayRequestLogsResponseUio(value: object): value is AiGatewayRequestLogsResponseUio;
|
|
43
|
+
export declare function AiGatewayRequestLogsResponseUioFromJSON(json: any): AiGatewayRequestLogsResponseUio;
|
|
44
|
+
export declare function AiGatewayRequestLogsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogsResponseUio;
|
|
45
|
+
export declare function AiGatewayRequestLogsResponseUioToJSON(json: any): AiGatewayRequestLogsResponseUio;
|
|
46
|
+
export declare function AiGatewayRequestLogsResponseUioToJSONTyped(value?: AiGatewayRequestLogsResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfAiGatewayRequestLogsResponseUio = instanceOfAiGatewayRequestLogsResponseUio;
|
|
17
|
+
exports.AiGatewayRequestLogsResponseUioFromJSON = AiGatewayRequestLogsResponseUioFromJSON;
|
|
18
|
+
exports.AiGatewayRequestLogsResponseUioFromJSONTyped = AiGatewayRequestLogsResponseUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayRequestLogsResponseUioToJSON = AiGatewayRequestLogsResponseUioToJSON;
|
|
20
|
+
exports.AiGatewayRequestLogsResponseUioToJSONTyped = AiGatewayRequestLogsResponseUioToJSONTyped;
|
|
21
|
+
const AiGatewayRequestLogSummaryUio_1 = require("./AiGatewayRequestLogSummaryUio");
|
|
22
|
+
const AiGatewayRequestLogCursorUio_1 = require("./AiGatewayRequestLogCursorUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AiGatewayRequestLogsResponseUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAiGatewayRequestLogsResponseUio(value) {
|
|
27
|
+
if (!('logs' in value) || value['logs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('retentionDays' in value) || value['retentionDays'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AiGatewayRequestLogsResponseUioFromJSON(json) {
|
|
36
|
+
return AiGatewayRequestLogsResponseUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AiGatewayRequestLogsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'logs': (json['logs'].map(AiGatewayRequestLogSummaryUio_1.AiGatewayRequestLogSummaryUioFromJSON)),
|
|
44
|
+
'nextCursor': (0, AiGatewayRequestLogCursorUio_1.AiGatewayRequestLogCursorUioFromJSON)(json['nextCursor']),
|
|
45
|
+
'retentionDays': json['retentionDays'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AiGatewayRequestLogsResponseUioToJSON(json) {
|
|
49
|
+
return AiGatewayRequestLogsResponseUioToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AiGatewayRequestLogsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'logs': (value['logs'].map(AiGatewayRequestLogSummaryUio_1.AiGatewayRequestLogSummaryUioToJSON)),
|
|
57
|
+
'nextCursor': (0, AiGatewayRequestLogCursorUio_1.AiGatewayRequestLogCursorUioToJSON)(value['nextCursor']),
|
|
58
|
+
'retentionDays': value['retentionDays'],
|
|
59
|
+
};
|
|
60
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -105,6 +105,11 @@ export * from './AiGatewayModelListDataInnerUio';
|
|
|
105
105
|
export * from './AiGatewayModelListUio';
|
|
106
106
|
export * from './AiGatewayModelTokenQuotaUio';
|
|
107
107
|
export * from './AiGatewayModelUio';
|
|
108
|
+
export * from './AiGatewayRequestLogCursorUio';
|
|
109
|
+
export * from './AiGatewayRequestLogStatusUio';
|
|
110
|
+
export * from './AiGatewayRequestLogSummaryUio';
|
|
111
|
+
export * from './AiGatewayRequestLogUio';
|
|
112
|
+
export * from './AiGatewayRequestLogsResponseUio';
|
|
108
113
|
export * from './AiGatewaySettingsUio';
|
|
109
114
|
export * from './AiGatewaySettingsUpdateRequestUio';
|
|
110
115
|
export * from './AiGatewaySystemOneAnswerUio';
|
package/dist/models/index.js
CHANGED
|
@@ -123,6 +123,11 @@ __exportStar(require("./AiGatewayModelListDataInnerUio"), exports);
|
|
|
123
123
|
__exportStar(require("./AiGatewayModelListUio"), exports);
|
|
124
124
|
__exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
|
|
125
125
|
__exportStar(require("./AiGatewayModelUio"), exports);
|
|
126
|
+
__exportStar(require("./AiGatewayRequestLogCursorUio"), exports);
|
|
127
|
+
__exportStar(require("./AiGatewayRequestLogStatusUio"), exports);
|
|
128
|
+
__exportStar(require("./AiGatewayRequestLogSummaryUio"), exports);
|
|
129
|
+
__exportStar(require("./AiGatewayRequestLogUio"), exports);
|
|
130
|
+
__exportStar(require("./AiGatewayRequestLogsResponseUio"), exports);
|
|
126
131
|
__exportStar(require("./AiGatewaySettingsUio"), exports);
|
|
127
132
|
__exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
|
|
128
133
|
__exportStar(require("./AiGatewaySystemOneAnswerUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -17512,6 +17512,140 @@
|
|
|
17512
17512
|
"tags" : [ "ai-gateway" ]
|
|
17513
17513
|
}
|
|
17514
17514
|
},
|
|
17515
|
+
"/organizations/{organizationId}/ai-gateway/request-logs" : {
|
|
17516
|
+
"get" : {
|
|
17517
|
+
"description" : "Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l'organisation.",
|
|
17518
|
+
"operationId" : "listAiGatewayRequestLogs",
|
|
17519
|
+
"parameters" : [ {
|
|
17520
|
+
"description" : "ID of the organization",
|
|
17521
|
+
"in" : "path",
|
|
17522
|
+
"name" : "organizationId",
|
|
17523
|
+
"required" : true,
|
|
17524
|
+
"schema" : {
|
|
17525
|
+
"type" : "string"
|
|
17526
|
+
}
|
|
17527
|
+
}, {
|
|
17528
|
+
"in" : "query",
|
|
17529
|
+
"name" : "userId",
|
|
17530
|
+
"schema" : {
|
|
17531
|
+
"type" : "string"
|
|
17532
|
+
}
|
|
17533
|
+
}, {
|
|
17534
|
+
"in" : "query",
|
|
17535
|
+
"name" : "model",
|
|
17536
|
+
"schema" : {
|
|
17537
|
+
"type" : "string"
|
|
17538
|
+
}
|
|
17539
|
+
}, {
|
|
17540
|
+
"in" : "query",
|
|
17541
|
+
"name" : "status",
|
|
17542
|
+
"schema" : {
|
|
17543
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogStatus"
|
|
17544
|
+
}
|
|
17545
|
+
}, {
|
|
17546
|
+
"in" : "query",
|
|
17547
|
+
"name" : "startDate",
|
|
17548
|
+
"schema" : {
|
|
17549
|
+
"format" : "date-time",
|
|
17550
|
+
"type" : "string"
|
|
17551
|
+
}
|
|
17552
|
+
}, {
|
|
17553
|
+
"in" : "query",
|
|
17554
|
+
"name" : "endDate",
|
|
17555
|
+
"schema" : {
|
|
17556
|
+
"format" : "date-time",
|
|
17557
|
+
"type" : "string"
|
|
17558
|
+
}
|
|
17559
|
+
}, {
|
|
17560
|
+
"description" : "Taille de page, bornée côté serveur.",
|
|
17561
|
+
"in" : "query",
|
|
17562
|
+
"name" : "limit",
|
|
17563
|
+
"schema" : {
|
|
17564
|
+
"default" : 50,
|
|
17565
|
+
"maximum" : 200,
|
|
17566
|
+
"minimum" : 1,
|
|
17567
|
+
"type" : "integer"
|
|
17568
|
+
}
|
|
17569
|
+
}, {
|
|
17570
|
+
"description" : "Moitié date du curseur, renvoyée depuis `nextCursor` avec `beforeId`.",
|
|
17571
|
+
"in" : "query",
|
|
17572
|
+
"name" : "beforeCreatedAt",
|
|
17573
|
+
"schema" : {
|
|
17574
|
+
"type" : "string"
|
|
17575
|
+
}
|
|
17576
|
+
}, {
|
|
17577
|
+
"description" : "Moitié identifiant du curseur, renvoyée depuis `nextCursor` avec `beforeCreatedAt`.",
|
|
17578
|
+
"in" : "query",
|
|
17579
|
+
"name" : "beforeId",
|
|
17580
|
+
"schema" : {
|
|
17581
|
+
"type" : "string"
|
|
17582
|
+
}
|
|
17583
|
+
} ],
|
|
17584
|
+
"responses" : {
|
|
17585
|
+
"200" : {
|
|
17586
|
+
"content" : {
|
|
17587
|
+
"application/json" : {
|
|
17588
|
+
"schema" : {
|
|
17589
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogsResponse"
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
},
|
|
17593
|
+
"description" : "A page of request logs"
|
|
17594
|
+
},
|
|
17595
|
+
"400" : {
|
|
17596
|
+
"description" : "Invalid status or date filter"
|
|
17597
|
+
},
|
|
17598
|
+
"403" : {
|
|
17599
|
+
"description" : "Forbidden"
|
|
17600
|
+
}
|
|
17601
|
+
},
|
|
17602
|
+
"summary" : "List the requests sent to providers by the AI gateway",
|
|
17603
|
+
"tags" : [ "ai-gateway" ]
|
|
17604
|
+
}
|
|
17605
|
+
},
|
|
17606
|
+
"/organizations/{organizationId}/ai-gateway/request-logs/{logId}" : {
|
|
17607
|
+
"get" : {
|
|
17608
|
+
"description" : "Paramètres, contenu et réponse d'une requête. Réservé aux administrateurs de l'organisation.",
|
|
17609
|
+
"operationId" : "getAiGatewayRequestLog",
|
|
17610
|
+
"parameters" : [ {
|
|
17611
|
+
"description" : "ID of the organization",
|
|
17612
|
+
"in" : "path",
|
|
17613
|
+
"name" : "organizationId",
|
|
17614
|
+
"required" : true,
|
|
17615
|
+
"schema" : {
|
|
17616
|
+
"type" : "string"
|
|
17617
|
+
}
|
|
17618
|
+
}, {
|
|
17619
|
+
"description" : "Identifiant de génération (`gen_<ulid>`)",
|
|
17620
|
+
"in" : "path",
|
|
17621
|
+
"name" : "logId",
|
|
17622
|
+
"required" : true,
|
|
17623
|
+
"schema" : {
|
|
17624
|
+
"type" : "string"
|
|
17625
|
+
}
|
|
17626
|
+
} ],
|
|
17627
|
+
"responses" : {
|
|
17628
|
+
"200" : {
|
|
17629
|
+
"content" : {
|
|
17630
|
+
"application/json" : {
|
|
17631
|
+
"schema" : {
|
|
17632
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLog"
|
|
17633
|
+
}
|
|
17634
|
+
}
|
|
17635
|
+
},
|
|
17636
|
+
"description" : "The request log"
|
|
17637
|
+
},
|
|
17638
|
+
"403" : {
|
|
17639
|
+
"description" : "Forbidden"
|
|
17640
|
+
},
|
|
17641
|
+
"404" : {
|
|
17642
|
+
"description" : "Request log not found"
|
|
17643
|
+
}
|
|
17644
|
+
},
|
|
17645
|
+
"summary" : "Read one request sent to a provider, with its content",
|
|
17646
|
+
"tags" : [ "ai-gateway" ]
|
|
17647
|
+
}
|
|
17648
|
+
},
|
|
17515
17649
|
"/organizations/{organizationId}/ai-gateway/settings" : {
|
|
17516
17650
|
"get" : {
|
|
17517
17651
|
"description" : "Limites des modèles dont l'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.",
|
|
@@ -34704,6 +34838,152 @@
|
|
|
34704
34838
|
"description" : "Montant par devise ISO ; deux devises ne s'additionnent pas.",
|
|
34705
34839
|
"type" : "object"
|
|
34706
34840
|
},
|
|
34841
|
+
"AiGatewayRequestLogStatus" : {
|
|
34842
|
+
"enum" : [ "ok", "error" ],
|
|
34843
|
+
"title" : "AiGatewayRequestLogStatus",
|
|
34844
|
+
"type" : "string"
|
|
34845
|
+
},
|
|
34846
|
+
"AiGatewayRequestLogsResponse" : {
|
|
34847
|
+
"additionalProperties" : false,
|
|
34848
|
+
"properties" : {
|
|
34849
|
+
"logs" : {
|
|
34850
|
+
"items" : {
|
|
34851
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogSummary"
|
|
34852
|
+
},
|
|
34853
|
+
"type" : "array"
|
|
34854
|
+
},
|
|
34855
|
+
"nextCursor" : {
|
|
34856
|
+
"allOf" : [ {
|
|
34857
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogCursor"
|
|
34858
|
+
} ],
|
|
34859
|
+
"description" : "Null une fois la dernière page servie.",
|
|
34860
|
+
"nullable" : true
|
|
34861
|
+
},
|
|
34862
|
+
"retentionDays" : {
|
|
34863
|
+
"description" : "Durée de conservation des requêtes, en jours.",
|
|
34864
|
+
"type" : "integer"
|
|
34865
|
+
}
|
|
34866
|
+
},
|
|
34867
|
+
"required" : [ "logs", "nextCursor", "retentionDays" ],
|
|
34868
|
+
"title" : "AiGatewayRequestLogsResponse",
|
|
34869
|
+
"type" : "object"
|
|
34870
|
+
},
|
|
34871
|
+
"AiGatewayRequestLogSummary" : {
|
|
34872
|
+
"properties" : {
|
|
34873
|
+
"id" : {
|
|
34874
|
+
"description" : "Identifiant de génération (`gen_<ulid>`), celui que le client a reçu.",
|
|
34875
|
+
"type" : "string"
|
|
34876
|
+
},
|
|
34877
|
+
"organizationId" : {
|
|
34878
|
+
"type" : "string"
|
|
34879
|
+
},
|
|
34880
|
+
"userId" : {
|
|
34881
|
+
"nullable" : true,
|
|
34882
|
+
"type" : "string"
|
|
34883
|
+
},
|
|
34884
|
+
"agentId" : {
|
|
34885
|
+
"description" : "Renseigné pour un tour d'agent sur un nœud.",
|
|
34886
|
+
"nullable" : true,
|
|
34887
|
+
"type" : "string"
|
|
34888
|
+
},
|
|
34889
|
+
"conversationId" : {
|
|
34890
|
+
"description" : "Renseigné pour un tour d'agent sur un nœud.",
|
|
34891
|
+
"nullable" : true,
|
|
34892
|
+
"type" : "string"
|
|
34893
|
+
},
|
|
34894
|
+
"route" : {
|
|
34895
|
+
"description" : "chat/completions, embeddings, systemone ou openai/chat/completions.",
|
|
34896
|
+
"type" : "string"
|
|
34897
|
+
},
|
|
34898
|
+
"streamed" : {
|
|
34899
|
+
"type" : "boolean"
|
|
34900
|
+
},
|
|
34901
|
+
"model" : {
|
|
34902
|
+
"type" : "string"
|
|
34903
|
+
},
|
|
34904
|
+
"providerId" : {
|
|
34905
|
+
"type" : "string"
|
|
34906
|
+
},
|
|
34907
|
+
"providerName" : {
|
|
34908
|
+
"type" : "string"
|
|
34909
|
+
},
|
|
34910
|
+
"status" : {
|
|
34911
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogStatus"
|
|
34912
|
+
},
|
|
34913
|
+
"errorMessage" : {
|
|
34914
|
+
"nullable" : true,
|
|
34915
|
+
"type" : "string"
|
|
34916
|
+
},
|
|
34917
|
+
"finishReason" : {
|
|
34918
|
+
"nullable" : true,
|
|
34919
|
+
"type" : "string"
|
|
34920
|
+
},
|
|
34921
|
+
"durationMs" : {
|
|
34922
|
+
"type" : "integer"
|
|
34923
|
+
},
|
|
34924
|
+
"promptTokens" : {
|
|
34925
|
+
"nullable" : true,
|
|
34926
|
+
"type" : "integer"
|
|
34927
|
+
},
|
|
34928
|
+
"completionTokens" : {
|
|
34929
|
+
"nullable" : true,
|
|
34930
|
+
"type" : "integer"
|
|
34931
|
+
},
|
|
34932
|
+
"reportingUser" : {
|
|
34933
|
+
"nullable" : true,
|
|
34934
|
+
"type" : "string"
|
|
34935
|
+
},
|
|
34936
|
+
"tags" : {
|
|
34937
|
+
"items" : {
|
|
34938
|
+
"type" : "string"
|
|
34939
|
+
},
|
|
34940
|
+
"type" : "array"
|
|
34941
|
+
},
|
|
34942
|
+
"createdAt" : {
|
|
34943
|
+
"type" : "string"
|
|
34944
|
+
}
|
|
34945
|
+
},
|
|
34946
|
+
"required" : [ "agentId", "completionTokens", "conversationId", "createdAt", "durationMs", "errorMessage", "finishReason", "id", "model", "organizationId", "promptTokens", "providerId", "providerName", "reportingUser", "route", "status", "streamed", "tags", "userId" ],
|
|
34947
|
+
"title" : "AiGatewayRequestLogSummary",
|
|
34948
|
+
"type" : "object"
|
|
34949
|
+
},
|
|
34950
|
+
"AiGatewayRequestLogCursor" : {
|
|
34951
|
+
"additionalProperties" : false,
|
|
34952
|
+
"properties" : {
|
|
34953
|
+
"createdAt" : {
|
|
34954
|
+
"type" : "string"
|
|
34955
|
+
},
|
|
34956
|
+
"id" : {
|
|
34957
|
+
"type" : "string"
|
|
34958
|
+
}
|
|
34959
|
+
},
|
|
34960
|
+
"required" : [ "createdAt", "id" ],
|
|
34961
|
+
"title" : "AiGatewayRequestLogCursor",
|
|
34962
|
+
"type" : "object"
|
|
34963
|
+
},
|
|
34964
|
+
"AiGatewayRequestLog" : {
|
|
34965
|
+
"allOf" : [ {
|
|
34966
|
+
"$ref" : "#/components/schemas/AiGatewayRequestLogSummary"
|
|
34967
|
+
}, {
|
|
34968
|
+
"properties" : {
|
|
34969
|
+
"request" : {
|
|
34970
|
+
"additionalProperties" : true,
|
|
34971
|
+
"description" : "Corps de la requête du client. Les images en base64 sont omises et les contenus très volumineux tronqués.",
|
|
34972
|
+
"nullable" : true,
|
|
34973
|
+
"type" : "object"
|
|
34974
|
+
},
|
|
34975
|
+
"response" : {
|
|
34976
|
+
"additionalProperties" : true,
|
|
34977
|
+
"description" : "Réponse au format OpenAI ; partielle si un flux a échoué en route, nulle sans réponse. Pour un embedding, seuls le nombre et la dimension des vecteurs sont conservés.",
|
|
34978
|
+
"nullable" : true,
|
|
34979
|
+
"type" : "object"
|
|
34980
|
+
}
|
|
34981
|
+
},
|
|
34982
|
+
"required" : [ "request", "response" ],
|
|
34983
|
+
"type" : "object"
|
|
34984
|
+
} ],
|
|
34985
|
+
"title" : "AiGatewayRequestLog"
|
|
34986
|
+
},
|
|
34707
34987
|
"AiGatewaySettings" : {
|
|
34708
34988
|
"properties" : {
|
|
34709
34989
|
"organizationId" : {
|