@breign/client 1.0.110 → 1.0.112
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/AppCreateRequestEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppCreateRequestEphemeralInstancesUio.js +50 -0
- package/dist/models/AppCreateRequestUio.d.ts +7 -0
- package/dist/models/AppCreateRequestUio.js +3 -0
- package/dist/models/AppUio.d.ts +3 -3
- package/dist/models/AppUio.js +3 -3
- package/dist/models/AppUpdateRequestUio.d.ts +7 -0
- package/dist/models/AppUpdateRequestUio.js +3 -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 +7 -1
- package/dist/models/index.js +7 -1
- package/dist/openapi.json +384 -17
- package/package.json +1 -1
- package/dist/models/AppEphemeralInstancesUio.d.ts +0 -38
- package/dist/models/AppEphemeralInstancesUio.js +0 -50
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,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 AppCreateRequestEphemeralInstancesUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppCreateRequestEphemeralInstancesUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AppCreateRequestEphemeralInstancesUio
|
|
22
|
+
*/
|
|
23
|
+
allowed?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AppCreateRequestEphemeralInstancesUio
|
|
28
|
+
*/
|
|
29
|
+
maxInstances?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AppCreateRequestEphemeralInstancesUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAppCreateRequestEphemeralInstancesUio(value: object): value is AppCreateRequestEphemeralInstancesUio;
|
|
35
|
+
export declare function AppCreateRequestEphemeralInstancesUioFromJSON(json: any): AppCreateRequestEphemeralInstancesUio;
|
|
36
|
+
export declare function AppCreateRequestEphemeralInstancesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppCreateRequestEphemeralInstancesUio;
|
|
37
|
+
export declare function AppCreateRequestEphemeralInstancesUioToJSON(json: any): AppCreateRequestEphemeralInstancesUio;
|
|
38
|
+
export declare function AppCreateRequestEphemeralInstancesUioToJSONTyped(value?: AppCreateRequestEphemeralInstancesUio | 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.instanceOfAppCreateRequestEphemeralInstancesUio = instanceOfAppCreateRequestEphemeralInstancesUio;
|
|
17
|
+
exports.AppCreateRequestEphemeralInstancesUioFromJSON = AppCreateRequestEphemeralInstancesUioFromJSON;
|
|
18
|
+
exports.AppCreateRequestEphemeralInstancesUioFromJSONTyped = AppCreateRequestEphemeralInstancesUioFromJSONTyped;
|
|
19
|
+
exports.AppCreateRequestEphemeralInstancesUioToJSON = AppCreateRequestEphemeralInstancesUioToJSON;
|
|
20
|
+
exports.AppCreateRequestEphemeralInstancesUioToJSONTyped = AppCreateRequestEphemeralInstancesUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppCreateRequestEphemeralInstancesUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppCreateRequestEphemeralInstancesUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AppCreateRequestEphemeralInstancesUioFromJSON(json) {
|
|
28
|
+
return AppCreateRequestEphemeralInstancesUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AppCreateRequestEphemeralInstancesUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'allowed': json['allowed'] == null ? undefined : json['allowed'],
|
|
36
|
+
'maxInstances': json['maxInstances'] == null ? undefined : json['maxInstances'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AppCreateRequestEphemeralInstancesUioToJSON(json) {
|
|
40
|
+
return AppCreateRequestEphemeralInstancesUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AppCreateRequestEphemeralInstancesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'allowed': value['allowed'],
|
|
48
|
+
'maxInstances': value['maxInstances'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppCreateRequestEphemeralInstancesUio } from './AppCreateRequestEphemeralInstancesUio';
|
|
12
13
|
import type { LipsyncUio } from './LipsyncUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -94,6 +95,12 @@ export interface AppCreateRequestUio {
|
|
|
94
95
|
* @memberof AppCreateRequestUio
|
|
95
96
|
*/
|
|
96
97
|
fillers?: object;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {AppCreateRequestEphemeralInstancesUio}
|
|
101
|
+
* @memberof AppCreateRequestUio
|
|
102
|
+
*/
|
|
103
|
+
ephemeralInstances?: AppCreateRequestEphemeralInstancesUio;
|
|
97
104
|
}
|
|
98
105
|
/**
|
|
99
106
|
* Check if a given object implements the AppCreateRequestUio interface.
|
|
@@ -18,6 +18,7 @@ exports.AppCreateRequestUioFromJSON = AppCreateRequestUioFromJSON;
|
|
|
18
18
|
exports.AppCreateRequestUioFromJSONTyped = AppCreateRequestUioFromJSONTyped;
|
|
19
19
|
exports.AppCreateRequestUioToJSON = AppCreateRequestUioToJSON;
|
|
20
20
|
exports.AppCreateRequestUioToJSONTyped = AppCreateRequestUioToJSONTyped;
|
|
21
|
+
const AppCreateRequestEphemeralInstancesUio_1 = require("./AppCreateRequestEphemeralInstancesUio");
|
|
21
22
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AppCreateRequestUio interface.
|
|
@@ -52,6 +53,7 @@ function AppCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'connected': json['connected'] == null ? undefined : json['connected'],
|
|
53
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
54
55
|
'fillers': json['fillers'] == null ? undefined : json['fillers'],
|
|
56
|
+
'ephemeralInstances': json['ephemeralInstances'] == null ? undefined : (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioFromJSON)(json['ephemeralInstances']),
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
function AppCreateRequestUioToJSON(json) {
|
|
@@ -75,5 +77,6 @@ function AppCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
77
|
'connected': value['connected'],
|
|
76
78
|
'type': value['type'],
|
|
77
79
|
'fillers': value['fillers'],
|
|
80
|
+
'ephemeralInstances': (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioToJSON)(value['ephemeralInstances']),
|
|
78
81
|
};
|
|
79
82
|
}
|
package/dist/models/AppUio.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ import type { SequenceUio } from './SequenceUio';
|
|
|
15
15
|
import type { AppConfigurationUio } from './AppConfigurationUio';
|
|
16
16
|
import type { AnimationUio } from './AnimationUio';
|
|
17
17
|
import type { PersonaUio } from './PersonaUio';
|
|
18
|
+
import type { AppCreateRequestEphemeralInstancesUio } from './AppCreateRequestEphemeralInstancesUio';
|
|
18
19
|
import type { SimpleAgentUio } from './SimpleAgentUio';
|
|
19
|
-
import type { AppEphemeralInstancesUio } from './AppEphemeralInstancesUio';
|
|
20
20
|
import type { LipsyncUio } from './LipsyncUio';
|
|
21
21
|
import type { AppStatusUio } from './AppStatusUio';
|
|
22
22
|
/**
|
|
@@ -195,10 +195,10 @@ export interface AppUio {
|
|
|
195
195
|
};
|
|
196
196
|
/**
|
|
197
197
|
*
|
|
198
|
-
* @type {
|
|
198
|
+
* @type {AppCreateRequestEphemeralInstancesUio}
|
|
199
199
|
* @memberof AppUio
|
|
200
200
|
*/
|
|
201
|
-
ephemeralInstances?:
|
|
201
|
+
ephemeralInstances?: AppCreateRequestEphemeralInstancesUio;
|
|
202
202
|
/**
|
|
203
203
|
*
|
|
204
204
|
* @type {object}
|
package/dist/models/AppUio.js
CHANGED
|
@@ -24,8 +24,8 @@ const SequenceUio_1 = require("./SequenceUio");
|
|
|
24
24
|
const AppConfigurationUio_1 = require("./AppConfigurationUio");
|
|
25
25
|
const AnimationUio_1 = require("./AnimationUio");
|
|
26
26
|
const PersonaUio_1 = require("./PersonaUio");
|
|
27
|
+
const AppCreateRequestEphemeralInstancesUio_1 = require("./AppCreateRequestEphemeralInstancesUio");
|
|
27
28
|
const SimpleAgentUio_1 = require("./SimpleAgentUio");
|
|
28
|
-
const AppEphemeralInstancesUio_1 = require("./AppEphemeralInstancesUio");
|
|
29
29
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
30
30
|
const AppStatusUio_1 = require("./AppStatusUio");
|
|
31
31
|
/**
|
|
@@ -85,7 +85,7 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
85
|
'promptInit': json['promptInit'] == null ? undefined : json['promptInit'],
|
|
86
86
|
'persona': json['persona'] == null ? undefined : (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
87
87
|
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
88
|
-
'ephemeralInstances': json['ephemeralInstances'] == null ? undefined : (0,
|
|
88
|
+
'ephemeralInstances': json['ephemeralInstances'] == null ? undefined : (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioFromJSON)(json['ephemeralInstances']),
|
|
89
89
|
'fillers': json['fillers'] == null ? undefined : json['fillers'],
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -124,7 +124,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
124
124
|
'promptInit': value['promptInit'],
|
|
125
125
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
126
126
|
'favoriteOutfit': value['favoriteOutfit'],
|
|
127
|
-
'ephemeralInstances': (0,
|
|
127
|
+
'ephemeralInstances': (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioToJSON)(value['ephemeralInstances']),
|
|
128
128
|
'fillers': value['fillers'],
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppCreateRequestEphemeralInstancesUio } from './AppCreateRequestEphemeralInstancesUio';
|
|
12
13
|
import type { LipsyncUio } from './LipsyncUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -84,6 +85,12 @@ export interface AppUpdateRequestUio {
|
|
|
84
85
|
favoriteOutfit?: {
|
|
85
86
|
[key: string]: any;
|
|
86
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {AppCreateRequestEphemeralInstancesUio}
|
|
91
|
+
* @memberof AppUpdateRequestUio
|
|
92
|
+
*/
|
|
93
|
+
ephemeralInstances?: AppCreateRequestEphemeralInstancesUio;
|
|
87
94
|
}
|
|
88
95
|
/**
|
|
89
96
|
* Check if a given object implements the AppUpdateRequestUio interface.
|
|
@@ -18,6 +18,7 @@ exports.AppUpdateRequestUioFromJSON = AppUpdateRequestUioFromJSON;
|
|
|
18
18
|
exports.AppUpdateRequestUioFromJSONTyped = AppUpdateRequestUioFromJSONTyped;
|
|
19
19
|
exports.AppUpdateRequestUioToJSON = AppUpdateRequestUioToJSON;
|
|
20
20
|
exports.AppUpdateRequestUioToJSONTyped = AppUpdateRequestUioToJSONTyped;
|
|
21
|
+
const AppCreateRequestEphemeralInstancesUio_1 = require("./AppCreateRequestEphemeralInstancesUio");
|
|
21
22
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AppUpdateRequestUio interface.
|
|
@@ -44,6 +45,7 @@ function AppUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'disableFillers': json['disableFillers'] == null ? undefined : json['disableFillers'],
|
|
45
46
|
'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
|
|
46
47
|
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
48
|
+
'ephemeralInstances': json['ephemeralInstances'] == null ? undefined : (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioFromJSON)(json['ephemeralInstances']),
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
function AppUpdateRequestUioToJSON(json) {
|
|
@@ -65,5 +67,6 @@ function AppUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
67
|
'disableFillers': value['disableFillers'],
|
|
66
68
|
'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
|
|
67
69
|
'favoriteOutfit': value['favoriteOutfit'],
|
|
70
|
+
'ephemeralInstances': (0, AppCreateRequestEphemeralInstancesUio_1.AppCreateRequestEphemeralInstancesUioToJSON)(value['ephemeralInstances']),
|
|
68
71
|
};
|
|
69
72
|
}
|
|
@@ -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;
|