@breign/client 1.0.75 → 1.0.77

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 (104) hide show
  1. package/dist/apis/AgentApi.d.ts +95 -3
  2. package/dist/apis/AgentApi.js +218 -5
  3. package/dist/apis/AppApi.d.ts +75 -4
  4. package/dist/apis/AppApi.js +174 -7
  5. package/dist/apis/KnowledgeApi.d.ts +27 -1
  6. package/dist/apis/KnowledgeApi.js +60 -0
  7. package/dist/apis/OrganizationsApi.d.ts +67 -1
  8. package/dist/apis/OrganizationsApi.js +156 -0
  9. package/dist/apis/PromptsApi.d.ts +3 -3
  10. package/dist/apis/PromptsApi.js +1 -1
  11. package/dist/apis/ToolsApi.d.ts +26 -1
  12. package/dist/apis/ToolsApi.js +59 -0
  13. package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
  14. package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
  15. package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
  16. package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
  17. package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
  18. package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
  19. package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
  20. package/dist/models/AdvancedFlowEditorUio.js +60 -0
  21. package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
  22. package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
  23. package/dist/models/AgentFlowCreateUio.d.ts +6 -0
  24. package/dist/models/AgentFlowCreateUio.js +2 -0
  25. package/dist/models/AgentFlowUio.d.ts +6 -0
  26. package/dist/models/AgentFlowUio.js +2 -0
  27. package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
  28. package/dist/models/AnimationCreateRequestUio.js +64 -0
  29. package/dist/models/AnimationUio.d.ts +56 -0
  30. package/dist/models/AnimationUio.js +64 -0
  31. package/dist/models/AppCommandsInnerUio.d.ts +46 -0
  32. package/dist/models/AppCommandsInnerUio.js +56 -0
  33. package/dist/models/AppConfigurationColorsUio.d.ts +68 -0
  34. package/dist/models/AppConfigurationColorsUio.js +60 -0
  35. package/dist/models/AppConfigurationLanguageInnerUio.d.ts +38 -0
  36. package/dist/models/AppConfigurationLanguageInnerUio.js +50 -0
  37. package/dist/models/AppConfigurationTextIntroIOSViewUio.d.ts +90 -0
  38. package/dist/models/AppConfigurationTextIntroIOSViewUio.js +62 -0
  39. package/dist/models/AppConfigurationTextSpeakIOSViewUio.d.ts +82 -0
  40. package/dist/models/AppConfigurationTextSpeakIOSViewUio.js +60 -0
  41. package/dist/models/AppConfigurationTextUio.d.ts +40 -0
  42. package/dist/models/AppConfigurationTextUio.js +52 -0
  43. package/dist/models/AppConfigurationUio.d.ts +40 -2
  44. package/dist/models/AppConfigurationUio.js +17 -6
  45. package/dist/models/AppUio.d.ts +17 -3
  46. package/dist/models/AppUio.js +9 -3
  47. package/dist/models/AppUpdateRequestUio.d.ts +8 -0
  48. package/dist/models/AppUpdateRequestUio.js +2 -0
  49. package/dist/models/Conversation1Uio.d.ts +46 -0
  50. package/dist/models/Conversation1Uio.js +60 -0
  51. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
  52. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
  53. package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
  54. package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
  55. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
  56. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
  57. package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
  58. package/dist/models/ConversationMessagesInnerUio.js +73 -0
  59. package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
  60. package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
  61. package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
  62. package/dist/models/ConversationMetricsInnerUio.js +60 -0
  63. package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
  64. package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
  65. package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
  66. package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
  67. package/dist/models/ConversationUio.d.ts +56 -6
  68. package/dist/models/ConversationUio.js +27 -7
  69. package/dist/models/FlowContentsUio.d.ts +6 -0
  70. package/dist/models/FlowContentsUio.js +2 -0
  71. package/dist/models/FlowEditorNodeUio.d.ts +39 -0
  72. package/dist/models/FlowEditorNodeUio.js +55 -0
  73. package/dist/models/FlowEditorUio.d.ts +39 -0
  74. package/dist/models/FlowEditorUio.js +55 -0
  75. package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
  76. package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
  77. package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
  78. package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
  79. package/dist/models/OrganizationUio.d.ts +20 -0
  80. package/dist/models/OrganizationUio.js +10 -0
  81. package/dist/models/OrganizationUserUio.d.ts +38 -0
  82. package/dist/models/OrganizationUserUio.js +54 -0
  83. package/dist/models/RoleCreateRequestUio.d.ts +44 -0
  84. package/dist/models/RoleCreateRequestUio.js +56 -0
  85. package/dist/models/SequenceContentsUio.d.ts +38 -0
  86. package/dist/models/SequenceContentsUio.js +50 -0
  87. package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
  88. package/dist/models/SequenceCreateRequestUio.js +59 -0
  89. package/dist/models/SequenceUio.d.ts +45 -0
  90. package/dist/models/SequenceUio.js +59 -0
  91. package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
  92. package/dist/models/ToolUpdateRequestUio.js +56 -0
  93. package/dist/models/index.d.ts +32 -4
  94. package/dist/models/index.js +32 -4
  95. package/dist/openapi.json +1725 -214
  96. package/package.json +1 -1
  97. package/dist/models/AppConfigurationUpdateRequestUio.d.ts +0 -33
  98. package/dist/models/AppConfigurationUpdateRequestUio.js +0 -50
  99. package/dist/models/AppSequencesInnerUio.d.ts +0 -38
  100. package/dist/models/AppSequencesInnerUio.js +0 -50
  101. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
  102. package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
  103. package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
  104. package/dist/models/ConversationFlowNodeUio.js +0 -55
@@ -177,7 +177,7 @@ class PromptsApi extends runtime.BaseAPI {
177
177
  headers: headerParameters,
178
178
  query: queryParameters,
179
179
  }, initOverrides);
180
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConversationUioFromJSON)(jsonValue));
180
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.Conversation1UioFromJSON)(jsonValue));
181
181
  }
182
182
  /**
183
183
  * Retrieves details of a specific conversation including all messages
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio } from '../models/index';
13
+ import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
14
14
  export interface ConnectOAuth2ToolRequest {
15
15
  toolId: string;
16
16
  }
@@ -30,6 +30,9 @@ export interface CreateToolRequest {
30
30
  export interface DeleteToolRequest {
31
31
  toolId: string;
32
32
  }
33
+ export interface DisconnectOAuth2ToolRequest {
34
+ toolId: string;
35
+ }
33
36
  export interface GetToolSecureRequest {
34
37
  toolId: string;
35
38
  }
@@ -51,6 +54,10 @@ export interface SetToolTokenRequest {
51
54
  export interface SetupToolRequest {
52
55
  toolId: string;
53
56
  }
57
+ export interface UpdateToolRequest {
58
+ toolId: string;
59
+ toolUpdateRequestUio: ToolUpdateRequestUio;
60
+ }
54
61
  /**
55
62
  *
56
63
  */
@@ -101,6 +108,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
101
108
  * Delete a tool
102
109
  */
103
110
  deleteTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
111
+ /**
112
+ * Removes OAuth2 tokens/credentials from the specified tool
113
+ * Disconnect OAuth2 from a tool
114
+ */
115
+ disconnectOAuth2ToolRaw(requestParameters: DisconnectOAuth2ToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
116
+ /**
117
+ * Removes OAuth2 tokens/credentials from the specified tool
118
+ * Disconnect OAuth2 from a tool
119
+ */
120
+ disconnectOAuth2Tool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
121
  /**
105
122
  * Get a specific tool (UI-safe)
106
123
  */
@@ -145,4 +162,12 @@ export declare class ToolsApi extends runtime.BaseAPI {
145
162
  * Complete the setup of a tool (oauth2 configuration)
146
163
  */
147
164
  setupTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
165
+ /**
166
+ * Update a tool
167
+ */
168
+ updateToolRaw(requestParameters: UpdateToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
169
+ /**
170
+ * Update a tool
171
+ */
172
+ updateTool(toolId: string, toolUpdateRequestUio: ToolUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
148
173
  }
@@ -211,6 +211,34 @@ class ToolsApi extends runtime.BaseAPI {
211
211
  async deleteTool(toolId, initOverrides) {
212
212
  await this.deleteToolRaw({ toolId: toolId }, initOverrides);
213
213
  }
214
+ /**
215
+ * Removes OAuth2 tokens/credentials from the specified tool
216
+ * Disconnect OAuth2 from a tool
217
+ */
218
+ async disconnectOAuth2ToolRaw(requestParameters, initOverrides) {
219
+ if (requestParameters['toolId'] == null) {
220
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling disconnectOAuth2Tool().');
221
+ }
222
+ const queryParameters = {};
223
+ const headerParameters = {};
224
+ if (this.configuration && this.configuration.apiKey) {
225
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
226
+ }
227
+ const response = await this.request({
228
+ path: `/tools/{toolId}/oauth/disconnect`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
229
+ method: 'DELETE',
230
+ headers: headerParameters,
231
+ query: queryParameters,
232
+ }, initOverrides);
233
+ return new runtime.VoidApiResponse(response);
234
+ }
235
+ /**
236
+ * Removes OAuth2 tokens/credentials from the specified tool
237
+ * Disconnect OAuth2 from a tool
238
+ */
239
+ async disconnectOAuth2Tool(toolId, initOverrides) {
240
+ await this.disconnectOAuth2ToolRaw({ toolId: toolId }, initOverrides);
241
+ }
214
242
  /**
215
243
  * Get a specific tool (UI-safe)
216
244
  */
@@ -373,5 +401,36 @@ class ToolsApi extends runtime.BaseAPI {
373
401
  async setupTool(toolId, initOverrides) {
374
402
  await this.setupToolRaw({ toolId: toolId }, initOverrides);
375
403
  }
404
+ /**
405
+ * Update a tool
406
+ */
407
+ async updateToolRaw(requestParameters, initOverrides) {
408
+ if (requestParameters['toolId'] == null) {
409
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateTool().');
410
+ }
411
+ if (requestParameters['toolUpdateRequestUio'] == null) {
412
+ throw new runtime.RequiredError('toolUpdateRequestUio', 'Required parameter "toolUpdateRequestUio" was null or undefined when calling updateTool().');
413
+ }
414
+ const queryParameters = {};
415
+ const headerParameters = {};
416
+ headerParameters['Content-Type'] = 'application/json';
417
+ if (this.configuration && this.configuration.apiKey) {
418
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
419
+ }
420
+ const response = await this.request({
421
+ path: `/tools/{toolId}`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
422
+ method: 'PUT',
423
+ headers: headerParameters,
424
+ query: queryParameters,
425
+ body: (0, index_1.ToolUpdateRequestUioToJSON)(requestParameters['toolUpdateRequestUio']),
426
+ }, initOverrides);
427
+ return new runtime.VoidApiResponse(response);
428
+ }
429
+ /**
430
+ * Update a tool
431
+ */
432
+ async updateTool(toolId, toolUpdateRequestUio, initOverrides) {
433
+ await this.updateToolRaw({ toolId: toolId, toolUpdateRequestUio: toolUpdateRequestUio }, initOverrides);
434
+ }
376
435
  }
377
436
  exports.ToolsApi = ToolsApi;
@@ -0,0 +1,56 @@
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 AdvancedFlowEditorEdgeUio
16
+ */
17
+ export interface AdvancedFlowEditorEdgeUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdvancedFlowEditorEdgeUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdvancedFlowEditorEdgeUio
28
+ */
29
+ source: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdvancedFlowEditorEdgeUio
34
+ */
35
+ sourceHandle?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AdvancedFlowEditorEdgeUio
40
+ */
41
+ target: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AdvancedFlowEditorEdgeUio
46
+ */
47
+ targetHandle?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AdvancedFlowEditorEdgeUio interface.
51
+ */
52
+ export declare function instanceOfAdvancedFlowEditorEdgeUio(value: object): value is AdvancedFlowEditorEdgeUio;
53
+ export declare function AdvancedFlowEditorEdgeUioFromJSON(json: any): AdvancedFlowEditorEdgeUio;
54
+ export declare function AdvancedFlowEditorEdgeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdvancedFlowEditorEdgeUio;
55
+ export declare function AdvancedFlowEditorEdgeUioToJSON(json: any): AdvancedFlowEditorEdgeUio;
56
+ export declare function AdvancedFlowEditorEdgeUioToJSONTyped(value?: AdvancedFlowEditorEdgeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAdvancedFlowEditorEdgeUio = instanceOfAdvancedFlowEditorEdgeUio;
17
+ exports.AdvancedFlowEditorEdgeUioFromJSON = AdvancedFlowEditorEdgeUioFromJSON;
18
+ exports.AdvancedFlowEditorEdgeUioFromJSONTyped = AdvancedFlowEditorEdgeUioFromJSONTyped;
19
+ exports.AdvancedFlowEditorEdgeUioToJSON = AdvancedFlowEditorEdgeUioToJSON;
20
+ exports.AdvancedFlowEditorEdgeUioToJSONTyped = AdvancedFlowEditorEdgeUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdvancedFlowEditorEdgeUio interface.
23
+ */
24
+ function instanceOfAdvancedFlowEditorEdgeUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('source' in value) || value['source'] === undefined)
28
+ return false;
29
+ if (!('target' in value) || value['target'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AdvancedFlowEditorEdgeUioFromJSON(json) {
34
+ return AdvancedFlowEditorEdgeUioFromJSONTyped(json, false);
35
+ }
36
+ function AdvancedFlowEditorEdgeUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'source': json['source'],
43
+ 'sourceHandle': json['sourceHandle'] == null ? undefined : json['sourceHandle'],
44
+ 'target': json['target'],
45
+ 'targetHandle': json['targetHandle'] == null ? undefined : json['targetHandle'],
46
+ };
47
+ }
48
+ function AdvancedFlowEditorEdgeUioToJSON(json) {
49
+ return AdvancedFlowEditorEdgeUioToJSONTyped(json, false);
50
+ }
51
+ function AdvancedFlowEditorEdgeUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'source': value['source'],
58
+ 'sourceHandle': value['sourceHandle'],
59
+ 'target': value['target'],
60
+ 'targetHandle': value['targetHandle'],
61
+ };
62
+ }
@@ -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 AdvancedFlowEditorNodePositionUio
16
+ */
17
+ export interface AdvancedFlowEditorNodePositionUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AdvancedFlowEditorNodePositionUio
22
+ */
23
+ x: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AdvancedFlowEditorNodePositionUio
28
+ */
29
+ y: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AdvancedFlowEditorNodePositionUio interface.
33
+ */
34
+ export declare function instanceOfAdvancedFlowEditorNodePositionUio(value: object): value is AdvancedFlowEditorNodePositionUio;
35
+ export declare function AdvancedFlowEditorNodePositionUioFromJSON(json: any): AdvancedFlowEditorNodePositionUio;
36
+ export declare function AdvancedFlowEditorNodePositionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdvancedFlowEditorNodePositionUio;
37
+ export declare function AdvancedFlowEditorNodePositionUioToJSON(json: any): AdvancedFlowEditorNodePositionUio;
38
+ export declare function AdvancedFlowEditorNodePositionUioToJSONTyped(value?: AdvancedFlowEditorNodePositionUio | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAdvancedFlowEditorNodePositionUio = instanceOfAdvancedFlowEditorNodePositionUio;
17
+ exports.AdvancedFlowEditorNodePositionUioFromJSON = AdvancedFlowEditorNodePositionUioFromJSON;
18
+ exports.AdvancedFlowEditorNodePositionUioFromJSONTyped = AdvancedFlowEditorNodePositionUioFromJSONTyped;
19
+ exports.AdvancedFlowEditorNodePositionUioToJSON = AdvancedFlowEditorNodePositionUioToJSON;
20
+ exports.AdvancedFlowEditorNodePositionUioToJSONTyped = AdvancedFlowEditorNodePositionUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdvancedFlowEditorNodePositionUio interface.
23
+ */
24
+ function instanceOfAdvancedFlowEditorNodePositionUio(value) {
25
+ if (!('x' in value) || value['x'] === undefined)
26
+ return false;
27
+ if (!('y' in value) || value['y'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdvancedFlowEditorNodePositionUioFromJSON(json) {
32
+ return AdvancedFlowEditorNodePositionUioFromJSONTyped(json, false);
33
+ }
34
+ function AdvancedFlowEditorNodePositionUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'x': json['x'],
40
+ 'y': json['y'],
41
+ };
42
+ }
43
+ function AdvancedFlowEditorNodePositionUioToJSON(json) {
44
+ return AdvancedFlowEditorNodePositionUioToJSONTyped(json, false);
45
+ }
46
+ function AdvancedFlowEditorNodePositionUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'x': value['x'],
52
+ 'y': value['y'],
53
+ };
54
+ }
@@ -0,0 +1,53 @@
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 AdvancedFlowEditorNodeUio
17
+ */
18
+ export interface AdvancedFlowEditorNodeUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AdvancedFlowEditorNodeUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {AdvancedFlowEditorNodePositionUio}
28
+ * @memberof AdvancedFlowEditorNodeUio
29
+ */
30
+ position: AdvancedFlowEditorNodePositionUio;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AdvancedFlowEditorNodeUio
35
+ */
36
+ type: string;
37
+ /**
38
+ *
39
+ * @type {{ [key: string]: any; }}
40
+ * @memberof AdvancedFlowEditorNodeUio
41
+ */
42
+ data: {
43
+ [key: string]: any;
44
+ };
45
+ }
46
+ /**
47
+ * Check if a given object implements the AdvancedFlowEditorNodeUio interface.
48
+ */
49
+ export declare function instanceOfAdvancedFlowEditorNodeUio(value: object): value is AdvancedFlowEditorNodeUio;
50
+ export declare function AdvancedFlowEditorNodeUioFromJSON(json: any): AdvancedFlowEditorNodeUio;
51
+ export declare function AdvancedFlowEditorNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdvancedFlowEditorNodeUio;
52
+ export declare function AdvancedFlowEditorNodeUioToJSON(json: any): AdvancedFlowEditorNodeUio;
53
+ export declare function AdvancedFlowEditorNodeUioToJSONTyped(value?: AdvancedFlowEditorNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfAdvancedFlowEditorNodeUio = instanceOfAdvancedFlowEditorNodeUio;
17
+ exports.AdvancedFlowEditorNodeUioFromJSON = AdvancedFlowEditorNodeUioFromJSON;
18
+ exports.AdvancedFlowEditorNodeUioFromJSONTyped = AdvancedFlowEditorNodeUioFromJSONTyped;
19
+ exports.AdvancedFlowEditorNodeUioToJSON = AdvancedFlowEditorNodeUioToJSON;
20
+ exports.AdvancedFlowEditorNodeUioToJSONTyped = AdvancedFlowEditorNodeUioToJSONTyped;
21
+ const AdvancedFlowEditorNodePositionUio_1 = require("./AdvancedFlowEditorNodePositionUio");
22
+ /**
23
+ * Check if a given object implements the AdvancedFlowEditorNodeUio interface.
24
+ */
25
+ function instanceOfAdvancedFlowEditorNodeUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('position' in value) || value['position'] === undefined)
29
+ return false;
30
+ if (!('type' in value) || value['type'] === undefined)
31
+ return false;
32
+ if (!('data' in value) || value['data'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AdvancedFlowEditorNodeUioFromJSON(json) {
37
+ return AdvancedFlowEditorNodeUioFromJSONTyped(json, false);
38
+ }
39
+ function AdvancedFlowEditorNodeUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'position': (0, AdvancedFlowEditorNodePositionUio_1.AdvancedFlowEditorNodePositionUioFromJSON)(json['position']),
46
+ 'type': json['type'],
47
+ 'data': json['data'],
48
+ };
49
+ }
50
+ function AdvancedFlowEditorNodeUioToJSON(json) {
51
+ return AdvancedFlowEditorNodeUioToJSONTyped(json, false);
52
+ }
53
+ function AdvancedFlowEditorNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'position': (0, AdvancedFlowEditorNodePositionUio_1.AdvancedFlowEditorNodePositionUioToJSON)(value['position']),
60
+ 'type': value['type'],
61
+ 'data': value['data'],
62
+ };
63
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AdvancedFlowEditorEdgeUio } from './AdvancedFlowEditorEdgeUio';
13
+ import type { AdvancedFlowEditorNodeUio } from './AdvancedFlowEditorNodeUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AdvancedFlowEditorUio
18
+ */
19
+ export interface AdvancedFlowEditorUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AdvancedFlowEditorUio
24
+ */
25
+ agentId: string;
26
+ /**
27
+ *
28
+ * @type {Array<AdvancedFlowEditorNodeUio>}
29
+ * @memberof AdvancedFlowEditorUio
30
+ */
31
+ nodes: Array<AdvancedFlowEditorNodeUio>;
32
+ /**
33
+ *
34
+ * @type {Array<AdvancedFlowEditorEdgeUio>}
35
+ * @memberof AdvancedFlowEditorUio
36
+ */
37
+ edges: Array<AdvancedFlowEditorEdgeUio>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the AdvancedFlowEditorUio interface.
41
+ */
42
+ export declare function instanceOfAdvancedFlowEditorUio(value: object): value is AdvancedFlowEditorUio;
43
+ export declare function AdvancedFlowEditorUioFromJSON(json: any): AdvancedFlowEditorUio;
44
+ export declare function AdvancedFlowEditorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdvancedFlowEditorUio;
45
+ export declare function AdvancedFlowEditorUioToJSON(json: any): AdvancedFlowEditorUio;
46
+ export declare function AdvancedFlowEditorUioToJSONTyped(value?: AdvancedFlowEditorUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfAdvancedFlowEditorUio = instanceOfAdvancedFlowEditorUio;
17
+ exports.AdvancedFlowEditorUioFromJSON = AdvancedFlowEditorUioFromJSON;
18
+ exports.AdvancedFlowEditorUioFromJSONTyped = AdvancedFlowEditorUioFromJSONTyped;
19
+ exports.AdvancedFlowEditorUioToJSON = AdvancedFlowEditorUioToJSON;
20
+ exports.AdvancedFlowEditorUioToJSONTyped = AdvancedFlowEditorUioToJSONTyped;
21
+ const AdvancedFlowEditorEdgeUio_1 = require("./AdvancedFlowEditorEdgeUio");
22
+ const AdvancedFlowEditorNodeUio_1 = require("./AdvancedFlowEditorNodeUio");
23
+ /**
24
+ * Check if a given object implements the AdvancedFlowEditorUio interface.
25
+ */
26
+ function instanceOfAdvancedFlowEditorUio(value) {
27
+ if (!('agentId' in value) || value['agentId'] === undefined)
28
+ return false;
29
+ if (!('nodes' in value) || value['nodes'] === undefined)
30
+ return false;
31
+ if (!('edges' in value) || value['edges'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AdvancedFlowEditorUioFromJSON(json) {
36
+ return AdvancedFlowEditorUioFromJSONTyped(json, false);
37
+ }
38
+ function AdvancedFlowEditorUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'agentId': json['agentId'],
44
+ 'nodes': (json['nodes'].map(AdvancedFlowEditorNodeUio_1.AdvancedFlowEditorNodeUioFromJSON)),
45
+ 'edges': (json['edges'].map(AdvancedFlowEditorEdgeUio_1.AdvancedFlowEditorEdgeUioFromJSON)),
46
+ };
47
+ }
48
+ function AdvancedFlowEditorUioToJSON(json) {
49
+ return AdvancedFlowEditorUioToJSONTyped(json, false);
50
+ }
51
+ function AdvancedFlowEditorUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'agentId': value['agentId'],
57
+ 'nodes': (value['nodes'].map(AdvancedFlowEditorNodeUio_1.AdvancedFlowEditorNodeUioToJSON)),
58
+ 'edges': (value['edges'].map(AdvancedFlowEditorEdgeUio_1.AdvancedFlowEditorEdgeUioToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,40 @@
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 { AdvancedFlowEditorEdgeUio } from './AdvancedFlowEditorEdgeUio';
13
+ import type { AdvancedFlowEditorNodeUio } from './AdvancedFlowEditorNodeUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AdvancedFlowEditorUpdateRequestUio
18
+ */
19
+ export interface AdvancedFlowEditorUpdateRequestUio {
20
+ /**
21
+ *
22
+ * @type {Array<AdvancedFlowEditorNodeUio>}
23
+ * @memberof AdvancedFlowEditorUpdateRequestUio
24
+ */
25
+ nodes: Array<AdvancedFlowEditorNodeUio>;
26
+ /**
27
+ *
28
+ * @type {Array<AdvancedFlowEditorEdgeUio>}
29
+ * @memberof AdvancedFlowEditorUpdateRequestUio
30
+ */
31
+ edges: Array<AdvancedFlowEditorEdgeUio>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the AdvancedFlowEditorUpdateRequestUio interface.
35
+ */
36
+ export declare function instanceOfAdvancedFlowEditorUpdateRequestUio(value: object): value is AdvancedFlowEditorUpdateRequestUio;
37
+ export declare function AdvancedFlowEditorUpdateRequestUioFromJSON(json: any): AdvancedFlowEditorUpdateRequestUio;
38
+ export declare function AdvancedFlowEditorUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdvancedFlowEditorUpdateRequestUio;
39
+ export declare function AdvancedFlowEditorUpdateRequestUioToJSON(json: any): AdvancedFlowEditorUpdateRequestUio;
40
+ export declare function AdvancedFlowEditorUpdateRequestUioToJSONTyped(value?: AdvancedFlowEditorUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfAdvancedFlowEditorUpdateRequestUio = instanceOfAdvancedFlowEditorUpdateRequestUio;
17
+ exports.AdvancedFlowEditorUpdateRequestUioFromJSON = AdvancedFlowEditorUpdateRequestUioFromJSON;
18
+ exports.AdvancedFlowEditorUpdateRequestUioFromJSONTyped = AdvancedFlowEditorUpdateRequestUioFromJSONTyped;
19
+ exports.AdvancedFlowEditorUpdateRequestUioToJSON = AdvancedFlowEditorUpdateRequestUioToJSON;
20
+ exports.AdvancedFlowEditorUpdateRequestUioToJSONTyped = AdvancedFlowEditorUpdateRequestUioToJSONTyped;
21
+ const AdvancedFlowEditorEdgeUio_1 = require("./AdvancedFlowEditorEdgeUio");
22
+ const AdvancedFlowEditorNodeUio_1 = require("./AdvancedFlowEditorNodeUio");
23
+ /**
24
+ * Check if a given object implements the AdvancedFlowEditorUpdateRequestUio interface.
25
+ */
26
+ function instanceOfAdvancedFlowEditorUpdateRequestUio(value) {
27
+ if (!('nodes' in value) || value['nodes'] === undefined)
28
+ return false;
29
+ if (!('edges' in value) || value['edges'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AdvancedFlowEditorUpdateRequestUioFromJSON(json) {
34
+ return AdvancedFlowEditorUpdateRequestUioFromJSONTyped(json, false);
35
+ }
36
+ function AdvancedFlowEditorUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'nodes': (json['nodes'].map(AdvancedFlowEditorNodeUio_1.AdvancedFlowEditorNodeUioFromJSON)),
42
+ 'edges': (json['edges'].map(AdvancedFlowEditorEdgeUio_1.AdvancedFlowEditorEdgeUioFromJSON)),
43
+ };
44
+ }
45
+ function AdvancedFlowEditorUpdateRequestUioToJSON(json) {
46
+ return AdvancedFlowEditorUpdateRequestUioToJSONTyped(json, false);
47
+ }
48
+ function AdvancedFlowEditorUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'nodes': (value['nodes'].map(AdvancedFlowEditorNodeUio_1.AdvancedFlowEditorNodeUioToJSON)),
54
+ 'edges': (value['edges'].map(AdvancedFlowEditorEdgeUio_1.AdvancedFlowEditorEdgeUioToJSON)),
55
+ };
56
+ }