@breign/client 1.0.89 → 1.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AgentApi.d.ts +35 -2
- package/dist/apis/AgentApi.js +81 -2
- package/dist/apis/AppApi.d.ts +28 -1
- package/dist/apis/AppApi.js +61 -0
- package/dist/models/AppInstanceListItemUio.d.ts +38 -0
- package/dist/models/AppInstanceListItemUio.js +54 -0
- package/dist/models/DeleteMessageAudio200ResponseUio.d.ts +32 -0
- package/dist/models/DeleteMessageAudio200ResponseUio.js +50 -0
- package/dist/models/MessageAudioDownloadUrlUio.d.ts +32 -0
- package/dist/models/MessageAudioDownloadUrlUio.js +50 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/openapi.json +288 -4
- package/package.json +1 -1
package/dist/apis/AgentApi.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 { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
agentModuleUio: AgentModuleUio;
|
|
@@ -29,6 +29,10 @@ export interface DeleteFlowRequest {
|
|
|
29
29
|
agentId: string;
|
|
30
30
|
flowId: string;
|
|
31
31
|
}
|
|
32
|
+
export interface DeleteMessageAudioRequest {
|
|
33
|
+
agentId: string;
|
|
34
|
+
audioFileId: string;
|
|
35
|
+
}
|
|
32
36
|
export interface DeleteModuleRequest {
|
|
33
37
|
agentId: string;
|
|
34
38
|
moduleName: string;
|
|
@@ -66,6 +70,11 @@ export interface GetAgentsRequest {
|
|
|
66
70
|
export interface GetConversationsForAgentRequest {
|
|
67
71
|
agentId: string;
|
|
68
72
|
page?: number;
|
|
73
|
+
search?: string;
|
|
74
|
+
appId?: string;
|
|
75
|
+
instanceId?: string;
|
|
76
|
+
lastMessageFrom?: Date;
|
|
77
|
+
lastMessageTo?: Date;
|
|
69
78
|
}
|
|
70
79
|
export interface GetFlowRequest {
|
|
71
80
|
agentId: string;
|
|
@@ -77,6 +86,10 @@ export interface GetFlowEditorRequest {
|
|
|
77
86
|
export interface GetFlowsRequest {
|
|
78
87
|
agentId: string;
|
|
79
88
|
}
|
|
89
|
+
export interface GetMessageAudioDownloadUrlRequest {
|
|
90
|
+
agentId: string;
|
|
91
|
+
audioFileId: string;
|
|
92
|
+
}
|
|
80
93
|
export interface GetModulesRequest {
|
|
81
94
|
agentId: string;
|
|
82
95
|
}
|
|
@@ -186,6 +199,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
186
199
|
* Delete a flow
|
|
187
200
|
*/
|
|
188
201
|
deleteFlow(agentId: string, flowId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Removes the audio chunk from the message in the database and deletes the file from object storage.
|
|
204
|
+
* Delete a conversation message audio file
|
|
205
|
+
*/
|
|
206
|
+
deleteMessageAudioRaw(requestParameters: DeleteMessageAudioRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteMessageAudio200ResponseUio>>;
|
|
207
|
+
/**
|
|
208
|
+
* Removes the audio chunk from the message in the database and deletes the file from object storage.
|
|
209
|
+
* Delete a conversation message audio file
|
|
210
|
+
*/
|
|
211
|
+
deleteMessageAudio(agentId: string, audioFileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteMessageAudio200ResponseUio>;
|
|
189
212
|
/**
|
|
190
213
|
* Deletes a specific module from the agent
|
|
191
214
|
* Remove a module from an agent
|
|
@@ -273,7 +296,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
273
296
|
* Get conversations for an agent
|
|
274
297
|
* Get conversations for an agent
|
|
275
298
|
*/
|
|
276
|
-
getConversationsForAgent(agentId: string, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
299
|
+
getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
277
300
|
/**
|
|
278
301
|
* Retrieves a specific conversation flow by ID
|
|
279
302
|
* Get a specific flow
|
|
@@ -302,6 +325,16 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
302
325
|
* Get all flows for an agent
|
|
303
326
|
*/
|
|
304
327
|
getFlows(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentFlowUio>>;
|
|
328
|
+
/**
|
|
329
|
+
* Returns a short-lived presigned URL for a message audio chunk (`audio/{audioFileId}/input.mp3`). Call this when the user plays audio in conversation history, not when listing conversations.
|
|
330
|
+
* Get presigned download URL for a conversation message audio
|
|
331
|
+
*/
|
|
332
|
+
getMessageAudioDownloadUrlRaw(requestParameters: GetMessageAudioDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageAudioDownloadUrlUio>>;
|
|
333
|
+
/**
|
|
334
|
+
* Returns a short-lived presigned URL for a message audio chunk (`audio/{audioFileId}/input.mp3`). Call this when the user plays audio in conversation history, not when listing conversations.
|
|
335
|
+
* Get presigned download URL for a conversation message audio
|
|
336
|
+
*/
|
|
337
|
+
getMessageAudioDownloadUrl(agentId: string, audioFileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageAudioDownloadUrlUio>;
|
|
305
338
|
/**
|
|
306
339
|
* Retrieves all modules for a specific agent
|
|
307
340
|
* Get agent modules
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -211,6 +211,38 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
211
211
|
async deleteFlow(agentId, flowId, initOverrides) {
|
|
212
212
|
await this.deleteFlowRaw({ agentId: agentId, flowId: flowId }, initOverrides);
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Removes the audio chunk from the message in the database and deletes the file from object storage.
|
|
216
|
+
* Delete a conversation message audio file
|
|
217
|
+
*/
|
|
218
|
+
async deleteMessageAudioRaw(requestParameters, initOverrides) {
|
|
219
|
+
if (requestParameters['agentId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling deleteMessageAudio().');
|
|
221
|
+
}
|
|
222
|
+
if (requestParameters['audioFileId'] == null) {
|
|
223
|
+
throw new runtime.RequiredError('audioFileId', 'Required parameter "audioFileId" was null or undefined when calling deleteMessageAudio().');
|
|
224
|
+
}
|
|
225
|
+
const queryParameters = {};
|
|
226
|
+
const headerParameters = {};
|
|
227
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
229
|
+
}
|
|
230
|
+
const response = await this.request({
|
|
231
|
+
path: `/agents/{agentId}/message-audio/{audioFileId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"audioFileId"}}`, encodeURIComponent(String(requestParameters['audioFileId']))),
|
|
232
|
+
method: 'DELETE',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
}, initOverrides);
|
|
236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteMessageAudio200ResponseUioFromJSON)(jsonValue));
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Removes the audio chunk from the message in the database and deletes the file from object storage.
|
|
240
|
+
* Delete a conversation message audio file
|
|
241
|
+
*/
|
|
242
|
+
async deleteMessageAudio(agentId, audioFileId, initOverrides) {
|
|
243
|
+
const response = await this.deleteMessageAudioRaw({ agentId: agentId, audioFileId: audioFileId }, initOverrides);
|
|
244
|
+
return await response.value();
|
|
245
|
+
}
|
|
214
246
|
/**
|
|
215
247
|
* Deletes a specific module from the agent
|
|
216
248
|
* Remove a module from an agent
|
|
@@ -484,6 +516,21 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
484
516
|
if (requestParameters['page'] != null) {
|
|
485
517
|
queryParameters['page'] = requestParameters['page'];
|
|
486
518
|
}
|
|
519
|
+
if (requestParameters['search'] != null) {
|
|
520
|
+
queryParameters['search'] = requestParameters['search'];
|
|
521
|
+
}
|
|
522
|
+
if (requestParameters['appId'] != null) {
|
|
523
|
+
queryParameters['appId'] = requestParameters['appId'];
|
|
524
|
+
}
|
|
525
|
+
if (requestParameters['instanceId'] != null) {
|
|
526
|
+
queryParameters['instanceId'] = requestParameters['instanceId'];
|
|
527
|
+
}
|
|
528
|
+
if (requestParameters['lastMessageFrom'] != null) {
|
|
529
|
+
queryParameters['lastMessageFrom'] = requestParameters['lastMessageFrom'].toISOString();
|
|
530
|
+
}
|
|
531
|
+
if (requestParameters['lastMessageTo'] != null) {
|
|
532
|
+
queryParameters['lastMessageTo'] = requestParameters['lastMessageTo'].toISOString();
|
|
533
|
+
}
|
|
487
534
|
const headerParameters = {};
|
|
488
535
|
if (this.configuration && this.configuration.apiKey) {
|
|
489
536
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -500,8 +547,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
500
547
|
* Get conversations for an agent
|
|
501
548
|
* Get conversations for an agent
|
|
502
549
|
*/
|
|
503
|
-
async getConversationsForAgent(agentId, page, initOverrides) {
|
|
504
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page }, initOverrides);
|
|
550
|
+
async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, initOverrides) {
|
|
551
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo }, initOverrides);
|
|
505
552
|
return await response.value();
|
|
506
553
|
}
|
|
507
554
|
/**
|
|
@@ -592,6 +639,38 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
592
639
|
const response = await this.getFlowsRaw({ agentId: agentId }, initOverrides);
|
|
593
640
|
return await response.value();
|
|
594
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* Returns a short-lived presigned URL for a message audio chunk (`audio/{audioFileId}/input.mp3`). Call this when the user plays audio in conversation history, not when listing conversations.
|
|
644
|
+
* Get presigned download URL for a conversation message audio
|
|
645
|
+
*/
|
|
646
|
+
async getMessageAudioDownloadUrlRaw(requestParameters, initOverrides) {
|
|
647
|
+
if (requestParameters['agentId'] == null) {
|
|
648
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getMessageAudioDownloadUrl().');
|
|
649
|
+
}
|
|
650
|
+
if (requestParameters['audioFileId'] == null) {
|
|
651
|
+
throw new runtime.RequiredError('audioFileId', 'Required parameter "audioFileId" was null or undefined when calling getMessageAudioDownloadUrl().');
|
|
652
|
+
}
|
|
653
|
+
const queryParameters = {};
|
|
654
|
+
const headerParameters = {};
|
|
655
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
656
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
657
|
+
}
|
|
658
|
+
const response = await this.request({
|
|
659
|
+
path: `/agents/{agentId}/message-audio/{audioFileId}/download-url`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"audioFileId"}}`, encodeURIComponent(String(requestParameters['audioFileId']))),
|
|
660
|
+
method: 'GET',
|
|
661
|
+
headers: headerParameters,
|
|
662
|
+
query: queryParameters,
|
|
663
|
+
}, initOverrides);
|
|
664
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageAudioDownloadUrlUioFromJSON)(jsonValue));
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Returns a short-lived presigned URL for a message audio chunk (`audio/{audioFileId}/input.mp3`). Call this when the user plays audio in conversation history, not when listing conversations.
|
|
668
|
+
* Get presigned download URL for a conversation message audio
|
|
669
|
+
*/
|
|
670
|
+
async getMessageAudioDownloadUrl(agentId, audioFileId, initOverrides) {
|
|
671
|
+
const response = await this.getMessageAudioDownloadUrlRaw({ agentId: agentId, audioFileId: audioFileId }, initOverrides);
|
|
672
|
+
return await response.value();
|
|
673
|
+
}
|
|
595
674
|
/**
|
|
596
675
|
* Retrieves all modules for a specific agent
|
|
597
676
|
* Get agent modules
|
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, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio } from '../models/index';
|
|
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, AudioFillerExistsResponseUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio } from '../models/index';
|
|
14
14
|
export interface AddAnimationRequest {
|
|
15
15
|
appId: string;
|
|
16
16
|
animationCreateRequestUio: AnimationCreateRequestUio;
|
|
@@ -56,6 +56,10 @@ export interface DeleteAppConfigurationRequest {
|
|
|
56
56
|
appId: string;
|
|
57
57
|
instanceId?: string;
|
|
58
58
|
}
|
|
59
|
+
export interface DeleteAppMessageAudioRequest {
|
|
60
|
+
appId: string;
|
|
61
|
+
audioFileId: string;
|
|
62
|
+
}
|
|
59
63
|
export interface DeleteDefaultFillerRequest {
|
|
60
64
|
appId: string;
|
|
61
65
|
voiceId: string;
|
|
@@ -90,6 +94,9 @@ export interface GetAudioFillerByIdRequest {
|
|
|
90
94
|
language: string;
|
|
91
95
|
fillerId: string;
|
|
92
96
|
}
|
|
97
|
+
export interface GetInstancesForAppIdRequest {
|
|
98
|
+
appId: string;
|
|
99
|
+
}
|
|
93
100
|
export interface InterruptAppRequest {
|
|
94
101
|
appId: string;
|
|
95
102
|
instanceId?: string;
|
|
@@ -253,6 +260,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
253
260
|
* Delete app configuration
|
|
254
261
|
*/
|
|
255
262
|
deleteAppConfiguration(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
263
|
+
/**
|
|
264
|
+
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
265
|
+
* Delete a conversation message audio file for an app
|
|
266
|
+
*/
|
|
267
|
+
deleteAppMessageAudioRaw(requestParameters: DeleteAppMessageAudioRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteMessageAudio200ResponseUio>>;
|
|
268
|
+
/**
|
|
269
|
+
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
270
|
+
* Delete a conversation message audio file for an app
|
|
271
|
+
*/
|
|
272
|
+
deleteAppMessageAudio(appId: string, audioFileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteMessageAudio200ResponseUio>;
|
|
256
273
|
/**
|
|
257
274
|
* Delete a default filler
|
|
258
275
|
* Delete a default filler
|
|
@@ -333,6 +350,16 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
333
350
|
* Get audio filler by ID
|
|
334
351
|
*/
|
|
335
352
|
getAudioFillerById(appId: string, voiceId: string, language: string, fillerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AudioFileUio>;
|
|
353
|
+
/**
|
|
354
|
+
* List persisted instances for an app (excludes ephemeral instances)
|
|
355
|
+
* List app instances
|
|
356
|
+
*/
|
|
357
|
+
getInstancesForAppIdRaw(requestParameters: GetInstancesForAppIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppInstanceListItemUio>>>;
|
|
358
|
+
/**
|
|
359
|
+
* List persisted instances for an app (excludes ephemeral instances)
|
|
360
|
+
* List app instances
|
|
361
|
+
*/
|
|
362
|
+
getInstancesForAppId(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppInstanceListItemUio>>;
|
|
336
363
|
/**
|
|
337
364
|
* Interrupt app
|
|
338
365
|
* Interrupt app
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -400,6 +400,38 @@ class AppApi extends runtime.BaseAPI {
|
|
|
400
400
|
async deleteAppConfiguration(appId, instanceId, initOverrides) {
|
|
401
401
|
await this.deleteAppConfigurationRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
402
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
405
|
+
* Delete a conversation message audio file for an app
|
|
406
|
+
*/
|
|
407
|
+
async deleteAppMessageAudioRaw(requestParameters, initOverrides) {
|
|
408
|
+
if (requestParameters['appId'] == null) {
|
|
409
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling deleteAppMessageAudio().');
|
|
410
|
+
}
|
|
411
|
+
if (requestParameters['audioFileId'] == null) {
|
|
412
|
+
throw new runtime.RequiredError('audioFileId', 'Required parameter "audioFileId" was null or undefined when calling deleteAppMessageAudio().');
|
|
413
|
+
}
|
|
414
|
+
const queryParameters = {};
|
|
415
|
+
const headerParameters = {};
|
|
416
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
417
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
418
|
+
}
|
|
419
|
+
const response = await this.request({
|
|
420
|
+
path: `/apps/{appId}/message-audio/{audioFileId}`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"audioFileId"}}`, encodeURIComponent(String(requestParameters['audioFileId']))),
|
|
421
|
+
method: 'DELETE',
|
|
422
|
+
headers: headerParameters,
|
|
423
|
+
query: queryParameters,
|
|
424
|
+
}, initOverrides);
|
|
425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteMessageAudio200ResponseUioFromJSON)(jsonValue));
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Removes the audio chunk from a message in an app conversation and deletes the file from object storage.
|
|
429
|
+
* Delete a conversation message audio file for an app
|
|
430
|
+
*/
|
|
431
|
+
async deleteAppMessageAudio(appId, audioFileId, initOverrides) {
|
|
432
|
+
const response = await this.deleteAppMessageAudioRaw({ appId: appId, audioFileId: audioFileId }, initOverrides);
|
|
433
|
+
return await response.value();
|
|
434
|
+
}
|
|
403
435
|
/**
|
|
404
436
|
* Delete a default filler
|
|
405
437
|
* Delete a default filler
|
|
@@ -667,6 +699,35 @@ class AppApi extends runtime.BaseAPI {
|
|
|
667
699
|
const response = await this.getAudioFillerByIdRaw({ appId: appId, voiceId: voiceId, language: language, fillerId: fillerId }, initOverrides);
|
|
668
700
|
return await response.value();
|
|
669
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* List persisted instances for an app (excludes ephemeral instances)
|
|
704
|
+
* List app instances
|
|
705
|
+
*/
|
|
706
|
+
async getInstancesForAppIdRaw(requestParameters, initOverrides) {
|
|
707
|
+
if (requestParameters['appId'] == null) {
|
|
708
|
+
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getInstancesForAppId().');
|
|
709
|
+
}
|
|
710
|
+
const queryParameters = {};
|
|
711
|
+
const headerParameters = {};
|
|
712
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
713
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
714
|
+
}
|
|
715
|
+
const response = await this.request({
|
|
716
|
+
path: `/apps/{appId}/instances`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
|
|
717
|
+
method: 'GET',
|
|
718
|
+
headers: headerParameters,
|
|
719
|
+
query: queryParameters,
|
|
720
|
+
}, initOverrides);
|
|
721
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AppInstanceListItemUioFromJSON));
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* List persisted instances for an app (excludes ephemeral instances)
|
|
725
|
+
* List app instances
|
|
726
|
+
*/
|
|
727
|
+
async getInstancesForAppId(appId, initOverrides) {
|
|
728
|
+
const response = await this.getInstancesForAppIdRaw({ appId: appId }, initOverrides);
|
|
729
|
+
return await response.value();
|
|
730
|
+
}
|
|
670
731
|
/**
|
|
671
732
|
* Interrupt app
|
|
672
733
|
* Interrupt app
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppInstanceListItemUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppInstanceListItemUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppInstanceListItemUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppInstanceListItemUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AppInstanceListItemUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAppInstanceListItemUio(value: object): value is AppInstanceListItemUio;
|
|
35
|
+
export declare function AppInstanceListItemUioFromJSON(json: any): AppInstanceListItemUio;
|
|
36
|
+
export declare function AppInstanceListItemUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInstanceListItemUio;
|
|
37
|
+
export declare function AppInstanceListItemUioToJSON(json: any): AppInstanceListItemUio;
|
|
38
|
+
export declare function AppInstanceListItemUioToJSONTyped(value?: AppInstanceListItemUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAppInstanceListItemUio = instanceOfAppInstanceListItemUio;
|
|
17
|
+
exports.AppInstanceListItemUioFromJSON = AppInstanceListItemUioFromJSON;
|
|
18
|
+
exports.AppInstanceListItemUioFromJSONTyped = AppInstanceListItemUioFromJSONTyped;
|
|
19
|
+
exports.AppInstanceListItemUioToJSON = AppInstanceListItemUioToJSON;
|
|
20
|
+
exports.AppInstanceListItemUioToJSONTyped = AppInstanceListItemUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppInstanceListItemUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppInstanceListItemUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AppInstanceListItemUioFromJSON(json) {
|
|
32
|
+
return AppInstanceListItemUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AppInstanceListItemUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AppInstanceListItemUioToJSON(json) {
|
|
44
|
+
return AppInstanceListItemUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AppInstanceListItemUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 DeleteMessageAudio200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteMessageAudio200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteMessageAudio200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DeleteMessageAudio200ResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDeleteMessageAudio200ResponseUio(value: object): value is DeleteMessageAudio200ResponseUio;
|
|
29
|
+
export declare function DeleteMessageAudio200ResponseUioFromJSON(json: any): DeleteMessageAudio200ResponseUio;
|
|
30
|
+
export declare function DeleteMessageAudio200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteMessageAudio200ResponseUio;
|
|
31
|
+
export declare function DeleteMessageAudio200ResponseUioToJSON(json: any): DeleteMessageAudio200ResponseUio;
|
|
32
|
+
export declare function DeleteMessageAudio200ResponseUioToJSONTyped(value?: DeleteMessageAudio200ResponseUio | 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.instanceOfDeleteMessageAudio200ResponseUio = instanceOfDeleteMessageAudio200ResponseUio;
|
|
17
|
+
exports.DeleteMessageAudio200ResponseUioFromJSON = DeleteMessageAudio200ResponseUioFromJSON;
|
|
18
|
+
exports.DeleteMessageAudio200ResponseUioFromJSONTyped = DeleteMessageAudio200ResponseUioFromJSONTyped;
|
|
19
|
+
exports.DeleteMessageAudio200ResponseUioToJSON = DeleteMessageAudio200ResponseUioToJSON;
|
|
20
|
+
exports.DeleteMessageAudio200ResponseUioToJSONTyped = DeleteMessageAudio200ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeleteMessageAudio200ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeleteMessageAudio200ResponseUio(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DeleteMessageAudio200ResponseUioFromJSON(json) {
|
|
30
|
+
return DeleteMessageAudio200ResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DeleteMessageAudio200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DeleteMessageAudio200ResponseUioToJSON(json) {
|
|
41
|
+
return DeleteMessageAudio200ResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DeleteMessageAudio200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 MessageAudioDownloadUrlUio
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageAudioDownloadUrlUio {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned download URL for the message audio file
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MessageAudioDownloadUrlUio
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MessageAudioDownloadUrlUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMessageAudioDownloadUrlUio(value: object): value is MessageAudioDownloadUrlUio;
|
|
29
|
+
export declare function MessageAudioDownloadUrlUioFromJSON(json: any): MessageAudioDownloadUrlUio;
|
|
30
|
+
export declare function MessageAudioDownloadUrlUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageAudioDownloadUrlUio;
|
|
31
|
+
export declare function MessageAudioDownloadUrlUioToJSON(json: any): MessageAudioDownloadUrlUio;
|
|
32
|
+
export declare function MessageAudioDownloadUrlUioToJSONTyped(value?: MessageAudioDownloadUrlUio | 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.instanceOfMessageAudioDownloadUrlUio = instanceOfMessageAudioDownloadUrlUio;
|
|
17
|
+
exports.MessageAudioDownloadUrlUioFromJSON = MessageAudioDownloadUrlUioFromJSON;
|
|
18
|
+
exports.MessageAudioDownloadUrlUioFromJSONTyped = MessageAudioDownloadUrlUioFromJSONTyped;
|
|
19
|
+
exports.MessageAudioDownloadUrlUioToJSON = MessageAudioDownloadUrlUioToJSON;
|
|
20
|
+
exports.MessageAudioDownloadUrlUioToJSONTyped = MessageAudioDownloadUrlUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MessageAudioDownloadUrlUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMessageAudioDownloadUrlUio(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function MessageAudioDownloadUrlUioFromJSON(json) {
|
|
30
|
+
return MessageAudioDownloadUrlUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function MessageAudioDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'url': json['url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function MessageAudioDownloadUrlUioToJSON(json) {
|
|
41
|
+
return MessageAudioDownloadUrlUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function MessageAudioDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'url': value['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './AppFlowCreateRequestUio';
|
|
|
48
48
|
export * from './AppInstanceCreateRequestOneOfUio';
|
|
49
49
|
export * from './AppInstanceCreateRequestUio';
|
|
50
50
|
export * from './AppInstanceEphemeralCreateRequestUio';
|
|
51
|
+
export * from './AppInstanceListItemUio';
|
|
51
52
|
export * from './AppInstancesInnerUio';
|
|
52
53
|
export * from './AppLightUio';
|
|
53
54
|
export * from './AppProbeRequestUio';
|
|
@@ -111,6 +112,7 @@ export * from './ConversationUio';
|
|
|
111
112
|
export * from './CostMetricUio';
|
|
112
113
|
export * from './DefaultClientPricesUio';
|
|
113
114
|
export * from './DefaultEngineRequestUio';
|
|
115
|
+
export * from './DeleteMessageAudio200ResponseUio';
|
|
114
116
|
export * from './DocumentAddRequestUio';
|
|
115
117
|
export * from './EngineOptionsUio';
|
|
116
118
|
export * from './EngineUio';
|
|
@@ -179,6 +181,7 @@ export * from './KnowledgeFilesByIdsRequestUio';
|
|
|
179
181
|
export * from './LipsyncUio';
|
|
180
182
|
export * from './ManifestCreateRequestUio';
|
|
181
183
|
export * from './ManifestUio';
|
|
184
|
+
export * from './MessageAudioDownloadUrlUio';
|
|
182
185
|
export * from './MessageUio';
|
|
183
186
|
export * from './MetricForAgentAgentUio';
|
|
184
187
|
export * from './MetricForAgentIdentifierUio';
|
package/dist/models/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __exportStar(require("./AppFlowCreateRequestUio"), exports);
|
|
|
66
66
|
__exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
|
|
67
67
|
__exportStar(require("./AppInstanceCreateRequestUio"), exports);
|
|
68
68
|
__exportStar(require("./AppInstanceEphemeralCreateRequestUio"), exports);
|
|
69
|
+
__exportStar(require("./AppInstanceListItemUio"), exports);
|
|
69
70
|
__exportStar(require("./AppInstancesInnerUio"), exports);
|
|
70
71
|
__exportStar(require("./AppLightUio"), exports);
|
|
71
72
|
__exportStar(require("./AppProbeRequestUio"), exports);
|
|
@@ -129,6 +130,7 @@ __exportStar(require("./ConversationUio"), exports);
|
|
|
129
130
|
__exportStar(require("./CostMetricUio"), exports);
|
|
130
131
|
__exportStar(require("./DefaultClientPricesUio"), exports);
|
|
131
132
|
__exportStar(require("./DefaultEngineRequestUio"), exports);
|
|
133
|
+
__exportStar(require("./DeleteMessageAudio200ResponseUio"), exports);
|
|
132
134
|
__exportStar(require("./DocumentAddRequestUio"), exports);
|
|
133
135
|
__exportStar(require("./EngineOptionsUio"), exports);
|
|
134
136
|
__exportStar(require("./EngineUio"), exports);
|
|
@@ -197,6 +199,7 @@ __exportStar(require("./KnowledgeFilesByIdsRequestUio"), exports);
|
|
|
197
199
|
__exportStar(require("./LipsyncUio"), exports);
|
|
198
200
|
__exportStar(require("./ManifestCreateRequestUio"), exports);
|
|
199
201
|
__exportStar(require("./ManifestUio"), exports);
|
|
202
|
+
__exportStar(require("./MessageAudioDownloadUrlUio"), exports);
|
|
200
203
|
__exportStar(require("./MessageUio"), exports);
|
|
201
204
|
__exportStar(require("./MetricForAgentAgentUio"), exports);
|
|
202
205
|
__exportStar(require("./MetricForAgentIdentifierUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -1459,6 +1459,43 @@
|
|
|
1459
1459
|
"schema" : {
|
|
1460
1460
|
"type" : "integer"
|
|
1461
1461
|
}
|
|
1462
|
+
}, {
|
|
1463
|
+
"description" : "Search by custom user id or user email",
|
|
1464
|
+
"in" : "query",
|
|
1465
|
+
"name" : "search",
|
|
1466
|
+
"schema" : {
|
|
1467
|
+
"type" : "string"
|
|
1468
|
+
}
|
|
1469
|
+
}, {
|
|
1470
|
+
"description" : "App id",
|
|
1471
|
+
"in" : "query",
|
|
1472
|
+
"name" : "appId",
|
|
1473
|
+
"schema" : {
|
|
1474
|
+
"type" : "string"
|
|
1475
|
+
}
|
|
1476
|
+
}, {
|
|
1477
|
+
"description" : "Instance id",
|
|
1478
|
+
"in" : "query",
|
|
1479
|
+
"name" : "instanceId",
|
|
1480
|
+
"schema" : {
|
|
1481
|
+
"type" : "string"
|
|
1482
|
+
}
|
|
1483
|
+
}, {
|
|
1484
|
+
"description" : "Filter conversations whose last message timestamp is after this value",
|
|
1485
|
+
"in" : "query",
|
|
1486
|
+
"name" : "lastMessageFrom",
|
|
1487
|
+
"schema" : {
|
|
1488
|
+
"format" : "date-time",
|
|
1489
|
+
"type" : "string"
|
|
1490
|
+
}
|
|
1491
|
+
}, {
|
|
1492
|
+
"description" : "Filter conversations whose last message timestamp is before this value",
|
|
1493
|
+
"in" : "query",
|
|
1494
|
+
"name" : "lastMessageTo",
|
|
1495
|
+
"schema" : {
|
|
1496
|
+
"format" : "date-time",
|
|
1497
|
+
"type" : "string"
|
|
1498
|
+
}
|
|
1462
1499
|
} ],
|
|
1463
1500
|
"responses" : {
|
|
1464
1501
|
"200" : {
|
|
@@ -1552,6 +1589,100 @@
|
|
|
1552
1589
|
"tags" : [ "prompts" ]
|
|
1553
1590
|
}
|
|
1554
1591
|
},
|
|
1592
|
+
"/agents/{agentId}/message-audio/{audioFileId}" : {
|
|
1593
|
+
"delete" : {
|
|
1594
|
+
"description" : "Removes the audio chunk from the message in the database and deletes the file from object storage.\n",
|
|
1595
|
+
"operationId" : "deleteMessageAudio",
|
|
1596
|
+
"parameters" : [ {
|
|
1597
|
+
"description" : "ID of the agent",
|
|
1598
|
+
"in" : "path",
|
|
1599
|
+
"name" : "agentId",
|
|
1600
|
+
"required" : true,
|
|
1601
|
+
"schema" : {
|
|
1602
|
+
"format" : "uuid",
|
|
1603
|
+
"type" : "string"
|
|
1604
|
+
}
|
|
1605
|
+
}, {
|
|
1606
|
+
"description" : "ID of the message audio file stored in object storage",
|
|
1607
|
+
"in" : "path",
|
|
1608
|
+
"name" : "audioFileId",
|
|
1609
|
+
"required" : true,
|
|
1610
|
+
"schema" : {
|
|
1611
|
+
"type" : "string"
|
|
1612
|
+
}
|
|
1613
|
+
} ],
|
|
1614
|
+
"responses" : {
|
|
1615
|
+
"200" : {
|
|
1616
|
+
"content" : {
|
|
1617
|
+
"application/json" : {
|
|
1618
|
+
"schema" : {
|
|
1619
|
+
"$ref" : "#/components/schemas/deleteMessageAudio_200_response"
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
"description" : "Audio deleted"
|
|
1624
|
+
},
|
|
1625
|
+
"401" : {
|
|
1626
|
+
"description" : "Unauthorized"
|
|
1627
|
+
},
|
|
1628
|
+
"403" : {
|
|
1629
|
+
"description" : "Forbidden"
|
|
1630
|
+
},
|
|
1631
|
+
"404" : {
|
|
1632
|
+
"description" : "Agent or audio reference not found"
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"summary" : "Delete a conversation message audio file",
|
|
1636
|
+
"tags" : [ "agent" ]
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
"/agents/{agentId}/message-audio/{audioFileId}/download-url" : {
|
|
1640
|
+
"get" : {
|
|
1641
|
+
"description" : "Returns a short-lived presigned URL for a message audio chunk (`audio/{audioFileId}/input.mp3`).\nCall this when the user plays audio in conversation history, not when listing conversations.\n",
|
|
1642
|
+
"operationId" : "getMessageAudioDownloadUrl",
|
|
1643
|
+
"parameters" : [ {
|
|
1644
|
+
"description" : "ID of the agent",
|
|
1645
|
+
"in" : "path",
|
|
1646
|
+
"name" : "agentId",
|
|
1647
|
+
"required" : true,
|
|
1648
|
+
"schema" : {
|
|
1649
|
+
"format" : "uuid",
|
|
1650
|
+
"type" : "string"
|
|
1651
|
+
}
|
|
1652
|
+
}, {
|
|
1653
|
+
"description" : "ID of the message audio file stored in object storage",
|
|
1654
|
+
"in" : "path",
|
|
1655
|
+
"name" : "audioFileId",
|
|
1656
|
+
"required" : true,
|
|
1657
|
+
"schema" : {
|
|
1658
|
+
"type" : "string"
|
|
1659
|
+
}
|
|
1660
|
+
} ],
|
|
1661
|
+
"responses" : {
|
|
1662
|
+
"200" : {
|
|
1663
|
+
"content" : {
|
|
1664
|
+
"application/json" : {
|
|
1665
|
+
"schema" : {
|
|
1666
|
+
"$ref" : "#/components/schemas/MessageAudioDownloadUrl"
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
"description" : "Presigned download URL"
|
|
1671
|
+
},
|
|
1672
|
+
"401" : {
|
|
1673
|
+
"description" : "Unauthorized"
|
|
1674
|
+
},
|
|
1675
|
+
"403" : {
|
|
1676
|
+
"description" : "Forbidden - User doesn't have access to this agent"
|
|
1677
|
+
},
|
|
1678
|
+
"404" : {
|
|
1679
|
+
"description" : "Agent or audio file not found"
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"summary" : "Get presigned download URL for a conversation message audio",
|
|
1683
|
+
"tags" : [ "agent" ]
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1555
1686
|
"/agents/{agentId}/apps" : {
|
|
1556
1687
|
"get" : {
|
|
1557
1688
|
"description" : "Get apps for agent id",
|
|
@@ -2388,6 +2519,39 @@
|
|
|
2388
2519
|
}
|
|
2389
2520
|
},
|
|
2390
2521
|
"/apps/{appId}/instances" : {
|
|
2522
|
+
"get" : {
|
|
2523
|
+
"description" : "List persisted instances for an app (excludes ephemeral instances)",
|
|
2524
|
+
"operationId" : "getInstancesForAppId",
|
|
2525
|
+
"parameters" : [ {
|
|
2526
|
+
"description" : "ID of the app",
|
|
2527
|
+
"in" : "path",
|
|
2528
|
+
"name" : "appId",
|
|
2529
|
+
"required" : true,
|
|
2530
|
+
"schema" : {
|
|
2531
|
+
"type" : "string"
|
|
2532
|
+
}
|
|
2533
|
+
} ],
|
|
2534
|
+
"responses" : {
|
|
2535
|
+
"200" : {
|
|
2536
|
+
"content" : {
|
|
2537
|
+
"application/json" : {
|
|
2538
|
+
"schema" : {
|
|
2539
|
+
"items" : {
|
|
2540
|
+
"$ref" : "#/components/schemas/AppInstanceListItem"
|
|
2541
|
+
},
|
|
2542
|
+
"type" : "array"
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2546
|
+
"description" : "Instances retrieved successfully"
|
|
2547
|
+
},
|
|
2548
|
+
"404" : {
|
|
2549
|
+
"description" : "App not found"
|
|
2550
|
+
}
|
|
2551
|
+
},
|
|
2552
|
+
"summary" : "List app instances",
|
|
2553
|
+
"tags" : [ "app" ]
|
|
2554
|
+
},
|
|
2391
2555
|
"post" : {
|
|
2392
2556
|
"description" : "Create instance",
|
|
2393
2557
|
"operationId" : "createInstance",
|
|
@@ -2673,6 +2837,52 @@
|
|
|
2673
2837
|
"tags" : [ "app" ]
|
|
2674
2838
|
}
|
|
2675
2839
|
},
|
|
2840
|
+
"/apps/{appId}/message-audio/{audioFileId}" : {
|
|
2841
|
+
"delete" : {
|
|
2842
|
+
"description" : "Removes the audio chunk from a message in an app conversation and deletes the file from object storage.\n",
|
|
2843
|
+
"operationId" : "deleteAppMessageAudio",
|
|
2844
|
+
"parameters" : [ {
|
|
2845
|
+
"description" : "ID of the app",
|
|
2846
|
+
"in" : "path",
|
|
2847
|
+
"name" : "appId",
|
|
2848
|
+
"required" : true,
|
|
2849
|
+
"schema" : {
|
|
2850
|
+
"type" : "string"
|
|
2851
|
+
}
|
|
2852
|
+
}, {
|
|
2853
|
+
"description" : "ID of the message audio file stored in object storage",
|
|
2854
|
+
"in" : "path",
|
|
2855
|
+
"name" : "audioFileId",
|
|
2856
|
+
"required" : true,
|
|
2857
|
+
"schema" : {
|
|
2858
|
+
"type" : "string"
|
|
2859
|
+
}
|
|
2860
|
+
} ],
|
|
2861
|
+
"responses" : {
|
|
2862
|
+
"200" : {
|
|
2863
|
+
"content" : {
|
|
2864
|
+
"application/json" : {
|
|
2865
|
+
"schema" : {
|
|
2866
|
+
"$ref" : "#/components/schemas/deleteMessageAudio_200_response"
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"description" : "Audio deleted"
|
|
2871
|
+
},
|
|
2872
|
+
"401" : {
|
|
2873
|
+
"description" : "Unauthorized"
|
|
2874
|
+
},
|
|
2875
|
+
"403" : {
|
|
2876
|
+
"description" : "Forbidden"
|
|
2877
|
+
},
|
|
2878
|
+
"404" : {
|
|
2879
|
+
"description" : "App or audio reference not found"
|
|
2880
|
+
}
|
|
2881
|
+
},
|
|
2882
|
+
"summary" : "Delete a conversation message audio file for an app",
|
|
2883
|
+
"tags" : [ "app" ]
|
|
2884
|
+
}
|
|
2885
|
+
},
|
|
2676
2886
|
"/auth/code" : {
|
|
2677
2887
|
"post" : {
|
|
2678
2888
|
"description" : "Get auth code",
|
|
@@ -7998,6 +8208,48 @@
|
|
|
7998
8208
|
"type" : "integer"
|
|
7999
8209
|
}
|
|
8000
8210
|
},
|
|
8211
|
+
"search" : {
|
|
8212
|
+
"description" : "Search by custom user id or user email",
|
|
8213
|
+
"in" : "query",
|
|
8214
|
+
"name" : "search",
|
|
8215
|
+
"schema" : {
|
|
8216
|
+
"type" : "string"
|
|
8217
|
+
}
|
|
8218
|
+
},
|
|
8219
|
+
"appId" : {
|
|
8220
|
+
"description" : "App id",
|
|
8221
|
+
"in" : "query",
|
|
8222
|
+
"name" : "appId",
|
|
8223
|
+
"schema" : {
|
|
8224
|
+
"type" : "string"
|
|
8225
|
+
}
|
|
8226
|
+
},
|
|
8227
|
+
"instanceId" : {
|
|
8228
|
+
"description" : "Instance id",
|
|
8229
|
+
"in" : "query",
|
|
8230
|
+
"name" : "instanceId",
|
|
8231
|
+
"schema" : {
|
|
8232
|
+
"type" : "string"
|
|
8233
|
+
}
|
|
8234
|
+
},
|
|
8235
|
+
"lastMessageFrom" : {
|
|
8236
|
+
"description" : "Filter conversations whose last message timestamp is after this value",
|
|
8237
|
+
"in" : "query",
|
|
8238
|
+
"name" : "lastMessageFrom",
|
|
8239
|
+
"schema" : {
|
|
8240
|
+
"format" : "date-time",
|
|
8241
|
+
"type" : "string"
|
|
8242
|
+
}
|
|
8243
|
+
},
|
|
8244
|
+
"lastMessageTo" : {
|
|
8245
|
+
"description" : "Filter conversations whose last message timestamp is before this value",
|
|
8246
|
+
"in" : "query",
|
|
8247
|
+
"name" : "lastMessageTo",
|
|
8248
|
+
"schema" : {
|
|
8249
|
+
"format" : "date-time",
|
|
8250
|
+
"type" : "string"
|
|
8251
|
+
}
|
|
8252
|
+
},
|
|
8001
8253
|
"ephemeral" : {
|
|
8002
8254
|
"description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
|
|
8003
8255
|
"in" : "query",
|
|
@@ -8007,10 +8259,11 @@
|
|
|
8007
8259
|
"type" : "boolean"
|
|
8008
8260
|
}
|
|
8009
8261
|
},
|
|
8010
|
-
"
|
|
8011
|
-
"description" : "
|
|
8012
|
-
"in" : "
|
|
8013
|
-
"name" : "
|
|
8262
|
+
"audioFileIdPath" : {
|
|
8263
|
+
"description" : "ID of the message audio file stored in object storage",
|
|
8264
|
+
"in" : "path",
|
|
8265
|
+
"name" : "audioFileId",
|
|
8266
|
+
"required" : true,
|
|
8014
8267
|
"schema" : {
|
|
8015
8268
|
"type" : "string"
|
|
8016
8269
|
}
|
|
@@ -9740,6 +9993,16 @@
|
|
|
9740
9993
|
"required" : [ "lang" ],
|
|
9741
9994
|
"type" : "object"
|
|
9742
9995
|
},
|
|
9996
|
+
"MessageAudioDownloadUrl" : {
|
|
9997
|
+
"properties" : {
|
|
9998
|
+
"url" : {
|
|
9999
|
+
"description" : "Presigned download URL for the message audio file",
|
|
10000
|
+
"type" : "string"
|
|
10001
|
+
}
|
|
10002
|
+
},
|
|
10003
|
+
"required" : [ "url" ],
|
|
10004
|
+
"type" : "object"
|
|
10005
|
+
},
|
|
9743
10006
|
"AppLight" : {
|
|
9744
10007
|
"properties" : {
|
|
9745
10008
|
"id" : {
|
|
@@ -10303,6 +10566,18 @@
|
|
|
10303
10566
|
"required" : [ "audio" ],
|
|
10304
10567
|
"type" : "object"
|
|
10305
10568
|
},
|
|
10569
|
+
"AppInstanceListItem" : {
|
|
10570
|
+
"properties" : {
|
|
10571
|
+
"id" : {
|
|
10572
|
+
"type" : "string"
|
|
10573
|
+
},
|
|
10574
|
+
"name" : {
|
|
10575
|
+
"type" : "string"
|
|
10576
|
+
}
|
|
10577
|
+
},
|
|
10578
|
+
"required" : [ "id", "name" ],
|
|
10579
|
+
"type" : "object"
|
|
10580
|
+
},
|
|
10306
10581
|
"AppInstanceCreateRequest" : {
|
|
10307
10582
|
"oneOf" : [ {
|
|
10308
10583
|
"$ref" : "#/components/schemas/AppInstanceCreateRequest_oneOf"
|
|
@@ -12301,6 +12576,15 @@
|
|
|
12301
12576
|
"enum" : [ "ELEVENLABS" ],
|
|
12302
12577
|
"type" : "string"
|
|
12303
12578
|
},
|
|
12579
|
+
"deleteMessageAudio_200_response" : {
|
|
12580
|
+
"properties" : {
|
|
12581
|
+
"message" : {
|
|
12582
|
+
"type" : "string"
|
|
12583
|
+
}
|
|
12584
|
+
},
|
|
12585
|
+
"required" : [ "message" ],
|
|
12586
|
+
"type" : "object"
|
|
12587
|
+
},
|
|
12304
12588
|
"updateConversationTitle_request" : {
|
|
12305
12589
|
"properties" : {
|
|
12306
12590
|
"title" : {
|