@breign/client 1.0.6 → 1.0.7

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.
Files changed (40) hide show
  1. package/dist/models/AgentRequestUio.d.ts +9 -0
  2. package/dist/models/AgentRequestUio.js +4 -0
  3. package/dist/models/AgentUio.d.ts +10 -3
  4. package/dist/models/AgentUio.js +4 -3
  5. package/dist/models/AppCreateRequestUio.d.ts +6 -0
  6. package/dist/models/AppCreateRequestUio.js +2 -0
  7. package/dist/models/AppSequencesInnerUio.d.ts +38 -0
  8. package/dist/models/AppSequencesInnerUio.js +50 -0
  9. package/dist/models/AppUio.d.ts +24 -3
  10. package/dist/models/AppUio.js +11 -10
  11. package/dist/models/ChatMessageUio.d.ts +3 -2
  12. package/dist/models/ChatMessageUio.js +3 -2
  13. package/dist/models/ChatUio.d.ts +6 -0
  14. package/dist/models/ChatUio.js +2 -0
  15. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
  16. package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
  17. package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
  18. package/dist/models/ConversationFlowNodeUio.js +55 -0
  19. package/dist/models/ConversationUio.d.ts +7 -0
  20. package/dist/models/ConversationUio.js +5 -0
  21. package/dist/models/FileCreationRequestUio.d.ts +1 -1
  22. package/dist/models/FileCreationRequestUio.js +1 -3
  23. package/dist/models/FileCreationResponseUio.d.ts +6 -0
  24. package/dist/models/FileCreationResponseUio.js +2 -0
  25. package/dist/models/FileUio.d.ts +6 -0
  26. package/dist/models/FileUio.js +2 -0
  27. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  28. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  29. package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
  30. package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
  31. package/dist/models/KnowledgeBaseUio.d.ts +124 -0
  32. package/dist/models/KnowledgeBaseUio.js +88 -0
  33. package/dist/models/OrganizationUio.d.ts +0 -9
  34. package/dist/models/OrganizationUio.js +0 -6
  35. package/dist/models/index.d.ts +5 -1
  36. package/dist/models/index.js +5 -1
  37. package/dist/openapi.json +200 -41
  38. package/package.json +1 -1
  39. package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
  40. 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<AgentKnowledgeBaseUio>}
58
+ * @type {Array<string>}
60
59
  * @memberof AgentUio
61
60
  */
62
- knowledgeBases?: Array<AgentKnowledgeBaseUio>;
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.
@@ -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
- 'knowledgeBases': json['knowledgeBases'] == null ? undefined : (json['knowledgeBases'].map(AgentKnowledgeBaseUio_1.AgentKnowledgeBaseUioFromJSON)),
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
- 'knowledgeBases': value['knowledgeBases'] == null ? undefined : (value['knowledgeBases'].map(AgentKnowledgeBaseUio_1.AgentKnowledgeBaseUioToJSON)),
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
+ }
@@ -9,6 +9,7 @@
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';
13
14
  import type { SimpleAgentUio } from './SimpleAgentUio';
14
15
  import type { InstanceUio } from './InstanceUio';
@@ -43,7 +44,13 @@ export interface AppUio {
43
44
  * @type {SimpleAgentUio}
44
45
  * @memberof AppUio
45
46
  */
46
- agent: SimpleAgentUio;
47
+ agent?: SimpleAgentUio;
48
+ /**
49
+ *
50
+ * @type {Array<AppSequencesInnerUio>}
51
+ * @memberof AppUio
52
+ */
53
+ sequences?: Array<AppSequencesInnerUio>;
47
54
  /**
48
55
  *
49
56
  * @type {string}
@@ -86,6 +93,14 @@ export interface AppUio {
86
93
  * @memberof AppUio
87
94
  */
88
95
  voiceModelId: string;
96
+ /**
97
+ *
98
+ * @type {{ [key: string]: string; }}
99
+ * @memberof AppUio
100
+ */
101
+ voice?: {
102
+ [key: string]: string;
103
+ };
89
104
  /**
90
105
  *
91
106
  * @type {LipsyncUio}
@@ -103,13 +118,13 @@ export interface AppUio {
103
118
  * @type {boolean}
104
119
  * @memberof AppUio
105
120
  */
106
- connected: boolean;
121
+ connected?: boolean;
107
122
  /**
108
123
  *
109
124
  * @type {Array<InstanceUio>}
110
125
  * @memberof AppUio
111
126
  */
112
- instances: Array<InstanceUio>;
127
+ instances?: Array<InstanceUio>;
113
128
  /**
114
129
  *
115
130
  * @type {string}
@@ -128,6 +143,12 @@ export interface AppUio {
128
143
  * @memberof AppUio
129
144
  */
130
145
  disableFillers?: boolean;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof AppUio
150
+ */
151
+ type?: string;
131
152
  }
132
153
  /**
133
154
  * Check if a given object implements the AppUio interface.
@@ -18,6 +18,7 @@ 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");
22
23
  const SimpleAgentUio_1 = require("./SimpleAgentUio");
23
24
  const InstanceUio_1 = require("./InstanceUio");
@@ -33,8 +34,6 @@ function instanceOfAppUio(value) {
33
34
  return false;
34
35
  if (!('agentId' in value) || value['agentId'] === undefined)
35
36
  return false;
36
- if (!('agent' in value) || value['agent'] === undefined)
37
- return false;
38
37
  if (!('authSecret' in value) || value['authSecret'] === undefined)
39
38
  return false;
40
39
  if (!('streamingEnabled' in value) || value['streamingEnabled'] === undefined)
@@ -45,10 +44,6 @@ function instanceOfAppUio(value) {
45
44
  return false;
46
45
  if (!('status' in value) || value['status'] === undefined)
47
46
  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
47
  return true;
53
48
  }
54
49
  function AppUioFromJSON(json) {
@@ -62,7 +57,8 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
62
57
  'id': json['id'],
63
58
  'name': json['name'],
64
59
  'agentId': json['agentId'],
65
- 'agent': (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
60
+ 'agent': json['agent'] == null ? undefined : (0, SimpleAgentUio_1.SimpleAgentUioFromJSON)(json['agent']),
61
+ 'sequences': json['sequences'] == null ? undefined : (json['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioFromJSON)),
66
62
  'authSecret': json['authSecret'],
67
63
  'streamingEnabled': json['streamingEnabled'],
68
64
  'voiceProvider': json['voiceProvider'] == null ? undefined : json['voiceProvider'],
@@ -70,13 +66,15 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
70
66
  'voiceProviderOrganization': json['voiceProviderOrganization'] == null ? undefined : json['voiceProviderOrganization'],
71
67
  'voiceId': json['voiceId'],
72
68
  'voiceModelId': json['voiceModelId'],
69
+ 'voice': json['voice'] == null ? undefined : json['voice'],
73
70
  'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
74
71
  'status': (0, AppStatusUio_1.AppStatusUioFromJSON)(json['status']),
75
- 'connected': json['connected'],
76
- 'instances': (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
72
+ 'connected': json['connected'] == null ? undefined : json['connected'],
73
+ 'instances': json['instances'] == null ? undefined : (json['instances'].map(InstanceUio_1.InstanceUioFromJSON)),
77
74
  'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
78
75
  'appConfiguration': json['appConfiguration'] == null ? undefined : (0, AppConfigurationUio_1.AppConfigurationUioFromJSON)(json['appConfiguration']),
79
76
  'disableFillers': json['disableFillers'] == null ? undefined : json['disableFillers'],
77
+ 'type': json['type'] == null ? undefined : json['type'],
80
78
  };
81
79
  }
82
80
  function AppUioToJSON(json) {
@@ -91,6 +89,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
91
89
  'name': value['name'],
92
90
  'agentId': value['agentId'],
93
91
  'agent': (0, SimpleAgentUio_1.SimpleAgentUioToJSON)(value['agent']),
92
+ 'sequences': value['sequences'] == null ? undefined : (value['sequences'].map(AppSequencesInnerUio_1.AppSequencesInnerUioToJSON)),
94
93
  'authSecret': value['authSecret'],
95
94
  'streamingEnabled': value['streamingEnabled'],
96
95
  'voiceProvider': value['voiceProvider'],
@@ -98,12 +97,14 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
98
97
  'voiceProviderOrganization': value['voiceProviderOrganization'],
99
98
  'voiceId': value['voiceId'],
100
99
  'voiceModelId': value['voiceModelId'],
100
+ 'voice': value['voice'],
101
101
  'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
102
102
  'status': (0, AppStatusUio_1.AppStatusUioToJSON)(value['status']),
103
103
  'connected': value['connected'],
104
- 'instances': (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
104
+ 'instances': value['instances'] == null ? undefined : (value['instances'].map(InstanceUio_1.InstanceUioToJSON)),
105
105
  'profilePicture': value['profilePicture'],
106
106
  'appConfiguration': (0, AppConfigurationUio_1.AppConfigurationUioToJSON)(value['appConfiguration']),
107
107
  'disableFillers': value['disableFillers'],
108
+ 'type': value['type'],
108
109
  };
109
110
  }
@@ -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 {string}
69
+ * @type {AgentFlowUio}
69
70
  * @memberof ChatMessageUio
70
71
  */
71
- flowNode?: string;
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'],
@@ -23,6 +23,12 @@ export interface ChatUio {
23
23
  * @memberof ChatUio
24
24
  */
25
25
  id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ChatUio
30
+ */
31
+ appId?: string;
26
32
  /**
27
33
  *
28
34
  * @type {string}
@@ -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;
@@ -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.instanceOfConversationFlowNodeUio = instanceOfConversationFlowNodeUio;
17
+ exports.ConversationFlowNodeUioFromJSON = ConversationFlowNodeUioFromJSON;
18
+ exports.ConversationFlowNodeUioFromJSONTyped = ConversationFlowNodeUioFromJSONTyped;
19
+ exports.ConversationFlowNodeUioToJSON = ConversationFlowNodeUioToJSON;
20
+ exports.ConversationFlowNodeUioToJSONTyped = ConversationFlowNodeUioToJSONTyped;
21
+ const ConversationFlowNodeEntrypointsUio_1 = require("./ConversationFlowNodeEntrypointsUio");
22
+ /**
23
+ * Check if a given object implements the ConversationFlowNodeUio interface.
24
+ */
25
+ function instanceOfConversationFlowNodeUio(value) {
26
+ return true;
27
+ }
28
+ function ConversationFlowNodeUioFromJSON(json) {
29
+ return ConversationFlowNodeUioFromJSONTyped(json, false);
30
+ }
31
+ function ConversationFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ 'contents': json['contents'] == null ? undefined : json['contents'],
38
+ 'entrypoints': json['entrypoints'] == null ? undefined : (0, ConversationFlowNodeEntrypointsUio_1.ConversationFlowNodeEntrypointsUioFromJSON)(json['entrypoints']),
39
+ 'exits': json['exits'] == null ? undefined : json['exits'],
40
+ };
41
+ }
42
+ function ConversationFlowNodeUioToJSON(json) {
43
+ return ConversationFlowNodeUioToJSONTyped(json, false);
44
+ }
45
+ function ConversationFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'contents': value['contents'],
52
+ 'entrypoints': (0, ConversationFlowNodeEntrypointsUio_1.ConversationFlowNodeEntrypointsUioToJSON)(value['entrypoints']),
53
+ 'exits': value['exits'],
54
+ };
55
+ }