@breign/client 1.0.169 → 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.
@@ -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
+ }
@@ -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}
@@ -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'],
@@ -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,6 +496,7 @@ 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';
@@ -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,6 +514,7 @@ __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);
package/dist/openapi.json CHANGED
@@ -27677,6 +27677,12 @@
27677
27677
  "agentsAutoWork" : {
27678
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é.",
27679
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."
27680
27686
  }
27681
27687
  },
27682
27688
  "required" : [ "agentTicketCreation", "defaultStartMode" ],
@@ -28041,6 +28047,13 @@
28041
28047
  "description" : "Questions, relectures et feux verts en attente sur ce ticket, tous humains confondus",
28042
28048
  "type" : "integer"
28043
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
+ },
28044
28057
  "doneAt" : {
28045
28058
  "nullable" : true,
28046
28059
  "type" : "string"
@@ -28079,6 +28092,19 @@
28079
28092
  "required" : [ "id", "state", "stateNote", "type", "updatedAt" ],
28080
28093
  "type" : "object"
28081
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
+ },
28082
28108
  "TicketStatus" : {
28083
28109
  "description" : "Colonne du ticket sur le board.",
28084
28110
  "enum" : [ "backlog", "todo", "doing", "review", "done" ],
@@ -29258,6 +29284,11 @@
29258
29284
  "enum" : [ "now", "hold" ],
29259
29285
  "type" : "string"
29260
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
+ },
29261
29292
  "ActorType" : {
29262
29293
  "description" : "Auteur ou destinataire d'une action — un humain, un agent ou le système.",
29263
29294
  "enum" : [ "user", "agent", "system" ],
@@ -29290,15 +29321,15 @@
29290
29321
  "required" : [ "id", "type" ],
29291
29322
  "type" : "object"
29292
29323
  },
29293
- "TicketReviewDecision" : {
29294
- "enum" : [ "approve", "changes" ],
29295
- "type" : "string"
29296
- },
29297
29324
  "TicketAgentRunStatus" : {
29298
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é).",
29299
29326
  "enum" : [ "idle", "queued", "running", "waiting_human", "failed" ],
29300
29327
  "type" : "string"
29301
29328
  },
29329
+ "TicketReviewDecision" : {
29330
+ "enum" : [ "approve", "changes" ],
29331
+ "type" : "string"
29332
+ },
29302
29333
  "TicketPlanStepStatus" : {
29303
29334
  "enum" : [ "todo", "doing", "done" ],
29304
29335
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.169",
3
+ "version": "1.0.170",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",