@breign/client 1.0.6 → 1.0.8
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/AgentRequestUio.d.ts +9 -0
- package/dist/models/AgentRequestUio.js +4 -0
- package/dist/models/AgentUio.d.ts +10 -3
- package/dist/models/AgentUio.js +4 -3
- package/dist/models/AppCreateRequestUio.d.ts +6 -0
- package/dist/models/AppCreateRequestUio.js +2 -0
- package/dist/models/AppSequencesInnerUio.d.ts +38 -0
- package/dist/models/AppSequencesInnerUio.js +50 -0
- package/dist/models/AppUio.d.ts +47 -3
- package/dist/models/AppUio.js +18 -10
- package/dist/models/ChatMessageUio.d.ts +3 -2
- package/dist/models/ChatMessageUio.js +3 -2
- package/dist/models/ChatUio.d.ts +6 -0
- package/dist/models/ChatUio.js +2 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationFlowNodeUio.js +55 -0
- package/dist/models/ConversationUio.d.ts +7 -0
- package/dist/models/ConversationUio.js +5 -0
- package/dist/models/FileCreationRequestUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.js +1 -3
- package/dist/models/FileCreationResponseUio.d.ts +18 -12
- package/dist/models/FileCreationResponseUio.js +10 -20
- package/dist/models/FileFormDataUio.d.ts +38 -0
- package/dist/models/FileFormDataUio.js +50 -0
- package/dist/models/FileUio.d.ts +25 -6
- package/dist/models/FileUio.js +13 -18
- package/dist/models/FileWithDownloadUrlUio.d.ts +25 -6
- package/dist/models/FileWithDownloadUrlUio.js +13 -18
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
- package/dist/models/KnowledgeBaseUio.d.ts +132 -0
- package/dist/models/KnowledgeBaseUio.js +90 -0
- package/dist/models/ModelAgentUio.d.ts +159 -0
- package/dist/models/ModelAgentUio.js +112 -0
- package/dist/models/OrganizationUio.d.ts +0 -9
- package/dist/models/OrganizationUio.js +0 -6
- package/dist/models/UserUio.d.ts +56 -1
- package/dist/models/UserUio.js +21 -4
- package/dist/models/UserUserUio.d.ts +32 -0
- package/dist/models/UserUserUio.js +50 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/dist/openapi.json +357 -44
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AgentModuleUio } from './AgentModuleUio';
|
|
12
13
|
import type { PersonaUio } from './PersonaUio';
|
|
13
14
|
import type { EngineUio } from './EngineUio';
|
|
14
15
|
import type { PromptInitUio } from './PromptInitUio';
|
|
@@ -103,6 +104,14 @@ export interface AgentRequestUio {
|
|
|
103
104
|
* @memberof AgentRequestUio
|
|
104
105
|
*/
|
|
105
106
|
isActivated?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {{ [key: string]: AgentModuleUio; }}
|
|
110
|
+
* @memberof AgentRequestUio
|
|
111
|
+
*/
|
|
112
|
+
modules?: {
|
|
113
|
+
[key: string]: AgentModuleUio;
|
|
114
|
+
};
|
|
106
115
|
}
|
|
107
116
|
/**
|
|
108
117
|
* Check if a given object implements the AgentRequestUio interface.
|
|
@@ -18,6 +18,8 @@ exports.AgentRequestUioFromJSON = AgentRequestUioFromJSON;
|
|
|
18
18
|
exports.AgentRequestUioFromJSONTyped = AgentRequestUioFromJSONTyped;
|
|
19
19
|
exports.AgentRequestUioToJSON = AgentRequestUioToJSON;
|
|
20
20
|
exports.AgentRequestUioToJSONTyped = AgentRequestUioToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const AgentModuleUio_1 = require("./AgentModuleUio");
|
|
21
23
|
const PersonaUio_1 = require("./PersonaUio");
|
|
22
24
|
const EngineUio_1 = require("./EngineUio");
|
|
23
25
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
@@ -58,6 +60,7 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
59
61
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
60
62
|
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
63
|
+
'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
function AgentRequestUioToJSON(json) {
|
|
@@ -82,5 +85,6 @@ function AgentRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
85
|
'picture': value['picture'],
|
|
83
86
|
'createdAt': value['createdAt'],
|
|
84
87
|
'isActivated': value['isActivated'],
|
|
88
|
+
'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
85
89
|
};
|
|
86
90
|
}
|
|
@@ -14,7 +14,6 @@ import type { AgentToolUio } from './AgentToolUio';
|
|
|
14
14
|
import type { PersonaUio } from './PersonaUio';
|
|
15
15
|
import type { EngineUio } from './EngineUio';
|
|
16
16
|
import type { PromptInitUio } from './PromptInitUio';
|
|
17
|
-
import type { AgentKnowledgeBaseUio } from './AgentKnowledgeBaseUio';
|
|
18
17
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
@@ -56,10 +55,10 @@ export interface AgentUio {
|
|
|
56
55
|
tools?: Array<AgentToolUio>;
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
|
-
* @type {Array<
|
|
58
|
+
* @type {Array<string>}
|
|
60
59
|
* @memberof AgentUio
|
|
61
60
|
*/
|
|
62
|
-
|
|
61
|
+
knowledgeBaseIds?: Array<string>;
|
|
63
62
|
/**
|
|
64
63
|
*
|
|
65
64
|
* @type {PersonaUio}
|
|
@@ -176,6 +175,14 @@ export interface AgentUio {
|
|
|
176
175
|
* @memberof AgentUio
|
|
177
176
|
*/
|
|
178
177
|
agentType?: AgentTypeUio;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {{ [key: string]: any; }}
|
|
181
|
+
* @memberof AgentUio
|
|
182
|
+
*/
|
|
183
|
+
favoriteOutfit?: {
|
|
184
|
+
[key: string]: any;
|
|
185
|
+
};
|
|
179
186
|
}
|
|
180
187
|
/**
|
|
181
188
|
* Check if a given object implements the AgentUio interface.
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -23,7 +23,6 @@ const AgentToolUio_1 = require("./AgentToolUio");
|
|
|
23
23
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
24
|
const EngineUio_1 = require("./EngineUio");
|
|
25
25
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
26
|
-
const AgentKnowledgeBaseUio_1 = require("./AgentKnowledgeBaseUio");
|
|
27
26
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
28
27
|
/**
|
|
29
28
|
* Check if a given object implements the AgentUio interface.
|
|
@@ -56,7 +55,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
55
|
'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
57
56
|
'modules': json['modules'],
|
|
58
57
|
'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
|
|
59
|
-
'
|
|
58
|
+
'knowledgeBaseIds': json['knowledgeBaseIds'] == null ? undefined : json['knowledgeBaseIds'],
|
|
60
59
|
'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
61
60
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
62
61
|
'flow': json['flow'] == null ? undefined : json['flow'],
|
|
@@ -76,6 +75,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
75
|
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
77
76
|
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
78
77
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
78
|
+
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function AgentUioToJSON(json) {
|
|
@@ -91,7 +91,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
91
|
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
92
92
|
'modules': value['modules'],
|
|
93
93
|
'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
|
|
94
|
-
'
|
|
94
|
+
'knowledgeBaseIds': value['knowledgeBaseIds'],
|
|
95
95
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
96
96
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
97
97
|
'flow': value['flow'],
|
|
@@ -111,5 +111,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
111
111
|
'isTemplate': value['isTemplate'],
|
|
112
112
|
'deleted': value['deleted'],
|
|
113
113
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
114
|
+
'favoriteOutfit': value['favoriteOutfit'],
|
|
114
115
|
};
|
|
115
116
|
}
|
|
@@ -76,6 +76,12 @@ export interface AppCreateRequestUio {
|
|
|
76
76
|
* @memberof AppCreateRequestUio
|
|
77
77
|
*/
|
|
78
78
|
connected?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AppCreateRequestUio
|
|
83
|
+
*/
|
|
84
|
+
type?: string;
|
|
79
85
|
}
|
|
80
86
|
/**
|
|
81
87
|
* Check if a given object implements the AppCreateRequestUio interface.
|
|
@@ -49,6 +49,7 @@ function AppCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'voiceModelId': json['voiceModelId'] == null ? undefined : json['voiceModelId'],
|
|
50
50
|
'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
|
|
51
51
|
'connected': json['connected'] == null ? undefined : json['connected'],
|
|
52
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
function AppCreateRequestUioToJSON(json) {
|
|
@@ -69,5 +70,6 @@ function AppCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
70
|
'voiceModelId': value['voiceModelId'],
|
|
70
71
|
'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
|
|
71
72
|
'connected': value['connected'],
|
|
73
|
+
'type': value['type'],
|
|
72
74
|
};
|
|
73
75
|
}
|
|
@@ -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 AppSequencesInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppSequencesInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppSequencesInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppSequencesInnerUio
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AppSequencesInnerUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAppSequencesInnerUio(value: object): value is AppSequencesInnerUio;
|
|
35
|
+
export declare function AppSequencesInnerUioFromJSON(json: any): AppSequencesInnerUio;
|
|
36
|
+
export declare function AppSequencesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppSequencesInnerUio;
|
|
37
|
+
export declare function AppSequencesInnerUioToJSON(json: any): AppSequencesInnerUio;
|
|
38
|
+
export declare function AppSequencesInnerUioToJSONTyped(value?: AppSequencesInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAppSequencesInnerUio = instanceOfAppSequencesInnerUio;
|
|
17
|
+
exports.AppSequencesInnerUioFromJSON = AppSequencesInnerUioFromJSON;
|
|
18
|
+
exports.AppSequencesInnerUioFromJSONTyped = AppSequencesInnerUioFromJSONTyped;
|
|
19
|
+
exports.AppSequencesInnerUioToJSON = AppSequencesInnerUioToJSON;
|
|
20
|
+
exports.AppSequencesInnerUioToJSONTyped = AppSequencesInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppSequencesInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppSequencesInnerUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AppSequencesInnerUioFromJSON(json) {
|
|
28
|
+
return AppSequencesInnerUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AppSequencesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AppSequencesInnerUioToJSON(json) {
|
|
40
|
+
return AppSequencesInnerUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AppSequencesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/AppUio.d.ts
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppSequencesInnerUio } from './AppSequencesInnerUio';
|
|
12
13
|
import type { AppConfigurationUio } from './AppConfigurationUio';
|
|
14
|
+
import type { PersonaUio } from './PersonaUio';
|
|
13
15
|
import type { SimpleAgentUio } from './SimpleAgentUio';
|
|
14
16
|
import type { InstanceUio } from './InstanceUio';
|
|
15
17
|
import type { LipsyncUio } from './LipsyncUio';
|
|
@@ -43,7 +45,13 @@ export interface AppUio {
|
|
|
43
45
|
* @type {SimpleAgentUio}
|
|
44
46
|
* @memberof AppUio
|
|
45
47
|
*/
|
|
46
|
-
agent
|
|
48
|
+
agent?: SimpleAgentUio;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<AppSequencesInnerUio>}
|
|
52
|
+
* @memberof AppUio
|
|
53
|
+
*/
|
|
54
|
+
sequences?: Array<AppSequencesInnerUio>;
|
|
47
55
|
/**
|
|
48
56
|
*
|
|
49
57
|
* @type {string}
|
|
@@ -86,6 +94,14 @@ export interface AppUio {
|
|
|
86
94
|
* @memberof AppUio
|
|
87
95
|
*/
|
|
88
96
|
voiceModelId: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {{ [key: string]: string; }}
|
|
100
|
+
* @memberof AppUio
|
|
101
|
+
*/
|
|
102
|
+
voice?: {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
};
|
|
89
105
|
/**
|
|
90
106
|
*
|
|
91
107
|
* @type {LipsyncUio}
|
|
@@ -103,13 +119,13 @@ export interface AppUio {
|
|
|
103
119
|
* @type {boolean}
|
|
104
120
|
* @memberof AppUio
|
|
105
121
|
*/
|
|
106
|
-
connected
|
|
122
|
+
connected?: boolean;
|
|
107
123
|
/**
|
|
108
124
|
*
|
|
109
125
|
* @type {Array<InstanceUio>}
|
|
110
126
|
* @memberof AppUio
|
|
111
127
|
*/
|
|
112
|
-
instances
|
|
128
|
+
instances?: Array<InstanceUio>;
|
|
113
129
|
/**
|
|
114
130
|
*
|
|
115
131
|
* @type {string}
|
|
@@ -128,6 +144,34 @@ export interface AppUio {
|
|
|
128
144
|
* @memberof AppUio
|
|
129
145
|
*/
|
|
130
146
|
disableFillers?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof AppUio
|
|
151
|
+
*/
|
|
152
|
+
type?: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {{ [key: string]: string; }}
|
|
156
|
+
* @memberof AppUio
|
|
157
|
+
*/
|
|
158
|
+
promptInit?: {
|
|
159
|
+
[key: string]: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {PersonaUio}
|
|
164
|
+
* @memberof AppUio
|
|
165
|
+
*/
|
|
166
|
+
persona?: PersonaUio;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {{ [key: string]: string; }}
|
|
170
|
+
* @memberof AppUio
|
|
171
|
+
*/
|
|
172
|
+
favoriteOutfit?: {
|
|
173
|
+
[key: string]: string;
|
|
174
|
+
};
|
|
131
175
|
}
|
|
132
176
|
/**
|
|
133
177
|
* Check if a given object implements the AppUio interface.
|
package/dist/models/AppUio.js
CHANGED
|
@@ -18,7 +18,9 @@ exports.AppUioFromJSON = AppUioFromJSON;
|
|
|
18
18
|
exports.AppUioFromJSONTyped = AppUioFromJSONTyped;
|
|
19
19
|
exports.AppUioToJSON = AppUioToJSON;
|
|
20
20
|
exports.AppUioToJSONTyped = AppUioToJSONTyped;
|
|
21
|
+
const AppSequencesInnerUio_1 = require("./AppSequencesInnerUio");
|
|
21
22
|
const AppConfigurationUio_1 = require("./AppConfigurationUio");
|
|
23
|
+
const PersonaUio_1 = require("./PersonaUio");
|
|
22
24
|
const SimpleAgentUio_1 = require("./SimpleAgentUio");
|
|
23
25
|
const InstanceUio_1 = require("./InstanceUio");
|
|
24
26
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
@@ -33,8 +35,6 @@ function instanceOfAppUio(value) {
|
|
|
33
35
|
return false;
|
|
34
36
|
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
35
37
|
return false;
|
|
36
|
-
if (!('agent' in value) || value['agent'] === undefined)
|
|
37
|
-
return false;
|
|
38
38
|
if (!('authSecret' in value) || value['authSecret'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('streamingEnabled' in value) || value['streamingEnabled'] === undefined)
|
|
@@ -45,10 +45,6 @@ function instanceOfAppUio(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('status' in value) || value['status'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
-
if (!('connected' in value) || value['connected'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('instances' in value) || value['instances'] === undefined)
|
|
51
|
-
return false;
|
|
52
48
|
return true;
|
|
53
49
|
}
|
|
54
50
|
function AppUioFromJSON(json) {
|
|
@@ -62,7 +58,8 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
58
|
'id': json['id'],
|
|
63
59
|
'name': json['name'],
|
|
64
60
|
'agentId': json['agentId'],
|
|
65
|
-
'agent': (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
|
|
61
|
+
'agent': json['agent'] == null ? undefined : (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
|
|
62
|
+
'sequences': json['sequences'] == null ? undefined : (json['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioFromJSON)),
|
|
66
63
|
'authSecret': json['authSecret'],
|
|
67
64
|
'streamingEnabled': json['streamingEnabled'],
|
|
68
65
|
'voiceProvider': json['voiceProvider'] == null ? undefined : json['voiceProvider'],
|
|
@@ -70,13 +67,18 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
67
|
'voiceProviderOrganization': json['voiceProviderOrganization'] == null ? undefined : json['voiceProviderOrganization'],
|
|
71
68
|
'voiceId': json['voiceId'],
|
|
72
69
|
'voiceModelId': json['voiceModelId'],
|
|
70
|
+
'voice': json['voice'] == null ? undefined : json['voice'],
|
|
73
71
|
'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
|
|
74
72
|
'status': (0, AppStatusUio_1.AppStatusUioFromJSON)(json['status']),
|
|
75
|
-
'connected': json['connected'],
|
|
76
|
-
'instances': (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
|
|
73
|
+
'connected': json['connected'] == null ? undefined : json['connected'],
|
|
74
|
+
'instances': json['instances'] == null ? undefined : (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
|
|
77
75
|
'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
|
|
78
76
|
'appConfiguration': json['appConfiguration'] == null ? undefined : (0, AppConfigurationUio_1.AppConfigurationUioFromJSON)(json['appConfiguration']),
|
|
79
77
|
'disableFillers': json['disableFillers'] == null ? undefined : json['disableFillers'],
|
|
78
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
79
|
+
'promptInit': json['promptInit'] == null ? undefined : json['promptInit'],
|
|
80
|
+
'persona': json['persona'] == null ? undefined : (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
81
|
+
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
84
|
function AppUioToJSON(json) {
|
|
@@ -91,6 +93,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
93
|
'name': value['name'],
|
|
92
94
|
'agentId': value['agentId'],
|
|
93
95
|
'agent': (0, SimpleAgentUio_1.SimpleAgentUioToJSON)(value['agent']),
|
|
96
|
+
'sequences': value['sequences'] == null ? undefined : (value['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioToJSON)),
|
|
94
97
|
'authSecret': value['authSecret'],
|
|
95
98
|
'streamingEnabled': value['streamingEnabled'],
|
|
96
99
|
'voiceProvider': value['voiceProvider'],
|
|
@@ -98,12 +101,17 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
98
101
|
'voiceProviderOrganization': value['voiceProviderOrganization'],
|
|
99
102
|
'voiceId': value['voiceId'],
|
|
100
103
|
'voiceModelId': value['voiceModelId'],
|
|
104
|
+
'voice': value['voice'],
|
|
101
105
|
'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
|
|
102
106
|
'status': (0, AppStatusUio_1.AppStatusUioToJSON)(value['status']),
|
|
103
107
|
'connected': value['connected'],
|
|
104
|
-
'instances': (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
|
|
108
|
+
'instances': value['instances'] == null ? undefined : (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
|
|
105
109
|
'profilePicture': value['profilePicture'],
|
|
106
110
|
'appConfiguration': (0, AppConfigurationUio_1.AppConfigurationUioToJSON)(value['appConfiguration']),
|
|
107
111
|
'disableFillers': value['disableFillers'],
|
|
112
|
+
'type': value['type'],
|
|
113
|
+
'promptInit': value['promptInit'],
|
|
114
|
+
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
115
|
+
'favoriteOutfit': value['favoriteOutfit'],
|
|
108
116
|
};
|
|
109
117
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolActionUio } from './ToolActionUio';
|
|
13
|
+
import type { AgentFlowUio } from './AgentFlowUio';
|
|
13
14
|
import type { SuggestionUio } from './SuggestionUio';
|
|
14
15
|
import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
15
16
|
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
@@ -65,10 +66,10 @@ export interface ChatMessageUio {
|
|
|
65
66
|
suggestions?: Array<SuggestionUio>;
|
|
66
67
|
/**
|
|
67
68
|
*
|
|
68
|
-
* @type {
|
|
69
|
+
* @type {AgentFlowUio}
|
|
69
70
|
* @memberof ChatMessageUio
|
|
70
71
|
*/
|
|
71
|
-
flowNode?:
|
|
72
|
+
flowNode?: AgentFlowUio;
|
|
72
73
|
/**
|
|
73
74
|
*
|
|
74
75
|
* @type {boolean}
|
|
@@ -19,6 +19,7 @@ exports.ChatMessageUioFromJSONTyped = ChatMessageUioFromJSONTyped;
|
|
|
19
19
|
exports.ChatMessageUioToJSON = ChatMessageUioToJSON;
|
|
20
20
|
exports.ChatMessageUioToJSONTyped = ChatMessageUioToJSONTyped;
|
|
21
21
|
const ToolActionUio_1 = require("./ToolActionUio");
|
|
22
|
+
const AgentFlowUio_1 = require("./AgentFlowUio");
|
|
22
23
|
const SuggestionUio_1 = require("./SuggestionUio");
|
|
23
24
|
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
24
25
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
@@ -53,7 +54,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
54
55
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
55
56
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
56
|
-
'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
|
|
57
|
+
'flowNode': json['flowNode'] == null ? undefined : (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
|
|
57
58
|
'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
|
|
58
59
|
'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
|
|
59
60
|
'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
|
|
@@ -79,7 +80,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'confirmationLink': value['confirmationLink'],
|
|
80
81
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
81
82
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
82
|
-
'flowNode': value['flowNode'],
|
|
83
|
+
'flowNode': (0, AgentFlowUio_1.AgentFlowUioToJSON)(value['flowNode']),
|
|
83
84
|
'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
|
|
84
85
|
'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
|
|
85
86
|
'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
|
package/dist/models/ChatUio.d.ts
CHANGED
package/dist/models/ChatUio.js
CHANGED
|
@@ -49,6 +49,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
'id': json['id'],
|
|
52
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
52
53
|
'lang': json['lang'],
|
|
53
54
|
'agentId': json['agentId'],
|
|
54
55
|
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
@@ -71,6 +72,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
}
|
|
72
73
|
return {
|
|
73
74
|
'id': value['id'],
|
|
75
|
+
'appId': value['appId'],
|
|
74
76
|
'lang': value['lang'],
|
|
75
77
|
'agentId': value['agentId'],
|
|
76
78
|
'instanceId': value['instanceId'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConversationFlowNodeEntrypointsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationFlowNodeEntrypointsUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ConversationFlowNodeEntrypointsUio
|
|
22
|
+
*/
|
|
23
|
+
intents?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ConversationFlowNodeEntrypointsUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfConversationFlowNodeEntrypointsUio(value: object): value is ConversationFlowNodeEntrypointsUio;
|
|
29
|
+
export declare function ConversationFlowNodeEntrypointsUioFromJSON(json: any): ConversationFlowNodeEntrypointsUio;
|
|
30
|
+
export declare function ConversationFlowNodeEntrypointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationFlowNodeEntrypointsUio;
|
|
31
|
+
export declare function ConversationFlowNodeEntrypointsUioToJSON(json: any): ConversationFlowNodeEntrypointsUio;
|
|
32
|
+
export declare function ConversationFlowNodeEntrypointsUioToJSONTyped(value?: ConversationFlowNodeEntrypointsUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfConversationFlowNodeEntrypointsUio = instanceOfConversationFlowNodeEntrypointsUio;
|
|
17
|
+
exports.ConversationFlowNodeEntrypointsUioFromJSON = ConversationFlowNodeEntrypointsUioFromJSON;
|
|
18
|
+
exports.ConversationFlowNodeEntrypointsUioFromJSONTyped = ConversationFlowNodeEntrypointsUioFromJSONTyped;
|
|
19
|
+
exports.ConversationFlowNodeEntrypointsUioToJSON = ConversationFlowNodeEntrypointsUioToJSON;
|
|
20
|
+
exports.ConversationFlowNodeEntrypointsUioToJSONTyped = ConversationFlowNodeEntrypointsUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConversationFlowNodeEntrypointsUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConversationFlowNodeEntrypointsUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ConversationFlowNodeEntrypointsUioFromJSON(json) {
|
|
28
|
+
return ConversationFlowNodeEntrypointsUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ConversationFlowNodeEntrypointsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'intents': json['intents'] == null ? undefined : json['intents'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ConversationFlowNodeEntrypointsUioToJSON(json) {
|
|
39
|
+
return ConversationFlowNodeEntrypointsUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ConversationFlowNodeEntrypointsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'intents': value['intents'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ConversationFlowNodeEntrypointsUio } from './ConversationFlowNodeEntrypointsUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationFlowNodeUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationFlowNodeUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationFlowNodeUio
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {any}
|
|
28
|
+
* @memberof ConversationFlowNodeUio
|
|
29
|
+
*/
|
|
30
|
+
contents?: any | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ConversationFlowNodeEntrypointsUio}
|
|
34
|
+
* @memberof ConversationFlowNodeUio
|
|
35
|
+
*/
|
|
36
|
+
entrypoints?: ConversationFlowNodeEntrypointsUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {any}
|
|
40
|
+
* @memberof ConversationFlowNodeUio
|
|
41
|
+
*/
|
|
42
|
+
exits?: any | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ConversationFlowNodeUio interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfConversationFlowNodeUio(value: object): value is ConversationFlowNodeUio;
|
|
48
|
+
export declare function ConversationFlowNodeUioFromJSON(json: any): ConversationFlowNodeUio;
|
|
49
|
+
export declare function ConversationFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationFlowNodeUio;
|
|
50
|
+
export declare function ConversationFlowNodeUioToJSON(json: any): ConversationFlowNodeUio;
|
|
51
|
+
export declare function ConversationFlowNodeUioToJSONTyped(value?: ConversationFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
|