@breign/client 1.0.108 → 1.0.109
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/SkillsApi.d.ts +12 -1
- package/dist/apis/SkillsApi.js +27 -0
- package/dist/models/AvailableCommandUio.d.ts +52 -0
- package/dist/models/AvailableCommandUio.js +66 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +57 -0
- package/package.json +1 -1
package/dist/apis/SkillsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AvailableCommandUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface AssignSkillToAgentRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
skillAssignRequestUio: SkillAssignRequestUio;
|
|
@@ -29,6 +29,9 @@ export interface DeleteSkillFileRequest {
|
|
|
29
29
|
skillId: string;
|
|
30
30
|
fileId: string;
|
|
31
31
|
}
|
|
32
|
+
export interface GetAgentAvailableCommandsRequest {
|
|
33
|
+
agentId: string;
|
|
34
|
+
}
|
|
32
35
|
export interface GetAgentSkillsRequest {
|
|
33
36
|
agentId: string;
|
|
34
37
|
}
|
|
@@ -106,6 +109,14 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
106
109
|
* Delete a skill file
|
|
107
110
|
*/
|
|
108
111
|
deleteSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Get available slash commands for an agent (predefined commands + active skills)
|
|
114
|
+
*/
|
|
115
|
+
getAgentAvailableCommandsRaw(requestParameters: GetAgentAvailableCommandsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AvailableCommandUio>>>;
|
|
116
|
+
/**
|
|
117
|
+
* Get available slash commands for an agent (predefined commands + active skills)
|
|
118
|
+
*/
|
|
119
|
+
getAgentAvailableCommands(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AvailableCommandUio>>;
|
|
109
120
|
/**
|
|
110
121
|
* Get skills assigned to an agent
|
|
111
122
|
*/
|
package/dist/apis/SkillsApi.js
CHANGED
|
@@ -202,6 +202,33 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
202
202
|
async deleteSkillFile(skillId, fileId, initOverrides) {
|
|
203
203
|
await this.deleteSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Get available slash commands for an agent (predefined commands + active skills)
|
|
207
|
+
*/
|
|
208
|
+
async getAgentAvailableCommandsRaw(requestParameters, initOverrides) {
|
|
209
|
+
if (requestParameters['agentId'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentAvailableCommands().');
|
|
211
|
+
}
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
216
|
+
}
|
|
217
|
+
const response = await this.request({
|
|
218
|
+
path: `/agents/{agentId}/commands`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
219
|
+
method: 'GET',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AvailableCommandUioFromJSON));
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Get available slash commands for an agent (predefined commands + active skills)
|
|
227
|
+
*/
|
|
228
|
+
async getAgentAvailableCommands(agentId, initOverrides) {
|
|
229
|
+
const response = await this.getAgentAvailableCommandsRaw({ agentId: agentId }, initOverrides);
|
|
230
|
+
return await response.value();
|
|
231
|
+
}
|
|
205
232
|
/**
|
|
206
233
|
* Get skills assigned to an agent
|
|
207
234
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
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 AvailableCommandUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AvailableCommandUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AvailableCommandUio
|
|
22
|
+
*/
|
|
23
|
+
slug: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AvailableCommandUio
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AvailableCommandUio
|
|
34
|
+
*/
|
|
35
|
+
source: AvailableCommandUioSourceEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AvailableCommandUioSourceEnum: {
|
|
41
|
+
readonly Predefined: "predefined";
|
|
42
|
+
readonly Skill: "skill";
|
|
43
|
+
};
|
|
44
|
+
export type AvailableCommandUioSourceEnum = typeof AvailableCommandUioSourceEnum[keyof typeof AvailableCommandUioSourceEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AvailableCommandUio interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAvailableCommandUio(value: object): value is AvailableCommandUio;
|
|
49
|
+
export declare function AvailableCommandUioFromJSON(json: any): AvailableCommandUio;
|
|
50
|
+
export declare function AvailableCommandUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailableCommandUio;
|
|
51
|
+
export declare function AvailableCommandUioToJSON(json: any): AvailableCommandUio;
|
|
52
|
+
export declare function AvailableCommandUioToJSONTyped(value?: AvailableCommandUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.AvailableCommandUioSourceEnum = void 0;
|
|
17
|
+
exports.instanceOfAvailableCommandUio = instanceOfAvailableCommandUio;
|
|
18
|
+
exports.AvailableCommandUioFromJSON = AvailableCommandUioFromJSON;
|
|
19
|
+
exports.AvailableCommandUioFromJSONTyped = AvailableCommandUioFromJSONTyped;
|
|
20
|
+
exports.AvailableCommandUioToJSON = AvailableCommandUioToJSON;
|
|
21
|
+
exports.AvailableCommandUioToJSONTyped = AvailableCommandUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AvailableCommandUioSourceEnum = {
|
|
26
|
+
Predefined: 'predefined',
|
|
27
|
+
Skill: 'skill'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AvailableCommandUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAvailableCommandUio(value) {
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AvailableCommandUioFromJSON(json) {
|
|
42
|
+
return AvailableCommandUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AvailableCommandUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'slug': json['slug'],
|
|
50
|
+
'description': json['description'],
|
|
51
|
+
'source': json['source'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AvailableCommandUioToJSON(json) {
|
|
55
|
+
return AvailableCommandUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AvailableCommandUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'description': value['description'],
|
|
64
|
+
'source': value['source'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export * from './AuthCodeConfirmResponseUio';
|
|
|
79
79
|
export * from './AuthCodeRequestUio';
|
|
80
80
|
export * from './AuthCodeRequestUserUio';
|
|
81
81
|
export * from './AuthCodeResponseUio';
|
|
82
|
+
export * from './AvailableCommandUio';
|
|
82
83
|
export * from './BodyWithIdUio';
|
|
83
84
|
export * from './BodyWithMessageUio';
|
|
84
85
|
export * from './ChatContextAttachmentUio';
|
package/dist/models/index.js
CHANGED
|
@@ -97,6 +97,7 @@ __exportStar(require("./AuthCodeConfirmResponseUio"), exports);
|
|
|
97
97
|
__exportStar(require("./AuthCodeRequestUio"), exports);
|
|
98
98
|
__exportStar(require("./AuthCodeRequestUserUio"), exports);
|
|
99
99
|
__exportStar(require("./AuthCodeResponseUio"), exports);
|
|
100
|
+
__exportStar(require("./AvailableCommandUio"), exports);
|
|
100
101
|
__exportStar(require("./BodyWithIdUio"), exports);
|
|
101
102
|
__exportStar(require("./BodyWithMessageUio"), exports);
|
|
102
103
|
__exportStar(require("./ChatContextAttachmentUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -9228,6 +9228,47 @@
|
|
|
9228
9228
|
"tags" : [ "skills" ]
|
|
9229
9229
|
}
|
|
9230
9230
|
},
|
|
9231
|
+
"/agents/{agentId}/commands" : {
|
|
9232
|
+
"get" : {
|
|
9233
|
+
"operationId" : "getAgentAvailableCommands",
|
|
9234
|
+
"parameters" : [ {
|
|
9235
|
+
"description" : "ID of the agent",
|
|
9236
|
+
"in" : "path",
|
|
9237
|
+
"name" : "agentId",
|
|
9238
|
+
"required" : true,
|
|
9239
|
+
"schema" : {
|
|
9240
|
+
"format" : "uuid",
|
|
9241
|
+
"type" : "string"
|
|
9242
|
+
}
|
|
9243
|
+
} ],
|
|
9244
|
+
"responses" : {
|
|
9245
|
+
"200" : {
|
|
9246
|
+
"content" : {
|
|
9247
|
+
"application/json" : {
|
|
9248
|
+
"schema" : {
|
|
9249
|
+
"items" : {
|
|
9250
|
+
"$ref" : "#/components/schemas/AvailableCommand"
|
|
9251
|
+
},
|
|
9252
|
+
"type" : "array"
|
|
9253
|
+
}
|
|
9254
|
+
}
|
|
9255
|
+
},
|
|
9256
|
+
"description" : "List of available commands for the agent"
|
|
9257
|
+
},
|
|
9258
|
+
"401" : {
|
|
9259
|
+
"description" : "Unauthorized"
|
|
9260
|
+
},
|
|
9261
|
+
"403" : {
|
|
9262
|
+
"description" : "Forbidden"
|
|
9263
|
+
},
|
|
9264
|
+
"404" : {
|
|
9265
|
+
"description" : "AGENT_NOT_FOUND"
|
|
9266
|
+
}
|
|
9267
|
+
},
|
|
9268
|
+
"summary" : "Get available slash commands for an agent (predefined commands + active skills)",
|
|
9269
|
+
"tags" : [ "skills" ]
|
|
9270
|
+
}
|
|
9271
|
+
},
|
|
9231
9272
|
"/agents/{agentId}/skills/{skillId}" : {
|
|
9232
9273
|
"delete" : {
|
|
9233
9274
|
"operationId" : "unassignSkillFromAgent",
|
|
@@ -14795,6 +14836,22 @@
|
|
|
14795
14836
|
"required" : [ "skill_id" ],
|
|
14796
14837
|
"type" : "object"
|
|
14797
14838
|
},
|
|
14839
|
+
"AvailableCommand" : {
|
|
14840
|
+
"properties" : {
|
|
14841
|
+
"slug" : {
|
|
14842
|
+
"type" : "string"
|
|
14843
|
+
},
|
|
14844
|
+
"description" : {
|
|
14845
|
+
"type" : "string"
|
|
14846
|
+
},
|
|
14847
|
+
"source" : {
|
|
14848
|
+
"enum" : [ "predefined", "skill" ],
|
|
14849
|
+
"type" : "string"
|
|
14850
|
+
}
|
|
14851
|
+
},
|
|
14852
|
+
"required" : [ "description", "slug", "source" ],
|
|
14853
|
+
"type" : "object"
|
|
14854
|
+
},
|
|
14798
14855
|
"PinRequest" : {
|
|
14799
14856
|
"properties" : {
|
|
14800
14857
|
"user" : {
|