@breign/client 1.0.151 → 1.0.152

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.
@@ -146,6 +146,9 @@ export interface ListOrganizationAgentsRequest {
146
146
  organizationId: string;
147
147
  isCreator?: boolean;
148
148
  providerSource?: ListOrganizationAgentsProviderSourceEnum;
149
+ personal?: boolean;
150
+ includeOthersPersonal?: boolean;
151
+ visibility?: Array<ListOrganizationAgentsVisibilityEnum>;
149
152
  }
150
153
  export interface RemoveAgentProfileImageRequest {
151
154
  agentId: string;
@@ -477,7 +480,7 @@ export declare class AgentApi extends runtime.BaseAPI {
477
480
  /**
478
481
  * List agents for an organization
479
482
  */
480
- listOrganizationAgents(organizationId: string, isCreator?: boolean, providerSource?: ListOrganizationAgentsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
483
+ listOrganizationAgents(organizationId: string, isCreator?: boolean, providerSource?: ListOrganizationAgentsProviderSourceEnum, personal?: boolean, includeOthersPersonal?: boolean, visibility?: Array<ListOrganizationAgentsVisibilityEnum>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
481
484
  /**
482
485
  * Removes the profile image for an agent
483
486
  * Remove agent profile image
@@ -643,3 +646,14 @@ export declare const ListOrganizationAgentsProviderSourceEnum: {
643
646
  readonly Internal: "INTERNAL";
644
647
  };
645
648
  export type ListOrganizationAgentsProviderSourceEnum = typeof ListOrganizationAgentsProviderSourceEnum[keyof typeof ListOrganizationAgentsProviderSourceEnum];
649
+ /**
650
+ * @export
651
+ */
652
+ export declare const ListOrganizationAgentsVisibilityEnum: {
653
+ readonly MyAgents: "myAgents";
654
+ readonly Public: "public";
655
+ readonly SharedWithMe: "sharedWithMe";
656
+ readonly Personal: "personal";
657
+ readonly OthersPersonal: "othersPersonal";
658
+ };
659
+ export type ListOrganizationAgentsVisibilityEnum = typeof ListOrganizationAgentsVisibilityEnum[keyof typeof ListOrganizationAgentsVisibilityEnum];
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.ExportAgentFormatEnum = exports.AgentApi = void 0;
49
+ exports.ListOrganizationAgentsVisibilityEnum = exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.ExportAgentFormatEnum = exports.AgentApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
@@ -1029,6 +1029,15 @@ class AgentApi extends runtime.BaseAPI {
1029
1029
  if (requestParameters['providerSource'] != null) {
1030
1030
  queryParameters['providerSource'] = requestParameters['providerSource'];
1031
1031
  }
1032
+ if (requestParameters['personal'] != null) {
1033
+ queryParameters['personal'] = requestParameters['personal'];
1034
+ }
1035
+ if (requestParameters['includeOthersPersonal'] != null) {
1036
+ queryParameters['includeOthersPersonal'] = requestParameters['includeOthersPersonal'];
1037
+ }
1038
+ if (requestParameters['visibility'] != null) {
1039
+ queryParameters['visibility'] = requestParameters['visibility'];
1040
+ }
1032
1041
  const headerParameters = {};
1033
1042
  if (this.configuration && this.configuration.apiKey) {
1034
1043
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
@@ -1044,8 +1053,8 @@ class AgentApi extends runtime.BaseAPI {
1044
1053
  /**
1045
1054
  * List agents for an organization
1046
1055
  */
1047
- async listOrganizationAgents(organizationId, isCreator, providerSource, initOverrides) {
1048
- const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator, providerSource: providerSource }, initOverrides);
1056
+ async listOrganizationAgents(organizationId, isCreator, providerSource, personal, includeOthersPersonal, visibility, initOverrides) {
1057
+ const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator, providerSource: providerSource, personal: personal, includeOthersPersonal: includeOthersPersonal, visibility: visibility }, initOverrides);
1049
1058
  return await response.value();
1050
1059
  }
1051
1060
  /**
@@ -1454,3 +1463,13 @@ exports.ListOrganizationAgentsProviderSourceEnum = {
1454
1463
  External: 'EXTERNAL',
1455
1464
  Internal: 'INTERNAL'
1456
1465
  };
1466
+ /**
1467
+ * @export
1468
+ */
1469
+ exports.ListOrganizationAgentsVisibilityEnum = {
1470
+ MyAgents: 'myAgents',
1471
+ Public: 'public',
1472
+ SharedWithMe: 'sharedWithMe',
1473
+ Personal: 'personal',
1474
+ OthersPersonal: 'othersPersonal'
1475
+ };
package/dist/openapi.json CHANGED
@@ -278,6 +278,36 @@
278
278
  "enum" : [ "EXTERNAL", "INTERNAL" ],
279
279
  "type" : "string"
280
280
  }
281
+ }, {
282
+ "description" : "If true, only personal agents. If false, only organization-shared (public) agents.\n",
283
+ "in" : "query",
284
+ "name" : "personal",
285
+ "required" : false,
286
+ "schema" : {
287
+ "type" : "boolean"
288
+ }
289
+ }, {
290
+ "description" : "If true, include personal agents created by other users. Organization admins only; other callers receive 403. Default listing hides those agents.\n",
291
+ "in" : "query",
292
+ "name" : "includeOthersPersonal",
293
+ "required" : false,
294
+ "schema" : {
295
+ "type" : "boolean"
296
+ }
297
+ }, {
298
+ "description" : "Visibility scopes to include (OR). Accepted values: myAgents, public, sharedWithMe, personal, othersPersonal. Comma-separated or repeated. othersPersonal requires org admin. When omitted, returns agents created by the caller or organization-shared agents.\n",
299
+ "explode" : true,
300
+ "in" : "query",
301
+ "name" : "visibility",
302
+ "required" : false,
303
+ "schema" : {
304
+ "items" : {
305
+ "enum" : [ "myAgents", "public", "sharedWithMe", "personal", "othersPersonal" ],
306
+ "type" : "string"
307
+ },
308
+ "type" : "array"
309
+ },
310
+ "style" : "form"
281
311
  } ],
282
312
  "responses" : {
283
313
  "200" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.151",
3
+ "version": "1.0.152",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",