@breign/client 1.0.44 → 1.0.46

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,10 +38,13 @@ 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;
44
46
  agentId: string;
47
+ searchName?: string;
45
48
  }
46
49
  export interface GetFileFromAgentKnowledgeRequest {
47
50
  agentId: string;
@@ -154,7 +157,7 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
154
157
  * Returns all knowledge bases attached to the agent and their indexed files.
155
158
  * Get knowledge bases and files for an agent
156
159
  */
157
- getAgentKnowledgeFiles(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseWithFilesUio>>;
160
+ getAgentKnowledgeFiles(agentId: string, searchName?: string, searchFile?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseWithFilesUio>>;
158
161
  /**
159
162
  * Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
160
163
  * List available knowledge bases for an agent
@@ -164,7 +167,7 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
164
167
  * Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
165
168
  * List available knowledge bases for an agent
166
169
  */
167
- getAvailableKnowledgeBases(organizationId: string, agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseUio>>;
170
+ getAvailableKnowledgeBases(organizationId: string, agentId: string, searchName?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<KnowledgeBaseUio>>;
168
171
  /**
169
172
  * Retrieves metadata for a file that has been imported into the agent\'s knowledge base
170
173
  * Get a specific knowledge file from 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
  /**
@@ -291,6 +297,9 @@ class KnowledgeApi extends runtime.BaseAPI {
291
297
  throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAvailableKnowledgeBases().');
292
298
  }
293
299
  const queryParameters = {};
300
+ if (requestParameters['searchName'] != null) {
301
+ queryParameters['searchName'] = requestParameters['searchName'];
302
+ }
294
303
  const headerParameters = {};
295
304
  if (this.configuration && this.configuration.apiKey) {
296
305
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
@@ -307,8 +316,8 @@ class KnowledgeApi extends runtime.BaseAPI {
307
316
  * Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
308
317
  * List available knowledge bases for an agent
309
318
  */
310
- async getAvailableKnowledgeBases(organizationId, agentId, initOverrides) {
311
- const response = await this.getAvailableKnowledgeBasesRaw({ organizationId: organizationId, agentId: agentId }, initOverrides);
319
+ async getAvailableKnowledgeBases(organizationId, agentId, searchName, initOverrides) {
320
+ const response = await this.getAvailableKnowledgeBasesRaw({ organizationId: organizationId, agentId: agentId, searchName: searchName }, initOverrides);
312
321
  return await response.value();
313
322
  }
314
323
  /**
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 gand their files"
4417
+ "description" : "List of knowledge bases and their files"
4402
4418
  },
4403
4419
  "401" : {
4404
4420
  "description" : "Unauthorized"
@@ -4828,6 +4844,14 @@
4828
4844
  "schema" : {
4829
4845
  "type" : "string"
4830
4846
  }
4847
+ }, {
4848
+ "description" : "Optional prefix used to filter knowledge bases by name (autocomplete). Case-insensitive.\n",
4849
+ "in" : "query",
4850
+ "name" : "searchName",
4851
+ "required" : false,
4852
+ "schema" : {
4853
+ "type" : "string"
4854
+ }
4831
4855
  } ],
4832
4856
  "responses" : {
4833
4857
  "200" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",