@breign/client 1.0.0 → 1.0.1
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/package.json +2 -1
- package/target/typescript/dist/apis/BrainApi.d.ts +280 -0
- package/target/typescript/dist/apis/BrainApi.js +1013 -0
- package/target/typescript/dist/apis/index.d.ts +1 -0
- package/target/typescript/dist/apis/index.js +19 -0
- package/target/typescript/dist/index.d.ts +3 -0
- package/target/typescript/dist/index.js +21 -0
- package/target/typescript/dist/models/AdditionalUio.d.ts +44 -0
- package/target/typescript/dist/models/AdditionalUio.js +59 -0
- package/target/typescript/dist/models/BrainFlowCreateUio.d.ts +53 -0
- package/target/typescript/dist/models/BrainFlowCreateUio.js +58 -0
- package/target/typescript/dist/models/BrainFlowUio.d.ts +65 -0
- package/target/typescript/dist/models/BrainFlowUio.js +66 -0
- package/target/typescript/dist/models/BrainMetricsEventUio.d.ts +65 -0
- package/target/typescript/dist/models/BrainMetricsEventUio.js +70 -0
- package/target/typescript/dist/models/BrainMetricsOverviewUio.d.ts +64 -0
- package/target/typescript/dist/models/BrainMetricsOverviewUio.js +69 -0
- package/target/typescript/dist/models/BrainMetricsUnitsTypeUio.d.ts +27 -0
- package/target/typescript/dist/models/BrainMetricsUnitsTypeUio.js +53 -0
- package/target/typescript/dist/models/BrainMetricsValueUio.d.ts +57 -0
- package/target/typescript/dist/models/BrainMetricsValueUio.js +64 -0
- package/target/typescript/dist/models/BrainModuleTypeUio.d.ts +25 -0
- package/target/typescript/dist/models/BrainModuleTypeUio.js +51 -0
- package/target/typescript/dist/models/BrainModuleUio.d.ts +51 -0
- package/target/typescript/dist/models/BrainModuleUio.js +62 -0
- package/target/typescript/dist/models/BrainPatchUio.d.ts +94 -0
- package/target/typescript/dist/models/BrainPatchUio.js +83 -0
- package/target/typescript/dist/models/BrainRequestImageBrainUio.d.ts +50 -0
- package/target/typescript/dist/models/BrainRequestImageBrainUio.js +63 -0
- package/target/typescript/dist/models/BrainRequestUio.d.ts +60 -0
- package/target/typescript/dist/models/BrainRequestUio.js +69 -0
- package/target/typescript/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +39 -0
- package/target/typescript/dist/models/BrainSubscriptionTextInteractionsUio.js +56 -0
- package/target/typescript/dist/models/BrainSubscriptionUio.d.ts +57 -0
- package/target/typescript/dist/models/BrainSubscriptionUio.js +64 -0
- package/target/typescript/dist/models/BrainUio.d.ts +94 -0
- package/target/typescript/dist/models/BrainUio.js +83 -0
- package/target/typescript/dist/models/BrainUsageMetricsIdUio.d.ts +44 -0
- package/target/typescript/dist/models/BrainUsageMetricsIdUio.js +53 -0
- package/target/typescript/dist/models/BrainUsageMetricsUio.d.ts +46 -0
- package/target/typescript/dist/models/BrainUsageMetricsUio.js +55 -0
- package/target/typescript/dist/models/ContentsToolsUio.d.ts +44 -0
- package/target/typescript/dist/models/ContentsToolsUio.js +53 -0
- package/target/typescript/dist/models/CostMetricUio.d.ts +45 -0
- package/target/typescript/dist/models/CostMetricUio.js +58 -0
- package/target/typescript/dist/models/EngineTypeUio.d.ts +25 -0
- package/target/typescript/dist/models/EngineTypeUio.js +51 -0
- package/target/typescript/dist/models/EngineUio.d.ts +41 -0
- package/target/typescript/dist/models/EngineUio.js +56 -0
- package/target/typescript/dist/models/FileCreationRequestUio.d.ts +50 -0
- package/target/typescript/dist/models/FileCreationRequestUio.js +63 -0
- package/target/typescript/dist/models/FileStatusUio.d.ts +25 -0
- package/target/typescript/dist/models/FileStatusUio.js +51 -0
- package/target/typescript/dist/models/FileUio.d.ts +75 -0
- package/target/typescript/dist/models/FileUio.js +80 -0
- package/target/typescript/dist/models/FlowContentsSuggestionUio.d.ts +38 -0
- package/target/typescript/dist/models/FlowContentsSuggestionUio.js +55 -0
- package/target/typescript/dist/models/FlowContentsUio.d.ts +64 -0
- package/target/typescript/dist/models/FlowContentsUio.js +61 -0
- package/target/typescript/dist/models/FlowEntrypointsUio.d.ts +38 -0
- package/target/typescript/dist/models/FlowEntrypointsUio.js +53 -0
- package/target/typescript/dist/models/FlowOptionsUio.d.ts +46 -0
- package/target/typescript/dist/models/FlowOptionsUio.js +55 -0
- package/target/typescript/dist/models/PersonaUio.d.ts +33 -0
- package/target/typescript/dist/models/PersonaUio.js +58 -0
- package/target/typescript/dist/models/PromptInitUio.d.ts +33 -0
- package/target/typescript/dist/models/PromptInitUio.js +58 -0
- package/target/typescript/dist/models/SubscriptionMetricUio.d.ts +56 -0
- package/target/typescript/dist/models/SubscriptionMetricUio.js +57 -0
- package/target/typescript/dist/models/TransactionUio.d.ts +38 -0
- package/target/typescript/dist/models/TransactionUio.js +55 -0
- package/target/typescript/dist/models/index.d.ts +32 -0
- package/target/typescript/dist/models/index.js +50 -0
- package/target/typescript/dist/runtime.d.ts +184 -0
- package/target/typescript/dist/runtime.js +564 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BrainApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./BrainApi"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -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 AdditionalUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AdditionalUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdditionalUio
|
|
22
|
+
*/
|
|
23
|
+
price: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdditionalUio
|
|
28
|
+
*/
|
|
29
|
+
amountForPrice: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdditionalUio
|
|
34
|
+
*/
|
|
35
|
+
currency: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdditionalUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdditionalUio(value: object): value is AdditionalUio;
|
|
41
|
+
export declare function AdditionalUioFromJSON(json: any): AdditionalUio;
|
|
42
|
+
export declare function AdditionalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalUio;
|
|
43
|
+
export declare function AdditionalUioToJSON(json: any): AdditionalUio;
|
|
44
|
+
export declare function AdditionalUioToJSONTyped(value?: AdditionalUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfAdditionalUio = instanceOfAdditionalUio;
|
|
17
|
+
exports.AdditionalUioFromJSON = AdditionalUioFromJSON;
|
|
18
|
+
exports.AdditionalUioFromJSONTyped = AdditionalUioFromJSONTyped;
|
|
19
|
+
exports.AdditionalUioToJSON = AdditionalUioToJSON;
|
|
20
|
+
exports.AdditionalUioToJSONTyped = AdditionalUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdditionalUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdditionalUio(value) {
|
|
25
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('amountForPrice' in value) || value['amountForPrice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AdditionalUioFromJSON(json) {
|
|
34
|
+
return AdditionalUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AdditionalUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'price': json['price'],
|
|
42
|
+
'amountForPrice': json['amountForPrice'],
|
|
43
|
+
'currency': json['currency'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AdditionalUioToJSON(json) {
|
|
47
|
+
return AdditionalUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AdditionalUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'price': value['price'],
|
|
56
|
+
'amountForPrice': value['amountForPrice'],
|
|
57
|
+
'currency': value['currency'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { FlowContentsUio } from './FlowContentsUio';
|
|
13
|
+
import type { FlowOptionsUio } from './FlowOptionsUio';
|
|
14
|
+
import type { FlowEntrypointsUio } from './FlowEntrypointsUio';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface BrainFlowCreateUio
|
|
19
|
+
*/
|
|
20
|
+
export interface BrainFlowCreateUio {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {FlowEntrypointsUio}
|
|
24
|
+
* @memberof BrainFlowCreateUio
|
|
25
|
+
*/
|
|
26
|
+
entrypoints?: FlowEntrypointsUio;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {object}
|
|
30
|
+
* @memberof BrainFlowCreateUio
|
|
31
|
+
*/
|
|
32
|
+
exits?: object;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {FlowContentsUio}
|
|
36
|
+
* @memberof BrainFlowCreateUio
|
|
37
|
+
*/
|
|
38
|
+
contents?: FlowContentsUio;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<FlowOptionsUio>}
|
|
42
|
+
* @memberof BrainFlowCreateUio
|
|
43
|
+
*/
|
|
44
|
+
options?: Array<FlowOptionsUio>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the BrainFlowCreateUio interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfBrainFlowCreateUio(value: object): value is BrainFlowCreateUio;
|
|
50
|
+
export declare function BrainFlowCreateUioFromJSON(json: any): BrainFlowCreateUio;
|
|
51
|
+
export declare function BrainFlowCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainFlowCreateUio;
|
|
52
|
+
export declare function BrainFlowCreateUioToJSON(json: any): BrainFlowCreateUio;
|
|
53
|
+
export declare function BrainFlowCreateUioToJSONTyped(value?: BrainFlowCreateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfBrainFlowCreateUio = instanceOfBrainFlowCreateUio;
|
|
17
|
+
exports.BrainFlowCreateUioFromJSON = BrainFlowCreateUioFromJSON;
|
|
18
|
+
exports.BrainFlowCreateUioFromJSONTyped = BrainFlowCreateUioFromJSONTyped;
|
|
19
|
+
exports.BrainFlowCreateUioToJSON = BrainFlowCreateUioToJSON;
|
|
20
|
+
exports.BrainFlowCreateUioToJSONTyped = BrainFlowCreateUioToJSONTyped;
|
|
21
|
+
var FlowContentsUio_1 = require("./FlowContentsUio");
|
|
22
|
+
var FlowOptionsUio_1 = require("./FlowOptionsUio");
|
|
23
|
+
var FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the BrainFlowCreateUio interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfBrainFlowCreateUio(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function BrainFlowCreateUioFromJSON(json) {
|
|
31
|
+
return BrainFlowCreateUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function BrainFlowCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'entrypoints': json['entrypoints'] == null ? undefined : (0, FlowEntrypointsUio_1.FlowEntrypointsUioFromJSON)(json['entrypoints']),
|
|
39
|
+
'exits': json['exits'] == null ? undefined : json['exits'],
|
|
40
|
+
'contents': json['contents'] == null ? undefined : (0, FlowContentsUio_1.FlowContentsUioFromJSON)(json['contents']),
|
|
41
|
+
'options': json['options'] == null ? undefined : (json['options'].map(FlowOptionsUio_1.FlowOptionsUioFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function BrainFlowCreateUioToJSON(json) {
|
|
45
|
+
return BrainFlowCreateUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function BrainFlowCreateUioToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'entrypoints': (0, FlowEntrypointsUio_1.FlowEntrypointsUioToJSON)(value['entrypoints']),
|
|
54
|
+
'exits': value['exits'],
|
|
55
|
+
'contents': (0, FlowContentsUio_1.FlowContentsUioToJSON)(value['contents']),
|
|
56
|
+
'options': value['options'] == null ? undefined : (value['options'].map(FlowOptionsUio_1.FlowOptionsUioToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { FlowContentsUio } from './FlowContentsUio';
|
|
13
|
+
import type { FlowOptionsUio } from './FlowOptionsUio';
|
|
14
|
+
import type { FlowEntrypointsUio } from './FlowEntrypointsUio';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface BrainFlowUio
|
|
19
|
+
*/
|
|
20
|
+
export interface BrainFlowUio {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {FlowEntrypointsUio}
|
|
24
|
+
* @memberof BrainFlowUio
|
|
25
|
+
*/
|
|
26
|
+
entrypoints?: FlowEntrypointsUio;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {object}
|
|
30
|
+
* @memberof BrainFlowUio
|
|
31
|
+
*/
|
|
32
|
+
exits?: object;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {FlowContentsUio}
|
|
36
|
+
* @memberof BrainFlowUio
|
|
37
|
+
*/
|
|
38
|
+
contents?: FlowContentsUio;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<FlowOptionsUio>}
|
|
42
|
+
* @memberof BrainFlowUio
|
|
43
|
+
*/
|
|
44
|
+
options?: Array<FlowOptionsUio>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof BrainFlowUio
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof BrainFlowUio
|
|
55
|
+
*/
|
|
56
|
+
brainId: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the BrainFlowUio interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfBrainFlowUio(value: object): value is BrainFlowUio;
|
|
62
|
+
export declare function BrainFlowUioFromJSON(json: any): BrainFlowUio;
|
|
63
|
+
export declare function BrainFlowUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainFlowUio;
|
|
64
|
+
export declare function BrainFlowUioToJSON(json: any): BrainFlowUio;
|
|
65
|
+
export declare function BrainFlowUioToJSONTyped(value?: BrainFlowUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfBrainFlowUio = instanceOfBrainFlowUio;
|
|
17
|
+
exports.BrainFlowUioFromJSON = BrainFlowUioFromJSON;
|
|
18
|
+
exports.BrainFlowUioFromJSONTyped = BrainFlowUioFromJSONTyped;
|
|
19
|
+
exports.BrainFlowUioToJSON = BrainFlowUioToJSON;
|
|
20
|
+
exports.BrainFlowUioToJSONTyped = BrainFlowUioToJSONTyped;
|
|
21
|
+
var FlowContentsUio_1 = require("./FlowContentsUio");
|
|
22
|
+
var FlowOptionsUio_1 = require("./FlowOptionsUio");
|
|
23
|
+
var FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the BrainFlowUio interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfBrainFlowUio(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('brainId' in value) || value['brainId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function BrainFlowUioFromJSON(json) {
|
|
35
|
+
return BrainFlowUioFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function BrainFlowUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'entrypoints': json['entrypoints'] == null ? undefined : (0, FlowEntrypointsUio_1.FlowEntrypointsUioFromJSON)(json['entrypoints']),
|
|
43
|
+
'exits': json['exits'] == null ? undefined : json['exits'],
|
|
44
|
+
'contents': json['contents'] == null ? undefined : (0, FlowContentsUio_1.FlowContentsUioFromJSON)(json['contents']),
|
|
45
|
+
'options': json['options'] == null ? undefined : (json['options'].map(FlowOptionsUio_1.FlowOptionsUioFromJSON)),
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'brainId': json['brainId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function BrainFlowUioToJSON(json) {
|
|
51
|
+
return BrainFlowUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function BrainFlowUioToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'entrypoints': (0, FlowEntrypointsUio_1.FlowEntrypointsUioToJSON)(value['entrypoints']),
|
|
60
|
+
'exits': value['exits'],
|
|
61
|
+
'contents': (0, FlowContentsUio_1.FlowContentsUioToJSON)(value['contents']),
|
|
62
|
+
'options': value['options'] == null ? undefined : (value['options'].map(FlowOptionsUio_1.FlowOptionsUioToJSON)),
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'brainId': value['brainId'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { BrainMetricsValueUio } from './BrainMetricsValueUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BrainMetricsEventUio
|
|
17
|
+
*/
|
|
18
|
+
export interface BrainMetricsEventUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BrainMetricsEventUio
|
|
23
|
+
*/
|
|
24
|
+
brainId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BrainMetricsEventUio
|
|
29
|
+
*/
|
|
30
|
+
agentId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {{ [key: string]: any; }}
|
|
34
|
+
* @memberof BrainMetricsEventUio
|
|
35
|
+
*/
|
|
36
|
+
source: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof BrainMetricsEventUio
|
|
43
|
+
*/
|
|
44
|
+
timestamp: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof BrainMetricsEventUio
|
|
49
|
+
*/
|
|
50
|
+
task: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<BrainMetricsValueUio>}
|
|
54
|
+
* @memberof BrainMetricsEventUio
|
|
55
|
+
*/
|
|
56
|
+
value: Array<BrainMetricsValueUio>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the BrainMetricsEventUio interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfBrainMetricsEventUio(value: object): value is BrainMetricsEventUio;
|
|
62
|
+
export declare function BrainMetricsEventUioFromJSON(json: any): BrainMetricsEventUio;
|
|
63
|
+
export declare function BrainMetricsEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsEventUio;
|
|
64
|
+
export declare function BrainMetricsEventUioToJSON(json: any): BrainMetricsEventUio;
|
|
65
|
+
export declare function BrainMetricsEventUioToJSONTyped(value?: BrainMetricsEventUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfBrainMetricsEventUio = instanceOfBrainMetricsEventUio;
|
|
17
|
+
exports.BrainMetricsEventUioFromJSON = BrainMetricsEventUioFromJSON;
|
|
18
|
+
exports.BrainMetricsEventUioFromJSONTyped = BrainMetricsEventUioFromJSONTyped;
|
|
19
|
+
exports.BrainMetricsEventUioToJSON = BrainMetricsEventUioToJSON;
|
|
20
|
+
exports.BrainMetricsEventUioToJSONTyped = BrainMetricsEventUioToJSONTyped;
|
|
21
|
+
var BrainMetricsValueUio_1 = require("./BrainMetricsValueUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the BrainMetricsEventUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfBrainMetricsEventUio(value) {
|
|
26
|
+
if (!('brainId' in value) || value['brainId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('task' in value) || value['task'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function BrainMetricsEventUioFromJSON(json) {
|
|
39
|
+
return BrainMetricsEventUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function BrainMetricsEventUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'brainId': json['brainId'],
|
|
47
|
+
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
48
|
+
'source': json['source'],
|
|
49
|
+
'timestamp': json['timestamp'],
|
|
50
|
+
'task': json['task'],
|
|
51
|
+
'value': (json['value'].map(BrainMetricsValueUio_1.BrainMetricsValueUioFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function BrainMetricsEventUioToJSON(json) {
|
|
55
|
+
return BrainMetricsEventUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function BrainMetricsEventUioToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'brainId': value['brainId'],
|
|
64
|
+
'agentId': value['agentId'],
|
|
65
|
+
'source': value['source'],
|
|
66
|
+
'timestamp': value['timestamp'],
|
|
67
|
+
'task': value['task'],
|
|
68
|
+
'value': (value['value'].map(BrainMetricsValueUio_1.BrainMetricsValueUioToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { SubscriptionMetricUio } from './SubscriptionMetricUio';
|
|
13
|
+
import type { CostMetricUio } from './CostMetricUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BrainMetricsOverviewUio
|
|
18
|
+
*/
|
|
19
|
+
export interface BrainMetricsOverviewUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof BrainMetricsOverviewUio
|
|
24
|
+
*/
|
|
25
|
+
textConversationCount: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof BrainMetricsOverviewUio
|
|
30
|
+
*/
|
|
31
|
+
voiceConversationCount: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof BrainMetricsOverviewUio
|
|
36
|
+
*/
|
|
37
|
+
userTextMessagesCount: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof BrainMetricsOverviewUio
|
|
42
|
+
*/
|
|
43
|
+
userVoiceMessagesCount: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {SubscriptionMetricUio}
|
|
47
|
+
* @memberof BrainMetricsOverviewUio
|
|
48
|
+
*/
|
|
49
|
+
subscription?: SubscriptionMetricUio;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CostMetricUio}
|
|
53
|
+
* @memberof BrainMetricsOverviewUio
|
|
54
|
+
*/
|
|
55
|
+
costs?: CostMetricUio;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the BrainMetricsOverviewUio interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfBrainMetricsOverviewUio(value: object): value is BrainMetricsOverviewUio;
|
|
61
|
+
export declare function BrainMetricsOverviewUioFromJSON(json: any): BrainMetricsOverviewUio;
|
|
62
|
+
export declare function BrainMetricsOverviewUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsOverviewUio;
|
|
63
|
+
export declare function BrainMetricsOverviewUioToJSON(json: any): BrainMetricsOverviewUio;
|
|
64
|
+
export declare function BrainMetricsOverviewUioToJSONTyped(value?: BrainMetricsOverviewUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfBrainMetricsOverviewUio = instanceOfBrainMetricsOverviewUio;
|
|
17
|
+
exports.BrainMetricsOverviewUioFromJSON = BrainMetricsOverviewUioFromJSON;
|
|
18
|
+
exports.BrainMetricsOverviewUioFromJSONTyped = BrainMetricsOverviewUioFromJSONTyped;
|
|
19
|
+
exports.BrainMetricsOverviewUioToJSON = BrainMetricsOverviewUioToJSON;
|
|
20
|
+
exports.BrainMetricsOverviewUioToJSONTyped = BrainMetricsOverviewUioToJSONTyped;
|
|
21
|
+
var SubscriptionMetricUio_1 = require("./SubscriptionMetricUio");
|
|
22
|
+
var CostMetricUio_1 = require("./CostMetricUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the BrainMetricsOverviewUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfBrainMetricsOverviewUio(value) {
|
|
27
|
+
if (!('textConversationCount' in value) || value['textConversationCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('voiceConversationCount' in value) || value['voiceConversationCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userTextMessagesCount' in value) || value['userTextMessagesCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('userVoiceMessagesCount' in value) || value['userVoiceMessagesCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function BrainMetricsOverviewUioFromJSON(json) {
|
|
38
|
+
return BrainMetricsOverviewUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BrainMetricsOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'textConversationCount': json['textConversationCount'],
|
|
46
|
+
'voiceConversationCount': json['voiceConversationCount'],
|
|
47
|
+
'userTextMessagesCount': json['userTextMessagesCount'],
|
|
48
|
+
'userVoiceMessagesCount': json['userVoiceMessagesCount'],
|
|
49
|
+
'subscription': json['subscription'] == null ? undefined : (0, SubscriptionMetricUio_1.SubscriptionMetricUioFromJSON)(json['subscription']),
|
|
50
|
+
'costs': json['costs'] == null ? undefined : (0, CostMetricUio_1.CostMetricUioFromJSON)(json['costs']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function BrainMetricsOverviewUioToJSON(json) {
|
|
54
|
+
return BrainMetricsOverviewUioToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function BrainMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'textConversationCount': value['textConversationCount'],
|
|
63
|
+
'voiceConversationCount': value['voiceConversationCount'],
|
|
64
|
+
'userTextMessagesCount': value['userTextMessagesCount'],
|
|
65
|
+
'userVoiceMessagesCount': value['userVoiceMessagesCount'],
|
|
66
|
+
'subscription': (0, SubscriptionMetricUio_1.SubscriptionMetricUioToJSON)(value['subscription']),
|
|
67
|
+
'costs': (0, CostMetricUio_1.CostMetricUioToJSON)(value['costs']),
|
|
68
|
+
};
|
|
69
|
+
}
|