@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.
- package/dist/apis/ConversationsApi.d.ts +70 -1
- package/dist/apis/ConversationsApi.js +158 -0
- package/dist/models/AgentChatOverviewEntryUio.d.ts +56 -0
- package/dist/models/AgentChatOverviewEntryUio.js +64 -0
- package/dist/models/MarkConversationReadRequestUio.d.ts +32 -0
- package/dist/models/MarkConversationReadRequestUio.js +48 -0
- package/dist/models/SetUserAgentConversationRequestUio.d.ts +32 -0
- package/dist/models/SetUserAgentConversationRequestUio.js +50 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +38 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +50 -0
- package/dist/models/UserAgentConversationUio.d.ts +38 -0
- package/dist/models/UserAgentConversationUio.js +54 -0
- package/dist/models/UserChatPreferencesUio.d.ts +45 -0
- package/dist/models/UserChatPreferencesUio.js +59 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +324 -9
- package/package.json +1 -1
|
@@ -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.instanceOfUpdateUserChatPreferencesRequestUio = instanceOfUpdateUserChatPreferencesRequestUio;
|
|
17
|
+
exports.UpdateUserChatPreferencesRequestUioFromJSON = UpdateUserChatPreferencesRequestUioFromJSON;
|
|
18
|
+
exports.UpdateUserChatPreferencesRequestUioFromJSONTyped = UpdateUserChatPreferencesRequestUioFromJSONTyped;
|
|
19
|
+
exports.UpdateUserChatPreferencesRequestUioToJSON = UpdateUserChatPreferencesRequestUioToJSON;
|
|
20
|
+
exports.UpdateUserChatPreferencesRequestUioToJSONTyped = UpdateUserChatPreferencesRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateUserChatPreferencesRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateUserChatPreferencesRequestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateUserChatPreferencesRequestUioFromJSON(json) {
|
|
28
|
+
return UpdateUserChatPreferencesRequestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateUserChatPreferencesRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'pinnedAgentIds': json['pinnedAgentIds'] == null ? undefined : json['pinnedAgentIds'],
|
|
36
|
+
'railOpen': json['railOpen'] == null ? undefined : json['railOpen'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UpdateUserChatPreferencesRequestUioToJSON(json) {
|
|
40
|
+
return UpdateUserChatPreferencesRequestUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UpdateUserChatPreferencesRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'pinnedAgentIds': value['pinnedAgentIds'],
|
|
48
|
+
'railOpen': value['railOpen'],
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserAgentConversationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface UserAgentConversationUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserAgentConversationUio
|
|
22
|
+
*/
|
|
23
|
+
agentId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserAgentConversationUio
|
|
28
|
+
*/
|
|
29
|
+
conversationId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserAgentConversationUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUserAgentConversationUio(value: object): value is UserAgentConversationUio;
|
|
35
|
+
export declare function UserAgentConversationUioFromJSON(json: any): UserAgentConversationUio;
|
|
36
|
+
export declare function UserAgentConversationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAgentConversationUio;
|
|
37
|
+
export declare function UserAgentConversationUioToJSON(json: any): UserAgentConversationUio;
|
|
38
|
+
export declare function UserAgentConversationUioToJSONTyped(value?: UserAgentConversationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfUserAgentConversationUio = instanceOfUserAgentConversationUio;
|
|
17
|
+
exports.UserAgentConversationUioFromJSON = UserAgentConversationUioFromJSON;
|
|
18
|
+
exports.UserAgentConversationUioFromJSONTyped = UserAgentConversationUioFromJSONTyped;
|
|
19
|
+
exports.UserAgentConversationUioToJSON = UserAgentConversationUioToJSON;
|
|
20
|
+
exports.UserAgentConversationUioToJSONTyped = UserAgentConversationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserAgentConversationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserAgentConversationUio(value) {
|
|
25
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UserAgentConversationUioFromJSON(json) {
|
|
32
|
+
return UserAgentConversationUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UserAgentConversationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'agentId': json['agentId'],
|
|
40
|
+
'conversationId': json['conversationId'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UserAgentConversationUioToJSON(json) {
|
|
44
|
+
return UserAgentConversationUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UserAgentConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'agentId': value['agentId'],
|
|
52
|
+
'conversationId': value['conversationId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { UserAgentConversationUio } from './UserAgentConversationUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserChatPreferencesUio
|
|
17
|
+
*/
|
|
18
|
+
export interface UserChatPreferencesUio {
|
|
19
|
+
/**
|
|
20
|
+
* Liste ordonnée des agents épinglés dans le rail
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof UserChatPreferencesUio
|
|
23
|
+
*/
|
|
24
|
+
pinnedAgentIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof UserChatPreferencesUio
|
|
29
|
+
*/
|
|
30
|
+
railOpen: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Conversation en cours avec chaque agent de l'organisation
|
|
33
|
+
* @type {Array<UserAgentConversationUio>}
|
|
34
|
+
* @memberof UserChatPreferencesUio
|
|
35
|
+
*/
|
|
36
|
+
agentConversations: Array<UserAgentConversationUio>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserChatPreferencesUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfUserChatPreferencesUio(value: object): value is UserChatPreferencesUio;
|
|
42
|
+
export declare function UserChatPreferencesUioFromJSON(json: any): UserChatPreferencesUio;
|
|
43
|
+
export declare function UserChatPreferencesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserChatPreferencesUio;
|
|
44
|
+
export declare function UserChatPreferencesUioToJSON(json: any): UserChatPreferencesUio;
|
|
45
|
+
export declare function UserChatPreferencesUioToJSONTyped(value?: UserChatPreferencesUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfUserChatPreferencesUio = instanceOfUserChatPreferencesUio;
|
|
17
|
+
exports.UserChatPreferencesUioFromJSON = UserChatPreferencesUioFromJSON;
|
|
18
|
+
exports.UserChatPreferencesUioFromJSONTyped = UserChatPreferencesUioFromJSONTyped;
|
|
19
|
+
exports.UserChatPreferencesUioToJSON = UserChatPreferencesUioToJSON;
|
|
20
|
+
exports.UserChatPreferencesUioToJSONTyped = UserChatPreferencesUioToJSONTyped;
|
|
21
|
+
const UserAgentConversationUio_1 = require("./UserAgentConversationUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserChatPreferencesUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserChatPreferencesUio(value) {
|
|
26
|
+
if (!('pinnedAgentIds' in value) || value['pinnedAgentIds'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('railOpen' in value) || value['railOpen'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('agentConversations' in value) || value['agentConversations'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function UserChatPreferencesUioFromJSON(json) {
|
|
35
|
+
return UserChatPreferencesUioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function UserChatPreferencesUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'pinnedAgentIds': json['pinnedAgentIds'],
|
|
43
|
+
'railOpen': json['railOpen'],
|
|
44
|
+
'agentConversations': (json['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UserChatPreferencesUioToJSON(json) {
|
|
48
|
+
return UserChatPreferencesUioToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UserChatPreferencesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'pinnedAgentIds': value['pinnedAgentIds'],
|
|
56
|
+
'railOpen': value['railOpen'],
|
|
57
|
+
'agentConversations': (value['agentConversations'].map(UserAgentConversationUio_1.UserAgentConversationUioToJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -345,6 +347,7 @@ export * from './SetContextLocation400ResponseUio';
|
|
|
345
347
|
export * from './SetMessageReaction200ResponseUio';
|
|
346
348
|
export * from './SetMessageReactionRequestUio';
|
|
347
349
|
export * from './SetTokenRequestUio';
|
|
350
|
+
export * from './SetUserAgentConversationRequestUio';
|
|
348
351
|
export * from './SetupToolRequestUio';
|
|
349
352
|
export * from './SimpleAgentUio';
|
|
350
353
|
export * from './SkillAssignRequestUio';
|
|
@@ -405,9 +408,12 @@ export * from './UpdateSelectedFillers200ResponseUio';
|
|
|
405
408
|
export * from './UpdateSelectedFillersRequestDataInnerUio';
|
|
406
409
|
export * from './UpdateSelectedFillersRequestUio';
|
|
407
410
|
export * from './UpdateToolStaticCredentialsRequestUio';
|
|
411
|
+
export * from './UpdateUserChatPreferencesRequestUio';
|
|
408
412
|
export * from './UploadImageToKnowledgeBaseLibrary200ResponseUio';
|
|
409
413
|
export * from './UploadImageToKnowledgeBaseLibraryRequestUio';
|
|
410
414
|
export * from './UploadedStatusUpdateRequestUio';
|
|
415
|
+
export * from './UserAgentConversationUio';
|
|
416
|
+
export * from './UserChatPreferencesUio';
|
|
411
417
|
export * from './UserCreateRequestUio';
|
|
412
418
|
export * from './UserDetailUio';
|
|
413
419
|
export * from './UserIdentifierRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -363,6 +365,7 @@ __exportStar(require("./SetContextLocation400ResponseUio"), exports);
|
|
|
363
365
|
__exportStar(require("./SetMessageReaction200ResponseUio"), exports);
|
|
364
366
|
__exportStar(require("./SetMessageReactionRequestUio"), exports);
|
|
365
367
|
__exportStar(require("./SetTokenRequestUio"), exports);
|
|
368
|
+
__exportStar(require("./SetUserAgentConversationRequestUio"), exports);
|
|
366
369
|
__exportStar(require("./SetupToolRequestUio"), exports);
|
|
367
370
|
__exportStar(require("./SimpleAgentUio"), exports);
|
|
368
371
|
__exportStar(require("./SkillAssignRequestUio"), exports);
|
|
@@ -423,9 +426,12 @@ __exportStar(require("./UpdateSelectedFillers200ResponseUio"), exports);
|
|
|
423
426
|
__exportStar(require("./UpdateSelectedFillersRequestDataInnerUio"), exports);
|
|
424
427
|
__exportStar(require("./UpdateSelectedFillersRequestUio"), exports);
|
|
425
428
|
__exportStar(require("./UpdateToolStaticCredentialsRequestUio"), exports);
|
|
429
|
+
__exportStar(require("./UpdateUserChatPreferencesRequestUio"), exports);
|
|
426
430
|
__exportStar(require("./UploadImageToKnowledgeBaseLibrary200ResponseUio"), exports);
|
|
427
431
|
__exportStar(require("./UploadImageToKnowledgeBaseLibraryRequestUio"), exports);
|
|
428
432
|
__exportStar(require("./UploadedStatusUpdateRequestUio"), exports);
|
|
433
|
+
__exportStar(require("./UserAgentConversationUio"), exports);
|
|
434
|
+
__exportStar(require("./UserChatPreferencesUio"), exports);
|
|
429
435
|
__exportStar(require("./UserCreateRequestUio"), exports);
|
|
430
436
|
__exportStar(require("./UserDetailUio"), exports);
|
|
431
437
|
__exportStar(require("./UserIdentifierRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -5103,6 +5103,219 @@
|
|
|
5103
5103
|
"tags" : [ "conversations" ]
|
|
5104
5104
|
}
|
|
5105
5105
|
},
|
|
5106
|
+
"/organizations/{organizationId}/chat/preferences" : {
|
|
5107
|
+
"get" : {
|
|
5108
|
+
"description" : "Agents épinglés, état du rail et conversation en cours avec chaque agent de l'organisation, pour l'utilisateur courant.",
|
|
5109
|
+
"operationId" : "getUserChatPreferences",
|
|
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
|
+
"$ref" : "#/components/schemas/UserChatPreferences"
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
},
|
|
5128
|
+
"description" : "Preferences retrieved successfully"
|
|
5129
|
+
},
|
|
5130
|
+
"401" : {
|
|
5131
|
+
"description" : "Unauthenticated"
|
|
5132
|
+
},
|
|
5133
|
+
"403" : {
|
|
5134
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
5135
|
+
}
|
|
5136
|
+
},
|
|
5137
|
+
"summary" : "Get the user's chat preferences",
|
|
5138
|
+
"tags" : [ "conversations" ]
|
|
5139
|
+
},
|
|
5140
|
+
"put" : {
|
|
5141
|
+
"description" : "Mise à jour partielle — une propriété absente reste inchangée.",
|
|
5142
|
+
"operationId" : "updateUserChatPreferences",
|
|
5143
|
+
"parameters" : [ {
|
|
5144
|
+
"description" : "ID of the organization",
|
|
5145
|
+
"in" : "path",
|
|
5146
|
+
"name" : "organizationId",
|
|
5147
|
+
"required" : true,
|
|
5148
|
+
"schema" : {
|
|
5149
|
+
"type" : "string"
|
|
5150
|
+
}
|
|
5151
|
+
} ],
|
|
5152
|
+
"requestBody" : {
|
|
5153
|
+
"content" : {
|
|
5154
|
+
"application/json" : {
|
|
5155
|
+
"schema" : {
|
|
5156
|
+
"$ref" : "#/components/schemas/UpdateUserChatPreferencesRequest"
|
|
5157
|
+
}
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
"required" : true
|
|
5161
|
+
},
|
|
5162
|
+
"responses" : {
|
|
5163
|
+
"200" : {
|
|
5164
|
+
"content" : {
|
|
5165
|
+
"application/json" : {
|
|
5166
|
+
"schema" : {
|
|
5167
|
+
"$ref" : "#/components/schemas/UserChatPreferences"
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
},
|
|
5171
|
+
"description" : "Updated preferences"
|
|
5172
|
+
},
|
|
5173
|
+
"400" : {
|
|
5174
|
+
"description" : "Invalid payload"
|
|
5175
|
+
},
|
|
5176
|
+
"401" : {
|
|
5177
|
+
"description" : "Unauthenticated"
|
|
5178
|
+
},
|
|
5179
|
+
"403" : {
|
|
5180
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
5181
|
+
}
|
|
5182
|
+
},
|
|
5183
|
+
"summary" : "Update the user's chat preferences",
|
|
5184
|
+
"tags" : [ "conversations" ]
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"/organizations/{organizationId}/chat/agents/{agentId}/conversation" : {
|
|
5188
|
+
"put" : {
|
|
5189
|
+
"description" : "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.",
|
|
5190
|
+
"operationId" : "setUserAgentConversation",
|
|
5191
|
+
"parameters" : [ {
|
|
5192
|
+
"description" : "ID of the organization",
|
|
5193
|
+
"in" : "path",
|
|
5194
|
+
"name" : "organizationId",
|
|
5195
|
+
"required" : true,
|
|
5196
|
+
"schema" : {
|
|
5197
|
+
"type" : "string"
|
|
5198
|
+
}
|
|
5199
|
+
}, {
|
|
5200
|
+
"description" : "ID of the agent",
|
|
5201
|
+
"in" : "path",
|
|
5202
|
+
"name" : "agentId",
|
|
5203
|
+
"required" : true,
|
|
5204
|
+
"schema" : {
|
|
5205
|
+
"format" : "uuid",
|
|
5206
|
+
"type" : "string"
|
|
5207
|
+
}
|
|
5208
|
+
} ],
|
|
5209
|
+
"requestBody" : {
|
|
5210
|
+
"content" : {
|
|
5211
|
+
"application/json" : {
|
|
5212
|
+
"schema" : {
|
|
5213
|
+
"$ref" : "#/components/schemas/SetUserAgentConversationRequest"
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
},
|
|
5217
|
+
"required" : true
|
|
5218
|
+
},
|
|
5219
|
+
"responses" : {
|
|
5220
|
+
"204" : {
|
|
5221
|
+
"description" : "Conversation pointer updated"
|
|
5222
|
+
},
|
|
5223
|
+
"400" : {
|
|
5224
|
+
"description" : "conversationId is required"
|
|
5225
|
+
},
|
|
5226
|
+
"401" : {
|
|
5227
|
+
"description" : "Unauthenticated"
|
|
5228
|
+
},
|
|
5229
|
+
"403" : {
|
|
5230
|
+
"description" : "Forbidden"
|
|
5231
|
+
},
|
|
5232
|
+
"404" : {
|
|
5233
|
+
"description" : "CONVERSATION_NOT_FOUND — unknown"
|
|
5234
|
+
}
|
|
5235
|
+
},
|
|
5236
|
+
"summary" : "Set the conversation in progress with an agent",
|
|
5237
|
+
"tags" : [ "conversations" ]
|
|
5238
|
+
}
|
|
5239
|
+
},
|
|
5240
|
+
"/organizations/{organizationId}/chat/overview" : {
|
|
5241
|
+
"get" : {
|
|
5242
|
+
"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.",
|
|
5243
|
+
"operationId" : "getAgentChatOverview",
|
|
5244
|
+
"parameters" : [ {
|
|
5245
|
+
"description" : "ID of the organization",
|
|
5246
|
+
"in" : "path",
|
|
5247
|
+
"name" : "organizationId",
|
|
5248
|
+
"required" : true,
|
|
5249
|
+
"schema" : {
|
|
5250
|
+
"type" : "string"
|
|
5251
|
+
}
|
|
5252
|
+
} ],
|
|
5253
|
+
"responses" : {
|
|
5254
|
+
"200" : {
|
|
5255
|
+
"content" : {
|
|
5256
|
+
"application/json" : {
|
|
5257
|
+
"schema" : {
|
|
5258
|
+
"items" : {
|
|
5259
|
+
"$ref" : "#/components/schemas/AgentChatOverviewEntry"
|
|
5260
|
+
},
|
|
5261
|
+
"type" : "array"
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
},
|
|
5265
|
+
"description" : "Chat overview retrieved successfully"
|
|
5266
|
+
},
|
|
5267
|
+
"401" : {
|
|
5268
|
+
"description" : "Unauthenticated"
|
|
5269
|
+
},
|
|
5270
|
+
"403" : {
|
|
5271
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
5272
|
+
}
|
|
5273
|
+
},
|
|
5274
|
+
"summary" : "Get the multi-agent chat overview",
|
|
5275
|
+
"tags" : [ "conversations" ]
|
|
5276
|
+
}
|
|
5277
|
+
},
|
|
5278
|
+
"/conversations/{conversationId}/read" : {
|
|
5279
|
+
"post" : {
|
|
5280
|
+
"description" : "Positionne la marque de lecture de l'utilisateur sur la conversation.",
|
|
5281
|
+
"operationId" : "markConversationAsRead",
|
|
5282
|
+
"parameters" : [ {
|
|
5283
|
+
"description" : "The ID of the conversation",
|
|
5284
|
+
"in" : "path",
|
|
5285
|
+
"name" : "conversationId",
|
|
5286
|
+
"required" : true,
|
|
5287
|
+
"schema" : {
|
|
5288
|
+
"type" : "string"
|
|
5289
|
+
}
|
|
5290
|
+
} ],
|
|
5291
|
+
"requestBody" : {
|
|
5292
|
+
"content" : {
|
|
5293
|
+
"application/json" : {
|
|
5294
|
+
"schema" : {
|
|
5295
|
+
"$ref" : "#/components/schemas/MarkConversationReadRequest"
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
},
|
|
5299
|
+
"required" : false
|
|
5300
|
+
},
|
|
5301
|
+
"responses" : {
|
|
5302
|
+
"204" : {
|
|
5303
|
+
"description" : "Read position updated"
|
|
5304
|
+
},
|
|
5305
|
+
"401" : {
|
|
5306
|
+
"description" : "Unauthenticated"
|
|
5307
|
+
},
|
|
5308
|
+
"403" : {
|
|
5309
|
+
"description" : "Forbidden"
|
|
5310
|
+
},
|
|
5311
|
+
"404" : {
|
|
5312
|
+
"description" : "CONVERSATION_NOT_FOUND"
|
|
5313
|
+
}
|
|
5314
|
+
},
|
|
5315
|
+
"summary" : "Mark a conversation as read",
|
|
5316
|
+
"tags" : [ "conversations" ]
|
|
5317
|
+
}
|
|
5318
|
+
},
|
|
5106
5319
|
"/conversations" : {
|
|
5107
5320
|
"delete" : {
|
|
5108
5321
|
"description" : "Delete all conversations created by the authenticated user in the specified organization.",
|
|
@@ -13828,20 +14041,20 @@
|
|
|
13828
14041
|
"type" : "string"
|
|
13829
14042
|
}
|
|
13830
14043
|
},
|
|
13831
|
-
"
|
|
13832
|
-
"description" : "
|
|
13833
|
-
"
|
|
13834
|
-
"
|
|
13835
|
-
"name" : "path",
|
|
14044
|
+
"organizationIdPath" : {
|
|
14045
|
+
"description" : "ID of the organization",
|
|
14046
|
+
"in" : "path",
|
|
14047
|
+
"name" : "organizationId",
|
|
13836
14048
|
"required" : true,
|
|
13837
14049
|
"schema" : {
|
|
13838
14050
|
"type" : "string"
|
|
13839
14051
|
}
|
|
13840
14052
|
},
|
|
13841
|
-
"
|
|
13842
|
-
"description" : "
|
|
13843
|
-
"
|
|
13844
|
-
"
|
|
14053
|
+
"workspacePathQuery" : {
|
|
14054
|
+
"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._-].",
|
|
14055
|
+
"example" : "/home/user/rapport.md",
|
|
14056
|
+
"in" : "query",
|
|
14057
|
+
"name" : "path",
|
|
13845
14058
|
"required" : true,
|
|
13846
14059
|
"schema" : {
|
|
13847
14060
|
"type" : "string"
|
|
@@ -17396,6 +17609,108 @@
|
|
|
17396
17609
|
"$ref" : "#/components/schemas/AudioFile"
|
|
17397
17610
|
} ]
|
|
17398
17611
|
},
|
|
17612
|
+
"UserChatPreferences" : {
|
|
17613
|
+
"properties" : {
|
|
17614
|
+
"pinnedAgentIds" : {
|
|
17615
|
+
"description" : "Liste ordonnée des agents épinglés dans le rail",
|
|
17616
|
+
"items" : {
|
|
17617
|
+
"format" : "uuid",
|
|
17618
|
+
"type" : "string"
|
|
17619
|
+
},
|
|
17620
|
+
"type" : "array"
|
|
17621
|
+
},
|
|
17622
|
+
"railOpen" : {
|
|
17623
|
+
"type" : "boolean"
|
|
17624
|
+
},
|
|
17625
|
+
"agentConversations" : {
|
|
17626
|
+
"description" : "Conversation en cours avec chaque agent de l'organisation",
|
|
17627
|
+
"items" : {
|
|
17628
|
+
"$ref" : "#/components/schemas/UserAgentConversation"
|
|
17629
|
+
},
|
|
17630
|
+
"type" : "array"
|
|
17631
|
+
}
|
|
17632
|
+
},
|
|
17633
|
+
"required" : [ "agentConversations", "pinnedAgentIds", "railOpen" ],
|
|
17634
|
+
"type" : "object"
|
|
17635
|
+
},
|
|
17636
|
+
"UserAgentConversation" : {
|
|
17637
|
+
"properties" : {
|
|
17638
|
+
"agentId" : {
|
|
17639
|
+
"format" : "uuid",
|
|
17640
|
+
"type" : "string"
|
|
17641
|
+
},
|
|
17642
|
+
"conversationId" : {
|
|
17643
|
+
"format" : "uuid",
|
|
17644
|
+
"type" : "string"
|
|
17645
|
+
}
|
|
17646
|
+
},
|
|
17647
|
+
"required" : [ "agentId", "conversationId" ],
|
|
17648
|
+
"type" : "object"
|
|
17649
|
+
},
|
|
17650
|
+
"UpdateUserChatPreferencesRequest" : {
|
|
17651
|
+
"description" : "Mise à jour partielle — une propriété absente reste inchangée.",
|
|
17652
|
+
"properties" : {
|
|
17653
|
+
"pinnedAgentIds" : {
|
|
17654
|
+
"items" : {
|
|
17655
|
+
"format" : "uuid",
|
|
17656
|
+
"type" : "string"
|
|
17657
|
+
},
|
|
17658
|
+
"type" : "array"
|
|
17659
|
+
},
|
|
17660
|
+
"railOpen" : {
|
|
17661
|
+
"type" : "boolean"
|
|
17662
|
+
}
|
|
17663
|
+
},
|
|
17664
|
+
"type" : "object"
|
|
17665
|
+
},
|
|
17666
|
+
"SetUserAgentConversationRequest" : {
|
|
17667
|
+
"properties" : {
|
|
17668
|
+
"conversationId" : {
|
|
17669
|
+
"format" : "uuid",
|
|
17670
|
+
"type" : "string"
|
|
17671
|
+
}
|
|
17672
|
+
},
|
|
17673
|
+
"required" : [ "conversationId" ],
|
|
17674
|
+
"type" : "object"
|
|
17675
|
+
},
|
|
17676
|
+
"AgentChatOverviewEntry" : {
|
|
17677
|
+
"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.",
|
|
17678
|
+
"properties" : {
|
|
17679
|
+
"agentId" : {
|
|
17680
|
+
"format" : "uuid",
|
|
17681
|
+
"type" : "string"
|
|
17682
|
+
},
|
|
17683
|
+
"conversationId" : {
|
|
17684
|
+
"format" : "uuid",
|
|
17685
|
+
"type" : "string"
|
|
17686
|
+
},
|
|
17687
|
+
"lastMessageAt" : {
|
|
17688
|
+
"description" : "Horodatage du dernier message, null si la conversation est vide",
|
|
17689
|
+
"nullable" : true,
|
|
17690
|
+
"type" : "string"
|
|
17691
|
+
},
|
|
17692
|
+
"unreadCount" : {
|
|
17693
|
+
"description" : "Messages non lus, hors messages de l'utilisateur lui-même",
|
|
17694
|
+
"type" : "integer"
|
|
17695
|
+
},
|
|
17696
|
+
"isGenerating" : {
|
|
17697
|
+
"description" : "Vrai tant qu'une réponse est en cours de génération",
|
|
17698
|
+
"type" : "boolean"
|
|
17699
|
+
}
|
|
17700
|
+
},
|
|
17701
|
+
"required" : [ "agentId", "conversationId", "isGenerating", "unreadCount" ],
|
|
17702
|
+
"type" : "object"
|
|
17703
|
+
},
|
|
17704
|
+
"MarkConversationReadRequest" : {
|
|
17705
|
+
"properties" : {
|
|
17706
|
+
"readAt" : {
|
|
17707
|
+
"description" : "Position de lecture ; par défaut l'instant courant",
|
|
17708
|
+
"format" : "date-time",
|
|
17709
|
+
"type" : "string"
|
|
17710
|
+
}
|
|
17711
|
+
},
|
|
17712
|
+
"type" : "object"
|
|
17713
|
+
},
|
|
17399
17714
|
"ConversationSummary" : {
|
|
17400
17715
|
"properties" : {
|
|
17401
17716
|
"id" : {
|