@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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, ImportFileToAgentKnowledge200ResponseUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, KnowledgeFileSummaryUio, KnowledgeFilesByIdsRequestUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AgentModuleUio, BodyWithMessageUio, DocumentAddRequestUio, FileCreationRequestUio, FileCreationResponseUio, FileStatusUio, FileStatusUpdateRequestUio, FileWithDownloadUrlUio, ImageKnowledgeUio, ImportFileToAgentKnowledge200ResponseUio, KnowledgeBaseConfigurationUio, KnowledgeBaseUio, KnowledgeBaseWithFilesUio, KnowledgeFilePagePreviewUio, KnowledgeFileSummaryUio, KnowledgeFilesByIdsRequestUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddDocumentToKnowledgeBaseRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
documentAddRequestUio: DocumentAddRequestUio;
|
|
@@ -56,6 +56,16 @@ export interface GetImagesFromKnowledgeBaseLibraryRequest {
|
|
|
56
56
|
export interface GetInactiveKnowledgeFileIdsRequest {
|
|
57
57
|
knowledgebaseId: string;
|
|
58
58
|
}
|
|
59
|
+
export interface GetKnowledgeBaseConfigurationRequest {
|
|
60
|
+
knowledgebaseId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface GetKnowledgeFileRequest {
|
|
63
|
+
fileId: string;
|
|
64
|
+
}
|
|
65
|
+
export interface GetKnowledgeFilePagePreviewRequest {
|
|
66
|
+
fileId: string;
|
|
67
|
+
pageIndex: number;
|
|
68
|
+
}
|
|
59
69
|
export interface GetKnowledgeFilesByIdsRequest {
|
|
60
70
|
knowledgeFilesByIdsRequestUio: KnowledgeFilesByIdsRequestUio;
|
|
61
71
|
}
|
|
@@ -86,6 +96,14 @@ export interface UpdateImageStatusInKnowledgeBaseLibraryRequest {
|
|
|
86
96
|
imageId: string;
|
|
87
97
|
fileStatusUpdateRequestUio: FileStatusUpdateRequestUio;
|
|
88
98
|
}
|
|
99
|
+
export interface UpdateKnowledgeBaseConfigurationRequest {
|
|
100
|
+
knowledgebaseId: string;
|
|
101
|
+
knowledgeBaseConfigurationUio: KnowledgeBaseConfigurationUio;
|
|
102
|
+
}
|
|
103
|
+
export interface UpdateKnowledgeFileStatusRequest {
|
|
104
|
+
fileId: string;
|
|
105
|
+
fileStatusUpdateRequestUio: FileStatusUpdateRequestUio;
|
|
106
|
+
}
|
|
89
107
|
export interface UploadImageToKnowledgeBaseLibraryRequest {
|
|
90
108
|
knowledgebaseId: string;
|
|
91
109
|
image: Blob;
|
|
@@ -204,6 +222,36 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
|
|
|
204
222
|
* Get inactive knowledge file IDs for a knowledge base
|
|
205
223
|
*/
|
|
206
224
|
getInactiveKnowledgeFileIds(knowledgebaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
225
|
+
/**
|
|
226
|
+
* Returns the current configuration for a knowledge base
|
|
227
|
+
* Get knowledge base configuration
|
|
228
|
+
*/
|
|
229
|
+
getKnowledgeBaseConfigurationRaw(requestParameters: GetKnowledgeBaseConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KnowledgeBaseConfigurationUio>>;
|
|
230
|
+
/**
|
|
231
|
+
* Returns the current configuration for a knowledge base
|
|
232
|
+
* Get knowledge base configuration
|
|
233
|
+
*/
|
|
234
|
+
getKnowledgeBaseConfiguration(knowledgebaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KnowledgeBaseConfigurationUio>;
|
|
235
|
+
/**
|
|
236
|
+
* Retrieves metadata for a specific knowledge file by file ID
|
|
237
|
+
* Get a specific knowledge file
|
|
238
|
+
*/
|
|
239
|
+
getKnowledgeFileRaw(requestParameters: GetKnowledgeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWithDownloadUrlUio>>;
|
|
240
|
+
/**
|
|
241
|
+
* Retrieves metadata for a specific knowledge file by file ID
|
|
242
|
+
* Get a specific knowledge file
|
|
243
|
+
*/
|
|
244
|
+
getKnowledgeFile(fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWithDownloadUrlUio>;
|
|
245
|
+
/**
|
|
246
|
+
* Returns a presigned URL to preview a specific page image (ColPali knowledge bases only).
|
|
247
|
+
* Get a presigned preview URL for a knowledge file page
|
|
248
|
+
*/
|
|
249
|
+
getKnowledgeFilePagePreviewRaw(requestParameters: GetKnowledgeFilePagePreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KnowledgeFilePagePreviewUio>>;
|
|
250
|
+
/**
|
|
251
|
+
* Returns a presigned URL to preview a specific page image (ColPali knowledge bases only).
|
|
252
|
+
* Get a presigned preview URL for a knowledge file page
|
|
253
|
+
*/
|
|
254
|
+
getKnowledgeFilePagePreview(fileId: string, pageIndex: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KnowledgeFilePagePreviewUio>;
|
|
207
255
|
/**
|
|
208
256
|
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
209
257
|
* Get knowledge files by IDs
|
|
@@ -284,6 +332,30 @@ export declare class KnowledgeApi extends runtime.BaseAPI {
|
|
|
284
332
|
* Update the status of a specific knowledge image in a library image in knowledge base
|
|
285
333
|
*/
|
|
286
334
|
updateImageStatusInKnowledgeBaseLibrary(knowledgebaseId: string, imageId: string, fileStatusUpdateRequestUio: FileStatusUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileStatusUio>;
|
|
335
|
+
/**
|
|
336
|
+
* Updates the module configuration for a knowledge base
|
|
337
|
+
* Update knowledge base configuration
|
|
338
|
+
*/
|
|
339
|
+
updateKnowledgeBaseConfigurationRaw(requestParameters: UpdateKnowledgeBaseConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
340
|
+
[key: string]: any;
|
|
341
|
+
}>>;
|
|
342
|
+
/**
|
|
343
|
+
* Updates the module configuration for a knowledge base
|
|
344
|
+
* Update knowledge base configuration
|
|
345
|
+
*/
|
|
346
|
+
updateKnowledgeBaseConfiguration(knowledgebaseId: string, knowledgeBaseConfigurationUio: KnowledgeBaseConfigurationUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
347
|
+
[key: string]: any;
|
|
348
|
+
}>;
|
|
349
|
+
/**
|
|
350
|
+
* Updates the status of a knowledge file and triggers indexing when uploaded
|
|
351
|
+
* Update knowledge file status
|
|
352
|
+
*/
|
|
353
|
+
updateKnowledgeFileStatusRaw(requestParameters: UpdateKnowledgeFileStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
354
|
+
/**
|
|
355
|
+
* Updates the status of a knowledge file and triggers indexing when uploaded
|
|
356
|
+
* Update knowledge file status
|
|
357
|
+
*/
|
|
358
|
+
updateKnowledgeFileStatus(fileId: string, fileStatusUpdateRequestUio: FileStatusUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
287
359
|
/**
|
|
288
360
|
* Upload a new image to a library image in knowledge base and return the upload URL
|
|
289
361
|
* Upload a new image to a library image in knowledge base
|
|
@@ -410,6 +410,99 @@ class KnowledgeApi extends runtime.BaseAPI {
|
|
|
410
410
|
const response = await this.getInactiveKnowledgeFileIdsRaw({ knowledgebaseId: knowledgebaseId }, initOverrides);
|
|
411
411
|
return await response.value();
|
|
412
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Returns the current configuration for a knowledge base
|
|
415
|
+
* Get knowledge base configuration
|
|
416
|
+
*/
|
|
417
|
+
async getKnowledgeBaseConfigurationRaw(requestParameters, initOverrides) {
|
|
418
|
+
if (requestParameters['knowledgebaseId'] == null) {
|
|
419
|
+
throw new runtime.RequiredError('knowledgebaseId', 'Required parameter "knowledgebaseId" was null or undefined when calling getKnowledgeBaseConfiguration().');
|
|
420
|
+
}
|
|
421
|
+
const queryParameters = {};
|
|
422
|
+
const headerParameters = {};
|
|
423
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
424
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
425
|
+
}
|
|
426
|
+
const response = await this.request({
|
|
427
|
+
path: `/knowledge-bases/{knowledgebaseId}/configuration`.replace(`{${"knowledgebaseId"}}`, encodeURIComponent(String(requestParameters['knowledgebaseId']))),
|
|
428
|
+
method: 'GET',
|
|
429
|
+
headers: headerParameters,
|
|
430
|
+
query: queryParameters,
|
|
431
|
+
}, initOverrides);
|
|
432
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.KnowledgeBaseConfigurationUioFromJSON)(jsonValue));
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Returns the current configuration for a knowledge base
|
|
436
|
+
* Get knowledge base configuration
|
|
437
|
+
*/
|
|
438
|
+
async getKnowledgeBaseConfiguration(knowledgebaseId, initOverrides) {
|
|
439
|
+
const response = await this.getKnowledgeBaseConfigurationRaw({ knowledgebaseId: knowledgebaseId }, initOverrides);
|
|
440
|
+
return await response.value();
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Retrieves metadata for a specific knowledge file by file ID
|
|
444
|
+
* Get a specific knowledge file
|
|
445
|
+
*/
|
|
446
|
+
async getKnowledgeFileRaw(requestParameters, initOverrides) {
|
|
447
|
+
if (requestParameters['fileId'] == null) {
|
|
448
|
+
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling getKnowledgeFile().');
|
|
449
|
+
}
|
|
450
|
+
const queryParameters = {};
|
|
451
|
+
const headerParameters = {};
|
|
452
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
453
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
454
|
+
}
|
|
455
|
+
const response = await this.request({
|
|
456
|
+
path: `/knowledge-files/{fileId}`.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
|
|
457
|
+
method: 'GET',
|
|
458
|
+
headers: headerParameters,
|
|
459
|
+
query: queryParameters,
|
|
460
|
+
}, initOverrides);
|
|
461
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FileWithDownloadUrlUioFromJSON)(jsonValue));
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Retrieves metadata for a specific knowledge file by file ID
|
|
465
|
+
* Get a specific knowledge file
|
|
466
|
+
*/
|
|
467
|
+
async getKnowledgeFile(fileId, initOverrides) {
|
|
468
|
+
const response = await this.getKnowledgeFileRaw({ fileId: fileId }, initOverrides);
|
|
469
|
+
return await response.value();
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Returns a presigned URL to preview a specific page image (ColPali knowledge bases only).
|
|
473
|
+
* Get a presigned preview URL for a knowledge file page
|
|
474
|
+
*/
|
|
475
|
+
async getKnowledgeFilePagePreviewRaw(requestParameters, initOverrides) {
|
|
476
|
+
if (requestParameters['fileId'] == null) {
|
|
477
|
+
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling getKnowledgeFilePagePreview().');
|
|
478
|
+
}
|
|
479
|
+
if (requestParameters['pageIndex'] == null) {
|
|
480
|
+
throw new runtime.RequiredError('pageIndex', 'Required parameter "pageIndex" was null or undefined when calling getKnowledgeFilePagePreview().');
|
|
481
|
+
}
|
|
482
|
+
const queryParameters = {};
|
|
483
|
+
if (requestParameters['pageIndex'] != null) {
|
|
484
|
+
queryParameters['pageIndex'] = requestParameters['pageIndex'];
|
|
485
|
+
}
|
|
486
|
+
const headerParameters = {};
|
|
487
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
488
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
489
|
+
}
|
|
490
|
+
const response = await this.request({
|
|
491
|
+
path: `/knowledge-files/{fileId}/page-preview`.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
|
|
492
|
+
method: 'GET',
|
|
493
|
+
headers: headerParameters,
|
|
494
|
+
query: queryParameters,
|
|
495
|
+
}, initOverrides);
|
|
496
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.KnowledgeFilePagePreviewUioFromJSON)(jsonValue));
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Returns a presigned URL to preview a specific page image (ColPali knowledge bases only).
|
|
500
|
+
* Get a presigned preview URL for a knowledge file page
|
|
501
|
+
*/
|
|
502
|
+
async getKnowledgeFilePagePreview(fileId, pageIndex, initOverrides) {
|
|
503
|
+
const response = await this.getKnowledgeFilePagePreviewRaw({ fileId: fileId, pageIndex: pageIndex }, initOverrides);
|
|
504
|
+
return await response.value();
|
|
505
|
+
}
|
|
413
506
|
/**
|
|
414
507
|
* Returns knowledge file summaries (id and name) for the given file IDs.
|
|
415
508
|
* Get knowledge files by IDs
|
|
@@ -690,6 +783,79 @@ class KnowledgeApi extends runtime.BaseAPI {
|
|
|
690
783
|
const response = await this.updateImageStatusInKnowledgeBaseLibraryRaw({ knowledgebaseId: knowledgebaseId, imageId: imageId, fileStatusUpdateRequestUio: fileStatusUpdateRequestUio }, initOverrides);
|
|
691
784
|
return await response.value();
|
|
692
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* Updates the module configuration for a knowledge base
|
|
788
|
+
* Update knowledge base configuration
|
|
789
|
+
*/
|
|
790
|
+
async updateKnowledgeBaseConfigurationRaw(requestParameters, initOverrides) {
|
|
791
|
+
if (requestParameters['knowledgebaseId'] == null) {
|
|
792
|
+
throw new runtime.RequiredError('knowledgebaseId', 'Required parameter "knowledgebaseId" was null or undefined when calling updateKnowledgeBaseConfiguration().');
|
|
793
|
+
}
|
|
794
|
+
if (requestParameters['knowledgeBaseConfigurationUio'] == null) {
|
|
795
|
+
throw new runtime.RequiredError('knowledgeBaseConfigurationUio', 'Required parameter "knowledgeBaseConfigurationUio" was null or undefined when calling updateKnowledgeBaseConfiguration().');
|
|
796
|
+
}
|
|
797
|
+
const queryParameters = {};
|
|
798
|
+
const headerParameters = {};
|
|
799
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
800
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
801
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
802
|
+
}
|
|
803
|
+
const response = await this.request({
|
|
804
|
+
path: `/knowledge-bases/{knowledgebaseId}/configuration`.replace(`{${"knowledgebaseId"}}`, encodeURIComponent(String(requestParameters['knowledgebaseId']))),
|
|
805
|
+
method: 'PUT',
|
|
806
|
+
headers: headerParameters,
|
|
807
|
+
query: queryParameters,
|
|
808
|
+
body: (0, index_1.KnowledgeBaseConfigurationUioToJSON)(requestParameters['knowledgeBaseConfigurationUio']),
|
|
809
|
+
}, initOverrides);
|
|
810
|
+
return new runtime.JSONApiResponse(response);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Updates the module configuration for a knowledge base
|
|
814
|
+
* Update knowledge base configuration
|
|
815
|
+
*/
|
|
816
|
+
async updateKnowledgeBaseConfiguration(knowledgebaseId, knowledgeBaseConfigurationUio, initOverrides) {
|
|
817
|
+
const response = await this.updateKnowledgeBaseConfigurationRaw({ knowledgebaseId: knowledgebaseId, knowledgeBaseConfigurationUio: knowledgeBaseConfigurationUio }, initOverrides);
|
|
818
|
+
return await response.value();
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Updates the status of a knowledge file and triggers indexing when uploaded
|
|
822
|
+
* Update knowledge file status
|
|
823
|
+
*/
|
|
824
|
+
async updateKnowledgeFileStatusRaw(requestParameters, initOverrides) {
|
|
825
|
+
if (requestParameters['fileId'] == null) {
|
|
826
|
+
throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling updateKnowledgeFileStatus().');
|
|
827
|
+
}
|
|
828
|
+
if (requestParameters['fileStatusUpdateRequestUio'] == null) {
|
|
829
|
+
throw new runtime.RequiredError('fileStatusUpdateRequestUio', 'Required parameter "fileStatusUpdateRequestUio" was null or undefined when calling updateKnowledgeFileStatus().');
|
|
830
|
+
}
|
|
831
|
+
const queryParameters = {};
|
|
832
|
+
const headerParameters = {};
|
|
833
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
834
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
835
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
836
|
+
}
|
|
837
|
+
const response = await this.request({
|
|
838
|
+
path: `/knowledge-files/{fileId}/status`.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
|
|
839
|
+
method: 'POST',
|
|
840
|
+
headers: headerParameters,
|
|
841
|
+
query: queryParameters,
|
|
842
|
+
body: (0, index_1.FileStatusUpdateRequestUioToJSON)(requestParameters['fileStatusUpdateRequestUio']),
|
|
843
|
+
}, initOverrides);
|
|
844
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
845
|
+
return new runtime.JSONApiResponse(response);
|
|
846
|
+
}
|
|
847
|
+
else {
|
|
848
|
+
return new runtime.TextApiResponse(response);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Updates the status of a knowledge file and triggers indexing when uploaded
|
|
853
|
+
* Update knowledge file status
|
|
854
|
+
*/
|
|
855
|
+
async updateKnowledgeFileStatus(fileId, fileStatusUpdateRequestUio, initOverrides) {
|
|
856
|
+
const response = await this.updateKnowledgeFileStatusRaw({ fileId: fileId, fileStatusUpdateRequestUio: fileStatusUpdateRequestUio }, initOverrides);
|
|
857
|
+
return await response.value();
|
|
858
|
+
}
|
|
693
859
|
/**
|
|
694
860
|
* Upload a new image to a library image in knowledge base and return the upload URL
|
|
695
861
|
* Upload a new image to a library image in knowledge base
|
|
@@ -0,0 +1,115 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
14
|
+
export interface AssignSkillToAgentRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
skillAssignRequestUio: SkillAssignRequestUio;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateSkillRequest {
|
|
19
|
+
skillCreateRequestUio: SkillCreateRequestUio;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteSkillRequest {
|
|
22
|
+
skillId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GetAgentSkillsRequest {
|
|
25
|
+
agentId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetSkillRequest {
|
|
28
|
+
skillId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ListSkillsRequest {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
page?: number;
|
|
33
|
+
limit?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface UnassignSkillFromAgentRequest {
|
|
36
|
+
agentId: string;
|
|
37
|
+
skillId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateSkillRequest {
|
|
40
|
+
skillId: string;
|
|
41
|
+
skillUpdateRequestUio: SkillUpdateRequestUio;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
export declare class SkillsApi extends runtime.BaseAPI {
|
|
47
|
+
/**
|
|
48
|
+
* Assign a skill to an agent
|
|
49
|
+
*/
|
|
50
|
+
assignSkillToAgentRaw(requestParameters: AssignSkillToAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
51
|
+
/**
|
|
52
|
+
* Assign a skill to an agent
|
|
53
|
+
*/
|
|
54
|
+
assignSkillToAgent(agentId: string, skillAssignRequestUio: SkillAssignRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new skill in an organization
|
|
57
|
+
* Create a skill
|
|
58
|
+
*/
|
|
59
|
+
createSkillRaw(requestParameters: CreateSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
60
|
+
/**
|
|
61
|
+
* Creates a new skill in an organization
|
|
62
|
+
* Create a skill
|
|
63
|
+
*/
|
|
64
|
+
createSkill(skillCreateRequestUio: SkillCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
65
|
+
/**
|
|
66
|
+
* Delete a skill
|
|
67
|
+
*/
|
|
68
|
+
deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
|
+
/**
|
|
70
|
+
* Delete a skill
|
|
71
|
+
*/
|
|
72
|
+
deleteSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Get skills assigned to an agent
|
|
75
|
+
*/
|
|
76
|
+
getAgentSkillsRaw(requestParameters: GetAgentSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillUio>>>;
|
|
77
|
+
/**
|
|
78
|
+
* Get skills assigned to an agent
|
|
79
|
+
*/
|
|
80
|
+
getAgentSkills(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
|
|
81
|
+
/**
|
|
82
|
+
* Get a skill by ID
|
|
83
|
+
*/
|
|
84
|
+
getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
85
|
+
/**
|
|
86
|
+
* Get a skill by ID
|
|
87
|
+
*/
|
|
88
|
+
getSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns a paginated list of skills scoped to an organization
|
|
91
|
+
* List skills in an organization
|
|
92
|
+
*/
|
|
93
|
+
listSkillsRaw(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillUio>>>;
|
|
94
|
+
/**
|
|
95
|
+
* Returns a paginated list of skills scoped to an organization
|
|
96
|
+
* List skills in an organization
|
|
97
|
+
*/
|
|
98
|
+
listSkills(organizationId: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
|
|
99
|
+
/**
|
|
100
|
+
* Unassign a skill from an agent
|
|
101
|
+
*/
|
|
102
|
+
unassignSkillFromAgentRaw(requestParameters: UnassignSkillFromAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
103
|
+
/**
|
|
104
|
+
* Unassign a skill from an agent
|
|
105
|
+
*/
|
|
106
|
+
unassignSkillFromAgent(agentId: string, skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Update a skill
|
|
109
|
+
*/
|
|
110
|
+
updateSkillRaw(requestParameters: UpdateSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
111
|
+
/**
|
|
112
|
+
* Update a skill
|
|
113
|
+
*/
|
|
114
|
+
updateSkill(skillId: string, skillUpdateRequestUio: SkillUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
115
|
+
}
|