@breign/client 1.0.109 → 1.0.111
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 +92 -18
- package/dist/apis/AppApi.js +196 -32
- package/dist/apis/KnowledgeApi.d.ts +120 -8
- package/dist/apis/KnowledgeApi.js +268 -30
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +3 -2
- package/dist/apis/SkillsApi.d.ts +46 -1
- package/dist/apis/SkillsApi.js +109 -0
- package/dist/apis/ToolsApi.d.ts +42 -1
- package/dist/apis/ToolsApi.js +87 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
- package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
- package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
- package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
- package/dist/models/AddCustomFillerRequestUio.js +50 -0
- package/dist/models/AgentPatchUio.d.ts +1 -1
- package/dist/models/AgentUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.d.ts +6 -0
- package/dist/models/FileCreationRequestUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +38 -0
- package/dist/models/FileCreationResponseUio.js +18 -0
- package/dist/models/FileUio.d.ts +38 -0
- package/dist/models/FileUio.js +18 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
- package/dist/models/FileWithDownloadUrlUio.js +18 -0
- package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
- package/dist/models/KnowledgeSitePageUio.js +101 -0
- package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
- package/dist/models/LibrarySkillEntryUio.js +83 -0
- package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
- package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
- package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
- package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
- package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
- package/dist/models/LibrarySkillVersionUio.js +89 -0
- package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
- package/dist/models/LibrarySkillsPageUio.js +71 -0
- package/dist/models/MessageStatusErrorUio.d.ts +38 -0
- package/dist/models/MessageStatusErrorUio.js +50 -0
- package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
- package/dist/models/MessageStatusToolCallUio.js +54 -0
- package/dist/models/MessageStatusUio.d.ts +79 -0
- package/dist/models/MessageStatusUio.js +73 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
- package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
- package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
- package/dist/models/SkillAssignRequestUio.js +2 -2
- package/dist/models/SkillUio.d.ts +12 -0
- package/dist/models/SkillUio.js +4 -0
- package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
- package/dist/models/SkillUpdateRequestUio.js +4 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
- package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
- package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
- package/dist/models/index.d.ts +24 -1
- package/dist/models/index.js +24 -1
- package/dist/openapi.json +1711 -267
- package/package.json +1 -1
- package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
- package/dist/models/AudioFillerExistsResponseUio.js +0 -50
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 { AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppInstanceListItemUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio,
|
|
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';
|
|
14
14
|
export interface AddAnimationRequest {
|
|
15
15
|
appId: string;
|
|
16
16
|
animationCreateRequestUio: AnimationCreateRequestUio;
|
|
@@ -20,13 +20,19 @@ export interface AddAppConfigurationFileRequest {
|
|
|
20
20
|
type: string;
|
|
21
21
|
fileCreationRequestUio: FileCreationRequestUio;
|
|
22
22
|
}
|
|
23
|
+
export interface AddCustomFillerRequest {
|
|
24
|
+
appId: string;
|
|
25
|
+
language: string;
|
|
26
|
+
addCustomFillerRequestUio: AddCustomFillerRequestUio;
|
|
27
|
+
}
|
|
23
28
|
export interface AddSequenceRequest {
|
|
24
29
|
appId: string;
|
|
25
30
|
sequenceCreateRequestUio: SequenceCreateRequestUio;
|
|
26
31
|
}
|
|
27
32
|
export interface CheckAudioFillerExistsRequest {
|
|
28
33
|
appId: string;
|
|
29
|
-
|
|
34
|
+
voiceId: string;
|
|
35
|
+
language: string;
|
|
30
36
|
fillersIds?: string;
|
|
31
37
|
}
|
|
32
38
|
export interface CreateAppRequest {
|
|
@@ -56,16 +62,24 @@ export interface DeleteAppConfigurationRequest {
|
|
|
56
62
|
appId: string;
|
|
57
63
|
instanceId?: string;
|
|
58
64
|
}
|
|
65
|
+
export interface DeleteAppInstanceRequest {
|
|
66
|
+
appId: string;
|
|
67
|
+
instanceId: string;
|
|
68
|
+
}
|
|
59
69
|
export interface DeleteAppMessageAudioRequest {
|
|
60
70
|
appId: string;
|
|
61
71
|
audioFileId: string;
|
|
62
72
|
}
|
|
63
|
-
export interface
|
|
73
|
+
export interface DeleteCustomFillerRequest {
|
|
64
74
|
appId: string;
|
|
65
|
-
voiceId: string;
|
|
66
75
|
language: string;
|
|
67
76
|
fillerId: string;
|
|
68
77
|
}
|
|
78
|
+
export interface DeleteVoiceDefaultFillerAudioRequest {
|
|
79
|
+
appId: string;
|
|
80
|
+
voiceId: string;
|
|
81
|
+
fillerId: string;
|
|
82
|
+
}
|
|
69
83
|
export interface GetAppByIdRequest {
|
|
70
84
|
appId: string;
|
|
71
85
|
}
|
|
@@ -82,6 +96,9 @@ export interface GetAppConversationsRequest {
|
|
|
82
96
|
page?: number;
|
|
83
97
|
messageReaction?: GetAppConversationsMessageReactionEnum;
|
|
84
98
|
}
|
|
99
|
+
export interface GetAppFillersRequest {
|
|
100
|
+
appId: string;
|
|
101
|
+
}
|
|
85
102
|
export interface GetAppProbeRequest {
|
|
86
103
|
appId: string;
|
|
87
104
|
instanceId?: string;
|
|
@@ -91,7 +108,6 @@ export interface GetAppsForAgentIdRequest {
|
|
|
91
108
|
}
|
|
92
109
|
export interface GetAudioFillerByIdRequest {
|
|
93
110
|
appId: string;
|
|
94
|
-
voiceId: string;
|
|
95
111
|
language: string;
|
|
96
112
|
fillerId: string;
|
|
97
113
|
}
|
|
@@ -157,6 +173,10 @@ export interface UpdateAppProfilePictureRequest {
|
|
|
157
173
|
appId: string;
|
|
158
174
|
fileCreationRequestUio: FileCreationRequestUio;
|
|
159
175
|
}
|
|
176
|
+
export interface UpdateSelectedFillersRequest {
|
|
177
|
+
appId: string;
|
|
178
|
+
updateSelectedFillersRequestUio: UpdateSelectedFillersRequestUio;
|
|
179
|
+
}
|
|
160
180
|
/**
|
|
161
181
|
*
|
|
162
182
|
*/
|
|
@@ -181,6 +201,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
181
201
|
* Add file to app configuration
|
|
182
202
|
*/
|
|
183
203
|
addAppConfigurationFile(appId: string, type: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
204
|
+
/**
|
|
205
|
+
* Add a custom filler phrase to an app for a given language
|
|
206
|
+
* Add a custom filler
|
|
207
|
+
*/
|
|
208
|
+
addCustomFillerRaw(requestParameters: AddCustomFillerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddCustomFiller201ResponseUio>>;
|
|
209
|
+
/**
|
|
210
|
+
* Add a custom filler phrase to an app for a given language
|
|
211
|
+
* Add a custom filler
|
|
212
|
+
*/
|
|
213
|
+
addCustomFiller(appId: string, language: string, addCustomFillerRequestUio: AddCustomFillerRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddCustomFiller201ResponseUio>;
|
|
184
214
|
/**
|
|
185
215
|
* Add a sequence to an app
|
|
186
216
|
* Add a sequence to an app
|
|
@@ -192,15 +222,19 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
192
222
|
*/
|
|
193
223
|
addSequence(appId: string, sequenceCreateRequestUio: SequenceCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
194
224
|
/**
|
|
195
|
-
* Check
|
|
196
|
-
* Check if audio
|
|
225
|
+
* Check for each filler id whether its generated audio exists for the given voice
|
|
226
|
+
* Check if audio fillers exist
|
|
197
227
|
*/
|
|
198
|
-
checkAudioFillerExistsRaw(requestParameters: CheckAudioFillerExistsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
228
|
+
checkAudioFillerExistsRaw(requestParameters: CheckAudioFillerExistsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
229
|
+
[key: string]: boolean;
|
|
230
|
+
}>>;
|
|
199
231
|
/**
|
|
200
|
-
* Check
|
|
201
|
-
* Check if audio
|
|
232
|
+
* Check for each filler id whether its generated audio exists for the given voice
|
|
233
|
+
* Check if audio fillers exist
|
|
202
234
|
*/
|
|
203
|
-
checkAudioFillerExists(appId: string,
|
|
235
|
+
checkAudioFillerExists(appId: string, voiceId: string, language: string, fillersIds?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
236
|
+
[key: string]: boolean;
|
|
237
|
+
}>;
|
|
204
238
|
/**
|
|
205
239
|
* Creates a new app
|
|
206
240
|
* Create an app
|
|
@@ -261,6 +295,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
261
295
|
* Delete app configuration
|
|
262
296
|
*/
|
|
263
297
|
deleteAppConfiguration(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
298
|
+
/**
|
|
299
|
+
* Remove an instance from an app (deactivates it if ephemeral)
|
|
300
|
+
* Delete app instance
|
|
301
|
+
*/
|
|
302
|
+
deleteAppInstanceRaw(requestParameters: DeleteAppInstanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
303
|
+
/**
|
|
304
|
+
* Remove an instance from an app (deactivates it if ephemeral)
|
|
305
|
+
* Delete app instance
|
|
306
|
+
*/
|
|
307
|
+
deleteAppInstance(appId: string, instanceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
264
308
|
/**
|
|
265
309
|
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
266
310
|
* Delete a conversation message audio file for an app
|
|
@@ -272,15 +316,25 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
272
316
|
*/
|
|
273
317
|
deleteAppMessageAudio(appId: string, audioFileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteMessageAudio200ResponseUio>;
|
|
274
318
|
/**
|
|
275
|
-
* Delete a
|
|
276
|
-
* Delete a
|
|
319
|
+
* Delete a custom filler phrase from an app for a given language
|
|
320
|
+
* Delete a custom filler
|
|
277
321
|
*/
|
|
278
|
-
|
|
322
|
+
deleteCustomFillerRaw(requestParameters: DeleteCustomFillerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
279
323
|
/**
|
|
280
|
-
* Delete a
|
|
281
|
-
* Delete a
|
|
324
|
+
* Delete a custom filler phrase from an app for a given language
|
|
325
|
+
* Delete a custom filler
|
|
282
326
|
*/
|
|
283
|
-
|
|
327
|
+
deleteCustomFiller(appId: string, language: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
328
|
+
/**
|
|
329
|
+
* Delete the audio file generated for a default filler of an app voice
|
|
330
|
+
* Delete the generated audio of a default filler
|
|
331
|
+
*/
|
|
332
|
+
deleteVoiceDefaultFillerAudioRaw(requestParameters: DeleteVoiceDefaultFillerAudioRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
|
|
333
|
+
/**
|
|
334
|
+
* Delete the audio file generated for a default filler of an app voice
|
|
335
|
+
* Delete the generated audio of a default filler
|
|
336
|
+
*/
|
|
337
|
+
deleteVoiceDefaultFillerAudio(appId: string, voiceId: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
284
338
|
/**
|
|
285
339
|
* Get an app
|
|
286
340
|
* Get an app
|
|
@@ -321,6 +375,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
321
375
|
* Get conversations for an app
|
|
322
376
|
*/
|
|
323
377
|
getAppConversations(appId: string, page?: number, messageReaction?: GetAppConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationUio>>;
|
|
378
|
+
/**
|
|
379
|
+
* List all fillers of the app across languages
|
|
380
|
+
* List app fillers
|
|
381
|
+
*/
|
|
382
|
+
getAppFillersRaw(requestParameters: GetAppFillersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FillersArrayInnerUio>>>;
|
|
383
|
+
/**
|
|
384
|
+
* List all fillers of the app across languages
|
|
385
|
+
* List app fillers
|
|
386
|
+
*/
|
|
387
|
+
getAppFillers(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FillersArrayInnerUio>>;
|
|
324
388
|
/**
|
|
325
389
|
* Probe the app
|
|
326
390
|
* Probe the app
|
|
@@ -350,7 +414,7 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
350
414
|
* Get audio filler by ID
|
|
351
415
|
* Get audio filler by ID
|
|
352
416
|
*/
|
|
353
|
-
getAudioFillerById(appId: string,
|
|
417
|
+
getAudioFillerById(appId: string, language: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioFileUio>;
|
|
354
418
|
/**
|
|
355
419
|
* List persisted instances for an app (excludes ephemeral instances)
|
|
356
420
|
* List app instances
|
|
@@ -493,6 +557,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
493
557
|
* Update profile picture for an app
|
|
494
558
|
*/
|
|
495
559
|
updateAppProfilePicture(appId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3UploadBodyUio>;
|
|
560
|
+
/**
|
|
561
|
+
* Update the checked state of fillers for an app
|
|
562
|
+
* Update selected fillers
|
|
563
|
+
*/
|
|
564
|
+
updateSelectedFillersRaw(requestParameters: UpdateSelectedFillersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSelectedFillers200ResponseUio>>;
|
|
565
|
+
/**
|
|
566
|
+
* Update the checked state of fillers for an app
|
|
567
|
+
* Update selected fillers
|
|
568
|
+
*/
|
|
569
|
+
updateSelectedFillers(appId: string, updateSelectedFillersRequestUio: UpdateSelectedFillersRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSelectedFillers200ResponseUio>;
|
|
496
570
|
}
|
|
497
571
|
/**
|
|
498
572
|
* @export
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -124,6 +124,43 @@ class AppApi extends runtime.BaseAPI {
|
|
|
124
124
|
const response = await this.addAppConfigurationFileRaw({ appId: appId, type: type, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
125
125
|
return await response.value();
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Add a custom filler phrase to an app for a given language
|
|
129
|
+
* Add a custom filler
|
|
130
|
+
*/
|
|
131
|
+
async addCustomFillerRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters['appId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling addCustomFiller().');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['language'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling addCustomFiller().');
|
|
137
|
+
}
|
|
138
|
+
if (requestParameters['addCustomFillerRequestUio'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('addCustomFillerRequestUio', 'Required parameter "addCustomFillerRequestUio" was null or undefined when calling addCustomFiller().');
|
|
140
|
+
}
|
|
141
|
+
const queryParameters = {};
|
|
142
|
+
const headerParameters = {};
|
|
143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
144
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
146
|
+
}
|
|
147
|
+
const response = await this.request({
|
|
148
|
+
path: `/apps/{appId}/languages/{language}/customFillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))),
|
|
149
|
+
method: 'POST',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
body: (0, index_1.AddCustomFillerRequestUioToJSON)(requestParameters['addCustomFillerRequestUio']),
|
|
153
|
+
}, initOverrides);
|
|
154
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddCustomFiller201ResponseUioFromJSON)(jsonValue));
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Add a custom filler phrase to an app for a given language
|
|
158
|
+
* Add a custom filler
|
|
159
|
+
*/
|
|
160
|
+
async addCustomFiller(appId, language, addCustomFillerRequestUio, initOverrides) {
|
|
161
|
+
const response = await this.addCustomFillerRaw({ appId: appId, language: language, addCustomFillerRequestUio: addCustomFillerRequestUio }, initOverrides);
|
|
162
|
+
return await response.value();
|
|
163
|
+
}
|
|
127
164
|
/**
|
|
128
165
|
* Add a sequence to an app
|
|
129
166
|
* Add a sequence to an app
|
|
@@ -159,17 +196,20 @@ class AppApi extends runtime.BaseAPI {
|
|
|
159
196
|
return await response.value();
|
|
160
197
|
}
|
|
161
198
|
/**
|
|
162
|
-
* Check
|
|
163
|
-
* Check if audio
|
|
199
|
+
* Check for each filler id whether its generated audio exists for the given voice
|
|
200
|
+
* Check if audio fillers exist
|
|
164
201
|
*/
|
|
165
202
|
async checkAudioFillerExistsRaw(requestParameters, initOverrides) {
|
|
166
203
|
if (requestParameters['appId'] == null) {
|
|
167
204
|
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling checkAudioFillerExists().');
|
|
168
205
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
206
|
+
if (requestParameters['voiceId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling checkAudioFillerExists().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['language'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling checkAudioFillerExists().');
|
|
172
211
|
}
|
|
212
|
+
const queryParameters = {};
|
|
173
213
|
if (requestParameters['fillersIds'] != null) {
|
|
174
214
|
queryParameters['fillersIds'] = requestParameters['fillersIds'];
|
|
175
215
|
}
|
|
@@ -178,19 +218,19 @@ class AppApi extends runtime.BaseAPI {
|
|
|
178
218
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
179
219
|
}
|
|
180
220
|
const response = await this.request({
|
|
181
|
-
path: `/apps/{appId}/fillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
221
|
+
path: `/apps/{appId}/voice/{voiceId}/languages/{language}/fillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"voiceId"}}`, encodeURIComponent(String(requestParameters['voiceId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))),
|
|
182
222
|
method: 'GET',
|
|
183
223
|
headers: headerParameters,
|
|
184
224
|
query: queryParameters,
|
|
185
225
|
}, initOverrides);
|
|
186
|
-
return new runtime.JSONApiResponse(response
|
|
226
|
+
return new runtime.JSONApiResponse(response);
|
|
187
227
|
}
|
|
188
228
|
/**
|
|
189
|
-
* Check
|
|
190
|
-
* Check if audio
|
|
229
|
+
* Check for each filler id whether its generated audio exists for the given voice
|
|
230
|
+
* Check if audio fillers exist
|
|
191
231
|
*/
|
|
192
|
-
async checkAudioFillerExists(appId,
|
|
193
|
-
const response = await this.checkAudioFillerExistsRaw({ appId: appId,
|
|
232
|
+
async checkAudioFillerExists(appId, voiceId, language, fillersIds, initOverrides) {
|
|
233
|
+
const response = await this.checkAudioFillerExistsRaw({ appId: appId, voiceId: voiceId, language: language, fillersIds: fillersIds }, initOverrides);
|
|
194
234
|
return await response.value();
|
|
195
235
|
}
|
|
196
236
|
/**
|
|
@@ -400,6 +440,38 @@ class AppApi extends runtime.BaseAPI {
|
|
|
400
440
|
async deleteAppConfiguration(appId, instanceId, initOverrides) {
|
|
401
441
|
await this.deleteAppConfigurationRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
402
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Remove an instance from an app (deactivates it if ephemeral)
|
|
445
|
+
* Delete app instance
|
|
446
|
+
*/
|
|
447
|
+
async deleteAppInstanceRaw(requestParameters, initOverrides) {
|
|
448
|
+
if (requestParameters['appId'] == null) {
|
|
449
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteAppInstance().');
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters['instanceId'] == null) {
|
|
452
|
+
throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling deleteAppInstance().');
|
|
453
|
+
}
|
|
454
|
+
const queryParameters = {};
|
|
455
|
+
const headerParameters = {};
|
|
456
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
457
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
458
|
+
}
|
|
459
|
+
const response = await this.request({
|
|
460
|
+
path: `/apps/{appId}/instances/{instanceId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
|
|
461
|
+
method: 'DELETE',
|
|
462
|
+
headers: headerParameters,
|
|
463
|
+
query: queryParameters,
|
|
464
|
+
}, initOverrides);
|
|
465
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Remove an instance from an app (deactivates it if ephemeral)
|
|
469
|
+
* Delete app instance
|
|
470
|
+
*/
|
|
471
|
+
async deleteAppInstance(appId, instanceId, initOverrides) {
|
|
472
|
+
const response = await this.deleteAppInstanceRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
473
|
+
return await response.value();
|
|
474
|
+
}
|
|
403
475
|
/**
|
|
404
476
|
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
405
477
|
* Delete a conversation message audio file for an app
|
|
@@ -433,21 +505,18 @@ class AppApi extends runtime.BaseAPI {
|
|
|
433
505
|
return await response.value();
|
|
434
506
|
}
|
|
435
507
|
/**
|
|
436
|
-
* Delete a
|
|
437
|
-
* Delete a
|
|
508
|
+
* Delete a custom filler phrase from an app for a given language
|
|
509
|
+
* Delete a custom filler
|
|
438
510
|
*/
|
|
439
|
-
async
|
|
511
|
+
async deleteCustomFillerRaw(requestParameters, initOverrides) {
|
|
440
512
|
if (requestParameters['appId'] == null) {
|
|
441
|
-
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling
|
|
442
|
-
}
|
|
443
|
-
if (requestParameters['voiceId'] == null) {
|
|
444
|
-
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling deleteDefaultFiller().');
|
|
513
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteCustomFiller().');
|
|
445
514
|
}
|
|
446
515
|
if (requestParameters['language'] == null) {
|
|
447
|
-
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling
|
|
516
|
+
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling deleteCustomFiller().');
|
|
448
517
|
}
|
|
449
518
|
if (requestParameters['fillerId'] == null) {
|
|
450
|
-
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling
|
|
519
|
+
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling deleteCustomFiller().');
|
|
451
520
|
}
|
|
452
521
|
const queryParameters = {};
|
|
453
522
|
const headerParameters = {};
|
|
@@ -455,19 +524,54 @@ class AppApi extends runtime.BaseAPI {
|
|
|
455
524
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
456
525
|
}
|
|
457
526
|
const response = await this.request({
|
|
458
|
-
path: `/apps/{appId}/
|
|
527
|
+
path: `/apps/{appId}/languages/{language}/customFillers/{fillerId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))).replace(`{${"fillerId"}}`, encodeURIComponent(String(requestParameters['fillerId']))),
|
|
459
528
|
method: 'DELETE',
|
|
460
529
|
headers: headerParameters,
|
|
461
530
|
query: queryParameters,
|
|
462
531
|
}, initOverrides);
|
|
463
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
532
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
464
533
|
}
|
|
465
534
|
/**
|
|
466
|
-
* Delete a
|
|
467
|
-
* Delete a
|
|
535
|
+
* Delete a custom filler phrase from an app for a given language
|
|
536
|
+
* Delete a custom filler
|
|
468
537
|
*/
|
|
469
|
-
async
|
|
470
|
-
const response = await this.
|
|
538
|
+
async deleteCustomFiller(appId, language, fillerId, initOverrides) {
|
|
539
|
+
const response = await this.deleteCustomFillerRaw({ appId: appId, language: language, fillerId: fillerId }, initOverrides);
|
|
540
|
+
return await response.value();
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Delete the audio file generated for a default filler of an app voice
|
|
544
|
+
* Delete the generated audio of a default filler
|
|
545
|
+
*/
|
|
546
|
+
async deleteVoiceDefaultFillerAudioRaw(requestParameters, initOverrides) {
|
|
547
|
+
if (requestParameters['appId'] == null) {
|
|
548
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteVoiceDefaultFillerAudio().');
|
|
549
|
+
}
|
|
550
|
+
if (requestParameters['voiceId'] == null) {
|
|
551
|
+
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling deleteVoiceDefaultFillerAudio().');
|
|
552
|
+
}
|
|
553
|
+
if (requestParameters['fillerId'] == null) {
|
|
554
|
+
throw new runtime.RequiredError('fillerId', 'Required parameter "fillerId" was null or undefined when calling deleteVoiceDefaultFillerAudio().');
|
|
555
|
+
}
|
|
556
|
+
const queryParameters = {};
|
|
557
|
+
const headerParameters = {};
|
|
558
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
559
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
560
|
+
}
|
|
561
|
+
const response = await this.request({
|
|
562
|
+
path: `/apps/{appId}/voice/{voiceId}/defaultFillers/{fillerId}/audio`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"voiceId"}}`, encodeURIComponent(String(requestParameters['voiceId']))).replace(`{${"fillerId"}}`, encodeURIComponent(String(requestParameters['fillerId']))),
|
|
563
|
+
method: 'DELETE',
|
|
564
|
+
headers: headerParameters,
|
|
565
|
+
query: queryParameters,
|
|
566
|
+
}, initOverrides);
|
|
567
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BodyWithMessageUioFromJSON)(jsonValue));
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Delete the audio file generated for a default filler of an app voice
|
|
571
|
+
* Delete the generated audio of a default filler
|
|
572
|
+
*/
|
|
573
|
+
async deleteVoiceDefaultFillerAudio(appId, voiceId, fillerId, initOverrides) {
|
|
574
|
+
const response = await this.deleteVoiceDefaultFillerAudioRaw({ appId: appId, voiceId: voiceId, fillerId: fillerId }, initOverrides);
|
|
471
575
|
return await response.value();
|
|
472
576
|
}
|
|
473
577
|
/**
|
|
@@ -603,6 +707,35 @@ class AppApi extends runtime.BaseAPI {
|
|
|
603
707
|
const response = await this.getAppConversationsRaw({ appId: appId, page: page, messageReaction: messageReaction }, initOverrides);
|
|
604
708
|
return await response.value();
|
|
605
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
* List all fillers of the app across languages
|
|
712
|
+
* List app fillers
|
|
713
|
+
*/
|
|
714
|
+
async getAppFillersRaw(requestParameters, initOverrides) {
|
|
715
|
+
if (requestParameters['appId'] == null) {
|
|
716
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAppFillers().');
|
|
717
|
+
}
|
|
718
|
+
const queryParameters = {};
|
|
719
|
+
const headerParameters = {};
|
|
720
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
721
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
722
|
+
}
|
|
723
|
+
const response = await this.request({
|
|
724
|
+
path: `/apps/{appId}/fillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
725
|
+
method: 'GET',
|
|
726
|
+
headers: headerParameters,
|
|
727
|
+
query: queryParameters,
|
|
728
|
+
}, initOverrides);
|
|
729
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.FillersArrayInnerUioFromJSON));
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* List all fillers of the app across languages
|
|
733
|
+
* List app fillers
|
|
734
|
+
*/
|
|
735
|
+
async getAppFillers(appId, initOverrides) {
|
|
736
|
+
const response = await this.getAppFillersRaw({ appId: appId }, initOverrides);
|
|
737
|
+
return await response.value();
|
|
738
|
+
}
|
|
606
739
|
/**
|
|
607
740
|
* Probe the app
|
|
608
741
|
* Probe the app
|
|
@@ -672,9 +805,6 @@ class AppApi extends runtime.BaseAPI {
|
|
|
672
805
|
if (requestParameters['appId'] == null) {
|
|
673
806
|
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAudioFillerById().');
|
|
674
807
|
}
|
|
675
|
-
if (requestParameters['voiceId'] == null) {
|
|
676
|
-
throw new runtime.RequiredError('voiceId', 'Required parameter "voiceId" was null or undefined when calling getAudioFillerById().');
|
|
677
|
-
}
|
|
678
808
|
if (requestParameters['language'] == null) {
|
|
679
809
|
throw new runtime.RequiredError('language', 'Required parameter "language" was null or undefined when calling getAudioFillerById().');
|
|
680
810
|
}
|
|
@@ -687,7 +817,7 @@ class AppApi extends runtime.BaseAPI {
|
|
|
687
817
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
688
818
|
}
|
|
689
819
|
const response = await this.request({
|
|
690
|
-
path: `/apps/{appId}/languages/{language}/fillers/{fillerId}/audio`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"
|
|
820
|
+
path: `/apps/{appId}/languages/{language}/fillers/{fillerId}/audio`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"language"}}`, encodeURIComponent(String(requestParameters['language']))).replace(`{${"fillerId"}}`, encodeURIComponent(String(requestParameters['fillerId']))),
|
|
691
821
|
method: 'GET',
|
|
692
822
|
headers: headerParameters,
|
|
693
823
|
query: queryParameters,
|
|
@@ -698,8 +828,8 @@ class AppApi extends runtime.BaseAPI {
|
|
|
698
828
|
* Get audio filler by ID
|
|
699
829
|
* Get audio filler by ID
|
|
700
830
|
*/
|
|
701
|
-
async getAudioFillerById(appId,
|
|
702
|
-
const response = await this.getAudioFillerByIdRaw({ appId: appId,
|
|
831
|
+
async getAudioFillerById(appId, language, fillerId, initOverrides) {
|
|
832
|
+
const response = await this.getAudioFillerByIdRaw({ appId: appId, language: language, fillerId: fillerId }, initOverrides);
|
|
703
833
|
return await response.value();
|
|
704
834
|
}
|
|
705
835
|
/**
|
|
@@ -1181,6 +1311,40 @@ class AppApi extends runtime.BaseAPI {
|
|
|
1181
1311
|
const response = await this.updateAppProfilePictureRaw({ appId: appId, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
|
|
1182
1312
|
return await response.value();
|
|
1183
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Update the checked state of fillers for an app
|
|
1316
|
+
* Update selected fillers
|
|
1317
|
+
*/
|
|
1318
|
+
async updateSelectedFillersRaw(requestParameters, initOverrides) {
|
|
1319
|
+
if (requestParameters['appId'] == null) {
|
|
1320
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling updateSelectedFillers().');
|
|
1321
|
+
}
|
|
1322
|
+
if (requestParameters['updateSelectedFillersRequestUio'] == null) {
|
|
1323
|
+
throw new runtime.RequiredError('updateSelectedFillersRequestUio', 'Required parameter "updateSelectedFillersRequestUio" was null or undefined when calling updateSelectedFillers().');
|
|
1324
|
+
}
|
|
1325
|
+
const queryParameters = {};
|
|
1326
|
+
const headerParameters = {};
|
|
1327
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1329
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
1330
|
+
}
|
|
1331
|
+
const response = await this.request({
|
|
1332
|
+
path: `/apps/{appId}/selectedFillers`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
1333
|
+
method: 'PATCH',
|
|
1334
|
+
headers: headerParameters,
|
|
1335
|
+
query: queryParameters,
|
|
1336
|
+
body: (0, index_1.UpdateSelectedFillersRequestUioToJSON)(requestParameters['updateSelectedFillersRequestUio']),
|
|
1337
|
+
}, initOverrides);
|
|
1338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UpdateSelectedFillers200ResponseUioFromJSON)(jsonValue));
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Update the checked state of fillers for an app
|
|
1342
|
+
* Update selected fillers
|
|
1343
|
+
*/
|
|
1344
|
+
async updateSelectedFillers(appId, updateSelectedFillersRequestUio, initOverrides) {
|
|
1345
|
+
const response = await this.updateSelectedFillersRaw({ appId: appId, updateSelectedFillersRequestUio: updateSelectedFillersRequestUio }, initOverrides);
|
|
1346
|
+
return await response.value();
|
|
1347
|
+
}
|
|
1184
1348
|
}
|
|
1185
1349
|
exports.AppApi = AppApi;
|
|
1186
1350
|
/**
|