@breign/client 1.0.124 → 1.0.125

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.
Files changed (36) hide show
  1. package/dist/apis/AgentApi.d.ts +17 -12
  2. package/dist/apis/AgentApi.js +29 -14
  3. package/dist/apis/KnowledgeApi.d.ts +1 -113
  4. package/dist/apis/KnowledgeApi.js +0 -282
  5. package/dist/apis/MetricsApi.d.ts +15 -13
  6. package/dist/apis/MetricsApi.js +27 -21
  7. package/dist/apis/OrganizationsApi.d.ts +1 -26
  8. package/dist/apis/OrganizationsApi.js +0 -64
  9. package/dist/apis/SkillsApi.d.ts +14 -1
  10. package/dist/apis/SkillsApi.js +29 -0
  11. package/dist/models/AddModuleRequestUio.d.ts +60 -0
  12. package/dist/models/AddModuleRequestUio.js +68 -0
  13. package/dist/models/AgentPatchUio.d.ts +0 -30
  14. package/dist/models/AgentPatchUio.js +0 -10
  15. package/dist/models/AgentRefUio.d.ts +38 -0
  16. package/dist/models/AgentRefUio.js +54 -0
  17. package/dist/models/AgentRequestUio.d.ts +0 -59
  18. package/dist/models/AgentRequestUio.js +0 -22
  19. package/dist/models/AgentUio.d.ts +6 -44
  20. package/dist/models/AgentUio.js +2 -14
  21. package/dist/models/index.d.ts +2 -6
  22. package/dist/models/index.js +2 -6
  23. package/dist/openapi.json +281 -770
  24. package/package.json +1 -1
  25. package/dist/models/AgentRequestProfilePictureUio.d.ts +0 -50
  26. package/dist/models/AgentRequestProfilePictureUio.js +0 -62
  27. package/dist/models/DocumentAddRequestUio.d.ts +0 -38
  28. package/dist/models/DocumentAddRequestUio.js +0 -52
  29. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +0 -56
  30. package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +0 -56
  31. package/dist/models/UserAgentAccessAgentUio.d.ts +0 -38
  32. package/dist/models/UserAgentAccessAgentUio.js +0 -54
  33. package/dist/models/UserAgentAccessRequestUio.d.ts +0 -38
  34. package/dist/models/UserAgentAccessRequestUio.js +0 -54
  35. package/dist/models/UserAgentAccessUio.d.ts +0 -45
  36. package/dist/models/UserAgentAccessUio.js +0 -59
@@ -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
- agentModuleUio: AgentModuleUio;
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, agentModuleUio: AgentModuleUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
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 and all its associated flows
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 and all its associated flows
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 a specific conversation flow
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 a specific conversation flow
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
- * Removes a tool from the specified agent
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
- * Removes a tool from the specified agent
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<AgentPatchUio>>;
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<AgentPatchUio>;
530
+ updateAgentById(agentId: string, agentPatchUio: AgentPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentUio>;
526
531
  /**
527
532
  * Update profile picture for an agent
528
533
  */
@@ -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['agentModuleUio'] == null) {
65
- throw new runtime.RequiredError('agentModuleUio', 'Required parameter "agentModuleUio" was null or undefined when calling addModule().');
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.AgentModuleUioToJSON)(requestParameters['agentModuleUio']),
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, agentModuleUio, initOverrides) {
87
- const response = await this.addModuleRaw({ agentId: agentId, agentModuleUio: agentModuleUio }, initOverrides);
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 and all its associated flows
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 and all its associated flows
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 a specific conversation flow
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 a specific conversation flow
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
- * Removes a tool from the specified agent
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
- * Removes a tool from the specified agent
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.AgentPatchUioFromJSON)(jsonValue));
1193
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentUioFromJSON)(jsonValue));
1179
1194
  }
1180
1195
  /**
1181
1196
  * Updates an existing agent\'s properties
@@ -10,12 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, ImportFileToAgentKnowledge200ResponseUio, KnowledgeBaseConfigurationUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, KnowledgeFilePagePreviewUio, KnowledgeFileSummaryUio, KnowledgeFilesByIdsRequestUio, KnowledgeSitePageUio, PatchKnowledgeBaseRequestUio, PatchKnowledgeFileRequestUio, SearchKnowledgeBase200ResponseInnerUio, SearchKnowledgeBaseRequestUio, StartKnowledgeBaseScrappingRequestUio, UploadImageToKnowledgeBaseLibrary200ResponseUio, UploadImageToKnowledgeBaseLibraryRequestUio } from '../models/index';
14
- export interface AddDocumentToKnowledgeBaseRequest {
15
- agentId: string;
16
- documentAddRequestUio: DocumentAddRequestUio;
17
- noSplit?: boolean;
18
- }
13
+ import type { AgentModuleUio, BodyWithMessageUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, KnowledgeBaseConfigurationUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, KnowledgeFilePagePreviewUio, KnowledgeFileSummaryUio, KnowledgeFilesByIdsRequestUio, KnowledgeSitePageUio, PatchKnowledgeBaseRequestUio, PatchKnowledgeFileRequestUio, SearchKnowledgeBase200ResponseInnerUio, SearchKnowledgeBaseRequestUio, StartKnowledgeBaseScrappingRequestUio, UploadImageToKnowledgeBaseLibrary200ResponseUio, UploadImageToKnowledgeBaseLibraryRequestUio } from '../models/index';
19
14
  export interface AddFileToKnowledgeBaseRequest {
20
15
  knowledgebaseId: string;
21
16
  fileCreationRequestUio: FileCreationRequestUio;
@@ -28,10 +23,6 @@ export interface DeleteChunkFromKnowledgeFileRequest {
28
23
  knowledgebaseId: string;
29
24
  chunkIdKnowledge: string;
30
25
  }
31
- export interface DeleteFileFromAgentKnowledgeRequest {
32
- agentId: string;
33
- fileId: string;
34
- }
35
26
  export interface DeleteImageFromKnowledgeBaseLibraryRequest {
36
27
  knowledgebaseId: string;
37
28
  imageId: string;
@@ -49,10 +40,6 @@ export interface GetAvailableKnowledgeBasesRequest {
49
40
  agentId: string;
50
41
  searchName?: string;
51
42
  }
52
- export interface GetFileFromAgentKnowledgeRequest {
53
- agentId: string;
54
- fileId: string;
55
- }
56
43
  export interface GetImagesFromKnowledgeBaseLibraryRequest {
57
44
  knowledgebaseId: string;
58
45
  }
@@ -84,13 +71,6 @@ export interface GetKnowledgeSitePagesForFileRequest {
84
71
  export interface GetScrappingJobStatusRequest {
85
72
  jobId: string;
86
73
  }
87
- export interface ImportFileToAgentKnowledgeRequest {
88
- agentId: string;
89
- file: Blob;
90
- }
91
- export interface ImportProjectsToAgentKnowledgeRequest {
92
- agentId: string;
93
- }
94
74
  export interface PatchKnowledgeBaseRequest {
95
75
  knowledgebaseId: string;
96
76
  patchKnowledgeBaseRequestUio: PatchKnowledgeBaseRequestUio;
@@ -99,13 +79,6 @@ export interface PatchKnowledgeFileRequest {
99
79
  fileId: string;
100
80
  patchKnowledgeFileRequestUio: PatchKnowledgeFileRequestUio;
101
81
  }
102
- export interface PrepareFileUploadRequest {
103
- agentId: string;
104
- fileCreationRequestUio: FileCreationRequestUio;
105
- }
106
- export interface ResetAgentKnowledgeRequest {
107
- agentId: string;
108
- }
109
82
  export interface ResetKnowledgeBaseRequest {
110
83
  organizationId: string;
111
84
  }
@@ -117,11 +90,6 @@ export interface StartKnowledgeBaseScrappingRequest {
117
90
  knowledgebaseId: string;
118
91
  startKnowledgeBaseScrappingRequestUio: StartKnowledgeBaseScrappingRequestUio;
119
92
  }
120
- export interface UpdateFileStatusRequest {
121
- agentId: string;
122
- fileId: string;
123
- fileStatusUpdateRequestUio: FileStatusUpdateRequestUio;
124
- }
125
93
  export interface UpdateImageStatusInKnowledgeBaseLibraryRequest {
126
94
  knowledgebaseId: string;
127
95
  imageId: string;
@@ -143,16 +111,6 @@ export interface UploadImageToKnowledgeBaseLibraryRequest {
143
111
  *
144
112
  */
145
113
  export declare class KnowledgeApi extends runtime.BaseAPI {
146
- /**
147
- * Adds a text document to the agent\'s knowledge base, splitting it into chunks if necessary
148
- * Add a document to agent\'s knowledge base
149
- */
150
- addDocumentToKnowledgeBaseRaw(requestParameters: AddDocumentToKnowledgeBaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
151
- /**
152
- * Adds a text document to the agent\'s knowledge base, splitting it into chunks if necessary
153
- * Add a document to agent\'s knowledge base
154
- */
155
- addDocumentToKnowledgeBase(agentId: string, documentAddRequestUio: DocumentAddRequestUio, noSplit?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
156
114
  /**
157
115
  * Add a file to the knowledge base
158
116
  * Add a file to the knowledge base
@@ -183,16 +141,6 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
183
141
  * Delete a chunk from a knowledge file
184
142
  */
185
143
  deleteChunkFromKnowledgeFile(knowledgebaseId: string, chunkIdKnowledge: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
186
- /**
187
- * Removes a file and its associated chunks from the agent\'s knowledge base
188
- * Delete a knowledge file from an agent
189
- */
190
- deleteFileFromAgentKnowledgeRaw(requestParameters: DeleteFileFromAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
191
- /**
192
- * Removes a file and its associated chunks from the agent\'s knowledge base
193
- * Delete a knowledge file from an agent
194
- */
195
- deleteFileFromAgentKnowledge(agentId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
196
144
  /**
197
145
  * Delete a specific knowledge image from a library image in knowledge base
198
146
  * Delete a specific knowledge image from a library image in knowledge base
@@ -233,16 +181,6 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
233
181
  * List available knowledge bases for an agent
234
182
  */
235
183
  getAvailableKnowledgeBases(organizationId: string, agentId: string, searchName?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseUio>>;
236
- /**
237
- * Retrieves metadata for a file that has been imported into the agent\'s knowledge base
238
- * Get a specific knowledge file from an agent
239
- */
240
- getFileFromAgentKnowledgeRaw(requestParameters: GetFileFromAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWithDownloadUrlUio>>;
241
- /**
242
- * Retrieves metadata for a file that has been imported into the agent\'s knowledge base
243
- * Get a specific knowledge file from an agent
244
- */
245
- getFileFromAgentKnowledge(agentId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWithDownloadUrlUio>;
246
184
  /**
247
185
  * Get all images from a library image in knowledge base
248
186
  * Get all knowledge images from a knowledge base
@@ -347,26 +285,6 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
347
285
  getScrappingJobStatus(jobId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
348
286
  [key: string]: any;
349
287
  }>;
350
- /**
351
- * Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
352
- * Upload and import a file into the brain\'s knowledge base
353
- */
354
- importFileToAgentKnowledgeRaw(requestParameters: ImportFileToAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportFileToAgentKnowledge200ResponseUio>>;
355
- /**
356
- * Processes documents like PDFs, CSVs, and text files, and adds them to the brain\'s knowledge base
357
- * Upload and import a file into the brain\'s knowledge base
358
- */
359
- importFileToAgentKnowledge(agentId: string, file: Blob, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportFileToAgentKnowledge200ResponseUio>;
360
- /**
361
- * Imports project data from a local JSON file into the agent\'s knowledge base
362
- * Import projects into agent knowledge
363
- */
364
- importProjectsToAgentKnowledgeRaw(requestParameters: ImportProjectsToAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
365
- /**
366
- * Imports project data from a local JSON file into the agent\'s knowledge base
367
- * Import projects into agent knowledge
368
- */
369
- importProjectsToAgentKnowledge(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
370
288
  /**
371
289
  * Update the name and authorized agents of a knowledge base
372
290
  * Update a knowledge base
@@ -387,26 +305,6 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
387
305
  * Update a knowledge file
388
306
  */
389
307
  patchKnowledgeFile(fileId: string, patchKnowledgeFileRequestUio: PatchKnowledgeFileRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
390
- /**
391
- * Registers a file for upload to the brain\'s knowledge base and returns an upload URL
392
- * Prepare file upload for knowledge base
393
- */
394
- prepareFileUploadRaw(requestParameters: PrepareFileUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreationResponseUio>>;
395
- /**
396
- * Registers a file for upload to the brain\'s knowledge base and returns an upload URL
397
- * Prepare file upload for knowledge base
398
- */
399
- prepareFileUpload(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
400
- /**
401
- * Deletes all knowledge embeddings and files associated with an agent
402
- * Reset all knowledge for an agent
403
- */
404
- resetAgentKnowledgeRaw(requestParameters: ResetAgentKnowledgeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
405
- /**
406
- * Deletes all knowledge embeddings and files associated with an agent
407
- * Reset all knowledge for an agent
408
- */
409
- resetAgentKnowledge(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
410
308
  /**
411
309
  * Reset knowledge base
412
310
  * Reset knowledge base
@@ -441,16 +339,6 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
441
339
  startKnowledgeBaseScrapping(knowledgebaseId: string, startKnowledgeBaseScrappingRequestUio: StartKnowledgeBaseScrappingRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
442
340
  [key: string]: any;
443
341
  }>;
444
- /**
445
- * Updates the status of a knowledge file and triggers the indexing process if the file is uploaded
446
- * Update file status and trigger indexing
447
- */
448
- updateFileStatusRaw(requestParameters: UpdateFileStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
449
- /**
450
- * Updates the status of a knowledge file and triggers the indexing process if the file is uploaded
451
- * Update file status and trigger indexing
452
- */
453
- updateFileStatus(agentId: string, fileId: string, fileStatusUpdateRequestUio: FileStatusUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
454
342
  /**
455
343
  * Update the status of a specific knowledge image in a library image in knowledge base
456
344
  * Update the status of a specific knowledge image in a library image in knowledge base