@breign/client 1.0.47 → 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.
@@ -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 interface AppInstanceCreateRequestUio {
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): AppInstanceCreateRequestUio;
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
- * Check if a given object implements the AppInstanceCreateRequestUio interface.
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
- return {
37
- 'name': json['name'],
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
- return {
48
- 'name': value['name'],
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
+ }
@@ -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 { InstanceUio } from './InstanceUio';
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<InstanceUio>}
126
+ * @type {Array<AppInstancesInnerUio>}
126
127
  * @memberof AppUio
127
128
  */
128
- instances?: Array<InstanceUio>;
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}
@@ -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 InstanceUio_1 = require("./InstanceUio");
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(InstanceUio_1.InstanceUioFromJSON)),
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(InstanceUio_1.InstanceUioToJSON)),
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
+ }
@@ -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';
@@ -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);
package/dist/openapi.json CHANGED
@@ -7653,7 +7653,7 @@
7653
7653
  },
7654
7654
  "instances" : {
7655
7655
  "items" : {
7656
- "$ref" : "#/components/schemas/Instance"
7656
+ "$ref" : "#/components/schemas/App_instances_inner"
7657
7657
  },
7658
7658
  "type" : "array"
7659
7659
  },
@@ -7686,6 +7686,9 @@
7686
7686
  "maxProperties" : 100,
7687
7687
  "type" : "object"
7688
7688
  },
7689
+ "ephemeralInstances" : {
7690
+ "$ref" : "#/components/schemas/App_ephemeralInstances"
7691
+ },
7689
7692
  "fillers" : {
7690
7693
  "additionalProperties" : false,
7691
7694
  "maxProperties" : 100,
@@ -7728,6 +7731,36 @@
7728
7731
  "required" : [ "connected", "createdAt", "id", "name", "status" ],
7729
7732
  "type" : "object"
7730
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
+ },
7731
7764
  "AppConfiguration" : {
7732
7765
  "additionalProperties" : true,
7733
7766
  "properties" : {
@@ -7947,12 +7980,25 @@
7947
7980
  "type" : "object"
7948
7981
  },
7949
7982
  "AppInstanceCreateRequest" : {
7983
+ "oneOf" : [ {
7984
+ "$ref" : "#/components/schemas/AppInstanceCreateRequest_oneOf"
7985
+ }, {
7986
+ "$ref" : "#/components/schemas/AppInstanceEphemeralCreateRequest"
7987
+ } ]
7988
+ },
7989
+ "AppInstanceEphemeralCreateRequest" : {
7950
7990
  "properties" : {
7951
7991
  "name" : {
7952
7992
  "type" : "string"
7993
+ },
7994
+ "ephemeral" : {
7995
+ "type" : "boolean"
7996
+ },
7997
+ "urlWebsite" : {
7998
+ "type" : "string"
7953
7999
  }
7954
8000
  },
7955
- "required" : [ "name" ],
8001
+ "required" : [ "ephemeral", "name" ],
7956
8002
  "type" : "object"
7957
8003
  },
7958
8004
  "AuthCodeRequest" : {
@@ -9571,6 +9617,34 @@
9571
9617
  },
9572
9618
  "type" : "object"
9573
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
+ },
9574
9648
  "ChunkCreateRequest_content_inner" : {
9575
9649
  "properties" : {
9576
9650
  "fileName" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",