@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,75 @@
|
|
|
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 { FileStatusUio } from './FileStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FileUio
|
|
17
|
+
*/
|
|
18
|
+
export interface FileUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FileUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof FileUio
|
|
29
|
+
*/
|
|
30
|
+
contentType: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof FileUio
|
|
35
|
+
*/
|
|
36
|
+
ext: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof FileUio
|
|
41
|
+
*/
|
|
42
|
+
key: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof FileUio
|
|
47
|
+
*/
|
|
48
|
+
size: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof FileUio
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {FileStatusUio}
|
|
58
|
+
* @memberof FileUio
|
|
59
|
+
*/
|
|
60
|
+
status: FileStatusUio;
|
|
61
|
+
/**
|
|
62
|
+
* URL to upload the image to
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof FileUio
|
|
65
|
+
*/
|
|
66
|
+
postURL: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the FileUio interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfFileUio(value: object): value is FileUio;
|
|
72
|
+
export declare function FileUioFromJSON(json: any): FileUio;
|
|
73
|
+
export declare function FileUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUio;
|
|
74
|
+
export declare function FileUioToJSON(json: any): FileUio;
|
|
75
|
+
export declare function FileUioToJSONTyped(value?: FileUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfFileUio = instanceOfFileUio;
|
|
17
|
+
exports.FileUioFromJSON = FileUioFromJSON;
|
|
18
|
+
exports.FileUioFromJSONTyped = FileUioFromJSONTyped;
|
|
19
|
+
exports.FileUioToJSON = FileUioToJSON;
|
|
20
|
+
exports.FileUioToJSONTyped = FileUioToJSONTyped;
|
|
21
|
+
var FileStatusUio_1 = require("./FileStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FileUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFileUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('ext' in value) || value['ext'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function FileUioFromJSON(json) {
|
|
45
|
+
return FileUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'contentType': json['contentType'],
|
|
54
|
+
'ext': json['ext'],
|
|
55
|
+
'key': json['key'],
|
|
56
|
+
'size': json['size'],
|
|
57
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
58
|
+
'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
59
|
+
'postURL': json['postURL'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function FileUioToJSON(json) {
|
|
63
|
+
return FileUioToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function FileUioToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'contentType': value['contentType'],
|
|
73
|
+
'ext': value['ext'],
|
|
74
|
+
'key': value['key'],
|
|
75
|
+
'size': value['size'],
|
|
76
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
77
|
+
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
78
|
+
'postURL': value['postURL'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -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 FlowContentsSuggestionUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowContentsSuggestionUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowContentsSuggestionUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FlowContentsSuggestionUio
|
|
28
|
+
*/
|
|
29
|
+
text: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FlowContentsSuggestionUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFlowContentsSuggestionUio(value: object): value is FlowContentsSuggestionUio;
|
|
35
|
+
export declare function FlowContentsSuggestionUioFromJSON(json: any): FlowContentsSuggestionUio;
|
|
36
|
+
export declare function FlowContentsSuggestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsSuggestionUio;
|
|
37
|
+
export declare function FlowContentsSuggestionUioToJSON(json: any): FlowContentsSuggestionUio;
|
|
38
|
+
export declare function FlowContentsSuggestionUioToJSONTyped(value?: FlowContentsSuggestionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfFlowContentsSuggestionUio = instanceOfFlowContentsSuggestionUio;
|
|
17
|
+
exports.FlowContentsSuggestionUioFromJSON = FlowContentsSuggestionUioFromJSON;
|
|
18
|
+
exports.FlowContentsSuggestionUioFromJSONTyped = FlowContentsSuggestionUioFromJSONTyped;
|
|
19
|
+
exports.FlowContentsSuggestionUioToJSON = FlowContentsSuggestionUioToJSON;
|
|
20
|
+
exports.FlowContentsSuggestionUioToJSONTyped = FlowContentsSuggestionUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FlowContentsSuggestionUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFlowContentsSuggestionUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function FlowContentsSuggestionUioFromJSON(json) {
|
|
32
|
+
return FlowContentsSuggestionUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function FlowContentsSuggestionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'text': json['text'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function FlowContentsSuggestionUioToJSON(json) {
|
|
44
|
+
return FlowContentsSuggestionUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function FlowContentsSuggestionUioToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'text': value['text'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 { FlowContentsSuggestionUio } from './FlowContentsSuggestionUio';
|
|
13
|
+
import type { ContentsToolsUio } from './ContentsToolsUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface FlowContentsUio
|
|
18
|
+
*/
|
|
19
|
+
export interface FlowContentsUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof FlowContentsUio
|
|
24
|
+
*/
|
|
25
|
+
rephrase?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof FlowContentsUio
|
|
30
|
+
*/
|
|
31
|
+
text?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof FlowContentsUio
|
|
36
|
+
*/
|
|
37
|
+
texts?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof FlowContentsUio
|
|
42
|
+
*/
|
|
43
|
+
instructions?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ContentsToolsUio}
|
|
47
|
+
* @memberof FlowContentsUio
|
|
48
|
+
*/
|
|
49
|
+
tools?: ContentsToolsUio;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<FlowContentsSuggestionUio>}
|
|
53
|
+
* @memberof FlowContentsUio
|
|
54
|
+
*/
|
|
55
|
+
suggestions?: Array<FlowContentsSuggestionUio>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the FlowContentsUio interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfFlowContentsUio(value: object): value is FlowContentsUio;
|
|
61
|
+
export declare function FlowContentsUioFromJSON(json: any): FlowContentsUio;
|
|
62
|
+
export declare function FlowContentsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsUio;
|
|
63
|
+
export declare function FlowContentsUioToJSON(json: any): FlowContentsUio;
|
|
64
|
+
export declare function FlowContentsUioToJSONTyped(value?: FlowContentsUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.instanceOfFlowContentsUio = instanceOfFlowContentsUio;
|
|
17
|
+
exports.FlowContentsUioFromJSON = FlowContentsUioFromJSON;
|
|
18
|
+
exports.FlowContentsUioFromJSONTyped = FlowContentsUioFromJSONTyped;
|
|
19
|
+
exports.FlowContentsUioToJSON = FlowContentsUioToJSON;
|
|
20
|
+
exports.FlowContentsUioToJSONTyped = FlowContentsUioToJSONTyped;
|
|
21
|
+
var FlowContentsSuggestionUio_1 = require("./FlowContentsSuggestionUio");
|
|
22
|
+
var ContentsToolsUio_1 = require("./ContentsToolsUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the FlowContentsUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfFlowContentsUio(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function FlowContentsUioFromJSON(json) {
|
|
30
|
+
return FlowContentsUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function FlowContentsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'rephrase': json['rephrase'] == null ? undefined : json['rephrase'],
|
|
38
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
39
|
+
'texts': json['texts'] == null ? undefined : json['texts'],
|
|
40
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
41
|
+
'tools': json['tools'] == null ? undefined : (0, ContentsToolsUio_1.ContentsToolsUioFromJSON)(json['tools']),
|
|
42
|
+
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function FlowContentsUioToJSON(json) {
|
|
46
|
+
return FlowContentsUioToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function FlowContentsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'rephrase': value['rephrase'],
|
|
55
|
+
'text': value['text'],
|
|
56
|
+
'texts': value['texts'],
|
|
57
|
+
'instructions': value['instructions'],
|
|
58
|
+
'tools': (0, ContentsToolsUio_1.ContentsToolsUioToJSON)(value['tools']),
|
|
59
|
+
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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 FlowEntrypointsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowEntrypointsUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof FlowEntrypointsUio
|
|
22
|
+
*/
|
|
23
|
+
intents: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof FlowEntrypointsUio
|
|
28
|
+
*/
|
|
29
|
+
nodes?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FlowEntrypointsUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFlowEntrypointsUio(value: object): value is FlowEntrypointsUio;
|
|
35
|
+
export declare function FlowEntrypointsUioFromJSON(json: any): FlowEntrypointsUio;
|
|
36
|
+
export declare function FlowEntrypointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowEntrypointsUio;
|
|
37
|
+
export declare function FlowEntrypointsUioToJSON(json: any): FlowEntrypointsUio;
|
|
38
|
+
export declare function FlowEntrypointsUioToJSONTyped(value?: FlowEntrypointsUio | 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.instanceOfFlowEntrypointsUio = instanceOfFlowEntrypointsUio;
|
|
17
|
+
exports.FlowEntrypointsUioFromJSON = FlowEntrypointsUioFromJSON;
|
|
18
|
+
exports.FlowEntrypointsUioFromJSONTyped = FlowEntrypointsUioFromJSONTyped;
|
|
19
|
+
exports.FlowEntrypointsUioToJSON = FlowEntrypointsUioToJSON;
|
|
20
|
+
exports.FlowEntrypointsUioToJSONTyped = FlowEntrypointsUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FlowEntrypointsUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFlowEntrypointsUio(value) {
|
|
25
|
+
if (!('intents' in value) || value['intents'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function FlowEntrypointsUioFromJSON(json) {
|
|
30
|
+
return FlowEntrypointsUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function FlowEntrypointsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'intents': json['intents'],
|
|
38
|
+
'nodes': json['nodes'] == null ? undefined : json['nodes'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function FlowEntrypointsUioToJSON(json) {
|
|
42
|
+
return FlowEntrypointsUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function FlowEntrypointsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'intents': value['intents'],
|
|
51
|
+
'nodes': value['nodes'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 FlowOptionsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowOptionsUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: object; }}
|
|
21
|
+
* @memberof FlowOptionsUio
|
|
22
|
+
*/
|
|
23
|
+
conditions: {
|
|
24
|
+
[key: string]: object;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {object}
|
|
29
|
+
* @memberof FlowOptionsUio
|
|
30
|
+
*/
|
|
31
|
+
exits?: object;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {object}
|
|
35
|
+
* @memberof FlowOptionsUio
|
|
36
|
+
*/
|
|
37
|
+
contents?: object;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the FlowOptionsUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfFlowOptionsUio(value: object): value is FlowOptionsUio;
|
|
43
|
+
export declare function FlowOptionsUioFromJSON(json: any): FlowOptionsUio;
|
|
44
|
+
export declare function FlowOptionsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowOptionsUio;
|
|
45
|
+
export declare function FlowOptionsUioToJSON(json: any): FlowOptionsUio;
|
|
46
|
+
export declare function FlowOptionsUioToJSONTyped(value?: FlowOptionsUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfFlowOptionsUio = instanceOfFlowOptionsUio;
|
|
17
|
+
exports.FlowOptionsUioFromJSON = FlowOptionsUioFromJSON;
|
|
18
|
+
exports.FlowOptionsUioFromJSONTyped = FlowOptionsUioFromJSONTyped;
|
|
19
|
+
exports.FlowOptionsUioToJSON = FlowOptionsUioToJSON;
|
|
20
|
+
exports.FlowOptionsUioToJSONTyped = FlowOptionsUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FlowOptionsUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFlowOptionsUio(value) {
|
|
25
|
+
if (!('conditions' in value) || value['conditions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function FlowOptionsUioFromJSON(json) {
|
|
30
|
+
return FlowOptionsUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function FlowOptionsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'conditions': json['conditions'],
|
|
38
|
+
'exits': json['exits'] == null ? undefined : json['exits'],
|
|
39
|
+
'contents': json['contents'] == null ? undefined : json['contents'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function FlowOptionsUioToJSON(json) {
|
|
43
|
+
return FlowOptionsUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function FlowOptionsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'conditions': value['conditions'],
|
|
52
|
+
'exits': value['exits'],
|
|
53
|
+
'contents': value['contents'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 PersonaUio
|
|
16
|
+
*/
|
|
17
|
+
export interface PersonaUio {
|
|
18
|
+
[key: string]: string | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PersonaUio
|
|
23
|
+
*/
|
|
24
|
+
_default: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PersonaUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPersonaUio(value: object): value is PersonaUio;
|
|
30
|
+
export declare function PersonaUioFromJSON(json: any): PersonaUio;
|
|
31
|
+
export declare function PersonaUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonaUio;
|
|
32
|
+
export declare function PersonaUioToJSON(json: any): PersonaUio;
|
|
33
|
+
export declare function PersonaUioToJSONTyped(value?: PersonaUio | 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
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.instanceOfPersonaUio = instanceOfPersonaUio;
|
|
28
|
+
exports.PersonaUioFromJSON = PersonaUioFromJSON;
|
|
29
|
+
exports.PersonaUioFromJSONTyped = PersonaUioFromJSONTyped;
|
|
30
|
+
exports.PersonaUioToJSON = PersonaUioToJSON;
|
|
31
|
+
exports.PersonaUioToJSONTyped = PersonaUioToJSONTyped;
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PersonaUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfPersonaUio(value) {
|
|
36
|
+
if (!('_default' in value) || value['_default'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function PersonaUioFromJSON(json) {
|
|
41
|
+
return PersonaUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PersonaUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return __assign(__assign({}, json), { '_default': json['default'] });
|
|
48
|
+
}
|
|
49
|
+
function PersonaUioToJSON(json) {
|
|
50
|
+
return PersonaUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PersonaUioToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return __assign(__assign({}, value), { 'default': value['_default'] });
|
|
58
|
+
}
|