@breign/client 1.0.44 → 1.0.45
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.
|
@@ -38,6 +38,8 @@ export interface DeleteImageFromKnowledgeBaseLibraryRequest {
|
|
|
38
38
|
}
|
|
39
39
|
export interface GetAgentKnowledgeFilesRequest {
|
|
40
40
|
agentId: string;
|
|
41
|
+
searchName?: string;
|
|
42
|
+
searchFile?: string;
|
|
41
43
|
}
|
|
42
44
|
export interface GetAvailableKnowledgeBasesRequest {
|
|
43
45
|
organizationId: string;
|
|
@@ -154,7 +156,7 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
|
|
|
154
156
|
* Returns all knowledge bases attached to the agent and their indexed files.
|
|
155
157
|
* Get knowledge bases and files for an agent
|
|
156
158
|
*/
|
|
157
|
-
getAgentKnowledgeFiles(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseWithFilesUio>>;
|
|
159
|
+
getAgentKnowledgeFiles(agentId: string, searchName?: string, searchFile?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseWithFilesUio>>;
|
|
158
160
|
/**
|
|
159
161
|
* Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
|
|
160
162
|
* List available knowledge bases for an agent
|
|
@@ -259,6 +259,12 @@ class KnowledgeApi extends runtime.BaseAPI {
|
|
|
259
259
|
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentKnowledgeFiles().');
|
|
260
260
|
}
|
|
261
261
|
const queryParameters = {};
|
|
262
|
+
if (requestParameters['searchName'] != null) {
|
|
263
|
+
queryParameters['searchName'] = requestParameters['searchName'];
|
|
264
|
+
}
|
|
265
|
+
if (requestParameters['searchFile'] != null) {
|
|
266
|
+
queryParameters['searchFile'] = requestParameters['searchFile'];
|
|
267
|
+
}
|
|
262
268
|
const headerParameters = {};
|
|
263
269
|
if (this.configuration && this.configuration.apiKey) {
|
|
264
270
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -275,8 +281,8 @@ class KnowledgeApi extends runtime.BaseAPI {
|
|
|
275
281
|
* Returns all knowledge bases attached to the agent and their indexed files.
|
|
276
282
|
* Get knowledge bases and files for an agent
|
|
277
283
|
*/
|
|
278
|
-
async getAgentKnowledgeFiles(agentId, initOverrides) {
|
|
279
|
-
const response = await this.getAgentKnowledgeFilesRaw({ agentId: agentId }, initOverrides);
|
|
284
|
+
async getAgentKnowledgeFiles(agentId, searchName, searchFile, initOverrides) {
|
|
285
|
+
const response = await this.getAgentKnowledgeFilesRaw({ agentId: agentId, searchName: searchName, searchFile: searchFile }, initOverrides);
|
|
280
286
|
return await response.value();
|
|
281
287
|
}
|
|
282
288
|
/**
|
package/dist/openapi.json
CHANGED
|
@@ -4385,6 +4385,22 @@
|
|
|
4385
4385
|
"format" : "uuid",
|
|
4386
4386
|
"type" : "string"
|
|
4387
4387
|
}
|
|
4388
|
+
}, {
|
|
4389
|
+
"description" : "Filter knowledge bases by name (case-insensitive substring)",
|
|
4390
|
+
"in" : "query",
|
|
4391
|
+
"name" : "searchName",
|
|
4392
|
+
"required" : false,
|
|
4393
|
+
"schema" : {
|
|
4394
|
+
"type" : "string"
|
|
4395
|
+
}
|
|
4396
|
+
}, {
|
|
4397
|
+
"description" : "Filter knowledge bases by file name (case-insensitive substring)",
|
|
4398
|
+
"in" : "query",
|
|
4399
|
+
"name" : "searchFile",
|
|
4400
|
+
"required" : false,
|
|
4401
|
+
"schema" : {
|
|
4402
|
+
"type" : "string"
|
|
4403
|
+
}
|
|
4388
4404
|
} ],
|
|
4389
4405
|
"responses" : {
|
|
4390
4406
|
"200" : {
|
|
@@ -4398,7 +4414,7 @@
|
|
|
4398
4414
|
}
|
|
4399
4415
|
}
|
|
4400
4416
|
},
|
|
4401
|
-
"description" : "List of knowledge bases
|
|
4417
|
+
"description" : "List of knowledge bases and their files"
|
|
4402
4418
|
},
|
|
4403
4419
|
"401" : {
|
|
4404
4420
|
"description" : "Unauthorized"
|