@breign/client 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/apis/AgentApi.d.ts +5 -4
  2. package/dist/apis/AgentApi.js +6 -3
  3. package/dist/apis/EngineApi.d.ts +6 -5
  4. package/dist/apis/EngineApi.js +13 -7
  5. package/dist/apis/FilesApi.d.ts +21 -21
  6. package/dist/apis/FilesApi.js +42 -42
  7. package/dist/apis/GeneralApi.d.ts +2 -2
  8. package/dist/apis/GeneralApi.js +3 -3
  9. package/dist/apis/GuardiansApi.d.ts +54 -54
  10. package/dist/apis/GuardiansApi.js +91 -91
  11. package/dist/apis/KnowledgeApi.d.ts +72 -72
  12. package/dist/apis/KnowledgeApi.js +152 -152
  13. package/dist/apis/ManifestsApi.d.ts +28 -28
  14. package/dist/apis/ManifestsApi.js +45 -45
  15. package/dist/apis/MetricsApi.d.ts +14 -14
  16. package/dist/apis/MetricsApi.js +18 -18
  17. package/dist/apis/OrganizationsApi.d.ts +3 -3
  18. package/dist/apis/OrganizationsApi.js +4 -4
  19. package/dist/apis/PromptsApi.d.ts +31 -31
  20. package/dist/apis/PromptsApi.js +60 -60
  21. package/dist/apis/RemotesApi.d.ts +3 -3
  22. package/dist/apis/RemotesApi.js +4 -4
  23. package/dist/apis/ToolsApi.d.ts +6 -6
  24. package/dist/apis/ToolsApi.js +8 -8
  25. package/dist/models/AgentPatchEngineUio.d.ts +38 -0
  26. package/dist/models/AgentPatchEngineUio.js +54 -0
  27. package/dist/models/AgentPatchUio.d.ts +4 -4
  28. package/dist/models/AgentPatchUio.js +3 -3
  29. package/dist/models/AgentRequestUio.d.ts +10 -1
  30. package/dist/models/AgentRequestUio.js +5 -3
  31. package/dist/models/AgentUio.d.ts +10 -3
  32. package/dist/models/AgentUio.js +4 -3
  33. package/dist/models/AppCreateRequestUio.d.ts +6 -0
  34. package/dist/models/AppCreateRequestUio.js +2 -0
  35. package/dist/models/AppSequencesInnerUio.d.ts +38 -0
  36. package/dist/models/AppSequencesInnerUio.js +50 -0
  37. package/dist/models/AppUio.d.ts +24 -3
  38. package/dist/models/AppUio.js +11 -10
  39. package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
  40. package/dist/models/ChatMessageAudioInnerUio.js +54 -0
  41. package/dist/models/ChatMessageUio.d.ts +10 -2
  42. package/dist/models/ChatMessageUio.js +6 -2
  43. package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
  44. package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
  45. package/dist/models/ChatUio.d.ts +9 -3
  46. package/dist/models/ChatUio.js +5 -3
  47. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
  48. package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
  49. package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
  50. package/dist/models/ConversationFlowNodeUio.js +55 -0
  51. package/dist/models/ConversationUio.d.ts +7 -0
  52. package/dist/models/ConversationUio.js +5 -0
  53. package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
  54. package/dist/models/DefaultEngineRequestUio.js +3 -7
  55. package/dist/models/EngineUio.d.ts +4 -7
  56. package/dist/models/EngineUio.js +6 -7
  57. package/dist/models/FileCreationRequestUio.d.ts +1 -1
  58. package/dist/models/FileCreationRequestUio.js +1 -3
  59. package/dist/models/FileCreationResponseUio.d.ts +6 -0
  60. package/dist/models/FileCreationResponseUio.js +2 -0
  61. package/dist/models/FileUio.d.ts +6 -0
  62. package/dist/models/FileUio.js +2 -0
  63. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  64. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  65. package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
  66. package/dist/models/GuardianCreateRequestUio.js +5 -0
  67. package/dist/models/GuardianEngineUio.d.ts +0 -7
  68. package/dist/models/GuardianEngineUio.js +0 -5
  69. package/dist/models/GuardianPutRequestUio.d.ts +7 -0
  70. package/dist/models/GuardianPutRequestUio.js +3 -0
  71. package/dist/models/GuardianTypeUio.d.ts +26 -0
  72. package/dist/models/GuardianTypeUio.js +52 -0
  73. package/dist/models/GuardianUio.d.ts +7 -0
  74. package/dist/models/GuardianUio.js +5 -0
  75. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
  76. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
  77. package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
  78. package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
  79. package/dist/models/KnowledgeBaseUio.d.ts +124 -0
  80. package/dist/models/KnowledgeBaseUio.js +88 -0
  81. package/dist/models/OrganizationUio.d.ts +0 -9
  82. package/dist/models/OrganizationUio.js +0 -6
  83. package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
  84. package/dist/models/ProviderCreateRequestUio.js +4 -9
  85. package/dist/models/ProviderTypeUio.d.ts +27 -0
  86. package/dist/models/ProviderTypeUio.js +53 -0
  87. package/dist/models/ProviderUio.d.ts +4 -9
  88. package/dist/models/ProviderUio.js +4 -9
  89. package/dist/models/index.d.ts +11 -6
  90. package/dist/models/index.js +11 -6
  91. package/dist/openapi.json +369 -120
  92. package/package.json +1 -1
  93. package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
  94. package/dist/models/AgentKnowledgeBaseUio.js +0 -67
  95. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
  96. package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
  97. package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
  98. package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
  99. package/dist/models/EngineTypeUio.d.ts +0 -25
  100. package/dist/models/EngineTypeUio.js +0 -51
  101. package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
  102. package/dist/models/GuardianEngineTypeUio.js +0 -52
  103. package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
  104. package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
@@ -53,16 +53,50 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class PromptsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Create a new empty conversation for the specified agent.
58
+ * Create a new conversation
59
+ */
60
+ async createConversationRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['agentId'] == null) {
62
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createConversation().');
63
+ }
64
+ if (requestParameters['promptFlowCreateRequestUio'] == null) {
65
+ throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversation().');
66
+ }
67
+ const queryParameters = {};
68
+ const headerParameters = {};
69
+ headerParameters['Content-Type'] = 'application/json';
70
+ if (this.configuration && this.configuration.apiKey) {
71
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
72
+ }
73
+ const response = await this.request({
74
+ path: `/conversations`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, index_1.PromptFlowCreateRequestUioToJSON)(requestParameters['promptFlowCreateRequestUio']),
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Create a new empty conversation for the specified agent.
84
+ * Create a new conversation
85
+ */
86
+ async createConversation(agentId, promptFlowCreateRequestUio, initOverrides) {
87
+ const response = await this.createConversationRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
88
+ return await response.value();
89
+ }
56
90
  /**
57
91
  * Starts a new conversation session for the specified agent with flow management
58
92
  * Create a new conversation with flow management
59
93
  */
60
- async agentsAgentIdPromptsFlowsPostRaw(requestParameters, initOverrides) {
94
+ async createConversationWithFlowManagementRaw(requestParameters, initOverrides) {
61
95
  if (requestParameters['agentId'] == null) {
62
- throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling agentsAgentIdPromptsFlowsPost().');
96
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createConversationWithFlowManagement().');
63
97
  }
64
98
  if (requestParameters['promptFlowCreateRequestUio'] == null) {
65
- throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling agentsAgentIdPromptsFlowsPost().');
99
+ throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling createConversationWithFlowManagement().');
66
100
  }
67
101
  const queryParameters = {};
68
102
  const headerParameters = {};
@@ -83,20 +117,20 @@ class PromptsApi extends runtime.BaseAPI {
83
117
  * Starts a new conversation session for the specified agent with flow management
84
118
  * Create a new conversation with flow management
85
119
  */
86
- async agentsAgentIdPromptsFlowsPost(agentId, promptFlowCreateRequestUio, initOverrides) {
87
- const response = await this.agentsAgentIdPromptsFlowsPostRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
120
+ async createConversationWithFlowManagement(agentId, promptFlowCreateRequestUio, initOverrides) {
121
+ const response = await this.createConversationWithFlowManagementRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
88
122
  return await response.value();
89
123
  }
90
124
  /**
91
125
  * Starts a new conversation session for the specified agent
92
- * Create a new conversation
126
+ * Create a new prompt
93
127
  */
94
- async agentsAgentIdPromptsPostRaw(requestParameters, initOverrides) {
128
+ async createPromptRaw(requestParameters, initOverrides) {
95
129
  if (requestParameters['agentId'] == null) {
96
- throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling agentsAgentIdPromptsPost().');
130
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling createPrompt().');
97
131
  }
98
132
  if (requestParameters['promptCreateRequestUio'] == null) {
99
- throw new runtime.RequiredError('promptCreateRequestUio', 'Required parameter "promptCreateRequestUio" was null or undefined when calling agentsAgentIdPromptsPost().');
133
+ throw new runtime.RequiredError('promptCreateRequestUio', 'Required parameter "promptCreateRequestUio" was null or undefined when calling createPrompt().');
100
134
  }
101
135
  const queryParameters = {};
102
136
  const headerParameters = {};
@@ -115,19 +149,19 @@ class PromptsApi extends runtime.BaseAPI {
115
149
  }
116
150
  /**
117
151
  * Starts a new conversation session for the specified agent
118
- * Create a new conversation
152
+ * Create a new prompt
119
153
  */
120
- async agentsAgentIdPromptsPost(agentId, promptCreateRequestUio, initOverrides) {
121
- const response = await this.agentsAgentIdPromptsPostRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio }, initOverrides);
154
+ async createPrompt(agentId, promptCreateRequestUio, initOverrides) {
155
+ const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio }, initOverrides);
122
156
  return await response.value();
123
157
  }
124
158
  /**
125
159
  * Retrieves details of a specific conversation including all messages
126
160
  * Get a conversation by ID
127
161
  */
128
- async conversationsConversationIdGetRaw(requestParameters, initOverrides) {
162
+ async getConversationByIdRaw(requestParameters, initOverrides) {
129
163
  if (requestParameters['conversationId'] == null) {
130
- throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling conversationsConversationIdGet().');
164
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationById().');
131
165
  }
132
166
  const queryParameters = {};
133
167
  const headerParameters = {};
@@ -146,20 +180,20 @@ class PromptsApi extends runtime.BaseAPI {
146
180
  * Retrieves details of a specific conversation including all messages
147
181
  * Get a conversation by ID
148
182
  */
149
- async conversationsConversationIdGet(conversationId, initOverrides) {
150
- const response = await this.conversationsConversationIdGetRaw({ conversationId: conversationId }, initOverrides);
183
+ async getConversationById(conversationId, initOverrides) {
184
+ const response = await this.getConversationByIdRaw({ conversationId: conversationId }, initOverrides);
151
185
  return await response.value();
152
186
  }
153
187
  /**
154
188
  * Retrieves a specific message by ID from a conversation
155
189
  * Get a specific message from a conversation
156
190
  */
157
- async conversationsConversationIdMessagesMessageIdGetRaw(requestParameters, initOverrides) {
191
+ async getMessageByIdRaw(requestParameters, initOverrides) {
158
192
  if (requestParameters['conversationId'] == null) {
159
- throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling conversationsConversationIdMessagesMessageIdGet().');
193
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getMessageById().');
160
194
  }
161
195
  if (requestParameters['messageId'] == null) {
162
- throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling conversationsConversationIdMessagesMessageIdGet().');
196
+ throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling getMessageById().');
163
197
  }
164
198
  const queryParameters = {};
165
199
  const headerParameters = {};
@@ -178,20 +212,20 @@ class PromptsApi extends runtime.BaseAPI {
178
212
  * Retrieves a specific message by ID from a conversation
179
213
  * Get a specific message from a conversation
180
214
  */
181
- async conversationsConversationIdMessagesMessageIdGet(conversationId, messageId, initOverrides) {
182
- const response = await this.conversationsConversationIdMessagesMessageIdGetRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
215
+ async getMessageById(conversationId, messageId, initOverrides) {
216
+ const response = await this.getMessageByIdRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
183
217
  return await response.value();
184
218
  }
185
219
  /**
186
220
  * Adds a new message to an existing conversation and gets the AI response
187
221
  * Send a message to an existing conversation
188
222
  */
189
- async conversationsConversationIdPromptsPostRaw(requestParameters, initOverrides) {
223
+ async sendMessageToConversationRaw(requestParameters, initOverrides) {
190
224
  if (requestParameters['conversationId'] == null) {
191
- throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling conversationsConversationIdPromptsPost().');
225
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling sendMessageToConversation().');
192
226
  }
193
227
  if (requestParameters['messageUio'] == null) {
194
- throw new runtime.RequiredError('messageUio', 'Required parameter "messageUio" was null or undefined when calling conversationsConversationIdPromptsPost().');
228
+ throw new runtime.RequiredError('messageUio', 'Required parameter "messageUio" was null or undefined when calling sendMessageToConversation().');
195
229
  }
196
230
  const queryParameters = {};
197
231
  const headerParameters = {};
@@ -212,42 +246,8 @@ class PromptsApi extends runtime.BaseAPI {
212
246
  * Adds a new message to an existing conversation and gets the AI response
213
247
  * Send a message to an existing conversation
214
248
  */
215
- async conversationsConversationIdPromptsPost(conversationId, messageUio, initOverrides) {
216
- const response = await this.conversationsConversationIdPromptsPostRaw({ conversationId: conversationId, messageUio: messageUio }, initOverrides);
217
- return await response.value();
218
- }
219
- /**
220
- * Create a new empty conversation for the specified agent.
221
- * Create a new conversation
222
- */
223
- async conversationsPostRaw(requestParameters, initOverrides) {
224
- if (requestParameters['agentId'] == null) {
225
- throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling conversationsPost().');
226
- }
227
- if (requestParameters['promptFlowCreateRequestUio'] == null) {
228
- throw new runtime.RequiredError('promptFlowCreateRequestUio', 'Required parameter "promptFlowCreateRequestUio" was null or undefined when calling conversationsPost().');
229
- }
230
- const queryParameters = {};
231
- const headerParameters = {};
232
- headerParameters['Content-Type'] = 'application/json';
233
- if (this.configuration && this.configuration.apiKey) {
234
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
235
- }
236
- const response = await this.request({
237
- path: `/conversations`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
238
- method: 'POST',
239
- headers: headerParameters,
240
- query: queryParameters,
241
- body: (0, index_1.PromptFlowCreateRequestUioToJSON)(requestParameters['promptFlowCreateRequestUio']),
242
- }, initOverrides);
243
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithIdUioFromJSON)(jsonValue));
244
- }
245
- /**
246
- * Create a new empty conversation for the specified agent.
247
- * Create a new conversation
248
- */
249
- async conversationsPost(agentId, promptFlowCreateRequestUio, initOverrides) {
250
- const response = await this.conversationsPostRaw({ agentId: agentId, promptFlowCreateRequestUio: promptFlowCreateRequestUio }, initOverrides);
249
+ async sendMessageToConversation(conversationId, messageUio, initOverrides) {
250
+ const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio }, initOverrides);
251
251
  return await response.value();
252
252
  }
253
253
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { BodyWithMessageUio, PinRequestUio } from '../models/index';
14
- export interface RemotePinRequestsPostRequest {
14
+ export interface CreatePinRequestRequest {
15
15
  pinRequestUio: PinRequestUio;
16
16
  }
17
17
  /**
@@ -22,10 +22,10 @@ export declare class RemotesApi extends runtime.BaseAPI {
22
22
  * Creates a PIN request for remote access
23
23
  * Create a remote access PIN request
24
24
  */
25
- remotePinRequestsPostRaw(requestParameters: RemotePinRequestsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
25
+ createPinRequestRaw(requestParameters: CreatePinRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
26
26
  /**
27
27
  * Creates a PIN request for remote access
28
28
  * Create a remote access PIN request
29
29
  */
30
- remotePinRequestsPost(pinRequestUio: PinRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
30
+ createPinRequest(pinRequestUio: PinRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
31
31
  }
@@ -57,9 +57,9 @@ class RemotesApi extends runtime.BaseAPI {
57
57
  * Creates a PIN request for remote access
58
58
  * Create a remote access PIN request
59
59
  */
60
- async remotePinRequestsPostRaw(requestParameters, initOverrides) {
60
+ async createPinRequestRaw(requestParameters, initOverrides) {
61
61
  if (requestParameters['pinRequestUio'] == null) {
62
- throw new runtime.RequiredError('pinRequestUio', 'Required parameter "pinRequestUio" was null or undefined when calling remotePinRequestsPost().');
62
+ throw new runtime.RequiredError('pinRequestUio', 'Required parameter "pinRequestUio" was null or undefined when calling createPinRequest().');
63
63
  }
64
64
  const queryParameters = {};
65
65
  const headerParameters = {};
@@ -80,8 +80,8 @@ class RemotesApi extends runtime.BaseAPI {
80
80
  * Creates a PIN request for remote access
81
81
  * Create a remote access PIN request
82
82
  */
83
- async remotePinRequestsPost(pinRequestUio, initOverrides) {
84
- const response = await this.remotePinRequestsPostRaw({ pinRequestUio: pinRequestUio }, initOverrides);
83
+ async createPinRequest(pinRequestUio, initOverrides) {
84
+ const response = await this.createPinRequestRaw({ pinRequestUio: pinRequestUio }, initOverrides);
85
85
  return await response.value();
86
86
  }
87
87
  }
@@ -11,12 +11,12 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { STTResponseUio, TTSRequestUio, TTSResponseUio } from '../models/index';
14
- export interface ToolsSpeechToTextPostRequest {
14
+ export interface ConvertSpeechToTextRequest {
15
15
  body: Blob;
16
16
  language?: string;
17
17
  dry?: boolean;
18
18
  }
19
- export interface ToolsTextToSpeechPostRequest {
19
+ export interface ConvertTextToSpeechRequest {
20
20
  tTSRequestUio: TTSRequestUio;
21
21
  dry?: boolean;
22
22
  }
@@ -28,20 +28,20 @@ export declare class ToolsApi extends runtime.BaseAPI {
28
28
  * Transcribes audio files to text using OpenAI\'s Whisper model
29
29
  * Convert speech to text
30
30
  */
31
- toolsSpeechToTextPostRaw(requestParameters: ToolsSpeechToTextPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
31
+ convertSpeechToTextRaw(requestParameters: ConvertSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
32
32
  /**
33
33
  * Transcribes audio files to text using OpenAI\'s Whisper model
34
34
  * Convert speech to text
35
35
  */
36
- toolsSpeechToTextPost(body: Blob, language?: string, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
36
+ convertSpeechToText(body: Blob, language?: string, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
37
37
  /**
38
38
  * Converts text to speech using the specified provider
39
39
  * Convert text to speech
40
40
  */
41
- toolsTextToSpeechPostRaw(requestParameters: ToolsTextToSpeechPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TTSResponseUio>>;
41
+ convertTextToSpeechRaw(requestParameters: ConvertTextToSpeechRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TTSResponseUio>>;
42
42
  /**
43
43
  * Converts text to speech using the specified provider
44
44
  * Convert text to speech
45
45
  */
46
- toolsTextToSpeechPost(tTSRequestUio: TTSRequestUio, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TTSResponseUio>;
46
+ convertTextToSpeech(tTSRequestUio: TTSRequestUio, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TTSResponseUio>;
47
47
  }
@@ -57,9 +57,9 @@ class ToolsApi extends runtime.BaseAPI {
57
57
  * Transcribes audio files to text using OpenAI\'s Whisper model
58
58
  * Convert speech to text
59
59
  */
60
- async toolsSpeechToTextPostRaw(requestParameters, initOverrides) {
60
+ async convertSpeechToTextRaw(requestParameters, initOverrides) {
61
61
  if (requestParameters['body'] == null) {
62
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling toolsSpeechToTextPost().');
62
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling convertSpeechToText().');
63
63
  }
64
64
  const queryParameters = {};
65
65
  if (requestParameters['language'] != null) {
@@ -86,17 +86,17 @@ class ToolsApi extends runtime.BaseAPI {
86
86
  * Transcribes audio files to text using OpenAI\'s Whisper model
87
87
  * Convert speech to text
88
88
  */
89
- async toolsSpeechToTextPost(body, language, dry, initOverrides) {
90
- const response = await this.toolsSpeechToTextPostRaw({ body: body, language: language, dry: dry }, initOverrides);
89
+ async convertSpeechToText(body, language, dry, initOverrides) {
90
+ const response = await this.convertSpeechToTextRaw({ body: body, language: language, dry: dry }, initOverrides);
91
91
  return await response.value();
92
92
  }
93
93
  /**
94
94
  * Converts text to speech using the specified provider
95
95
  * Convert text to speech
96
96
  */
97
- async toolsTextToSpeechPostRaw(requestParameters, initOverrides) {
97
+ async convertTextToSpeechRaw(requestParameters, initOverrides) {
98
98
  if (requestParameters['tTSRequestUio'] == null) {
99
- throw new runtime.RequiredError('tTSRequestUio', 'Required parameter "tTSRequestUio" was null or undefined when calling toolsTextToSpeechPost().');
99
+ throw new runtime.RequiredError('tTSRequestUio', 'Required parameter "tTSRequestUio" was null or undefined when calling convertTextToSpeech().');
100
100
  }
101
101
  const queryParameters = {};
102
102
  if (requestParameters['dry'] != null) {
@@ -120,8 +120,8 @@ class ToolsApi extends runtime.BaseAPI {
120
120
  * Converts text to speech using the specified provider
121
121
  * Convert text to speech
122
122
  */
123
- async toolsTextToSpeechPost(tTSRequestUio, dry, initOverrides) {
124
- const response = await this.toolsTextToSpeechPostRaw({ tTSRequestUio: tTSRequestUio, dry: dry }, initOverrides);
123
+ async convertTextToSpeech(tTSRequestUio, dry, initOverrides) {
124
+ const response = await this.convertTextToSpeechRaw({ tTSRequestUio: tTSRequestUio, dry: dry }, initOverrides);
125
125
  return await response.value();
126
126
  }
127
127
  }
@@ -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 AgentPatchEngineUio
16
+ */
17
+ export interface AgentPatchEngineUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentPatchEngineUio
22
+ */
23
+ providerId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentPatchEngineUio
28
+ */
29
+ model: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentPatchEngineUio interface.
33
+ */
34
+ export declare function instanceOfAgentPatchEngineUio(value: object): value is AgentPatchEngineUio;
35
+ export declare function AgentPatchEngineUioFromJSON(json: any): AgentPatchEngineUio;
36
+ export declare function AgentPatchEngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPatchEngineUio;
37
+ export declare function AgentPatchEngineUioToJSON(json: any): AgentPatchEngineUio;
38
+ export declare function AgentPatchEngineUioToJSONTyped(value?: AgentPatchEngineUio | 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.instanceOfAgentPatchEngineUio = instanceOfAgentPatchEngineUio;
17
+ exports.AgentPatchEngineUioFromJSON = AgentPatchEngineUioFromJSON;
18
+ exports.AgentPatchEngineUioFromJSONTyped = AgentPatchEngineUioFromJSONTyped;
19
+ exports.AgentPatchEngineUioToJSON = AgentPatchEngineUioToJSON;
20
+ exports.AgentPatchEngineUioToJSONTyped = AgentPatchEngineUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentPatchEngineUio interface.
23
+ */
24
+ function instanceOfAgentPatchEngineUio(value) {
25
+ if (!('providerId' in value) || value['providerId'] === undefined)
26
+ return false;
27
+ if (!('model' in value) || value['model'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AgentPatchEngineUioFromJSON(json) {
32
+ return AgentPatchEngineUioFromJSONTyped(json, false);
33
+ }
34
+ function AgentPatchEngineUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'providerId': json['providerId'],
40
+ 'model': json['model'],
41
+ };
42
+ }
43
+ function AgentPatchEngineUioToJSON(json) {
44
+ return AgentPatchEngineUioToJSONTyped(json, false);
45
+ }
46
+ function AgentPatchEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'providerId': value['providerId'],
52
+ 'model': value['model'],
53
+ };
54
+ }
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
13
  import type { PersonaUio } from './PersonaUio';
14
- import type { EngineUio } from './EngineUio';
15
14
  import type { PromptInitUio } from './PromptInitUio';
15
+ import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
16
16
  import type { AgentTypeUio } from './AgentTypeUio';
17
17
  /**
18
18
  *
@@ -34,10 +34,10 @@ export interface AgentPatchUio {
34
34
  name?: string;
35
35
  /**
36
36
  *
37
- * @type {EngineUio}
37
+ * @type {AgentPatchEngineUio}
38
38
  * @memberof AgentPatchUio
39
39
  */
40
- engine?: EngineUio;
40
+ engine?: AgentPatchEngineUio | null;
41
41
  /**
42
42
  *
43
43
  * @type {{ [key: string]: any; }}
@@ -63,7 +63,7 @@ export interface AgentPatchUio {
63
63
  * @type {string}
64
64
  * @memberof AgentPatchUio
65
65
  */
66
- flow?: string;
66
+ flow?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {AgentSubscriptionUio}
@@ -20,8 +20,8 @@ exports.AgentPatchUioToJSON = AgentPatchUioToJSON;
20
20
  exports.AgentPatchUioToJSONTyped = AgentPatchUioToJSONTyped;
21
21
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
22
  const PersonaUio_1 = require("./PersonaUio");
23
- const EngineUio_1 = require("./EngineUio");
24
23
  const PromptInitUio_1 = require("./PromptInitUio");
24
+ const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
25
25
  const AgentTypeUio_1 = require("./AgentTypeUio");
26
26
  /**
27
27
  * Check if a given object implements the AgentPatchUio interface.
@@ -39,7 +39,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
39
39
  return {
40
40
  'id': json['id'] == null ? undefined : json['id'],
41
41
  'name': json['name'] == null ? undefined : json['name'],
42
- 'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
42
+ 'engine': json['engine'] == null ? undefined : (0, AgentPatchEngineUio_1.AgentPatchEngineUioFromJSON)(json['engine']),
43
43
  'modules': json['modules'] == null ? undefined : json['modules'],
44
44
  'persona': json['persona'] == null ? undefined : (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
45
45
  'promptInit': json['promptInit'] == null ? undefined : (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
@@ -72,7 +72,7 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
72
72
  return {
73
73
  'id': value['id'],
74
74
  'name': value['name'],
75
- 'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
75
+ 'engine': (0, AgentPatchEngineUio_1.AgentPatchEngineUioToJSON)(value['engine']),
76
76
  'modules': value['modules'],
77
77
  'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
78
78
  'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AgentModuleUio } from './AgentModuleUio';
12
13
  import type { PersonaUio } from './PersonaUio';
13
14
  import type { EngineUio } from './EngineUio';
14
15
  import type { PromptInitUio } from './PromptInitUio';
@@ -36,7 +37,7 @@ export interface AgentRequestUio {
36
37
  * @type {EngineUio}
37
38
  * @memberof AgentRequestUio
38
39
  */
39
- engine: EngineUio;
40
+ engine?: EngineUio;
40
41
  /**
41
42
  *
42
43
  * @type {PromptInitUio}
@@ -103,6 +104,14 @@ export interface AgentRequestUio {
103
104
  * @memberof AgentRequestUio
104
105
  */
105
106
  isActivated?: boolean;
107
+ /**
108
+ *
109
+ * @type {{ [key: string]: AgentModuleUio; }}
110
+ * @memberof AgentRequestUio
111
+ */
112
+ modules?: {
113
+ [key: string]: AgentModuleUio;
114
+ };
106
115
  }
107
116
  /**
108
117
  * Check if a given object implements the AgentRequestUio interface.
@@ -18,6 +18,8 @@ exports.AgentRequestUioFromJSON = AgentRequestUioFromJSON;
18
18
  exports.AgentRequestUioFromJSONTyped = AgentRequestUioFromJSONTyped;
19
19
  exports.AgentRequestUioToJSON = AgentRequestUioToJSON;
20
20
  exports.AgentRequestUioToJSONTyped = AgentRequestUioToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const AgentModuleUio_1 = require("./AgentModuleUio");
21
23
  const PersonaUio_1 = require("./PersonaUio");
22
24
  const EngineUio_1 = require("./EngineUio");
23
25
  const PromptInitUio_1 = require("./PromptInitUio");
@@ -30,8 +32,6 @@ function instanceOfAgentRequestUio(value) {
30
32
  return false;
31
33
  if (!('persona' in value) || value['persona'] === undefined)
32
34
  return false;
33
- if (!('engine' in value) || value['engine'] === undefined)
34
- return false;
35
35
  if (!('promptInit' in value) || value['promptInit'] === undefined)
36
36
  return false;
37
37
  if (!('organisationId' in value) || value['organisationId'] === undefined)
@@ -48,7 +48,7 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
48
48
  return {
49
49
  'name': json['name'],
50
50
  'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
51
- 'engine': (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
51
+ 'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
52
52
  'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
53
53
  'profilePicture': json['profilePicture'] == null ? undefined : (0, AgentRequestProfilePictureUio_1.AgentRequestProfilePictureUioFromJSON)(json['profilePicture']),
54
54
  'organisationId': json['organisationId'],
@@ -60,6 +60,7 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'picture': json['picture'] == null ? undefined : json['picture'],
61
61
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
62
  'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
63
+ 'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
63
64
  };
64
65
  }
65
66
  function AgentRequestUioToJSON(json) {
@@ -84,5 +85,6 @@ function AgentRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
84
85
  'picture': value['picture'],
85
86
  'createdAt': value['createdAt'],
86
87
  'isActivated': value['isActivated'],
88
+ 'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
87
89
  };
88
90
  }
@@ -14,7 +14,6 @@ import type { AgentToolUio } from './AgentToolUio';
14
14
  import type { PersonaUio } from './PersonaUio';
15
15
  import type { EngineUio } from './EngineUio';
16
16
  import type { PromptInitUio } from './PromptInitUio';
17
- import type { AgentKnowledgeBaseUio } from './AgentKnowledgeBaseUio';
18
17
  import type { AgentTypeUio } from './AgentTypeUio';
19
18
  /**
20
19
  *
@@ -56,10 +55,10 @@ export interface AgentUio {
56
55
  tools?: Array<AgentToolUio>;
57
56
  /**
58
57
  *
59
- * @type {Array<AgentKnowledgeBaseUio>}
58
+ * @type {Array<string>}
60
59
  * @memberof AgentUio
61
60
  */
62
- knowledgeBases?: Array<AgentKnowledgeBaseUio>;
61
+ knowledgeBaseIds?: Array<string>;
63
62
  /**
64
63
  *
65
64
  * @type {PersonaUio}
@@ -176,6 +175,14 @@ export interface AgentUio {
176
175
  * @memberof AgentUio
177
176
  */
178
177
  agentType?: AgentTypeUio;
178
+ /**
179
+ *
180
+ * @type {{ [key: string]: any; }}
181
+ * @memberof AgentUio
182
+ */
183
+ favoriteOutfit?: {
184
+ [key: string]: any;
185
+ };
179
186
  }
180
187
  /**
181
188
  * Check if a given object implements the AgentUio interface.
@@ -23,7 +23,6 @@ const AgentToolUio_1 = require("./AgentToolUio");
23
23
  const PersonaUio_1 = require("./PersonaUio");
24
24
  const EngineUio_1 = require("./EngineUio");
25
25
  const PromptInitUio_1 = require("./PromptInitUio");
26
- const AgentKnowledgeBaseUio_1 = require("./AgentKnowledgeBaseUio");
27
26
  const AgentTypeUio_1 = require("./AgentTypeUio");
28
27
  /**
29
28
  * Check if a given object implements the AgentUio interface.
@@ -56,7 +55,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
56
55
  'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
57
56
  'modules': json['modules'],
58
57
  'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
59
- 'knowledgeBases': json['knowledgeBases'] == null ? undefined : (json['knowledgeBases'].map(AgentKnowledgeBaseUio_1.AgentKnowledgeBaseUioFromJSON)),
58
+ 'knowledgeBaseIds': json['knowledgeBaseIds'] == null ? undefined : json['knowledgeBaseIds'],
60
59
  'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
61
60
  'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
62
61
  'flow': json['flow'] == null ? undefined : json['flow'],
@@ -76,6 +75,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
76
75
  'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
77
76
  'deleted': json['deleted'] == null ? undefined : json['deleted'],
78
77
  'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
78
+ 'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
79
79
  };
80
80
  }
81
81
  function AgentUioToJSON(json) {
@@ -91,7 +91,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
91
91
  'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
92
92
  'modules': value['modules'],
93
93
  'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
94
- 'knowledgeBases': value['knowledgeBases'] == null ? undefined : (value['knowledgeBases'].map(AgentKnowledgeBaseUio_1.AgentKnowledgeBaseUioToJSON)),
94
+ 'knowledgeBaseIds': value['knowledgeBaseIds'],
95
95
  'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
96
96
  'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
97
97
  'flow': value['flow'],
@@ -111,5 +111,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
111
111
  'isTemplate': value['isTemplate'],
112
112
  'deleted': value['deleted'],
113
113
  'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
114
+ 'favoriteOutfit': value['favoriteOutfit'],
114
115
  };
115
116
  }