@breign/client 1.0.190 → 1.0.191

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, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
13
+ import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
14
14
  export interface AcceptTicketProposalRequest {
15
15
  proposalId: string;
16
16
  acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
@@ -39,6 +39,10 @@ export interface DeleteTicketArtifactRequest {
39
39
  ticketId: string;
40
40
  artifactId: string;
41
41
  }
42
+ export interface GetAgentsAtWorkRequest {
43
+ organizationId: string;
44
+ limit?: number;
45
+ }
42
46
  export interface GetProjectBoardRequest {
43
47
  projectId: string;
44
48
  doneLimit?: number;
@@ -196,6 +200,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
196
200
  * Remove an artifact from a ticket
197
201
  */
198
202
  deleteTicketArtifact(ticketId: string, artifactId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
203
+ /**
204
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
205
+ * List the agents at work on the caller\'s tickets
206
+ */
207
+ getAgentsAtWorkRaw(requestParameters: GetAgentsAtWorkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentAtWorkUio>>>;
208
+ /**
209
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
210
+ * List the agents at work on the caller\'s tickets
211
+ */
212
+ getAgentsAtWork(organizationId: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentAtWorkUio>>;
199
213
  /**
200
214
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
201
215
  * Get the board of a project
@@ -286,6 +286,38 @@ class TicketsApi extends runtime.BaseAPI {
286
286
  async deleteTicketArtifact(ticketId, artifactId, initOverrides) {
287
287
  await this.deleteTicketArtifactRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
288
288
  }
289
+ /**
290
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
291
+ * List the agents at work on the caller\'s tickets
292
+ */
293
+ async getAgentsAtWorkRaw(requestParameters, initOverrides) {
294
+ if (requestParameters['organizationId'] == null) {
295
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentsAtWork().');
296
+ }
297
+ const queryParameters = {};
298
+ if (requestParameters['limit'] != null) {
299
+ queryParameters['limit'] = requestParameters['limit'];
300
+ }
301
+ const headerParameters = {};
302
+ if (this.configuration && this.configuration.apiKey) {
303
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
304
+ }
305
+ const response = await this.request({
306
+ path: `/organizations/{organizationId}/agents-at-work`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
307
+ method: 'GET',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ }, initOverrides);
311
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentAtWorkUioFromJSON));
312
+ }
313
+ /**
314
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
315
+ * List the agents at work on the caller\'s tickets
316
+ */
317
+ async getAgentsAtWork(organizationId, limit, initOverrides) {
318
+ const response = await this.getAgentsAtWorkRaw({ organizationId: organizationId, limit: limit }, initOverrides);
319
+ return await response.value();
320
+ }
289
321
  /**
290
322
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
291
323
  * Get the board of a project
@@ -0,0 +1,44 @@
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 AgentAtWorkProjectUio
16
+ */
17
+ export interface AgentAtWorkProjectUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentAtWorkProjectUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentAtWorkProjectUio
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgentAtWorkProjectUio
34
+ */
35
+ name: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
39
+ */
40
+ export declare function instanceOfAgentAtWorkProjectUio(value: object): value is AgentAtWorkProjectUio;
41
+ export declare function AgentAtWorkProjectUioFromJSON(json: any): AgentAtWorkProjectUio;
42
+ export declare function AgentAtWorkProjectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkProjectUio;
43
+ export declare function AgentAtWorkProjectUioToJSON(json: any): AgentAtWorkProjectUio;
44
+ export declare function AgentAtWorkProjectUioToJSONTyped(value?: AgentAtWorkProjectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfAgentAtWorkProjectUio = instanceOfAgentAtWorkProjectUio;
17
+ exports.AgentAtWorkProjectUioFromJSON = AgentAtWorkProjectUioFromJSON;
18
+ exports.AgentAtWorkProjectUioFromJSONTyped = AgentAtWorkProjectUioFromJSONTyped;
19
+ exports.AgentAtWorkProjectUioToJSON = AgentAtWorkProjectUioToJSON;
20
+ exports.AgentAtWorkProjectUioToJSONTyped = AgentAtWorkProjectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
23
+ */
24
+ function instanceOfAgentAtWorkProjectUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AgentAtWorkProjectUioFromJSON(json) {
34
+ return AgentAtWorkProjectUioFromJSONTyped(json, false);
35
+ }
36
+ function AgentAtWorkProjectUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'key': json['key'],
43
+ 'name': json['name'],
44
+ };
45
+ }
46
+ function AgentAtWorkProjectUioToJSON(json) {
47
+ return AgentAtWorkProjectUioToJSONTyped(json, false);
48
+ }
49
+ function AgentAtWorkProjectUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'key': value['key'],
56
+ 'name': value['name'],
57
+ };
58
+ }
@@ -0,0 +1,65 @@
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 { TicketParentRefUio } from './TicketParentRefUio';
13
+ import type { AgentAtWorkProjectUio } from './AgentAtWorkProjectUio';
14
+ import type { TicketAssigneeStateUio } from './TicketAssigneeStateUio';
15
+ /**
16
+ * Un agent assigné à un ticket ouvert qui concerne l'utilisateur (créateur, assigné ou relecteur), et qui travaille, attend une réponse ou est bloqué.
17
+ * @export
18
+ * @interface AgentAtWorkUio
19
+ */
20
+ export interface AgentAtWorkUio {
21
+ /**
22
+ *
23
+ * @type {TicketParentRefUio}
24
+ * @memberof AgentAtWorkUio
25
+ */
26
+ ticket: TicketParentRefUio;
27
+ /**
28
+ *
29
+ * @type {AgentAtWorkProjectUio}
30
+ * @memberof AgentAtWorkUio
31
+ */
32
+ project: AgentAtWorkProjectUio;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof AgentAtWorkUio
37
+ */
38
+ agentId: string;
39
+ /**
40
+ *
41
+ * @type {TicketAssigneeStateUio}
42
+ * @memberof AgentAtWorkUio
43
+ */
44
+ state: TicketAssigneeStateUio;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof AgentAtWorkUio
49
+ */
50
+ stateNote: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof AgentAtWorkUio
55
+ */
56
+ updatedAt: string;
57
+ }
58
+ /**
59
+ * Check if a given object implements the AgentAtWorkUio interface.
60
+ */
61
+ export declare function instanceOfAgentAtWorkUio(value: object): value is AgentAtWorkUio;
62
+ export declare function AgentAtWorkUioFromJSON(json: any): AgentAtWorkUio;
63
+ export declare function AgentAtWorkUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkUio;
64
+ export declare function AgentAtWorkUioToJSON(json: any): AgentAtWorkUio;
65
+ export declare function AgentAtWorkUioToJSONTyped(value?: AgentAtWorkUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.instanceOfAgentAtWorkUio = instanceOfAgentAtWorkUio;
17
+ exports.AgentAtWorkUioFromJSON = AgentAtWorkUioFromJSON;
18
+ exports.AgentAtWorkUioFromJSONTyped = AgentAtWorkUioFromJSONTyped;
19
+ exports.AgentAtWorkUioToJSON = AgentAtWorkUioToJSON;
20
+ exports.AgentAtWorkUioToJSONTyped = AgentAtWorkUioToJSONTyped;
21
+ const TicketParentRefUio_1 = require("./TicketParentRefUio");
22
+ const AgentAtWorkProjectUio_1 = require("./AgentAtWorkProjectUio");
23
+ const TicketAssigneeStateUio_1 = require("./TicketAssigneeStateUio");
24
+ /**
25
+ * Check if a given object implements the AgentAtWorkUio interface.
26
+ */
27
+ function instanceOfAgentAtWorkUio(value) {
28
+ if (!('ticket' in value) || value['ticket'] === undefined)
29
+ return false;
30
+ if (!('project' in value) || value['project'] === undefined)
31
+ return false;
32
+ if (!('agentId' in value) || value['agentId'] === undefined)
33
+ return false;
34
+ if (!('state' in value) || value['state'] === undefined)
35
+ return false;
36
+ if (!('stateNote' in value) || value['stateNote'] === undefined)
37
+ return false;
38
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentAtWorkUioFromJSON(json) {
43
+ return AgentAtWorkUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentAtWorkUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioFromJSON)(json['ticket']),
51
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioFromJSON)(json['project']),
52
+ 'agentId': json['agentId'],
53
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioFromJSON)(json['state']),
54
+ 'stateNote': json['stateNote'],
55
+ 'updatedAt': json['updatedAt'],
56
+ };
57
+ }
58
+ function AgentAtWorkUioToJSON(json) {
59
+ return AgentAtWorkUioToJSONTyped(json, false);
60
+ }
61
+ function AgentAtWorkUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioToJSON)(value['ticket']),
67
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioToJSON)(value['project']),
68
+ 'agentId': value['agentId'],
69
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioToJSON)(value['state']),
70
+ 'stateNote': value['stateNote'],
71
+ 'updatedAt': value['updatedAt'],
72
+ };
73
+ }
@@ -39,6 +39,12 @@ export interface ProjectAttentionUio {
39
39
  * @memberof ProjectAttentionUio
40
40
  */
41
41
  goAheads: number;
42
+ /**
43
+ * Demandes d'approbation posées par un agent
44
+ * @type {number}
45
+ * @memberof ProjectAttentionUio
46
+ */
47
+ approvals: number;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the ProjectAttentionUio interface.
@@ -30,6 +30,8 @@ function instanceOfProjectAttentionUio(value) {
30
30
  return false;
31
31
  if (!('goAheads' in value) || value['goAheads'] === undefined)
32
32
  return false;
33
+ if (!('approvals' in value) || value['approvals'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function ProjectAttentionUioFromJSON(json) {
@@ -44,6 +46,7 @@ function ProjectAttentionUioFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'proposals': json['proposals'],
45
47
  'reviews': json['reviews'],
46
48
  'goAheads': json['goAheads'],
49
+ 'approvals': json['approvals'],
47
50
  };
48
51
  }
49
52
  function ProjectAttentionUioToJSON(json) {
@@ -58,5 +61,6 @@ function ProjectAttentionUioToJSONTyped(value, ignoreDiscriminator = false) {
58
61
  'proposals': value['proposals'],
59
62
  'reviews': value['reviews'],
60
63
  'goAheads': value['goAheads'],
64
+ 'approvals': value['approvals'],
61
65
  };
62
66
  }
@@ -21,6 +21,12 @@ export interface UpdateUserChatPreferencesRequestUio {
21
21
  * @memberof UpdateUserChatPreferencesRequestUio
22
22
  */
23
23
  pinnedAgentIds?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof UpdateUserChatPreferencesRequestUio
28
+ */
29
+ pinnedProjectIds?: Array<string>;
24
30
  /**
25
31
  *
26
32
  * @type {boolean}
@@ -33,6 +33,7 @@ function UpdateUserChatPreferencesRequestUioFromJSONTyped(json, ignoreDiscrimina
33
33
  }
34
34
  return {
35
35
  'pinnedAgentIds': json['pinnedAgentIds'] == null ? undefined : json['pinnedAgentIds'],
36
+ 'pinnedProjectIds': json['pinnedProjectIds'] == null ? undefined : json['pinnedProjectIds'],
36
37
  'railOpen': json['railOpen'] == null ? undefined : json['railOpen'],
37
38
  };
38
39
  }
@@ -45,6 +46,7 @@ function UpdateUserChatPreferencesRequestUioToJSONTyped(value, ignoreDiscriminat
45
46
  }
46
47
  return {
47
48
  'pinnedAgentIds': value['pinnedAgentIds'],
49
+ 'pinnedProjectIds': value['pinnedProjectIds'],
48
50
  'railOpen': value['railOpen'],
49
51
  };
50
52
  }
@@ -22,6 +22,12 @@ export interface UserChatPreferencesUio {
22
22
  * @memberof UserChatPreferencesUio
23
23
  */
24
24
  pinnedAgentIds: Array<string>;
25
+ /**
26
+ * Liste ordonnée des espaces de travail épinglés dans la barre latérale
27
+ * @type {Array<string>}
28
+ * @memberof UserChatPreferencesUio
29
+ */
30
+ pinnedProjectIds: Array<string>;
25
31
  /**
26
32
  *
27
33
  * @type {boolean}
@@ -25,6 +25,8 @@ const UserAgentConversationUio_1 = require("./UserAgentConversationUio");
25
25
  function instanceOfUserChatPreferencesUio(value) {
26
26
  if (!('pinnedAgentIds' in value) || value['pinnedAgentIds'] === undefined)
27
27
  return false;
28
+ if (!('pinnedProjectIds' in value) || value['pinnedProjectIds'] === undefined)
29
+ return false;
28
30
  if (!('railOpen' in value) || value['railOpen'] === undefined)
29
31
  return false;
30
32
  if (!('agentConversations' in value) || value['agentConversations'] === undefined)
@@ -40,6 +42,7 @@ function UserChatPreferencesUioFromJSONTyped(json, ignoreDiscriminator) {
40
42
  }
41
43
  return {
42
44
  'pinnedAgentIds': json['pinnedAgentIds'],
45
+ 'pinnedProjectIds': json['pinnedProjectIds'],
43
46
  'railOpen': json['railOpen'],
44
47
  'agentConversations': (json['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioFromJSON)),
45
48
  };
@@ -53,6 +56,7 @@ function UserChatPreferencesUioToJSONTyped(value, ignoreDiscriminator = false) {
53
56
  }
54
57
  return {
55
58
  'pinnedAgentIds': value['pinnedAgentIds'],
59
+ 'pinnedProjectIds': value['pinnedProjectIds'],
56
60
  'railOpen': value['railOpen'],
57
61
  'agentConversations': (value['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioToJSON)),
58
62
  };
@@ -18,6 +18,8 @@ export * from './AdvancedFlowEditorNodeUio';
18
18
  export * from './AdvancedFlowEditorUio';
19
19
  export * from './AdvancedFlowEditorUpdateRequestUio';
20
20
  export * from './AgentAssignmentUio';
21
+ export * from './AgentAtWorkProjectUio';
22
+ export * from './AgentAtWorkUio';
21
23
  export * from './AgentBuilderMcpConfigurationUio';
22
24
  export * from './AgentBundleDiffUio';
23
25
  export * from './AgentBundleListDiffUio';
@@ -36,6 +36,8 @@ __exportStar(require("./AdvancedFlowEditorNodeUio"), exports);
36
36
  __exportStar(require("./AdvancedFlowEditorUio"), exports);
37
37
  __exportStar(require("./AdvancedFlowEditorUpdateRequestUio"), exports);
38
38
  __exportStar(require("./AgentAssignmentUio"), exports);
39
+ __exportStar(require("./AgentAtWorkProjectUio"), exports);
40
+ __exportStar(require("./AgentAtWorkUio"), exports);
39
41
  __exportStar(require("./AgentBuilderMcpConfigurationUio"), exports);
40
42
  __exportStar(require("./AgentBundleDiffUio"), exports);
41
43
  __exportStar(require("./AgentBundleListDiffUio"), exports);
package/dist/openapi.json CHANGED
@@ -18474,6 +18474,54 @@
18474
18474
  "tags" : [ "tickets" ]
18475
18475
  }
18476
18476
  },
18477
+ "/organizations/{organizationId}/agents-at-work" : {
18478
+ "get" : {
18479
+ "description" : "Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d'abord, puis du plus récent au plus ancien.",
18480
+ "operationId" : "getAgentsAtWork",
18481
+ "parameters" : [ {
18482
+ "description" : "ID of the organization",
18483
+ "in" : "path",
18484
+ "name" : "organizationId",
18485
+ "required" : true,
18486
+ "schema" : {
18487
+ "type" : "string"
18488
+ }
18489
+ }, {
18490
+ "description" : "Nombre de lignes renvoyées (10 par défaut)",
18491
+ "in" : "query",
18492
+ "name" : "limit",
18493
+ "required" : false,
18494
+ "schema" : {
18495
+ "maximum" : 30,
18496
+ "minimum" : 1,
18497
+ "type" : "integer"
18498
+ }
18499
+ } ],
18500
+ "responses" : {
18501
+ "200" : {
18502
+ "content" : {
18503
+ "application/json" : {
18504
+ "schema" : {
18505
+ "items" : {
18506
+ "$ref" : "#/components/schemas/AgentAtWork"
18507
+ },
18508
+ "type" : "array"
18509
+ }
18510
+ }
18511
+ },
18512
+ "description" : "OK"
18513
+ },
18514
+ "401" : {
18515
+ "description" : "Unauthenticated"
18516
+ },
18517
+ "403" : {
18518
+ "description" : "Forbidden — the caller is not part of the organization"
18519
+ }
18520
+ },
18521
+ "summary" : "List the agents at work on the caller's tickets",
18522
+ "tags" : [ "tickets" ]
18523
+ }
18524
+ },
18477
18525
  "/tickets/{ticketId}" : {
18478
18526
  "get" : {
18479
18527
  "description" : "Ticket avec ses assignés et leurs états.",
@@ -27310,6 +27358,14 @@
27310
27358
  },
27311
27359
  "type" : "array"
27312
27360
  },
27361
+ "pinnedProjectIds" : {
27362
+ "description" : "Liste ordonnée des espaces de travail épinglés dans la barre latérale",
27363
+ "items" : {
27364
+ "format" : "uuid",
27365
+ "type" : "string"
27366
+ },
27367
+ "type" : "array"
27368
+ },
27313
27369
  "railOpen" : {
27314
27370
  "type" : "boolean"
27315
27371
  },
@@ -27321,7 +27377,7 @@
27321
27377
  "type" : "array"
27322
27378
  }
27323
27379
  },
27324
- "required" : [ "agentConversations", "pinnedAgentIds", "railOpen" ],
27380
+ "required" : [ "agentConversations", "pinnedAgentIds", "pinnedProjectIds", "railOpen" ],
27325
27381
  "type" : "object"
27326
27382
  },
27327
27383
  "UserAgentConversation" : {
@@ -27348,6 +27404,13 @@
27348
27404
  },
27349
27405
  "type" : "array"
27350
27406
  },
27407
+ "pinnedProjectIds" : {
27408
+ "items" : {
27409
+ "format" : "uuid",
27410
+ "type" : "string"
27411
+ },
27412
+ "type" : "array"
27413
+ },
27351
27414
  "railOpen" : {
27352
27415
  "type" : "boolean"
27353
27416
  }
@@ -32750,9 +32813,13 @@
32750
32813
  },
32751
32814
  "goAheads" : {
32752
32815
  "type" : "integer"
32816
+ },
32817
+ "approvals" : {
32818
+ "description" : "Demandes d'approbation posées par un agent",
32819
+ "type" : "integer"
32753
32820
  }
32754
32821
  },
32755
- "required" : [ "goAheads", "proposals", "questions", "reviews" ],
32822
+ "required" : [ "approvals", "goAheads", "proposals", "questions", "reviews" ],
32756
32823
  "type" : "object"
32757
32824
  },
32758
32825
  "ProjectActivity" : {
@@ -33270,6 +33337,32 @@
33270
33337
  "required" : [ "agentId", "conversationId", "currentStep", "lastRunAt", "planDone", "planTotal", "status" ],
33271
33338
  "type" : "object"
33272
33339
  },
33340
+ "AgentAtWork" : {
33341
+ "description" : "Un agent assigné à un ticket ouvert qui concerne l'utilisateur (créateur, assigné ou relecteur), et qui travaille, attend une réponse ou est bloqué.",
33342
+ "properties" : {
33343
+ "ticket" : {
33344
+ "$ref" : "#/components/schemas/TicketParentRef"
33345
+ },
33346
+ "project" : {
33347
+ "$ref" : "#/components/schemas/AgentAtWork_project"
33348
+ },
33349
+ "agentId" : {
33350
+ "type" : "string"
33351
+ },
33352
+ "state" : {
33353
+ "$ref" : "#/components/schemas/TicketAssigneeState"
33354
+ },
33355
+ "stateNote" : {
33356
+ "nullable" : true,
33357
+ "type" : "string"
33358
+ },
33359
+ "updatedAt" : {
33360
+ "type" : "string"
33361
+ }
33362
+ },
33363
+ "required" : [ "agentId", "project", "state", "stateNote", "ticket", "updatedAt" ],
33364
+ "type" : "object"
33365
+ },
33273
33366
  "UpdateTicketRequest" : {
33274
33367
  "description" : "Mise à jour partielle — une propriété absente reste inchangée. Le projet ne change pas.",
33275
33368
  "properties" : {
@@ -38845,6 +38938,22 @@
38845
38938
  },
38846
38939
  "type" : "object"
38847
38940
  },
38941
+ "AgentAtWork_project" : {
38942
+ "properties" : {
38943
+ "id" : {
38944
+ "format" : "uuid",
38945
+ "type" : "string"
38946
+ },
38947
+ "key" : {
38948
+ "type" : "string"
38949
+ },
38950
+ "name" : {
38951
+ "type" : "string"
38952
+ }
38953
+ },
38954
+ "required" : [ "id", "key", "name" ],
38955
+ "type" : "object"
38956
+ },
38848
38957
  "TicketAgentExecution_pendingQuestion" : {
38849
38958
  "nullable" : true,
38850
38959
  "properties" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.190",
3
+ "version": "1.0.191",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",