@breign/client 1.0.58 → 1.0.59
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/AppApi.d.ts +48 -1
- package/dist/apis/AppApi.js +110 -0
- package/dist/models/AudioFillerExistsResponseUio.d.ts +32 -0
- package/dist/models/AudioFillerExistsResponseUio.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +231 -0
- package/package.json +1 -1
package/dist/apis/AppApi.d.ts
CHANGED
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppConfigurationUpdateRequestUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, BodyWithIdUio, FileCreationRequestUio, FileCreationResponseUio, FlowUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppConfigurationUpdateRequestUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, FileCreationRequestUio, FileCreationResponseUio, FlowUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddAppConfigurationFileRequest {
|
|
15
15
|
appId: string;
|
|
16
16
|
type: string;
|
|
17
17
|
fileCreationRequestUio: FileCreationRequestUio;
|
|
18
18
|
}
|
|
19
|
+
export interface CheckAudioFillerExistsRequest {
|
|
20
|
+
appId: string;
|
|
21
|
+
lang?: string;
|
|
22
|
+
fillersIds?: string;
|
|
23
|
+
}
|
|
19
24
|
export interface CreateAppRequest {
|
|
20
25
|
appCreateRequestUio: AppCreateRequestUio;
|
|
21
26
|
instanceId?: string;
|
|
@@ -41,6 +46,12 @@ export interface DeleteAppConfigurationRequest {
|
|
|
41
46
|
appId: string;
|
|
42
47
|
instanceId?: string;
|
|
43
48
|
}
|
|
49
|
+
export interface DeleteDefaultFillerRequest {
|
|
50
|
+
appId: string;
|
|
51
|
+
voiceId: string;
|
|
52
|
+
language: string;
|
|
53
|
+
fillerId: string;
|
|
54
|
+
}
|
|
44
55
|
export interface GetAppByIdRequest {
|
|
45
56
|
appId: string;
|
|
46
57
|
}
|
|
@@ -59,6 +70,12 @@ export interface GetAppProbeRequest {
|
|
|
59
70
|
export interface GetAppsForAgentIdRequest {
|
|
60
71
|
agentId: string;
|
|
61
72
|
}
|
|
73
|
+
export interface GetAudioFillerByIdRequest {
|
|
74
|
+
appId: string;
|
|
75
|
+
voiceId: string;
|
|
76
|
+
language: string;
|
|
77
|
+
fillerId: string;
|
|
78
|
+
}
|
|
62
79
|
export interface InterruptAppRequest {
|
|
63
80
|
appId: string;
|
|
64
81
|
instanceId?: string;
|
|
@@ -123,6 +140,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
123
140
|
* Add file to app configuration
|
|
124
141
|
*/
|
|
125
142
|
addAppConfigurationFile(appId: string, type: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
143
|
+
/**
|
|
144
|
+
* Check if audio filler exists
|
|
145
|
+
* Check if audio filler exists
|
|
146
|
+
*/
|
|
147
|
+
checkAudioFillerExistsRaw(requestParameters: CheckAudioFillerExistsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioFillerExistsResponseUio>>;
|
|
148
|
+
/**
|
|
149
|
+
* Check if audio filler exists
|
|
150
|
+
* Check if audio filler exists
|
|
151
|
+
*/
|
|
152
|
+
checkAudioFillerExists(appId: string, lang?: string, fillersIds?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioFillerExistsResponseUio>;
|
|
126
153
|
/**
|
|
127
154
|
* Creates a new app
|
|
128
155
|
* Create an app
|
|
@@ -183,6 +210,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
183
210
|
* Delete app configuration
|
|
184
211
|
*/
|
|
185
212
|
deleteAppConfiguration(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Delete a default filler
|
|
215
|
+
* Delete a default filler
|
|
216
|
+
*/
|
|
217
|
+
deleteDefaultFillerRaw(requestParameters: DeleteDefaultFillerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
218
|
+
/**
|
|
219
|
+
* Delete a default filler
|
|
220
|
+
* Delete a default filler
|
|
221
|
+
*/
|
|
222
|
+
deleteDefaultFiller(appId: string, voiceId: string, language: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
186
223
|
/**
|
|
187
224
|
* Get an app
|
|
188
225
|
* Get an app
|
|
@@ -233,6 +270,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
233
270
|
* Get apps for agent id
|
|
234
271
|
*/
|
|
235
272
|
getAppsForAgentId(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppLightUio>>;
|
|
273
|
+
/**
|
|
274
|
+
* Get audio filler by ID
|
|
275
|
+
* Get audio filler by ID
|
|
276
|
+
*/
|
|
277
|
+
getAudioFillerByIdRaw(requestParameters: GetAudioFillerByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AudioFileUio>>;
|
|
278
|
+
/**
|
|
279
|
+
* Get audio filler by ID
|
|
280
|
+
* Get audio filler by ID
|
|
281
|
+
*/
|
|
282
|
+
getAudioFillerById(appId: string, voiceId: string, language: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioFileUio>;
|
|
236
283
|
/**
|
|
237
284
|
* Interrupt app
|
|
238
285
|
* Interrupt app
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -90,6 +90,41 @@ class AppApi extends runtime.BaseAPI {
|
|
|
90
90
|
const response = await this.addAppConfigurationFileRaw({ appId: appId, type: type, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
91
91
|
return await response.value();
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if audio filler exists
|
|
95
|
+
* Check if audio filler exists
|
|
96
|
+
*/
|
|
97
|
+
async checkAudioFillerExistsRaw(requestParameters, initOverrides) {
|
|
98
|
+
if (requestParameters['appId'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling checkAudioFillerExists().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
if (requestParameters['lang'] != null) {
|
|
103
|
+
queryParameters['lang'] = requestParameters['lang'];
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['fillersIds'] != null) {
|
|
106
|
+
queryParameters['fillersIds'] = requestParameters['fillersIds'];
|
|
107
|
+
}
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
111
|
+
}
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/apps/{appId}/fillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioFillerExistsResponseUioFromJSON)(jsonValue));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Check if audio filler exists
|
|
122
|
+
* Check if audio filler exists
|
|
123
|
+
*/
|
|
124
|
+
async checkAudioFillerExists(appId, lang, fillersIds, initOverrides) {
|
|
125
|
+
const response = await this.checkAudioFillerExistsRaw({ appId: appId, lang: lang, fillersIds: fillersIds }, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
93
128
|
/**
|
|
94
129
|
* Creates a new app
|
|
95
130
|
* Create an app
|
|
@@ -291,6 +326,43 @@ class AppApi extends runtime.BaseAPI {
|
|
|
291
326
|
async deleteAppConfiguration(appId, instanceId, initOverrides) {
|
|
292
327
|
await this.deleteAppConfigurationRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
293
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Delete a default filler
|
|
331
|
+
* Delete a default filler
|
|
332
|
+
*/
|
|
333
|
+
async deleteDefaultFillerRaw(requestParameters, initOverrides) {
|
|
334
|
+
if (requestParameters['appId'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteDefaultFiller().');
|
|
336
|
+
}
|
|
337
|
+
if (requestParameters['voiceId'] == null) {
|
|
338
|
+
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling deleteDefaultFiller().');
|
|
339
|
+
}
|
|
340
|
+
if (requestParameters['language'] == null) {
|
|
341
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling deleteDefaultFiller().');
|
|
342
|
+
}
|
|
343
|
+
if (requestParameters['fillerId'] == null) {
|
|
344
|
+
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling deleteDefaultFiller().');
|
|
345
|
+
}
|
|
346
|
+
const queryParameters = {};
|
|
347
|
+
const headerParameters = {};
|
|
348
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
349
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
350
|
+
}
|
|
351
|
+
const response = await this.request({
|
|
352
|
+
path: `/apps/{appId}/voice/{voiceId}/default-fillers/{fillerId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"voiceId"}}`, encodeURIComponent(String(requestParameters['voiceId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))).replace(`{${"fillerId"}}`, encodeURIComponent(String(requestParameters['fillerId']))),
|
|
353
|
+
method: 'DELETE',
|
|
354
|
+
headers: headerParameters,
|
|
355
|
+
query: queryParameters,
|
|
356
|
+
}, initOverrides);
|
|
357
|
+
return new runtime.VoidApiResponse(response);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Delete a default filler
|
|
361
|
+
* Delete a default filler
|
|
362
|
+
*/
|
|
363
|
+
async deleteDefaultFiller(appId, voiceId, language, fillerId, initOverrides) {
|
|
364
|
+
await this.deleteDefaultFillerRaw({ appId: appId, voiceId: voiceId, language: language, fillerId: fillerId }, initOverrides);
|
|
365
|
+
}
|
|
294
366
|
/**
|
|
295
367
|
* Get an app
|
|
296
368
|
* Get an app
|
|
@@ -450,6 +522,44 @@ class AppApi extends runtime.BaseAPI {
|
|
|
450
522
|
const response = await this.getAppsForAgentIdRaw({ agentId: agentId }, initOverrides);
|
|
451
523
|
return await response.value();
|
|
452
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* Get audio filler by ID
|
|
527
|
+
* Get audio filler by ID
|
|
528
|
+
*/
|
|
529
|
+
async getAudioFillerByIdRaw(requestParameters, initOverrides) {
|
|
530
|
+
if (requestParameters['appId'] == null) {
|
|
531
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAudioFillerById().');
|
|
532
|
+
}
|
|
533
|
+
if (requestParameters['voiceId'] == null) {
|
|
534
|
+
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling getAudioFillerById().');
|
|
535
|
+
}
|
|
536
|
+
if (requestParameters['language'] == null) {
|
|
537
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling getAudioFillerById().');
|
|
538
|
+
}
|
|
539
|
+
if (requestParameters['fillerId'] == null) {
|
|
540
|
+
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling getAudioFillerById().');
|
|
541
|
+
}
|
|
542
|
+
const queryParameters = {};
|
|
543
|
+
const headerParameters = {};
|
|
544
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
545
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
546
|
+
}
|
|
547
|
+
const response = await this.request({
|
|
548
|
+
path: `/apps/{appId}/languages/{language}/fillers/{fillerId}/audio`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"voiceId"}}`, encodeURIComponent(String(requestParameters['voiceId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))).replace(`{${"fillerId"}}`, encodeURIComponent(String(requestParameters['fillerId']))),
|
|
549
|
+
method: 'GET',
|
|
550
|
+
headers: headerParameters,
|
|
551
|
+
query: queryParameters,
|
|
552
|
+
}, initOverrides);
|
|
553
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioFileUioFromJSON)(jsonValue));
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Get audio filler by ID
|
|
557
|
+
* Get audio filler by ID
|
|
558
|
+
*/
|
|
559
|
+
async getAudioFillerById(appId, voiceId, language, fillerId, initOverrides) {
|
|
560
|
+
const response = await this.getAudioFillerByIdRaw({ appId: appId, voiceId: voiceId, language: language, fillerId: fillerId }, initOverrides);
|
|
561
|
+
return await response.value();
|
|
562
|
+
}
|
|
453
563
|
/**
|
|
454
564
|
* Interrupt app
|
|
455
565
|
* Interrupt app
|
|
@@ -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 AudioFillerExistsResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AudioFillerExistsResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AudioFillerExistsResponseUio
|
|
22
|
+
*/
|
|
23
|
+
_exists: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AudioFillerExistsResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAudioFillerExistsResponseUio(value: object): value is AudioFillerExistsResponseUio;
|
|
29
|
+
export declare function AudioFillerExistsResponseUioFromJSON(json: any): AudioFillerExistsResponseUio;
|
|
30
|
+
export declare function AudioFillerExistsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioFillerExistsResponseUio;
|
|
31
|
+
export declare function AudioFillerExistsResponseUioToJSON(json: any): AudioFillerExistsResponseUio;
|
|
32
|
+
export declare function AudioFillerExistsResponseUioToJSONTyped(value?: AudioFillerExistsResponseUio | 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.instanceOfAudioFillerExistsResponseUio = instanceOfAudioFillerExistsResponseUio;
|
|
17
|
+
exports.AudioFillerExistsResponseUioFromJSON = AudioFillerExistsResponseUioFromJSON;
|
|
18
|
+
exports.AudioFillerExistsResponseUioFromJSONTyped = AudioFillerExistsResponseUioFromJSONTyped;
|
|
19
|
+
exports.AudioFillerExistsResponseUioToJSON = AudioFillerExistsResponseUioToJSON;
|
|
20
|
+
exports.AudioFillerExistsResponseUioToJSONTyped = AudioFillerExistsResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AudioFillerExistsResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAudioFillerExistsResponseUio(value) {
|
|
25
|
+
if (!('_exists' in value) || value['_exists'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AudioFillerExistsResponseUioFromJSON(json) {
|
|
30
|
+
return AudioFillerExistsResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AudioFillerExistsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'_exists': json['exists'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AudioFillerExistsResponseUioToJSON(json) {
|
|
41
|
+
return AudioFillerExistsResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AudioFillerExistsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'exists': value['_exists'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from './AudioFile1Uio';
|
|
|
57
57
|
export * from './AudioFileOrBufferUio';
|
|
58
58
|
export * from './AudioFileTypeUio';
|
|
59
59
|
export * from './AudioFileUio';
|
|
60
|
+
export * from './AudioFillerExistsResponseUio';
|
|
60
61
|
export * from './AuthCodeConfirmRequestUio';
|
|
61
62
|
export * from './AuthCodeConfirmResponseUio';
|
|
62
63
|
export * from './AuthCodeRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -75,6 +75,7 @@ __exportStar(require("./AudioFile1Uio"), exports);
|
|
|
75
75
|
__exportStar(require("./AudioFileOrBufferUio"), exports);
|
|
76
76
|
__exportStar(require("./AudioFileTypeUio"), exports);
|
|
77
77
|
__exportStar(require("./AudioFileUio"), exports);
|
|
78
|
+
__exportStar(require("./AudioFillerExistsResponseUio"), exports);
|
|
78
79
|
__exportStar(require("./AuthCodeConfirmRequestUio"), exports);
|
|
79
80
|
__exportStar(require("./AuthCodeConfirmResponseUio"), exports);
|
|
80
81
|
__exportStar(require("./AuthCodeRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -6126,6 +6126,184 @@
|
|
|
6126
6126
|
"summary" : "Get the status of a message",
|
|
6127
6127
|
"tags" : [ "prompts" ]
|
|
6128
6128
|
}
|
|
6129
|
+
},
|
|
6130
|
+
"/apps/{appId}/languages/{language}/fillers/{fillerId}/audio" : {
|
|
6131
|
+
"get" : {
|
|
6132
|
+
"description" : "Get audio filler by ID",
|
|
6133
|
+
"operationId" : "getAudioFillerById",
|
|
6134
|
+
"parameters" : [ {
|
|
6135
|
+
"description" : "ID of the app",
|
|
6136
|
+
"in" : "path",
|
|
6137
|
+
"name" : "appId",
|
|
6138
|
+
"required" : true,
|
|
6139
|
+
"schema" : {
|
|
6140
|
+
"type" : "string"
|
|
6141
|
+
}
|
|
6142
|
+
}, {
|
|
6143
|
+
"description" : "ID of the voice",
|
|
6144
|
+
"in" : "path",
|
|
6145
|
+
"name" : "voiceId",
|
|
6146
|
+
"required" : true,
|
|
6147
|
+
"schema" : {
|
|
6148
|
+
"type" : "string"
|
|
6149
|
+
}
|
|
6150
|
+
}, {
|
|
6151
|
+
"description" : "Language code",
|
|
6152
|
+
"in" : "path",
|
|
6153
|
+
"name" : "language",
|
|
6154
|
+
"required" : true,
|
|
6155
|
+
"schema" : {
|
|
6156
|
+
"type" : "string"
|
|
6157
|
+
}
|
|
6158
|
+
}, {
|
|
6159
|
+
"description" : "ID of the filler",
|
|
6160
|
+
"in" : "path",
|
|
6161
|
+
"name" : "fillerId",
|
|
6162
|
+
"required" : true,
|
|
6163
|
+
"schema" : {
|
|
6164
|
+
"type" : "string"
|
|
6165
|
+
}
|
|
6166
|
+
} ],
|
|
6167
|
+
"responses" : {
|
|
6168
|
+
"200" : {
|
|
6169
|
+
"content" : {
|
|
6170
|
+
"application/json" : {
|
|
6171
|
+
"schema" : {
|
|
6172
|
+
"$ref" : "#/components/schemas/AudioFile"
|
|
6173
|
+
}
|
|
6174
|
+
}
|
|
6175
|
+
},
|
|
6176
|
+
"description" : "Audio filler retrieved successfully"
|
|
6177
|
+
},
|
|
6178
|
+
"401" : {
|
|
6179
|
+
"description" : "Unauthorized"
|
|
6180
|
+
},
|
|
6181
|
+
"403" : {
|
|
6182
|
+
"description" : "Forbidden - User doesn't have access to this app"
|
|
6183
|
+
},
|
|
6184
|
+
"404" : {
|
|
6185
|
+
"description" : "Audio filler not found"
|
|
6186
|
+
},
|
|
6187
|
+
"500" : {
|
|
6188
|
+
"description" : "Server error"
|
|
6189
|
+
}
|
|
6190
|
+
},
|
|
6191
|
+
"summary" : "Get audio filler by ID",
|
|
6192
|
+
"tags" : [ "app" ]
|
|
6193
|
+
}
|
|
6194
|
+
},
|
|
6195
|
+
"/apps/{appId}/fillers" : {
|
|
6196
|
+
"get" : {
|
|
6197
|
+
"description" : "Check if audio filler exists",
|
|
6198
|
+
"operationId" : "checkAudioFillerExists",
|
|
6199
|
+
"parameters" : [ {
|
|
6200
|
+
"description" : "ID of the app",
|
|
6201
|
+
"in" : "path",
|
|
6202
|
+
"name" : "appId",
|
|
6203
|
+
"required" : true,
|
|
6204
|
+
"schema" : {
|
|
6205
|
+
"type" : "string"
|
|
6206
|
+
}
|
|
6207
|
+
}, {
|
|
6208
|
+
"description" : "Language code",
|
|
6209
|
+
"in" : "query",
|
|
6210
|
+
"name" : "lang",
|
|
6211
|
+
"schema" : {
|
|
6212
|
+
"type" : "string"
|
|
6213
|
+
}
|
|
6214
|
+
}, {
|
|
6215
|
+
"description" : "Fillers IDs",
|
|
6216
|
+
"in" : "query",
|
|
6217
|
+
"name" : "fillersIds",
|
|
6218
|
+
"schema" : {
|
|
6219
|
+
"type" : "string"
|
|
6220
|
+
}
|
|
6221
|
+
} ],
|
|
6222
|
+
"responses" : {
|
|
6223
|
+
"200" : {
|
|
6224
|
+
"content" : {
|
|
6225
|
+
"application/json" : {
|
|
6226
|
+
"schema" : {
|
|
6227
|
+
"$ref" : "#/components/schemas/AudioFillerExistsResponse"
|
|
6228
|
+
}
|
|
6229
|
+
}
|
|
6230
|
+
},
|
|
6231
|
+
"description" : "Audio filler exists"
|
|
6232
|
+
},
|
|
6233
|
+
"401" : {
|
|
6234
|
+
"description" : "Unauthorized"
|
|
6235
|
+
},
|
|
6236
|
+
"403" : {
|
|
6237
|
+
"description" : "Forbidden - User doesn't have access to this app"
|
|
6238
|
+
},
|
|
6239
|
+
"404" : {
|
|
6240
|
+
"description" : "Audio filler does not exist"
|
|
6241
|
+
},
|
|
6242
|
+
"500" : {
|
|
6243
|
+
"description" : "Server error"
|
|
6244
|
+
}
|
|
6245
|
+
},
|
|
6246
|
+
"summary" : "Check if audio filler exists",
|
|
6247
|
+
"tags" : [ "app" ]
|
|
6248
|
+
}
|
|
6249
|
+
},
|
|
6250
|
+
"/apps/{appId}/voice/{voiceId}/default-fillers/{fillerId}" : {
|
|
6251
|
+
"delete" : {
|
|
6252
|
+
"description" : "Delete a default filler",
|
|
6253
|
+
"operationId" : "deleteDefaultFiller",
|
|
6254
|
+
"parameters" : [ {
|
|
6255
|
+
"description" : "ID of the app",
|
|
6256
|
+
"in" : "path",
|
|
6257
|
+
"name" : "appId",
|
|
6258
|
+
"required" : true,
|
|
6259
|
+
"schema" : {
|
|
6260
|
+
"type" : "string"
|
|
6261
|
+
}
|
|
6262
|
+
}, {
|
|
6263
|
+
"description" : "ID of the voice",
|
|
6264
|
+
"in" : "path",
|
|
6265
|
+
"name" : "voiceId",
|
|
6266
|
+
"required" : true,
|
|
6267
|
+
"schema" : {
|
|
6268
|
+
"type" : "string"
|
|
6269
|
+
}
|
|
6270
|
+
}, {
|
|
6271
|
+
"description" : "Language code",
|
|
6272
|
+
"in" : "path",
|
|
6273
|
+
"name" : "language",
|
|
6274
|
+
"required" : true,
|
|
6275
|
+
"schema" : {
|
|
6276
|
+
"type" : "string"
|
|
6277
|
+
}
|
|
6278
|
+
}, {
|
|
6279
|
+
"description" : "ID of the filler",
|
|
6280
|
+
"in" : "path",
|
|
6281
|
+
"name" : "fillerId",
|
|
6282
|
+
"required" : true,
|
|
6283
|
+
"schema" : {
|
|
6284
|
+
"type" : "string"
|
|
6285
|
+
}
|
|
6286
|
+
} ],
|
|
6287
|
+
"responses" : {
|
|
6288
|
+
"204" : {
|
|
6289
|
+
"description" : "Default filler deleted successfully"
|
|
6290
|
+
},
|
|
6291
|
+
"401" : {
|
|
6292
|
+
"description" : "Unauthorized"
|
|
6293
|
+
},
|
|
6294
|
+
"403" : {
|
|
6295
|
+
"description" : "Forbidden - User doesn't have access to this app"
|
|
6296
|
+
},
|
|
6297
|
+
"404" : {
|
|
6298
|
+
"description" : "Default filler not found"
|
|
6299
|
+
},
|
|
6300
|
+
"500" : {
|
|
6301
|
+
"description" : "Server error"
|
|
6302
|
+
}
|
|
6303
|
+
},
|
|
6304
|
+
"summary" : "Delete a default filler",
|
|
6305
|
+
"tags" : [ "app" ]
|
|
6306
|
+
}
|
|
6129
6307
|
}
|
|
6130
6308
|
},
|
|
6131
6309
|
"components" : {
|
|
@@ -6435,9 +6613,62 @@
|
|
|
6435
6613
|
"schema" : {
|
|
6436
6614
|
"type" : "string"
|
|
6437
6615
|
}
|
|
6616
|
+
},
|
|
6617
|
+
"voiceIdPath" : {
|
|
6618
|
+
"description" : "ID of the voice",
|
|
6619
|
+
"in" : "path",
|
|
6620
|
+
"name" : "voiceId",
|
|
6621
|
+
"required" : true,
|
|
6622
|
+
"schema" : {
|
|
6623
|
+
"type" : "string"
|
|
6624
|
+
}
|
|
6625
|
+
},
|
|
6626
|
+
"languagePath" : {
|
|
6627
|
+
"description" : "Language code",
|
|
6628
|
+
"in" : "path",
|
|
6629
|
+
"name" : "language",
|
|
6630
|
+
"required" : true,
|
|
6631
|
+
"schema" : {
|
|
6632
|
+
"type" : "string"
|
|
6633
|
+
}
|
|
6634
|
+
},
|
|
6635
|
+
"fillerIdPath" : {
|
|
6636
|
+
"description" : "ID of the filler",
|
|
6637
|
+
"in" : "path",
|
|
6638
|
+
"name" : "fillerId",
|
|
6639
|
+
"required" : true,
|
|
6640
|
+
"schema" : {
|
|
6641
|
+
"type" : "string"
|
|
6642
|
+
}
|
|
6643
|
+
},
|
|
6644
|
+
"languageQuery" : {
|
|
6645
|
+
"description" : "Language code",
|
|
6646
|
+
"in" : "query",
|
|
6647
|
+
"name" : "lang",
|
|
6648
|
+
"schema" : {
|
|
6649
|
+
"type" : "string"
|
|
6650
|
+
}
|
|
6651
|
+
},
|
|
6652
|
+
"fillersIdsQuery" : {
|
|
6653
|
+
"description" : "Fillers IDs",
|
|
6654
|
+
"in" : "query",
|
|
6655
|
+
"name" : "fillersIds",
|
|
6656
|
+
"schema" : {
|
|
6657
|
+
"type" : "string"
|
|
6658
|
+
}
|
|
6438
6659
|
}
|
|
6439
6660
|
},
|
|
6440
6661
|
"schemas" : {
|
|
6662
|
+
"AudioFillerExistsResponse" : {
|
|
6663
|
+
"additionalProperties" : false,
|
|
6664
|
+
"properties" : {
|
|
6665
|
+
"exists" : {
|
|
6666
|
+
"type" : "boolean"
|
|
6667
|
+
}
|
|
6668
|
+
},
|
|
6669
|
+
"required" : [ "exists" ],
|
|
6670
|
+
"type" : "object"
|
|
6671
|
+
},
|
|
6441
6672
|
"ImageKnowledge" : {
|
|
6442
6673
|
"properties" : {
|
|
6443
6674
|
"id" : {
|