@breign/client 1.0.60 → 1.0.62
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/models/AppChatSubmitMessageRequestUio.d.ts +6 -0
- package/dist/models/AppChatSubmitMessageRequestUio.js +2 -0
- package/dist/models/ChatMessageStreamUio.d.ts +44 -0
- package/dist/models/ChatMessageStreamUio.js +52 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +8 -1
- package/dist/models/ChatMessageWithFlowNodeUio.js +4 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +21 -1
- package/package.json +1 -1
|
@@ -21,6 +21,12 @@ export interface AppChatSubmitMessageRequestUio {
|
|
|
21
21
|
* @memberof AppChatSubmitMessageRequestUio
|
|
22
22
|
*/
|
|
23
23
|
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppChatSubmitMessageRequestUio
|
|
28
|
+
*/
|
|
29
|
+
lang?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the AppChatSubmitMessageRequestUio interface.
|
|
@@ -35,6 +35,7 @@ function AppChatSubmitMessageRequestUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'message': json['message'],
|
|
38
|
+
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function AppChatSubmitMessageRequestUioToJSON(json) {
|
|
@@ -46,5 +47,6 @@ function AppChatSubmitMessageRequestUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'message': value['message'],
|
|
50
|
+
'lang': value['lang'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChatMessageStreamUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatMessageStreamUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatMessageStreamUio
|
|
22
|
+
*/
|
|
23
|
+
status?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ChatMessageStreamUio
|
|
28
|
+
*/
|
|
29
|
+
seq?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatMessageStreamUio
|
|
34
|
+
*/
|
|
35
|
+
updatedAt?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ChatMessageStreamUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfChatMessageStreamUio(value: object): value is ChatMessageStreamUio;
|
|
41
|
+
export declare function ChatMessageStreamUioFromJSON(json: any): ChatMessageStreamUio;
|
|
42
|
+
export declare function ChatMessageStreamUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageStreamUio;
|
|
43
|
+
export declare function ChatMessageStreamUioToJSON(json: any): ChatMessageStreamUio;
|
|
44
|
+
export declare function ChatMessageStreamUioToJSONTyped(value?: ChatMessageStreamUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfChatMessageStreamUio = instanceOfChatMessageStreamUio;
|
|
17
|
+
exports.ChatMessageStreamUioFromJSON = ChatMessageStreamUioFromJSON;
|
|
18
|
+
exports.ChatMessageStreamUioFromJSONTyped = ChatMessageStreamUioFromJSONTyped;
|
|
19
|
+
exports.ChatMessageStreamUioToJSON = ChatMessageStreamUioToJSON;
|
|
20
|
+
exports.ChatMessageStreamUioToJSONTyped = ChatMessageStreamUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ChatMessageStreamUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfChatMessageStreamUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ChatMessageStreamUioFromJSON(json) {
|
|
28
|
+
return ChatMessageStreamUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ChatMessageStreamUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
36
|
+
'seq': json['seq'] == null ? undefined : json['seq'],
|
|
37
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ChatMessageStreamUioToJSON(json) {
|
|
41
|
+
return ChatMessageStreamUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ChatMessageStreamUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
'seq': value['seq'],
|
|
50
|
+
'updatedAt': value['updatedAt'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolActionUio } from './ToolActionUio';
|
|
13
13
|
import type { AgentFlowUio } from './AgentFlowUio';
|
|
14
|
+
import type { ChatMessageStreamUio } from './ChatMessageStreamUio';
|
|
14
15
|
import type { SuggestionUio } from './SuggestionUio';
|
|
15
16
|
import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
16
17
|
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
@@ -118,6 +119,12 @@ export interface ChatMessageUio {
|
|
|
118
119
|
* @memberof ChatMessageUio
|
|
119
120
|
*/
|
|
120
121
|
audio?: Array<ChatMessageAudioInnerUio>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {ChatMessageStreamUio}
|
|
125
|
+
* @memberof ChatMessageUio
|
|
126
|
+
*/
|
|
127
|
+
stream?: ChatMessageStreamUio | null;
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
123
130
|
* Check if a given object implements the ChatMessageUio interface.
|
|
@@ -20,6 +20,7 @@ exports.ChatMessageUioToJSON = ChatMessageUioToJSON;
|
|
|
20
20
|
exports.ChatMessageUioToJSONTyped = ChatMessageUioToJSONTyped;
|
|
21
21
|
const ToolActionUio_1 = require("./ToolActionUio");
|
|
22
22
|
const AgentFlowUio_1 = require("./AgentFlowUio");
|
|
23
|
+
const ChatMessageStreamUio_1 = require("./ChatMessageStreamUio");
|
|
23
24
|
const SuggestionUio_1 = require("./SuggestionUio");
|
|
24
25
|
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
25
26
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
@@ -63,6 +64,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
64
|
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
64
65
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
65
66
|
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
67
|
+
'stream': json['stream'] == null ? undefined : (0, ChatMessageStreamUio_1.ChatMessageStreamUioFromJSON)(json['stream']),
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
70
|
function ChatMessageUioToJSON(json) {
|
|
@@ -89,5 +91,6 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
91
|
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
90
92
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
91
93
|
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
94
|
+
'stream': (0, ChatMessageStreamUio_1.ChatMessageStreamUioToJSON)(value['stream']),
|
|
92
95
|
};
|
|
93
96
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolActionUio } from './ToolActionUio';
|
|
13
13
|
import type { AgentFlowUio } from './AgentFlowUio';
|
|
14
|
+
import type { ChatMessageStreamUio } from './ChatMessageStreamUio';
|
|
14
15
|
import type { SuggestionUio } from './SuggestionUio';
|
|
15
16
|
import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
16
17
|
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
@@ -69,7 +70,7 @@ export interface ChatMessageWithFlowNodeUio {
|
|
|
69
70
|
* @type {AgentFlowUio}
|
|
70
71
|
* @memberof ChatMessageWithFlowNodeUio
|
|
71
72
|
*/
|
|
72
|
-
flowNode
|
|
73
|
+
flowNode?: AgentFlowUio;
|
|
73
74
|
/**
|
|
74
75
|
*
|
|
75
76
|
* @type {boolean}
|
|
@@ -118,6 +119,12 @@ export interface ChatMessageWithFlowNodeUio {
|
|
|
118
119
|
* @memberof ChatMessageWithFlowNodeUio
|
|
119
120
|
*/
|
|
120
121
|
audio?: Array<ChatMessageAudioInnerUio>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {ChatMessageStreamUio}
|
|
125
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
126
|
+
*/
|
|
127
|
+
stream?: ChatMessageStreamUio | null;
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
123
130
|
* Check if a given object implements the ChatMessageWithFlowNodeUio interface.
|
|
@@ -20,6 +20,7 @@ exports.ChatMessageWithFlowNodeUioToJSON = ChatMessageWithFlowNodeUioToJSON;
|
|
|
20
20
|
exports.ChatMessageWithFlowNodeUioToJSONTyped = ChatMessageWithFlowNodeUioToJSONTyped;
|
|
21
21
|
const ToolActionUio_1 = require("./ToolActionUio");
|
|
22
22
|
const AgentFlowUio_1 = require("./AgentFlowUio");
|
|
23
|
+
const ChatMessageStreamUio_1 = require("./ChatMessageStreamUio");
|
|
23
24
|
const SuggestionUio_1 = require("./SuggestionUio");
|
|
24
25
|
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
25
26
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
@@ -35,8 +36,6 @@ function instanceOfChatMessageWithFlowNodeUio(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('content' in value) || value['content'] === undefined)
|
|
37
38
|
return false;
|
|
38
|
-
if (!('flowNode' in value) || value['flowNode'] === undefined)
|
|
39
|
-
return false;
|
|
40
39
|
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
41
40
|
return false;
|
|
42
41
|
return true;
|
|
@@ -56,7 +55,7 @@ function ChatMessageWithFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
55
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
57
56
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
58
57
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
59
|
-
'flowNode': (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
|
|
58
|
+
'flowNode': json['flowNode'] == null ? undefined : (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
|
|
60
59
|
'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
|
|
61
60
|
'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
|
|
62
61
|
'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
|
|
@@ -65,6 +64,7 @@ function ChatMessageWithFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
64
|
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
66
65
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
67
66
|
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
67
|
+
'stream': json['stream'] == null ? undefined : (0, ChatMessageStreamUio_1.ChatMessageStreamUioFromJSON)(json['stream']),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function ChatMessageWithFlowNodeUioToJSON(json) {
|
|
@@ -91,5 +91,6 @@ function ChatMessageWithFlowNodeUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
91
91
|
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
92
92
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
93
93
|
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
94
|
+
'stream': (0, ChatMessageStreamUio_1.ChatMessageStreamUioToJSON)(value['stream']),
|
|
94
95
|
};
|
|
95
96
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export * from './ChatContextLocationUio';
|
|
|
70
70
|
export * from './ChatContextUio';
|
|
71
71
|
export * from './ChatMessageAudioInnerUio';
|
|
72
72
|
export * from './ChatMessageRoleUio';
|
|
73
|
+
export * from './ChatMessageStreamUio';
|
|
73
74
|
export * from './ChatMessageUio';
|
|
74
75
|
export * from './ChatMessageWithFlowNodeUio';
|
|
75
76
|
export * from './ChatUio';
|
package/dist/models/index.js
CHANGED
|
@@ -88,6 +88,7 @@ __exportStar(require("./ChatContextLocationUio"), exports);
|
|
|
88
88
|
__exportStar(require("./ChatContextUio"), exports);
|
|
89
89
|
__exportStar(require("./ChatMessageAudioInnerUio"), exports);
|
|
90
90
|
__exportStar(require("./ChatMessageRoleUio"), exports);
|
|
91
|
+
__exportStar(require("./ChatMessageStreamUio"), exports);
|
|
91
92
|
__exportStar(require("./ChatMessageUio"), exports);
|
|
92
93
|
__exportStar(require("./ChatMessageWithFlowNodeUio"), exports);
|
|
93
94
|
__exportStar(require("./ChatUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -7715,7 +7715,6 @@
|
|
|
7715
7715
|
"$ref" : "#/components/schemas/AgentFlow"
|
|
7716
7716
|
}
|
|
7717
7717
|
},
|
|
7718
|
-
"required" : [ "flowNode" ],
|
|
7719
7718
|
"type" : "object"
|
|
7720
7719
|
} ]
|
|
7721
7720
|
},
|
|
@@ -7784,6 +7783,9 @@
|
|
|
7784
7783
|
"$ref" : "#/components/schemas/ChatMessage_audio_inner"
|
|
7785
7784
|
},
|
|
7786
7785
|
"type" : "array"
|
|
7786
|
+
},
|
|
7787
|
+
"stream" : {
|
|
7788
|
+
"$ref" : "#/components/schemas/ChatMessage_stream"
|
|
7787
7789
|
}
|
|
7788
7790
|
},
|
|
7789
7791
|
"required" : [ "content", "id", "role", "timestamp" ],
|
|
@@ -8281,6 +8283,9 @@
|
|
|
8281
8283
|
"properties" : {
|
|
8282
8284
|
"message" : {
|
|
8283
8285
|
"type" : "string"
|
|
8286
|
+
},
|
|
8287
|
+
"lang" : {
|
|
8288
|
+
"type" : "string"
|
|
8284
8289
|
}
|
|
8285
8290
|
},
|
|
8286
8291
|
"required" : [ "message" ],
|
|
@@ -10170,6 +10175,21 @@
|
|
|
10170
10175
|
"required" : [ "audioFileId", "sequence" ],
|
|
10171
10176
|
"type" : "object"
|
|
10172
10177
|
},
|
|
10178
|
+
"ChatMessage_stream" : {
|
|
10179
|
+
"nullable" : true,
|
|
10180
|
+
"properties" : {
|
|
10181
|
+
"status" : {
|
|
10182
|
+
"type" : "string"
|
|
10183
|
+
},
|
|
10184
|
+
"seq" : {
|
|
10185
|
+
"type" : "number"
|
|
10186
|
+
},
|
|
10187
|
+
"updatedAt" : {
|
|
10188
|
+
"type" : "string"
|
|
10189
|
+
}
|
|
10190
|
+
},
|
|
10191
|
+
"type" : "object"
|
|
10192
|
+
},
|
|
10173
10193
|
"ToolResults_tool" : {
|
|
10174
10194
|
"properties" : {
|
|
10175
10195
|
"tool" : {
|