@breign/client 1.0.168 → 1.0.170
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/TicketsApi.d.ts +14 -1
- package/dist/apis/TicketsApi.js +29 -0
- package/dist/models/AgentAssignmentUio.d.ts +25 -0
- package/dist/models/AgentAssignmentUio.js +51 -0
- package/dist/models/ProjectSettingsUio.d.ts +7 -0
- package/dist/models/ProjectSettingsUio.js +3 -0
- package/dist/models/TicketActiveAgentUio.d.ts +39 -0
- package/dist/models/TicketActiveAgentUio.js +55 -0
- package/dist/models/TicketAgentUsageUio.d.ts +63 -0
- package/dist/models/TicketAgentUsageUio.js +71 -0
- package/dist/models/TicketModelUsageUio.d.ts +68 -0
- package/dist/models/TicketModelUsageUio.js +74 -0
- package/dist/models/TicketUio.d.ts +7 -0
- package/dist/models/TicketUio.js +3 -0
- package/dist/models/TicketUsageUio.d.ts +64 -0
- package/dist/models/TicketUsageUio.js +72 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +165 -4
- 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 { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
14
14
|
export interface AcceptTicketProposalRequest {
|
|
15
15
|
proposalId: string;
|
|
16
16
|
acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
|
|
@@ -52,6 +52,9 @@ export interface GetTicketByKeyRequest {
|
|
|
52
52
|
organizationId: string;
|
|
53
53
|
ticketKey: string;
|
|
54
54
|
}
|
|
55
|
+
export interface GetTicketUsageRequest {
|
|
56
|
+
ticketId: string;
|
|
57
|
+
}
|
|
55
58
|
export interface GiveTicketGoAheadRequest {
|
|
56
59
|
ticketId: string;
|
|
57
60
|
assigneeType: MemberTypeUio;
|
|
@@ -208,6 +211,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
208
211
|
* Get a ticket by its key
|
|
209
212
|
*/
|
|
210
213
|
getTicketByKey(organizationId: string, ticketKey: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
214
|
+
/**
|
|
215
|
+
* Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu\'elles ont faits à d\'autres agents : au total, par modèle, et par agent puis par modèle.
|
|
216
|
+
* Get the tokens consumed by the agents on a ticket
|
|
217
|
+
*/
|
|
218
|
+
getTicketUsageRaw(requestParameters: GetTicketUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketUsageUio>>;
|
|
219
|
+
/**
|
|
220
|
+
* Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu\'elles ont faits à d\'autres agents : au total, par modèle, et par agent puis par modèle.
|
|
221
|
+
* Get the tokens consumed by the agents on a ticket
|
|
222
|
+
*/
|
|
223
|
+
getTicketUsage(ticketId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUsageUio>;
|
|
211
224
|
/**
|
|
212
225
|
* Feu vert à un assigné en attente (held) : il passe à assigned et peut commencer.
|
|
213
226
|
* Give the go-ahead to an assignee
|
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -403,6 +403,35 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
403
403
|
const response = await this.getTicketByKeyRaw({ organizationId: organizationId, ticketKey: ticketKey }, initOverrides);
|
|
404
404
|
return await response.value();
|
|
405
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu\'elles ont faits à d\'autres agents : au total, par modèle, et par agent puis par modèle.
|
|
408
|
+
* Get the tokens consumed by the agents on a ticket
|
|
409
|
+
*/
|
|
410
|
+
async getTicketUsageRaw(requestParameters, initOverrides) {
|
|
411
|
+
if (requestParameters['ticketId'] == null) {
|
|
412
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling getTicketUsage().');
|
|
413
|
+
}
|
|
414
|
+
const queryParameters = {};
|
|
415
|
+
const headerParameters = {};
|
|
416
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
417
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
418
|
+
}
|
|
419
|
+
const response = await this.request({
|
|
420
|
+
path: `/tickets/{ticketId}/usage`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))),
|
|
421
|
+
method: 'GET',
|
|
422
|
+
headers: headerParameters,
|
|
423
|
+
query: queryParameters,
|
|
424
|
+
}, initOverrides);
|
|
425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUsageUioFromJSON)(jsonValue));
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu\'elles ont faits à d\'autres agents : au total, par modèle, et par agent puis par modèle.
|
|
429
|
+
* Get the tokens consumed by the agents on a ticket
|
|
430
|
+
*/
|
|
431
|
+
async getTicketUsage(ticketId, initOverrides) {
|
|
432
|
+
const response = await this.getTicketUsageRaw({ ticketId: ticketId }, initOverrides);
|
|
433
|
+
return await response.value();
|
|
434
|
+
}
|
|
406
435
|
/**
|
|
407
436
|
* Feu vert à un assigné en attente (held) : il passe à assigned et peut commencer.
|
|
408
437
|
* Give the go-ahead to an assignee
|
|
@@ -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
|
+
* Ce qui se passe quand un agent assigne un autre agent du projet à un ticket : confirm = l'agent assigné attend le feu vert d'un responsable humain ; direct = il se met au travail tout de suite.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AgentAssignmentUio: {
|
|
17
|
+
readonly Confirm: "confirm";
|
|
18
|
+
readonly Direct: "direct";
|
|
19
|
+
};
|
|
20
|
+
export type AgentAssignmentUio = typeof AgentAssignmentUio[keyof typeof AgentAssignmentUio];
|
|
21
|
+
export declare function instanceOfAgentAssignmentUio(value: any): boolean;
|
|
22
|
+
export declare function AgentAssignmentUioFromJSON(json: any): AgentAssignmentUio;
|
|
23
|
+
export declare function AgentAssignmentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAssignmentUio;
|
|
24
|
+
export declare function AgentAssignmentUioToJSON(value?: AgentAssignmentUio | null): any;
|
|
25
|
+
export declare function AgentAssignmentUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentAssignmentUio;
|
|
@@ -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.AgentAssignmentUio = void 0;
|
|
17
|
+
exports.instanceOfAgentAssignmentUio = instanceOfAgentAssignmentUio;
|
|
18
|
+
exports.AgentAssignmentUioFromJSON = AgentAssignmentUioFromJSON;
|
|
19
|
+
exports.AgentAssignmentUioFromJSONTyped = AgentAssignmentUioFromJSONTyped;
|
|
20
|
+
exports.AgentAssignmentUioToJSON = AgentAssignmentUioToJSON;
|
|
21
|
+
exports.AgentAssignmentUioToJSONTyped = AgentAssignmentUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Ce qui se passe quand un agent assigne un autre agent du projet à un ticket : confirm = l'agent assigné attend le feu vert d'un responsable humain ; direct = il se met au travail tout de suite.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AgentAssignmentUio = {
|
|
27
|
+
Confirm: 'confirm',
|
|
28
|
+
Direct: 'direct'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfAgentAssignmentUio(value) {
|
|
31
|
+
for (const key in exports.AgentAssignmentUio) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.AgentAssignmentUio, key)) {
|
|
33
|
+
if (exports.AgentAssignmentUio[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function AgentAssignmentUioFromJSON(json) {
|
|
41
|
+
return AgentAssignmentUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AgentAssignmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function AgentAssignmentUioToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function AgentAssignmentUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AgentTicketCreationUio } from './AgentTicketCreationUio';
|
|
13
13
|
import type { TicketStartModeUio } from './TicketStartModeUio';
|
|
14
|
+
import type { AgentAssignmentUio } from './AgentAssignmentUio';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -35,6 +36,12 @@ export interface ProjectSettingsUio {
|
|
|
35
36
|
* @memberof ProjectSettingsUio
|
|
36
37
|
*/
|
|
37
38
|
agentsAutoWork?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Assignation d'un agent par un autre agent. Absent = confirm.
|
|
41
|
+
* @type {AgentAssignmentUio}
|
|
42
|
+
* @memberof ProjectSettingsUio
|
|
43
|
+
*/
|
|
44
|
+
agentAssignment?: AgentAssignmentUio;
|
|
38
45
|
}
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the ProjectSettingsUio interface.
|
|
@@ -20,6 +20,7 @@ exports.ProjectSettingsUioToJSON = ProjectSettingsUioToJSON;
|
|
|
20
20
|
exports.ProjectSettingsUioToJSONTyped = ProjectSettingsUioToJSONTyped;
|
|
21
21
|
const AgentTicketCreationUio_1 = require("./AgentTicketCreationUio");
|
|
22
22
|
const TicketStartModeUio_1 = require("./TicketStartModeUio");
|
|
23
|
+
const AgentAssignmentUio_1 = require("./AgentAssignmentUio");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ProjectSettingsUio interface.
|
|
25
26
|
*/
|
|
@@ -41,6 +42,7 @@ function ProjectSettingsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'agentTicketCreation': (0, AgentTicketCreationUio_1.AgentTicketCreationUioFromJSON)(json['agentTicketCreation']),
|
|
42
43
|
'defaultStartMode': (0, TicketStartModeUio_1.TicketStartModeUioFromJSON)(json['defaultStartMode']),
|
|
43
44
|
'agentsAutoWork': json['agentsAutoWork'] == null ? undefined : json['agentsAutoWork'],
|
|
45
|
+
'agentAssignment': json['agentAssignment'] == null ? undefined : (0, AgentAssignmentUio_1.AgentAssignmentUioFromJSON)(json['agentAssignment']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function ProjectSettingsUioToJSON(json) {
|
|
@@ -54,5 +56,6 @@ function ProjectSettingsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
'agentTicketCreation': (0, AgentTicketCreationUio_1.AgentTicketCreationUioToJSON)(value['agentTicketCreation']),
|
|
55
57
|
'defaultStartMode': (0, TicketStartModeUio_1.TicketStartModeUioToJSON)(value['defaultStartMode']),
|
|
56
58
|
'agentsAutoWork': value['agentsAutoWork'],
|
|
59
|
+
'agentAssignment': (0, AgentAssignmentUio_1.AgentAssignmentUioToJSON)(value['agentAssignment']),
|
|
57
60
|
};
|
|
58
61
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { TicketAgentRunStatusUio } from './TicketAgentRunStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TicketActiveAgentUio
|
|
17
|
+
*/
|
|
18
|
+
export interface TicketActiveAgentUio {
|
|
19
|
+
/**
|
|
20
|
+
* Identifiant de l'agent
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TicketActiveAgentUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {TicketAgentRunStatusUio}
|
|
28
|
+
* @memberof TicketActiveAgentUio
|
|
29
|
+
*/
|
|
30
|
+
status: TicketAgentRunStatusUio;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the TicketActiveAgentUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfTicketActiveAgentUio(value: object): value is TicketActiveAgentUio;
|
|
36
|
+
export declare function TicketActiveAgentUioFromJSON(json: any): TicketActiveAgentUio;
|
|
37
|
+
export declare function TicketActiveAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketActiveAgentUio;
|
|
38
|
+
export declare function TicketActiveAgentUioToJSON(json: any): TicketActiveAgentUio;
|
|
39
|
+
export declare function TicketActiveAgentUioToJSONTyped(value?: TicketActiveAgentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfTicketActiveAgentUio = instanceOfTicketActiveAgentUio;
|
|
17
|
+
exports.TicketActiveAgentUioFromJSON = TicketActiveAgentUioFromJSON;
|
|
18
|
+
exports.TicketActiveAgentUioFromJSONTyped = TicketActiveAgentUioFromJSONTyped;
|
|
19
|
+
exports.TicketActiveAgentUioToJSON = TicketActiveAgentUioToJSON;
|
|
20
|
+
exports.TicketActiveAgentUioToJSONTyped = TicketActiveAgentUioToJSONTyped;
|
|
21
|
+
const TicketAgentRunStatusUio_1 = require("./TicketAgentRunStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TicketActiveAgentUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTicketActiveAgentUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function TicketActiveAgentUioFromJSON(json) {
|
|
33
|
+
return TicketActiveAgentUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function TicketActiveAgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'status': (0, TicketAgentRunStatusUio_1.TicketAgentRunStatusUioFromJSON)(json['status']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function TicketActiveAgentUioToJSON(json) {
|
|
45
|
+
return TicketActiveAgentUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function TicketActiveAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'status': (0, TicketAgentRunStatusUio_1.TicketAgentRunStatusUioToJSON)(value['status']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { TicketModelUsageUio } from './TicketModelUsageUio';
|
|
13
|
+
/**
|
|
14
|
+
* Tokens consommés par un agent sur le ticket, par modèle.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TicketAgentUsageUio
|
|
17
|
+
*/
|
|
18
|
+
export interface TicketAgentUsageUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TicketAgentUsageUio
|
|
23
|
+
*/
|
|
24
|
+
agentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof TicketAgentUsageUio
|
|
29
|
+
*/
|
|
30
|
+
inputTokens: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TicketAgentUsageUio
|
|
35
|
+
*/
|
|
36
|
+
outputTokens: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TicketAgentUsageUio
|
|
41
|
+
*/
|
|
42
|
+
reasoningTokens: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof TicketAgentUsageUio
|
|
47
|
+
*/
|
|
48
|
+
totalTokens: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<TicketModelUsageUio>}
|
|
52
|
+
* @memberof TicketAgentUsageUio
|
|
53
|
+
*/
|
|
54
|
+
models: Array<TicketModelUsageUio>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the TicketAgentUsageUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfTicketAgentUsageUio(value: object): value is TicketAgentUsageUio;
|
|
60
|
+
export declare function TicketAgentUsageUioFromJSON(json: any): TicketAgentUsageUio;
|
|
61
|
+
export declare function TicketAgentUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketAgentUsageUio;
|
|
62
|
+
export declare function TicketAgentUsageUioToJSON(json: any): TicketAgentUsageUio;
|
|
63
|
+
export declare function TicketAgentUsageUioToJSONTyped(value?: TicketAgentUsageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfTicketAgentUsageUio = instanceOfTicketAgentUsageUio;
|
|
17
|
+
exports.TicketAgentUsageUioFromJSON = TicketAgentUsageUioFromJSON;
|
|
18
|
+
exports.TicketAgentUsageUioFromJSONTyped = TicketAgentUsageUioFromJSONTyped;
|
|
19
|
+
exports.TicketAgentUsageUioToJSON = TicketAgentUsageUioToJSON;
|
|
20
|
+
exports.TicketAgentUsageUioToJSONTyped = TicketAgentUsageUioToJSONTyped;
|
|
21
|
+
const TicketModelUsageUio_1 = require("./TicketModelUsageUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TicketAgentUsageUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTicketAgentUsageUio(value) {
|
|
26
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('models' in value) || value['models'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function TicketAgentUsageUioFromJSON(json) {
|
|
41
|
+
return TicketAgentUsageUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TicketAgentUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'agentId': json['agentId'],
|
|
49
|
+
'inputTokens': json['inputTokens'],
|
|
50
|
+
'outputTokens': json['outputTokens'],
|
|
51
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
52
|
+
'totalTokens': json['totalTokens'],
|
|
53
|
+
'models': (json['models'].map(TicketModelUsageUio_1.TicketModelUsageUioFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function TicketAgentUsageUioToJSON(json) {
|
|
57
|
+
return TicketAgentUsageUioToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function TicketAgentUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'agentId': value['agentId'],
|
|
65
|
+
'inputTokens': value['inputTokens'],
|
|
66
|
+
'outputTokens': value['outputTokens'],
|
|
67
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
68
|
+
'totalTokens': value['totalTokens'],
|
|
69
|
+
'models': (value['models'].map(TicketModelUsageUio_1.TicketModelUsageUioToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Tokens consommés avec un modèle d'un provider.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TicketModelUsageUio
|
|
16
|
+
*/
|
|
17
|
+
export interface TicketModelUsageUio {
|
|
18
|
+
/**
|
|
19
|
+
* Nom du modèle tel qu'envoyé au provider ; unknown s'il n'a pas été relevé
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TicketModelUsageUio
|
|
22
|
+
*/
|
|
23
|
+
model: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifiant du provider
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TicketModelUsageUio
|
|
28
|
+
*/
|
|
29
|
+
provider: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TicketModelUsageUio
|
|
34
|
+
*/
|
|
35
|
+
providerName: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TicketModelUsageUio
|
|
40
|
+
*/
|
|
41
|
+
inputTokens: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof TicketModelUsageUio
|
|
46
|
+
*/
|
|
47
|
+
outputTokens: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof TicketModelUsageUio
|
|
52
|
+
*/
|
|
53
|
+
reasoningTokens: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof TicketModelUsageUio
|
|
58
|
+
*/
|
|
59
|
+
totalTokens: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TicketModelUsageUio interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfTicketModelUsageUio(value: object): value is TicketModelUsageUio;
|
|
65
|
+
export declare function TicketModelUsageUioFromJSON(json: any): TicketModelUsageUio;
|
|
66
|
+
export declare function TicketModelUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketModelUsageUio;
|
|
67
|
+
export declare function TicketModelUsageUioToJSON(json: any): TicketModelUsageUio;
|
|
68
|
+
export declare function TicketModelUsageUioToJSONTyped(value?: TicketModelUsageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfTicketModelUsageUio = instanceOfTicketModelUsageUio;
|
|
17
|
+
exports.TicketModelUsageUioFromJSON = TicketModelUsageUioFromJSON;
|
|
18
|
+
exports.TicketModelUsageUioFromJSONTyped = TicketModelUsageUioFromJSONTyped;
|
|
19
|
+
exports.TicketModelUsageUioToJSON = TicketModelUsageUioToJSON;
|
|
20
|
+
exports.TicketModelUsageUioToJSONTyped = TicketModelUsageUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TicketModelUsageUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTicketModelUsageUio(value) {
|
|
25
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('providerName' in value) || value['providerName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function TicketModelUsageUioFromJSON(json) {
|
|
42
|
+
return TicketModelUsageUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TicketModelUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'model': json['model'],
|
|
50
|
+
'provider': json['provider'],
|
|
51
|
+
'providerName': json['providerName'],
|
|
52
|
+
'inputTokens': json['inputTokens'],
|
|
53
|
+
'outputTokens': json['outputTokens'],
|
|
54
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
55
|
+
'totalTokens': json['totalTokens'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function TicketModelUsageUioToJSON(json) {
|
|
59
|
+
return TicketModelUsageUioToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function TicketModelUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'model': value['model'],
|
|
67
|
+
'provider': value['provider'],
|
|
68
|
+
'providerName': value['providerName'],
|
|
69
|
+
'inputTokens': value['inputTokens'],
|
|
70
|
+
'outputTokens': value['outputTokens'],
|
|
71
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
72
|
+
'totalTokens': value['totalTokens'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ActorRefUio } from './ActorRefUio';
|
|
13
|
+
import type { TicketActiveAgentUio } from './TicketActiveAgentUio';
|
|
13
14
|
import type { TicketPriorityUio } from './TicketPriorityUio';
|
|
14
15
|
import type { MemberRefUio } from './MemberRefUio';
|
|
15
16
|
import type { TicketAssigneeUio } from './TicketAssigneeUio';
|
|
@@ -134,6 +135,12 @@ export interface TicketUio {
|
|
|
134
135
|
* @memberof TicketUio
|
|
135
136
|
*/
|
|
136
137
|
pendingHumanActions: number;
|
|
138
|
+
/**
|
|
139
|
+
* Agents qui travaillent sur le ticket en ce moment, assignés ou non : en cours d'exécution, réveil en attente, ou question posée à un humain.
|
|
140
|
+
* @type {Array<TicketActiveAgentUio>}
|
|
141
|
+
* @memberof TicketUio
|
|
142
|
+
*/
|
|
143
|
+
activeAgents?: Array<TicketActiveAgentUio>;
|
|
137
144
|
/**
|
|
138
145
|
*
|
|
139
146
|
* @type {string}
|
package/dist/models/TicketUio.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.TicketUioFromJSONTyped = TicketUioFromJSONTyped;
|
|
|
19
19
|
exports.TicketUioToJSON = TicketUioToJSON;
|
|
20
20
|
exports.TicketUioToJSONTyped = TicketUioToJSONTyped;
|
|
21
21
|
const ActorRefUio_1 = require("./ActorRefUio");
|
|
22
|
+
const TicketActiveAgentUio_1 = require("./TicketActiveAgentUio");
|
|
22
23
|
const TicketPriorityUio_1 = require("./TicketPriorityUio");
|
|
23
24
|
const MemberRefUio_1 = require("./MemberRefUio");
|
|
24
25
|
const TicketAssigneeUio_1 = require("./TicketAssigneeUio");
|
|
@@ -100,6 +101,7 @@ function TicketUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
100
101
|
'commentCount': json['commentCount'],
|
|
101
102
|
'artifactCount': json['artifactCount'],
|
|
102
103
|
'pendingHumanActions': json['pendingHumanActions'],
|
|
104
|
+
'activeAgents': json['activeAgents'] == null ? undefined : (json['activeAgents'].map(TicketActiveAgentUio_1.TicketActiveAgentUioFromJSON)),
|
|
103
105
|
'doneAt': json['doneAt'],
|
|
104
106
|
'createdAt': json['createdAt'],
|
|
105
107
|
'updatedAt': json['updatedAt'],
|
|
@@ -132,6 +134,7 @@ function TicketUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
132
134
|
'commentCount': value['commentCount'],
|
|
133
135
|
'artifactCount': value['artifactCount'],
|
|
134
136
|
'pendingHumanActions': value['pendingHumanActions'],
|
|
137
|
+
'activeAgents': value['activeAgents'] == null ? undefined : (value['activeAgents'].map(TicketActiveAgentUio_1.TicketActiveAgentUioToJSON)),
|
|
135
138
|
'doneAt': value['doneAt'],
|
|
136
139
|
'createdAt': value['createdAt'],
|
|
137
140
|
'updatedAt': value['updatedAt'],
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { TicketAgentUsageUio } from './TicketAgentUsageUio';
|
|
13
|
+
import type { TicketModelUsageUio } from './TicketModelUsageUio';
|
|
14
|
+
/**
|
|
15
|
+
* Consommation du ticket : sessions de travail des agents et conversations ouvertes par leurs appels à d'autres agents. Modèles et agents triés du plus consommateur au moins consommateur.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TicketUsageUio
|
|
18
|
+
*/
|
|
19
|
+
export interface TicketUsageUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof TicketUsageUio
|
|
24
|
+
*/
|
|
25
|
+
inputTokens: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof TicketUsageUio
|
|
30
|
+
*/
|
|
31
|
+
outputTokens: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof TicketUsageUio
|
|
36
|
+
*/
|
|
37
|
+
reasoningTokens: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TicketUsageUio
|
|
42
|
+
*/
|
|
43
|
+
totalTokens: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<TicketModelUsageUio>}
|
|
47
|
+
* @memberof TicketUsageUio
|
|
48
|
+
*/
|
|
49
|
+
models: Array<TicketModelUsageUio>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<TicketAgentUsageUio>}
|
|
53
|
+
* @memberof TicketUsageUio
|
|
54
|
+
*/
|
|
55
|
+
agents: Array<TicketAgentUsageUio>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the TicketUsageUio interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfTicketUsageUio(value: object): value is TicketUsageUio;
|
|
61
|
+
export declare function TicketUsageUioFromJSON(json: any): TicketUsageUio;
|
|
62
|
+
export declare function TicketUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketUsageUio;
|
|
63
|
+
export declare function TicketUsageUioToJSON(json: any): TicketUsageUio;
|
|
64
|
+
export declare function TicketUsageUioToJSONTyped(value?: TicketUsageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfTicketUsageUio = instanceOfTicketUsageUio;
|
|
17
|
+
exports.TicketUsageUioFromJSON = TicketUsageUioFromJSON;
|
|
18
|
+
exports.TicketUsageUioFromJSONTyped = TicketUsageUioFromJSONTyped;
|
|
19
|
+
exports.TicketUsageUioToJSON = TicketUsageUioToJSON;
|
|
20
|
+
exports.TicketUsageUioToJSONTyped = TicketUsageUioToJSONTyped;
|
|
21
|
+
const TicketAgentUsageUio_1 = require("./TicketAgentUsageUio");
|
|
22
|
+
const TicketModelUsageUio_1 = require("./TicketModelUsageUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the TicketUsageUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfTicketUsageUio(value) {
|
|
27
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('models' in value) || value['models'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('agents' in value) || value['agents'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function TicketUsageUioFromJSON(json) {
|
|
42
|
+
return TicketUsageUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TicketUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'inputTokens': json['inputTokens'],
|
|
50
|
+
'outputTokens': json['outputTokens'],
|
|
51
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
52
|
+
'totalTokens': json['totalTokens'],
|
|
53
|
+
'models': (json['models'].map(TicketModelUsageUio_1.TicketModelUsageUioFromJSON)),
|
|
54
|
+
'agents': (json['agents'].map(TicketAgentUsageUio_1.TicketAgentUsageUioFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function TicketUsageUioToJSON(json) {
|
|
58
|
+
return TicketUsageUioToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function TicketUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'inputTokens': value['inputTokens'],
|
|
66
|
+
'outputTokens': value['outputTokens'],
|
|
67
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
68
|
+
'totalTokens': value['totalTokens'],
|
|
69
|
+
'models': (value['models'].map(TicketModelUsageUio_1.TicketModelUsageUioToJSON)),
|
|
70
|
+
'agents': (value['agents'].map(TicketAgentUsageUio_1.TicketAgentUsageUioToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './AdvancedFlowEditorNodePositionUio';
|
|
|
17
17
|
export * from './AdvancedFlowEditorNodeUio';
|
|
18
18
|
export * from './AdvancedFlowEditorUio';
|
|
19
19
|
export * from './AdvancedFlowEditorUpdateRequestUio';
|
|
20
|
+
export * from './AgentAssignmentUio';
|
|
20
21
|
export * from './AgentBundleDiffUio';
|
|
21
22
|
export * from './AgentBundleListDiffUio';
|
|
22
23
|
export * from './AgentCallConfigurationUio';
|
|
@@ -495,10 +496,12 @@ export * from './TaskScheduleEndUio';
|
|
|
495
496
|
export * from './TaskScheduleIntervalUio';
|
|
496
497
|
export * from './TaskScheduleUio';
|
|
497
498
|
export * from './TextToSpeechProviderUio';
|
|
499
|
+
export * from './TicketActiveAgentUio';
|
|
498
500
|
export * from './TicketAgentExecutionPendingQuestionUio';
|
|
499
501
|
export * from './TicketAgentExecutionUio';
|
|
500
502
|
export * from './TicketAgentPlanUio';
|
|
501
503
|
export * from './TicketAgentRunStatusUio';
|
|
504
|
+
export * from './TicketAgentUsageUio';
|
|
502
505
|
export * from './TicketArtifactDownloadUrlUio';
|
|
503
506
|
export * from './TicketArtifactSourceUio';
|
|
504
507
|
export * from './TicketArtifactStatusUio';
|
|
@@ -510,6 +513,7 @@ export * from './TicketBoardColumnUio';
|
|
|
510
513
|
export * from './TicketBoardUio';
|
|
511
514
|
export * from './TicketEventKindUio';
|
|
512
515
|
export * from './TicketEventUio';
|
|
516
|
+
export * from './TicketModelUsageUio';
|
|
513
517
|
export * from './TicketPlanStepStatusUio';
|
|
514
518
|
export * from './TicketPlanStepUio';
|
|
515
519
|
export * from './TicketPriorityUio';
|
|
@@ -520,6 +524,7 @@ export * from './TicketReviewRequestUio';
|
|
|
520
524
|
export * from './TicketStartModeUio';
|
|
521
525
|
export * from './TicketStatusUio';
|
|
522
526
|
export * from './TicketUio';
|
|
527
|
+
export * from './TicketUsageUio';
|
|
523
528
|
export * from './TokenUsageUio';
|
|
524
529
|
export * from './ToolActionUio';
|
|
525
530
|
export * from './ToolAllowedToolsRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __exportStar(require("./AdvancedFlowEditorNodePositionUio"), exports);
|
|
|
35
35
|
__exportStar(require("./AdvancedFlowEditorNodeUio"), exports);
|
|
36
36
|
__exportStar(require("./AdvancedFlowEditorUio"), exports);
|
|
37
37
|
__exportStar(require("./AdvancedFlowEditorUpdateRequestUio"), exports);
|
|
38
|
+
__exportStar(require("./AgentAssignmentUio"), exports);
|
|
38
39
|
__exportStar(require("./AgentBundleDiffUio"), exports);
|
|
39
40
|
__exportStar(require("./AgentBundleListDiffUio"), exports);
|
|
40
41
|
__exportStar(require("./AgentCallConfigurationUio"), exports);
|
|
@@ -513,10 +514,12 @@ __exportStar(require("./TaskScheduleEndUio"), exports);
|
|
|
513
514
|
__exportStar(require("./TaskScheduleIntervalUio"), exports);
|
|
514
515
|
__exportStar(require("./TaskScheduleUio"), exports);
|
|
515
516
|
__exportStar(require("./TextToSpeechProviderUio"), exports);
|
|
517
|
+
__exportStar(require("./TicketActiveAgentUio"), exports);
|
|
516
518
|
__exportStar(require("./TicketAgentExecutionPendingQuestionUio"), exports);
|
|
517
519
|
__exportStar(require("./TicketAgentExecutionUio"), exports);
|
|
518
520
|
__exportStar(require("./TicketAgentPlanUio"), exports);
|
|
519
521
|
__exportStar(require("./TicketAgentRunStatusUio"), exports);
|
|
522
|
+
__exportStar(require("./TicketAgentUsageUio"), exports);
|
|
520
523
|
__exportStar(require("./TicketArtifactDownloadUrlUio"), exports);
|
|
521
524
|
__exportStar(require("./TicketArtifactSourceUio"), exports);
|
|
522
525
|
__exportStar(require("./TicketArtifactStatusUio"), exports);
|
|
@@ -528,6 +531,7 @@ __exportStar(require("./TicketBoardColumnUio"), exports);
|
|
|
528
531
|
__exportStar(require("./TicketBoardUio"), exports);
|
|
529
532
|
__exportStar(require("./TicketEventKindUio"), exports);
|
|
530
533
|
__exportStar(require("./TicketEventUio"), exports);
|
|
534
|
+
__exportStar(require("./TicketModelUsageUio"), exports);
|
|
531
535
|
__exportStar(require("./TicketPlanStepStatusUio"), exports);
|
|
532
536
|
__exportStar(require("./TicketPlanStepUio"), exports);
|
|
533
537
|
__exportStar(require("./TicketPriorityUio"), exports);
|
|
@@ -538,6 +542,7 @@ __exportStar(require("./TicketReviewRequestUio"), exports);
|
|
|
538
542
|
__exportStar(require("./TicketStartModeUio"), exports);
|
|
539
543
|
__exportStar(require("./TicketStatusUio"), exports);
|
|
540
544
|
__exportStar(require("./TicketUio"), exports);
|
|
545
|
+
__exportStar(require("./TicketUsageUio"), exports);
|
|
541
546
|
__exportStar(require("./TokenUsageUio"), exports);
|
|
542
547
|
__exportStar(require("./ToolActionUio"), exports);
|
|
543
548
|
__exportStar(require("./ToolAllowedToolsRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -17207,6 +17207,45 @@
|
|
|
17207
17207
|
"tags" : [ "tickets" ]
|
|
17208
17208
|
}
|
|
17209
17209
|
},
|
|
17210
|
+
"/tickets/{ticketId}/usage" : {
|
|
17211
|
+
"get" : {
|
|
17212
|
+
"description" : "Tokens consommés par les sessions de travail des agents sur le ticket et par les appels qu'elles ont faits à d'autres agents : au total, par modèle, et par agent puis par modèle.",
|
|
17213
|
+
"operationId" : "getTicketUsage",
|
|
17214
|
+
"parameters" : [ {
|
|
17215
|
+
"description" : "ID of the ticket",
|
|
17216
|
+
"in" : "path",
|
|
17217
|
+
"name" : "ticketId",
|
|
17218
|
+
"required" : true,
|
|
17219
|
+
"schema" : {
|
|
17220
|
+
"format" : "uuid",
|
|
17221
|
+
"type" : "string"
|
|
17222
|
+
}
|
|
17223
|
+
} ],
|
|
17224
|
+
"responses" : {
|
|
17225
|
+
"200" : {
|
|
17226
|
+
"content" : {
|
|
17227
|
+
"application/json" : {
|
|
17228
|
+
"schema" : {
|
|
17229
|
+
"$ref" : "#/components/schemas/TicketUsage"
|
|
17230
|
+
}
|
|
17231
|
+
}
|
|
17232
|
+
},
|
|
17233
|
+
"description" : "OK"
|
|
17234
|
+
},
|
|
17235
|
+
"401" : {
|
|
17236
|
+
"description" : "Unauthenticated"
|
|
17237
|
+
},
|
|
17238
|
+
"403" : {
|
|
17239
|
+
"description" : "Forbidden — the caller is not part of the organization or not a member of the project"
|
|
17240
|
+
},
|
|
17241
|
+
"404" : {
|
|
17242
|
+
"description" : "Not found"
|
|
17243
|
+
}
|
|
17244
|
+
},
|
|
17245
|
+
"summary" : "Get the tokens consumed by the agents on a ticket",
|
|
17246
|
+
"tags" : [ "tickets" ]
|
|
17247
|
+
}
|
|
17248
|
+
},
|
|
17210
17249
|
"/tickets/{ticketId}/events" : {
|
|
17211
17250
|
"get" : {
|
|
17212
17251
|
"description" : "Fil du ticket, du plus ancien au plus récent : commentaires, rapports, questions et événements.",
|
|
@@ -27638,6 +27677,12 @@
|
|
|
27638
27677
|
"agentsAutoWork" : {
|
|
27639
27678
|
"description" : "Les agents assignés se mettent au travail d'eux-mêmes quand on leur confie le ticket ou qu'on leur parle. Absent = activé.",
|
|
27640
27679
|
"type" : "boolean"
|
|
27680
|
+
},
|
|
27681
|
+
"agentAssignment" : {
|
|
27682
|
+
"allOf" : [ {
|
|
27683
|
+
"$ref" : "#/components/schemas/AgentAssignment"
|
|
27684
|
+
} ],
|
|
27685
|
+
"description" : "Assignation d'un agent par un autre agent. Absent = confirm."
|
|
27641
27686
|
}
|
|
27642
27687
|
},
|
|
27643
27688
|
"required" : [ "agentTicketCreation", "defaultStartMode" ],
|
|
@@ -28002,6 +28047,13 @@
|
|
|
28002
28047
|
"description" : "Questions, relectures et feux verts en attente sur ce ticket, tous humains confondus",
|
|
28003
28048
|
"type" : "integer"
|
|
28004
28049
|
},
|
|
28050
|
+
"activeAgents" : {
|
|
28051
|
+
"description" : "Agents qui travaillent sur le ticket en ce moment, assignés ou non : en cours d'exécution, réveil en attente, ou question posée à un humain.",
|
|
28052
|
+
"items" : {
|
|
28053
|
+
"$ref" : "#/components/schemas/TicketActiveAgent"
|
|
28054
|
+
},
|
|
28055
|
+
"type" : "array"
|
|
28056
|
+
},
|
|
28005
28057
|
"doneAt" : {
|
|
28006
28058
|
"nullable" : true,
|
|
28007
28059
|
"type" : "string"
|
|
@@ -28040,6 +28092,19 @@
|
|
|
28040
28092
|
"required" : [ "id", "state", "stateNote", "type", "updatedAt" ],
|
|
28041
28093
|
"type" : "object"
|
|
28042
28094
|
},
|
|
28095
|
+
"TicketActiveAgent" : {
|
|
28096
|
+
"properties" : {
|
|
28097
|
+
"id" : {
|
|
28098
|
+
"description" : "Identifiant de l'agent",
|
|
28099
|
+
"type" : "string"
|
|
28100
|
+
},
|
|
28101
|
+
"status" : {
|
|
28102
|
+
"$ref" : "#/components/schemas/TicketAgentRunStatus"
|
|
28103
|
+
}
|
|
28104
|
+
},
|
|
28105
|
+
"required" : [ "id", "status" ],
|
|
28106
|
+
"type" : "object"
|
|
28107
|
+
},
|
|
28043
28108
|
"TicketStatus" : {
|
|
28044
28109
|
"description" : "Colonne du ticket sur le board.",
|
|
28045
28110
|
"enum" : [ "backlog", "todo", "doing", "review", "done" ],
|
|
@@ -28249,6 +28314,97 @@
|
|
|
28249
28314
|
"required" : [ "status", "title" ],
|
|
28250
28315
|
"type" : "object"
|
|
28251
28316
|
},
|
|
28317
|
+
"TicketUsage" : {
|
|
28318
|
+
"description" : "Consommation du ticket : sessions de travail des agents et conversations ouvertes par leurs appels à d'autres agents. Modèles et agents triés du plus consommateur au moins consommateur.",
|
|
28319
|
+
"properties" : {
|
|
28320
|
+
"inputTokens" : {
|
|
28321
|
+
"type" : "integer"
|
|
28322
|
+
},
|
|
28323
|
+
"outputTokens" : {
|
|
28324
|
+
"type" : "integer"
|
|
28325
|
+
},
|
|
28326
|
+
"reasoningTokens" : {
|
|
28327
|
+
"type" : "integer"
|
|
28328
|
+
},
|
|
28329
|
+
"totalTokens" : {
|
|
28330
|
+
"type" : "integer"
|
|
28331
|
+
},
|
|
28332
|
+
"models" : {
|
|
28333
|
+
"items" : {
|
|
28334
|
+
"$ref" : "#/components/schemas/TicketModelUsage"
|
|
28335
|
+
},
|
|
28336
|
+
"type" : "array"
|
|
28337
|
+
},
|
|
28338
|
+
"agents" : {
|
|
28339
|
+
"items" : {
|
|
28340
|
+
"$ref" : "#/components/schemas/TicketAgentUsage"
|
|
28341
|
+
},
|
|
28342
|
+
"type" : "array"
|
|
28343
|
+
}
|
|
28344
|
+
},
|
|
28345
|
+
"required" : [ "agents", "inputTokens", "models", "outputTokens", "reasoningTokens", "totalTokens" ],
|
|
28346
|
+
"type" : "object"
|
|
28347
|
+
},
|
|
28348
|
+
"TicketModelUsage" : {
|
|
28349
|
+
"description" : "Tokens consommés avec un modèle d'un provider.",
|
|
28350
|
+
"properties" : {
|
|
28351
|
+
"model" : {
|
|
28352
|
+
"description" : "Nom du modèle tel qu'envoyé au provider ; unknown s'il n'a pas été relevé",
|
|
28353
|
+
"type" : "string"
|
|
28354
|
+
},
|
|
28355
|
+
"provider" : {
|
|
28356
|
+
"description" : "Identifiant du provider",
|
|
28357
|
+
"nullable" : true,
|
|
28358
|
+
"type" : "string"
|
|
28359
|
+
},
|
|
28360
|
+
"providerName" : {
|
|
28361
|
+
"nullable" : true,
|
|
28362
|
+
"type" : "string"
|
|
28363
|
+
},
|
|
28364
|
+
"inputTokens" : {
|
|
28365
|
+
"type" : "integer"
|
|
28366
|
+
},
|
|
28367
|
+
"outputTokens" : {
|
|
28368
|
+
"type" : "integer"
|
|
28369
|
+
},
|
|
28370
|
+
"reasoningTokens" : {
|
|
28371
|
+
"type" : "integer"
|
|
28372
|
+
},
|
|
28373
|
+
"totalTokens" : {
|
|
28374
|
+
"type" : "integer"
|
|
28375
|
+
}
|
|
28376
|
+
},
|
|
28377
|
+
"required" : [ "inputTokens", "model", "outputTokens", "provider", "providerName", "reasoningTokens", "totalTokens" ],
|
|
28378
|
+
"type" : "object"
|
|
28379
|
+
},
|
|
28380
|
+
"TicketAgentUsage" : {
|
|
28381
|
+
"description" : "Tokens consommés par un agent sur le ticket, par modèle.",
|
|
28382
|
+
"properties" : {
|
|
28383
|
+
"agentId" : {
|
|
28384
|
+
"type" : "string"
|
|
28385
|
+
},
|
|
28386
|
+
"inputTokens" : {
|
|
28387
|
+
"type" : "integer"
|
|
28388
|
+
},
|
|
28389
|
+
"outputTokens" : {
|
|
28390
|
+
"type" : "integer"
|
|
28391
|
+
},
|
|
28392
|
+
"reasoningTokens" : {
|
|
28393
|
+
"type" : "integer"
|
|
28394
|
+
},
|
|
28395
|
+
"totalTokens" : {
|
|
28396
|
+
"type" : "integer"
|
|
28397
|
+
},
|
|
28398
|
+
"models" : {
|
|
28399
|
+
"items" : {
|
|
28400
|
+
"$ref" : "#/components/schemas/TicketModelUsage"
|
|
28401
|
+
},
|
|
28402
|
+
"type" : "array"
|
|
28403
|
+
}
|
|
28404
|
+
},
|
|
28405
|
+
"required" : [ "agentId", "inputTokens", "models", "outputTokens", "reasoningTokens", "totalTokens" ],
|
|
28406
|
+
"type" : "object"
|
|
28407
|
+
},
|
|
28252
28408
|
"TicketEvent" : {
|
|
28253
28409
|
"properties" : {
|
|
28254
28410
|
"id" : {
|
|
@@ -29128,6 +29284,11 @@
|
|
|
29128
29284
|
"enum" : [ "now", "hold" ],
|
|
29129
29285
|
"type" : "string"
|
|
29130
29286
|
},
|
|
29287
|
+
"AgentAssignment" : {
|
|
29288
|
+
"description" : "Ce qui se passe quand un agent assigne un autre agent du projet à un ticket : confirm = l'agent assigné attend le feu vert d'un responsable humain ; direct = il se met au travail tout de suite.",
|
|
29289
|
+
"enum" : [ "confirm", "direct" ],
|
|
29290
|
+
"type" : "string"
|
|
29291
|
+
},
|
|
29131
29292
|
"ActorType" : {
|
|
29132
29293
|
"description" : "Auteur ou destinataire d'une action — un humain, un agent ou le système.",
|
|
29133
29294
|
"enum" : [ "user", "agent", "system" ],
|
|
@@ -29160,15 +29321,15 @@
|
|
|
29160
29321
|
"required" : [ "id", "type" ],
|
|
29161
29322
|
"type" : "object"
|
|
29162
29323
|
},
|
|
29163
|
-
"TicketReviewDecision" : {
|
|
29164
|
-
"enum" : [ "approve", "changes" ],
|
|
29165
|
-
"type" : "string"
|
|
29166
|
-
},
|
|
29167
29324
|
"TicketAgentRunStatus" : {
|
|
29168
29325
|
"description" : "Où en est le travail d'un agent sur un ticket : idle (rien en cours), queued (réveil en attente), running (il travaille), waiting_human (il attend la réponse à une question), failed (la dernière exécution a échoué).",
|
|
29169
29326
|
"enum" : [ "idle", "queued", "running", "waiting_human", "failed" ],
|
|
29170
29327
|
"type" : "string"
|
|
29171
29328
|
},
|
|
29329
|
+
"TicketReviewDecision" : {
|
|
29330
|
+
"enum" : [ "approve", "changes" ],
|
|
29331
|
+
"type" : "string"
|
|
29332
|
+
},
|
|
29172
29333
|
"TicketPlanStepStatus" : {
|
|
29173
29334
|
"enum" : [ "todo", "doing", "done" ],
|
|
29174
29335
|
"type" : "string"
|