@breign/client 1.0.82 → 1.0.84
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/KnowledgeApi.d.ts +73 -1
- package/dist/apis/KnowledgeApi.js +166 -0
- package/dist/apis/SkillsApi.d.ts +115 -0
- package/dist/apis/SkillsApi.js +298 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +151 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +98 -0
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +44 -0
- package/dist/models/KnowledgeFilePagePreviewUio.js +56 -0
- package/dist/models/SkillAssignRequestUio.d.ts +32 -0
- package/dist/models/SkillAssignRequestUio.js +50 -0
- package/dist/models/SkillCreateRequestUio.d.ts +56 -0
- package/dist/models/SkillCreateRequestUio.js +66 -0
- package/dist/models/SkillUio.d.ts +86 -0
- package/dist/models/SkillUio.js +80 -0
- package/dist/models/SkillUpdateRequestUio.d.ts +50 -0
- package/dist/models/SkillUpdateRequestUio.js +54 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/openapi.json +845 -30
- package/package.json +1 -1
|
@@ -0,0 +1,298 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SkillsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SkillsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Assign a skill to an agent
|
|
58
|
+
*/
|
|
59
|
+
async assignSkillToAgentRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['agentId'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling assignSkillToAgent().');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters['skillAssignRequestUio'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('skillAssignRequestUio', 'Required parameter "skillAssignRequestUio" was null or undefined when calling assignSkillToAgent().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/agents/{agentId}/skills`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
body: (0, index_1.SkillAssignRequestUioToJSON)(requestParameters['skillAssignRequestUio']),
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.VoidApiResponse(response);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Assign a skill to an agent
|
|
83
|
+
*/
|
|
84
|
+
async assignSkillToAgent(agentId, skillAssignRequestUio, initOverrides) {
|
|
85
|
+
await this.assignSkillToAgentRaw({ agentId: agentId, skillAssignRequestUio: skillAssignRequestUio }, initOverrides);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new skill in an organization
|
|
89
|
+
* Create a skill
|
|
90
|
+
*/
|
|
91
|
+
async createSkillRaw(requestParameters, initOverrides) {
|
|
92
|
+
if (requestParameters['skillCreateRequestUio'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('skillCreateRequestUio', 'Required parameter "skillCreateRequestUio" was null or undefined when calling createSkill().');
|
|
94
|
+
}
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
const headerParameters = {};
|
|
97
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
100
|
+
}
|
|
101
|
+
const response = await this.request({
|
|
102
|
+
path: `/skills`,
|
|
103
|
+
method: 'POST',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
body: (0, index_1.SkillCreateRequestUioToJSON)(requestParameters['skillCreateRequestUio']),
|
|
107
|
+
}, initOverrides);
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a new skill in an organization
|
|
112
|
+
* Create a skill
|
|
113
|
+
*/
|
|
114
|
+
async createSkill(skillCreateRequestUio, initOverrides) {
|
|
115
|
+
const response = await this.createSkillRaw({ skillCreateRequestUio: skillCreateRequestUio }, initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Delete a skill
|
|
120
|
+
*/
|
|
121
|
+
async deleteSkillRaw(requestParameters, initOverrides) {
|
|
122
|
+
if (requestParameters['skillId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling deleteSkill().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
132
|
+
method: 'DELETE',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Delete a skill
|
|
140
|
+
*/
|
|
141
|
+
async deleteSkill(skillId, initOverrides) {
|
|
142
|
+
await this.deleteSkillRaw({ skillId: skillId }, initOverrides);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get skills assigned to an agent
|
|
146
|
+
*/
|
|
147
|
+
async getAgentSkillsRaw(requestParameters, initOverrides) {
|
|
148
|
+
if (requestParameters['agentId'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentSkills().');
|
|
150
|
+
}
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
const headerParameters = {};
|
|
153
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
154
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
155
|
+
}
|
|
156
|
+
const response = await this.request({
|
|
157
|
+
path: `/agents/{agentId}/skills`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
158
|
+
method: 'GET',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
}, initOverrides);
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SkillUioFromJSON));
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Get skills assigned to an agent
|
|
166
|
+
*/
|
|
167
|
+
async getAgentSkills(agentId, initOverrides) {
|
|
168
|
+
const response = await this.getAgentSkillsRaw({ agentId: agentId }, initOverrides);
|
|
169
|
+
return await response.value();
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get a skill by ID
|
|
173
|
+
*/
|
|
174
|
+
async getSkillRaw(requestParameters, initOverrides) {
|
|
175
|
+
if (requestParameters['skillId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkill().');
|
|
177
|
+
}
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
const headerParameters = {};
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
182
|
+
}
|
|
183
|
+
const response = await this.request({
|
|
184
|
+
path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
185
|
+
method: 'GET',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
}, initOverrides);
|
|
189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Get a skill by ID
|
|
193
|
+
*/
|
|
194
|
+
async getSkill(skillId, initOverrides) {
|
|
195
|
+
const response = await this.getSkillRaw({ skillId: skillId }, initOverrides);
|
|
196
|
+
return await response.value();
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Returns a paginated list of skills scoped to an organization
|
|
200
|
+
* List skills in an organization
|
|
201
|
+
*/
|
|
202
|
+
async listSkillsRaw(requestParameters, initOverrides) {
|
|
203
|
+
if (requestParameters['organizationId'] == null) {
|
|
204
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listSkills().');
|
|
205
|
+
}
|
|
206
|
+
const queryParameters = {};
|
|
207
|
+
if (requestParameters['organizationId'] != null) {
|
|
208
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
209
|
+
}
|
|
210
|
+
if (requestParameters['page'] != null) {
|
|
211
|
+
queryParameters['page'] = requestParameters['page'];
|
|
212
|
+
}
|
|
213
|
+
if (requestParameters['limit'] != null) {
|
|
214
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
215
|
+
}
|
|
216
|
+
const headerParameters = {};
|
|
217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
218
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
219
|
+
}
|
|
220
|
+
const response = await this.request({
|
|
221
|
+
path: `/skills`,
|
|
222
|
+
method: 'GET',
|
|
223
|
+
headers: headerParameters,
|
|
224
|
+
query: queryParameters,
|
|
225
|
+
}, initOverrides);
|
|
226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SkillUioFromJSON));
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Returns a paginated list of skills scoped to an organization
|
|
230
|
+
* List skills in an organization
|
|
231
|
+
*/
|
|
232
|
+
async listSkills(organizationId, page, limit, initOverrides) {
|
|
233
|
+
const response = await this.listSkillsRaw({ organizationId: organizationId, page: page, limit: limit }, initOverrides);
|
|
234
|
+
return await response.value();
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Unassign a skill from an agent
|
|
238
|
+
*/
|
|
239
|
+
async unassignSkillFromAgentRaw(requestParameters, initOverrides) {
|
|
240
|
+
if (requestParameters['agentId'] == null) {
|
|
241
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling unassignSkillFromAgent().');
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['skillId'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling unassignSkillFromAgent().');
|
|
245
|
+
}
|
|
246
|
+
const queryParameters = {};
|
|
247
|
+
const headerParameters = {};
|
|
248
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
249
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
250
|
+
}
|
|
251
|
+
const response = await this.request({
|
|
252
|
+
path: `/agents/{agentId}/skills/{skillId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
253
|
+
method: 'DELETE',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
}, initOverrides);
|
|
257
|
+
return new runtime.VoidApiResponse(response);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Unassign a skill from an agent
|
|
261
|
+
*/
|
|
262
|
+
async unassignSkillFromAgent(agentId, skillId, initOverrides) {
|
|
263
|
+
await this.unassignSkillFromAgentRaw({ agentId: agentId, skillId: skillId }, initOverrides);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Update a skill
|
|
267
|
+
*/
|
|
268
|
+
async updateSkillRaw(requestParameters, initOverrides) {
|
|
269
|
+
if (requestParameters['skillId'] == null) {
|
|
270
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling updateSkill().');
|
|
271
|
+
}
|
|
272
|
+
if (requestParameters['skillUpdateRequestUio'] == null) {
|
|
273
|
+
throw new runtime.RequiredError('skillUpdateRequestUio', 'Required parameter "skillUpdateRequestUio" was null or undefined when calling updateSkill().');
|
|
274
|
+
}
|
|
275
|
+
const queryParameters = {};
|
|
276
|
+
const headerParameters = {};
|
|
277
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
278
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
279
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
280
|
+
}
|
|
281
|
+
const response = await this.request({
|
|
282
|
+
path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
283
|
+
method: 'PATCH',
|
|
284
|
+
headers: headerParameters,
|
|
285
|
+
query: queryParameters,
|
|
286
|
+
body: (0, index_1.SkillUpdateRequestUioToJSON)(requestParameters['skillUpdateRequestUio']),
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Update a skill
|
|
292
|
+
*/
|
|
293
|
+
async updateSkill(skillId, skillUpdateRequestUio, initOverrides) {
|
|
294
|
+
const response = await this.updateSkillRaw({ skillId: skillId, skillUpdateRequestUio: skillUpdateRequestUio }, initOverrides);
|
|
295
|
+
return await response.value();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
exports.SkillsApi = SkillsApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -33,4 +33,5 @@ __exportStar(require("./MetricsApi"), exports);
|
|
|
33
33
|
__exportStar(require("./OrganizationsApi"), exports);
|
|
34
34
|
__exportStar(require("./PromptsApi"), exports);
|
|
35
35
|
__exportStar(require("./RemotesApi"), exports);
|
|
36
|
+
__exportStar(require("./SkillsApi"), exports);
|
|
36
37
|
__exportStar(require("./ToolsApi"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
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 KnowledgeBaseConfigurationAuthenticationOneOfUio
|
|
16
|
+
*/
|
|
17
|
+
export interface KnowledgeBaseConfigurationAuthenticationOneOfUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KnowledgeBaseConfigurationAuthenticationOneOfUio
|
|
22
|
+
*/
|
|
23
|
+
apiKey?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KnowledgeBaseConfigurationAuthenticationOneOfUio
|
|
28
|
+
*/
|
|
29
|
+
type?: KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum: {
|
|
35
|
+
readonly ApiKey: "API_KEY";
|
|
36
|
+
};
|
|
37
|
+
export type KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum = typeof KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum[keyof typeof KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the KnowledgeBaseConfigurationAuthenticationOneOfUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio(value: object): value is KnowledgeBaseConfigurationAuthenticationOneOfUio;
|
|
42
|
+
export declare function KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSON(json: any): KnowledgeBaseConfigurationAuthenticationOneOfUio;
|
|
43
|
+
export declare function KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationAuthenticationOneOfUio;
|
|
44
|
+
export declare function KnowledgeBaseConfigurationAuthenticationOneOfUioToJSON(json: any): KnowledgeBaseConfigurationAuthenticationOneOfUio;
|
|
45
|
+
export declare function KnowledgeBaseConfigurationAuthenticationOneOfUioToJSONTyped(value?: KnowledgeBaseConfigurationAuthenticationOneOfUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio = instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio;
|
|
18
|
+
exports.KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSON = KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSON;
|
|
19
|
+
exports.KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped = KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped;
|
|
20
|
+
exports.KnowledgeBaseConfigurationAuthenticationOneOfUioToJSON = KnowledgeBaseConfigurationAuthenticationOneOfUioToJSON;
|
|
21
|
+
exports.KnowledgeBaseConfigurationAuthenticationOneOfUioToJSONTyped = KnowledgeBaseConfigurationAuthenticationOneOfUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.KnowledgeBaseConfigurationAuthenticationOneOfUioTypeEnum = {
|
|
26
|
+
ApiKey: 'API_KEY'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the KnowledgeBaseConfigurationAuthenticationOneOfUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSON(json) {
|
|
35
|
+
return KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
43
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function KnowledgeBaseConfigurationAuthenticationOneOfUioToJSON(json) {
|
|
47
|
+
return KnowledgeBaseConfigurationAuthenticationOneOfUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function KnowledgeBaseConfigurationAuthenticationOneOfUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'apiKey': value['apiKey'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { KnowledgeBaseConfigurationAuthenticationOneOfUio } from './KnowledgeBaseConfigurationAuthenticationOneOfUio';
|
|
13
|
+
/**
|
|
14
|
+
* @type KnowledgeBaseConfigurationAuthenticationUio
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export type KnowledgeBaseConfigurationAuthenticationUio = KnowledgeBaseConfigurationAuthenticationOneOfUio | string;
|
|
19
|
+
export declare function KnowledgeBaseConfigurationAuthenticationUioFromJSON(json: any): KnowledgeBaseConfigurationAuthenticationUio;
|
|
20
|
+
export declare function KnowledgeBaseConfigurationAuthenticationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationAuthenticationUio;
|
|
21
|
+
export declare function KnowledgeBaseConfigurationAuthenticationUioToJSON(json: any): any;
|
|
22
|
+
export declare function KnowledgeBaseConfigurationAuthenticationUioToJSONTyped(value?: KnowledgeBaseConfigurationAuthenticationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.KnowledgeBaseConfigurationAuthenticationUioFromJSON = KnowledgeBaseConfigurationAuthenticationUioFromJSON;
|
|
17
|
+
exports.KnowledgeBaseConfigurationAuthenticationUioFromJSONTyped = KnowledgeBaseConfigurationAuthenticationUioFromJSONTyped;
|
|
18
|
+
exports.KnowledgeBaseConfigurationAuthenticationUioToJSON = KnowledgeBaseConfigurationAuthenticationUioToJSON;
|
|
19
|
+
exports.KnowledgeBaseConfigurationAuthenticationUioToJSONTyped = KnowledgeBaseConfigurationAuthenticationUioToJSONTyped;
|
|
20
|
+
const KnowledgeBaseConfigurationAuthenticationOneOfUio_1 = require("./KnowledgeBaseConfigurationAuthenticationOneOfUio");
|
|
21
|
+
function KnowledgeBaseConfigurationAuthenticationUioFromJSON(json) {
|
|
22
|
+
return KnowledgeBaseConfigurationAuthenticationUioFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function KnowledgeBaseConfigurationAuthenticationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
if (typeof json !== 'object') {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
if ((0, KnowledgeBaseConfigurationAuthenticationOneOfUio_1.instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio)(json)) {
|
|
32
|
+
return (0, KnowledgeBaseConfigurationAuthenticationOneOfUio_1.KnowledgeBaseConfigurationAuthenticationOneOfUioFromJSONTyped)(json, true);
|
|
33
|
+
}
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
function KnowledgeBaseConfigurationAuthenticationUioToJSON(json) {
|
|
37
|
+
return KnowledgeBaseConfigurationAuthenticationUioToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function KnowledgeBaseConfigurationAuthenticationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
if (typeof value !== 'object') {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
if ((0, KnowledgeBaseConfigurationAuthenticationOneOfUio_1.instanceOfKnowledgeBaseConfigurationAuthenticationOneOfUio)(value)) {
|
|
47
|
+
return (0, KnowledgeBaseConfigurationAuthenticationOneOfUio_1.KnowledgeBaseConfigurationAuthenticationOneOfUioToJSON)(value);
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { KnowledgeBaseConfigurationAuthenticationUio } from './KnowledgeBaseConfigurationAuthenticationUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface KnowledgeBaseConfigurationUio
|
|
17
|
+
*/
|
|
18
|
+
export interface KnowledgeBaseConfigurationUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
23
|
+
*/
|
|
24
|
+
host?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
29
|
+
*/
|
|
30
|
+
scheme?: KnowledgeBaseConfigurationUioSchemeEnum | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {KnowledgeBaseConfigurationAuthenticationUio}
|
|
34
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
35
|
+
*/
|
|
36
|
+
authentication?: KnowledgeBaseConfigurationAuthenticationUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
41
|
+
*/
|
|
42
|
+
indexName?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
47
|
+
*/
|
|
48
|
+
colpaliKnowledgeBaseId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
53
|
+
*/
|
|
54
|
+
emptyKnowledgeResult?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
59
|
+
*/
|
|
60
|
+
additionalInstructions?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
65
|
+
*/
|
|
66
|
+
fusionType?: KnowledgeBaseConfigurationUioFusionTypeEnum | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
71
|
+
*/
|
|
72
|
+
toolDescription?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
77
|
+
*/
|
|
78
|
+
toolParametersQueryDescription?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
83
|
+
*/
|
|
84
|
+
scoreThreshold?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
89
|
+
*/
|
|
90
|
+
maxDocuments?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
95
|
+
*/
|
|
96
|
+
maxRetrievalLength?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
101
|
+
*/
|
|
102
|
+
vectorizerModel?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
107
|
+
*/
|
|
108
|
+
vectorizerModelDimensions?: number | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
113
|
+
*/
|
|
114
|
+
embeddingProviderId?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
119
|
+
*/
|
|
120
|
+
embeddingModelId?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
125
|
+
*/
|
|
126
|
+
embeddingDimensions?: number | null;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @export
|
|
130
|
+
*/
|
|
131
|
+
export declare const KnowledgeBaseConfigurationUioSchemeEnum: {
|
|
132
|
+
readonly Http: "http";
|
|
133
|
+
readonly Https: "https";
|
|
134
|
+
};
|
|
135
|
+
export type KnowledgeBaseConfigurationUioSchemeEnum = typeof KnowledgeBaseConfigurationUioSchemeEnum[keyof typeof KnowledgeBaseConfigurationUioSchemeEnum];
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const KnowledgeBaseConfigurationUioFusionTypeEnum: {
|
|
140
|
+
readonly RankedFusion: "rankedFusion";
|
|
141
|
+
readonly RelativeScoreFusion: "relativeScoreFusion";
|
|
142
|
+
};
|
|
143
|
+
export type KnowledgeBaseConfigurationUioFusionTypeEnum = typeof KnowledgeBaseConfigurationUioFusionTypeEnum[keyof typeof KnowledgeBaseConfigurationUioFusionTypeEnum];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the KnowledgeBaseConfigurationUio interface.
|
|
146
|
+
*/
|
|
147
|
+
export declare function instanceOfKnowledgeBaseConfigurationUio(value: object): value is KnowledgeBaseConfigurationUio;
|
|
148
|
+
export declare function KnowledgeBaseConfigurationUioFromJSON(json: any): KnowledgeBaseConfigurationUio;
|
|
149
|
+
export declare function KnowledgeBaseConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseConfigurationUio;
|
|
150
|
+
export declare function KnowledgeBaseConfigurationUioToJSON(json: any): KnowledgeBaseConfigurationUio;
|
|
151
|
+
export declare function KnowledgeBaseConfigurationUioToJSONTyped(value?: KnowledgeBaseConfigurationUio | null, ignoreDiscriminator?: boolean): any;
|