@breign/client 1.0.39 → 1.0.40
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.
- package/dist/apis/AgentApi.d.ts +26 -5
- package/dist/apis/AgentApi.js +31 -8
- package/dist/openapi.json +38 -1
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export interface GetAgentMetricsOverviewRequest {
|
|
|
56
56
|
startDate?: Date;
|
|
57
57
|
endDate?: Date;
|
|
58
58
|
}
|
|
59
|
+
export interface GetAgentsRequest {
|
|
60
|
+
isCreator?: boolean;
|
|
61
|
+
providerSource?: GetAgentsProviderSourceEnum;
|
|
62
|
+
}
|
|
59
63
|
export interface GetConversationsForAgentRequest {
|
|
60
64
|
agentId: string;
|
|
61
65
|
page?: number;
|
|
@@ -73,6 +77,7 @@ export interface GetModulesRequest {
|
|
|
73
77
|
export interface ListOrganizationAgentsRequest {
|
|
74
78
|
organizationId: string;
|
|
75
79
|
isCreator?: boolean;
|
|
80
|
+
providerSource?: ListOrganizationAgentsProviderSourceEnum;
|
|
76
81
|
}
|
|
77
82
|
export interface RemoveAgentProfileImageRequest {
|
|
78
83
|
agentId: string;
|
|
@@ -214,15 +219,15 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
214
219
|
*/
|
|
215
220
|
getAgentMetricsOverview(agentId: string, startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentMetricsOverviewUio>;
|
|
216
221
|
/**
|
|
217
|
-
* Get all agents
|
|
222
|
+
* Get all agents accessible to user
|
|
218
223
|
* Get all agents
|
|
219
224
|
*/
|
|
220
|
-
getAgentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentUio>>>;
|
|
225
|
+
getAgentsRaw(requestParameters: GetAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentUio>>>;
|
|
221
226
|
/**
|
|
222
|
-
* Get all agents
|
|
227
|
+
* Get all agents accessible to user
|
|
223
228
|
* Get all agents
|
|
224
229
|
*/
|
|
225
|
-
getAgents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
230
|
+
getAgents(isCreator?: boolean, providerSource?: GetAgentsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
226
231
|
/**
|
|
227
232
|
* Get conversations for an agent
|
|
228
233
|
* Get conversations for an agent
|
|
@@ -270,7 +275,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
270
275
|
/**
|
|
271
276
|
* List agents for an organization
|
|
272
277
|
*/
|
|
273
|
-
listOrganizationAgents(organizationId: string, isCreator?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
278
|
+
listOrganizationAgents(organizationId: string, isCreator?: boolean, providerSource?: ListOrganizationAgentsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
274
279
|
/**
|
|
275
280
|
* Removes the profile image for an agent
|
|
276
281
|
* Remove agent profile image
|
|
@@ -340,3 +345,19 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
340
345
|
*/
|
|
341
346
|
uploadAgentProfileImage(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
|
|
342
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* @export
|
|
350
|
+
*/
|
|
351
|
+
export declare const GetAgentsProviderSourceEnum: {
|
|
352
|
+
readonly External: "EXTERNAL";
|
|
353
|
+
readonly Internal: "INTERNAL";
|
|
354
|
+
};
|
|
355
|
+
export type GetAgentsProviderSourceEnum = typeof GetAgentsProviderSourceEnum[keyof typeof GetAgentsProviderSourceEnum];
|
|
356
|
+
/**
|
|
357
|
+
* @export
|
|
358
|
+
*/
|
|
359
|
+
export declare const ListOrganizationAgentsProviderSourceEnum: {
|
|
360
|
+
readonly External: "EXTERNAL";
|
|
361
|
+
readonly Internal: "INTERNAL";
|
|
362
|
+
};
|
|
363
|
+
export type ListOrganizationAgentsProviderSourceEnum = typeof ListOrganizationAgentsProviderSourceEnum[keyof typeof ListOrganizationAgentsProviderSourceEnum];
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.AgentApi = void 0;
|
|
49
|
+
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -412,11 +412,17 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
412
412
|
return await response.value();
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
|
-
* Get all agents
|
|
415
|
+
* Get all agents accessible to user
|
|
416
416
|
* Get all agents
|
|
417
417
|
*/
|
|
418
|
-
async getAgentsRaw(initOverrides) {
|
|
418
|
+
async getAgentsRaw(requestParameters, initOverrides) {
|
|
419
419
|
const queryParameters = {};
|
|
420
|
+
if (requestParameters['isCreator'] != null) {
|
|
421
|
+
queryParameters['isCreator'] = requestParameters['isCreator'];
|
|
422
|
+
}
|
|
423
|
+
if (requestParameters['providerSource'] != null) {
|
|
424
|
+
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
425
|
+
}
|
|
420
426
|
const headerParameters = {};
|
|
421
427
|
if (this.configuration && this.configuration.apiKey) {
|
|
422
428
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -430,11 +436,11 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
430
436
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentUioFromJSON));
|
|
431
437
|
}
|
|
432
438
|
/**
|
|
433
|
-
* Get all agents
|
|
439
|
+
* Get all agents accessible to user
|
|
434
440
|
* Get all agents
|
|
435
441
|
*/
|
|
436
|
-
async getAgents(initOverrides) {
|
|
437
|
-
const response = await this.getAgentsRaw(initOverrides);
|
|
442
|
+
async getAgents(isCreator, providerSource, initOverrides) {
|
|
443
|
+
const response = await this.getAgentsRaw({ isCreator: isCreator, providerSource: providerSource }, initOverrides);
|
|
438
444
|
return await response.value();
|
|
439
445
|
}
|
|
440
446
|
/**
|
|
@@ -570,6 +576,9 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
570
576
|
if (requestParameters['isCreator'] != null) {
|
|
571
577
|
queryParameters['isCreator'] = requestParameters['isCreator'];
|
|
572
578
|
}
|
|
579
|
+
if (requestParameters['providerSource'] != null) {
|
|
580
|
+
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
581
|
+
}
|
|
573
582
|
const headerParameters = {};
|
|
574
583
|
if (this.configuration && this.configuration.apiKey) {
|
|
575
584
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -585,8 +594,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
585
594
|
/**
|
|
586
595
|
* List agents for an organization
|
|
587
596
|
*/
|
|
588
|
-
async listOrganizationAgents(organizationId, isCreator, initOverrides) {
|
|
589
|
-
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator }, initOverrides);
|
|
597
|
+
async listOrganizationAgents(organizationId, isCreator, providerSource, initOverrides) {
|
|
598
|
+
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator, providerSource: providerSource }, initOverrides);
|
|
590
599
|
return await response.value();
|
|
591
600
|
}
|
|
592
601
|
/**
|
|
@@ -818,3 +827,17 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
818
827
|
}
|
|
819
828
|
}
|
|
820
829
|
exports.AgentApi = AgentApi;
|
|
830
|
+
/**
|
|
831
|
+
* @export
|
|
832
|
+
*/
|
|
833
|
+
exports.GetAgentsProviderSourceEnum = {
|
|
834
|
+
External: 'EXTERNAL',
|
|
835
|
+
Internal: 'INTERNAL'
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* @export
|
|
839
|
+
*/
|
|
840
|
+
exports.ListOrganizationAgentsProviderSourceEnum = {
|
|
841
|
+
External: 'EXTERNAL',
|
|
842
|
+
Internal: 'INTERNAL'
|
|
843
|
+
};
|
package/dist/openapi.json
CHANGED
|
@@ -90,8 +90,26 @@
|
|
|
90
90
|
},
|
|
91
91
|
"/agents" : {
|
|
92
92
|
"get" : {
|
|
93
|
-
"description" : "Get all agents
|
|
93
|
+
"description" : "Get all agents accessible to user",
|
|
94
94
|
"operationId" : "getAgents",
|
|
95
|
+
"parameters" : [ {
|
|
96
|
+
"description" : "If true, only returns agents created by the authenticated user.\n",
|
|
97
|
+
"in" : "query",
|
|
98
|
+
"name" : "isCreator",
|
|
99
|
+
"required" : false,
|
|
100
|
+
"schema" : {
|
|
101
|
+
"type" : "boolean"
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
"description" : "Filter by provider source.",
|
|
105
|
+
"in" : "query",
|
|
106
|
+
"name" : "providerSource",
|
|
107
|
+
"required" : false,
|
|
108
|
+
"schema" : {
|
|
109
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
110
|
+
"type" : "string"
|
|
111
|
+
}
|
|
112
|
+
} ],
|
|
95
113
|
"responses" : {
|
|
96
114
|
"200" : {
|
|
97
115
|
"content" : {
|
|
@@ -167,6 +185,15 @@
|
|
|
167
185
|
"schema" : {
|
|
168
186
|
"type" : "boolean"
|
|
169
187
|
}
|
|
188
|
+
}, {
|
|
189
|
+
"description" : "Filter by provider source.",
|
|
190
|
+
"in" : "query",
|
|
191
|
+
"name" : "providerSource",
|
|
192
|
+
"required" : false,
|
|
193
|
+
"schema" : {
|
|
194
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
195
|
+
"type" : "string"
|
|
196
|
+
}
|
|
170
197
|
} ],
|
|
171
198
|
"responses" : {
|
|
172
199
|
"200" : {
|
|
@@ -5698,6 +5725,16 @@
|
|
|
5698
5725
|
},
|
|
5699
5726
|
"components" : {
|
|
5700
5727
|
"parameters" : {
|
|
5728
|
+
"providerSource" : {
|
|
5729
|
+
"description" : "Filter by provider source.",
|
|
5730
|
+
"in" : "query",
|
|
5731
|
+
"name" : "providerSource",
|
|
5732
|
+
"required" : false,
|
|
5733
|
+
"schema" : {
|
|
5734
|
+
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
5735
|
+
"type" : "string"
|
|
5736
|
+
}
|
|
5737
|
+
},
|
|
5701
5738
|
"agentIdPath" : {
|
|
5702
5739
|
"description" : "ID of the agent",
|
|
5703
5740
|
"in" : "path",
|