@breign/client 1.0.58 → 1.0.60
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 +111 -0
- package/dist/models/AudioFillerExistsResponseUio.d.ts +32 -0
- package/dist/models/AudioFillerExistsResponseUio.js +50 -0
- package/dist/models/FillersArrayInnerUio.d.ts +44 -0
- package/dist/models/FillersArrayInnerUio.js +58 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/openapi.json +259 -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, FillersArrayInnerUio, 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<Array<FillersArrayInnerUio>>>;
|
|
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<Array<FillersArrayInnerUio>>;
|
|
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,44 @@ 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.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.FillersArrayInnerUioFromJSON));
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Delete a default filler
|
|
361
|
+
* Delete a default filler
|
|
362
|
+
*/
|
|
363
|
+
async deleteDefaultFiller(appId, voiceId, language, fillerId, initOverrides) {
|
|
364
|
+
const response = await this.deleteDefaultFillerRaw({ appId: appId, voiceId: voiceId, language: language, fillerId: fillerId }, initOverrides);
|
|
365
|
+
return await response.value();
|
|
366
|
+
}
|
|
294
367
|
/**
|
|
295
368
|
* Get an app
|
|
296
369
|
* Get an app
|
|
@@ -450,6 +523,44 @@ class AppApi extends runtime.BaseAPI {
|
|
|
450
523
|
const response = await this.getAppsForAgentIdRaw({ agentId: agentId }, initOverrides);
|
|
451
524
|
return await response.value();
|
|
452
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Get audio filler by ID
|
|
528
|
+
* Get audio filler by ID
|
|
529
|
+
*/
|
|
530
|
+
async getAudioFillerByIdRaw(requestParameters, initOverrides) {
|
|
531
|
+
if (requestParameters['appId'] == null) {
|
|
532
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAudioFillerById().');
|
|
533
|
+
}
|
|
534
|
+
if (requestParameters['voiceId'] == null) {
|
|
535
|
+
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling getAudioFillerById().');
|
|
536
|
+
}
|
|
537
|
+
if (requestParameters['language'] == null) {
|
|
538
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling getAudioFillerById().');
|
|
539
|
+
}
|
|
540
|
+
if (requestParameters['fillerId'] == null) {
|
|
541
|
+
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling getAudioFillerById().');
|
|
542
|
+
}
|
|
543
|
+
const queryParameters = {};
|
|
544
|
+
const headerParameters = {};
|
|
545
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
546
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
547
|
+
}
|
|
548
|
+
const response = await this.request({
|
|
549
|
+
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']))),
|
|
550
|
+
method: 'GET',
|
|
551
|
+
headers: headerParameters,
|
|
552
|
+
query: queryParameters,
|
|
553
|
+
}, initOverrides);
|
|
554
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AudioFileUioFromJSON)(jsonValue));
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Get audio filler by ID
|
|
558
|
+
* Get audio filler by ID
|
|
559
|
+
*/
|
|
560
|
+
async getAudioFillerById(appId, voiceId, language, fillerId, initOverrides) {
|
|
561
|
+
const response = await this.getAudioFillerByIdRaw({ appId: appId, voiceId: voiceId, language: language, fillerId: fillerId }, initOverrides);
|
|
562
|
+
return await response.value();
|
|
563
|
+
}
|
|
453
564
|
/**
|
|
454
565
|
* Interrupt app
|
|
455
566
|
* 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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 FillersArrayInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FillersArrayInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FillersArrayInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FillersArrayInnerUio
|
|
28
|
+
*/
|
|
29
|
+
text: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof FillersArrayInnerUio
|
|
34
|
+
*/
|
|
35
|
+
checked: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the FillersArrayInnerUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfFillersArrayInnerUio(value: object): value is FillersArrayInnerUio;
|
|
41
|
+
export declare function FillersArrayInnerUioFromJSON(json: any): FillersArrayInnerUio;
|
|
42
|
+
export declare function FillersArrayInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FillersArrayInnerUio;
|
|
43
|
+
export declare function FillersArrayInnerUioToJSON(json: any): FillersArrayInnerUio;
|
|
44
|
+
export declare function FillersArrayInnerUioToJSONTyped(value?: FillersArrayInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfFillersArrayInnerUio = instanceOfFillersArrayInnerUio;
|
|
17
|
+
exports.FillersArrayInnerUioFromJSON = FillersArrayInnerUioFromJSON;
|
|
18
|
+
exports.FillersArrayInnerUioFromJSONTyped = FillersArrayInnerUioFromJSONTyped;
|
|
19
|
+
exports.FillersArrayInnerUioToJSON = FillersArrayInnerUioToJSON;
|
|
20
|
+
exports.FillersArrayInnerUioToJSONTyped = FillersArrayInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FillersArrayInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFillersArrayInnerUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('checked' in value) || value['checked'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function FillersArrayInnerUioFromJSON(json) {
|
|
34
|
+
return FillersArrayInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function FillersArrayInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'text': json['text'],
|
|
43
|
+
'checked': json['checked'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function FillersArrayInnerUioToJSON(json) {
|
|
47
|
+
return FillersArrayInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function FillersArrayInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'text': value['text'],
|
|
56
|
+
'checked': value['checked'],
|
|
57
|
+
};
|
|
58
|
+
}
|
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';
|
|
@@ -111,6 +112,7 @@ export * from './FileStatusUio';
|
|
|
111
112
|
export * from './FileStatusUpdateRequestUio';
|
|
112
113
|
export * from './FileUio';
|
|
113
114
|
export * from './FileWithDownloadUrlUio';
|
|
115
|
+
export * from './FillersArrayInnerUio';
|
|
114
116
|
export * from './FlowContentsSuggestionUio';
|
|
115
117
|
export * from './FlowContentsUio';
|
|
116
118
|
export * from './FlowEntrypointsUio';
|
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);
|
|
@@ -129,6 +130,7 @@ __exportStar(require("./FileStatusUio"), exports);
|
|
|
129
130
|
__exportStar(require("./FileStatusUpdateRequestUio"), exports);
|
|
130
131
|
__exportStar(require("./FileUio"), exports);
|
|
131
132
|
__exportStar(require("./FileWithDownloadUrlUio"), exports);
|
|
133
|
+
__exportStar(require("./FillersArrayInnerUio"), exports);
|
|
132
134
|
__exportStar(require("./FlowContentsSuggestionUio"), exports);
|
|
133
135
|
__exportStar(require("./FlowContentsUio"), exports);
|
|
134
136
|
__exportStar(require("./FlowEntrypointsUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -6126,6 +6126,191 @@
|
|
|
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
|
+
"200" : {
|
|
6289
|
+
"content" : {
|
|
6290
|
+
"application/json" : {
|
|
6291
|
+
"schema" : {
|
|
6292
|
+
"$ref" : "#/components/schemas/FillersArray"
|
|
6293
|
+
}
|
|
6294
|
+
}
|
|
6295
|
+
},
|
|
6296
|
+
"description" : "Default filler deleted successfully"
|
|
6297
|
+
},
|
|
6298
|
+
"401" : {
|
|
6299
|
+
"description" : "Unauthorized"
|
|
6300
|
+
},
|
|
6301
|
+
"403" : {
|
|
6302
|
+
"description" : "Forbidden - User doesn't have access to this app"
|
|
6303
|
+
},
|
|
6304
|
+
"404" : {
|
|
6305
|
+
"description" : "Default filler not found"
|
|
6306
|
+
},
|
|
6307
|
+
"500" : {
|
|
6308
|
+
"description" : "Server error"
|
|
6309
|
+
}
|
|
6310
|
+
},
|
|
6311
|
+
"summary" : "Delete a default filler",
|
|
6312
|
+
"tags" : [ "app" ]
|
|
6313
|
+
}
|
|
6129
6314
|
}
|
|
6130
6315
|
},
|
|
6131
6316
|
"components" : {
|
|
@@ -6435,9 +6620,62 @@
|
|
|
6435
6620
|
"schema" : {
|
|
6436
6621
|
"type" : "string"
|
|
6437
6622
|
}
|
|
6623
|
+
},
|
|
6624
|
+
"voiceIdPath" : {
|
|
6625
|
+
"description" : "ID of the voice",
|
|
6626
|
+
"in" : "path",
|
|
6627
|
+
"name" : "voiceId",
|
|
6628
|
+
"required" : true,
|
|
6629
|
+
"schema" : {
|
|
6630
|
+
"type" : "string"
|
|
6631
|
+
}
|
|
6632
|
+
},
|
|
6633
|
+
"languagePath" : {
|
|
6634
|
+
"description" : "Language code",
|
|
6635
|
+
"in" : "path",
|
|
6636
|
+
"name" : "language",
|
|
6637
|
+
"required" : true,
|
|
6638
|
+
"schema" : {
|
|
6639
|
+
"type" : "string"
|
|
6640
|
+
}
|
|
6641
|
+
},
|
|
6642
|
+
"fillerIdPath" : {
|
|
6643
|
+
"description" : "ID of the filler",
|
|
6644
|
+
"in" : "path",
|
|
6645
|
+
"name" : "fillerId",
|
|
6646
|
+
"required" : true,
|
|
6647
|
+
"schema" : {
|
|
6648
|
+
"type" : "string"
|
|
6649
|
+
}
|
|
6650
|
+
},
|
|
6651
|
+
"languageQuery" : {
|
|
6652
|
+
"description" : "Language code",
|
|
6653
|
+
"in" : "query",
|
|
6654
|
+
"name" : "lang",
|
|
6655
|
+
"schema" : {
|
|
6656
|
+
"type" : "string"
|
|
6657
|
+
}
|
|
6658
|
+
},
|
|
6659
|
+
"fillersIdsQuery" : {
|
|
6660
|
+
"description" : "Fillers IDs",
|
|
6661
|
+
"in" : "query",
|
|
6662
|
+
"name" : "fillersIds",
|
|
6663
|
+
"schema" : {
|
|
6664
|
+
"type" : "string"
|
|
6665
|
+
}
|
|
6438
6666
|
}
|
|
6439
6667
|
},
|
|
6440
6668
|
"schemas" : {
|
|
6669
|
+
"AudioFillerExistsResponse" : {
|
|
6670
|
+
"additionalProperties" : false,
|
|
6671
|
+
"properties" : {
|
|
6672
|
+
"exists" : {
|
|
6673
|
+
"type" : "boolean"
|
|
6674
|
+
}
|
|
6675
|
+
},
|
|
6676
|
+
"required" : [ "exists" ],
|
|
6677
|
+
"type" : "object"
|
|
6678
|
+
},
|
|
6441
6679
|
"ImageKnowledge" : {
|
|
6442
6680
|
"properties" : {
|
|
6443
6681
|
"id" : {
|
|
@@ -9510,6 +9748,12 @@
|
|
|
9510
9748
|
"required" : [ "message" ],
|
|
9511
9749
|
"type" : "object"
|
|
9512
9750
|
},
|
|
9751
|
+
"FillersArray" : {
|
|
9752
|
+
"items" : {
|
|
9753
|
+
"$ref" : "#/components/schemas/FillersArray_inner"
|
|
9754
|
+
},
|
|
9755
|
+
"type" : "array"
|
|
9756
|
+
},
|
|
9513
9757
|
"KnowledgeBasePrivacy" : {
|
|
9514
9758
|
"enum" : [ "private", "public" ],
|
|
9515
9759
|
"type" : "string"
|
|
@@ -10225,6 +10469,21 @@
|
|
|
10225
10469
|
},
|
|
10226
10470
|
"type" : "object"
|
|
10227
10471
|
},
|
|
10472
|
+
"FillersArray_inner" : {
|
|
10473
|
+
"properties" : {
|
|
10474
|
+
"id" : {
|
|
10475
|
+
"type" : "string"
|
|
10476
|
+
},
|
|
10477
|
+
"text" : {
|
|
10478
|
+
"type" : "string"
|
|
10479
|
+
},
|
|
10480
|
+
"checked" : {
|
|
10481
|
+
"type" : "boolean"
|
|
10482
|
+
}
|
|
10483
|
+
},
|
|
10484
|
+
"required" : [ "checked", "id", "text" ],
|
|
10485
|
+
"type" : "object"
|
|
10486
|
+
},
|
|
10228
10487
|
"Engine_options" : {
|
|
10229
10488
|
"additionalProperties" : false,
|
|
10230
10489
|
"properties" : {
|