@breign/client 1.0.110 → 1.0.111
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 +46 -1
- package/dist/apis/SkillsApi.js +109 -0
- package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
- package/dist/models/LibrarySkillEntryUio.js +83 -0
- package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
- package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
- package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
- package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
- package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
- package/dist/models/LibrarySkillVersionUio.js +89 -0
- package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
- package/dist/models/LibrarySkillsPageUio.js +71 -0
- package/dist/models/SkillAssignRequestUio.js +2 -2
- package/dist/models/SkillUio.d.ts +12 -0
- package/dist/models/SkillUio.js +4 -0
- package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
- package/dist/models/SkillUpdateRequestUio.js +4 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +365 -4
- 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 { AvailableCommandUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AvailableCommandUio, LibrarySkillInstallRequestUio, LibrarySkillSyncRequestUio, LibrarySkillsPageUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface AssignSkillToAgentRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
skillAssignRequestUio: SkillAssignRequestUio;
|
|
@@ -42,6 +42,17 @@ export interface GetSkillFileRequest {
|
|
|
42
42
|
skillId: string;
|
|
43
43
|
fileId: string;
|
|
44
44
|
}
|
|
45
|
+
export interface InstallLibrarySkillRequest {
|
|
46
|
+
slug: string;
|
|
47
|
+
librarySkillInstallRequestUio: LibrarySkillInstallRequestUio;
|
|
48
|
+
}
|
|
49
|
+
export interface ListLibrarySkillsRequest {
|
|
50
|
+
organizationId: string;
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
search?: string;
|
|
54
|
+
category?: string;
|
|
55
|
+
}
|
|
45
56
|
export interface ListSkillFilesRequest {
|
|
46
57
|
skillId: string;
|
|
47
58
|
}
|
|
@@ -50,6 +61,10 @@ export interface ListSkillsRequest {
|
|
|
50
61
|
page?: number;
|
|
51
62
|
limit?: number;
|
|
52
63
|
}
|
|
64
|
+
export interface SyncSkillToLibraryRequest {
|
|
65
|
+
skillId: string;
|
|
66
|
+
librarySkillSyncRequestUio?: LibrarySkillSyncRequestUio;
|
|
67
|
+
}
|
|
53
68
|
export interface UnassignSkillFromAgentRequest {
|
|
54
69
|
agentId: string;
|
|
55
70
|
skillId: string;
|
|
@@ -141,6 +156,26 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
141
156
|
* Get a skill file with content
|
|
142
157
|
*/
|
|
143
158
|
getSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillFileUio>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
161
|
+
* Install a library skill into an organization
|
|
162
|
+
*/
|
|
163
|
+
installLibrarySkillRaw(requestParameters: InstallLibrarySkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
166
|
+
* Install a library skill into an organization
|
|
167
|
+
*/
|
|
168
|
+
installLibrarySkill(slug: string, librarySkillInstallRequestUio: LibrarySkillInstallRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
171
|
+
* List all library skills
|
|
172
|
+
*/
|
|
173
|
+
listLibrarySkillsRaw(requestParameters: ListLibrarySkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibrarySkillsPageUio>>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
176
|
+
* List all library skills
|
|
177
|
+
*/
|
|
178
|
+
listLibrarySkills(organizationId: string, page?: number, limit?: number, search?: string, category?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibrarySkillsPageUio>;
|
|
144
179
|
/**
|
|
145
180
|
* Returns all files attached to the skill — all metadata fields, no content
|
|
146
181
|
* List skill files
|
|
@@ -161,6 +196,16 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
161
196
|
* List skills in an organization
|
|
162
197
|
*/
|
|
163
198
|
listSkills(organizationId: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
|
|
199
|
+
/**
|
|
200
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
201
|
+
* Sync an installed skill to a library version
|
|
202
|
+
*/
|
|
203
|
+
syncSkillToLibraryRaw(requestParameters: SyncSkillToLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
204
|
+
/**
|
|
205
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
206
|
+
* Sync an installed skill to a library version
|
|
207
|
+
*/
|
|
208
|
+
syncSkillToLibrary(skillId: string, librarySkillSyncRequestUio?: LibrarySkillSyncRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
164
209
|
/**
|
|
165
210
|
* Unassign a skill from an agent
|
|
166
211
|
*/
|
package/dist/apis/SkillsApi.js
CHANGED
|
@@ -313,6 +313,84 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
313
313
|
const response = await this.getSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
|
|
314
314
|
return await response.value();
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
318
|
+
* Install a library skill into an organization
|
|
319
|
+
*/
|
|
320
|
+
async installLibrarySkillRaw(requestParameters, initOverrides) {
|
|
321
|
+
if (requestParameters['slug'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling installLibrarySkill().');
|
|
323
|
+
}
|
|
324
|
+
if (requestParameters['librarySkillInstallRequestUio'] == null) {
|
|
325
|
+
throw new runtime.RequiredError('librarySkillInstallRequestUio', 'Required parameter "librarySkillInstallRequestUio" was null or undefined when calling installLibrarySkill().');
|
|
326
|
+
}
|
|
327
|
+
const queryParameters = {};
|
|
328
|
+
const headerParameters = {};
|
|
329
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
330
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
332
|
+
}
|
|
333
|
+
const response = await this.request({
|
|
334
|
+
path: `/library-skills/{slug}/install`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
335
|
+
method: 'POST',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
body: (0, index_1.LibrarySkillInstallRequestUioToJSON)(requestParameters['librarySkillInstallRequestUio']),
|
|
339
|
+
}, initOverrides);
|
|
340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
344
|
+
* Install a library skill into an organization
|
|
345
|
+
*/
|
|
346
|
+
async installLibrarySkill(slug, librarySkillInstallRequestUio, initOverrides) {
|
|
347
|
+
const response = await this.installLibrarySkillRaw({ slug: slug, librarySkillInstallRequestUio: librarySkillInstallRequestUio }, initOverrides);
|
|
348
|
+
return await response.value();
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
352
|
+
* List all library skills
|
|
353
|
+
*/
|
|
354
|
+
async listLibrarySkillsRaw(requestParameters, initOverrides) {
|
|
355
|
+
if (requestParameters['organizationId'] == null) {
|
|
356
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listLibrarySkills().');
|
|
357
|
+
}
|
|
358
|
+
const queryParameters = {};
|
|
359
|
+
if (requestParameters['organizationId'] != null) {
|
|
360
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['page'] != null) {
|
|
363
|
+
queryParameters['page'] = requestParameters['page'];
|
|
364
|
+
}
|
|
365
|
+
if (requestParameters['limit'] != null) {
|
|
366
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters['search'] != null) {
|
|
369
|
+
queryParameters['search'] = requestParameters['search'];
|
|
370
|
+
}
|
|
371
|
+
if (requestParameters['category'] != null) {
|
|
372
|
+
queryParameters['category'] = requestParameters['category'];
|
|
373
|
+
}
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
376
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
377
|
+
}
|
|
378
|
+
const response = await this.request({
|
|
379
|
+
path: `/library-skills`,
|
|
380
|
+
method: 'GET',
|
|
381
|
+
headers: headerParameters,
|
|
382
|
+
query: queryParameters,
|
|
383
|
+
}, initOverrides);
|
|
384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LibrarySkillsPageUioFromJSON)(jsonValue));
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
388
|
+
* List all library skills
|
|
389
|
+
*/
|
|
390
|
+
async listLibrarySkills(organizationId, page, limit, search, category, initOverrides) {
|
|
391
|
+
const response = await this.listLibrarySkillsRaw({ organizationId: organizationId, page: page, limit: limit, search: search, category: category }, initOverrides);
|
|
392
|
+
return await response.value();
|
|
393
|
+
}
|
|
316
394
|
/**
|
|
317
395
|
* Returns all files attached to the skill — all metadata fields, no content
|
|
318
396
|
* List skill files
|
|
@@ -380,6 +458,37 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
380
458
|
const response = await this.listSkillsRaw({ organizationId: organizationId, page: page, limit: limit }, initOverrides);
|
|
381
459
|
return await response.value();
|
|
382
460
|
}
|
|
461
|
+
/**
|
|
462
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
463
|
+
* Sync an installed skill to a library version
|
|
464
|
+
*/
|
|
465
|
+
async syncSkillToLibraryRaw(requestParameters, initOverrides) {
|
|
466
|
+
if (requestParameters['skillId'] == null) {
|
|
467
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling syncSkillToLibrary().');
|
|
468
|
+
}
|
|
469
|
+
const queryParameters = {};
|
|
470
|
+
const headerParameters = {};
|
|
471
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
473
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
474
|
+
}
|
|
475
|
+
const response = await this.request({
|
|
476
|
+
path: `/skills/{skillId}/sync-library`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
477
|
+
method: 'POST',
|
|
478
|
+
headers: headerParameters,
|
|
479
|
+
query: queryParameters,
|
|
480
|
+
body: (0, index_1.LibrarySkillSyncRequestUioToJSON)(requestParameters['librarySkillSyncRequestUio']),
|
|
481
|
+
}, initOverrides);
|
|
482
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
486
|
+
* Sync an installed skill to a library version
|
|
487
|
+
*/
|
|
488
|
+
async syncSkillToLibrary(skillId, librarySkillSyncRequestUio, initOverrides) {
|
|
489
|
+
const response = await this.syncSkillToLibraryRaw({ skillId: skillId, librarySkillSyncRequestUio: librarySkillSyncRequestUio }, initOverrides);
|
|
490
|
+
return await response.value();
|
|
491
|
+
}
|
|
383
492
|
/**
|
|
384
493
|
* Unassign a skill from an agent
|
|
385
494
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { LibrarySkillVersionUio } from './LibrarySkillVersionUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LibrarySkillEntryUio
|
|
17
|
+
*/
|
|
18
|
+
export interface LibrarySkillEntryUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LibrarySkillEntryUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LibrarySkillEntryUio
|
|
29
|
+
*/
|
|
30
|
+
slug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LibrarySkillEntryUio
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LibrarySkillEntryUio
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LibrarySkillEntryUio
|
|
47
|
+
*/
|
|
48
|
+
sourceSkillId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LibrarySkillEntryUio
|
|
53
|
+
*/
|
|
54
|
+
latestVersionId: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof LibrarySkillEntryUio
|
|
59
|
+
*/
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof LibrarySkillEntryUio
|
|
65
|
+
*/
|
|
66
|
+
updatedAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<LibrarySkillVersionUio>}
|
|
70
|
+
* @memberof LibrarySkillEntryUio
|
|
71
|
+
*/
|
|
72
|
+
versions: Array<LibrarySkillVersionUio>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {LibrarySkillVersionUio}
|
|
76
|
+
* @memberof LibrarySkillEntryUio
|
|
77
|
+
*/
|
|
78
|
+
latestVersion?: LibrarySkillVersionUio;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the LibrarySkillEntryUio interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfLibrarySkillEntryUio(value: object): value is LibrarySkillEntryUio;
|
|
84
|
+
export declare function LibrarySkillEntryUioFromJSON(json: any): LibrarySkillEntryUio;
|
|
85
|
+
export declare function LibrarySkillEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibrarySkillEntryUio;
|
|
86
|
+
export declare function LibrarySkillEntryUioToJSON(json: any): LibrarySkillEntryUio;
|
|
87
|
+
export declare function LibrarySkillEntryUioToJSONTyped(value?: LibrarySkillEntryUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.instanceOfLibrarySkillEntryUio = instanceOfLibrarySkillEntryUio;
|
|
17
|
+
exports.LibrarySkillEntryUioFromJSON = LibrarySkillEntryUioFromJSON;
|
|
18
|
+
exports.LibrarySkillEntryUioFromJSONTyped = LibrarySkillEntryUioFromJSONTyped;
|
|
19
|
+
exports.LibrarySkillEntryUioToJSON = LibrarySkillEntryUioToJSON;
|
|
20
|
+
exports.LibrarySkillEntryUioToJSONTyped = LibrarySkillEntryUioToJSONTyped;
|
|
21
|
+
const LibrarySkillVersionUio_1 = require("./LibrarySkillVersionUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LibrarySkillEntryUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLibrarySkillEntryUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('latestVersionId' in value) || value['latestVersionId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('versions' in value) || value['versions'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function LibrarySkillEntryUioFromJSON(json) {
|
|
45
|
+
return LibrarySkillEntryUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function LibrarySkillEntryUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'slug': json['slug'],
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'description': json['description'],
|
|
56
|
+
'sourceSkillId': json['sourceSkillId'] == null ? undefined : json['sourceSkillId'],
|
|
57
|
+
'latestVersionId': json['latestVersionId'],
|
|
58
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
59
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
60
|
+
'versions': (json['versions'].map(LibrarySkillVersionUio_1.LibrarySkillVersionUioFromJSON)),
|
|
61
|
+
'latestVersion': json['latestVersion'] == null ? undefined : (0, LibrarySkillVersionUio_1.LibrarySkillVersionUioFromJSON)(json['latestVersion']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function LibrarySkillEntryUioToJSON(json) {
|
|
65
|
+
return LibrarySkillEntryUioToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function LibrarySkillEntryUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'slug': value['slug'],
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'description': value['description'],
|
|
76
|
+
'sourceSkillId': value['sourceSkillId'],
|
|
77
|
+
'latestVersionId': value['latestVersionId'],
|
|
78
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
79
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
80
|
+
'versions': (value['versions'].map(LibrarySkillVersionUio_1.LibrarySkillVersionUioToJSON)),
|
|
81
|
+
'latestVersion': (0, LibrarySkillVersionUio_1.LibrarySkillVersionUioToJSON)(value['latestVersion']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 LibrarySkillInstallRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface LibrarySkillInstallRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LibrarySkillInstallRequestUio
|
|
22
|
+
*/
|
|
23
|
+
organizationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LibrarySkillInstallRequestUio
|
|
28
|
+
*/
|
|
29
|
+
versionId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LibrarySkillInstallRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLibrarySkillInstallRequestUio(value: object): value is LibrarySkillInstallRequestUio;
|
|
35
|
+
export declare function LibrarySkillInstallRequestUioFromJSON(json: any): LibrarySkillInstallRequestUio;
|
|
36
|
+
export declare function LibrarySkillInstallRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibrarySkillInstallRequestUio;
|
|
37
|
+
export declare function LibrarySkillInstallRequestUioToJSON(json: any): LibrarySkillInstallRequestUio;
|
|
38
|
+
export declare function LibrarySkillInstallRequestUioToJSONTyped(value?: LibrarySkillInstallRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfLibrarySkillInstallRequestUio = instanceOfLibrarySkillInstallRequestUio;
|
|
17
|
+
exports.LibrarySkillInstallRequestUioFromJSON = LibrarySkillInstallRequestUioFromJSON;
|
|
18
|
+
exports.LibrarySkillInstallRequestUioFromJSONTyped = LibrarySkillInstallRequestUioFromJSONTyped;
|
|
19
|
+
exports.LibrarySkillInstallRequestUioToJSON = LibrarySkillInstallRequestUioToJSON;
|
|
20
|
+
exports.LibrarySkillInstallRequestUioToJSONTyped = LibrarySkillInstallRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LibrarySkillInstallRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLibrarySkillInstallRequestUio(value) {
|
|
25
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LibrarySkillInstallRequestUioFromJSON(json) {
|
|
30
|
+
return LibrarySkillInstallRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LibrarySkillInstallRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'organizationId': json['organizationId'],
|
|
38
|
+
'versionId': json['versionId'] == null ? undefined : json['versionId'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function LibrarySkillInstallRequestUioToJSON(json) {
|
|
42
|
+
return LibrarySkillInstallRequestUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LibrarySkillInstallRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'organizationId': value['organizationId'],
|
|
50
|
+
'versionId': value['versionId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 LibrarySkillSyncRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface LibrarySkillSyncRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LibrarySkillSyncRequestUio
|
|
22
|
+
*/
|
|
23
|
+
versionId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LibrarySkillSyncRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLibrarySkillSyncRequestUio(value: object): value is LibrarySkillSyncRequestUio;
|
|
29
|
+
export declare function LibrarySkillSyncRequestUioFromJSON(json: any): LibrarySkillSyncRequestUio;
|
|
30
|
+
export declare function LibrarySkillSyncRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibrarySkillSyncRequestUio;
|
|
31
|
+
export declare function LibrarySkillSyncRequestUioToJSON(json: any): LibrarySkillSyncRequestUio;
|
|
32
|
+
export declare function LibrarySkillSyncRequestUioToJSONTyped(value?: LibrarySkillSyncRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfLibrarySkillSyncRequestUio = instanceOfLibrarySkillSyncRequestUio;
|
|
17
|
+
exports.LibrarySkillSyncRequestUioFromJSON = LibrarySkillSyncRequestUioFromJSON;
|
|
18
|
+
exports.LibrarySkillSyncRequestUioFromJSONTyped = LibrarySkillSyncRequestUioFromJSONTyped;
|
|
19
|
+
exports.LibrarySkillSyncRequestUioToJSON = LibrarySkillSyncRequestUioToJSON;
|
|
20
|
+
exports.LibrarySkillSyncRequestUioToJSONTyped = LibrarySkillSyncRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LibrarySkillSyncRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLibrarySkillSyncRequestUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LibrarySkillSyncRequestUioFromJSON(json) {
|
|
28
|
+
return LibrarySkillSyncRequestUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LibrarySkillSyncRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'versionId': json['versionId'] == null ? undefined : json['versionId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function LibrarySkillSyncRequestUioToJSON(json) {
|
|
39
|
+
return LibrarySkillSyncRequestUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function LibrarySkillSyncRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'versionId': value['versionId'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 LibrarySkillVersionFilesInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface LibrarySkillVersionFilesInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LibrarySkillVersionFilesInnerUio
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LibrarySkillVersionFilesInnerUio
|
|
28
|
+
*/
|
|
29
|
+
content: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LibrarySkillVersionFilesInnerUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLibrarySkillVersionFilesInnerUio(value: object): value is LibrarySkillVersionFilesInnerUio;
|
|
35
|
+
export declare function LibrarySkillVersionFilesInnerUioFromJSON(json: any): LibrarySkillVersionFilesInnerUio;
|
|
36
|
+
export declare function LibrarySkillVersionFilesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibrarySkillVersionFilesInnerUio;
|
|
37
|
+
export declare function LibrarySkillVersionFilesInnerUioToJSON(json: any): LibrarySkillVersionFilesInnerUio;
|
|
38
|
+
export declare function LibrarySkillVersionFilesInnerUioToJSONTyped(value?: LibrarySkillVersionFilesInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfLibrarySkillVersionFilesInnerUio = instanceOfLibrarySkillVersionFilesInnerUio;
|
|
17
|
+
exports.LibrarySkillVersionFilesInnerUioFromJSON = LibrarySkillVersionFilesInnerUioFromJSON;
|
|
18
|
+
exports.LibrarySkillVersionFilesInnerUioFromJSONTyped = LibrarySkillVersionFilesInnerUioFromJSONTyped;
|
|
19
|
+
exports.LibrarySkillVersionFilesInnerUioToJSON = LibrarySkillVersionFilesInnerUioToJSON;
|
|
20
|
+
exports.LibrarySkillVersionFilesInnerUioToJSONTyped = LibrarySkillVersionFilesInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LibrarySkillVersionFilesInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLibrarySkillVersionFilesInnerUio(value) {
|
|
25
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LibrarySkillVersionFilesInnerUioFromJSON(json) {
|
|
32
|
+
return LibrarySkillVersionFilesInnerUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LibrarySkillVersionFilesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'filename': json['filename'],
|
|
40
|
+
'content': json['content'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LibrarySkillVersionFilesInnerUioToJSON(json) {
|
|
44
|
+
return LibrarySkillVersionFilesInnerUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LibrarySkillVersionFilesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'filename': value['filename'],
|
|
52
|
+
'content': value['content'],
|
|
53
|
+
};
|
|
54
|
+
}
|