@breign/client 1.0.124 → 1.0.126
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 +17 -12
- package/dist/apis/AgentApi.js +29 -14
- package/dist/apis/KnowledgeApi.d.ts +122 -168
- package/dist/apis/KnowledgeApi.js +232 -365
- package/dist/apis/MetricsApi.d.ts +15 -13
- package/dist/apis/MetricsApi.js +27 -21
- package/dist/apis/OrganizationsApi.d.ts +1 -26
- package/dist/apis/OrganizationsApi.js +0 -64
- package/dist/apis/SkillsApi.d.ts +14 -1
- package/dist/apis/SkillsApi.js +29 -0
- package/dist/models/AddModuleRequestUio.d.ts +60 -0
- package/dist/models/AddModuleRequestUio.js +68 -0
- package/dist/models/AgentPatchUio.d.ts +0 -30
- package/dist/models/AgentPatchUio.js +0 -10
- package/dist/models/AgentRefUio.d.ts +38 -0
- package/dist/models/AgentRefUio.js +54 -0
- package/dist/models/AgentRequestUio.d.ts +0 -59
- package/dist/models/AgentRequestUio.js +0 -22
- package/dist/models/AgentUio.d.ts +6 -44
- package/dist/models/AgentUio.js +2 -14
- package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -0
- package/dist/models/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- package/dist/models/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -0
- package/dist/models/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- package/dist/models/index.d.ts +13 -12
- package/dist/models/index.js +13 -12
- package/dist/openapi.json +920 -969
- package/package.json +1 -1
- package/dist/models/AgentRequestProfilePictureUio.d.ts +0 -50
- package/dist/models/AgentRequestProfilePictureUio.js +0 -62
- package/dist/models/DocumentAddRequestUio.d.ts +0 -38
- package/dist/models/DocumentAddRequestUio.js +0 -52
- package/dist/models/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +0 -56
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +0 -56
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
- package/dist/models/UserAgentAccessAgentUio.d.ts +0 -38
- package/dist/models/UserAgentAccessAgentUio.js +0 -54
- package/dist/models/UserAgentAccessRequestUio.d.ts +0 -38
- package/dist/models/UserAgentAccessRequestUio.js +0 -54
- package/dist/models/UserAgentAccessUio.d.ts +0 -45
- package/dist/models/UserAgentAccessUio.js +0 -59
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
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, AgentImportRequestUio, AgentImportResponseUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
13
|
+
import type { AddModuleRequestUio, AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentImportRequestUio, AgentImportResponseUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio, STTResponseUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
|
-
|
|
16
|
+
addModuleRequestUio: AddModuleRequestUio;
|
|
17
17
|
}
|
|
18
18
|
export interface ConvertAgentSpeechToTextRequest {
|
|
19
19
|
agentId: string;
|
|
@@ -93,6 +93,11 @@ export interface GetAgentMetricsUsageRequest {
|
|
|
93
93
|
export interface GetAgentsRequest {
|
|
94
94
|
isCreator?: boolean;
|
|
95
95
|
providerSource?: GetAgentsProviderSourceEnum;
|
|
96
|
+
page?: number;
|
|
97
|
+
limit?: number;
|
|
98
|
+
search?: string;
|
|
99
|
+
roleIds?: Array<string>;
|
|
100
|
+
personal?: boolean;
|
|
96
101
|
}
|
|
97
102
|
export interface GetConversationContextAttachmentDownloadUrlRequest {
|
|
98
103
|
agentId: string;
|
|
@@ -198,7 +203,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
198
203
|
* Adds a new module to the specified agent
|
|
199
204
|
* Add a module to an agent
|
|
200
205
|
*/
|
|
201
|
-
addModule(agentId: string,
|
|
206
|
+
addModule(agentId: string, addModuleRequestUio: AddModuleRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
|
|
202
207
|
/**
|
|
203
208
|
* Transcribes audio using the agent\'s speech-to-text configuration.
|
|
204
209
|
* Convert speech to text for an agent
|
|
@@ -230,22 +235,22 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
230
235
|
*/
|
|
231
236
|
createFlow(agentId: string, agentFlowCreateUio: AgentFlowCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
|
|
232
237
|
/**
|
|
233
|
-
* Deletes an agent
|
|
238
|
+
* Deletes an agent by ID
|
|
234
239
|
* Delete an agent
|
|
235
240
|
*/
|
|
236
241
|
deleteAgentByIdRaw(requestParameters: DeleteAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
237
242
|
/**
|
|
238
|
-
* Deletes an agent
|
|
243
|
+
* Deletes an agent by ID
|
|
239
244
|
* Delete an agent
|
|
240
245
|
*/
|
|
241
246
|
deleteAgentById(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
242
247
|
/**
|
|
243
|
-
* Deletes
|
|
248
|
+
* Deletes an existing conversation flow
|
|
244
249
|
* Delete a flow
|
|
245
250
|
*/
|
|
246
251
|
deleteFlowRaw(requestParameters: DeleteFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
247
252
|
/**
|
|
248
|
-
* Deletes
|
|
253
|
+
* Deletes an existing conversation flow
|
|
249
254
|
* Delete a flow
|
|
250
255
|
*/
|
|
251
256
|
deleteFlow(agentId: string, flowId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -376,7 +381,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
376
381
|
* Get all agents accessible to user
|
|
377
382
|
* Get all agents
|
|
378
383
|
*/
|
|
379
|
-
getAgents(isCreator?: boolean, providerSource?: GetAgentsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
384
|
+
getAgents(isCreator?: boolean, providerSource?: GetAgentsProviderSourceEnum, page?: number, limit?: number, search?: string, roleIds?: Array<string>, personal?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
380
385
|
/**
|
|
381
386
|
* Returns a short-lived presigned URL (or inline data URL for small images) for an attachment linked to a conversation. Call this when displaying or downloading user-attached files in chat history, not when listing conversations.
|
|
382
387
|
* Get presigned download URL for a conversation context attachment
|
|
@@ -504,12 +509,12 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
504
509
|
*/
|
|
505
510
|
removeKnowledgeBaseFromAgent(agentId: string, knowledgeBaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
506
511
|
/**
|
|
507
|
-
*
|
|
512
|
+
* Unlinks an organization tool from the specified agent
|
|
508
513
|
* Unlink a tool from an agent
|
|
509
514
|
*/
|
|
510
515
|
unlinkToolFromAgentRaw(requestParameters: UnlinkToolFromAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
511
516
|
/**
|
|
512
|
-
*
|
|
517
|
+
* Unlinks an organization tool from the specified agent
|
|
513
518
|
* Unlink a tool from an agent
|
|
514
519
|
*/
|
|
515
520
|
unlinkToolFromAgent(agentId: string, toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -517,12 +522,12 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
517
522
|
* Updates an existing agent\'s properties
|
|
518
523
|
* Update an agent
|
|
519
524
|
*/
|
|
520
|
-
updateAgentByIdRaw(requestParameters: UpdateAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
525
|
+
updateAgentByIdRaw(requestParameters: UpdateAgentByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentUio>>;
|
|
521
526
|
/**
|
|
522
527
|
* Updates an existing agent\'s properties
|
|
523
528
|
* Update an agent
|
|
524
529
|
*/
|
|
525
|
-
updateAgentById(agentId: string, agentPatchUio: AgentPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
530
|
+
updateAgentById(agentId: string, agentPatchUio: AgentPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentUio>;
|
|
526
531
|
/**
|
|
527
532
|
* Update profile picture for an agent
|
|
528
533
|
*/
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -61,8 +61,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
61
61
|
if (requestParameters['agentId'] == null) {
|
|
62
62
|
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling addModule().');
|
|
63
63
|
}
|
|
64
|
-
if (requestParameters['
|
|
65
|
-
throw new runtime.RequiredError('
|
|
64
|
+
if (requestParameters['addModuleRequestUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('addModuleRequestUio', 'Required parameter "addModuleRequestUio" was null or undefined when calling addModule().');
|
|
66
66
|
}
|
|
67
67
|
const queryParameters = {};
|
|
68
68
|
const headerParameters = {};
|
|
@@ -75,7 +75,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
75
75
|
method: 'POST',
|
|
76
76
|
headers: headerParameters,
|
|
77
77
|
query: queryParameters,
|
|
78
|
-
body: (0, index_1.
|
|
78
|
+
body: (0, index_1.AddModuleRequestUioToJSON)(requestParameters['addModuleRequestUio']),
|
|
79
79
|
}, initOverrides);
|
|
80
80
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentModuleUioFromJSON)(jsonValue));
|
|
81
81
|
}
|
|
@@ -83,8 +83,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
83
83
|
* Adds a new module to the specified agent
|
|
84
84
|
* Add a module to an agent
|
|
85
85
|
*/
|
|
86
|
-
async addModule(agentId,
|
|
87
|
-
const response = await this.addModuleRaw({ agentId: agentId,
|
|
86
|
+
async addModule(agentId, addModuleRequestUio, initOverrides) {
|
|
87
|
+
const response = await this.addModuleRaw({ agentId: agentId, addModuleRequestUio: addModuleRequestUio }, initOverrides);
|
|
88
88
|
return await response.value();
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
@@ -196,7 +196,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
196
196
|
return await response.value();
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* Deletes an agent
|
|
199
|
+
* Deletes an agent by ID
|
|
200
200
|
* Delete an agent
|
|
201
201
|
*/
|
|
202
202
|
async deleteAgentByIdRaw(requestParameters, initOverrides) {
|
|
@@ -217,14 +217,14 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
217
217
|
return new runtime.VoidApiResponse(response);
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Deletes an agent
|
|
220
|
+
* Deletes an agent by ID
|
|
221
221
|
* Delete an agent
|
|
222
222
|
*/
|
|
223
223
|
async deleteAgentById(agentId, initOverrides) {
|
|
224
224
|
await this.deleteAgentByIdRaw({ agentId: agentId }, initOverrides);
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
|
-
* Deletes
|
|
227
|
+
* Deletes an existing conversation flow
|
|
228
228
|
* Delete a flow
|
|
229
229
|
*/
|
|
230
230
|
async deleteFlowRaw(requestParameters, initOverrides) {
|
|
@@ -248,7 +248,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
248
248
|
return new runtime.VoidApiResponse(response);
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
|
-
* Deletes
|
|
251
|
+
* Deletes an existing conversation flow
|
|
252
252
|
* Delete a flow
|
|
253
253
|
*/
|
|
254
254
|
async deleteFlow(agentId, flowId, initOverrides) {
|
|
@@ -672,6 +672,21 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
672
672
|
if (requestParameters['providerSource'] != null) {
|
|
673
673
|
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
674
674
|
}
|
|
675
|
+
if (requestParameters['page'] != null) {
|
|
676
|
+
queryParameters['page'] = requestParameters['page'];
|
|
677
|
+
}
|
|
678
|
+
if (requestParameters['limit'] != null) {
|
|
679
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
680
|
+
}
|
|
681
|
+
if (requestParameters['search'] != null) {
|
|
682
|
+
queryParameters['search'] = requestParameters['search'];
|
|
683
|
+
}
|
|
684
|
+
if (requestParameters['roleIds'] != null) {
|
|
685
|
+
queryParameters['roleIds'] = requestParameters['roleIds'];
|
|
686
|
+
}
|
|
687
|
+
if (requestParameters['personal'] != null) {
|
|
688
|
+
queryParameters['personal'] = requestParameters['personal'];
|
|
689
|
+
}
|
|
675
690
|
const headerParameters = {};
|
|
676
691
|
if (this.configuration && this.configuration.apiKey) {
|
|
677
692
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -688,8 +703,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
688
703
|
* Get all agents accessible to user
|
|
689
704
|
* Get all agents
|
|
690
705
|
*/
|
|
691
|
-
async getAgents(isCreator, providerSource, initOverrides) {
|
|
692
|
-
const response = await this.getAgentsRaw({ isCreator: isCreator, providerSource: providerSource }, initOverrides);
|
|
706
|
+
async getAgents(isCreator, providerSource, page, limit, search, roleIds, personal, initOverrides) {
|
|
707
|
+
const response = await this.getAgentsRaw({ isCreator: isCreator, providerSource: providerSource, page: page, limit: limit, search: search, roleIds: roleIds, personal: personal }, initOverrides);
|
|
693
708
|
return await response.value();
|
|
694
709
|
}
|
|
695
710
|
/**
|
|
@@ -1121,7 +1136,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1121
1136
|
await this.removeKnowledgeBaseFromAgentRaw({ agentId: agentId, knowledgeBaseId: knowledgeBaseId }, initOverrides);
|
|
1122
1137
|
}
|
|
1123
1138
|
/**
|
|
1124
|
-
*
|
|
1139
|
+
* Unlinks an organization tool from the specified agent
|
|
1125
1140
|
* Unlink a tool from an agent
|
|
1126
1141
|
*/
|
|
1127
1142
|
async unlinkToolFromAgentRaw(requestParameters, initOverrides) {
|
|
@@ -1145,7 +1160,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1145
1160
|
return new runtime.VoidApiResponse(response);
|
|
1146
1161
|
}
|
|
1147
1162
|
/**
|
|
1148
|
-
*
|
|
1163
|
+
* Unlinks an organization tool from the specified agent
|
|
1149
1164
|
* Unlink a tool from an agent
|
|
1150
1165
|
*/
|
|
1151
1166
|
async unlinkToolFromAgent(agentId, toolId, initOverrides) {
|
|
@@ -1175,7 +1190,7 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1175
1190
|
query: queryParameters,
|
|
1176
1191
|
body: (0, index_1.AgentPatchUioToJSON)(requestParameters['agentPatchUio']),
|
|
1177
1192
|
}, initOverrides);
|
|
1178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
1193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentUioFromJSON)(jsonValue));
|
|
1179
1194
|
}
|
|
1180
1195
|
/**
|
|
1181
1196
|
* Updates an existing agent\'s properties
|