@breign/client 1.0.73 → 1.0.74

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.
@@ -37,6 +37,13 @@ export interface RevealToolTokenRequest {
37
37
  toolId: string;
38
38
  revealTokenRequestUio: RevealTokenRequestUio;
39
39
  }
40
+ export interface SearchToolsRequest {
41
+ organizationId: string;
42
+ search?: string;
43
+ excludeIds?: string;
44
+ limit?: number;
45
+ page?: number;
46
+ }
40
47
  export interface SetToolTokenRequest {
41
48
  toolId: string;
42
49
  setTokenRequestUio: SetTokenRequestUio;
@@ -112,6 +119,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
112
119
  * Reveal stored tool token (masked in GET)
113
120
  */
114
121
  revealToolToken(toolId: string, revealTokenRequestUio: RevealTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevealTokenResponseUio>;
122
+ /**
123
+ * Returns tools matching optional search query, with pagination
124
+ * Search tools in an organization
125
+ */
126
+ searchToolsRaw(requestParameters: SearchToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentToolUio>>>;
127
+ /**
128
+ * Returns tools matching optional search query, with pagination
129
+ * Search tools in an organization
130
+ */
131
+ searchTools(organizationId: string, search?: string, excludeIds?: string, limit?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentToolUio>>;
115
132
  /**
116
133
  * Set or update the tool secret token
117
134
  */
@@ -272,6 +272,50 @@ class ToolsApi extends runtime.BaseAPI {
272
272
  const response = await this.revealToolTokenRaw({ toolId: toolId, revealTokenRequestUio: revealTokenRequestUio }, initOverrides);
273
273
  return await response.value();
274
274
  }
275
+ /**
276
+ * Returns tools matching optional search query, with pagination
277
+ * Search tools in an organization
278
+ */
279
+ async searchToolsRaw(requestParameters, initOverrides) {
280
+ if (requestParameters['organizationId'] == null) {
281
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling searchTools().');
282
+ }
283
+ const queryParameters = {};
284
+ if (requestParameters['organizationId'] != null) {
285
+ queryParameters['organizationId'] = requestParameters['organizationId'];
286
+ }
287
+ if (requestParameters['search'] != null) {
288
+ queryParameters['search'] = requestParameters['search'];
289
+ }
290
+ if (requestParameters['excludeIds'] != null) {
291
+ queryParameters['excludeIds'] = requestParameters['excludeIds'];
292
+ }
293
+ if (requestParameters['limit'] != null) {
294
+ queryParameters['limit'] = requestParameters['limit'];
295
+ }
296
+ if (requestParameters['page'] != null) {
297
+ queryParameters['page'] = requestParameters['page'];
298
+ }
299
+ const headerParameters = {};
300
+ if (this.configuration && this.configuration.apiKey) {
301
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
302
+ }
303
+ const response = await this.request({
304
+ path: `/tools`,
305
+ method: 'GET',
306
+ headers: headerParameters,
307
+ query: queryParameters,
308
+ }, initOverrides);
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentToolUioFromJSON));
310
+ }
311
+ /**
312
+ * Returns tools matching optional search query, with pagination
313
+ * Search tools in an organization
314
+ */
315
+ async searchTools(organizationId, search, excludeIds, limit, page, initOverrides) {
316
+ const response = await this.searchToolsRaw({ organizationId: organizationId, search: search, excludeIds: excludeIds, limit: limit, page: page }, initOverrides);
317
+ return await response.value();
318
+ }
275
319
  /**
276
320
  * Set or update the tool secret token
277
321
  */
@@ -215,6 +215,12 @@ export interface AgentUio {
215
215
  * @memberof AgentUio
216
216
  */
217
217
  creator?: AgentCreatorUio;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof AgentUio
222
+ */
223
+ engineSource?: AgentUioEngineSourceEnum;
218
224
  /**
219
225
  *
220
226
  * @type {string}
@@ -222,6 +228,14 @@ export interface AgentUio {
222
228
  */
223
229
  providerSource?: AgentUioProviderSourceEnum;
224
230
  }
231
+ /**
232
+ * @export
233
+ */
234
+ export declare const AgentUioEngineSourceEnum: {
235
+ readonly Agent: "agent";
236
+ readonly Organization: "organization";
237
+ };
238
+ export type AgentUioEngineSourceEnum = typeof AgentUioEngineSourceEnum[keyof typeof AgentUioEngineSourceEnum];
225
239
  /**
226
240
  * @export
227
241
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AgentUioProviderSourceEnum = void 0;
16
+ exports.AgentUioProviderSourceEnum = exports.AgentUioEngineSourceEnum = void 0;
17
17
  exports.instanceOfAgentUio = instanceOfAgentUio;
18
18
  exports.AgentUioFromJSON = AgentUioFromJSON;
19
19
  exports.AgentUioFromJSONTyped = AgentUioFromJSONTyped;
@@ -27,6 +27,13 @@ const AgentCreatorUio_1 = require("./AgentCreatorUio");
27
27
  const EngineUio_1 = require("./EngineUio");
28
28
  const PromptInitUio_1 = require("./PromptInitUio");
29
29
  const AgentTypeUio_1 = require("./AgentTypeUio");
30
+ /**
31
+ * @export
32
+ */
33
+ exports.AgentUioEngineSourceEnum = {
34
+ Agent: 'agent',
35
+ Organization: 'organization'
36
+ };
30
37
  /**
31
38
  * @export
32
39
  */
@@ -91,6 +98,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
91
98
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
92
99
  'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
93
100
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
101
+ 'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
94
102
  'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
95
103
  };
96
104
  }
@@ -133,6 +141,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
133
141
  'createdBy': value['createdBy'],
134
142
  'hideConversationsInHistory': value['hideConversationsInHistory'],
135
143
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
144
+ 'engineSource': value['engineSource'],
136
145
  'providerSource': value['providerSource'],
137
146
  };
138
147
  }
package/dist/openapi.json CHANGED
@@ -5364,6 +5364,83 @@
5364
5364
  }
5365
5365
  },
5366
5366
  "/tools" : {
5367
+ "get" : {
5368
+ "description" : "Returns tools matching optional search query, with pagination",
5369
+ "operationId" : "searchTools",
5370
+ "parameters" : [ {
5371
+ "description" : "Organization ID",
5372
+ "in" : "query",
5373
+ "name" : "organizationId",
5374
+ "required" : true,
5375
+ "schema" : {
5376
+ "type" : "string"
5377
+ }
5378
+ }, {
5379
+ "description" : "Search query to filter tools by name or description",
5380
+ "in" : "query",
5381
+ "name" : "search",
5382
+ "schema" : {
5383
+ "type" : "string"
5384
+ }
5385
+ }, {
5386
+ "description" : "Comma-separated list of tool IDs to exclude",
5387
+ "in" : "query",
5388
+ "name" : "excludeIds",
5389
+ "schema" : {
5390
+ "type" : "string"
5391
+ }
5392
+ }, {
5393
+ "description" : "Maximum number of tools to return",
5394
+ "in" : "query",
5395
+ "name" : "limit",
5396
+ "schema" : {
5397
+ "default" : 20,
5398
+ "maximum" : 100,
5399
+ "type" : "integer"
5400
+ }
5401
+ }, {
5402
+ "description" : "Page number",
5403
+ "in" : "query",
5404
+ "name" : "page",
5405
+ "schema" : {
5406
+ "type" : "integer"
5407
+ }
5408
+ } ],
5409
+ "responses" : {
5410
+ "200" : {
5411
+ "content" : {
5412
+ "application/json" : {
5413
+ "schema" : {
5414
+ "items" : {
5415
+ "$ref" : "#/components/schemas/AgentTool"
5416
+ },
5417
+ "type" : "array"
5418
+ }
5419
+ }
5420
+ },
5421
+ "description" : "List of tools",
5422
+ "headers" : {
5423
+ "X-Total-Count" : {
5424
+ "description" : "Total number of matching tools",
5425
+ "schema" : {
5426
+ "type" : "integer"
5427
+ }
5428
+ }
5429
+ }
5430
+ },
5431
+ "400" : {
5432
+ "description" : "MISSING_ORG_ID"
5433
+ },
5434
+ "401" : {
5435
+ "description" : "Unauthorized"
5436
+ },
5437
+ "403" : {
5438
+ "description" : "Forbidden"
5439
+ }
5440
+ },
5441
+ "summary" : "Search tools in an organization",
5442
+ "tags" : [ "tools" ]
5443
+ },
5367
5444
  "post" : {
5368
5445
  "description" : "Creates a tool in an organization (admin only)",
5369
5446
  "operationId" : "createTool",
@@ -7013,6 +7090,10 @@
7013
7090
  "creator" : {
7014
7091
  "$ref" : "#/components/schemas/Agent_creator"
7015
7092
  },
7093
+ "engineSource" : {
7094
+ "enum" : [ "agent", "organization" ],
7095
+ "type" : "string"
7096
+ },
7016
7097
  "providerSource" : {
7017
7098
  "enum" : [ "EXTERNAL", "INTERNAL" ],
7018
7099
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",