@breign/client 1.0.45 → 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.
@@ -44,6 +44,7 @@ export interface GetAgentKnowledgeFilesRequest {
44
44
  export interface GetAvailableKnowledgeBasesRequest {
45
45
  organizationId: string;
46
46
  agentId: string;
47
+ searchName?: string;
47
48
  }
48
49
  export interface GetFileFromAgentKnowledgeRequest {
49
50
  agentId: string;
@@ -166,7 +167,7 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
166
167
  * Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
167
168
  * List available knowledge bases for an agent
168
169
  */
169
- 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>>;
170
171
  /**
171
172
  * Retrieves metadata for a file that has been imported into the agent\'s knowledge base
172
173
  * Get a specific knowledge file from an agent
@@ -297,6 +297,9 @@ class KnowledgeApi extends runtime.BaseAPI {
297
297
  throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAvailableKnowledgeBases().');
298
298
  }
299
299
  const queryParameters = {};
300
+ if (requestParameters['searchName'] != null) {
301
+ queryParameters['searchName'] = requestParameters['searchName'];
302
+ }
300
303
  const headerParameters = {};
301
304
  if (this.configuration && this.configuration.apiKey) {
302
305
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
@@ -313,8 +316,8 @@ class KnowledgeApi extends runtime.BaseAPI {
313
316
  * Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…
314
317
  * List available knowledge bases for an agent
315
318
  */
316
- async getAvailableKnowledgeBases(organizationId, agentId, initOverrides) {
317
- 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);
318
321
  return await response.value();
319
322
  }
320
323
  /**
package/dist/openapi.json CHANGED
@@ -4844,6 +4844,14 @@
4844
4844
  "schema" : {
4845
4845
  "type" : "string"
4846
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
+ }
4847
4855
  } ],
4848
4856
  "responses" : {
4849
4857
  "200" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",