@breign/client 1.0.74 → 1.0.76
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/AgentApi.d.ts +95 -3
- package/dist/apis/AgentApi.js +218 -5
- package/dist/apis/AppApi.d.ts +73 -2
- package/dist/apis/AppApi.js +169 -2
- package/dist/apis/KnowledgeApi.d.ts +27 -1
- package/dist/apis/KnowledgeApi.js +60 -0
- package/dist/apis/OrganizationsApi.d.ts +67 -1
- package/dist/apis/OrganizationsApi.js +156 -0
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +1 -1
- package/dist/apis/ToolsApi.d.ts +26 -1
- package/dist/apis/ToolsApi.js +59 -0
- package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
- package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
- package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
- package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
- package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
- package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
- package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
- package/dist/models/AdvancedFlowEditorUio.js +60 -0
- package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
- package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
- package/dist/models/AgentFlowCreateUio.d.ts +6 -0
- package/dist/models/AgentFlowCreateUio.js +2 -0
- package/dist/models/AgentFlowUio.d.ts +6 -0
- package/dist/models/AgentFlowUio.js +2 -0
- package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
- package/dist/models/AnimationCreateRequestUio.js +64 -0
- package/dist/models/AnimationUio.d.ts +56 -0
- package/dist/models/AnimationUio.js +64 -0
- package/dist/models/AppCommandsInnerUio.d.ts +46 -0
- package/dist/models/AppCommandsInnerUio.js +56 -0
- package/dist/models/AppUio.d.ts +17 -3
- package/dist/models/AppUio.js +9 -3
- package/dist/models/AppUpdateRequestUio.d.ts +8 -0
- package/dist/models/AppUpdateRequestUio.js +2 -0
- package/dist/models/Conversation1Uio.d.ts +46 -0
- package/dist/models/Conversation1Uio.js +60 -0
- package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
- package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
- package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
- package/dist/models/ConversationMessagesInnerUio.js +73 -0
- package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
- package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
- package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
- package/dist/models/ConversationMetricsInnerUio.js +60 -0
- package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
- package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
- package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
- package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
- package/dist/models/ConversationUio.d.ts +56 -6
- package/dist/models/ConversationUio.js +27 -7
- package/dist/models/FlowContentsUio.d.ts +6 -0
- package/dist/models/FlowContentsUio.js +2 -0
- package/dist/models/FlowEditorNodeUio.d.ts +39 -0
- package/dist/models/FlowEditorNodeUio.js +55 -0
- package/dist/models/FlowEditorUio.d.ts +39 -0
- package/dist/models/FlowEditorUio.js +55 -0
- package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
- package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
- package/dist/models/GuardianEngineUio.d.ts +27 -4
- package/dist/models/GuardianEngineUio.js +11 -4
- package/dist/models/GuardianPutRequestUio.d.ts +13 -0
- package/dist/models/GuardianPutRequestUio.js +5 -0
- package/dist/models/GuardianTypeUio.d.ts +2 -3
- package/dist/models/GuardianTypeUio.js +2 -3
- package/dist/models/GuardianUio.d.ts +1 -1
- package/dist/models/GuardianUio.js +3 -1
- package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
- package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
- package/dist/models/OrganizationUio.d.ts +20 -0
- package/dist/models/OrganizationUio.js +10 -0
- package/dist/models/OrganizationUserUio.d.ts +38 -0
- package/dist/models/OrganizationUserUio.js +54 -0
- package/dist/models/RoleCreateRequestUio.d.ts +44 -0
- package/dist/models/RoleCreateRequestUio.js +56 -0
- package/dist/models/SequenceContentsUio.d.ts +38 -0
- package/dist/models/SequenceContentsUio.js +50 -0
- package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
- package/dist/models/SequenceCreateRequestUio.js +59 -0
- package/dist/models/SequenceUio.d.ts +45 -0
- package/dist/models/SequenceUio.js +59 -0
- package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
- package/dist/models/ToolUpdateRequestUio.js +56 -0
- package/dist/models/index.d.ts +27 -3
- package/dist/models/index.js +27 -3
- package/dist/openapi.json +1491 -129
- package/package.json +1 -1
- package/dist/models/AppSequencesInnerUio.d.ts +0 -38
- package/dist/models/AppSequencesInnerUio.js +0 -50
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
- package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
- package/dist/models/ConversationFlowNodeUio.js +0 -55
|
@@ -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.instanceOfConversationMetricsInnerValueInnerCostUio = instanceOfConversationMetricsInnerValueInnerCostUio;
|
|
17
|
+
exports.ConversationMetricsInnerValueInnerCostUioFromJSON = ConversationMetricsInnerValueInnerCostUioFromJSON;
|
|
18
|
+
exports.ConversationMetricsInnerValueInnerCostUioFromJSONTyped = ConversationMetricsInnerValueInnerCostUioFromJSONTyped;
|
|
19
|
+
exports.ConversationMetricsInnerValueInnerCostUioToJSON = ConversationMetricsInnerValueInnerCostUioToJSON;
|
|
20
|
+
exports.ConversationMetricsInnerValueInnerCostUioToJSONTyped = ConversationMetricsInnerValueInnerCostUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConversationMetricsInnerValueInnerCostUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConversationMetricsInnerValueInnerCostUio(value) {
|
|
25
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ConversationMetricsInnerValueInnerCostUioFromJSON(json) {
|
|
32
|
+
return ConversationMetricsInnerValueInnerCostUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ConversationMetricsInnerValueInnerCostUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'amount': json['amount'],
|
|
40
|
+
'currency': json['currency'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ConversationMetricsInnerValueInnerCostUioToJSON(json) {
|
|
44
|
+
return ConversationMetricsInnerValueInnerCostUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ConversationMetricsInnerValueInnerCostUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'amount': value['amount'],
|
|
52
|
+
'currency': value['currency'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ConversationMetricsInnerValueInnerCostUio } from './ConversationMetricsInnerValueInnerCostUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationMetricsInnerValueInnerUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationMetricsInnerValueInnerUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
23
|
+
*/
|
|
24
|
+
units: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
35
|
+
*/
|
|
36
|
+
amount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
41
|
+
*/
|
|
42
|
+
model: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
47
|
+
*/
|
|
48
|
+
provider: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ConversationMetricsInnerValueInnerCostUio}
|
|
52
|
+
* @memberof ConversationMetricsInnerValueInnerUio
|
|
53
|
+
*/
|
|
54
|
+
cost?: ConversationMetricsInnerValueInnerCostUio;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ConversationMetricsInnerValueInnerUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfConversationMetricsInnerValueInnerUio(value: object): value is ConversationMetricsInnerValueInnerUio;
|
|
60
|
+
export declare function ConversationMetricsInnerValueInnerUioFromJSON(json: any): ConversationMetricsInnerValueInnerUio;
|
|
61
|
+
export declare function ConversationMetricsInnerValueInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMetricsInnerValueInnerUio;
|
|
62
|
+
export declare function ConversationMetricsInnerValueInnerUioToJSON(json: any): ConversationMetricsInnerValueInnerUio;
|
|
63
|
+
export declare function ConversationMetricsInnerValueInnerUioToJSONTyped(value?: ConversationMetricsInnerValueInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfConversationMetricsInnerValueInnerUio = instanceOfConversationMetricsInnerValueInnerUio;
|
|
17
|
+
exports.ConversationMetricsInnerValueInnerUioFromJSON = ConversationMetricsInnerValueInnerUioFromJSON;
|
|
18
|
+
exports.ConversationMetricsInnerValueInnerUioFromJSONTyped = ConversationMetricsInnerValueInnerUioFromJSONTyped;
|
|
19
|
+
exports.ConversationMetricsInnerValueInnerUioToJSON = ConversationMetricsInnerValueInnerUioToJSON;
|
|
20
|
+
exports.ConversationMetricsInnerValueInnerUioToJSONTyped = ConversationMetricsInnerValueInnerUioToJSONTyped;
|
|
21
|
+
const ConversationMetricsInnerValueInnerCostUio_1 = require("./ConversationMetricsInnerValueInnerCostUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationMetricsInnerValueInnerUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationMetricsInnerValueInnerUio(value) {
|
|
26
|
+
if (!('units' in value) || value['units'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ConversationMetricsInnerValueInnerUioFromJSON(json) {
|
|
39
|
+
return ConversationMetricsInnerValueInnerUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ConversationMetricsInnerValueInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'units': json['units'],
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'amount': json['amount'],
|
|
49
|
+
'model': json['model'],
|
|
50
|
+
'provider': json['provider'],
|
|
51
|
+
'cost': json['cost'] == null ? undefined : (0, ConversationMetricsInnerValueInnerCostUio_1.ConversationMetricsInnerValueInnerCostUioFromJSON)(json['cost']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function ConversationMetricsInnerValueInnerUioToJSON(json) {
|
|
55
|
+
return ConversationMetricsInnerValueInnerUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function ConversationMetricsInnerValueInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'units': value['units'],
|
|
63
|
+
'type': value['type'],
|
|
64
|
+
'amount': value['amount'],
|
|
65
|
+
'model': value['model'],
|
|
66
|
+
'provider': value['provider'],
|
|
67
|
+
'cost': (0, ConversationMetricsInnerValueInnerCostUio_1.ConversationMetricsInnerValueInnerCostUioToJSON)(value['cost']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { ConversationMessagesInnerUio } from './ConversationMessagesInnerUio';
|
|
13
|
+
import type { ConversationMetricsInnerUio } from './ConversationMetricsInnerUio';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -25,16 +25,66 @@ export interface ConversationUio {
|
|
|
25
25
|
id: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ConversationUio
|
|
30
|
+
*/
|
|
31
|
+
brainId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ConversationUio
|
|
36
|
+
*/
|
|
37
|
+
agentId?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ConversationUio
|
|
42
|
+
*/
|
|
43
|
+
userId?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
29
47
|
* @memberof ConversationUio
|
|
30
48
|
*/
|
|
31
|
-
|
|
49
|
+
customUserId?: string;
|
|
32
50
|
/**
|
|
33
51
|
*
|
|
34
|
-
* @type {
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ConversationUio
|
|
54
|
+
*/
|
|
55
|
+
title?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<ConversationMessagesInnerUio>}
|
|
59
|
+
* @memberof ConversationUio
|
|
60
|
+
*/
|
|
61
|
+
messages: Array<ConversationMessagesInnerUio>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<ConversationMetricsInnerUio>}
|
|
65
|
+
* @memberof ConversationUio
|
|
66
|
+
*/
|
|
67
|
+
metrics?: Array<ConversationMetricsInnerUio>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {{ [key: string]: number; }}
|
|
71
|
+
* @memberof ConversationUio
|
|
72
|
+
*/
|
|
73
|
+
cost?: {
|
|
74
|
+
[key: string]: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof ConversationUio
|
|
80
|
+
*/
|
|
81
|
+
createdAt: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
35
85
|
* @memberof ConversationUio
|
|
36
86
|
*/
|
|
37
|
-
|
|
87
|
+
updatedAt: string;
|
|
38
88
|
}
|
|
39
89
|
/**
|
|
40
90
|
* Check if a given object implements the ConversationUio interface.
|
|
@@ -18,18 +18,22 @@ exports.ConversationUioFromJSON = ConversationUioFromJSON;
|
|
|
18
18
|
exports.ConversationUioFromJSONTyped = ConversationUioFromJSONTyped;
|
|
19
19
|
exports.ConversationUioToJSON = ConversationUioToJSON;
|
|
20
20
|
exports.ConversationUioToJSONTyped = ConversationUioToJSONTyped;
|
|
21
|
-
const
|
|
22
|
-
const
|
|
21
|
+
const ConversationMessagesInnerUio_1 = require("./ConversationMessagesInnerUio");
|
|
22
|
+
const ConversationMetricsInnerUio_1 = require("./ConversationMetricsInnerUio");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the ConversationUio interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfConversationUio(value) {
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('brainId' in value) || value['brainId'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('messages' in value) || value['messages'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
33
37
|
return true;
|
|
34
38
|
}
|
|
35
39
|
function ConversationUioFromJSON(json) {
|
|
@@ -41,8 +45,16 @@ function ConversationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
45
|
}
|
|
42
46
|
return {
|
|
43
47
|
'id': json['id'],
|
|
44
|
-
'
|
|
45
|
-
'
|
|
48
|
+
'brainId': json['brainId'],
|
|
49
|
+
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
50
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
51
|
+
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
52
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
53
|
+
'messages': (json['messages'].map(ConversationMessagesInnerUio_1.ConversationMessagesInnerUioFromJSON)),
|
|
54
|
+
'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioFromJSON)),
|
|
55
|
+
'cost': json['cost'] == null ? undefined : json['cost'],
|
|
56
|
+
'createdAt': json['createdAt'],
|
|
57
|
+
'updatedAt': json['updatedAt'],
|
|
46
58
|
};
|
|
47
59
|
}
|
|
48
60
|
function ConversationUioToJSON(json) {
|
|
@@ -54,7 +66,15 @@ function ConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
66
|
}
|
|
55
67
|
return {
|
|
56
68
|
'id': value['id'],
|
|
57
|
-
'
|
|
58
|
-
'
|
|
69
|
+
'brainId': value['brainId'],
|
|
70
|
+
'agentId': value['agentId'],
|
|
71
|
+
'userId': value['userId'],
|
|
72
|
+
'customUserId': value['customUserId'],
|
|
73
|
+
'title': value['title'],
|
|
74
|
+
'messages': (value['messages'].map(ConversationMessagesInnerUio_1.ConversationMessagesInnerUioToJSON)),
|
|
75
|
+
'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioToJSON)),
|
|
76
|
+
'cost': value['cost'],
|
|
77
|
+
'createdAt': value['createdAt'],
|
|
78
|
+
'updatedAt': value['updatedAt'],
|
|
59
79
|
};
|
|
60
80
|
}
|
|
@@ -41,6 +41,12 @@ export interface FlowContentsUio {
|
|
|
41
41
|
* @memberof FlowContentsUio
|
|
42
42
|
*/
|
|
43
43
|
instructions?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<string>}
|
|
47
|
+
* @memberof FlowContentsUio
|
|
48
|
+
*/
|
|
49
|
+
instructionItems?: Array<string>;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {ContentsToolsUio}
|
|
@@ -38,6 +38,7 @@ function FlowContentsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'text': json['text'] == null ? undefined : json['text'],
|
|
39
39
|
'texts': json['texts'] == null ? undefined : json['texts'],
|
|
40
40
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
41
|
+
'instructionItems': json['instructionItems'] == null ? undefined : json['instructionItems'],
|
|
41
42
|
'tools': json['tools'] == null ? undefined : (0, ContentsToolsUio_1.ContentsToolsUioFromJSON)(json['tools']),
|
|
42
43
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioFromJSON)),
|
|
43
44
|
};
|
|
@@ -54,6 +55,7 @@ function FlowContentsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
'text': value['text'],
|
|
55
56
|
'texts': value['texts'],
|
|
56
57
|
'instructions': value['instructions'],
|
|
58
|
+
'instructionItems': value['instructionItems'],
|
|
57
59
|
'tools': (0, ContentsToolsUio_1.ContentsToolsUioToJSON)(value['tools']),
|
|
58
60
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioToJSON)),
|
|
59
61
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { AdvancedFlowEditorNodePositionUio } from './AdvancedFlowEditorNodePositionUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowEditorNodeUio
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowEditorNodeUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FlowEditorNodeUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AdvancedFlowEditorNodePositionUio}
|
|
28
|
+
* @memberof FlowEditorNodeUio
|
|
29
|
+
*/
|
|
30
|
+
position: AdvancedFlowEditorNodePositionUio;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FlowEditorNodeUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFlowEditorNodeUio(value: object): value is FlowEditorNodeUio;
|
|
36
|
+
export declare function FlowEditorNodeUioFromJSON(json: any): FlowEditorNodeUio;
|
|
37
|
+
export declare function FlowEditorNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowEditorNodeUio;
|
|
38
|
+
export declare function FlowEditorNodeUioToJSON(json: any): FlowEditorNodeUio;
|
|
39
|
+
export declare function FlowEditorNodeUioToJSONTyped(value?: FlowEditorNodeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfFlowEditorNodeUio = instanceOfFlowEditorNodeUio;
|
|
17
|
+
exports.FlowEditorNodeUioFromJSON = FlowEditorNodeUioFromJSON;
|
|
18
|
+
exports.FlowEditorNodeUioFromJSONTyped = FlowEditorNodeUioFromJSONTyped;
|
|
19
|
+
exports.FlowEditorNodeUioToJSON = FlowEditorNodeUioToJSON;
|
|
20
|
+
exports.FlowEditorNodeUioToJSONTyped = FlowEditorNodeUioToJSONTyped;
|
|
21
|
+
const AdvancedFlowEditorNodePositionUio_1 = require("./AdvancedFlowEditorNodePositionUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FlowEditorNodeUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFlowEditorNodeUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('position' in value) || value['position'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function FlowEditorNodeUioFromJSON(json) {
|
|
33
|
+
return FlowEditorNodeUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function FlowEditorNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'position': (0, AdvancedFlowEditorNodePositionUio_1.AdvancedFlowEditorNodePositionUioFromJSON)(json['position']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function FlowEditorNodeUioToJSON(json) {
|
|
45
|
+
return FlowEditorNodeUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FlowEditorNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'position': (0, AdvancedFlowEditorNodePositionUio_1.AdvancedFlowEditorNodePositionUioToJSON)(value['position']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { FlowEditorNodeUio } from './FlowEditorNodeUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowEditorUio
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowEditorUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FlowEditorUio
|
|
23
|
+
*/
|
|
24
|
+
agentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<FlowEditorNodeUio>}
|
|
28
|
+
* @memberof FlowEditorUio
|
|
29
|
+
*/
|
|
30
|
+
nodes: Array<FlowEditorNodeUio>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FlowEditorUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFlowEditorUio(value: object): value is FlowEditorUio;
|
|
36
|
+
export declare function FlowEditorUioFromJSON(json: any): FlowEditorUio;
|
|
37
|
+
export declare function FlowEditorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowEditorUio;
|
|
38
|
+
export declare function FlowEditorUioToJSON(json: any): FlowEditorUio;
|
|
39
|
+
export declare function FlowEditorUioToJSONTyped(value?: FlowEditorUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfFlowEditorUio = instanceOfFlowEditorUio;
|
|
17
|
+
exports.FlowEditorUioFromJSON = FlowEditorUioFromJSON;
|
|
18
|
+
exports.FlowEditorUioFromJSONTyped = FlowEditorUioFromJSONTyped;
|
|
19
|
+
exports.FlowEditorUioToJSON = FlowEditorUioToJSON;
|
|
20
|
+
exports.FlowEditorUioToJSONTyped = FlowEditorUioToJSONTyped;
|
|
21
|
+
const FlowEditorNodeUio_1 = require("./FlowEditorNodeUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FlowEditorUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFlowEditorUio(value) {
|
|
26
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function FlowEditorUioFromJSON(json) {
|
|
33
|
+
return FlowEditorUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function FlowEditorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'agentId': json['agentId'],
|
|
41
|
+
'nodes': (json['nodes'].map(FlowEditorNodeUio_1.FlowEditorNodeUioFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function FlowEditorUioToJSON(json) {
|
|
45
|
+
return FlowEditorUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FlowEditorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'agentId': value['agentId'],
|
|
53
|
+
'nodes': (value['nodes'].map(FlowEditorNodeUio_1.FlowEditorNodeUioToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { FlowEditorNodeUio } from './FlowEditorNodeUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowEditorUpdateRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowEditorUpdateRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<FlowEditorNodeUio>}
|
|
22
|
+
* @memberof FlowEditorUpdateRequestUio
|
|
23
|
+
*/
|
|
24
|
+
nodes: Array<FlowEditorNodeUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FlowEditorUpdateRequestUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfFlowEditorUpdateRequestUio(value: object): value is FlowEditorUpdateRequestUio;
|
|
30
|
+
export declare function FlowEditorUpdateRequestUioFromJSON(json: any): FlowEditorUpdateRequestUio;
|
|
31
|
+
export declare function FlowEditorUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowEditorUpdateRequestUio;
|
|
32
|
+
export declare function FlowEditorUpdateRequestUioToJSON(json: any): FlowEditorUpdateRequestUio;
|
|
33
|
+
export declare function FlowEditorUpdateRequestUioToJSONTyped(value?: FlowEditorUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfFlowEditorUpdateRequestUio = instanceOfFlowEditorUpdateRequestUio;
|
|
17
|
+
exports.FlowEditorUpdateRequestUioFromJSON = FlowEditorUpdateRequestUioFromJSON;
|
|
18
|
+
exports.FlowEditorUpdateRequestUioFromJSONTyped = FlowEditorUpdateRequestUioFromJSONTyped;
|
|
19
|
+
exports.FlowEditorUpdateRequestUioToJSON = FlowEditorUpdateRequestUioToJSON;
|
|
20
|
+
exports.FlowEditorUpdateRequestUioToJSONTyped = FlowEditorUpdateRequestUioToJSONTyped;
|
|
21
|
+
const FlowEditorNodeUio_1 = require("./FlowEditorNodeUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FlowEditorUpdateRequestUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFlowEditorUpdateRequestUio(value) {
|
|
26
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function FlowEditorUpdateRequestUioFromJSON(json) {
|
|
31
|
+
return FlowEditorUpdateRequestUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function FlowEditorUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'nodes': (json['nodes'].map(FlowEditorNodeUio_1.FlowEditorNodeUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function FlowEditorUpdateRequestUioToJSON(json) {
|
|
42
|
+
return FlowEditorUpdateRequestUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function FlowEditorUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'nodes': (value['nodes'].map(FlowEditorNodeUio_1.FlowEditorNodeUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|