@breign/client 1.0.132 → 1.0.133

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 { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, MessageAnonymizationUio, UpdateConversationTitleRequestUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
13
+ import type { AgentChatOverviewEntryUio, AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, MarkConversationReadRequestUio, MessageAnonymizationUio, UpdateConversationTitleRequestUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
14
14
  export interface ArchiveConversationByIdRequest {
15
15
  conversationId: string;
16
16
  }
@@ -39,6 +39,9 @@ export interface DeleteConversationWorkspaceFileRequest {
39
39
  conversationId: string;
40
40
  path: string;
41
41
  }
42
+ export interface GetAgentChatOverviewRequest {
43
+ organizationId: string;
44
+ }
42
45
  export interface GetAnonymizedMessagesRequest {
43
46
  conversationId: string;
44
47
  }
@@ -72,6 +75,10 @@ export interface MarkAttachmentProcessedRequest {
72
75
  attachmentId: string;
73
76
  attachmentProcessedRequestUio: AttachmentProcessedRequestUio;
74
77
  }
78
+ export interface MarkConversationAsReadRequest {
79
+ conversationId: string;
80
+ markConversationReadRequestUio?: MarkConversationReadRequestUio;
81
+ }
75
82
  export interface SetContextLocationRequest {
76
83
  conversationId: string;
77
84
  contextLocationRequestUio: ContextLocationRequestUio;
@@ -164,6 +171,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
164
171
  * Delete a file from a conversation workspace
165
172
  */
166
173
  deleteConversationWorkspaceFile(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
174
+ /**
175
+ * Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
176
+ * Get the multi-agent chat overview
177
+ */
178
+ getAgentChatOverviewRaw(requestParameters: GetAgentChatOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentChatOverviewEntryUio>>>;
179
+ /**
180
+ * Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
181
+ * Get the multi-agent chat overview
182
+ */
183
+ getAgentChatOverview(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentChatOverviewEntryUio>>;
167
184
  /**
168
185
  * Retrieve the list of anonymized messages for a given conversation.
169
186
  * Get the anonymized messages of a conversation
@@ -248,6 +265,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
248
265
  * Mark a conversation attachment as processed
249
266
  */
250
267
  markAttachmentProcessed(conversationId: string, attachmentId: string, attachmentProcessedRequestUio: AttachmentProcessedRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
268
+ /**
269
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
270
+ * Mark a conversation as read
271
+ */
272
+ markConversationAsReadRaw(requestParameters: MarkConversationAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
273
+ /**
274
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
275
+ * Mark a conversation as read
276
+ */
277
+ markConversationAsRead(conversationId: string, markConversationReadRequestUio?: MarkConversationReadRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
251
278
  /**
252
279
  * Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
253
280
  * Set the conversation location context
@@ -273,6 +273,35 @@ class ConversationsApi extends runtime.BaseAPI {
273
273
  async deleteConversationWorkspaceFile(conversationId, path, initOverrides) {
274
274
  await this.deleteConversationWorkspaceFileRaw({ conversationId: conversationId, path: path }, initOverrides);
275
275
  }
276
+ /**
277
+ * Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
278
+ * Get the multi-agent chat overview
279
+ */
280
+ async getAgentChatOverviewRaw(requestParameters, initOverrides) {
281
+ if (requestParameters['organizationId'] == null) {
282
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentChatOverview().');
283
+ }
284
+ const queryParameters = {};
285
+ const headerParameters = {};
286
+ if (this.configuration && this.configuration.apiKey) {
287
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
288
+ }
289
+ const response = await this.request({
290
+ path: `/organizations/{organizationId}/chat/overview`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
291
+ method: 'GET',
292
+ headers: headerParameters,
293
+ query: queryParameters,
294
+ }, initOverrides);
295
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentChatOverviewEntryUioFromJSON));
296
+ }
297
+ /**
298
+ * Pour chaque agent de l\'organisation avec lequel l\'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l\'indication d\'une réponse en cours de génération.
299
+ * Get the multi-agent chat overview
300
+ */
301
+ async getAgentChatOverview(organizationId, initOverrides) {
302
+ const response = await this.getAgentChatOverviewRaw({ organizationId: organizationId }, initOverrides);
303
+ return await response.value();
304
+ }
276
305
  /**
277
306
  * Retrieve the list of anonymized messages for a given conversation.
278
307
  * Get the anonymized messages of a conversation
@@ -540,6 +569,36 @@ class ConversationsApi extends runtime.BaseAPI {
540
569
  const response = await this.markAttachmentProcessedRaw({ conversationId: conversationId, attachmentId: attachmentId, attachmentProcessedRequestUio: attachmentProcessedRequestUio }, initOverrides);
541
570
  return await response.value();
542
571
  }
572
+ /**
573
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
574
+ * Mark a conversation as read
575
+ */
576
+ async markConversationAsReadRaw(requestParameters, initOverrides) {
577
+ if (requestParameters['conversationId'] == null) {
578
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling markConversationAsRead().');
579
+ }
580
+ const queryParameters = {};
581
+ const headerParameters = {};
582
+ headerParameters['Content-Type'] = 'application/json';
583
+ if (this.configuration && this.configuration.apiKey) {
584
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
585
+ }
586
+ const response = await this.request({
587
+ path: `/conversations/{conversationId}/read`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
588
+ method: 'POST',
589
+ headers: headerParameters,
590
+ query: queryParameters,
591
+ body: (0, index_1.MarkConversationReadRequestUioToJSON)(requestParameters['markConversationReadRequestUio']),
592
+ }, initOverrides);
593
+ return new runtime.VoidApiResponse(response);
594
+ }
595
+ /**
596
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
597
+ * Mark a conversation as read
598
+ */
599
+ async markConversationAsRead(conversationId, markConversationReadRequestUio, initOverrides) {
600
+ await this.markConversationAsReadRaw({ conversationId: conversationId, markConversationReadRequestUio: markConversationReadRequestUio }, initOverrides);
601
+ }
543
602
  /**
544
603
  * Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
545
604
  * Set the conversation location context
@@ -0,0 +1,56 @@
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
+ * État de la conversation d'un agent pour l'utilisateur courant. Le nombre de non-lus est dérivé des messages postérieurs à sa marque de lecture.
14
+ * @export
15
+ * @interface AgentChatOverviewEntryUio
16
+ */
17
+ export interface AgentChatOverviewEntryUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentChatOverviewEntryUio
22
+ */
23
+ agentId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentChatOverviewEntryUio
28
+ */
29
+ conversationId: string;
30
+ /**
31
+ * Horodatage du dernier message, null si la conversation est vide
32
+ * @type {string}
33
+ * @memberof AgentChatOverviewEntryUio
34
+ */
35
+ lastMessageAt?: string | null;
36
+ /**
37
+ * Messages non lus, hors messages de l'utilisateur lui-même
38
+ * @type {number}
39
+ * @memberof AgentChatOverviewEntryUio
40
+ */
41
+ unreadCount: number;
42
+ /**
43
+ * Vrai tant qu'une réponse est en cours de génération
44
+ * @type {boolean}
45
+ * @memberof AgentChatOverviewEntryUio
46
+ */
47
+ isGenerating: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AgentChatOverviewEntryUio interface.
51
+ */
52
+ export declare function instanceOfAgentChatOverviewEntryUio(value: object): value is AgentChatOverviewEntryUio;
53
+ export declare function AgentChatOverviewEntryUioFromJSON(json: any): AgentChatOverviewEntryUio;
54
+ export declare function AgentChatOverviewEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentChatOverviewEntryUio;
55
+ export declare function AgentChatOverviewEntryUioToJSON(json: any): AgentChatOverviewEntryUio;
56
+ export declare function AgentChatOverviewEntryUioToJSONTyped(value?: AgentChatOverviewEntryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfAgentChatOverviewEntryUio = instanceOfAgentChatOverviewEntryUio;
17
+ exports.AgentChatOverviewEntryUioFromJSON = AgentChatOverviewEntryUioFromJSON;
18
+ exports.AgentChatOverviewEntryUioFromJSONTyped = AgentChatOverviewEntryUioFromJSONTyped;
19
+ exports.AgentChatOverviewEntryUioToJSON = AgentChatOverviewEntryUioToJSON;
20
+ exports.AgentChatOverviewEntryUioToJSONTyped = AgentChatOverviewEntryUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentChatOverviewEntryUio interface.
23
+ */
24
+ function instanceOfAgentChatOverviewEntryUio(value) {
25
+ if (!('agentId' in value) || value['agentId'] === undefined)
26
+ return false;
27
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
28
+ return false;
29
+ if (!('unreadCount' in value) || value['unreadCount'] === undefined)
30
+ return false;
31
+ if (!('isGenerating' in value) || value['isGenerating'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AgentChatOverviewEntryUioFromJSON(json) {
36
+ return AgentChatOverviewEntryUioFromJSONTyped(json, false);
37
+ }
38
+ function AgentChatOverviewEntryUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'agentId': json['agentId'],
44
+ 'conversationId': json['conversationId'],
45
+ 'lastMessageAt': json['lastMessageAt'] == null ? undefined : json['lastMessageAt'],
46
+ 'unreadCount': json['unreadCount'],
47
+ 'isGenerating': json['isGenerating'],
48
+ };
49
+ }
50
+ function AgentChatOverviewEntryUioToJSON(json) {
51
+ return AgentChatOverviewEntryUioToJSONTyped(json, false);
52
+ }
53
+ function AgentChatOverviewEntryUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'agentId': value['agentId'],
59
+ 'conversationId': value['conversationId'],
60
+ 'lastMessageAt': value['lastMessageAt'],
61
+ 'unreadCount': value['unreadCount'],
62
+ 'isGenerating': value['isGenerating'],
63
+ };
64
+ }
@@ -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 MarkConversationReadRequestUio
16
+ */
17
+ export interface MarkConversationReadRequestUio {
18
+ /**
19
+ * Position de lecture ; par défaut l'instant courant
20
+ * @type {Date}
21
+ * @memberof MarkConversationReadRequestUio
22
+ */
23
+ readAt?: Date;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MarkConversationReadRequestUio interface.
27
+ */
28
+ export declare function instanceOfMarkConversationReadRequestUio(value: object): value is MarkConversationReadRequestUio;
29
+ export declare function MarkConversationReadRequestUioFromJSON(json: any): MarkConversationReadRequestUio;
30
+ export declare function MarkConversationReadRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarkConversationReadRequestUio;
31
+ export declare function MarkConversationReadRequestUioToJSON(json: any): MarkConversationReadRequestUio;
32
+ export declare function MarkConversationReadRequestUioToJSONTyped(value?: MarkConversationReadRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfMarkConversationReadRequestUio = instanceOfMarkConversationReadRequestUio;
17
+ exports.MarkConversationReadRequestUioFromJSON = MarkConversationReadRequestUioFromJSON;
18
+ exports.MarkConversationReadRequestUioFromJSONTyped = MarkConversationReadRequestUioFromJSONTyped;
19
+ exports.MarkConversationReadRequestUioToJSON = MarkConversationReadRequestUioToJSON;
20
+ exports.MarkConversationReadRequestUioToJSONTyped = MarkConversationReadRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MarkConversationReadRequestUio interface.
23
+ */
24
+ function instanceOfMarkConversationReadRequestUio(value) {
25
+ return true;
26
+ }
27
+ function MarkConversationReadRequestUioFromJSON(json) {
28
+ return MarkConversationReadRequestUioFromJSONTyped(json, false);
29
+ }
30
+ function MarkConversationReadRequestUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'readAt': json['readAt'] == null ? undefined : (new Date(json['readAt'])),
36
+ };
37
+ }
38
+ function MarkConversationReadRequestUioToJSON(json) {
39
+ return MarkConversationReadRequestUioToJSONTyped(json, false);
40
+ }
41
+ function MarkConversationReadRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'readAt': value['readAt'] == null ? undefined : ((value['readAt']).toISOString()),
47
+ };
48
+ }
@@ -8,6 +8,7 @@ export * from './AdvancedFlowEditorNodePositionUio';
8
8
  export * from './AdvancedFlowEditorNodeUio';
9
9
  export * from './AdvancedFlowEditorUio';
10
10
  export * from './AdvancedFlowEditorUpdateRequestUio';
11
+ export * from './AgentChatOverviewEntryUio';
11
12
  export * from './AgentCreatorUio';
12
13
  export * from './AgentCreatorUserUio';
13
14
  export * from './AgentDuplicateRequestUio';
@@ -267,6 +268,7 @@ export * from './LipsyncUio';
267
268
  export * from './ManifestCreateRequestUio';
268
269
  export * from './ManifestUio';
269
270
  export * from './MarkAttachmentProcessed400ResponseUio';
271
+ export * from './MarkConversationReadRequestUio';
270
272
  export * from './MessageAnonymizationUio';
271
273
  export * from './MessageAudioDownloadUrlUio';
272
274
  export * from './MessageStatusErrorUio';
@@ -26,6 +26,7 @@ __exportStar(require("./AdvancedFlowEditorNodePositionUio"), exports);
26
26
  __exportStar(require("./AdvancedFlowEditorNodeUio"), exports);
27
27
  __exportStar(require("./AdvancedFlowEditorUio"), exports);
28
28
  __exportStar(require("./AdvancedFlowEditorUpdateRequestUio"), exports);
29
+ __exportStar(require("./AgentChatOverviewEntryUio"), exports);
29
30
  __exportStar(require("./AgentCreatorUio"), exports);
30
31
  __exportStar(require("./AgentCreatorUserUio"), exports);
31
32
  __exportStar(require("./AgentDuplicateRequestUio"), exports);
@@ -285,6 +286,7 @@ __exportStar(require("./LipsyncUio"), exports);
285
286
  __exportStar(require("./ManifestCreateRequestUio"), exports);
286
287
  __exportStar(require("./ManifestUio"), exports);
287
288
  __exportStar(require("./MarkAttachmentProcessed400ResponseUio"), exports);
289
+ __exportStar(require("./MarkConversationReadRequestUio"), exports);
288
290
  __exportStar(require("./MessageAnonymizationUio"), exports);
289
291
  __exportStar(require("./MessageAudioDownloadUrlUio"), exports);
290
292
  __exportStar(require("./MessageStatusErrorUio"), exports);
package/dist/openapi.json CHANGED
@@ -5103,6 +5103,85 @@
5103
5103
  "tags" : [ "conversations" ]
5104
5104
  }
5105
5105
  },
5106
+ "/organizations/{organizationId}/chat/overview" : {
5107
+ "get" : {
5108
+ "description" : "Pour chaque agent de l'organisation avec lequel l'utilisateur a une conversation, renvoie sa conversation la plus récente, le nombre de messages non lus et l'indication d'une réponse en cours de génération.",
5109
+ "operationId" : "getAgentChatOverview",
5110
+ "parameters" : [ {
5111
+ "description" : "ID of the organization",
5112
+ "in" : "path",
5113
+ "name" : "organizationId",
5114
+ "required" : true,
5115
+ "schema" : {
5116
+ "type" : "string"
5117
+ }
5118
+ } ],
5119
+ "responses" : {
5120
+ "200" : {
5121
+ "content" : {
5122
+ "application/json" : {
5123
+ "schema" : {
5124
+ "items" : {
5125
+ "$ref" : "#/components/schemas/AgentChatOverviewEntry"
5126
+ },
5127
+ "type" : "array"
5128
+ }
5129
+ }
5130
+ },
5131
+ "description" : "Chat overview retrieved successfully"
5132
+ },
5133
+ "401" : {
5134
+ "description" : "Unauthenticated"
5135
+ },
5136
+ "403" : {
5137
+ "description" : "Forbidden — the caller is not part of the organization"
5138
+ }
5139
+ },
5140
+ "summary" : "Get the multi-agent chat overview",
5141
+ "tags" : [ "conversations" ]
5142
+ }
5143
+ },
5144
+ "/conversations/{conversationId}/read" : {
5145
+ "post" : {
5146
+ "description" : "Positionne la marque de lecture de l'utilisateur sur la conversation.",
5147
+ "operationId" : "markConversationAsRead",
5148
+ "parameters" : [ {
5149
+ "description" : "The ID of the conversation",
5150
+ "in" : "path",
5151
+ "name" : "conversationId",
5152
+ "required" : true,
5153
+ "schema" : {
5154
+ "type" : "string"
5155
+ }
5156
+ } ],
5157
+ "requestBody" : {
5158
+ "content" : {
5159
+ "application/json" : {
5160
+ "schema" : {
5161
+ "$ref" : "#/components/schemas/MarkConversationReadRequest"
5162
+ }
5163
+ }
5164
+ },
5165
+ "required" : false
5166
+ },
5167
+ "responses" : {
5168
+ "204" : {
5169
+ "description" : "Read position updated"
5170
+ },
5171
+ "401" : {
5172
+ "description" : "Unauthenticated"
5173
+ },
5174
+ "403" : {
5175
+ "description" : "Forbidden"
5176
+ },
5177
+ "404" : {
5178
+ "description" : "CONVERSATION_NOT_FOUND"
5179
+ }
5180
+ },
5181
+ "summary" : "Mark a conversation as read",
5182
+ "tags" : [ "conversations" ]
5183
+ }
5184
+ },
5106
5185
  "/conversations" : {
5107
5186
  "delete" : {
5108
5187
  "description" : "Delete all conversations created by the authenticated user in the specified organization.",
@@ -13828,20 +13907,20 @@
13828
13907
  "type" : "string"
13829
13908
  }
13830
13909
  },
13831
- "workspacePathQuery" : {
13832
- "description" : "Absolute path of the workspace file, always under /home/user. Rejected with 400 when it leaves that root, contains a traversal, or uses characters outside [A-Za-z0-9._-].",
13833
- "example" : "/home/user/rapport.md",
13834
- "in" : "query",
13835
- "name" : "path",
13910
+ "organizationIdPath" : {
13911
+ "description" : "ID of the organization",
13912
+ "in" : "path",
13913
+ "name" : "organizationId",
13836
13914
  "required" : true,
13837
13915
  "schema" : {
13838
13916
  "type" : "string"
13839
13917
  }
13840
13918
  },
13841
- "organizationIdPath" : {
13842
- "description" : "ID of the organization",
13843
- "in" : "path",
13844
- "name" : "organizationId",
13919
+ "workspacePathQuery" : {
13920
+ "description" : "Absolute path of the workspace file, always under /home/user. Rejected with 400 when it leaves that root, contains a traversal, or uses characters outside [A-Za-z0-9._-].",
13921
+ "example" : "/home/user/rapport.md",
13922
+ "in" : "query",
13923
+ "name" : "path",
13845
13924
  "required" : true,
13846
13925
  "schema" : {
13847
13926
  "type" : "string"
@@ -17396,6 +17475,44 @@
17396
17475
  "$ref" : "#/components/schemas/AudioFile"
17397
17476
  } ]
17398
17477
  },
17478
+ "AgentChatOverviewEntry" : {
17479
+ "description" : "État de la conversation d'un agent pour l'utilisateur courant. Le nombre de non-lus est dérivé des messages postérieurs à sa marque de lecture.",
17480
+ "properties" : {
17481
+ "agentId" : {
17482
+ "format" : "uuid",
17483
+ "type" : "string"
17484
+ },
17485
+ "conversationId" : {
17486
+ "format" : "uuid",
17487
+ "type" : "string"
17488
+ },
17489
+ "lastMessageAt" : {
17490
+ "description" : "Horodatage du dernier message, null si la conversation est vide",
17491
+ "nullable" : true,
17492
+ "type" : "string"
17493
+ },
17494
+ "unreadCount" : {
17495
+ "description" : "Messages non lus, hors messages de l'utilisateur lui-même",
17496
+ "type" : "integer"
17497
+ },
17498
+ "isGenerating" : {
17499
+ "description" : "Vrai tant qu'une réponse est en cours de génération",
17500
+ "type" : "boolean"
17501
+ }
17502
+ },
17503
+ "required" : [ "agentId", "conversationId", "isGenerating", "unreadCount" ],
17504
+ "type" : "object"
17505
+ },
17506
+ "MarkConversationReadRequest" : {
17507
+ "properties" : {
17508
+ "readAt" : {
17509
+ "description" : "Position de lecture ; par défaut l'instant courant",
17510
+ "format" : "date-time",
17511
+ "type" : "string"
17512
+ }
17513
+ },
17514
+ "type" : "object"
17515
+ },
17399
17516
  "ConversationSummary" : {
17400
17517
  "properties" : {
17401
17518
  "id" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",