@breign/client 1.0.183 → 1.0.184

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.
@@ -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, SaveTicketArtifactVersionRequestUio, 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, TicketApprovalRequestUio, 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;
@@ -30,6 +30,11 @@ export interface CreateTicketCommentRequest {
30
30
  ticketId: string;
31
31
  createTicketEventRequestUio: CreateTicketEventRequestUio;
32
32
  }
33
+ export interface DecideTicketApprovalRequest {
34
+ ticketId: string;
35
+ eventId: string;
36
+ ticketApprovalRequestUio: TicketApprovalRequestUio;
37
+ }
33
38
  export interface DeleteTicketArtifactRequest {
34
39
  ticketId: string;
35
40
  artifactId: string;
@@ -161,6 +166,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
161
166
  * Comment on a ticket
162
167
  */
163
168
  createTicketComment(ticketId: string, createTicketEventRequestUio: CreateTicketEventRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketEventUio>;
169
+ /**
170
+ * Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
171
+ * Answer an agent\'s approval request
172
+ */
173
+ decideTicketApprovalRaw(requestParameters: DecideTicketApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketUio>>;
174
+ /**
175
+ * Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
176
+ * Answer an agent\'s approval request
177
+ */
178
+ decideTicketApproval(ticketId: string, eventId: string, ticketApprovalRequestUio: TicketApprovalRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
164
179
  /**
165
180
  * Retire l\'artefact et supprime le fichier téléversé.
166
181
  * Remove an artifact from a ticket
@@ -218,6 +218,43 @@ class TicketsApi extends runtime.BaseAPI {
218
218
  const response = await this.createTicketCommentRaw({ ticketId: ticketId, createTicketEventRequestUio: createTicketEventRequestUio }, initOverrides);
219
219
  return await response.value();
220
220
  }
221
+ /**
222
+ * Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
223
+ * Answer an agent\'s approval request
224
+ */
225
+ async decideTicketApprovalRaw(requestParameters, initOverrides) {
226
+ if (requestParameters['ticketId'] == null) {
227
+ throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling decideTicketApproval().');
228
+ }
229
+ if (requestParameters['eventId'] == null) {
230
+ throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling decideTicketApproval().');
231
+ }
232
+ if (requestParameters['ticketApprovalRequestUio'] == null) {
233
+ throw new runtime.RequiredError('ticketApprovalRequestUio', 'Required parameter "ticketApprovalRequestUio" was null or undefined when calling decideTicketApproval().');
234
+ }
235
+ const queryParameters = {};
236
+ const headerParameters = {};
237
+ headerParameters['Content-Type'] = 'application/json';
238
+ if (this.configuration && this.configuration.apiKey) {
239
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
240
+ }
241
+ const response = await this.request({
242
+ path: `/tickets/{ticketId}/approvals/{eventId}`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId']))),
243
+ method: 'POST',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ body: (0, index_1.TicketApprovalRequestUioToJSON)(requestParameters['ticketApprovalRequestUio']),
247
+ }, initOverrides);
248
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
249
+ }
250
+ /**
251
+ * Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
252
+ * Answer an agent\'s approval request
253
+ */
254
+ async decideTicketApproval(ticketId, eventId, ticketApprovalRequestUio, initOverrides) {
255
+ const response = await this.decideTicketApprovalRaw({ ticketId: ticketId, eventId: eventId, ticketApprovalRequestUio: ticketApprovalRequestUio }, initOverrides);
256
+ return await response.value();
257
+ }
221
258
  /**
222
259
  * Retire l\'artefact et supprime le fichier téléversé.
223
260
  * Remove an artifact from a ticket
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * question, ticket_proposal, review et go_ahead sont des actions (onglet « À traiter ») ; mention a son propre onglet.
13
+ * question, ticket_proposal, review, go_ahead et approval sont des actions (onglet « À traiter ») ; mention a son propre onglet.
14
14
  * @export
15
15
  */
16
16
  export declare const InboxItemKindUio: {
@@ -18,6 +18,7 @@ export declare const InboxItemKindUio: {
18
18
  readonly TicketProposal: "ticket_proposal";
19
19
  readonly Review: "review";
20
20
  readonly GoAhead: "go_ahead";
21
+ readonly Approval: "approval";
21
22
  readonly Mention: "mention";
22
23
  };
23
24
  export type InboxItemKindUio = typeof InboxItemKindUio[keyof typeof InboxItemKindUio];
@@ -20,7 +20,7 @@ exports.InboxItemKindUioFromJSONTyped = InboxItemKindUioFromJSONTyped;
20
20
  exports.InboxItemKindUioToJSON = InboxItemKindUioToJSON;
21
21
  exports.InboxItemKindUioToJSONTyped = InboxItemKindUioToJSONTyped;
22
22
  /**
23
- * question, ticket_proposal, review et go_ahead sont des actions (onglet « À traiter ») ; mention a son propre onglet.
23
+ * question, ticket_proposal, review, go_ahead et approval sont des actions (onglet « À traiter ») ; mention a son propre onglet.
24
24
  * @export
25
25
  */
26
26
  exports.InboxItemKindUio = {
@@ -28,6 +28,7 @@ exports.InboxItemKindUio = {
28
28
  TicketProposal: 'ticket_proposal',
29
29
  Review: 'review',
30
30
  GoAhead: 'go_ahead',
31
+ Approval: 'approval',
31
32
  Mention: 'mention'
32
33
  };
33
34
  function instanceOfInboxItemKindUio(value) {
@@ -0,0 +1,26 @@
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
+ * approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
14
+ * @export
15
+ */
16
+ export declare const TicketApprovalDecisionUio: {
17
+ readonly Approve: "approve";
18
+ readonly Changes: "changes";
19
+ readonly Reject: "reject";
20
+ };
21
+ export type TicketApprovalDecisionUio = typeof TicketApprovalDecisionUio[keyof typeof TicketApprovalDecisionUio];
22
+ export declare function instanceOfTicketApprovalDecisionUio(value: any): boolean;
23
+ export declare function TicketApprovalDecisionUioFromJSON(json: any): TicketApprovalDecisionUio;
24
+ export declare function TicketApprovalDecisionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
25
+ export declare function TicketApprovalDecisionUioToJSON(value?: TicketApprovalDecisionUio | null): any;
26
+ export declare function TicketApprovalDecisionUioToJSONTyped(value: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
@@ -0,0 +1,52 @@
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.TicketApprovalDecisionUio = void 0;
17
+ exports.instanceOfTicketApprovalDecisionUio = instanceOfTicketApprovalDecisionUio;
18
+ exports.TicketApprovalDecisionUioFromJSON = TicketApprovalDecisionUioFromJSON;
19
+ exports.TicketApprovalDecisionUioFromJSONTyped = TicketApprovalDecisionUioFromJSONTyped;
20
+ exports.TicketApprovalDecisionUioToJSON = TicketApprovalDecisionUioToJSON;
21
+ exports.TicketApprovalDecisionUioToJSONTyped = TicketApprovalDecisionUioToJSONTyped;
22
+ /**
23
+ * approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
24
+ * @export
25
+ */
26
+ exports.TicketApprovalDecisionUio = {
27
+ Approve: 'approve',
28
+ Changes: 'changes',
29
+ Reject: 'reject'
30
+ };
31
+ function instanceOfTicketApprovalDecisionUio(value) {
32
+ for (const key in exports.TicketApprovalDecisionUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.TicketApprovalDecisionUio, key)) {
34
+ if (exports.TicketApprovalDecisionUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function TicketApprovalDecisionUioFromJSON(json) {
42
+ return TicketApprovalDecisionUioFromJSONTyped(json, false);
43
+ }
44
+ function TicketApprovalDecisionUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function TicketApprovalDecisionUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function TicketApprovalDecisionUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -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 { TicketApprovalDecisionUio } from './TicketApprovalDecisionUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TicketApprovalRequestUio
17
+ */
18
+ export interface TicketApprovalRequestUio {
19
+ /**
20
+ *
21
+ * @type {TicketApprovalDecisionUio}
22
+ * @memberof TicketApprovalRequestUio
23
+ */
24
+ decision: TicketApprovalDecisionUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TicketApprovalRequestUio
29
+ */
30
+ comment?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the TicketApprovalRequestUio interface.
34
+ */
35
+ export declare function instanceOfTicketApprovalRequestUio(value: object): value is TicketApprovalRequestUio;
36
+ export declare function TicketApprovalRequestUioFromJSON(json: any): TicketApprovalRequestUio;
37
+ export declare function TicketApprovalRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalRequestUio;
38
+ export declare function TicketApprovalRequestUioToJSON(json: any): TicketApprovalRequestUio;
39
+ export declare function TicketApprovalRequestUioToJSONTyped(value?: TicketApprovalRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfTicketApprovalRequestUio = instanceOfTicketApprovalRequestUio;
17
+ exports.TicketApprovalRequestUioFromJSON = TicketApprovalRequestUioFromJSON;
18
+ exports.TicketApprovalRequestUioFromJSONTyped = TicketApprovalRequestUioFromJSONTyped;
19
+ exports.TicketApprovalRequestUioToJSON = TicketApprovalRequestUioToJSON;
20
+ exports.TicketApprovalRequestUioToJSONTyped = TicketApprovalRequestUioToJSONTyped;
21
+ const TicketApprovalDecisionUio_1 = require("./TicketApprovalDecisionUio");
22
+ /**
23
+ * Check if a given object implements the TicketApprovalRequestUio interface.
24
+ */
25
+ function instanceOfTicketApprovalRequestUio(value) {
26
+ if (!('decision' in value) || value['decision'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function TicketApprovalRequestUioFromJSON(json) {
31
+ return TicketApprovalRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function TicketApprovalRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioFromJSON)(json['decision']),
39
+ 'comment': json['comment'] == null ? undefined : json['comment'],
40
+ };
41
+ }
42
+ function TicketApprovalRequestUioToJSON(json) {
43
+ return TicketApprovalRequestUioToJSONTyped(json, false);
44
+ }
45
+ function TicketApprovalRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioToJSON)(value['decision']),
51
+ 'comment': value['comment'],
52
+ };
53
+ }
@@ -10,13 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
13
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
14
14
  * @export
15
15
  */
16
16
  export declare const TicketEventKindUio: {
17
17
  readonly Comment: "comment";
18
18
  readonly Report: "report";
19
19
  readonly Question: "question";
20
+ readonly Approval: "approval";
20
21
  readonly Event: "event";
21
22
  };
22
23
  export type TicketEventKindUio = typeof TicketEventKindUio[keyof typeof TicketEventKindUio];
@@ -20,13 +20,14 @@ exports.TicketEventKindUioFromJSONTyped = TicketEventKindUioFromJSONTyped;
20
20
  exports.TicketEventKindUioToJSON = TicketEventKindUioToJSON;
21
21
  exports.TicketEventKindUioToJSONTyped = TicketEventKindUioToJSONTyped;
22
22
  /**
23
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
23
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
24
24
  * @export
25
25
  */
26
26
  exports.TicketEventKindUio = {
27
27
  Comment: 'comment',
28
28
  Report: 'report',
29
29
  Question: 'question',
30
+ Approval: 'approval',
30
31
  Event: 'event'
31
32
  };
32
33
  function instanceOfTicketEventKindUio(value) {
@@ -48,7 +48,7 @@ export interface TicketEventUio {
48
48
  */
49
49
  body: string | null;
50
50
  /**
51
- * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; mentions dans { mentions: MemberRef[] }.
51
+ * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.
52
52
  * @type {{ [key: string]: any; }}
53
53
  * @memberof TicketEventUio
54
54
  */
@@ -585,6 +585,8 @@ export * from './TicketAgentExecutionUio';
585
585
  export * from './TicketAgentPlanUio';
586
586
  export * from './TicketAgentRunStatusUio';
587
587
  export * from './TicketAgentUsageUio';
588
+ export * from './TicketApprovalDecisionUio';
589
+ export * from './TicketApprovalRequestUio';
588
590
  export * from './TicketArtifactDownloadUrlUio';
589
591
  export * from './TicketArtifactSourceUio';
590
592
  export * from './TicketArtifactStatusUio';
@@ -603,6 +603,8 @@ __exportStar(require("./TicketAgentExecutionUio"), exports);
603
603
  __exportStar(require("./TicketAgentPlanUio"), exports);
604
604
  __exportStar(require("./TicketAgentRunStatusUio"), exports);
605
605
  __exportStar(require("./TicketAgentUsageUio"), exports);
606
+ __exportStar(require("./TicketApprovalDecisionUio"), exports);
607
+ __exportStar(require("./TicketApprovalRequestUio"), exports);
606
608
  __exportStar(require("./TicketArtifactDownloadUrlUio"), exports);
607
609
  __exportStar(require("./TicketArtifactSourceUio"), exports);
608
610
  __exportStar(require("./TicketArtifactStatusUio"), exports);
package/dist/openapi.json CHANGED
@@ -18506,6 +18506,69 @@
18506
18506
  "tags" : [ "tickets" ]
18507
18507
  }
18508
18508
  },
18509
+ "/tickets/{ticketId}/approvals/{eventId}" : {
18510
+ "post" : {
18511
+ "description" : "Réponse de l'humain visé (ou d'un responsable du projet) à une demande d'approbation d'un agent. Le statut du ticket ne change pas ; l'agent est réveillé avec la réponse.",
18512
+ "operationId" : "decideTicketApproval",
18513
+ "parameters" : [ {
18514
+ "description" : "ID of the ticket",
18515
+ "in" : "path",
18516
+ "name" : "ticketId",
18517
+ "required" : true,
18518
+ "schema" : {
18519
+ "format" : "uuid",
18520
+ "type" : "string"
18521
+ }
18522
+ }, {
18523
+ "description" : "L'événement approval qui porte la demande.",
18524
+ "in" : "path",
18525
+ "name" : "eventId",
18526
+ "required" : true,
18527
+ "schema" : {
18528
+ "type" : "string"
18529
+ }
18530
+ } ],
18531
+ "requestBody" : {
18532
+ "content" : {
18533
+ "application/json" : {
18534
+ "schema" : {
18535
+ "$ref" : "#/components/schemas/TicketApprovalRequest"
18536
+ }
18537
+ }
18538
+ },
18539
+ "required" : true
18540
+ },
18541
+ "responses" : {
18542
+ "200" : {
18543
+ "content" : {
18544
+ "application/json" : {
18545
+ "schema" : {
18546
+ "$ref" : "#/components/schemas/Ticket"
18547
+ }
18548
+ }
18549
+ },
18550
+ "description" : "OK"
18551
+ },
18552
+ "400" : {
18553
+ "description" : "Invalid request — changes without a comment"
18554
+ },
18555
+ "401" : {
18556
+ "description" : "Unauthenticated"
18557
+ },
18558
+ "403" : {
18559
+ "description" : "Forbidden — neither the approver nor a manager of the project"
18560
+ },
18561
+ "404" : {
18562
+ "description" : "Not found"
18563
+ },
18564
+ "409" : {
18565
+ "description" : "Conflict — the request is no longer waiting"
18566
+ }
18567
+ },
18568
+ "summary" : "Answer an agent's approval request",
18569
+ "tags" : [ "tickets" ]
18570
+ }
18571
+ },
18509
18572
  "/tickets/{ticketId}/agents/execution" : {
18510
18573
  "get" : {
18511
18574
  "description" : "Pour chaque agent assigné : réveil en attente, exécution en cours, question en attente, plan publié et occupation du contexte de sa session de travail.",
@@ -32037,6 +32100,18 @@
32037
32100
  "required" : [ "decision" ],
32038
32101
  "type" : "object"
32039
32102
  },
32103
+ "TicketApprovalRequest" : {
32104
+ "properties" : {
32105
+ "decision" : {
32106
+ "$ref" : "#/components/schemas/TicketApprovalDecision"
32107
+ },
32108
+ "comment" : {
32109
+ "type" : "string"
32110
+ }
32111
+ },
32112
+ "required" : [ "decision" ],
32113
+ "type" : "object"
32114
+ },
32040
32115
  "TicketAgentExecution" : {
32041
32116
  "description" : "Ce que fait un agent assigné sur le ticket, pour le panneau « Exécution en cours ».",
32042
32117
  "properties" : {
@@ -32229,7 +32304,7 @@
32229
32304
  },
32230
32305
  "data" : {
32231
32306
  "additionalProperties" : true,
32232
- "description" : "Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; mentions dans { mentions: MemberRef[] }.",
32307
+ "description" : "Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.",
32233
32308
  "type" : "object"
32234
32309
  },
32235
32310
  "artifactIds" : {
@@ -34488,13 +34563,18 @@
34488
34563
  "enum" : [ "approve", "changes" ],
34489
34564
  "type" : "string"
34490
34565
  },
34566
+ "TicketApprovalDecision" : {
34567
+ "description" : "approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.",
34568
+ "enum" : [ "approve", "changes", "reject" ],
34569
+ "type" : "string"
34570
+ },
34491
34571
  "TicketPlanStepStatus" : {
34492
34572
  "enum" : [ "todo", "doing", "done" ],
34493
34573
  "type" : "string"
34494
34574
  },
34495
34575
  "TicketEventKind" : {
34496
- "description" : "comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).",
34497
- "enum" : [ "comment", "report", "question", "event" ],
34576
+ "description" : "comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).",
34577
+ "enum" : [ "comment", "report", "question", "approval", "event" ],
34498
34578
  "type" : "string"
34499
34579
  },
34500
34580
  "TicketArtifactSource" : {
@@ -34510,8 +34590,8 @@
34510
34590
  "type" : "string"
34511
34591
  },
34512
34592
  "InboxItemKind" : {
34513
- "description" : "question, ticket_proposal, review et go_ahead sont des actions (onglet « À traiter ») ; mention a son propre onglet.",
34514
- "enum" : [ "question", "ticket_proposal", "review", "go_ahead", "mention" ],
34593
+ "description" : "question, ticket_proposal, review, go_ahead et approval sont des actions (onglet « À traiter ») ; mention a son propre onglet.",
34594
+ "enum" : [ "question", "ticket_proposal", "review", "go_ahead", "approval", "mention" ],
34515
34595
  "type" : "string"
34516
34596
  },
34517
34597
  "InboxItemStatus" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.183",
3
+ "version": "1.0.184",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",