@breign/client 1.0.137 → 1.0.139
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/LibraryAgentsApi.d.ts +211 -0
- package/dist/apis/LibraryAgentsApi.js +537 -0
- package/dist/apis/OrganizationsApi.d.ts +58 -1
- package/dist/apis/OrganizationsApi.js +134 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentBundleDiffUio.d.ts +79 -0
- package/dist/models/AgentBundleDiffUio.js +85 -0
- package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
- package/dist/models/AgentBundleListDiffUio.js +58 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
- package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
- package/dist/models/AgentLibraryLinkUio.js +79 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
- package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
- package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
- package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +2 -2
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ConversationMessageApprovalUio.d.ts +70 -0
- package/dist/models/ConversationMessageApprovalUio.js +74 -0
- package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
- package/dist/models/ConversationMessagesInnerUio.js +3 -0
- package/dist/models/CreateToolApprovalRequestUio.d.ts +53 -0
- package/dist/models/CreateToolApprovalRequestUio.js +67 -0
- package/dist/models/EditToolApprovalRequestUio.d.ts +47 -0
- package/dist/models/EditToolApprovalRequestUio.js +63 -0
- package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
- package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
- package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
- package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
- package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
- package/dist/models/LibraryAgentEntryUio.js +83 -0
- package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
- package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
- package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
- package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
- package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
- package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
- package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
- package/dist/models/LibraryAgentVersionUio.js +87 -0
- package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
- package/dist/models/LibraryAgentsPageUio.js +71 -0
- package/dist/models/ToolApprovalUio.d.ts +85 -0
- package/dist/models/ToolApprovalUio.js +88 -0
- package/dist/models/ToolApprovalsResponseUio.d.ts +33 -0
- package/dist/models/ToolApprovalsResponseUio.js +51 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +28 -0
- package/dist/models/ToolCallResultRequestUio.js +19 -1
- package/dist/models/ToolCallUio.d.ts +4 -4
- package/dist/models/ToolCallUio.js +2 -4
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/dist/openapi.json +6374 -4924
- package/package.json +1 -1
|
@@ -87,6 +87,40 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
87
87
|
const response = await this.createOrganizationRoleRaw({ organizationId: organizationId, roleCreateRequestUio: roleCreateRequestUio }, initOverrides);
|
|
88
88
|
return await response.value();
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Creates an approval without waiting for the agent to ask for one — preparing an agent rather than answering its questions. It widens no boundary: the value goes through the same validation as an in-conversation approval, the scope is the only one open (this agent, for the caller), and the author is the caller. Granting a value that is already granted returns the existing approval rather than a duplicate.
|
|
92
|
+
* Grant an approval by hand
|
|
93
|
+
*/
|
|
94
|
+
async createToolApprovalRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createToolApproval().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['createToolApprovalRequestUio'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('createToolApprovalRequestUio', 'Required parameter "createToolApprovalRequestUio" was null or undefined when calling createToolApproval().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
106
|
+
}
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: `/organizations/{organizationId}/tool-approvals`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
body: (0, index_1.CreateToolApprovalRequestUioToJSON)(requestParameters['createToolApprovalRequestUio']),
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolApprovalUioFromJSON)(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Creates an approval without waiting for the agent to ask for one — preparing an agent rather than answering its questions. It widens no boundary: the value goes through the same validation as an in-conversation approval, the scope is the only one open (this agent, for the caller), and the author is the caller. Granting a value that is already granted returns the existing approval rather than a duplicate.
|
|
118
|
+
* Grant an approval by hand
|
|
119
|
+
*/
|
|
120
|
+
async createToolApproval(organizationId, createToolApprovalRequestUio, initOverrides) {
|
|
121
|
+
const response = await this.createToolApprovalRaw({ organizationId: organizationId, createToolApprovalRequestUio: createToolApprovalRequestUio }, initOverrides);
|
|
122
|
+
return await response.value();
|
|
123
|
+
}
|
|
90
124
|
/**
|
|
91
125
|
* Permanently deletes an organization, then purges the agent memories attached to it. Restricted to super administrators and only available when the server runs with the `features.testMode` flag enabled.
|
|
92
126
|
* Delete an organization
|
|
@@ -176,6 +210,43 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
176
210
|
const response = await this.deleteOrganizationUserRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
177
211
|
return await response.value();
|
|
178
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Rewrites what one approval covers — widening an address into a pattern, or correcting a command. Only an approval the caller granted himself, and only its resource: the scope, the agent and the author never change. An approval cannot be created this way; a right only ever starts with a question the agent actually asked.
|
|
215
|
+
* Edit an approval the caller granted
|
|
216
|
+
*/
|
|
217
|
+
async editToolApprovalRaw(requestParameters, initOverrides) {
|
|
218
|
+
if (requestParameters['organizationId'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling editToolApproval().');
|
|
220
|
+
}
|
|
221
|
+
if (requestParameters['approvalId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('approvalId', 'Required parameter "approvalId" was null or undefined when calling editToolApproval().');
|
|
223
|
+
}
|
|
224
|
+
if (requestParameters['editToolApprovalRequestUio'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('editToolApprovalRequestUio', 'Required parameter "editToolApprovalRequestUio" was null or undefined when calling editToolApproval().');
|
|
226
|
+
}
|
|
227
|
+
const queryParameters = {};
|
|
228
|
+
const headerParameters = {};
|
|
229
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
230
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
231
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
232
|
+
}
|
|
233
|
+
const response = await this.request({
|
|
234
|
+
path: `/organizations/{organizationId}/tool-approvals/{approvalId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"approvalId"}}`, encodeURIComponent(String(requestParameters['approvalId']))),
|
|
235
|
+
method: 'PATCH',
|
|
236
|
+
headers: headerParameters,
|
|
237
|
+
query: queryParameters,
|
|
238
|
+
body: (0, index_1.EditToolApprovalRequestUioToJSON)(requestParameters['editToolApprovalRequestUio']),
|
|
239
|
+
}, initOverrides);
|
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolApprovalUioFromJSON)(jsonValue));
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Rewrites what one approval covers — widening an address into a pattern, or correcting a command. Only an approval the caller granted himself, and only its resource: the scope, the agent and the author never change. An approval cannot be created this way; a right only ever starts with a question the agent actually asked.
|
|
244
|
+
* Edit an approval the caller granted
|
|
245
|
+
*/
|
|
246
|
+
async editToolApproval(organizationId, approvalId, editToolApprovalRequestUio, initOverrides) {
|
|
247
|
+
const response = await this.editToolApprovalRaw({ organizationId: organizationId, approvalId: approvalId, editToolApprovalRequestUio: editToolApprovalRequestUio }, initOverrides);
|
|
248
|
+
return await response.value();
|
|
249
|
+
}
|
|
179
250
|
/**
|
|
180
251
|
* Retrieves an organization by its ID
|
|
181
252
|
* Get an organization by ID
|
|
@@ -377,6 +448,69 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
377
448
|
const response = await this.listOrganizationsRaw(initOverrides);
|
|
378
449
|
return await response.value();
|
|
379
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Returns the approvals the CALLER granted in this organisation, newest first. Revoking one deletes it, so every approval returned is a right in force — there is no expiry and no revoked state to filter out. Never another user\'s: an approval is a personal consent.
|
|
453
|
+
* List the operations the caller has authorised
|
|
454
|
+
*/
|
|
455
|
+
async listToolApprovalsRaw(requestParameters, initOverrides) {
|
|
456
|
+
if (requestParameters['organizationId'] == null) {
|
|
457
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listToolApprovals().');
|
|
458
|
+
}
|
|
459
|
+
const queryParameters = {};
|
|
460
|
+
if (requestParameters['agentId'] != null) {
|
|
461
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
462
|
+
}
|
|
463
|
+
const headerParameters = {};
|
|
464
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
466
|
+
}
|
|
467
|
+
const response = await this.request({
|
|
468
|
+
path: `/organizations/{organizationId}/tool-approvals`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
469
|
+
method: 'GET',
|
|
470
|
+
headers: headerParameters,
|
|
471
|
+
query: queryParameters,
|
|
472
|
+
}, initOverrides);
|
|
473
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolApprovalsResponseUioFromJSON)(jsonValue));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Returns the approvals the CALLER granted in this organisation, newest first. Revoking one deletes it, so every approval returned is a right in force — there is no expiry and no revoked state to filter out. Never another user\'s: an approval is a personal consent.
|
|
477
|
+
* List the operations the caller has authorised
|
|
478
|
+
*/
|
|
479
|
+
async listToolApprovals(organizationId, agentId, initOverrides) {
|
|
480
|
+
const response = await this.listToolApprovalsRaw({ organizationId: organizationId, agentId: agentId }, initOverrides);
|
|
481
|
+
return await response.value();
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Takes back one approval the caller granted. The approval is deleted, and the agent asks again the next time it needs that operation. It takes effect on the agent\'s next turn.
|
|
485
|
+
* Revoke an approval
|
|
486
|
+
*/
|
|
487
|
+
async revokeToolApprovalRaw(requestParameters, initOverrides) {
|
|
488
|
+
if (requestParameters['organizationId'] == null) {
|
|
489
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling revokeToolApproval().');
|
|
490
|
+
}
|
|
491
|
+
if (requestParameters['approvalId'] == null) {
|
|
492
|
+
throw new runtime.RequiredError('approvalId', 'Required parameter "approvalId" was null or undefined when calling revokeToolApproval().');
|
|
493
|
+
}
|
|
494
|
+
const queryParameters = {};
|
|
495
|
+
const headerParameters = {};
|
|
496
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
497
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
498
|
+
}
|
|
499
|
+
const response = await this.request({
|
|
500
|
+
path: `/organizations/{organizationId}/tool-approvals/{approvalId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"approvalId"}}`, encodeURIComponent(String(requestParameters['approvalId']))),
|
|
501
|
+
method: 'DELETE',
|
|
502
|
+
headers: headerParameters,
|
|
503
|
+
query: queryParameters,
|
|
504
|
+
}, initOverrides);
|
|
505
|
+
return new runtime.VoidApiResponse(response);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Takes back one approval the caller granted. The approval is deleted, and the agent asks again the next time it needs that operation. It takes effect on the agent\'s next turn.
|
|
509
|
+
* Revoke an approval
|
|
510
|
+
*/
|
|
511
|
+
async revokeToolApproval(organizationId, approvalId, initOverrides) {
|
|
512
|
+
await this.revokeToolApprovalRaw({ organizationId: organizationId, approvalId: approvalId }, initOverrides);
|
|
513
|
+
}
|
|
380
514
|
/**
|
|
381
515
|
* Updates an existing agent role in the specified organization
|
|
382
516
|
* Update a role in an organization
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './GeneralApi';
|
|
|
14
14
|
export * from './GuardiansApi';
|
|
15
15
|
export * from './InstancesApi';
|
|
16
16
|
export * from './KnowledgeApi';
|
|
17
|
+
export * from './LibraryAgentsApi';
|
|
17
18
|
export * from './ManifestsApi';
|
|
18
19
|
export * from './MetricsApi';
|
|
19
20
|
export * from './OrganizationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./GeneralApi"), exports);
|
|
|
32
32
|
__exportStar(require("./GuardiansApi"), exports);
|
|
33
33
|
__exportStar(require("./InstancesApi"), exports);
|
|
34
34
|
__exportStar(require("./KnowledgeApi"), exports);
|
|
35
|
+
__exportStar(require("./LibraryAgentsApi"), exports);
|
|
35
36
|
__exportStar(require("./ManifestsApi"), exports);
|
|
36
37
|
__exportStar(require("./MetricsApi"), exports);
|
|
37
38
|
__exportStar(require("./OrganizationsApi"), exports);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AgentBundleListDiffUio } from './AgentBundleListDiffUio';
|
|
13
|
+
/**
|
|
14
|
+
* Structural diff between two published bundle versions (what an update would change).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentBundleDiffUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentBundleDiffUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof AgentBundleDiffUio
|
|
23
|
+
*/
|
|
24
|
+
changedAgentFields: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AgentBundleListDiffUio}
|
|
28
|
+
* @memberof AgentBundleDiffUio
|
|
29
|
+
*/
|
|
30
|
+
skills: AgentBundleListDiffUio;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AgentBundleListDiffUio}
|
|
34
|
+
* @memberof AgentBundleDiffUio
|
|
35
|
+
*/
|
|
36
|
+
tools: AgentBundleListDiffUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {AgentBundleListDiffUio}
|
|
40
|
+
* @memberof AgentBundleDiffUio
|
|
41
|
+
*/
|
|
42
|
+
knowledgeBases: AgentBundleListDiffUio;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {AgentBundleListDiffUio}
|
|
46
|
+
* @memberof AgentBundleDiffUio
|
|
47
|
+
*/
|
|
48
|
+
apps: AgentBundleListDiffUio;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AgentBundleDiffUio
|
|
53
|
+
*/
|
|
54
|
+
flow: AgentBundleDiffUioFlowEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof AgentBundleDiffUio
|
|
59
|
+
*/
|
|
60
|
+
hasChanges: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const AgentBundleDiffUioFlowEnum: {
|
|
66
|
+
readonly Unchanged: "unchanged";
|
|
67
|
+
readonly Added: "added";
|
|
68
|
+
readonly Removed: "removed";
|
|
69
|
+
readonly Changed: "changed";
|
|
70
|
+
};
|
|
71
|
+
export type AgentBundleDiffUioFlowEnum = typeof AgentBundleDiffUioFlowEnum[keyof typeof AgentBundleDiffUioFlowEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AgentBundleDiffUio interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfAgentBundleDiffUio(value: object): value is AgentBundleDiffUio;
|
|
76
|
+
export declare function AgentBundleDiffUioFromJSON(json: any): AgentBundleDiffUio;
|
|
77
|
+
export declare function AgentBundleDiffUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentBundleDiffUio;
|
|
78
|
+
export declare function AgentBundleDiffUioToJSON(json: any): AgentBundleDiffUio;
|
|
79
|
+
export declare function AgentBundleDiffUioToJSONTyped(value?: AgentBundleDiffUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentBundleDiffUioFlowEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentBundleDiffUio = instanceOfAgentBundleDiffUio;
|
|
18
|
+
exports.AgentBundleDiffUioFromJSON = AgentBundleDiffUioFromJSON;
|
|
19
|
+
exports.AgentBundleDiffUioFromJSONTyped = AgentBundleDiffUioFromJSONTyped;
|
|
20
|
+
exports.AgentBundleDiffUioToJSON = AgentBundleDiffUioToJSON;
|
|
21
|
+
exports.AgentBundleDiffUioToJSONTyped = AgentBundleDiffUioToJSONTyped;
|
|
22
|
+
const AgentBundleListDiffUio_1 = require("./AgentBundleListDiffUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AgentBundleDiffUioFlowEnum = {
|
|
27
|
+
Unchanged: 'unchanged',
|
|
28
|
+
Added: 'added',
|
|
29
|
+
Removed: 'removed',
|
|
30
|
+
Changed: 'changed'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AgentBundleDiffUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfAgentBundleDiffUio(value) {
|
|
36
|
+
if (!('changedAgentFields' in value) || value['changedAgentFields'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('skills' in value) || value['skills'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('tools' in value) || value['tools'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('knowledgeBases' in value) || value['knowledgeBases'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('apps' in value) || value['apps'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('flow' in value) || value['flow'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('hasChanges' in value) || value['hasChanges'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function AgentBundleDiffUioFromJSON(json) {
|
|
53
|
+
return AgentBundleDiffUioFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AgentBundleDiffUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'changedAgentFields': json['changedAgentFields'],
|
|
61
|
+
'skills': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioFromJSON)(json['skills']),
|
|
62
|
+
'tools': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioFromJSON)(json['tools']),
|
|
63
|
+
'knowledgeBases': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioFromJSON)(json['knowledgeBases']),
|
|
64
|
+
'apps': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioFromJSON)(json['apps']),
|
|
65
|
+
'flow': json['flow'],
|
|
66
|
+
'hasChanges': json['hasChanges'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function AgentBundleDiffUioToJSON(json) {
|
|
70
|
+
return AgentBundleDiffUioToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function AgentBundleDiffUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'changedAgentFields': value['changedAgentFields'],
|
|
78
|
+
'skills': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioToJSON)(value['skills']),
|
|
79
|
+
'tools': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioToJSON)(value['tools']),
|
|
80
|
+
'knowledgeBases': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioToJSON)(value['knowledgeBases']),
|
|
81
|
+
'apps': (0, AgentBundleListDiffUio_1.AgentBundleListDiffUioToJSON)(value['apps']),
|
|
82
|
+
'flow': value['flow'],
|
|
83
|
+
'hasChanges': value['hasChanges'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentBundleListDiffUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentBundleListDiffUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AgentBundleListDiffUio
|
|
22
|
+
*/
|
|
23
|
+
added: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentBundleListDiffUio
|
|
28
|
+
*/
|
|
29
|
+
removed: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof AgentBundleListDiffUio
|
|
34
|
+
*/
|
|
35
|
+
updated: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AgentBundleListDiffUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAgentBundleListDiffUio(value: object): value is AgentBundleListDiffUio;
|
|
41
|
+
export declare function AgentBundleListDiffUioFromJSON(json: any): AgentBundleListDiffUio;
|
|
42
|
+
export declare function AgentBundleListDiffUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentBundleListDiffUio;
|
|
43
|
+
export declare function AgentBundleListDiffUioToJSON(json: any): AgentBundleListDiffUio;
|
|
44
|
+
export declare function AgentBundleListDiffUioToJSONTyped(value?: AgentBundleListDiffUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentBundleListDiffUio = instanceOfAgentBundleListDiffUio;
|
|
17
|
+
exports.AgentBundleListDiffUioFromJSON = AgentBundleListDiffUioFromJSON;
|
|
18
|
+
exports.AgentBundleListDiffUioFromJSONTyped = AgentBundleListDiffUioFromJSONTyped;
|
|
19
|
+
exports.AgentBundleListDiffUioToJSON = AgentBundleListDiffUioToJSON;
|
|
20
|
+
exports.AgentBundleListDiffUioToJSONTyped = AgentBundleListDiffUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentBundleListDiffUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentBundleListDiffUio(value) {
|
|
25
|
+
if (!('added' in value) || value['added'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('removed' in value) || value['removed'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AgentBundleListDiffUioFromJSON(json) {
|
|
34
|
+
return AgentBundleListDiffUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AgentBundleListDiffUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'added': json['added'],
|
|
42
|
+
'removed': json['removed'],
|
|
43
|
+
'updated': json['updated'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AgentBundleListDiffUioToJSON(json) {
|
|
47
|
+
return AgentBundleListDiffUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AgentBundleListDiffUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'added': value['added'],
|
|
55
|
+
'removed': value['removed'],
|
|
56
|
+
'updated': value['updated'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentLibraryLinkLatestVersionUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentLibraryLinkLatestVersionUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentLibraryLinkLatestVersionUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentLibraryLinkLatestVersionUio
|
|
28
|
+
*/
|
|
29
|
+
version: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof AgentLibraryLinkLatestVersionUio
|
|
34
|
+
*/
|
|
35
|
+
publishedAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AgentLibraryLinkLatestVersionUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAgentLibraryLinkLatestVersionUio(value: object): value is AgentLibraryLinkLatestVersionUio;
|
|
41
|
+
export declare function AgentLibraryLinkLatestVersionUioFromJSON(json: any): AgentLibraryLinkLatestVersionUio;
|
|
42
|
+
export declare function AgentLibraryLinkLatestVersionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinkLatestVersionUio;
|
|
43
|
+
export declare function AgentLibraryLinkLatestVersionUioToJSON(json: any): AgentLibraryLinkLatestVersionUio;
|
|
44
|
+
export declare function AgentLibraryLinkLatestVersionUioToJSONTyped(value?: AgentLibraryLinkLatestVersionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentLibraryLinkLatestVersionUio = instanceOfAgentLibraryLinkLatestVersionUio;
|
|
17
|
+
exports.AgentLibraryLinkLatestVersionUioFromJSON = AgentLibraryLinkLatestVersionUioFromJSON;
|
|
18
|
+
exports.AgentLibraryLinkLatestVersionUioFromJSONTyped = AgentLibraryLinkLatestVersionUioFromJSONTyped;
|
|
19
|
+
exports.AgentLibraryLinkLatestVersionUioToJSON = AgentLibraryLinkLatestVersionUioToJSON;
|
|
20
|
+
exports.AgentLibraryLinkLatestVersionUioToJSONTyped = AgentLibraryLinkLatestVersionUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentLibraryLinkLatestVersionUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentLibraryLinkLatestVersionUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('publishedAt' in value) || value['publishedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AgentLibraryLinkLatestVersionUioFromJSON(json) {
|
|
34
|
+
return AgentLibraryLinkLatestVersionUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AgentLibraryLinkLatestVersionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'version': json['version'],
|
|
43
|
+
'publishedAt': (new Date(json['publishedAt'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AgentLibraryLinkLatestVersionUioToJSON(json) {
|
|
47
|
+
return AgentLibraryLinkLatestVersionUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AgentLibraryLinkLatestVersionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'version': value['version'],
|
|
56
|
+
'publishedAt': ((value['publishedAt']).toISOString()),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AgentLibraryLinkLatestVersionUio } from './AgentLibraryLinkLatestVersionUio';
|
|
13
|
+
/**
|
|
14
|
+
* Provenance link between an installed (managed) agent and its marketplace catalog entry, enriched with the latest published version of that entry.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentLibraryLinkUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentLibraryLinkUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgentLibraryLinkUio
|
|
23
|
+
*/
|
|
24
|
+
agentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AgentLibraryLinkUio
|
|
29
|
+
*/
|
|
30
|
+
librarySlug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AgentLibraryLinkUio
|
|
35
|
+
*/
|
|
36
|
+
libraryVersionId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AgentLibraryLinkUio
|
|
41
|
+
*/
|
|
42
|
+
libraryVersion: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof AgentLibraryLinkUio
|
|
47
|
+
*/
|
|
48
|
+
installedAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof AgentLibraryLinkUio
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
* Name of the catalog entry (null when the entry was unpublished).
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AgentLibraryLinkUio
|
|
59
|
+
*/
|
|
60
|
+
entryName?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AgentLibraryLinkLatestVersionUio}
|
|
64
|
+
* @memberof AgentLibraryLinkUio
|
|
65
|
+
*/
|
|
66
|
+
latestVersion?: AgentLibraryLinkLatestVersionUio;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof AgentLibraryLinkUio
|
|
71
|
+
*/
|
|
72
|
+
updateAvailable: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the AgentLibraryLinkUio interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfAgentLibraryLinkUio(value: object): value is AgentLibraryLinkUio;
|
|
78
|
+
export declare function AgentLibraryLinkUioFromJSON(json: any): AgentLibraryLinkUio;
|
|
79
|
+
export declare function AgentLibraryLinkUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinkUio;
|
|
80
|
+
export declare function AgentLibraryLinkUioToJSON(json: any): AgentLibraryLinkUio;
|
|
81
|
+
export declare function AgentLibraryLinkUioToJSONTyped(value?: AgentLibraryLinkUio | null, ignoreDiscriminator?: boolean): any;
|