@breign/client 1.0.205 → 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/apis/TicketsApi.d.ts +53 -1
- package/dist/apis/TicketsApi.js +126 -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/ArtifactLibraryItemAllOfProjectUio.d.ts +56 -0
- package/dist/models/ArtifactLibraryItemAllOfProjectUio.js +66 -0
- package/dist/models/ArtifactLibraryItemAllOfTicketUio.d.ts +51 -0
- package/dist/models/ArtifactLibraryItemAllOfTicketUio.js +63 -0
- package/dist/models/ArtifactLibraryItemUio.d.ts +103 -0
- package/dist/models/ArtifactLibraryItemUio.js +99 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/openapi.json +762 -44
- package/package.json +1 -1
|
@@ -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
|
+
}
|