@breign/client 1.0.46 → 1.0.48
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/OrganizationsApi.d.ts +14 -1
- package/dist/apis/OrganizationsApi.js +29 -0
- package/dist/models/AppEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppEphemeralInstancesUio.js +50 -0
- package/dist/models/AppInstanceCreateRequestOneOfUio.d.ts +32 -0
- package/dist/models/AppInstanceCreateRequestOneOfUio.js +50 -0
- package/dist/models/AppInstanceCreateRequestUio.d.ts +5 -14
- package/dist/models/AppInstanceCreateRequestUio.js +22 -15
- package/dist/models/AppInstanceEphemeralCreateRequestUio.d.ts +44 -0
- package/dist/models/AppInstanceEphemeralCreateRequestUio.js +56 -0
- package/dist/models/AppInstancesInnerUio.d.ts +23 -0
- package/dist/models/AppInstancesInnerUio.js +57 -0
- package/dist/models/AppUio.d.ts +10 -3
- package/dist/models/AppUio.js +6 -3
- package/dist/models/EphemeralInstanceUio.d.ts +74 -0
- package/dist/models/EphemeralInstanceUio.js +78 -0
- package/dist/models/OrganizationEngineUio.d.ts +45 -0
- package/dist/models/OrganizationEngineUio.js +53 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +162 -2
- package/package.json +1 -1
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OrganizationUio, RoleUio } from '../models/index';
|
|
13
|
+
import type { OrganizationEngineUio, OrganizationUio, RoleUio } from '../models/index';
|
|
14
14
|
export interface GetOrganizationByIdRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface GetOrganizationEngineRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
17
20
|
export interface ListOrganizationRolesRequest {
|
|
18
21
|
organizationId: string;
|
|
19
22
|
}
|
|
@@ -31,6 +34,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
31
34
|
* Get an organization by ID
|
|
32
35
|
*/
|
|
33
36
|
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
39
|
+
* Get an organization engine configuration
|
|
40
|
+
*/
|
|
41
|
+
getOrganizationEngineRaw(requestParameters: GetOrganizationEngineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationEngineUio>>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
44
|
+
* Get an organization engine configuration
|
|
45
|
+
*/
|
|
46
|
+
getOrganizationEngine(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationEngineUio>;
|
|
34
47
|
/**
|
|
35
48
|
* Retrieves all roles configured for the given organization
|
|
36
49
|
* List roles of an organization
|
|
@@ -82,6 +82,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
82
82
|
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
87
|
+
* Get an organization engine configuration
|
|
88
|
+
*/
|
|
89
|
+
async getOrganizationEngineRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['organizationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationEngine().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
97
|
+
}
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: `/organizations/{organizationId}/engine`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationEngineUioFromJSON)(jsonValue));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves only the engine configuration (providerId, model, options) for a given organization.
|
|
108
|
+
* Get an organization engine configuration
|
|
109
|
+
*/
|
|
110
|
+
async getOrganizationEngine(organizationId, initOverrides) {
|
|
111
|
+
const response = await this.getOrganizationEngineRaw({ organizationId: organizationId }, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
85
114
|
/**
|
|
86
115
|
* Retrieves all roles configured for the given organization
|
|
87
116
|
* List roles of an organization
|
|
@@ -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 AppEphemeralInstancesUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppEphemeralInstancesUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AppEphemeralInstancesUio
|
|
22
|
+
*/
|
|
23
|
+
allowed?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AppEphemeralInstancesUio
|
|
28
|
+
*/
|
|
29
|
+
maxInstances?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AppEphemeralInstancesUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAppEphemeralInstancesUio(value: object): value is AppEphemeralInstancesUio;
|
|
35
|
+
export declare function AppEphemeralInstancesUioFromJSON(json: any): AppEphemeralInstancesUio;
|
|
36
|
+
export declare function AppEphemeralInstancesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppEphemeralInstancesUio;
|
|
37
|
+
export declare function AppEphemeralInstancesUioToJSON(json: any): AppEphemeralInstancesUio;
|
|
38
|
+
export declare function AppEphemeralInstancesUioToJSONTyped(value?: AppEphemeralInstancesUio | 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.instanceOfAppEphemeralInstancesUio = instanceOfAppEphemeralInstancesUio;
|
|
17
|
+
exports.AppEphemeralInstancesUioFromJSON = AppEphemeralInstancesUioFromJSON;
|
|
18
|
+
exports.AppEphemeralInstancesUioFromJSONTyped = AppEphemeralInstancesUioFromJSONTyped;
|
|
19
|
+
exports.AppEphemeralInstancesUioToJSON = AppEphemeralInstancesUioToJSON;
|
|
20
|
+
exports.AppEphemeralInstancesUioToJSONTyped = AppEphemeralInstancesUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppEphemeralInstancesUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppEphemeralInstancesUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AppEphemeralInstancesUioFromJSON(json) {
|
|
28
|
+
return AppEphemeralInstancesUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AppEphemeralInstancesUioFromJSONTyped(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 AppEphemeralInstancesUioToJSON(json) {
|
|
40
|
+
return AppEphemeralInstancesUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AppEphemeralInstancesUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'allowed': value['allowed'],
|
|
48
|
+
'maxInstances': value['maxInstances'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 AppInstanceCreateRequestOneOfUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppInstanceCreateRequestOneOfUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppInstanceCreateRequestOneOfUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AppInstanceCreateRequestOneOfUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAppInstanceCreateRequestOneOfUio(value: object): value is AppInstanceCreateRequestOneOfUio;
|
|
29
|
+
export declare function AppInstanceCreateRequestOneOfUioFromJSON(json: any): AppInstanceCreateRequestOneOfUio;
|
|
30
|
+
export declare function AppInstanceCreateRequestOneOfUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInstanceCreateRequestOneOfUio;
|
|
31
|
+
export declare function AppInstanceCreateRequestOneOfUioToJSON(json: any): AppInstanceCreateRequestOneOfUio;
|
|
32
|
+
export declare function AppInstanceCreateRequestOneOfUioToJSONTyped(value?: AppInstanceCreateRequestOneOfUio | 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.instanceOfAppInstanceCreateRequestOneOfUio = instanceOfAppInstanceCreateRequestOneOfUio;
|
|
17
|
+
exports.AppInstanceCreateRequestOneOfUioFromJSON = AppInstanceCreateRequestOneOfUioFromJSON;
|
|
18
|
+
exports.AppInstanceCreateRequestOneOfUioFromJSONTyped = AppInstanceCreateRequestOneOfUioFromJSONTyped;
|
|
19
|
+
exports.AppInstanceCreateRequestOneOfUioToJSON = AppInstanceCreateRequestOneOfUioToJSON;
|
|
20
|
+
exports.AppInstanceCreateRequestOneOfUioToJSONTyped = AppInstanceCreateRequestOneOfUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppInstanceCreateRequestOneOfUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppInstanceCreateRequestOneOfUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AppInstanceCreateRequestOneOfUioFromJSON(json) {
|
|
30
|
+
return AppInstanceCreateRequestOneOfUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AppInstanceCreateRequestOneOfUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AppInstanceCreateRequestOneOfUioToJSON(json) {
|
|
41
|
+
return AppInstanceCreateRequestOneOfUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AppInstanceCreateRequestOneOfUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,24 +9,15 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppInstanceCreateRequestOneOfUio } from './AppInstanceCreateRequestOneOfUio';
|
|
13
|
+
import type { AppInstanceEphemeralCreateRequestUio } from './AppInstanceEphemeralCreateRequestUio';
|
|
12
14
|
/**
|
|
15
|
+
* @type AppInstanceCreateRequestUio
|
|
13
16
|
*
|
|
14
17
|
* @export
|
|
15
|
-
* @interface AppInstanceCreateRequestUio
|
|
16
18
|
*/
|
|
17
|
-
export
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AppInstanceCreateRequestUio
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AppInstanceCreateRequestUio interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfAppInstanceCreateRequestUio(value: object): value is AppInstanceCreateRequestUio;
|
|
19
|
+
export type AppInstanceCreateRequestUio = AppInstanceCreateRequestOneOfUio | AppInstanceEphemeralCreateRequestUio;
|
|
29
20
|
export declare function AppInstanceCreateRequestUioFromJSON(json: any): AppInstanceCreateRequestUio;
|
|
30
21
|
export declare function AppInstanceCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInstanceCreateRequestUio;
|
|
31
|
-
export declare function AppInstanceCreateRequestUioToJSON(json: any):
|
|
22
|
+
export declare function AppInstanceCreateRequestUioToJSON(json: any): any;
|
|
32
23
|
export declare function AppInstanceCreateRequestUioToJSONTyped(value?: AppInstanceCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,19 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfAppInstanceCreateRequestUio = instanceOfAppInstanceCreateRequestUio;
|
|
17
16
|
exports.AppInstanceCreateRequestUioFromJSON = AppInstanceCreateRequestUioFromJSON;
|
|
18
17
|
exports.AppInstanceCreateRequestUioFromJSONTyped = AppInstanceCreateRequestUioFromJSONTyped;
|
|
19
18
|
exports.AppInstanceCreateRequestUioToJSON = AppInstanceCreateRequestUioToJSON;
|
|
20
19
|
exports.AppInstanceCreateRequestUioToJSONTyped = AppInstanceCreateRequestUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAppInstanceCreateRequestUio(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
20
|
+
const AppInstanceCreateRequestOneOfUio_1 = require("./AppInstanceCreateRequestOneOfUio");
|
|
21
|
+
const AppInstanceEphemeralCreateRequestUio_1 = require("./AppInstanceEphemeralCreateRequestUio");
|
|
29
22
|
function AppInstanceCreateRequestUioFromJSON(json) {
|
|
30
23
|
return AppInstanceCreateRequestUioFromJSONTyped(json, false);
|
|
31
24
|
}
|
|
@@ -33,9 +26,16 @@ function AppInstanceCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
26
|
if (json == null) {
|
|
34
27
|
return json;
|
|
35
28
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
29
|
+
if (typeof json !== 'object') {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
if ((0, AppInstanceCreateRequestOneOfUio_1.instanceOfAppInstanceCreateRequestOneOfUio)(json)) {
|
|
33
|
+
return (0, AppInstanceCreateRequestOneOfUio_1.AppInstanceCreateRequestOneOfUioFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
if ((0, AppInstanceEphemeralCreateRequestUio_1.instanceOfAppInstanceEphemeralCreateRequestUio)(json)) {
|
|
36
|
+
return (0, AppInstanceEphemeralCreateRequestUio_1.AppInstanceEphemeralCreateRequestUioFromJSONTyped)(json, true);
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
39
|
}
|
|
40
40
|
function AppInstanceCreateRequestUioToJSON(json) {
|
|
41
41
|
return AppInstanceCreateRequestUioToJSONTyped(json, false);
|
|
@@ -44,7 +44,14 @@ function AppInstanceCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
47
|
+
if (typeof value !== 'object') {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
if ((0, AppInstanceCreateRequestOneOfUio_1.instanceOfAppInstanceCreateRequestOneOfUio)(value)) {
|
|
51
|
+
return (0, AppInstanceCreateRequestOneOfUio_1.AppInstanceCreateRequestOneOfUioToJSON)(value);
|
|
52
|
+
}
|
|
53
|
+
if ((0, AppInstanceEphemeralCreateRequestUio_1.instanceOfAppInstanceEphemeralCreateRequestUio)(value)) {
|
|
54
|
+
return (0, AppInstanceEphemeralCreateRequestUio_1.AppInstanceEphemeralCreateRequestUioToJSON)(value);
|
|
55
|
+
}
|
|
56
|
+
return {};
|
|
50
57
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 AppInstanceEphemeralCreateRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AppInstanceEphemeralCreateRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppInstanceEphemeralCreateRequestUio
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AppInstanceEphemeralCreateRequestUio
|
|
28
|
+
*/
|
|
29
|
+
ephemeral: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppInstanceEphemeralCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
urlWebsite?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AppInstanceEphemeralCreateRequestUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAppInstanceEphemeralCreateRequestUio(value: object): value is AppInstanceEphemeralCreateRequestUio;
|
|
41
|
+
export declare function AppInstanceEphemeralCreateRequestUioFromJSON(json: any): AppInstanceEphemeralCreateRequestUio;
|
|
42
|
+
export declare function AppInstanceEphemeralCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInstanceEphemeralCreateRequestUio;
|
|
43
|
+
export declare function AppInstanceEphemeralCreateRequestUioToJSON(json: any): AppInstanceEphemeralCreateRequestUio;
|
|
44
|
+
export declare function AppInstanceEphemeralCreateRequestUioToJSONTyped(value?: AppInstanceEphemeralCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfAppInstanceEphemeralCreateRequestUio = instanceOfAppInstanceEphemeralCreateRequestUio;
|
|
17
|
+
exports.AppInstanceEphemeralCreateRequestUioFromJSON = AppInstanceEphemeralCreateRequestUioFromJSON;
|
|
18
|
+
exports.AppInstanceEphemeralCreateRequestUioFromJSONTyped = AppInstanceEphemeralCreateRequestUioFromJSONTyped;
|
|
19
|
+
exports.AppInstanceEphemeralCreateRequestUioToJSON = AppInstanceEphemeralCreateRequestUioToJSON;
|
|
20
|
+
exports.AppInstanceEphemeralCreateRequestUioToJSONTyped = AppInstanceEphemeralCreateRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppInstanceEphemeralCreateRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppInstanceEphemeralCreateRequestUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('ephemeral' in value) || value['ephemeral'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AppInstanceEphemeralCreateRequestUioFromJSON(json) {
|
|
32
|
+
return AppInstanceEphemeralCreateRequestUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AppInstanceEphemeralCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'ephemeral': json['ephemeral'],
|
|
41
|
+
'urlWebsite': json['urlWebsite'] == null ? undefined : json['urlWebsite'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AppInstanceEphemeralCreateRequestUioToJSON(json) {
|
|
45
|
+
return AppInstanceEphemeralCreateRequestUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AppInstanceEphemeralCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'ephemeral': value['ephemeral'],
|
|
54
|
+
'urlWebsite': value['urlWebsite'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { EphemeralInstanceUio } from './EphemeralInstanceUio';
|
|
13
|
+
import type { InstanceUio } from './InstanceUio';
|
|
14
|
+
/**
|
|
15
|
+
* @type AppInstancesInnerUio
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type AppInstancesInnerUio = EphemeralInstanceUio | InstanceUio;
|
|
20
|
+
export declare function AppInstancesInnerUioFromJSON(json: any): AppInstancesInnerUio;
|
|
21
|
+
export declare function AppInstancesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppInstancesInnerUio;
|
|
22
|
+
export declare function AppInstancesInnerUioToJSON(json: any): any;
|
|
23
|
+
export declare function AppInstancesInnerUioToJSONTyped(value?: AppInstancesInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AppInstancesInnerUioFromJSON = AppInstancesInnerUioFromJSON;
|
|
17
|
+
exports.AppInstancesInnerUioFromJSONTyped = AppInstancesInnerUioFromJSONTyped;
|
|
18
|
+
exports.AppInstancesInnerUioToJSON = AppInstancesInnerUioToJSON;
|
|
19
|
+
exports.AppInstancesInnerUioToJSONTyped = AppInstancesInnerUioToJSONTyped;
|
|
20
|
+
const EphemeralInstanceUio_1 = require("./EphemeralInstanceUio");
|
|
21
|
+
const InstanceUio_1 = require("./InstanceUio");
|
|
22
|
+
function AppInstancesInnerUioFromJSON(json) {
|
|
23
|
+
return AppInstancesInnerUioFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function AppInstancesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
if (typeof json !== 'object') {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
if ((0, EphemeralInstanceUio_1.instanceOfEphemeralInstanceUio)(json)) {
|
|
33
|
+
return (0, EphemeralInstanceUio_1.EphemeralInstanceUioFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
if ((0, InstanceUio_1.instanceOfInstanceUio)(json)) {
|
|
36
|
+
return (0, InstanceUio_1.InstanceUioFromJSONTyped)(json, true);
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
function AppInstancesInnerUioToJSON(json) {
|
|
41
|
+
return AppInstancesInnerUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AppInstancesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
if (typeof value !== 'object') {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
if ((0, EphemeralInstanceUio_1.instanceOfEphemeralInstanceUio)(value)) {
|
|
51
|
+
return (0, EphemeralInstanceUio_1.EphemeralInstanceUioToJSON)(value);
|
|
52
|
+
}
|
|
53
|
+
if ((0, InstanceUio_1.instanceOfInstanceUio)(value)) {
|
|
54
|
+
return (0, InstanceUio_1.InstanceUioToJSON)(value);
|
|
55
|
+
}
|
|
56
|
+
return {};
|
|
57
|
+
}
|
package/dist/models/AppUio.d.ts
CHANGED
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppInstancesInnerUio } from './AppInstancesInnerUio';
|
|
12
13
|
import type { AppSequencesInnerUio } from './AppSequencesInnerUio';
|
|
13
14
|
import type { AppConfigurationUio } from './AppConfigurationUio';
|
|
14
15
|
import type { PersonaUio } from './PersonaUio';
|
|
15
16
|
import type { SimpleAgentUio } from './SimpleAgentUio';
|
|
16
|
-
import type {
|
|
17
|
+
import type { AppEphemeralInstancesUio } from './AppEphemeralInstancesUio';
|
|
17
18
|
import type { LipsyncUio } from './LipsyncUio';
|
|
18
19
|
import type { AppStatusUio } from './AppStatusUio';
|
|
19
20
|
/**
|
|
@@ -122,10 +123,10 @@ export interface AppUio {
|
|
|
122
123
|
connected?: boolean;
|
|
123
124
|
/**
|
|
124
125
|
*
|
|
125
|
-
* @type {Array<
|
|
126
|
+
* @type {Array<AppInstancesInnerUio>}
|
|
126
127
|
* @memberof AppUio
|
|
127
128
|
*/
|
|
128
|
-
instances?: Array<
|
|
129
|
+
instances?: Array<AppInstancesInnerUio>;
|
|
129
130
|
/**
|
|
130
131
|
*
|
|
131
132
|
* @type {string}
|
|
@@ -172,6 +173,12 @@ export interface AppUio {
|
|
|
172
173
|
favoriteOutfit?: {
|
|
173
174
|
[key: string]: string;
|
|
174
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {AppEphemeralInstancesUio}
|
|
179
|
+
* @memberof AppUio
|
|
180
|
+
*/
|
|
181
|
+
ephemeralInstances?: AppEphemeralInstancesUio;
|
|
175
182
|
/**
|
|
176
183
|
*
|
|
177
184
|
* @type {object}
|
package/dist/models/AppUio.js
CHANGED
|
@@ -18,11 +18,12 @@ exports.AppUioFromJSON = AppUioFromJSON;
|
|
|
18
18
|
exports.AppUioFromJSONTyped = AppUioFromJSONTyped;
|
|
19
19
|
exports.AppUioToJSON = AppUioToJSON;
|
|
20
20
|
exports.AppUioToJSONTyped = AppUioToJSONTyped;
|
|
21
|
+
const AppInstancesInnerUio_1 = require("./AppInstancesInnerUio");
|
|
21
22
|
const AppSequencesInnerUio_1 = require("./AppSequencesInnerUio");
|
|
22
23
|
const AppConfigurationUio_1 = require("./AppConfigurationUio");
|
|
23
24
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
25
|
const SimpleAgentUio_1 = require("./SimpleAgentUio");
|
|
25
|
-
const
|
|
26
|
+
const AppEphemeralInstancesUio_1 = require("./AppEphemeralInstancesUio");
|
|
26
27
|
const LipsyncUio_1 = require("./LipsyncUio");
|
|
27
28
|
const AppStatusUio_1 = require("./AppStatusUio");
|
|
28
29
|
/**
|
|
@@ -71,7 +72,7 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
72
|
'lipsync': json['lipsync'] == null ? undefined : (0, LipsyncUio_1.LipsyncUioFromJSON)(json['lipsync']),
|
|
72
73
|
'status': (0, AppStatusUio_1.AppStatusUioFromJSON)(json['status']),
|
|
73
74
|
'connected': json['connected'] == null ? undefined : json['connected'],
|
|
74
|
-
'instances': json['instances'] == null ? undefined : (json['instances'].map(
|
|
75
|
+
'instances': json['instances'] == null ? undefined : (json['instances'].map(AppInstancesInnerUio_1.AppInstancesInnerUioFromJSON)),
|
|
75
76
|
'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
|
|
76
77
|
'appConfiguration': json['appConfiguration'] == null ? undefined : (0, AppConfigurationUio_1.AppConfigurationUioFromJSON)(json['appConfiguration']),
|
|
77
78
|
'disableFillers': json['disableFillers'] == null ? undefined : json['disableFillers'],
|
|
@@ -79,6 +80,7 @@ function AppUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
80
|
'promptInit': json['promptInit'] == null ? undefined : json['promptInit'],
|
|
80
81
|
'persona': json['persona'] == null ? undefined : (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
81
82
|
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
83
|
+
'ephemeralInstances': json['ephemeralInstances'] == null ? undefined : (0, AppEphemeralInstancesUio_1.AppEphemeralInstancesUioFromJSON)(json['ephemeralInstances']),
|
|
82
84
|
'fillers': json['fillers'] == null ? undefined : json['fillers'],
|
|
83
85
|
};
|
|
84
86
|
}
|
|
@@ -106,7 +108,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
106
108
|
'lipsync': (0, LipsyncUio_1.LipsyncUioToJSON)(value['lipsync']),
|
|
107
109
|
'status': (0, AppStatusUio_1.AppStatusUioToJSON)(value['status']),
|
|
108
110
|
'connected': value['connected'],
|
|
109
|
-
'instances': value['instances'] == null ? undefined : (value['instances'].map(
|
|
111
|
+
'instances': value['instances'] == null ? undefined : (value['instances'].map(AppInstancesInnerUio_1.AppInstancesInnerUioToJSON)),
|
|
110
112
|
'profilePicture': value['profilePicture'],
|
|
111
113
|
'appConfiguration': (0, AppConfigurationUio_1.AppConfigurationUioToJSON)(value['appConfiguration']),
|
|
112
114
|
'disableFillers': value['disableFillers'],
|
|
@@ -114,6 +116,7 @@ function AppUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
114
116
|
'promptInit': value['promptInit'],
|
|
115
117
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
116
118
|
'favoriteOutfit': value['favoriteOutfit'],
|
|
119
|
+
'ephemeralInstances': (0, AppEphemeralInstancesUio_1.AppEphemeralInstancesUioToJSON)(value['ephemeralInstances']),
|
|
117
120
|
'fillers': value['fillers'],
|
|
118
121
|
};
|
|
119
122
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 EphemeralInstanceUio
|
|
16
|
+
*/
|
|
17
|
+
export interface EphemeralInstanceUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EphemeralInstanceUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EphemeralInstanceUio
|
|
28
|
+
*/
|
|
29
|
+
appId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EphemeralInstanceUio
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EphemeralInstanceUio
|
|
40
|
+
*/
|
|
41
|
+
urlWebsite: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EphemeralInstanceUio
|
|
46
|
+
*/
|
|
47
|
+
token: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof EphemeralInstanceUio
|
|
52
|
+
*/
|
|
53
|
+
active: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EphemeralInstanceUio
|
|
58
|
+
*/
|
|
59
|
+
createdAt: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EphemeralInstanceUio
|
|
64
|
+
*/
|
|
65
|
+
lastActivity: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the EphemeralInstanceUio interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfEphemeralInstanceUio(value: object): value is EphemeralInstanceUio;
|
|
71
|
+
export declare function EphemeralInstanceUioFromJSON(json: any): EphemeralInstanceUio;
|
|
72
|
+
export declare function EphemeralInstanceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EphemeralInstanceUio;
|
|
73
|
+
export declare function EphemeralInstanceUioToJSON(json: any): EphemeralInstanceUio;
|
|
74
|
+
export declare function EphemeralInstanceUioToJSONTyped(value?: EphemeralInstanceUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.instanceOfEphemeralInstanceUio = instanceOfEphemeralInstanceUio;
|
|
17
|
+
exports.EphemeralInstanceUioFromJSON = EphemeralInstanceUioFromJSON;
|
|
18
|
+
exports.EphemeralInstanceUioFromJSONTyped = EphemeralInstanceUioFromJSONTyped;
|
|
19
|
+
exports.EphemeralInstanceUioToJSON = EphemeralInstanceUioToJSON;
|
|
20
|
+
exports.EphemeralInstanceUioToJSONTyped = EphemeralInstanceUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EphemeralInstanceUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEphemeralInstanceUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('appId' in value) || value['appId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('urlWebsite' in value) || value['urlWebsite'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('lastActivity' in value) || value['lastActivity'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function EphemeralInstanceUioFromJSON(json) {
|
|
44
|
+
return EphemeralInstanceUioFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EphemeralInstanceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'appId': json['appId'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'urlWebsite': json['urlWebsite'],
|
|
55
|
+
'token': json['token'],
|
|
56
|
+
'active': json['active'],
|
|
57
|
+
'createdAt': json['createdAt'],
|
|
58
|
+
'lastActivity': json['lastActivity'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function EphemeralInstanceUioToJSON(json) {
|
|
62
|
+
return EphemeralInstanceUioToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function EphemeralInstanceUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'appId': value['appId'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'urlWebsite': value['urlWebsite'],
|
|
73
|
+
'token': value['token'],
|
|
74
|
+
'active': value['active'],
|
|
75
|
+
'createdAt': value['createdAt'],
|
|
76
|
+
'lastActivity': value['lastActivity'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { EngineOptionsUio } from './EngineOptionsUio';
|
|
13
|
+
/**
|
|
14
|
+
* Engine configuration attached to an organization.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationEngineUio
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationEngineUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrganizationEngineUio
|
|
23
|
+
*/
|
|
24
|
+
providerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OrganizationEngineUio
|
|
29
|
+
*/
|
|
30
|
+
model?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {EngineOptionsUio}
|
|
34
|
+
* @memberof OrganizationEngineUio
|
|
35
|
+
*/
|
|
36
|
+
options?: EngineOptionsUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the OrganizationEngineUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfOrganizationEngineUio(value: object): value is OrganizationEngineUio;
|
|
42
|
+
export declare function OrganizationEngineUioFromJSON(json: any): OrganizationEngineUio;
|
|
43
|
+
export declare function OrganizationEngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationEngineUio;
|
|
44
|
+
export declare function OrganizationEngineUioToJSON(json: any): OrganizationEngineUio;
|
|
45
|
+
export declare function OrganizationEngineUioToJSONTyped(value?: OrganizationEngineUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfOrganizationEngineUio = instanceOfOrganizationEngineUio;
|
|
17
|
+
exports.OrganizationEngineUioFromJSON = OrganizationEngineUioFromJSON;
|
|
18
|
+
exports.OrganizationEngineUioFromJSONTyped = OrganizationEngineUioFromJSONTyped;
|
|
19
|
+
exports.OrganizationEngineUioToJSON = OrganizationEngineUioToJSON;
|
|
20
|
+
exports.OrganizationEngineUioToJSONTyped = OrganizationEngineUioToJSONTyped;
|
|
21
|
+
const EngineOptionsUio_1 = require("./EngineOptionsUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OrganizationEngineUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOrganizationEngineUio(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function OrganizationEngineUioFromJSON(json) {
|
|
29
|
+
return OrganizationEngineUioFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function OrganizationEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
'options': json['options'] == null ? undefined : (0, EngineOptionsUio_1.EngineOptionsUioFromJSON)(json['options']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OrganizationEngineUioToJSON(json) {
|
|
42
|
+
return OrganizationEngineUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OrganizationEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'providerId': value['providerId'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'options': (0, EngineOptionsUio_1.EngineOptionsUioToJSON)(value['options']),
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,8 +31,12 @@ export * from './AppChatSubmitMessageRequestUio';
|
|
|
31
31
|
export * from './AppConfigurationUio';
|
|
32
32
|
export * from './AppConfigurationUpdateRequestUio';
|
|
33
33
|
export * from './AppCreateRequestUio';
|
|
34
|
+
export * from './AppEphemeralInstancesUio';
|
|
34
35
|
export * from './AppFlowCreateRequestUio';
|
|
36
|
+
export * from './AppInstanceCreateRequestOneOfUio';
|
|
35
37
|
export * from './AppInstanceCreateRequestUio';
|
|
38
|
+
export * from './AppInstanceEphemeralCreateRequestUio';
|
|
39
|
+
export * from './AppInstancesInnerUio';
|
|
36
40
|
export * from './AppLightUio';
|
|
37
41
|
export * from './AppProbeRequestUio';
|
|
38
42
|
export * from './AppProbeResponseUio';
|
|
@@ -87,6 +91,7 @@ export * from './DefaultEngineRequestUio';
|
|
|
87
91
|
export * from './DocumentAddRequestUio';
|
|
88
92
|
export * from './EngineOptionsUio';
|
|
89
93
|
export * from './EngineUio';
|
|
94
|
+
export * from './EphemeralInstanceUio';
|
|
90
95
|
export * from './FileAttachmentProcessedOneOf1Uio';
|
|
91
96
|
export * from './FileAttachmentProcessedOneOfUio';
|
|
92
97
|
export * from './FileAttachmentProcessedUio';
|
|
@@ -138,6 +143,7 @@ export * from './MetricIdentifierUio';
|
|
|
138
143
|
export * from './MetricUio';
|
|
139
144
|
export * from './ModelAgentUio';
|
|
140
145
|
export * from './ModelUio';
|
|
146
|
+
export * from './OrganizationEngineUio';
|
|
141
147
|
export * from './OrganizationUio';
|
|
142
148
|
export * from './PersonaUio';
|
|
143
149
|
export * from './PinRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -49,8 +49,12 @@ __exportStar(require("./AppChatSubmitMessageRequestUio"), exports);
|
|
|
49
49
|
__exportStar(require("./AppConfigurationUio"), exports);
|
|
50
50
|
__exportStar(require("./AppConfigurationUpdateRequestUio"), exports);
|
|
51
51
|
__exportStar(require("./AppCreateRequestUio"), exports);
|
|
52
|
+
__exportStar(require("./AppEphemeralInstancesUio"), exports);
|
|
52
53
|
__exportStar(require("./AppFlowCreateRequestUio"), exports);
|
|
54
|
+
__exportStar(require("./AppInstanceCreateRequestOneOfUio"), exports);
|
|
53
55
|
__exportStar(require("./AppInstanceCreateRequestUio"), exports);
|
|
56
|
+
__exportStar(require("./AppInstanceEphemeralCreateRequestUio"), exports);
|
|
57
|
+
__exportStar(require("./AppInstancesInnerUio"), exports);
|
|
54
58
|
__exportStar(require("./AppLightUio"), exports);
|
|
55
59
|
__exportStar(require("./AppProbeRequestUio"), exports);
|
|
56
60
|
__exportStar(require("./AppProbeResponseUio"), exports);
|
|
@@ -105,6 +109,7 @@ __exportStar(require("./DefaultEngineRequestUio"), exports);
|
|
|
105
109
|
__exportStar(require("./DocumentAddRequestUio"), exports);
|
|
106
110
|
__exportStar(require("./EngineOptionsUio"), exports);
|
|
107
111
|
__exportStar(require("./EngineUio"), exports);
|
|
112
|
+
__exportStar(require("./EphemeralInstanceUio"), exports);
|
|
108
113
|
__exportStar(require("./FileAttachmentProcessedOneOf1Uio"), exports);
|
|
109
114
|
__exportStar(require("./FileAttachmentProcessedOneOfUio"), exports);
|
|
110
115
|
__exportStar(require("./FileAttachmentProcessedUio"), exports);
|
|
@@ -156,6 +161,7 @@ __exportStar(require("./MetricIdentifierUio"), exports);
|
|
|
156
161
|
__exportStar(require("./MetricUio"), exports);
|
|
157
162
|
__exportStar(require("./ModelAgentUio"), exports);
|
|
158
163
|
__exportStar(require("./ModelUio"), exports);
|
|
164
|
+
__exportStar(require("./OrganizationEngineUio"), exports);
|
|
159
165
|
__exportStar(require("./OrganizationUio"), exports);
|
|
160
166
|
__exportStar(require("./PersonaUio"), exports);
|
|
161
167
|
__exportStar(require("./PinRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -4146,6 +4146,47 @@
|
|
|
4146
4146
|
"tags" : [ "organizations" ]
|
|
4147
4147
|
}
|
|
4148
4148
|
},
|
|
4149
|
+
"/organizations/{organizationId}/engine" : {
|
|
4150
|
+
"get" : {
|
|
4151
|
+
"description" : "Retrieves only the engine configuration (providerId, model, options) for a given organization.",
|
|
4152
|
+
"operationId" : "getOrganizationEngine",
|
|
4153
|
+
"parameters" : [ {
|
|
4154
|
+
"description" : "ID of the organization",
|
|
4155
|
+
"in" : "path",
|
|
4156
|
+
"name" : "organizationId",
|
|
4157
|
+
"required" : true,
|
|
4158
|
+
"schema" : {
|
|
4159
|
+
"type" : "string"
|
|
4160
|
+
}
|
|
4161
|
+
} ],
|
|
4162
|
+
"responses" : {
|
|
4163
|
+
"200" : {
|
|
4164
|
+
"content" : {
|
|
4165
|
+
"application/json" : {
|
|
4166
|
+
"schema" : {
|
|
4167
|
+
"$ref" : "#/components/schemas/OrganizationEngine"
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
},
|
|
4171
|
+
"description" : "Engine configuration found (or null if not configured)"
|
|
4172
|
+
},
|
|
4173
|
+
"401" : {
|
|
4174
|
+
"description" : "Unauthorized"
|
|
4175
|
+
},
|
|
4176
|
+
"403" : {
|
|
4177
|
+
"description" : "Forbidden - User doesn't have permission"
|
|
4178
|
+
},
|
|
4179
|
+
"404" : {
|
|
4180
|
+
"description" : "Organization not found"
|
|
4181
|
+
},
|
|
4182
|
+
"500" : {
|
|
4183
|
+
"description" : "Server error"
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4186
|
+
"summary" : "Get an organization engine configuration",
|
|
4187
|
+
"tags" : [ "organizations" ]
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4149
4190
|
"/manifests" : {
|
|
4150
4191
|
"get" : {
|
|
4151
4192
|
"description" : "Retrieves manifests, filtered by user ID for non-admin users",
|
|
@@ -7612,7 +7653,7 @@
|
|
|
7612
7653
|
},
|
|
7613
7654
|
"instances" : {
|
|
7614
7655
|
"items" : {
|
|
7615
|
-
"$ref" : "#/components/schemas/
|
|
7656
|
+
"$ref" : "#/components/schemas/App_instances_inner"
|
|
7616
7657
|
},
|
|
7617
7658
|
"type" : "array"
|
|
7618
7659
|
},
|
|
@@ -7645,6 +7686,9 @@
|
|
|
7645
7686
|
"maxProperties" : 100,
|
|
7646
7687
|
"type" : "object"
|
|
7647
7688
|
},
|
|
7689
|
+
"ephemeralInstances" : {
|
|
7690
|
+
"$ref" : "#/components/schemas/App_ephemeralInstances"
|
|
7691
|
+
},
|
|
7648
7692
|
"fillers" : {
|
|
7649
7693
|
"additionalProperties" : false,
|
|
7650
7694
|
"maxProperties" : 100,
|
|
@@ -7687,6 +7731,36 @@
|
|
|
7687
7731
|
"required" : [ "connected", "createdAt", "id", "name", "status" ],
|
|
7688
7732
|
"type" : "object"
|
|
7689
7733
|
},
|
|
7734
|
+
"EphemeralInstance" : {
|
|
7735
|
+
"properties" : {
|
|
7736
|
+
"id" : {
|
|
7737
|
+
"type" : "string"
|
|
7738
|
+
},
|
|
7739
|
+
"appId" : {
|
|
7740
|
+
"type" : "string"
|
|
7741
|
+
},
|
|
7742
|
+
"name" : {
|
|
7743
|
+
"type" : "string"
|
|
7744
|
+
},
|
|
7745
|
+
"urlWebsite" : {
|
|
7746
|
+
"type" : "string"
|
|
7747
|
+
},
|
|
7748
|
+
"token" : {
|
|
7749
|
+
"type" : "string"
|
|
7750
|
+
},
|
|
7751
|
+
"active" : {
|
|
7752
|
+
"type" : "boolean"
|
|
7753
|
+
},
|
|
7754
|
+
"createdAt" : {
|
|
7755
|
+
"type" : "string"
|
|
7756
|
+
},
|
|
7757
|
+
"lastActivity" : {
|
|
7758
|
+
"type" : "string"
|
|
7759
|
+
}
|
|
7760
|
+
},
|
|
7761
|
+
"required" : [ "active", "active", "appId", "createdAt", "id", "lastActivity", "name", "token", "type", "urlWebsite" ],
|
|
7762
|
+
"type" : "object"
|
|
7763
|
+
},
|
|
7690
7764
|
"AppConfiguration" : {
|
|
7691
7765
|
"additionalProperties" : true,
|
|
7692
7766
|
"properties" : {
|
|
@@ -7906,12 +7980,25 @@
|
|
|
7906
7980
|
"type" : "object"
|
|
7907
7981
|
},
|
|
7908
7982
|
"AppInstanceCreateRequest" : {
|
|
7983
|
+
"oneOf" : [ {
|
|
7984
|
+
"$ref" : "#/components/schemas/AppInstanceCreateRequest_oneOf"
|
|
7985
|
+
}, {
|
|
7986
|
+
"$ref" : "#/components/schemas/AppInstanceEphemeralCreateRequest"
|
|
7987
|
+
} ]
|
|
7988
|
+
},
|
|
7989
|
+
"AppInstanceEphemeralCreateRequest" : {
|
|
7909
7990
|
"properties" : {
|
|
7910
7991
|
"name" : {
|
|
7911
7992
|
"type" : "string"
|
|
7993
|
+
},
|
|
7994
|
+
"ephemeral" : {
|
|
7995
|
+
"type" : "boolean"
|
|
7996
|
+
},
|
|
7997
|
+
"urlWebsite" : {
|
|
7998
|
+
"type" : "string"
|
|
7912
7999
|
}
|
|
7913
8000
|
},
|
|
7914
|
-
"required" : [ "name" ],
|
|
8001
|
+
"required" : [ "ephemeral", "name" ],
|
|
7915
8002
|
"type" : "object"
|
|
7916
8003
|
},
|
|
7917
8004
|
"AuthCodeRequest" : {
|
|
@@ -8664,6 +8751,23 @@
|
|
|
8664
8751
|
"required" : [ "color", "createdAt", "id", "name", "organizationId" ],
|
|
8665
8752
|
"type" : "object"
|
|
8666
8753
|
},
|
|
8754
|
+
"OrganizationEngine" : {
|
|
8755
|
+
"additionalProperties" : false,
|
|
8756
|
+
"description" : "Engine configuration attached to an organization.",
|
|
8757
|
+
"nullable" : true,
|
|
8758
|
+
"properties" : {
|
|
8759
|
+
"providerId" : {
|
|
8760
|
+
"type" : "string"
|
|
8761
|
+
},
|
|
8762
|
+
"model" : {
|
|
8763
|
+
"type" : "string"
|
|
8764
|
+
},
|
|
8765
|
+
"options" : {
|
|
8766
|
+
"$ref" : "#/components/schemas/EngineOptions"
|
|
8767
|
+
}
|
|
8768
|
+
},
|
|
8769
|
+
"type" : "object"
|
|
8770
|
+
},
|
|
8667
8771
|
"Manifest" : {
|
|
8668
8772
|
"additionalProperties" : true,
|
|
8669
8773
|
"properties" : {
|
|
@@ -9226,6 +9330,34 @@
|
|
|
9226
9330
|
"enum" : [ "entry", "exit" ],
|
|
9227
9331
|
"type" : "string"
|
|
9228
9332
|
},
|
|
9333
|
+
"EngineOptions" : {
|
|
9334
|
+
"additionalProperties" : false,
|
|
9335
|
+
"description" : "Advanced engine options for an organization.",
|
|
9336
|
+
"properties" : {
|
|
9337
|
+
"reasoningOverride" : {
|
|
9338
|
+
"description" : "Force reasoning on/off. If omitted, adapter decides.",
|
|
9339
|
+
"type" : "boolean"
|
|
9340
|
+
},
|
|
9341
|
+
"reasoningEffort" : {
|
|
9342
|
+
"enum" : [ "minimal", "low", "medium", "high" ],
|
|
9343
|
+
"type" : "string"
|
|
9344
|
+
},
|
|
9345
|
+
"verbosity" : {
|
|
9346
|
+
"enum" : [ "low", "medium", "high" ],
|
|
9347
|
+
"type" : "string"
|
|
9348
|
+
},
|
|
9349
|
+
"maxOutputTokens" : {
|
|
9350
|
+
"minimum" : 1,
|
|
9351
|
+
"type" : "integer"
|
|
9352
|
+
},
|
|
9353
|
+
"modelOptions" : {
|
|
9354
|
+
"additionalProperties" : true,
|
|
9355
|
+
"description" : "Provider-specific options payload.",
|
|
9356
|
+
"type" : "object"
|
|
9357
|
+
}
|
|
9358
|
+
},
|
|
9359
|
+
"type" : "object"
|
|
9360
|
+
},
|
|
9229
9361
|
"TextToSpeechProvider" : {
|
|
9230
9362
|
"enum" : [ "ELEVENLABS" ],
|
|
9231
9363
|
"type" : "string"
|
|
@@ -9485,6 +9617,34 @@
|
|
|
9485
9617
|
},
|
|
9486
9618
|
"type" : "object"
|
|
9487
9619
|
},
|
|
9620
|
+
"App_instances_inner" : {
|
|
9621
|
+
"oneOf" : [ {
|
|
9622
|
+
"$ref" : "#/components/schemas/Instance"
|
|
9623
|
+
}, {
|
|
9624
|
+
"$ref" : "#/components/schemas/EphemeralInstance"
|
|
9625
|
+
} ]
|
|
9626
|
+
},
|
|
9627
|
+
"App_ephemeralInstances" : {
|
|
9628
|
+
"additionalProperties" : false,
|
|
9629
|
+
"properties" : {
|
|
9630
|
+
"allowed" : {
|
|
9631
|
+
"type" : "boolean"
|
|
9632
|
+
},
|
|
9633
|
+
"maxInstances" : {
|
|
9634
|
+
"type" : "number"
|
|
9635
|
+
}
|
|
9636
|
+
},
|
|
9637
|
+
"type" : "object"
|
|
9638
|
+
},
|
|
9639
|
+
"AppInstanceCreateRequest_oneOf" : {
|
|
9640
|
+
"properties" : {
|
|
9641
|
+
"name" : {
|
|
9642
|
+
"type" : "string"
|
|
9643
|
+
}
|
|
9644
|
+
},
|
|
9645
|
+
"required" : [ "name" ],
|
|
9646
|
+
"type" : "object"
|
|
9647
|
+
},
|
|
9488
9648
|
"ChunkCreateRequest_content_inner" : {
|
|
9489
9649
|
"properties" : {
|
|
9490
9650
|
"fileName" : {
|