@breign/client 1.0.85 → 1.0.87

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.
@@ -37,11 +37,13 @@ export interface CreateAppChatRequest {
37
37
  appId: string;
38
38
  appChatCreateRequestUio: AppChatCreateRequestUio;
39
39
  instanceId?: string;
40
+ ephemeral?: boolean;
40
41
  }
41
42
  export interface CreateAppFlowRequest {
42
43
  appId: string;
43
44
  appFlowCreateRequestUio: AppFlowCreateRequestUio;
44
45
  instanceId?: string;
46
+ ephemeral?: boolean;
45
47
  }
46
48
  export interface CreateInstanceRequest {
47
49
  appId: string;
@@ -210,17 +212,17 @@ export declare class AppApi extends runtime.BaseAPI {
210
212
  * Initialize a chat
211
213
  * Initialize a chat
212
214
  */
213
- createAppChat(appId: string, appChatCreateRequestUio: AppChatCreateRequestUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppChatCreateResponseUio>;
215
+ createAppChat(appId: string, appChatCreateRequestUio: AppChatCreateRequestUio, instanceId?: string, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppChatCreateResponseUio>;
214
216
  /**
215
- * Create a flow
216
- * Create a flow
217
+ * Start a conversation with a flow.
218
+ * Start a chat with a flow
217
219
  */
218
220
  createAppFlowRaw(requestParameters: CreateAppFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FlowUio>>;
219
221
  /**
220
- * Create a flow
221
- * Create a flow
222
+ * Start a conversation with a flow.
223
+ * Start a chat with a flow
222
224
  */
223
- createAppFlow(appId: string, appFlowCreateRequestUio: AppFlowCreateRequestUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FlowUio>;
225
+ createAppFlow(appId: string, appFlowCreateRequestUio: AppFlowCreateRequestUio, instanceId?: string, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FlowUio>;
224
226
  /**
225
227
  * Create instance
226
228
  * Create instance
@@ -242,6 +242,9 @@ class AppApi extends runtime.BaseAPI {
242
242
  if (requestParameters['instanceId'] != null) {
243
243
  queryParameters['instanceId'] = requestParameters['instanceId'];
244
244
  }
245
+ if (requestParameters['ephemeral'] != null) {
246
+ queryParameters['ephemeral'] = requestParameters['ephemeral'];
247
+ }
245
248
  const headerParameters = {};
246
249
  headerParameters['Content-Type'] = 'application/json';
247
250
  if (this.configuration && this.configuration.apiKey) {
@@ -260,13 +263,13 @@ class AppApi extends runtime.BaseAPI {
260
263
  * Initialize a chat
261
264
  * Initialize a chat
262
265
  */
263
- async createAppChat(appId, appChatCreateRequestUio, instanceId, initOverrides) {
264
- const response = await this.createAppChatRaw({ appId: appId, appChatCreateRequestUio: appChatCreateRequestUio, instanceId: instanceId }, initOverrides);
266
+ async createAppChat(appId, appChatCreateRequestUio, instanceId, ephemeral, initOverrides) {
267
+ const response = await this.createAppChatRaw({ appId: appId, appChatCreateRequestUio: appChatCreateRequestUio, instanceId: instanceId, ephemeral: ephemeral }, initOverrides);
265
268
  return await response.value();
266
269
  }
267
270
  /**
268
- * Create a flow
269
- * Create a flow
271
+ * Start a conversation with a flow.
272
+ * Start a chat with a flow
270
273
  */
271
274
  async createAppFlowRaw(requestParameters, initOverrides) {
272
275
  if (requestParameters['appId'] == null) {
@@ -279,6 +282,9 @@ class AppApi extends runtime.BaseAPI {
279
282
  if (requestParameters['instanceId'] != null) {
280
283
  queryParameters['instanceId'] = requestParameters['instanceId'];
281
284
  }
285
+ if (requestParameters['ephemeral'] != null) {
286
+ queryParameters['ephemeral'] = requestParameters['ephemeral'];
287
+ }
282
288
  const headerParameters = {};
283
289
  headerParameters['Content-Type'] = 'application/json';
284
290
  if (this.configuration && this.configuration.apiKey) {
@@ -294,11 +300,11 @@ class AppApi extends runtime.BaseAPI {
294
300
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FlowUioFromJSON)(jsonValue));
295
301
  }
296
302
  /**
297
- * Create a flow
298
- * Create a flow
303
+ * Start a conversation with a flow.
304
+ * Start a chat with a flow
299
305
  */
300
- async createAppFlow(appId, appFlowCreateRequestUio, instanceId, initOverrides) {
301
- const response = await this.createAppFlowRaw({ appId: appId, appFlowCreateRequestUio: appFlowCreateRequestUio, instanceId: instanceId }, initOverrides);
306
+ async createAppFlow(appId, appFlowCreateRequestUio, instanceId, ephemeral, initOverrides) {
307
+ const response = await this.createAppFlowRaw({ appId: appId, appFlowCreateRequestUio: appFlowCreateRequestUio, instanceId: instanceId, ephemeral: ephemeral }, initOverrides);
302
308
  return await response.value();
303
309
  }
304
310
  /**
@@ -14,15 +14,18 @@ import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, Promp
14
14
  export interface CreateConversationRequest {
15
15
  agentId: string;
16
16
  promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
17
+ ephemeral?: boolean;
17
18
  }
18
19
  export interface CreateConversationWithFlowManagementRequest {
19
20
  agentId: string;
20
21
  promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
22
+ ephemeral?: boolean;
21
23
  }
22
24
  export interface CreatePromptRequest {
23
25
  agentId: string;
24
26
  promptCreateRequestUio: PromptCreateRequestUio;
25
27
  async?: boolean;
28
+ ephemeral?: boolean;
26
29
  }
27
30
  export interface GetConversationByIdRequest {
28
31
  conversationId: string;
@@ -53,7 +56,7 @@ export declare class PromptsApi extends runtime.BaseAPI {
53
56
  * Create a new empty conversation for the specified agent.
54
57
  * Create a new conversation
55
58
  */
56
- createConversation(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
59
+ createConversation(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
57
60
  /**
58
61
  * Starts a new conversation session for the specified agent with flow management
59
62
  * Create a new conversation with flow management
@@ -63,7 +66,7 @@ export declare class PromptsApi extends runtime.BaseAPI {
63
66
  * Starts a new conversation session for the specified agent with flow management
64
67
  * Create a new conversation with flow management
65
68
  */
66
- createConversationWithFlowManagement(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptFlowCreateResponseUio>;
69
+ createConversationWithFlowManagement(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptFlowCreateResponseUio>;
67
70
  /**
68
71
  * Starts a new conversation session for the specified agent
69
72
  * Create a new prompt
@@ -73,7 +76,7 @@ export declare class PromptsApi extends runtime.BaseAPI {
73
76
  * Starts a new conversation session for the specified agent
74
77
  * Create a new prompt
75
78
  */
76
- createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
79
+ createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, async?: boolean, ephemeral?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
77
80
  /**
78
81
  * Retrieves details of a specific conversation including all messages
79
82
  * Get a conversation by ID
@@ -65,6 +65,9 @@ class PromptsApi extends runtime.BaseAPI {
65
65
  throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversation().');
66
66
  }
67
67
  const queryParameters = {};
68
+ if (requestParameters['ephemeral'] != null) {
69
+ queryParameters['ephemeral'] = requestParameters['ephemeral'];
70
+ }
68
71
  const headerParameters = {};
69
72
  headerParameters['Content-Type'] = 'application/json';
70
73
  if (this.configuration && this.configuration.apiKey) {
@@ -83,8 +86,8 @@ class PromptsApi extends runtime.BaseAPI {
83
86
  * Create a new empty conversation for the specified agent.
84
87
  * Create a new conversation
85
88
  */
86
- async createConversation(agentId, promptFlowCreateRequestUio, initOverrides) {
87
- const response = await this.createConversationRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
89
+ async createConversation(agentId, promptFlowCreateRequestUio, ephemeral, initOverrides) {
90
+ const response = await this.createConversationRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio, ephemeral: ephemeral }, initOverrides);
88
91
  return await response.value();
89
92
  }
90
93
  /**
@@ -99,6 +102,9 @@ class PromptsApi extends runtime.BaseAPI {
99
102
  throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversationWithFlowManagement().');
100
103
  }
101
104
  const queryParameters = {};
105
+ if (requestParameters['ephemeral'] != null) {
106
+ queryParameters['ephemeral'] = requestParameters['ephemeral'];
107
+ }
102
108
  const headerParameters = {};
103
109
  headerParameters['Content-Type'] = 'application/json';
104
110
  if (this.configuration && this.configuration.apiKey) {
@@ -117,8 +123,8 @@ class PromptsApi extends runtime.BaseAPI {
117
123
  * Starts a new conversation session for the specified agent with flow management
118
124
  * Create a new conversation with flow management
119
125
  */
120
- async createConversationWithFlowManagement(agentId, promptFlowCreateRequestUio, initOverrides) {
121
- const response = await this.createConversationWithFlowManagementRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
126
+ async createConversationWithFlowManagement(agentId, promptFlowCreateRequestUio, ephemeral, initOverrides) {
127
+ const response = await this.createConversationWithFlowManagementRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio, ephemeral: ephemeral }, initOverrides);
122
128
  return await response.value();
123
129
  }
124
130
  /**
@@ -136,6 +142,9 @@ class PromptsApi extends runtime.BaseAPI {
136
142
  if (requestParameters['async'] != null) {
137
143
  queryParameters['async'] = requestParameters['async'];
138
144
  }
145
+ if (requestParameters['ephemeral'] != null) {
146
+ queryParameters['ephemeral'] = requestParameters['ephemeral'];
147
+ }
139
148
  const headerParameters = {};
140
149
  headerParameters['Content-Type'] = 'application/json';
141
150
  if (this.configuration && this.configuration.apiKey) {
@@ -154,8 +163,8 @@ class PromptsApi extends runtime.BaseAPI {
154
163
  * Starts a new conversation session for the specified agent
155
164
  * Create a new prompt
156
165
  */
157
- async createPrompt(agentId, promptCreateRequestUio, async, initOverrides) {
158
- const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio, async: async }, initOverrides);
166
+ async createPrompt(agentId, promptCreateRequestUio, async, ephemeral, initOverrides) {
167
+ const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio, async: async, ephemeral: ephemeral }, initOverrides);
159
168
  return await response.value();
160
169
  }
161
170
  /**
@@ -0,0 +1,26 @@
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
+ * Array of instruction items or a map of language code to instruction items (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsInstructionItemsUio
16
+ */
17
+ export interface FlowContentsInstructionItemsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsInstructionItemsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsInstructionItemsUio(value: object): value is FlowContentsInstructionItemsUio;
23
+ export declare function FlowContentsInstructionItemsUioFromJSON(json: any): FlowContentsInstructionItemsUio;
24
+ export declare function FlowContentsInstructionItemsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsInstructionItemsUio;
25
+ export declare function FlowContentsInstructionItemsUioToJSON(json: any): FlowContentsInstructionItemsUio;
26
+ export declare function FlowContentsInstructionItemsUioToJSONTyped(value?: FlowContentsInstructionItemsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsInstructionItemsUio = instanceOfFlowContentsInstructionItemsUio;
17
+ exports.FlowContentsInstructionItemsUioFromJSON = FlowContentsInstructionItemsUioFromJSON;
18
+ exports.FlowContentsInstructionItemsUioFromJSONTyped = FlowContentsInstructionItemsUioFromJSONTyped;
19
+ exports.FlowContentsInstructionItemsUioToJSON = FlowContentsInstructionItemsUioToJSON;
20
+ exports.FlowContentsInstructionItemsUioToJSONTyped = FlowContentsInstructionItemsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsInstructionItemsUio interface.
23
+ */
24
+ function instanceOfFlowContentsInstructionItemsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsInstructionItemsUioFromJSON(json) {
28
+ return FlowContentsInstructionItemsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsInstructionItemsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsInstructionItemsUioToJSON(json) {
34
+ return FlowContentsInstructionItemsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsInstructionItemsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -0,0 +1,26 @@
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
+ * Instructions or a map of language code to instructions (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsInstructionsUio
16
+ */
17
+ export interface FlowContentsInstructionsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsInstructionsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsInstructionsUio(value: object): value is FlowContentsInstructionsUio;
23
+ export declare function FlowContentsInstructionsUioFromJSON(json: any): FlowContentsInstructionsUio;
24
+ export declare function FlowContentsInstructionsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsInstructionsUio;
25
+ export declare function FlowContentsInstructionsUioToJSON(json: any): FlowContentsInstructionsUio;
26
+ export declare function FlowContentsInstructionsUioToJSONTyped(value?: FlowContentsInstructionsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsInstructionsUio = instanceOfFlowContentsInstructionsUio;
17
+ exports.FlowContentsInstructionsUioFromJSON = FlowContentsInstructionsUioFromJSON;
18
+ exports.FlowContentsInstructionsUioFromJSONTyped = FlowContentsInstructionsUioFromJSONTyped;
19
+ exports.FlowContentsInstructionsUioToJSON = FlowContentsInstructionsUioToJSON;
20
+ exports.FlowContentsInstructionsUioToJSONTyped = FlowContentsInstructionsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsInstructionsUio interface.
23
+ */
24
+ function instanceOfFlowContentsInstructionsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsInstructionsUioFromJSON(json) {
28
+ return FlowContentsInstructionsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsInstructionsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsInstructionsUioToJSON(json) {
34
+ return FlowContentsInstructionsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsInstructionsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -0,0 +1,26 @@
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
+ * Array of suggestions or a map of language code to suggestion array (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsSuggestionsUio
16
+ */
17
+ export interface FlowContentsSuggestionsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsSuggestionsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsSuggestionsUio(value: object): value is FlowContentsSuggestionsUio;
23
+ export declare function FlowContentsSuggestionsUioFromJSON(json: any): FlowContentsSuggestionsUio;
24
+ export declare function FlowContentsSuggestionsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsSuggestionsUio;
25
+ export declare function FlowContentsSuggestionsUioToJSON(json: any): FlowContentsSuggestionsUio;
26
+ export declare function FlowContentsSuggestionsUioToJSONTyped(value?: FlowContentsSuggestionsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsSuggestionsUio = instanceOfFlowContentsSuggestionsUio;
17
+ exports.FlowContentsSuggestionsUioFromJSON = FlowContentsSuggestionsUioFromJSON;
18
+ exports.FlowContentsSuggestionsUioFromJSONTyped = FlowContentsSuggestionsUioFromJSONTyped;
19
+ exports.FlowContentsSuggestionsUioToJSON = FlowContentsSuggestionsUioToJSON;
20
+ exports.FlowContentsSuggestionsUioToJSONTyped = FlowContentsSuggestionsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsSuggestionsUio interface.
23
+ */
24
+ function instanceOfFlowContentsSuggestionsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsSuggestionsUioFromJSON(json) {
28
+ return FlowContentsSuggestionsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsSuggestionsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsSuggestionsUioToJSON(json) {
34
+ return FlowContentsSuggestionsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsSuggestionsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -0,0 +1,26 @@
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
+ * Text content or a map of language code to text (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsTextUio
16
+ */
17
+ export interface FlowContentsTextUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsTextUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsTextUio(value: object): value is FlowContentsTextUio;
23
+ export declare function FlowContentsTextUioFromJSON(json: any): FlowContentsTextUio;
24
+ export declare function FlowContentsTextUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsTextUio;
25
+ export declare function FlowContentsTextUioToJSON(json: any): FlowContentsTextUio;
26
+ export declare function FlowContentsTextUioToJSONTyped(value?: FlowContentsTextUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsTextUio = instanceOfFlowContentsTextUio;
17
+ exports.FlowContentsTextUioFromJSON = FlowContentsTextUioFromJSON;
18
+ exports.FlowContentsTextUioFromJSONTyped = FlowContentsTextUioFromJSONTyped;
19
+ exports.FlowContentsTextUioToJSON = FlowContentsTextUioToJSON;
20
+ exports.FlowContentsTextUioToJSONTyped = FlowContentsTextUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsTextUio interface.
23
+ */
24
+ function instanceOfFlowContentsTextUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsTextUioFromJSON(json) {
28
+ return FlowContentsTextUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsTextUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsTextUioToJSON(json) {
34
+ return FlowContentsTextUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsTextUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -0,0 +1,26 @@
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
+ * Array of texts or a map of language code to text array (multilang mode)
14
+ * @export
15
+ * @interface FlowContentsTextsUio
16
+ */
17
+ export interface FlowContentsTextsUio {
18
+ }
19
+ /**
20
+ * Check if a given object implements the FlowContentsTextsUio interface.
21
+ */
22
+ export declare function instanceOfFlowContentsTextsUio(value: object): value is FlowContentsTextsUio;
23
+ export declare function FlowContentsTextsUioFromJSON(json: any): FlowContentsTextsUio;
24
+ export declare function FlowContentsTextsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsTextsUio;
25
+ export declare function FlowContentsTextsUioToJSON(json: any): FlowContentsTextsUio;
26
+ export declare function FlowContentsTextsUioToJSONTyped(value?: FlowContentsTextsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
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.instanceOfFlowContentsTextsUio = instanceOfFlowContentsTextsUio;
17
+ exports.FlowContentsTextsUioFromJSON = FlowContentsTextsUioFromJSON;
18
+ exports.FlowContentsTextsUioFromJSONTyped = FlowContentsTextsUioFromJSONTyped;
19
+ exports.FlowContentsTextsUioToJSON = FlowContentsTextsUioToJSON;
20
+ exports.FlowContentsTextsUioToJSONTyped = FlowContentsTextsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsTextsUio interface.
23
+ */
24
+ function instanceOfFlowContentsTextsUio(value) {
25
+ return true;
26
+ }
27
+ function FlowContentsTextsUioFromJSON(json) {
28
+ return FlowContentsTextsUioFromJSONTyped(json, false);
29
+ }
30
+ function FlowContentsTextsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function FlowContentsTextsUioToJSON(json) {
34
+ return FlowContentsTextsUioToJSONTyped(json, false);
35
+ }
36
+ function FlowContentsTextsUioToJSONTyped(value, ignoreDiscriminator = false) {
37
+ return value;
38
+ }
@@ -9,8 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FlowContentsSuggestionUio } from './FlowContentsSuggestionUio';
12
+ import type { FlowContentsInstructionsUio } from './FlowContentsInstructionsUio';
13
+ import type { FlowContentsSuggestionsUio } from './FlowContentsSuggestionsUio';
14
+ import type { FlowContentsTextUio } from './FlowContentsTextUio';
15
+ import type { FlowContentsTextsUio } from './FlowContentsTextsUio';
13
16
  import type { ContentsToolsUio } from './ContentsToolsUio';
17
+ import type { FlowContentsInstructionItemsUio } from './FlowContentsInstructionItemsUio';
14
18
  /**
15
19
  *
16
20
  * @export
@@ -25,28 +29,28 @@ export interface FlowContentsUio {
25
29
  rephrase?: boolean;
26
30
  /**
27
31
  *
28
- * @type {string}
32
+ * @type {FlowContentsTextUio}
29
33
  * @memberof FlowContentsUio
30
34
  */
31
- text?: string;
35
+ text?: FlowContentsTextUio;
32
36
  /**
33
37
  *
34
- * @type {Array<string>}
38
+ * @type {FlowContentsTextsUio}
35
39
  * @memberof FlowContentsUio
36
40
  */
37
- texts?: Array<string>;
41
+ texts?: FlowContentsTextsUio;
38
42
  /**
39
43
  *
40
- * @type {string}
44
+ * @type {FlowContentsInstructionsUio}
41
45
  * @memberof FlowContentsUio
42
46
  */
43
- instructions?: string;
47
+ instructions?: FlowContentsInstructionsUio;
44
48
  /**
45
49
  *
46
- * @type {Array<string>}
50
+ * @type {FlowContentsInstructionItemsUio}
47
51
  * @memberof FlowContentsUio
48
52
  */
49
- instructionItems?: Array<string>;
53
+ instructionItems?: FlowContentsInstructionItemsUio;
50
54
  /**
51
55
  *
52
56
  * @type {ContentsToolsUio}
@@ -55,10 +59,10 @@ export interface FlowContentsUio {
55
59
  tools?: ContentsToolsUio;
56
60
  /**
57
61
  *
58
- * @type {Array<FlowContentsSuggestionUio>}
62
+ * @type {FlowContentsSuggestionsUio}
59
63
  * @memberof FlowContentsUio
60
64
  */
61
- suggestions?: Array<FlowContentsSuggestionUio>;
65
+ suggestions?: FlowContentsSuggestionsUio;
62
66
  }
63
67
  /**
64
68
  * Check if a given object implements the FlowContentsUio interface.
@@ -18,8 +18,12 @@ exports.FlowContentsUioFromJSON = FlowContentsUioFromJSON;
18
18
  exports.FlowContentsUioFromJSONTyped = FlowContentsUioFromJSONTyped;
19
19
  exports.FlowContentsUioToJSON = FlowContentsUioToJSON;
20
20
  exports.FlowContentsUioToJSONTyped = FlowContentsUioToJSONTyped;
21
- const FlowContentsSuggestionUio_1 = require("./FlowContentsSuggestionUio");
21
+ const FlowContentsInstructionsUio_1 = require("./FlowContentsInstructionsUio");
22
+ const FlowContentsSuggestionsUio_1 = require("./FlowContentsSuggestionsUio");
23
+ const FlowContentsTextUio_1 = require("./FlowContentsTextUio");
24
+ const FlowContentsTextsUio_1 = require("./FlowContentsTextsUio");
22
25
  const ContentsToolsUio_1 = require("./ContentsToolsUio");
26
+ const FlowContentsInstructionItemsUio_1 = require("./FlowContentsInstructionItemsUio");
23
27
  /**
24
28
  * Check if a given object implements the FlowContentsUio interface.
25
29
  */
@@ -35,12 +39,12 @@ function FlowContentsUioFromJSONTyped(json, ignoreDiscriminator) {
35
39
  }
36
40
  return {
37
41
  'rephrase': json['rephrase'] == null ? undefined : json['rephrase'],
38
- 'text': json['text'] == null ? undefined : json['text'],
39
- 'texts': json['texts'] == null ? undefined : json['texts'],
40
- 'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
- 'instructionItems': json['instructionItems'] == null ? undefined : json['instructionItems'],
42
+ 'text': json['text'] == null ? undefined : (0, FlowContentsTextUio_1.FlowContentsTextUioFromJSON)(json['text']),
43
+ 'texts': json['texts'] == null ? undefined : (0, FlowContentsTextsUio_1.FlowContentsTextsUioFromJSON)(json['texts']),
44
+ 'instructions': json['instructions'] == null ? undefined : (0, FlowContentsInstructionsUio_1.FlowContentsInstructionsUioFromJSON)(json['instructions']),
45
+ 'instructionItems': json['instructionItems'] == null ? undefined : (0, FlowContentsInstructionItemsUio_1.FlowContentsInstructionItemsUioFromJSON)(json['instructionItems']),
42
46
  'tools': json['tools'] == null ? undefined : (0, ContentsToolsUio_1.ContentsToolsUioFromJSON)(json['tools']),
43
- 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioFromJSON)),
47
+ 'suggestions': json['suggestions'] == null ? undefined : (0, FlowContentsSuggestionsUio_1.FlowContentsSuggestionsUioFromJSON)(json['suggestions']),
44
48
  };
45
49
  }
46
50
  function FlowContentsUioToJSON(json) {
@@ -52,11 +56,11 @@ function FlowContentsUioToJSONTyped(value, ignoreDiscriminator = false) {
52
56
  }
53
57
  return {
54
58
  'rephrase': value['rephrase'],
55
- 'text': value['text'],
56
- 'texts': value['texts'],
57
- 'instructions': value['instructions'],
58
- 'instructionItems': value['instructionItems'],
59
+ 'text': (0, FlowContentsTextUio_1.FlowContentsTextUioToJSON)(value['text']),
60
+ 'texts': (0, FlowContentsTextsUio_1.FlowContentsTextsUioToJSON)(value['texts']),
61
+ 'instructions': (0, FlowContentsInstructionsUio_1.FlowContentsInstructionsUioToJSON)(value['instructions']),
62
+ 'instructionItems': (0, FlowContentsInstructionItemsUio_1.FlowContentsInstructionItemsUioToJSON)(value['instructionItems']),
59
63
  'tools': (0, ContentsToolsUio_1.ContentsToolsUioToJSON)(value['tools']),
60
- 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioToJSON)),
64
+ 'suggestions': (0, FlowContentsSuggestionsUio_1.FlowContentsSuggestionsUioToJSON)(value['suggestions']),
61
65
  };
62
66
  }
@@ -131,7 +131,12 @@ export * from './FileStatusUpdateRequestUio';
131
131
  export * from './FileUio';
132
132
  export * from './FileWithDownloadUrlUio';
133
133
  export * from './FillersArrayInnerUio';
134
+ export * from './FlowContentsInstructionItemsUio';
135
+ export * from './FlowContentsInstructionsUio';
134
136
  export * from './FlowContentsSuggestionUio';
137
+ export * from './FlowContentsSuggestionsUio';
138
+ export * from './FlowContentsTextUio';
139
+ export * from './FlowContentsTextsUio';
135
140
  export * from './FlowContentsUio';
136
141
  export * from './FlowEditorNodeUio';
137
142
  export * from './FlowEditorUio';
@@ -149,7 +149,12 @@ __exportStar(require("./FileStatusUpdateRequestUio"), exports);
149
149
  __exportStar(require("./FileUio"), exports);
150
150
  __exportStar(require("./FileWithDownloadUrlUio"), exports);
151
151
  __exportStar(require("./FillersArrayInnerUio"), exports);
152
+ __exportStar(require("./FlowContentsInstructionItemsUio"), exports);
153
+ __exportStar(require("./FlowContentsInstructionsUio"), exports);
152
154
  __exportStar(require("./FlowContentsSuggestionUio"), exports);
155
+ __exportStar(require("./FlowContentsSuggestionsUio"), exports);
156
+ __exportStar(require("./FlowContentsTextUio"), exports);
157
+ __exportStar(require("./FlowContentsTextsUio"), exports);
153
158
  __exportStar(require("./FlowContentsUio"), exports);
154
159
  __exportStar(require("./FlowEditorNodeUio"), exports);
155
160
  __exportStar(require("./FlowEditorUio"), exports);
package/dist/openapi.json CHANGED
@@ -1502,6 +1502,14 @@
1502
1502
  "format" : "uuid",
1503
1503
  "type" : "string"
1504
1504
  }
1505
+ }, {
1506
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
1507
+ "in" : "query",
1508
+ "name" : "ephemeral",
1509
+ "required" : false,
1510
+ "schema" : {
1511
+ "type" : "boolean"
1512
+ }
1505
1513
  } ],
1506
1514
  "requestBody" : {
1507
1515
  "content" : {
@@ -1744,7 +1752,7 @@
1744
1752
  },
1745
1753
  "/apps/{appId}/flows" : {
1746
1754
  "post" : {
1747
- "description" : "Create a flow",
1755
+ "description" : "Start a conversation with a flow.",
1748
1756
  "operationId" : "createAppFlow",
1749
1757
  "parameters" : [ {
1750
1758
  "description" : "ID of the app",
@@ -1761,6 +1769,14 @@
1761
1769
  "schema" : {
1762
1770
  "type" : "string"
1763
1771
  }
1772
+ }, {
1773
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
1774
+ "in" : "query",
1775
+ "name" : "ephemeral",
1776
+ "required" : false,
1777
+ "schema" : {
1778
+ "type" : "boolean"
1779
+ }
1764
1780
  } ],
1765
1781
  "requestBody" : {
1766
1782
  "content" : {
@@ -1784,7 +1800,7 @@
1784
1800
  "description" : "App Flow created successfully"
1785
1801
  }
1786
1802
  },
1787
- "summary" : "Create a flow",
1803
+ "summary" : "Start a chat with a flow",
1788
1804
  "tags" : [ "app" ]
1789
1805
  }
1790
1806
  },
@@ -1807,6 +1823,14 @@
1807
1823
  "schema" : {
1808
1824
  "type" : "string"
1809
1825
  }
1826
+ }, {
1827
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
1828
+ "in" : "query",
1829
+ "name" : "ephemeral",
1830
+ "required" : false,
1831
+ "schema" : {
1832
+ "type" : "boolean"
1833
+ }
1810
1834
  } ],
1811
1835
  "requestBody" : {
1812
1836
  "content" : {
@@ -7379,6 +7403,14 @@
7379
7403
  "format" : "uuid",
7380
7404
  "type" : "string"
7381
7405
  }
7406
+ }, {
7407
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
7408
+ "in" : "query",
7409
+ "name" : "ephemeral",
7410
+ "required" : false,
7411
+ "schema" : {
7412
+ "type" : "boolean"
7413
+ }
7382
7414
  } ],
7383
7415
  "requestBody" : {
7384
7416
  "content" : {
@@ -7442,6 +7474,14 @@
7442
7474
  "schema" : {
7443
7475
  "type" : "boolean"
7444
7476
  }
7477
+ }, {
7478
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
7479
+ "in" : "query",
7480
+ "name" : "ephemeral",
7481
+ "required" : false,
7482
+ "schema" : {
7483
+ "type" : "boolean"
7484
+ }
7445
7485
  } ],
7446
7486
  "requestBody" : {
7447
7487
  "content" : {
@@ -7948,6 +7988,15 @@
7948
7988
  "type" : "integer"
7949
7989
  }
7950
7990
  },
7991
+ "ephemeral" : {
7992
+ "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
7993
+ "in" : "query",
7994
+ "name" : "ephemeral",
7995
+ "required" : false,
7996
+ "schema" : {
7997
+ "type" : "boolean"
7998
+ }
7999
+ },
7951
8000
  "instanceId" : {
7952
8001
  "description" : "Instance id",
7953
8002
  "in" : "query",
@@ -9092,31 +9141,22 @@
9092
9141
  "type" : "boolean"
9093
9142
  },
9094
9143
  "text" : {
9095
- "type" : "string"
9144
+ "$ref" : "#/components/schemas/FlowContents_text"
9096
9145
  },
9097
9146
  "texts" : {
9098
- "items" : {
9099
- "type" : "string"
9100
- },
9101
- "type" : "array"
9147
+ "$ref" : "#/components/schemas/FlowContents_texts"
9102
9148
  },
9103
9149
  "instructions" : {
9104
- "type" : "string"
9150
+ "$ref" : "#/components/schemas/FlowContents_instructions"
9105
9151
  },
9106
9152
  "instructionItems" : {
9107
- "items" : {
9108
- "type" : "string"
9109
- },
9110
- "type" : "array"
9153
+ "$ref" : "#/components/schemas/FlowContents_instructionItems"
9111
9154
  },
9112
9155
  "tools" : {
9113
9156
  "$ref" : "#/components/schemas/ContentsTools"
9114
9157
  },
9115
9158
  "suggestions" : {
9116
- "items" : {
9117
- "$ref" : "#/components/schemas/FlowContentsSuggestion"
9118
- },
9119
- "type" : "array"
9159
+ "$ref" : "#/components/schemas/FlowContents_suggestions"
9120
9160
  }
9121
9161
  },
9122
9162
  "type" : "object"
@@ -12423,6 +12463,79 @@
12423
12463
  "required" : [ "model", "providerId" ],
12424
12464
  "type" : "object"
12425
12465
  },
12466
+ "FlowContents_text" : {
12467
+ "anyOf" : [ {
12468
+ "type" : "string"
12469
+ }, {
12470
+ "additionalProperties" : {
12471
+ "type" : "string"
12472
+ },
12473
+ "type" : "object"
12474
+ } ],
12475
+ "description" : "Text content or a map of language code to text (multilang mode)"
12476
+ },
12477
+ "FlowContents_texts" : {
12478
+ "anyOf" : [ {
12479
+ "items" : {
12480
+ "type" : "string"
12481
+ },
12482
+ "type" : "array"
12483
+ }, {
12484
+ "additionalProperties" : {
12485
+ "items" : {
12486
+ "type" : "string"
12487
+ },
12488
+ "type" : "array"
12489
+ },
12490
+ "type" : "object"
12491
+ } ],
12492
+ "description" : "Array of texts or a map of language code to text array (multilang mode)"
12493
+ },
12494
+ "FlowContents_instructions" : {
12495
+ "anyOf" : [ {
12496
+ "type" : "string"
12497
+ }, {
12498
+ "additionalProperties" : {
12499
+ "type" : "string"
12500
+ },
12501
+ "type" : "object"
12502
+ } ],
12503
+ "description" : "Instructions or a map of language code to instructions (multilang mode)"
12504
+ },
12505
+ "FlowContents_instructionItems" : {
12506
+ "anyOf" : [ {
12507
+ "items" : {
12508
+ "type" : "string"
12509
+ },
12510
+ "type" : "array"
12511
+ }, {
12512
+ "additionalProperties" : {
12513
+ "items" : {
12514
+ "type" : "string"
12515
+ },
12516
+ "type" : "array"
12517
+ },
12518
+ "type" : "object"
12519
+ } ],
12520
+ "description" : "Array of instruction items or a map of language code to instruction items (multilang mode)"
12521
+ },
12522
+ "FlowContents_suggestions" : {
12523
+ "anyOf" : [ {
12524
+ "items" : {
12525
+ "$ref" : "#/components/schemas/FlowContentsSuggestion"
12526
+ },
12527
+ "type" : "array"
12528
+ }, {
12529
+ "additionalProperties" : {
12530
+ "items" : {
12531
+ "$ref" : "#/components/schemas/FlowContentsSuggestion"
12532
+ },
12533
+ "type" : "array"
12534
+ },
12535
+ "type" : "object"
12536
+ } ],
12537
+ "description" : "Array of suggestions or a map of language code to suggestion array (multilang mode)"
12538
+ },
12426
12539
  "AdvancedFlowEditorNode_position" : {
12427
12540
  "properties" : {
12428
12541
  "x" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",