@breign/client 1.0.169 → 1.0.171
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 +31 -1
- package/dist/apis/TicketsApi.js +74 -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/SaveTicketArtifactVersionRequestUio.d.ts +32 -0
- package/dist/models/SaveTicketArtifactVersionRequestUio.js +50 -0
- package/dist/models/TicketActiveAgentUio.d.ts +39 -0
- package/dist/models/TicketActiveAgentUio.js +55 -0
- package/dist/models/TicketUio.d.ts +7 -0
- package/dist/models/TicketUio.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/openapi.json +174 -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, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, 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;
|
|
@@ -89,6 +89,11 @@ export interface ReviewTicketRequest {
|
|
|
89
89
|
ticketId: string;
|
|
90
90
|
ticketReviewRequestUio: TicketReviewRequestUio;
|
|
91
91
|
}
|
|
92
|
+
export interface SaveTicketArtifactVersionRequest {
|
|
93
|
+
ticketId: string;
|
|
94
|
+
artifactId: string;
|
|
95
|
+
saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
|
|
96
|
+
}
|
|
92
97
|
export interface SetTicketAssigneesRequest {
|
|
93
98
|
ticketId: string;
|
|
94
99
|
setTicketAssigneesRequestUio: SetTicketAssigneesRequestUio;
|
|
@@ -97,6 +102,11 @@ export interface UpdateTicketRequest {
|
|
|
97
102
|
ticketId: string;
|
|
98
103
|
updateTicketRequestUio: UpdateTicketRequestUio;
|
|
99
104
|
}
|
|
105
|
+
export interface UpdateTicketArtifactContentRequest {
|
|
106
|
+
ticketId: string;
|
|
107
|
+
artifactId: string;
|
|
108
|
+
saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
|
|
109
|
+
}
|
|
100
110
|
/**
|
|
101
111
|
*
|
|
102
112
|
*/
|
|
@@ -291,6 +301,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
291
301
|
* Review a ticket
|
|
292
302
|
*/
|
|
293
303
|
reviewTicket(ticketId: string, ticketReviewRequestUio: TicketReviewRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
304
|
+
/**
|
|
305
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
306
|
+
* Save an edited text artifact as its next version
|
|
307
|
+
*/
|
|
308
|
+
saveTicketArtifactVersionRaw(requestParameters: SaveTicketArtifactVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketArtifactUio>>;
|
|
309
|
+
/**
|
|
310
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
311
|
+
* Save an edited text artifact as its next version
|
|
312
|
+
*/
|
|
313
|
+
saveTicketArtifactVersion(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
|
|
294
314
|
/**
|
|
295
315
|
* Remplace les assignés. Les nouveaux agents démarrent selon startMode (réglage du projet par défaut) ; en hold, un feu vert est demandé.
|
|
296
316
|
* Replace the assignees of a ticket
|
|
@@ -311,4 +331,14 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
311
331
|
* Update a ticket
|
|
312
332
|
*/
|
|
313
333
|
updateTicket(ticketId: string, updateTicketRequestUio: UpdateTicketRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
334
|
+
/**
|
|
335
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
336
|
+
* Replace the text of an artifact in place
|
|
337
|
+
*/
|
|
338
|
+
updateTicketArtifactContentRaw(requestParameters: UpdateTicketArtifactContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketArtifactUio>>;
|
|
339
|
+
/**
|
|
340
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
341
|
+
* Replace the text of an artifact in place
|
|
342
|
+
*/
|
|
343
|
+
updateTicketArtifactContent(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
|
|
314
344
|
}
|
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -676,6 +676,43 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
676
676
|
const response = await this.reviewTicketRaw({ ticketId: ticketId, ticketReviewRequestUio: ticketReviewRequestUio }, initOverrides);
|
|
677
677
|
return await response.value();
|
|
678
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
681
|
+
* Save an edited text artifact as its next version
|
|
682
|
+
*/
|
|
683
|
+
async saveTicketArtifactVersionRaw(requestParameters, initOverrides) {
|
|
684
|
+
if (requestParameters['ticketId'] == null) {
|
|
685
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling saveTicketArtifactVersion().');
|
|
686
|
+
}
|
|
687
|
+
if (requestParameters['artifactId'] == null) {
|
|
688
|
+
throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling saveTicketArtifactVersion().');
|
|
689
|
+
}
|
|
690
|
+
if (requestParameters['saveTicketArtifactVersionRequestUio'] == null) {
|
|
691
|
+
throw new runtime.RequiredError('saveTicketArtifactVersionRequestUio', 'Required parameter "saveTicketArtifactVersionRequestUio" was null or undefined when calling saveTicketArtifactVersion().');
|
|
692
|
+
}
|
|
693
|
+
const queryParameters = {};
|
|
694
|
+
const headerParameters = {};
|
|
695
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
696
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
697
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
698
|
+
}
|
|
699
|
+
const response = await this.request({
|
|
700
|
+
path: `/tickets/{ticketId}/artifacts/{artifactId}/versions`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
|
|
701
|
+
method: 'POST',
|
|
702
|
+
headers: headerParameters,
|
|
703
|
+
query: queryParameters,
|
|
704
|
+
body: (0, index_1.SaveTicketArtifactVersionRequestUioToJSON)(requestParameters['saveTicketArtifactVersionRequestUio']),
|
|
705
|
+
}, initOverrides);
|
|
706
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactUioFromJSON)(jsonValue));
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
710
|
+
* Save an edited text artifact as its next version
|
|
711
|
+
*/
|
|
712
|
+
async saveTicketArtifactVersion(ticketId, artifactId, saveTicketArtifactVersionRequestUio, initOverrides) {
|
|
713
|
+
const response = await this.saveTicketArtifactVersionRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
|
|
714
|
+
return await response.value();
|
|
715
|
+
}
|
|
679
716
|
/**
|
|
680
717
|
* Remplace les assignés. Les nouveaux agents démarrent selon startMode (réglage du projet par défaut) ; en hold, un feu vert est demandé.
|
|
681
718
|
* Replace the assignees of a ticket
|
|
@@ -744,5 +781,42 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
744
781
|
const response = await this.updateTicketRaw({ ticketId: ticketId, updateTicketRequestUio: updateTicketRequestUio }, initOverrides);
|
|
745
782
|
return await response.value();
|
|
746
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
786
|
+
* Replace the text of an artifact in place
|
|
787
|
+
*/
|
|
788
|
+
async updateTicketArtifactContentRaw(requestParameters, initOverrides) {
|
|
789
|
+
if (requestParameters['ticketId'] == null) {
|
|
790
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling updateTicketArtifactContent().');
|
|
791
|
+
}
|
|
792
|
+
if (requestParameters['artifactId'] == null) {
|
|
793
|
+
throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling updateTicketArtifactContent().');
|
|
794
|
+
}
|
|
795
|
+
if (requestParameters['saveTicketArtifactVersionRequestUio'] == null) {
|
|
796
|
+
throw new runtime.RequiredError('saveTicketArtifactVersionRequestUio', 'Required parameter "saveTicketArtifactVersionRequestUio" was null or undefined when calling updateTicketArtifactContent().');
|
|
797
|
+
}
|
|
798
|
+
const queryParameters = {};
|
|
799
|
+
const headerParameters = {};
|
|
800
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
803
|
+
}
|
|
804
|
+
const response = await this.request({
|
|
805
|
+
path: `/tickets/{ticketId}/artifacts/{artifactId}/content`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
|
|
806
|
+
method: 'PUT',
|
|
807
|
+
headers: headerParameters,
|
|
808
|
+
query: queryParameters,
|
|
809
|
+
body: (0, index_1.SaveTicketArtifactVersionRequestUioToJSON)(requestParameters['saveTicketArtifactVersionRequestUio']),
|
|
810
|
+
}, initOverrides);
|
|
811
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactUioFromJSON)(jsonValue));
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
815
|
+
* Replace the text of an artifact in place
|
|
816
|
+
*/
|
|
817
|
+
async updateTicketArtifactContent(ticketId, artifactId, saveTicketArtifactVersionRequestUio, initOverrides) {
|
|
818
|
+
const response = await this.updateTicketArtifactContentRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
|
|
819
|
+
return await response.value();
|
|
820
|
+
}
|
|
747
821
|
}
|
|
748
822
|
exports.TicketsApi = TicketsApi;
|
|
@@ -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,32 @@
|
|
|
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 SaveTicketArtifactVersionRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SaveTicketArtifactVersionRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* Le texte complet de la nouvelle version
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SaveTicketArtifactVersionRequestUio
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SaveTicketArtifactVersionRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSaveTicketArtifactVersionRequestUio(value: object): value is SaveTicketArtifactVersionRequestUio;
|
|
29
|
+
export declare function SaveTicketArtifactVersionRequestUioFromJSON(json: any): SaveTicketArtifactVersionRequestUio;
|
|
30
|
+
export declare function SaveTicketArtifactVersionRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveTicketArtifactVersionRequestUio;
|
|
31
|
+
export declare function SaveTicketArtifactVersionRequestUioToJSON(json: any): SaveTicketArtifactVersionRequestUio;
|
|
32
|
+
export declare function SaveTicketArtifactVersionRequestUioToJSONTyped(value?: SaveTicketArtifactVersionRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfSaveTicketArtifactVersionRequestUio = instanceOfSaveTicketArtifactVersionRequestUio;
|
|
17
|
+
exports.SaveTicketArtifactVersionRequestUioFromJSON = SaveTicketArtifactVersionRequestUioFromJSON;
|
|
18
|
+
exports.SaveTicketArtifactVersionRequestUioFromJSONTyped = SaveTicketArtifactVersionRequestUioFromJSONTyped;
|
|
19
|
+
exports.SaveTicketArtifactVersionRequestUioToJSON = SaveTicketArtifactVersionRequestUioToJSON;
|
|
20
|
+
exports.SaveTicketArtifactVersionRequestUioToJSONTyped = SaveTicketArtifactVersionRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SaveTicketArtifactVersionRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSaveTicketArtifactVersionRequestUio(value) {
|
|
25
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SaveTicketArtifactVersionRequestUioFromJSON(json) {
|
|
30
|
+
return SaveTicketArtifactVersionRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SaveTicketArtifactVersionRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'content': json['content'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SaveTicketArtifactVersionRequestUioToJSON(json) {
|
|
41
|
+
return SaveTicketArtifactVersionRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SaveTicketArtifactVersionRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'content': value['content'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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'],
|
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';
|
|
@@ -446,6 +447,7 @@ export * from './RoleUio';
|
|
|
446
447
|
export * from './RunStepUio';
|
|
447
448
|
export * from './S3UploadBodyUio';
|
|
448
449
|
export * from './STTResponseUio';
|
|
450
|
+
export * from './SaveTicketArtifactVersionRequestUio';
|
|
449
451
|
export * from './ScheduledTaskCreateUio';
|
|
450
452
|
export * from './ScheduledTaskListUio';
|
|
451
453
|
export * from './ScheduledTaskManualRunResponseUio';
|
|
@@ -495,6 +497,7 @@ export * from './TaskScheduleEndUio';
|
|
|
495
497
|
export * from './TaskScheduleIntervalUio';
|
|
496
498
|
export * from './TaskScheduleUio';
|
|
497
499
|
export * from './TextToSpeechProviderUio';
|
|
500
|
+
export * from './TicketActiveAgentUio';
|
|
498
501
|
export * from './TicketAgentExecutionPendingQuestionUio';
|
|
499
502
|
export * from './TicketAgentExecutionUio';
|
|
500
503
|
export * from './TicketAgentPlanUio';
|
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);
|
|
@@ -464,6 +465,7 @@ __exportStar(require("./RoleUio"), exports);
|
|
|
464
465
|
__exportStar(require("./RunStepUio"), exports);
|
|
465
466
|
__exportStar(require("./S3UploadBodyUio"), exports);
|
|
466
467
|
__exportStar(require("./STTResponseUio"), exports);
|
|
468
|
+
__exportStar(require("./SaveTicketArtifactVersionRequestUio"), exports);
|
|
467
469
|
__exportStar(require("./ScheduledTaskCreateUio"), exports);
|
|
468
470
|
__exportStar(require("./ScheduledTaskListUio"), exports);
|
|
469
471
|
__exportStar(require("./ScheduledTaskManualRunResponseUio"), exports);
|
|
@@ -513,6 +515,7 @@ __exportStar(require("./TaskScheduleEndUio"), exports);
|
|
|
513
515
|
__exportStar(require("./TaskScheduleIntervalUio"), exports);
|
|
514
516
|
__exportStar(require("./TaskScheduleUio"), exports);
|
|
515
517
|
__exportStar(require("./TextToSpeechProviderUio"), exports);
|
|
518
|
+
__exportStar(require("./TicketActiveAgentUio"), exports);
|
|
516
519
|
__exportStar(require("./TicketAgentExecutionPendingQuestionUio"), exports);
|
|
517
520
|
__exportStar(require("./TicketAgentExecutionUio"), exports);
|
|
518
521
|
__exportStar(require("./TicketAgentPlanUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -17615,6 +17615,134 @@
|
|
|
17615
17615
|
"tags" : [ "tickets" ]
|
|
17616
17616
|
}
|
|
17617
17617
|
},
|
|
17618
|
+
"/tickets/{ticketId}/artifacts/{artifactId}/versions" : {
|
|
17619
|
+
"post" : {
|
|
17620
|
+
"description" : "Enregistre le texte modifié d'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.",
|
|
17621
|
+
"operationId" : "saveTicketArtifactVersion",
|
|
17622
|
+
"parameters" : [ {
|
|
17623
|
+
"description" : "ID of the ticket",
|
|
17624
|
+
"in" : "path",
|
|
17625
|
+
"name" : "ticketId",
|
|
17626
|
+
"required" : true,
|
|
17627
|
+
"schema" : {
|
|
17628
|
+
"format" : "uuid",
|
|
17629
|
+
"type" : "string"
|
|
17630
|
+
}
|
|
17631
|
+
}, {
|
|
17632
|
+
"description" : "ID of the ticket artifact",
|
|
17633
|
+
"in" : "path",
|
|
17634
|
+
"name" : "artifactId",
|
|
17635
|
+
"required" : true,
|
|
17636
|
+
"schema" : {
|
|
17637
|
+
"format" : "uuid",
|
|
17638
|
+
"type" : "string"
|
|
17639
|
+
}
|
|
17640
|
+
} ],
|
|
17641
|
+
"requestBody" : {
|
|
17642
|
+
"content" : {
|
|
17643
|
+
"application/json" : {
|
|
17644
|
+
"schema" : {
|
|
17645
|
+
"$ref" : "#/components/schemas/SaveTicketArtifactVersionRequest"
|
|
17646
|
+
}
|
|
17647
|
+
}
|
|
17648
|
+
},
|
|
17649
|
+
"required" : true
|
|
17650
|
+
},
|
|
17651
|
+
"responses" : {
|
|
17652
|
+
"201" : {
|
|
17653
|
+
"content" : {
|
|
17654
|
+
"application/json" : {
|
|
17655
|
+
"schema" : {
|
|
17656
|
+
"$ref" : "#/components/schemas/TicketArtifact"
|
|
17657
|
+
}
|
|
17658
|
+
}
|
|
17659
|
+
},
|
|
17660
|
+
"description" : "Created"
|
|
17661
|
+
},
|
|
17662
|
+
"400" : {
|
|
17663
|
+
"description" : "Not a text artifact"
|
|
17664
|
+
},
|
|
17665
|
+
"401" : {
|
|
17666
|
+
"description" : "Unauthenticated"
|
|
17667
|
+
},
|
|
17668
|
+
"403" : {
|
|
17669
|
+
"description" : "Forbidden — the caller is not part of the organization or not a member of the project"
|
|
17670
|
+
},
|
|
17671
|
+
"404" : {
|
|
17672
|
+
"description" : "Not found"
|
|
17673
|
+
},
|
|
17674
|
+
"413" : {
|
|
17675
|
+
"description" : "Content too large"
|
|
17676
|
+
}
|
|
17677
|
+
},
|
|
17678
|
+
"summary" : "Save an edited text artifact as its next version",
|
|
17679
|
+
"tags" : [ "tickets" ]
|
|
17680
|
+
}
|
|
17681
|
+
},
|
|
17682
|
+
"/tickets/{ticketId}/artifacts/{artifactId}/content" : {
|
|
17683
|
+
"put" : {
|
|
17684
|
+
"description" : "Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.",
|
|
17685
|
+
"operationId" : "updateTicketArtifactContent",
|
|
17686
|
+
"parameters" : [ {
|
|
17687
|
+
"description" : "ID of the ticket",
|
|
17688
|
+
"in" : "path",
|
|
17689
|
+
"name" : "ticketId",
|
|
17690
|
+
"required" : true,
|
|
17691
|
+
"schema" : {
|
|
17692
|
+
"format" : "uuid",
|
|
17693
|
+
"type" : "string"
|
|
17694
|
+
}
|
|
17695
|
+
}, {
|
|
17696
|
+
"description" : "ID of the ticket artifact",
|
|
17697
|
+
"in" : "path",
|
|
17698
|
+
"name" : "artifactId",
|
|
17699
|
+
"required" : true,
|
|
17700
|
+
"schema" : {
|
|
17701
|
+
"format" : "uuid",
|
|
17702
|
+
"type" : "string"
|
|
17703
|
+
}
|
|
17704
|
+
} ],
|
|
17705
|
+
"requestBody" : {
|
|
17706
|
+
"content" : {
|
|
17707
|
+
"application/json" : {
|
|
17708
|
+
"schema" : {
|
|
17709
|
+
"$ref" : "#/components/schemas/SaveTicketArtifactVersionRequest"
|
|
17710
|
+
}
|
|
17711
|
+
}
|
|
17712
|
+
},
|
|
17713
|
+
"required" : true
|
|
17714
|
+
},
|
|
17715
|
+
"responses" : {
|
|
17716
|
+
"200" : {
|
|
17717
|
+
"content" : {
|
|
17718
|
+
"application/json" : {
|
|
17719
|
+
"schema" : {
|
|
17720
|
+
"$ref" : "#/components/schemas/TicketArtifact"
|
|
17721
|
+
}
|
|
17722
|
+
}
|
|
17723
|
+
},
|
|
17724
|
+
"description" : "OK"
|
|
17725
|
+
},
|
|
17726
|
+
"400" : {
|
|
17727
|
+
"description" : "Not a text artifact"
|
|
17728
|
+
},
|
|
17729
|
+
"401" : {
|
|
17730
|
+
"description" : "Unauthenticated"
|
|
17731
|
+
},
|
|
17732
|
+
"403" : {
|
|
17733
|
+
"description" : "Forbidden — the caller is not part of the organization or not a member of the project"
|
|
17734
|
+
},
|
|
17735
|
+
"404" : {
|
|
17736
|
+
"description" : "Not found"
|
|
17737
|
+
},
|
|
17738
|
+
"413" : {
|
|
17739
|
+
"description" : "Content too large"
|
|
17740
|
+
}
|
|
17741
|
+
},
|
|
17742
|
+
"summary" : "Replace the text of an artifact in place",
|
|
17743
|
+
"tags" : [ "tickets" ]
|
|
17744
|
+
}
|
|
17745
|
+
},
|
|
17618
17746
|
"/ticket-proposals/{proposalId}/accept" : {
|
|
17619
17747
|
"post" : {
|
|
17620
17748
|
"description" : "Crée le ticket proposé par l'agent, avec les corrections éventuelles. projectId est obligatoire si l'agent n'en a pas proposé.",
|
|
@@ -27677,6 +27805,12 @@
|
|
|
27677
27805
|
"agentsAutoWork" : {
|
|
27678
27806
|
"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é.",
|
|
27679
27807
|
"type" : "boolean"
|
|
27808
|
+
},
|
|
27809
|
+
"agentAssignment" : {
|
|
27810
|
+
"allOf" : [ {
|
|
27811
|
+
"$ref" : "#/components/schemas/AgentAssignment"
|
|
27812
|
+
} ],
|
|
27813
|
+
"description" : "Assignation d'un agent par un autre agent. Absent = confirm."
|
|
27680
27814
|
}
|
|
27681
27815
|
},
|
|
27682
27816
|
"required" : [ "agentTicketCreation", "defaultStartMode" ],
|
|
@@ -28041,6 +28175,13 @@
|
|
|
28041
28175
|
"description" : "Questions, relectures et feux verts en attente sur ce ticket, tous humains confondus",
|
|
28042
28176
|
"type" : "integer"
|
|
28043
28177
|
},
|
|
28178
|
+
"activeAgents" : {
|
|
28179
|
+
"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.",
|
|
28180
|
+
"items" : {
|
|
28181
|
+
"$ref" : "#/components/schemas/TicketActiveAgent"
|
|
28182
|
+
},
|
|
28183
|
+
"type" : "array"
|
|
28184
|
+
},
|
|
28044
28185
|
"doneAt" : {
|
|
28045
28186
|
"nullable" : true,
|
|
28046
28187
|
"type" : "string"
|
|
@@ -28079,6 +28220,19 @@
|
|
|
28079
28220
|
"required" : [ "id", "state", "stateNote", "type", "updatedAt" ],
|
|
28080
28221
|
"type" : "object"
|
|
28081
28222
|
},
|
|
28223
|
+
"TicketActiveAgent" : {
|
|
28224
|
+
"properties" : {
|
|
28225
|
+
"id" : {
|
|
28226
|
+
"description" : "Identifiant de l'agent",
|
|
28227
|
+
"type" : "string"
|
|
28228
|
+
},
|
|
28229
|
+
"status" : {
|
|
28230
|
+
"$ref" : "#/components/schemas/TicketAgentRunStatus"
|
|
28231
|
+
}
|
|
28232
|
+
},
|
|
28233
|
+
"required" : [ "id", "status" ],
|
|
28234
|
+
"type" : "object"
|
|
28235
|
+
},
|
|
28082
28236
|
"TicketStatus" : {
|
|
28083
28237
|
"description" : "Colonne du ticket sur le board.",
|
|
28084
28238
|
"enum" : [ "backlog", "todo", "doing", "review", "done" ],
|
|
@@ -28508,6 +28662,17 @@
|
|
|
28508
28662
|
"required" : [ "url" ],
|
|
28509
28663
|
"type" : "object"
|
|
28510
28664
|
},
|
|
28665
|
+
"SaveTicketArtifactVersionRequest" : {
|
|
28666
|
+
"properties" : {
|
|
28667
|
+
"content" : {
|
|
28668
|
+
"description" : "Le texte complet de la nouvelle version",
|
|
28669
|
+
"maxLength" : 1000000,
|
|
28670
|
+
"type" : "string"
|
|
28671
|
+
}
|
|
28672
|
+
},
|
|
28673
|
+
"required" : [ "content" ],
|
|
28674
|
+
"type" : "object"
|
|
28675
|
+
},
|
|
28511
28676
|
"AcceptTicketProposalRequest" : {
|
|
28512
28677
|
"description" : "Corrections avant création ; projectId est obligatoire si l'agent n'en a pas proposé.",
|
|
28513
28678
|
"properties" : {
|
|
@@ -29258,6 +29423,11 @@
|
|
|
29258
29423
|
"enum" : [ "now", "hold" ],
|
|
29259
29424
|
"type" : "string"
|
|
29260
29425
|
},
|
|
29426
|
+
"AgentAssignment" : {
|
|
29427
|
+
"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.",
|
|
29428
|
+
"enum" : [ "confirm", "direct" ],
|
|
29429
|
+
"type" : "string"
|
|
29430
|
+
},
|
|
29261
29431
|
"ActorType" : {
|
|
29262
29432
|
"description" : "Auteur ou destinataire d'une action — un humain, un agent ou le système.",
|
|
29263
29433
|
"enum" : [ "user", "agent", "system" ],
|
|
@@ -29290,15 +29460,15 @@
|
|
|
29290
29460
|
"required" : [ "id", "type" ],
|
|
29291
29461
|
"type" : "object"
|
|
29292
29462
|
},
|
|
29293
|
-
"TicketReviewDecision" : {
|
|
29294
|
-
"enum" : [ "approve", "changes" ],
|
|
29295
|
-
"type" : "string"
|
|
29296
|
-
},
|
|
29297
29463
|
"TicketAgentRunStatus" : {
|
|
29298
29464
|
"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é).",
|
|
29299
29465
|
"enum" : [ "idle", "queued", "running", "waiting_human", "failed" ],
|
|
29300
29466
|
"type" : "string"
|
|
29301
29467
|
},
|
|
29468
|
+
"TicketReviewDecision" : {
|
|
29469
|
+
"enum" : [ "approve", "changes" ],
|
|
29470
|
+
"type" : "string"
|
|
29471
|
+
},
|
|
29302
29472
|
"TicketPlanStepStatus" : {
|
|
29303
29473
|
"enum" : [ "todo", "doing", "done" ],
|
|
29304
29474
|
"type" : "string"
|