@breign/client 1.0.109 → 1.0.110

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 (60) hide show
  1. package/dist/apis/AppApi.d.ts +92 -18
  2. package/dist/apis/AppApi.js +196 -32
  3. package/dist/apis/KnowledgeApi.d.ts +120 -8
  4. package/dist/apis/KnowledgeApi.js +268 -30
  5. package/dist/apis/PromptsApi.d.ts +3 -3
  6. package/dist/apis/PromptsApi.js +3 -2
  7. package/dist/apis/ToolsApi.d.ts +42 -1
  8. package/dist/apis/ToolsApi.js +87 -0
  9. package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
  10. package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
  11. package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
  12. package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
  13. package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
  14. package/dist/models/AddCustomFillerRequestUio.js +50 -0
  15. package/dist/models/AgentPatchUio.d.ts +1 -1
  16. package/dist/models/AgentUio.d.ts +1 -1
  17. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  18. package/dist/models/FileCreationRequestUio.js +2 -0
  19. package/dist/models/FileCreationResponseUio.d.ts +38 -0
  20. package/dist/models/FileCreationResponseUio.js +18 -0
  21. package/dist/models/FileUio.d.ts +38 -0
  22. package/dist/models/FileUio.js +18 -0
  23. package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
  24. package/dist/models/FileWithDownloadUrlUio.js +18 -0
  25. package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
  26. package/dist/models/KnowledgeSitePageUio.js +101 -0
  27. package/dist/models/MessageStatusErrorUio.d.ts +38 -0
  28. package/dist/models/MessageStatusErrorUio.js +50 -0
  29. package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
  30. package/dist/models/MessageStatusToolCallUio.js +54 -0
  31. package/dist/models/MessageStatusUio.d.ts +79 -0
  32. package/dist/models/MessageStatusUio.js +73 -0
  33. package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
  34. package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
  35. package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
  36. package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
  37. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
  38. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
  39. package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
  40. package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
  41. package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
  42. package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
  43. package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
  44. package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
  45. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
  46. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
  47. package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
  48. package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
  49. package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
  50. package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
  51. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
  52. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
  53. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
  54. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
  55. package/dist/models/index.d.ts +18 -1
  56. package/dist/models/index.js +18 -1
  57. package/dist/openapi.json +1365 -282
  58. package/package.json +1 -1
  59. package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
  60. package/dist/models/AudioFillerExistsResponseUio.js +0 -50
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
13
+ import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageStatusUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
14
14
  export interface CreateConversationRequest {
15
15
  agentId: string;
16
16
  promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
@@ -106,12 +106,12 @@ export declare class PromptsApi extends runtime.BaseAPI {
106
106
  * Get the status of a message
107
107
  * Get the status of a message
108
108
  */
109
- getMessageStatusRaw(requestParameters: GetMessageStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
109
+ getMessageStatusRaw(requestParameters: GetMessageStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageStatusUio>>;
110
110
  /**
111
111
  * Get the status of a message
112
112
  * Get the status of a message
113
113
  */
114
- getMessageStatus(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
+ getMessageStatus(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageStatusUio>;
115
115
  /**
116
116
  * Adds a new message to an existing conversation and gets the AI response
117
117
  * Send a message to an existing conversation
@@ -250,14 +250,15 @@ class PromptsApi extends runtime.BaseAPI {
250
250
  headers: headerParameters,
251
251
  query: queryParameters,
252
252
  }, initOverrides);
253
- return new runtime.VoidApiResponse(response);
253
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageStatusUioFromJSON)(jsonValue));
254
254
  }
255
255
  /**
256
256
  * Get the status of a message
257
257
  * Get the status of a message
258
258
  */
259
259
  async getMessageStatus(conversationId, messageId, initOverrides) {
260
- await this.getMessageStatusRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
260
+ const response = await this.getMessageStatusRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
261
+ return await response.value();
261
262
  }
262
263
  /**
263
264
  * Adds a new message to an existing conversation and gets the AI response
@@ -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, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
13
+ import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } 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 DeleteToolStaticCredentialsRequest {
34
+ toolId: string;
35
+ }
33
36
  export interface DisconnectOAuth2ToolRequest {
34
37
  toolId: string;
35
38
  }
@@ -69,6 +72,10 @@ export interface UpdateToolRequest {
69
72
  toolId: string;
70
73
  toolUpdateRequestUio: ToolUpdateRequestUio;
71
74
  }
75
+ export interface UpdateToolStaticCredentialsRequest {
76
+ toolId: string;
77
+ updateToolStaticCredentialsRequestUio: UpdateToolStaticCredentialsRequestUio;
78
+ }
72
79
  /**
73
80
  *
74
81
  */
@@ -119,6 +126,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
119
126
  * Delete a tool
120
127
  */
121
128
  deleteTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
129
+ /**
130
+ * Remove the stored static credentials of the current user on a user-scoped tool
131
+ * Clear user static credentials for a tool
132
+ */
133
+ deleteToolStaticCredentialsRaw(requestParameters: DeleteToolStaticCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
134
+ /**
135
+ * Remove the stored static credentials of the current user on a user-scoped tool
136
+ * Clear user static credentials for a tool
137
+ */
138
+ deleteToolStaticCredentials(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
122
139
  /**
123
140
  * Removes OAuth2 tokens/credentials from the specified tool
124
141
  * Disconnect OAuth2 from a tool
@@ -139,6 +156,20 @@ export declare class ToolsApi extends runtime.BaseAPI {
139
156
  * Get the current user\'s connection status for a tool
140
157
  */
141
158
  getToolConnectionStatus(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolConnectionStatusResponseUio>;
159
+ /**
160
+ * Get the list of active tool presets
161
+ * Get tool presets
162
+ */
163
+ getToolPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
164
+ [key: string]: any;
165
+ }>>>;
166
+ /**
167
+ * Get the list of active tool presets
168
+ * Get tool presets
169
+ */
170
+ getToolPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
171
+ [key: string]: any;
172
+ }>>;
142
173
  /**
143
174
  * Get a specific tool (UI-safe)
144
175
  */
@@ -209,4 +240,14 @@ export declare class ToolsApi extends runtime.BaseAPI {
209
240
  * Update a tool
210
241
  */
211
242
  updateTool(toolId: string, toolUpdateRequestUio: ToolUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
243
+ /**
244
+ * Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
245
+ * Set user static credentials for a tool
246
+ */
247
+ updateToolStaticCredentialsRaw(requestParameters: UpdateToolStaticCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
248
+ /**
249
+ * Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
250
+ * Set user static credentials for a tool
251
+ */
252
+ updateToolStaticCredentials(toolId: string, updateToolStaticCredentialsRequestUio: UpdateToolStaticCredentialsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
212
253
  }
@@ -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
+ * Remove the stored static credentials of the current user on a user-scoped tool
216
+ * Clear user static credentials for a tool
217
+ */
218
+ async deleteToolStaticCredentialsRaw(requestParameters, initOverrides) {
219
+ if (requestParameters['toolId'] == null) {
220
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling deleteToolStaticCredentials().');
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}/credentials/static`.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
+ * Remove the stored static credentials of the current user on a user-scoped tool
237
+ * Clear user static credentials for a tool
238
+ */
239
+ async deleteToolStaticCredentials(toolId, initOverrides) {
240
+ await this.deleteToolStaticCredentialsRaw({ toolId: toolId }, initOverrides);
241
+ }
214
242
  /**
215
243
  * Removes OAuth2 tokens/credentials from the specified tool
216
244
  * Disconnect OAuth2 from a tool
@@ -268,6 +296,32 @@ class ToolsApi extends runtime.BaseAPI {
268
296
  const response = await this.getToolConnectionStatusRaw({ toolId: toolId }, initOverrides);
269
297
  return await response.value();
270
298
  }
299
+ /**
300
+ * Get the list of active tool presets
301
+ * Get tool presets
302
+ */
303
+ async getToolPresetsRaw(initOverrides) {
304
+ const queryParameters = {};
305
+ const headerParameters = {};
306
+ if (this.configuration && this.configuration.apiKey) {
307
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
308
+ }
309
+ const response = await this.request({
310
+ path: `/tool-presets`,
311
+ method: 'GET',
312
+ headers: headerParameters,
313
+ query: queryParameters,
314
+ }, initOverrides);
315
+ return new runtime.JSONApiResponse(response);
316
+ }
317
+ /**
318
+ * Get the list of active tool presets
319
+ * Get tool presets
320
+ */
321
+ async getToolPresets(initOverrides) {
322
+ const response = await this.getToolPresetsRaw(initOverrides);
323
+ return await response.value();
324
+ }
271
325
  /**
272
326
  * Get a specific tool (UI-safe)
273
327
  */
@@ -524,5 +578,38 @@ class ToolsApi extends runtime.BaseAPI {
524
578
  async updateTool(toolId, toolUpdateRequestUio, initOverrides) {
525
579
  await this.updateToolRaw({ toolId: toolId, toolUpdateRequestUio: toolUpdateRequestUio }, initOverrides);
526
580
  }
581
+ /**
582
+ * Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
583
+ * Set user static credentials for a tool
584
+ */
585
+ async updateToolStaticCredentialsRaw(requestParameters, initOverrides) {
586
+ if (requestParameters['toolId'] == null) {
587
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateToolStaticCredentials().');
588
+ }
589
+ if (requestParameters['updateToolStaticCredentialsRequestUio'] == null) {
590
+ throw new runtime.RequiredError('updateToolStaticCredentialsRequestUio', 'Required parameter "updateToolStaticCredentialsRequestUio" was null or undefined when calling updateToolStaticCredentials().');
591
+ }
592
+ const queryParameters = {};
593
+ const headerParameters = {};
594
+ headerParameters['Content-Type'] = 'application/json';
595
+ if (this.configuration && this.configuration.apiKey) {
596
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
597
+ }
598
+ const response = await this.request({
599
+ path: `/tools/{toolId}/credentials/static`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
600
+ method: 'PUT',
601
+ headers: headerParameters,
602
+ query: queryParameters,
603
+ body: (0, index_1.UpdateToolStaticCredentialsRequestUioToJSON)(requestParameters['updateToolStaticCredentialsRequestUio']),
604
+ }, initOverrides);
605
+ return new runtime.VoidApiResponse(response);
606
+ }
607
+ /**
608
+ * Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
609
+ * Set user static credentials for a tool
610
+ */
611
+ async updateToolStaticCredentials(toolId, updateToolStaticCredentialsRequestUio, initOverrides) {
612
+ await this.updateToolStaticCredentialsRaw({ toolId: toolId, updateToolStaticCredentialsRequestUio: updateToolStaticCredentialsRequestUio }, initOverrides);
613
+ }
527
614
  }
528
615
  exports.ToolsApi = ToolsApi;
@@ -0,0 +1,50 @@
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 AddCustomFiller201ResponseFillerUio
16
+ */
17
+ export interface AddCustomFiller201ResponseFillerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddCustomFiller201ResponseFillerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AddCustomFiller201ResponseFillerUio
28
+ */
29
+ text: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof AddCustomFiller201ResponseFillerUio
34
+ */
35
+ checked: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AddCustomFiller201ResponseFillerUio
40
+ */
41
+ isCustom: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AddCustomFiller201ResponseFillerUio interface.
45
+ */
46
+ export declare function instanceOfAddCustomFiller201ResponseFillerUio(value: object): value is AddCustomFiller201ResponseFillerUio;
47
+ export declare function AddCustomFiller201ResponseFillerUioFromJSON(json: any): AddCustomFiller201ResponseFillerUio;
48
+ export declare function AddCustomFiller201ResponseFillerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCustomFiller201ResponseFillerUio;
49
+ export declare function AddCustomFiller201ResponseFillerUioToJSON(json: any): AddCustomFiller201ResponseFillerUio;
50
+ export declare function AddCustomFiller201ResponseFillerUioToJSONTyped(value?: AddCustomFiller201ResponseFillerUio | 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.instanceOfAddCustomFiller201ResponseFillerUio = instanceOfAddCustomFiller201ResponseFillerUio;
17
+ exports.AddCustomFiller201ResponseFillerUioFromJSON = AddCustomFiller201ResponseFillerUioFromJSON;
18
+ exports.AddCustomFiller201ResponseFillerUioFromJSONTyped = AddCustomFiller201ResponseFillerUioFromJSONTyped;
19
+ exports.AddCustomFiller201ResponseFillerUioToJSON = AddCustomFiller201ResponseFillerUioToJSON;
20
+ exports.AddCustomFiller201ResponseFillerUioToJSONTyped = AddCustomFiller201ResponseFillerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AddCustomFiller201ResponseFillerUio interface.
23
+ */
24
+ function instanceOfAddCustomFiller201ResponseFillerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('text' in value) || value['text'] === undefined)
28
+ return false;
29
+ if (!('checked' in value) || value['checked'] === undefined)
30
+ return false;
31
+ if (!('isCustom' in value) || value['isCustom'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AddCustomFiller201ResponseFillerUioFromJSON(json) {
36
+ return AddCustomFiller201ResponseFillerUioFromJSONTyped(json, false);
37
+ }
38
+ function AddCustomFiller201ResponseFillerUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'text': json['text'],
45
+ 'checked': json['checked'],
46
+ 'isCustom': json['isCustom'],
47
+ };
48
+ }
49
+ function AddCustomFiller201ResponseFillerUioToJSON(json) {
50
+ return AddCustomFiller201ResponseFillerUioToJSONTyped(json, false);
51
+ }
52
+ function AddCustomFiller201ResponseFillerUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'text': value['text'],
59
+ 'checked': value['checked'],
60
+ 'isCustom': value['isCustom'],
61
+ };
62
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AddCustomFiller201ResponseFillerUio } from './AddCustomFiller201ResponseFillerUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddCustomFiller201ResponseUio
17
+ */
18
+ export interface AddCustomFiller201ResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AddCustomFiller201ResponseUio
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {AddCustomFiller201ResponseFillerUio}
28
+ * @memberof AddCustomFiller201ResponseUio
29
+ */
30
+ filler: AddCustomFiller201ResponseFillerUio;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AddCustomFiller201ResponseUio interface.
34
+ */
35
+ export declare function instanceOfAddCustomFiller201ResponseUio(value: object): value is AddCustomFiller201ResponseUio;
36
+ export declare function AddCustomFiller201ResponseUioFromJSON(json: any): AddCustomFiller201ResponseUio;
37
+ export declare function AddCustomFiller201ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCustomFiller201ResponseUio;
38
+ export declare function AddCustomFiller201ResponseUioToJSON(json: any): AddCustomFiller201ResponseUio;
39
+ export declare function AddCustomFiller201ResponseUioToJSONTyped(value?: AddCustomFiller201ResponseUio | 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.instanceOfAddCustomFiller201ResponseUio = instanceOfAddCustomFiller201ResponseUio;
17
+ exports.AddCustomFiller201ResponseUioFromJSON = AddCustomFiller201ResponseUioFromJSON;
18
+ exports.AddCustomFiller201ResponseUioFromJSONTyped = AddCustomFiller201ResponseUioFromJSONTyped;
19
+ exports.AddCustomFiller201ResponseUioToJSON = AddCustomFiller201ResponseUioToJSON;
20
+ exports.AddCustomFiller201ResponseUioToJSONTyped = AddCustomFiller201ResponseUioToJSONTyped;
21
+ const AddCustomFiller201ResponseFillerUio_1 = require("./AddCustomFiller201ResponseFillerUio");
22
+ /**
23
+ * Check if a given object implements the AddCustomFiller201ResponseUio interface.
24
+ */
25
+ function instanceOfAddCustomFiller201ResponseUio(value) {
26
+ if (!('message' in value) || value['message'] === undefined)
27
+ return false;
28
+ if (!('filler' in value) || value['filler'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AddCustomFiller201ResponseUioFromJSON(json) {
33
+ return AddCustomFiller201ResponseUioFromJSONTyped(json, false);
34
+ }
35
+ function AddCustomFiller201ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'message': json['message'],
41
+ 'filler': (0, AddCustomFiller201ResponseFillerUio_1.AddCustomFiller201ResponseFillerUioFromJSON)(json['filler']),
42
+ };
43
+ }
44
+ function AddCustomFiller201ResponseUioToJSON(json) {
45
+ return AddCustomFiller201ResponseUioToJSONTyped(json, false);
46
+ }
47
+ function AddCustomFiller201ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'message': value['message'],
53
+ 'filler': (0, AddCustomFiller201ResponseFillerUio_1.AddCustomFiller201ResponseFillerUioToJSON)(value['filler']),
54
+ };
55
+ }
@@ -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 AddCustomFillerRequestUio
16
+ */
17
+ export interface AddCustomFillerRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddCustomFillerRequestUio
22
+ */
23
+ text: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AddCustomFillerRequestUio interface.
27
+ */
28
+ export declare function instanceOfAddCustomFillerRequestUio(value: object): value is AddCustomFillerRequestUio;
29
+ export declare function AddCustomFillerRequestUioFromJSON(json: any): AddCustomFillerRequestUio;
30
+ export declare function AddCustomFillerRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCustomFillerRequestUio;
31
+ export declare function AddCustomFillerRequestUioToJSON(json: any): AddCustomFillerRequestUio;
32
+ export declare function AddCustomFillerRequestUioToJSONTyped(value?: AddCustomFillerRequestUio | 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.instanceOfAddCustomFillerRequestUio = instanceOfAddCustomFillerRequestUio;
17
+ exports.AddCustomFillerRequestUioFromJSON = AddCustomFillerRequestUioFromJSON;
18
+ exports.AddCustomFillerRequestUioFromJSONTyped = AddCustomFillerRequestUioFromJSONTyped;
19
+ exports.AddCustomFillerRequestUioToJSON = AddCustomFillerRequestUioToJSON;
20
+ exports.AddCustomFillerRequestUioToJSONTyped = AddCustomFillerRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AddCustomFillerRequestUio interface.
23
+ */
24
+ function instanceOfAddCustomFillerRequestUio(value) {
25
+ if (!('text' in value) || value['text'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AddCustomFillerRequestUioFromJSON(json) {
30
+ return AddCustomFillerRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function AddCustomFillerRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'text': json['text'],
38
+ };
39
+ }
40
+ function AddCustomFillerRequestUioToJSON(json) {
41
+ return AddCustomFillerRequestUioToJSONTyped(json, false);
42
+ }
43
+ function AddCustomFillerRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'text': value['text'],
49
+ };
50
+ }
@@ -186,7 +186,7 @@ export interface AgentPatchUio {
186
186
  * @type {ContextualKnowledgeConversationUio}
187
187
  * @memberof AgentPatchUio
188
188
  */
189
- contextualKnowledgeConversation?: ContextualKnowledgeConversationUio;
189
+ contextualKnowledgeConversation?: ContextualKnowledgeConversationUio | null;
190
190
  }
191
191
  /**
192
192
  * Check if a given object implements the AgentPatchUio interface.
@@ -221,7 +221,7 @@ export interface AgentUio {
221
221
  * @type {ContextualKnowledgeConversationUio}
222
222
  * @memberof AgentUio
223
223
  */
224
- contextualKnowledgeConversation?: ContextualKnowledgeConversationUio;
224
+ contextualKnowledgeConversation?: ContextualKnowledgeConversationUio | null;
225
225
  /**
226
226
  *
227
227
  * @type {AgentCreatorUio}
@@ -45,6 +45,12 @@ export interface FileCreationRequestUio {
45
45
  * @memberof FileCreationRequestUio
46
46
  */
47
47
  hash?: string;
48
+ /**
49
+ * Whether the file is a FAQ document
50
+ * @type {boolean}
51
+ * @memberof FileCreationRequestUio
52
+ */
53
+ isFAQ?: boolean;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the FileCreationRequestUio interface.
@@ -43,6 +43,7 @@ function FileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'ext': json['ext'],
44
44
  'size': json['size'],
45
45
  'hash': json['hash'] == null ? undefined : json['hash'],
46
+ 'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
46
47
  };
47
48
  }
48
49
  function FileCreationRequestUioToJSON(json) {
@@ -58,5 +59,6 @@ function FileCreationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
58
59
  'ext': value['ext'],
59
60
  'size': value['size'],
60
61
  'hash': value['hash'],
62
+ 'isFAQ': value['isFAQ'],
61
63
  };
62
64
  }
@@ -28,6 +28,36 @@ export interface FileCreationResponseUio {
28
28
  * @memberof FileCreationResponseUio
29
29
  */
30
30
  id: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof FileCreationResponseUio
35
+ */
36
+ knowledgeBaseId?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FileCreationResponseUio
41
+ */
42
+ knowledgeType?: FileCreationResponseUioKnowledgeTypeEnum;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof FileCreationResponseUio
47
+ */
48
+ isFAQ?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof FileCreationResponseUio
53
+ */
54
+ uploadId?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof FileCreationResponseUio
59
+ */
60
+ hash?: string;
31
61
  /**
32
62
  *
33
63
  * @type {string}
@@ -91,6 +121,14 @@ export interface FileCreationResponseUio {
91
121
  */
92
122
  isActive?: boolean;
93
123
  }
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const FileCreationResponseUioKnowledgeTypeEnum: {
128
+ readonly File: "file";
129
+ readonly Website: "website";
130
+ };
131
+ export type FileCreationResponseUioKnowledgeTypeEnum = typeof FileCreationResponseUioKnowledgeTypeEnum[keyof typeof FileCreationResponseUioKnowledgeTypeEnum];
94
132
  /**
95
133
  * Check if a given object implements the FileCreationResponseUio interface.
96
134
  */
@@ -13,12 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileCreationResponseUioKnowledgeTypeEnum = void 0;
16
17
  exports.instanceOfFileCreationResponseUio = instanceOfFileCreationResponseUio;
17
18
  exports.FileCreationResponseUioFromJSON = FileCreationResponseUioFromJSON;
18
19
  exports.FileCreationResponseUioFromJSONTyped = FileCreationResponseUioFromJSONTyped;
19
20
  exports.FileCreationResponseUioToJSON = FileCreationResponseUioToJSON;
20
21
  exports.FileCreationResponseUioToJSONTyped = FileCreationResponseUioToJSONTyped;
21
22
  const FileStatusUio_1 = require("./FileStatusUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.FileCreationResponseUioKnowledgeTypeEnum = {
27
+ File: 'file',
28
+ Website: 'website'
29
+ };
22
30
  /**
23
31
  * Check if a given object implements the FileCreationResponseUio interface.
24
32
  */
@@ -41,6 +49,11 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
41
49
  return {
42
50
  'name': json['name'] == null ? undefined : json['name'],
43
51
  'id': json['id'],
52
+ 'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
53
+ 'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
54
+ 'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
55
+ 'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
56
+ 'hash': json['hash'] == null ? undefined : json['hash'],
44
57
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
45
58
  'ext': json['ext'] == null ? undefined : json['ext'],
46
59
  'key': json['key'] == null ? undefined : json['key'],
@@ -63,6 +76,11 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
63
76
  return {
64
77
  'name': value['name'],
65
78
  'id': value['id'],
79
+ 'knowledgeBaseId': value['knowledgeBaseId'],
80
+ 'knowledgeType': value['knowledgeType'],
81
+ 'isFAQ': value['isFAQ'],
82
+ 'uploadId': value['uploadId'],
83
+ 'hash': value['hash'],
66
84
  'contentType': value['contentType'],
67
85
  'ext': value['ext'],
68
86
  'key': value['key'],