@breign/client 1.0.162 → 1.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,52 @@
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.instanceOfAgentPromptInitGenerationResponseUio = instanceOfAgentPromptInitGenerationResponseUio;
17
+ exports.AgentPromptInitGenerationResponseUioFromJSON = AgentPromptInitGenerationResponseUioFromJSON;
18
+ exports.AgentPromptInitGenerationResponseUioFromJSONTyped = AgentPromptInitGenerationResponseUioFromJSONTyped;
19
+ exports.AgentPromptInitGenerationResponseUioToJSON = AgentPromptInitGenerationResponseUioToJSON;
20
+ exports.AgentPromptInitGenerationResponseUioToJSONTyped = AgentPromptInitGenerationResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentPromptInitGenerationResponseUio interface.
23
+ */
24
+ function instanceOfAgentPromptInitGenerationResponseUio(value) {
25
+ if (!('promptInit' in value) || value['promptInit'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AgentPromptInitGenerationResponseUioFromJSON(json) {
30
+ return AgentPromptInitGenerationResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function AgentPromptInitGenerationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'promptInit': json['promptInit'],
38
+ 'warnings': json['warnings'] == null ? undefined : json['warnings'],
39
+ };
40
+ }
41
+ function AgentPromptInitGenerationResponseUioToJSON(json) {
42
+ return AgentPromptInitGenerationResponseUioToJSONTyped(json, false);
43
+ }
44
+ function AgentPromptInitGenerationResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'promptInit': value['promptInit'],
50
+ 'warnings': value['warnings'],
51
+ };
52
+ }
@@ -0,0 +1,46 @@
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 ChatSessionSummaryLastMessagePreviewUio
16
+ */
17
+ export interface ChatSessionSummaryLastMessagePreviewUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChatSessionSummaryLastMessagePreviewUio
22
+ */
23
+ role: ChatSessionSummaryLastMessagePreviewUioRoleEnum;
24
+ /**
25
+ * Début du dernier message, tronqué
26
+ * @type {string}
27
+ * @memberof ChatSessionSummaryLastMessagePreviewUio
28
+ */
29
+ content: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ChatSessionSummaryLastMessagePreviewUioRoleEnum: {
35
+ readonly User: "USER";
36
+ readonly Assistant: "ASSISTANT";
37
+ };
38
+ export type ChatSessionSummaryLastMessagePreviewUioRoleEnum = typeof ChatSessionSummaryLastMessagePreviewUioRoleEnum[keyof typeof ChatSessionSummaryLastMessagePreviewUioRoleEnum];
39
+ /**
40
+ * Check if a given object implements the ChatSessionSummaryLastMessagePreviewUio interface.
41
+ */
42
+ export declare function instanceOfChatSessionSummaryLastMessagePreviewUio(value: object): value is ChatSessionSummaryLastMessagePreviewUio;
43
+ export declare function ChatSessionSummaryLastMessagePreviewUioFromJSON(json: any): ChatSessionSummaryLastMessagePreviewUio;
44
+ export declare function ChatSessionSummaryLastMessagePreviewUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatSessionSummaryLastMessagePreviewUio;
45
+ export declare function ChatSessionSummaryLastMessagePreviewUioToJSON(json: any): ChatSessionSummaryLastMessagePreviewUio;
46
+ export declare function ChatSessionSummaryLastMessagePreviewUioToJSONTyped(value?: ChatSessionSummaryLastMessagePreviewUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.ChatSessionSummaryLastMessagePreviewUioRoleEnum = void 0;
17
+ exports.instanceOfChatSessionSummaryLastMessagePreviewUio = instanceOfChatSessionSummaryLastMessagePreviewUio;
18
+ exports.ChatSessionSummaryLastMessagePreviewUioFromJSON = ChatSessionSummaryLastMessagePreviewUioFromJSON;
19
+ exports.ChatSessionSummaryLastMessagePreviewUioFromJSONTyped = ChatSessionSummaryLastMessagePreviewUioFromJSONTyped;
20
+ exports.ChatSessionSummaryLastMessagePreviewUioToJSON = ChatSessionSummaryLastMessagePreviewUioToJSON;
21
+ exports.ChatSessionSummaryLastMessagePreviewUioToJSONTyped = ChatSessionSummaryLastMessagePreviewUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ChatSessionSummaryLastMessagePreviewUioRoleEnum = {
26
+ User: 'USER',
27
+ Assistant: 'ASSISTANT'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ChatSessionSummaryLastMessagePreviewUio interface.
31
+ */
32
+ function instanceOfChatSessionSummaryLastMessagePreviewUio(value) {
33
+ if (!('role' in value) || value['role'] === undefined)
34
+ return false;
35
+ if (!('content' in value) || value['content'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ChatSessionSummaryLastMessagePreviewUioFromJSON(json) {
40
+ return ChatSessionSummaryLastMessagePreviewUioFromJSONTyped(json, false);
41
+ }
42
+ function ChatSessionSummaryLastMessagePreviewUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'role': json['role'],
48
+ 'content': json['content'],
49
+ };
50
+ }
51
+ function ChatSessionSummaryLastMessagePreviewUioToJSON(json) {
52
+ return ChatSessionSummaryLastMessagePreviewUioToJSONTyped(json, false);
53
+ }
54
+ function ChatSessionSummaryLastMessagePreviewUioToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'role': value['role'],
60
+ 'content': value['content'],
61
+ };
62
+ }
@@ -0,0 +1,87 @@
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 { ChatSessionSummaryLastMessagePreviewUio } from './ChatSessionSummaryLastMessagePreviewUio';
13
+ /**
14
+ * Une session de chat de l'utilisateur courant avec un agent.
15
+ * @export
16
+ * @interface ChatSessionSummaryUio
17
+ */
18
+ export interface ChatSessionSummaryUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ChatSessionSummaryUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ChatSessionSummaryUio
29
+ */
30
+ agentId: string;
31
+ /**
32
+ * Titre de la session ; à défaut, le premier message tronqué
33
+ * @type {string}
34
+ * @memberof ChatSessionSummaryUio
35
+ */
36
+ title: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ChatSessionSummaryUio
41
+ */
42
+ createdAt: string;
43
+ /**
44
+ * Horodatage du dernier message, null si la session est vide
45
+ * @type {string}
46
+ * @memberof ChatSessionSummaryUio
47
+ */
48
+ lastMessageAt: string | null;
49
+ /**
50
+ *
51
+ * @type {ChatSessionSummaryLastMessagePreviewUio}
52
+ * @memberof ChatSessionSummaryUio
53
+ */
54
+ lastMessagePreview?: ChatSessionSummaryLastMessagePreviewUio | null;
55
+ /**
56
+ * Même définition que AgentChatOverviewEntry.unreadCount
57
+ * @type {number}
58
+ * @memberof ChatSessionSummaryUio
59
+ */
60
+ unreadCount: number;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof ChatSessionSummaryUio
65
+ */
66
+ isGenerating: boolean;
67
+ /**
68
+ * Vrai si c'est la conversation principale de l'utilisateur avec cet agent
69
+ * @type {boolean}
70
+ * @memberof ChatSessionSummaryUio
71
+ */
72
+ isMain: boolean;
73
+ /**
74
+ * Questions Human_ask en attente dans cette session
75
+ * @type {number}
76
+ * @memberof ChatSessionSummaryUio
77
+ */
78
+ pendingHumanRequests: number;
79
+ }
80
+ /**
81
+ * Check if a given object implements the ChatSessionSummaryUio interface.
82
+ */
83
+ export declare function instanceOfChatSessionSummaryUio(value: object): value is ChatSessionSummaryUio;
84
+ export declare function ChatSessionSummaryUioFromJSON(json: any): ChatSessionSummaryUio;
85
+ export declare function ChatSessionSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatSessionSummaryUio;
86
+ export declare function ChatSessionSummaryUioToJSON(json: any): ChatSessionSummaryUio;
87
+ export declare function ChatSessionSummaryUioToJSONTyped(value?: ChatSessionSummaryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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.instanceOfChatSessionSummaryUio = instanceOfChatSessionSummaryUio;
17
+ exports.ChatSessionSummaryUioFromJSON = ChatSessionSummaryUioFromJSON;
18
+ exports.ChatSessionSummaryUioFromJSONTyped = ChatSessionSummaryUioFromJSONTyped;
19
+ exports.ChatSessionSummaryUioToJSON = ChatSessionSummaryUioToJSON;
20
+ exports.ChatSessionSummaryUioToJSONTyped = ChatSessionSummaryUioToJSONTyped;
21
+ const ChatSessionSummaryLastMessagePreviewUio_1 = require("./ChatSessionSummaryLastMessagePreviewUio");
22
+ /**
23
+ * Check if a given object implements the ChatSessionSummaryUio interface.
24
+ */
25
+ function instanceOfChatSessionSummaryUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('agentId' in value) || value['agentId'] === undefined)
29
+ return false;
30
+ if (!('title' in value) || value['title'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ if (!('lastMessageAt' in value) || value['lastMessageAt'] === undefined)
35
+ return false;
36
+ if (!('unreadCount' in value) || value['unreadCount'] === undefined)
37
+ return false;
38
+ if (!('isGenerating' in value) || value['isGenerating'] === undefined)
39
+ return false;
40
+ if (!('isMain' in value) || value['isMain'] === undefined)
41
+ return false;
42
+ if (!('pendingHumanRequests' in value) || value['pendingHumanRequests'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ChatSessionSummaryUioFromJSON(json) {
47
+ return ChatSessionSummaryUioFromJSONTyped(json, false);
48
+ }
49
+ function ChatSessionSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'agentId': json['agentId'],
56
+ 'title': json['title'],
57
+ 'createdAt': json['createdAt'],
58
+ 'lastMessageAt': json['lastMessageAt'],
59
+ 'lastMessagePreview': json['lastMessagePreview'] == null ? undefined : (0, ChatSessionSummaryLastMessagePreviewUio_1.ChatSessionSummaryLastMessagePreviewUioFromJSON)(json['lastMessagePreview']),
60
+ 'unreadCount': json['unreadCount'],
61
+ 'isGenerating': json['isGenerating'],
62
+ 'isMain': json['isMain'],
63
+ 'pendingHumanRequests': json['pendingHumanRequests'],
64
+ };
65
+ }
66
+ function ChatSessionSummaryUioToJSON(json) {
67
+ return ChatSessionSummaryUioToJSONTyped(json, false);
68
+ }
69
+ function ChatSessionSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'agentId': value['agentId'],
76
+ 'title': value['title'],
77
+ 'createdAt': value['createdAt'],
78
+ 'lastMessageAt': value['lastMessageAt'],
79
+ 'lastMessagePreview': (0, ChatSessionSummaryLastMessagePreviewUio_1.ChatSessionSummaryLastMessagePreviewUioToJSON)(value['lastMessagePreview']),
80
+ 'unreadCount': value['unreadCount'],
81
+ 'isGenerating': value['isGenerating'],
82
+ 'isMain': value['isMain'],
83
+ 'pendingHumanRequests': value['pendingHumanRequests'],
84
+ };
85
+ }
@@ -54,6 +54,9 @@ export * from './AgentModuleTypeUio';
54
54
  export * from './AgentModuleUio';
55
55
  export * from './AgentPatchEngineUio';
56
56
  export * from './AgentPatchUio';
57
+ export * from './AgentPromptInitGenerationRequestNotesUio';
58
+ export * from './AgentPromptInitGenerationRequestUio';
59
+ export * from './AgentPromptInitGenerationResponseUio';
57
60
  export * from './AgentRateLimitSettingsUio';
58
61
  export * from './AgentRateLimitSettingsUpdateRequestUio';
59
62
  export * from './AgentRefUio';
@@ -167,6 +170,8 @@ export * from './ChatMessageAudioInnerUio';
167
170
  export * from './ChatMessageRoleUio';
168
171
  export * from './ChatMessageStreamUio';
169
172
  export * from './ChatMessageUio';
173
+ export * from './ChatSessionSummaryLastMessagePreviewUio';
174
+ export * from './ChatSessionSummaryUio';
170
175
  export * from './ChatUio';
171
176
  export * from './ChunkContentCreateUio';
172
177
  export * from './ChunkContentUio';
@@ -72,6 +72,9 @@ __exportStar(require("./AgentModuleTypeUio"), exports);
72
72
  __exportStar(require("./AgentModuleUio"), exports);
73
73
  __exportStar(require("./AgentPatchEngineUio"), exports);
74
74
  __exportStar(require("./AgentPatchUio"), exports);
75
+ __exportStar(require("./AgentPromptInitGenerationRequestNotesUio"), exports);
76
+ __exportStar(require("./AgentPromptInitGenerationRequestUio"), exports);
77
+ __exportStar(require("./AgentPromptInitGenerationResponseUio"), exports);
75
78
  __exportStar(require("./AgentRateLimitSettingsUio"), exports);
76
79
  __exportStar(require("./AgentRateLimitSettingsUpdateRequestUio"), exports);
77
80
  __exportStar(require("./AgentRefUio"), exports);
@@ -185,6 +188,8 @@ __exportStar(require("./ChatMessageAudioInnerUio"), exports);
185
188
  __exportStar(require("./ChatMessageRoleUio"), exports);
186
189
  __exportStar(require("./ChatMessageStreamUio"), exports);
187
190
  __exportStar(require("./ChatMessageUio"), exports);
191
+ __exportStar(require("./ChatSessionSummaryLastMessagePreviewUio"), exports);
192
+ __exportStar(require("./ChatSessionSummaryUio"), exports);
188
193
  __exportStar(require("./ChatUio"), exports);
189
194
  __exportStar(require("./ChunkContentCreateUio"), exports);
190
195
  __exportStar(require("./ChunkContentUio"), exports);