@breign/client 1.0.132 → 1.0.134

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, SetUserAgentConversationRequestUio, UpdateConversationTitleRequestUio, UpdateUserChatPreferencesRequestUio, UserChatPreferencesUio, 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
  }
@@ -64,6 +67,9 @@ export interface GetConversationsRequest {
64
67
  period?: GetConversationsPeriodEnum;
65
68
  messageReaction?: GetConversationsMessageReactionEnum;
66
69
  }
70
+ export interface GetUserChatPreferencesRequest {
71
+ organizationId: string;
72
+ }
67
73
  export interface ListConversationWorkspaceFilesRequest {
68
74
  conversationId: string;
69
75
  }
@@ -72,10 +78,19 @@ export interface MarkAttachmentProcessedRequest {
72
78
  attachmentId: string;
73
79
  attachmentProcessedRequestUio: AttachmentProcessedRequestUio;
74
80
  }
81
+ export interface MarkConversationAsReadRequest {
82
+ conversationId: string;
83
+ markConversationReadRequestUio?: MarkConversationReadRequestUio;
84
+ }
75
85
  export interface SetContextLocationRequest {
76
86
  conversationId: string;
77
87
  contextLocationRequestUio: ContextLocationRequestUio;
78
88
  }
89
+ export interface SetUserAgentConversationRequest {
90
+ organizationId: string;
91
+ agentId: string;
92
+ setUserAgentConversationRequestUio: SetUserAgentConversationRequestUio;
93
+ }
79
94
  export interface UpdateAttachmentStatusRequest {
80
95
  conversationId: string;
81
96
  attachmentId: string;
@@ -84,6 +99,10 @@ export interface UpdateConversationTitleRequest {
84
99
  conversationId: string;
85
100
  updateConversationTitleRequestUio: UpdateConversationTitleRequestUio;
86
101
  }
102
+ export interface UpdateUserChatPreferencesRequest {
103
+ organizationId: string;
104
+ updateUserChatPreferencesRequestUio: UpdateUserChatPreferencesRequestUio;
105
+ }
87
106
  export interface UploadAttachmentRequest {
88
107
  conversationId: string;
89
108
  attachmentCreateRequestUio: AttachmentCreateRequestUio;
@@ -164,6 +183,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
164
183
  * Delete a file from a conversation workspace
165
184
  */
166
185
  deleteConversationWorkspaceFile(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
186
+ /**
187
+ * 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.
188
+ * Get the multi-agent chat overview
189
+ */
190
+ getAgentChatOverviewRaw(requestParameters: GetAgentChatOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentChatOverviewEntryUio>>>;
191
+ /**
192
+ * 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.
193
+ * Get the multi-agent chat overview
194
+ */
195
+ getAgentChatOverview(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentChatOverviewEntryUio>>;
167
196
  /**
168
197
  * Retrieve the list of anonymized messages for a given conversation.
169
198
  * Get the anonymized messages of a conversation
@@ -228,6 +257,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
228
257
  * List conversations
229
258
  */
230
259
  getConversations(providerSource: GetConversationsProviderSourceEnum, organizationId?: string, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
260
+ /**
261
+ * Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
262
+ * Get the user\'s chat preferences
263
+ */
264
+ getUserChatPreferencesRaw(requestParameters: GetUserChatPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserChatPreferencesUio>>;
265
+ /**
266
+ * Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
267
+ * Get the user\'s chat preferences
268
+ */
269
+ getUserChatPreferences(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserChatPreferencesUio>;
231
270
  /**
232
271
  * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
233
272
  * List the files of a conversation workspace
@@ -248,6 +287,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
248
287
  * Mark a conversation attachment as processed
249
288
  */
250
289
  markAttachmentProcessed(conversationId: string, attachmentId: string, attachmentProcessedRequestUio: AttachmentProcessedRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
290
+ /**
291
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
292
+ * Mark a conversation as read
293
+ */
294
+ markConversationAsReadRaw(requestParameters: MarkConversationAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
295
+ /**
296
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
297
+ * Mark a conversation as read
298
+ */
299
+ markConversationAsRead(conversationId: string, markConversationReadRequestUio?: MarkConversationReadRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
251
300
  /**
252
301
  * Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
253
302
  * Set the conversation location context
@@ -258,6 +307,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
258
307
  * Set the conversation location context
259
308
  */
260
309
  setContextLocation(conversationId: string, contextLocationRequestUio: ContextLocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
310
+ /**
311
+ * Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
312
+ * Set the conversation in progress with an agent
313
+ */
314
+ setUserAgentConversationRaw(requestParameters: SetUserAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
315
+ /**
316
+ * Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
317
+ * Set the conversation in progress with an agent
318
+ */
319
+ setUserAgentConversation(organizationId: string, agentId: string, setUserAgentConversationRequestUio: SetUserAgentConversationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
261
320
  /**
262
321
  * Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
263
322
  * Update the status of an uploaded attachment
@@ -276,6 +335,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
276
335
  * Update conversation title
277
336
  */
278
337
  updateConversationTitle(conversationId: string, updateConversationTitleRequestUio: UpdateConversationTitleRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationSummaryUio>;
338
+ /**
339
+ * Mise à jour partielle — une propriété absente reste inchangée.
340
+ * Update the user\'s chat preferences
341
+ */
342
+ updateUserChatPreferencesRaw(requestParameters: UpdateUserChatPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserChatPreferencesUio>>;
343
+ /**
344
+ * Mise à jour partielle — une propriété absente reste inchangée.
345
+ * Update the user\'s chat preferences
346
+ */
347
+ updateUserChatPreferences(organizationId: string, updateUserChatPreferencesRequestUio: UpdateUserChatPreferencesRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserChatPreferencesUio>;
279
348
  /**
280
349
  * Upload one file attachment to the context of a specific conversation.
281
350
  * Upload attachment to a conversation 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
@@ -474,6 +503,35 @@ class ConversationsApi extends runtime.BaseAPI {
474
503
  const response = await this.getConversationsRaw({ providerSource: providerSource, organizationId: organizationId, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
475
504
  return await response.value();
476
505
  }
506
+ /**
507
+ * Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
508
+ * Get the user\'s chat preferences
509
+ */
510
+ async getUserChatPreferencesRaw(requestParameters, initOverrides) {
511
+ if (requestParameters['organizationId'] == null) {
512
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getUserChatPreferences().');
513
+ }
514
+ const queryParameters = {};
515
+ const headerParameters = {};
516
+ if (this.configuration && this.configuration.apiKey) {
517
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
518
+ }
519
+ const response = await this.request({
520
+ path: `/organizations/{organizationId}/chat/preferences`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
521
+ method: 'GET',
522
+ headers: headerParameters,
523
+ query: queryParameters,
524
+ }, initOverrides);
525
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserChatPreferencesUioFromJSON)(jsonValue));
526
+ }
527
+ /**
528
+ * Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
529
+ * Get the user\'s chat preferences
530
+ */
531
+ async getUserChatPreferences(organizationId, initOverrides) {
532
+ const response = await this.getUserChatPreferencesRaw({ organizationId: organizationId }, initOverrides);
533
+ return await response.value();
534
+ }
477
535
  /**
478
536
  * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
479
537
  * List the files of a conversation workspace
@@ -540,6 +598,36 @@ class ConversationsApi extends runtime.BaseAPI {
540
598
  const response = await this.markAttachmentProcessedRaw({ conversationId: conversationId, attachmentId: attachmentId, attachmentProcessedRequestUio: attachmentProcessedRequestUio }, initOverrides);
541
599
  return await response.value();
542
600
  }
601
+ /**
602
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
603
+ * Mark a conversation as read
604
+ */
605
+ async markConversationAsReadRaw(requestParameters, initOverrides) {
606
+ if (requestParameters['conversationId'] == null) {
607
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling markConversationAsRead().');
608
+ }
609
+ const queryParameters = {};
610
+ const headerParameters = {};
611
+ headerParameters['Content-Type'] = 'application/json';
612
+ if (this.configuration && this.configuration.apiKey) {
613
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
614
+ }
615
+ const response = await this.request({
616
+ path: `/conversations/{conversationId}/read`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
617
+ method: 'POST',
618
+ headers: headerParameters,
619
+ query: queryParameters,
620
+ body: (0, index_1.MarkConversationReadRequestUioToJSON)(requestParameters['markConversationReadRequestUio']),
621
+ }, initOverrides);
622
+ return new runtime.VoidApiResponse(response);
623
+ }
624
+ /**
625
+ * Positionne la marque de lecture de l\'utilisateur sur la conversation.
626
+ * Mark a conversation as read
627
+ */
628
+ async markConversationAsRead(conversationId, markConversationReadRequestUio, initOverrides) {
629
+ await this.markConversationAsReadRaw({ conversationId: conversationId, markConversationReadRequestUio: markConversationReadRequestUio }, initOverrides);
630
+ }
543
631
  /**
544
632
  * Stores the caller\'s geographic coordinates on the conversation context. Latitude et longitude sont transmises en chaînes numériques.
545
633
  * Set the conversation location context
@@ -574,6 +662,42 @@ class ConversationsApi extends runtime.BaseAPI {
574
662
  const response = await this.setContextLocationRaw({ conversationId: conversationId, contextLocationRequestUio: contextLocationRequestUio }, initOverrides);
575
663
  return await response.value();
576
664
  }
665
+ /**
666
+ * Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
667
+ * Set the conversation in progress with an agent
668
+ */
669
+ async setUserAgentConversationRaw(requestParameters, initOverrides) {
670
+ if (requestParameters['organizationId'] == null) {
671
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setUserAgentConversation().');
672
+ }
673
+ if (requestParameters['agentId'] == null) {
674
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling setUserAgentConversation().');
675
+ }
676
+ if (requestParameters['setUserAgentConversationRequestUio'] == null) {
677
+ throw new runtime.RequiredError('setUserAgentConversationRequestUio', 'Required parameter "setUserAgentConversationRequestUio" was null or undefined when calling setUserAgentConversation().');
678
+ }
679
+ const queryParameters = {};
680
+ const headerParameters = {};
681
+ headerParameters['Content-Type'] = 'application/json';
682
+ if (this.configuration && this.configuration.apiKey) {
683
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
684
+ }
685
+ const response = await this.request({
686
+ path: `/organizations/{organizationId}/chat/agents/{agentId}/conversation`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
687
+ method: 'PUT',
688
+ headers: headerParameters,
689
+ query: queryParameters,
690
+ body: (0, index_1.SetUserAgentConversationRequestUioToJSON)(requestParameters['setUserAgentConversationRequestUio']),
691
+ }, initOverrides);
692
+ return new runtime.VoidApiResponse(response);
693
+ }
694
+ /**
695
+ * Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
696
+ * Set the conversation in progress with an agent
697
+ */
698
+ async setUserAgentConversation(organizationId, agentId, setUserAgentConversationRequestUio, initOverrides) {
699
+ await this.setUserAgentConversationRaw({ organizationId: organizationId, agentId: agentId, setUserAgentConversationRequestUio: setUserAgentConversationRequestUio }, initOverrides);
700
+ }
577
701
  /**
578
702
  * Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
579
703
  * Update the status of an uploaded attachment
@@ -638,6 +762,40 @@ class ConversationsApi extends runtime.BaseAPI {
638
762
  const response = await this.updateConversationTitleRaw({ conversationId: conversationId, updateConversationTitleRequestUio: updateConversationTitleRequestUio }, initOverrides);
639
763
  return await response.value();
640
764
  }
765
+ /**
766
+ * Mise à jour partielle — une propriété absente reste inchangée.
767
+ * Update the user\'s chat preferences
768
+ */
769
+ async updateUserChatPreferencesRaw(requestParameters, initOverrides) {
770
+ if (requestParameters['organizationId'] == null) {
771
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateUserChatPreferences().');
772
+ }
773
+ if (requestParameters['updateUserChatPreferencesRequestUio'] == null) {
774
+ throw new runtime.RequiredError('updateUserChatPreferencesRequestUio', 'Required parameter "updateUserChatPreferencesRequestUio" was null or undefined when calling updateUserChatPreferences().');
775
+ }
776
+ const queryParameters = {};
777
+ const headerParameters = {};
778
+ headerParameters['Content-Type'] = 'application/json';
779
+ if (this.configuration && this.configuration.apiKey) {
780
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
781
+ }
782
+ const response = await this.request({
783
+ path: `/organizations/{organizationId}/chat/preferences`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
784
+ method: 'PUT',
785
+ headers: headerParameters,
786
+ query: queryParameters,
787
+ body: (0, index_1.UpdateUserChatPreferencesRequestUioToJSON)(requestParameters['updateUserChatPreferencesRequestUio']),
788
+ }, initOverrides);
789
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserChatPreferencesUioFromJSON)(jsonValue));
790
+ }
791
+ /**
792
+ * Mise à jour partielle — une propriété absente reste inchangée.
793
+ * Update the user\'s chat preferences
794
+ */
795
+ async updateUserChatPreferences(organizationId, updateUserChatPreferencesRequestUio, initOverrides) {
796
+ const response = await this.updateUserChatPreferencesRaw({ organizationId: organizationId, updateUserChatPreferencesRequestUio: updateUserChatPreferencesRequestUio }, initOverrides);
797
+ return await response.value();
798
+ }
641
799
  /**
642
800
  * Upload one file attachment to the context of a specific conversation.
643
801
  * Upload attachment to a conversation 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
+ }
@@ -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 SetUserAgentConversationRequestUio
16
+ */
17
+ export interface SetUserAgentConversationRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SetUserAgentConversationRequestUio
22
+ */
23
+ conversationId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SetUserAgentConversationRequestUio interface.
27
+ */
28
+ export declare function instanceOfSetUserAgentConversationRequestUio(value: object): value is SetUserAgentConversationRequestUio;
29
+ export declare function SetUserAgentConversationRequestUioFromJSON(json: any): SetUserAgentConversationRequestUio;
30
+ export declare function SetUserAgentConversationRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetUserAgentConversationRequestUio;
31
+ export declare function SetUserAgentConversationRequestUioToJSON(json: any): SetUserAgentConversationRequestUio;
32
+ export declare function SetUserAgentConversationRequestUioToJSONTyped(value?: SetUserAgentConversationRequestUio | 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.instanceOfSetUserAgentConversationRequestUio = instanceOfSetUserAgentConversationRequestUio;
17
+ exports.SetUserAgentConversationRequestUioFromJSON = SetUserAgentConversationRequestUioFromJSON;
18
+ exports.SetUserAgentConversationRequestUioFromJSONTyped = SetUserAgentConversationRequestUioFromJSONTyped;
19
+ exports.SetUserAgentConversationRequestUioToJSON = SetUserAgentConversationRequestUioToJSON;
20
+ exports.SetUserAgentConversationRequestUioToJSONTyped = SetUserAgentConversationRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SetUserAgentConversationRequestUio interface.
23
+ */
24
+ function instanceOfSetUserAgentConversationRequestUio(value) {
25
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SetUserAgentConversationRequestUioFromJSON(json) {
30
+ return SetUserAgentConversationRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function SetUserAgentConversationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'conversationId': json['conversationId'],
38
+ };
39
+ }
40
+ function SetUserAgentConversationRequestUioToJSON(json) {
41
+ return SetUserAgentConversationRequestUioToJSONTyped(json, false);
42
+ }
43
+ function SetUserAgentConversationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'conversationId': value['conversationId'],
49
+ };
50
+ }
@@ -0,0 +1,38 @@
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
+ * Mise à jour partielle — une propriété absente reste inchangée.
14
+ * @export
15
+ * @interface UpdateUserChatPreferencesRequestUio
16
+ */
17
+ export interface UpdateUserChatPreferencesRequestUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof UpdateUserChatPreferencesRequestUio
22
+ */
23
+ pinnedAgentIds?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof UpdateUserChatPreferencesRequestUio
28
+ */
29
+ railOpen?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateUserChatPreferencesRequestUio interface.
33
+ */
34
+ export declare function instanceOfUpdateUserChatPreferencesRequestUio(value: object): value is UpdateUserChatPreferencesRequestUio;
35
+ export declare function UpdateUserChatPreferencesRequestUioFromJSON(json: any): UpdateUserChatPreferencesRequestUio;
36
+ export declare function UpdateUserChatPreferencesRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserChatPreferencesRequestUio;
37
+ export declare function UpdateUserChatPreferencesRequestUioToJSON(json: any): UpdateUserChatPreferencesRequestUio;
38
+ export declare function UpdateUserChatPreferencesRequestUioToJSONTyped(value?: UpdateUserChatPreferencesRequestUio | null, ignoreDiscriminator?: boolean): any;