@breign/client 1.0.117 → 1.0.119
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.
- package/dist/apis/AgentApi.d.ts +18 -1
- package/dist/apis/AgentApi.js +43 -0
- package/dist/apis/AppApi.d.ts +18 -1
- package/dist/apis/AppApi.js +43 -0
- package/dist/apis/ConversationsApi.d.ts +15 -1
- package/dist/apis/ConversationsApi.js +22 -3
- package/dist/apis/EnginesApi.d.ts +31 -0
- package/dist/apis/EnginesApi.js +86 -0
- package/dist/apis/ToolsApi.d.ts +7 -3
- package/dist/apis/ToolsApi.js +15 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentUio.d.ts +7 -0
- package/dist/models/AgentUio.js +3 -0
- package/dist/models/AppCreateRequestUio.d.ts +7 -0
- package/dist/models/AppCreateRequestUio.js +3 -0
- package/dist/models/AppUio.d.ts +7 -0
- package/dist/models/AppUio.js +3 -0
- package/dist/models/AppUpdateRequestUio.d.ts +7 -0
- package/dist/models/AppUpdateRequestUio.js +3 -0
- package/dist/models/ModelDefinitionUio.d.ts +6 -0
- package/dist/models/ModelDefinitionUio.js +2 -0
- package/dist/models/SpeechToTextConfigUio.d.ts +38 -0
- package/dist/models/SpeechToTextConfigUio.js +54 -0
- package/dist/models/SpeechToTextProviderModelsInnerUio.d.ts +44 -0
- package/dist/models/SpeechToTextProviderModelsInnerUio.js +56 -0
- package/dist/models/SpeechToTextProviderUio.d.ts +51 -0
- package/dist/models/SpeechToTextProviderUio.js +63 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/openapi.json +403 -27
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,11 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
agentModuleUio: AgentModuleUio;
|
|
17
17
|
}
|
|
18
|
+
export interface ConvertAgentSpeechToTextRequest {
|
|
19
|
+
agentId: string;
|
|
20
|
+
body: Blob;
|
|
21
|
+
language?: string;
|
|
22
|
+
dry?: boolean;
|
|
23
|
+
model?: string;
|
|
24
|
+
}
|
|
18
25
|
export interface CreateAgentRequest {
|
|
19
26
|
agentRequestUio: AgentRequestUio;
|
|
20
27
|
}
|
|
@@ -185,6 +192,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
185
192
|
* Add a module to an agent
|
|
186
193
|
*/
|
|
187
194
|
addModule(agentId: string, agentModuleUio: AgentModuleUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
195
|
+
/**
|
|
196
|
+
* Transcribes audio using the agent\'s speech-to-text configuration.
|
|
197
|
+
* Convert speech to text for an agent
|
|
198
|
+
*/
|
|
199
|
+
convertAgentSpeechToTextRaw(requestParameters: ConvertAgentSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
|
|
200
|
+
/**
|
|
201
|
+
* Transcribes audio using the agent\'s speech-to-text configuration.
|
|
202
|
+
* Convert speech to text for an agent
|
|
203
|
+
*/
|
|
204
|
+
convertAgentSpeechToText(agentId: string, body: Blob, language?: string, dry?: boolean, model?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
|
|
188
205
|
/**
|
|
189
206
|
* Creates a new agent with specified configuration (admin only)
|
|
190
207
|
* Create a new agent
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -87,6 +87,49 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
87
87
|
const response = await this.addModuleRaw({ agentId: agentId, agentModuleUio: agentModuleUio }, initOverrides);
|
|
88
88
|
return await response.value();
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Transcribes audio using the agent\'s speech-to-text configuration.
|
|
92
|
+
* Convert speech to text for an agent
|
|
93
|
+
*/
|
|
94
|
+
async convertAgentSpeechToTextRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['agentId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling convertAgentSpeechToText().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['body'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling convertAgentSpeechToText().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
if (requestParameters['language'] != null) {
|
|
103
|
+
queryParameters['language'] = requestParameters['language'];
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['dry'] != null) {
|
|
106
|
+
queryParameters['dry'] = requestParameters['dry'];
|
|
107
|
+
}
|
|
108
|
+
if (requestParameters['model'] != null) {
|
|
109
|
+
queryParameters['model'] = requestParameters['model'];
|
|
110
|
+
}
|
|
111
|
+
const headerParameters = {};
|
|
112
|
+
headerParameters['Content-Type'] = 'audio/wav';
|
|
113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
115
|
+
}
|
|
116
|
+
const response = await this.request({
|
|
117
|
+
path: `/agents/{agentId}/speech-to-text`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
118
|
+
method: 'POST',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
body: requestParameters['body'],
|
|
122
|
+
}, initOverrides);
|
|
123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.STTResponseUioFromJSON)(jsonValue));
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Transcribes audio using the agent\'s speech-to-text configuration.
|
|
127
|
+
* Convert speech to text for an agent
|
|
128
|
+
*/
|
|
129
|
+
async convertAgentSpeechToText(agentId, body, language, dry, model, initOverrides) {
|
|
130
|
+
const response = await this.convertAgentSpeechToTextRaw({ agentId: agentId, body: body, language: language, dry: dry, model: model }, initOverrides);
|
|
131
|
+
return await response.value();
|
|
132
|
+
}
|
|
90
133
|
/**
|
|
91
134
|
* Creates a new agent with specified configuration (admin only)
|
|
92
135
|
* Create a new agent
|
package/dist/apis/AppApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddCustomFiller201ResponseUio, AddCustomFillerRequestUio, AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppInstanceListItemUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio, UpdateSelectedFillers200ResponseUio, UpdateSelectedFillersRequestUio } from '../models/index';
|
|
13
|
+
import type { AddCustomFiller201ResponseUio, AddCustomFillerRequestUio, AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppInstanceListItemUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, STTResponseUio, SequenceCreateRequestUio, UpdateSelectedFillers200ResponseUio, UpdateSelectedFillersRequestUio } from '../models/index';
|
|
14
14
|
export interface AddAnimationRequest {
|
|
15
15
|
appId: string;
|
|
16
16
|
animationCreateRequestUio: AnimationCreateRequestUio;
|
|
@@ -35,6 +35,13 @@ export interface CheckAudioFillerExistsRequest {
|
|
|
35
35
|
language: string;
|
|
36
36
|
fillersIds?: string;
|
|
37
37
|
}
|
|
38
|
+
export interface ConvertAppSpeechToTextRequest {
|
|
39
|
+
appId: string;
|
|
40
|
+
body: Blob;
|
|
41
|
+
language?: string;
|
|
42
|
+
dry?: boolean;
|
|
43
|
+
model?: string;
|
|
44
|
+
}
|
|
38
45
|
export interface CreateAppRequest {
|
|
39
46
|
appCreateRequestUio: AppCreateRequestUio;
|
|
40
47
|
instanceId?: string;
|
|
@@ -235,6 +242,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
235
242
|
checkAudioFillerExists(appId: string, voiceId: string, language: string, fillersIds?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
236
243
|
[key: string]: boolean;
|
|
237
244
|
}>;
|
|
245
|
+
/**
|
|
246
|
+
* Transcribes audio using the app\'s speech-to-text configuration, falling back to the agent configuration when the app has none.
|
|
247
|
+
* Convert speech to text for an app
|
|
248
|
+
*/
|
|
249
|
+
convertAppSpeechToTextRaw(requestParameters: ConvertAppSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
|
|
250
|
+
/**
|
|
251
|
+
* Transcribes audio using the app\'s speech-to-text configuration, falling back to the agent configuration when the app has none.
|
|
252
|
+
* Convert speech to text for an app
|
|
253
|
+
*/
|
|
254
|
+
convertAppSpeechToText(appId: string, body: Blob, language?: string, dry?: boolean, model?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
|
|
238
255
|
/**
|
|
239
256
|
* Creates a new app
|
|
240
257
|
* Create an app
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -233,6 +233,49 @@ class AppApi extends runtime.BaseAPI {
|
|
|
233
233
|
const response = await this.checkAudioFillerExistsRaw({ appId: appId, voiceId: voiceId, language: language, fillersIds: fillersIds }, initOverrides);
|
|
234
234
|
return await response.value();
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Transcribes audio using the app\'s speech-to-text configuration, falling back to the agent configuration when the app has none.
|
|
238
|
+
* Convert speech to text for an app
|
|
239
|
+
*/
|
|
240
|
+
async convertAppSpeechToTextRaw(requestParameters, initOverrides) {
|
|
241
|
+
if (requestParameters['appId'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling convertAppSpeechToText().');
|
|
243
|
+
}
|
|
244
|
+
if (requestParameters['body'] == null) {
|
|
245
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling convertAppSpeechToText().');
|
|
246
|
+
}
|
|
247
|
+
const queryParameters = {};
|
|
248
|
+
if (requestParameters['language'] != null) {
|
|
249
|
+
queryParameters['language'] = requestParameters['language'];
|
|
250
|
+
}
|
|
251
|
+
if (requestParameters['dry'] != null) {
|
|
252
|
+
queryParameters['dry'] = requestParameters['dry'];
|
|
253
|
+
}
|
|
254
|
+
if (requestParameters['model'] != null) {
|
|
255
|
+
queryParameters['model'] = requestParameters['model'];
|
|
256
|
+
}
|
|
257
|
+
const headerParameters = {};
|
|
258
|
+
headerParameters['Content-Type'] = 'audio/wav';
|
|
259
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
260
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
261
|
+
}
|
|
262
|
+
const response = await this.request({
|
|
263
|
+
path: `/apps/{appId}/speech-to-text`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
264
|
+
method: 'POST',
|
|
265
|
+
headers: headerParameters,
|
|
266
|
+
query: queryParameters,
|
|
267
|
+
body: requestParameters['body'],
|
|
268
|
+
}, initOverrides);
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.STTResponseUioFromJSON)(jsonValue));
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Transcribes audio using the app\'s speech-to-text configuration, falling back to the agent configuration when the app has none.
|
|
273
|
+
* Convert speech to text for an app
|
|
274
|
+
*/
|
|
275
|
+
async convertAppSpeechToText(appId, body, language, dry, model, initOverrides) {
|
|
276
|
+
const response = await this.convertAppSpeechToTextRaw({ appId: appId, body: body, language: language, dry: dry, model: model }, initOverrides);
|
|
277
|
+
return await response.value();
|
|
278
|
+
}
|
|
236
279
|
/**
|
|
237
280
|
* Creates a new app
|
|
238
281
|
* Create an app
|
|
@@ -48,6 +48,9 @@ export interface GetContextCustomVariableRequest {
|
|
|
48
48
|
export interface GetConversationsRequest {
|
|
49
49
|
organizationId?: string;
|
|
50
50
|
providerSource?: GetConversationsProviderSourceEnum;
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
period?: GetConversationsPeriodEnum;
|
|
51
54
|
messageReaction?: GetConversationsMessageReactionEnum;
|
|
52
55
|
}
|
|
53
56
|
export interface UpdateAttachmentStatusRequest {
|
|
@@ -171,7 +174,7 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
171
174
|
* Retrieve a list of conversations for the authenticated user.
|
|
172
175
|
* List conversations
|
|
173
176
|
*/
|
|
174
|
-
getConversations(organizationId?: string, providerSource?: GetConversationsProviderSourceEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
177
|
+
getConversations(organizationId?: string, providerSource?: GetConversationsProviderSourceEnum, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
175
178
|
/**
|
|
176
179
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
177
180
|
* Update the status of an uploaded attachment
|
|
@@ -217,6 +220,17 @@ export declare const GetConversationsProviderSourceEnum: {
|
|
|
217
220
|
readonly Internal: "INTERNAL";
|
|
218
221
|
};
|
|
219
222
|
export type GetConversationsProviderSourceEnum = typeof GetConversationsProviderSourceEnum[keyof typeof GetConversationsProviderSourceEnum];
|
|
223
|
+
/**
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
export declare const GetConversationsPeriodEnum: {
|
|
227
|
+
readonly Today: "today";
|
|
228
|
+
readonly Last6days: "last6days";
|
|
229
|
+
readonly Week: "week";
|
|
230
|
+
readonly Month: "month";
|
|
231
|
+
readonly Older: "older";
|
|
232
|
+
};
|
|
233
|
+
export type GetConversationsPeriodEnum = typeof GetConversationsPeriodEnum[keyof typeof GetConversationsPeriodEnum];
|
|
220
234
|
/**
|
|
221
235
|
* @export
|
|
222
236
|
*/
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.GetConversationsMessageReactionEnum = exports.GetConversationsProviderSourceEnum = exports.DeleteAllConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
|
|
49
|
+
exports.GetConversationsMessageReactionEnum = exports.GetConversationsPeriodEnum = exports.GetConversationsProviderSourceEnum = exports.DeleteAllConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -341,6 +341,15 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
341
341
|
if (requestParameters['providerSource'] != null) {
|
|
342
342
|
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
343
343
|
}
|
|
344
|
+
if (requestParameters['page'] != null) {
|
|
345
|
+
queryParameters['page'] = requestParameters['page'];
|
|
346
|
+
}
|
|
347
|
+
if (requestParameters['limit'] != null) {
|
|
348
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
349
|
+
}
|
|
350
|
+
if (requestParameters['period'] != null) {
|
|
351
|
+
queryParameters['period'] = requestParameters['period'];
|
|
352
|
+
}
|
|
344
353
|
if (requestParameters['messageReaction'] != null) {
|
|
345
354
|
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
346
355
|
}
|
|
@@ -360,8 +369,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
360
369
|
* Retrieve a list of conversations for the authenticated user.
|
|
361
370
|
* List conversations
|
|
362
371
|
*/
|
|
363
|
-
async getConversations(organizationId, providerSource, messageReaction, initOverrides) {
|
|
364
|
-
const response = await this.getConversationsRaw({ organizationId: organizationId, providerSource: providerSource, messageReaction: messageReaction }, initOverrides);
|
|
372
|
+
async getConversations(organizationId, providerSource, page, limit, period, messageReaction, initOverrides) {
|
|
373
|
+
const response = await this.getConversationsRaw({ organizationId: organizationId, providerSource: providerSource, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
|
|
365
374
|
return await response.value();
|
|
366
375
|
}
|
|
367
376
|
/**
|
|
@@ -478,6 +487,16 @@ exports.GetConversationsProviderSourceEnum = {
|
|
|
478
487
|
External: 'EXTERNAL',
|
|
479
488
|
Internal: 'INTERNAL'
|
|
480
489
|
};
|
|
490
|
+
/**
|
|
491
|
+
* @export
|
|
492
|
+
*/
|
|
493
|
+
exports.GetConversationsPeriodEnum = {
|
|
494
|
+
Today: 'today',
|
|
495
|
+
Last6days: 'last6days',
|
|
496
|
+
Week: 'week',
|
|
497
|
+
Month: 'month',
|
|
498
|
+
Older: 'older'
|
|
499
|
+
};
|
|
481
500
|
/**
|
|
482
501
|
* @export
|
|
483
502
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SpeechToTextProviderUio } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdEnginesProvidersWithSpeechToTextGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class EnginesApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
23
|
+
* List organization engine providers with speech-to-text models
|
|
24
|
+
*/
|
|
25
|
+
organizationsOrganizationIdEnginesProvidersWithSpeechToTextGetRaw(requestParameters: OrganizationsOrganizationIdEnginesProvidersWithSpeechToTextGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpeechToTextProviderUio>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
28
|
+
* List organization engine providers with speech-to-text models
|
|
29
|
+
*/
|
|
30
|
+
organizationsOrganizationIdEnginesProvidersWithSpeechToTextGet(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpeechToTextProviderUio>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.EnginesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class EnginesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
58
|
+
* List organization engine providers with speech-to-text models
|
|
59
|
+
*/
|
|
60
|
+
async organizationsOrganizationIdEnginesProvidersWithSpeechToTextGetRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdEnginesProvidersWithSpeechToTextGet().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
68
|
+
}
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/organizations/{organizationId}/engines/providers/with-speech-to-text`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SpeechToTextProviderUioFromJSON));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns providers that have at least one model with the speech-to-text capability enabled.
|
|
79
|
+
* List organization engine providers with speech-to-text models
|
|
80
|
+
*/
|
|
81
|
+
async organizationsOrganizationIdEnginesProvidersWithSpeechToTextGet(organizationId, initOverrides) {
|
|
82
|
+
const response = await this.organizationsOrganizationIdEnginesProvidersWithSpeechToTextGetRaw({ organizationId: organizationId }, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.EnginesApi = EnginesApi;
|
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -15,9 +15,11 @@ export interface ConnectOAuth2ToolRequest {
|
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ConvertSpeechToTextRequest {
|
|
18
|
+
appId: string;
|
|
18
19
|
body: Blob;
|
|
19
20
|
language?: string;
|
|
20
21
|
dry?: boolean;
|
|
22
|
+
model?: string;
|
|
21
23
|
}
|
|
22
24
|
export interface ConvertTextToSpeechRequest {
|
|
23
25
|
tTSRequestUio: TTSRequestUio;
|
|
@@ -89,15 +91,17 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
89
91
|
*/
|
|
90
92
|
connectOAuth2Tool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectOAuth2Tool200ResponseUio>;
|
|
91
93
|
/**
|
|
92
|
-
* Transcribes audio files to text using OpenAI
|
|
94
|
+
* Transcribes audio files to text using the configured speech-to-text model (OpenAI Whisper or Mistral Voxtral). **Deprecated** — use `POST /apps/{appId}/speech-to-text` or `POST /agents/{agentId}/speech-to-text` instead. This route remains available temporarily for backward compatibility.
|
|
93
95
|
* Convert speech to text
|
|
96
|
+
* @deprecated
|
|
94
97
|
*/
|
|
95
98
|
convertSpeechToTextRaw(requestParameters: ConvertSpeechToTextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<STTResponseUio>>;
|
|
96
99
|
/**
|
|
97
|
-
* Transcribes audio files to text using OpenAI
|
|
100
|
+
* Transcribes audio files to text using the configured speech-to-text model (OpenAI Whisper or Mistral Voxtral). **Deprecated** — use `POST /apps/{appId}/speech-to-text` or `POST /agents/{agentId}/speech-to-text` instead. This route remains available temporarily for backward compatibility.
|
|
98
101
|
* Convert speech to text
|
|
102
|
+
* @deprecated
|
|
99
103
|
*/
|
|
100
|
-
convertSpeechToText(body: Blob, language?: string, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
|
|
104
|
+
convertSpeechToText(appId: string, body: Blob, language?: string, dry?: boolean, model?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<STTResponseUio>;
|
|
101
105
|
/**
|
|
102
106
|
* Converts text to speech using the specified provider
|
|
103
107
|
* Convert text to speech
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -81,10 +81,14 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
81
81
|
return await response.value();
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Transcribes audio files to text using OpenAI
|
|
84
|
+
* Transcribes audio files to text using the configured speech-to-text model (OpenAI Whisper or Mistral Voxtral). **Deprecated** — use `POST /apps/{appId}/speech-to-text` or `POST /agents/{agentId}/speech-to-text` instead. This route remains available temporarily for backward compatibility.
|
|
85
85
|
* Convert speech to text
|
|
86
|
+
* @deprecated
|
|
86
87
|
*/
|
|
87
88
|
async convertSpeechToTextRaw(requestParameters, initOverrides) {
|
|
89
|
+
if (requestParameters['appId'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling convertSpeechToText().');
|
|
91
|
+
}
|
|
88
92
|
if (requestParameters['body'] == null) {
|
|
89
93
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling convertSpeechToText().');
|
|
90
94
|
}
|
|
@@ -95,6 +99,12 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
95
99
|
if (requestParameters['dry'] != null) {
|
|
96
100
|
queryParameters['dry'] = requestParameters['dry'];
|
|
97
101
|
}
|
|
102
|
+
if (requestParameters['model'] != null) {
|
|
103
|
+
queryParameters['model'] = requestParameters['model'];
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['appId'] != null) {
|
|
106
|
+
queryParameters['appId'] = requestParameters['appId'];
|
|
107
|
+
}
|
|
98
108
|
const headerParameters = {};
|
|
99
109
|
headerParameters['Content-Type'] = 'audio/wav';
|
|
100
110
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -110,11 +120,12 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
110
120
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.STTResponseUioFromJSON)(jsonValue));
|
|
111
121
|
}
|
|
112
122
|
/**
|
|
113
|
-
* Transcribes audio files to text using OpenAI
|
|
123
|
+
* Transcribes audio files to text using the configured speech-to-text model (OpenAI Whisper or Mistral Voxtral). **Deprecated** — use `POST /apps/{appId}/speech-to-text` or `POST /agents/{agentId}/speech-to-text` instead. This route remains available temporarily for backward compatibility.
|
|
114
124
|
* Convert speech to text
|
|
125
|
+
* @deprecated
|
|
115
126
|
*/
|
|
116
|
-
async convertSpeechToText(body, language, dry, initOverrides) {
|
|
117
|
-
const response = await this.convertSpeechToTextRaw({ body: body, language: language, dry: dry }, initOverrides);
|
|
127
|
+
async convertSpeechToText(appId, body, language, dry, model, initOverrides) {
|
|
128
|
+
const response = await this.convertSpeechToTextRaw({ appId: appId, body: body, language: language, dry: dry, model: model }, initOverrides);
|
|
118
129
|
return await response.value();
|
|
119
130
|
}
|
|
120
131
|
/**
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './ConfigurationApi';
|
|
|
6
6
|
export * from './ContentsApi';
|
|
7
7
|
export * from './ConversationsApi';
|
|
8
8
|
export * from './EngineApi';
|
|
9
|
+
export * from './EnginesApi';
|
|
9
10
|
export * from './FilesApi';
|
|
10
11
|
export * from './GeneralApi';
|
|
11
12
|
export * from './GuardiansApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./ConfigurationApi"), exports);
|
|
|
24
24
|
__exportStar(require("./ContentsApi"), exports);
|
|
25
25
|
__exportStar(require("./ConversationsApi"), exports);
|
|
26
26
|
__exportStar(require("./EngineApi"), exports);
|
|
27
|
+
__exportStar(require("./EnginesApi"), exports);
|
|
27
28
|
__exportStar(require("./FilesApi"), exports);
|
|
28
29
|
__exportStar(require("./GeneralApi"), exports);
|
|
29
30
|
__exportStar(require("./GuardiansApi"), exports);
|
|
@@ -13,6 +13,7 @@ import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
|
13
13
|
import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
|
|
14
14
|
import type { PersonaUio } from './PersonaUio';
|
|
15
15
|
import type { PromptInitUio } from './PromptInitUio';
|
|
16
|
+
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
16
17
|
import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
|
|
17
18
|
import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
|
|
18
19
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
@@ -194,6 +195,12 @@ export interface AgentPatchUio {
|
|
|
194
195
|
* @memberof AgentPatchUio
|
|
195
196
|
*/
|
|
196
197
|
contextualKnowledgeConversation?: ContextualKnowledgeConversationUio | null;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {SpeechToTextConfigUio}
|
|
201
|
+
* @memberof AgentPatchUio
|
|
202
|
+
*/
|
|
203
|
+
speechToText?: SpeechToTextConfigUio;
|
|
197
204
|
}
|
|
198
205
|
/**
|
|
199
206
|
* Check if a given object implements the AgentPatchUio interface.
|
|
@@ -22,6 +22,7 @@ const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
|
22
22
|
const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
|
|
23
23
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
24
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
25
|
+
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
25
26
|
const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
26
27
|
const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
|
|
27
28
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
@@ -67,6 +68,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
68
|
'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
|
|
68
69
|
'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
|
|
69
70
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
71
|
+
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
function AgentPatchUioToJSON(json) {
|
|
@@ -105,5 +107,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
105
107
|
'maxToolSteps': value['maxToolSteps'],
|
|
106
108
|
'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
|
|
107
109
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
110
|
+
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
108
111
|
};
|
|
109
112
|
}
|
|
@@ -17,6 +17,7 @@ import type { PersonaUio } from './PersonaUio';
|
|
|
17
17
|
import type { AgentCreatorUio } from './AgentCreatorUio';
|
|
18
18
|
import type { EngineUio } from './EngineUio';
|
|
19
19
|
import type { PromptInitUio } from './PromptInitUio';
|
|
20
|
+
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
20
21
|
import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
|
|
21
22
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
22
23
|
/**
|
|
@@ -229,6 +230,12 @@ export interface AgentUio {
|
|
|
229
230
|
* @memberof AgentUio
|
|
230
231
|
*/
|
|
231
232
|
contextualKnowledgeConversation?: ContextualKnowledgeConversationUio | null;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {SpeechToTextConfigUio}
|
|
236
|
+
* @memberof AgentUio
|
|
237
|
+
*/
|
|
238
|
+
speechToText?: SpeechToTextConfigUio;
|
|
232
239
|
/**
|
|
233
240
|
*
|
|
234
241
|
* @type {AgentCreatorUio}
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -27,6 +27,7 @@ const PersonaUio_1 = require("./PersonaUio");
|
|
|
27
27
|
const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
28
28
|
const EngineUio_1 = require("./EngineUio");
|
|
29
29
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
30
|
+
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
30
31
|
const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
31
32
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
32
33
|
/**
|
|
@@ -102,6 +103,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
103
|
'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
|
|
103
104
|
'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
|
|
104
105
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
106
|
+
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
105
107
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
106
108
|
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
107
109
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
@@ -148,6 +150,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
148
150
|
'maxToolSteps': value['maxToolSteps'],
|
|
149
151
|
'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
|
|
150
152
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
153
|
+
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
151
154
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
152
155
|
'engineSource': value['engineSource'],
|
|
153
156
|
'providerSource': value['providerSource'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AppCreateRequestEphemeralInstancesUio } from './AppCreateRequestEphemeralInstancesUio';
|
|
13
|
+
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
13
14
|
import type { LipsyncUio } from './LipsyncUio';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -71,6 +72,12 @@ export interface AppCreateRequestUio {
|
|
|
71
72
|
* @memberof AppCreateRequestUio
|
|
72
73
|
*/
|
|
73
74
|
voiceModelId?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {SpeechToTextConfigUio}
|
|
78
|
+
* @memberof AppCreateRequestUio
|
|
79
|
+
*/
|
|
80
|
+
speechToText?: SpeechToTextConfigUio;
|
|
74
81
|
/**
|
|
75
82
|
*
|
|
76
83
|
* @type {LipsyncUio}
|
|
@@ -19,6 +19,7 @@ exports.AppCreateRequestUioFromJSONTyped = AppCreateRequestUioFromJSONTyped;
|
|
|
19
19
|
exports.AppCreateRequestUioToJSON = AppCreateRequestUioToJSON;
|
|
20
20
|
exports.AppCreateRequestUioToJSONTyped = AppCreateRequestUioToJSONTyped;
|
|
21
21
|
const AppCreateRequestEphemeralInstancesUio_1 = require("./AppCreateRequestEphemeralInstancesUio");
|
|
22
|
+
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
22
23
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the AppCreateRequestUio interface.
|
|
@@ -49,6 +50,7 @@ function AppCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'voiceProviderOrganization': json['voiceProviderOrganization'] == null ? undefined : json['voiceProviderOrganization'],
|
|
50
51
|
'voiceId': json['voiceId'] == null ? undefined : json['voiceId'],
|
|
51
52
|
'voiceModelId': json['voiceModelId'] == null ? undefined : json['voiceModelId'],
|
|
53
|
+
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
52
54
|
'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
|
|
53
55
|
'connected': json['connected'] == null ? undefined : json['connected'],
|
|
54
56
|
'type': json['type'] == null ? undefined : json['type'],
|
|
@@ -73,6 +75,7 @@ function AppCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
75
|
'voiceProviderOrganization': value['voiceProviderOrganization'],
|
|
74
76
|
'voiceId': value['voiceId'],
|
|
75
77
|
'voiceModelId': value['voiceModelId'],
|
|
78
|
+
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
76
79
|
'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
|
|
77
80
|
'connected': value['connected'],
|
|
78
81
|
'type': value['type'],
|
package/dist/models/AppUio.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type { AnimationUio } from './AnimationUio';
|
|
|
17
17
|
import type { PersonaUio } from './PersonaUio';
|
|
18
18
|
import type { AppCreateRequestEphemeralInstancesUio } from './AppCreateRequestEphemeralInstancesUio';
|
|
19
19
|
import type { SimpleAgentUio } from './SimpleAgentUio';
|
|
20
|
+
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
20
21
|
import type { LipsyncUio } from './LipsyncUio';
|
|
21
22
|
import type { AppStatusUio } from './AppStatusUio';
|
|
22
23
|
/**
|
|
@@ -115,6 +116,12 @@ export interface AppUio {
|
|
|
115
116
|
* @memberof AppUio
|
|
116
117
|
*/
|
|
117
118
|
voiceModelId: string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {SpeechToTextConfigUio}
|
|
122
|
+
* @memberof AppUio
|
|
123
|
+
*/
|
|
124
|
+
speechToText?: SpeechToTextConfigUio;
|
|
118
125
|
/**
|
|
119
126
|
*
|
|
120
127
|
* @type {{ [key: string]: string; }}
|