@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,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 PromptInitUio
|
|
16
|
+
*/
|
|
17
|
+
export interface PromptInitUio {
|
|
18
|
+
[key: string]: string | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PromptInitUio
|
|
23
|
+
*/
|
|
24
|
+
_default: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PromptInitUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPromptInitUio(value: object): value is PromptInitUio;
|
|
30
|
+
export declare function PromptInitUioFromJSON(json: any): PromptInitUio;
|
|
31
|
+
export declare function PromptInitUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptInitUio;
|
|
32
|
+
export declare function PromptInitUioToJSON(json: any): PromptInitUio;
|
|
33
|
+
export declare function PromptInitUioToJSONTyped(value?: PromptInitUio | 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.instanceOfPromptInitUio = instanceOfPromptInitUio;
|
|
28
|
+
exports.PromptInitUioFromJSON = PromptInitUioFromJSON;
|
|
29
|
+
exports.PromptInitUioFromJSONTyped = PromptInitUioFromJSONTyped;
|
|
30
|
+
exports.PromptInitUioToJSON = PromptInitUioToJSON;
|
|
31
|
+
exports.PromptInitUioToJSONTyped = PromptInitUioToJSONTyped;
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PromptInitUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfPromptInitUio(value) {
|
|
36
|
+
if (!('_default' in value) || value['_default'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function PromptInitUioFromJSON(json) {
|
|
41
|
+
return PromptInitUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PromptInitUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return __assign(__assign({}, json), { '_default': json['default'] });
|
|
48
|
+
}
|
|
49
|
+
function PromptInitUioToJSON(json) {
|
|
50
|
+
return PromptInitUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PromptInitUioToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SubscriptionMetricUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionMetricUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SubscriptionMetricUio
|
|
22
|
+
*/
|
|
23
|
+
textInteractions?: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof SubscriptionMetricUio
|
|
28
|
+
*/
|
|
29
|
+
voiceInteractions?: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof SubscriptionMetricUio
|
|
34
|
+
*/
|
|
35
|
+
canGoBeyondIncluded?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SubscriptionMetricUio
|
|
40
|
+
*/
|
|
41
|
+
startDate?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof SubscriptionMetricUio
|
|
46
|
+
*/
|
|
47
|
+
endDate?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SubscriptionMetricUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSubscriptionMetricUio(value: object): value is SubscriptionMetricUio;
|
|
53
|
+
export declare function SubscriptionMetricUioFromJSON(json: any): SubscriptionMetricUio;
|
|
54
|
+
export declare function SubscriptionMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionMetricUio;
|
|
55
|
+
export declare function SubscriptionMetricUioToJSON(json: any): SubscriptionMetricUio;
|
|
56
|
+
export declare function SubscriptionMetricUioToJSONTyped(value?: SubscriptionMetricUio | 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.instanceOfSubscriptionMetricUio = instanceOfSubscriptionMetricUio;
|
|
17
|
+
exports.SubscriptionMetricUioFromJSON = SubscriptionMetricUioFromJSON;
|
|
18
|
+
exports.SubscriptionMetricUioFromJSONTyped = SubscriptionMetricUioFromJSONTyped;
|
|
19
|
+
exports.SubscriptionMetricUioToJSON = SubscriptionMetricUioToJSON;
|
|
20
|
+
exports.SubscriptionMetricUioToJSONTyped = SubscriptionMetricUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionMetricUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionMetricUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SubscriptionMetricUioFromJSON(json) {
|
|
28
|
+
return SubscriptionMetricUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SubscriptionMetricUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'textInteractions': json['textInteractions'] == null ? undefined : json['textInteractions'],
|
|
36
|
+
'voiceInteractions': json['voiceInteractions'] == null ? undefined : json['voiceInteractions'],
|
|
37
|
+
'canGoBeyondIncluded': json['canGoBeyondIncluded'] == null ? undefined : json['canGoBeyondIncluded'],
|
|
38
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
39
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionMetricUioToJSON(json) {
|
|
43
|
+
return SubscriptionMetricUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SubscriptionMetricUioToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'textInteractions': value['textInteractions'],
|
|
52
|
+
'voiceInteractions': value['voiceInteractions'],
|
|
53
|
+
'canGoBeyondIncluded': value['canGoBeyondIncluded'],
|
|
54
|
+
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
|
|
55
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 TransactionUio
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransactionUio
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionUio
|
|
28
|
+
*/
|
|
29
|
+
currency: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the TransactionUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfTransactionUio(value: object): value is TransactionUio;
|
|
35
|
+
export declare function TransactionUioFromJSON(json: any): TransactionUio;
|
|
36
|
+
export declare function TransactionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionUio;
|
|
37
|
+
export declare function TransactionUioToJSON(json: any): TransactionUio;
|
|
38
|
+
export declare function TransactionUioToJSONTyped(value?: TransactionUio | 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.instanceOfTransactionUio = instanceOfTransactionUio;
|
|
17
|
+
exports.TransactionUioFromJSON = TransactionUioFromJSON;
|
|
18
|
+
exports.TransactionUioFromJSONTyped = TransactionUioFromJSONTyped;
|
|
19
|
+
exports.TransactionUioToJSON = TransactionUioToJSON;
|
|
20
|
+
exports.TransactionUioToJSONTyped = TransactionUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionUio(value) {
|
|
25
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function TransactionUioFromJSON(json) {
|
|
32
|
+
return TransactionUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function TransactionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'amount': json['amount'],
|
|
40
|
+
'currency': json['currency'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function TransactionUioToJSON(json) {
|
|
44
|
+
return TransactionUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function TransactionUioToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'amount': value['amount'],
|
|
53
|
+
'currency': value['currency'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from './AdditionalUio';
|
|
2
|
+
export * from './BrainFlowCreateUio';
|
|
3
|
+
export * from './BrainFlowUio';
|
|
4
|
+
export * from './BrainMetricsEventUio';
|
|
5
|
+
export * from './BrainMetricsOverviewUio';
|
|
6
|
+
export * from './BrainMetricsUnitsTypeUio';
|
|
7
|
+
export * from './BrainMetricsValueUio';
|
|
8
|
+
export * from './BrainModuleTypeUio';
|
|
9
|
+
export * from './BrainModuleUio';
|
|
10
|
+
export * from './BrainPatchUio';
|
|
11
|
+
export * from './BrainRequestImageBrainUio';
|
|
12
|
+
export * from './BrainRequestUio';
|
|
13
|
+
export * from './BrainSubscriptionTextInteractionsUio';
|
|
14
|
+
export * from './BrainSubscriptionUio';
|
|
15
|
+
export * from './BrainUio';
|
|
16
|
+
export * from './BrainUsageMetricsIdUio';
|
|
17
|
+
export * from './BrainUsageMetricsUio';
|
|
18
|
+
export * from './ContentsToolsUio';
|
|
19
|
+
export * from './CostMetricUio';
|
|
20
|
+
export * from './EngineTypeUio';
|
|
21
|
+
export * from './EngineUio';
|
|
22
|
+
export * from './FileCreationRequestUio';
|
|
23
|
+
export * from './FileStatusUio';
|
|
24
|
+
export * from './FileUio';
|
|
25
|
+
export * from './FlowContentsSuggestionUio';
|
|
26
|
+
export * from './FlowContentsUio';
|
|
27
|
+
export * from './FlowEntrypointsUio';
|
|
28
|
+
export * from './FlowOptionsUio';
|
|
29
|
+
export * from './PersonaUio';
|
|
30
|
+
export * from './PromptInitUio';
|
|
31
|
+
export * from './SubscriptionMetricUio';
|
|
32
|
+
export * from './TransactionUio';
|
|
@@ -0,0 +1,50 @@
|
|
|
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("./AdditionalUio"), exports);
|
|
20
|
+
__exportStar(require("./BrainFlowCreateUio"), exports);
|
|
21
|
+
__exportStar(require("./BrainFlowUio"), exports);
|
|
22
|
+
__exportStar(require("./BrainMetricsEventUio"), exports);
|
|
23
|
+
__exportStar(require("./BrainMetricsOverviewUio"), exports);
|
|
24
|
+
__exportStar(require("./BrainMetricsUnitsTypeUio"), exports);
|
|
25
|
+
__exportStar(require("./BrainMetricsValueUio"), exports);
|
|
26
|
+
__exportStar(require("./BrainModuleTypeUio"), exports);
|
|
27
|
+
__exportStar(require("./BrainModuleUio"), exports);
|
|
28
|
+
__exportStar(require("./BrainPatchUio"), exports);
|
|
29
|
+
__exportStar(require("./BrainRequestImageBrainUio"), exports);
|
|
30
|
+
__exportStar(require("./BrainRequestUio"), exports);
|
|
31
|
+
__exportStar(require("./BrainSubscriptionTextInteractionsUio"), exports);
|
|
32
|
+
__exportStar(require("./BrainSubscriptionUio"), exports);
|
|
33
|
+
__exportStar(require("./BrainUio"), exports);
|
|
34
|
+
__exportStar(require("./BrainUsageMetricsIdUio"), exports);
|
|
35
|
+
__exportStar(require("./BrainUsageMetricsUio"), exports);
|
|
36
|
+
__exportStar(require("./ContentsToolsUio"), exports);
|
|
37
|
+
__exportStar(require("./CostMetricUio"), exports);
|
|
38
|
+
__exportStar(require("./EngineTypeUio"), exports);
|
|
39
|
+
__exportStar(require("./EngineUio"), exports);
|
|
40
|
+
__exportStar(require("./FileCreationRequestUio"), exports);
|
|
41
|
+
__exportStar(require("./FileStatusUio"), exports);
|
|
42
|
+
__exportStar(require("./FileUio"), exports);
|
|
43
|
+
__exportStar(require("./FlowContentsSuggestionUio"), exports);
|
|
44
|
+
__exportStar(require("./FlowContentsUio"), exports);
|
|
45
|
+
__exportStar(require("./FlowEntrypointsUio"), exports);
|
|
46
|
+
__exportStar(require("./FlowOptionsUio"), exports);
|
|
47
|
+
__exportStar(require("./PersonaUio"), exports);
|
|
48
|
+
__exportStar(require("./PromptInitUio"), exports);
|
|
49
|
+
__exportStar(require("./SubscriptionMetricUio"), exports);
|
|
50
|
+
__exportStar(require("./TransactionUio"), exports);
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
47
|
+
private middleware;
|
|
48
|
+
constructor(configuration?: Configuration);
|
|
49
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
+
private createFetchParams;
|
|
65
|
+
private fetchApi;
|
|
66
|
+
/**
|
|
67
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
+
* and then shallow cloning data members.
|
|
69
|
+
*/
|
|
70
|
+
private clone;
|
|
71
|
+
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
82
|
+
export declare class RequiredError extends Error {
|
|
83
|
+
field: string;
|
|
84
|
+
name: "RequiredError";
|
|
85
|
+
constructor(field: string, msg?: string);
|
|
86
|
+
}
|
|
87
|
+
export declare const COLLECTION_FORMATS: {
|
|
88
|
+
csv: string;
|
|
89
|
+
ssv: string;
|
|
90
|
+
tsv: string;
|
|
91
|
+
pipes: string;
|
|
92
|
+
};
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type HTTPQuery = {
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
+
};
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
114
|
+
export interface FetchParams {
|
|
115
|
+
url: string;
|
|
116
|
+
init: RequestInit;
|
|
117
|
+
}
|
|
118
|
+
export interface RequestOpts {
|
|
119
|
+
path: string;
|
|
120
|
+
method: HTTPMethod;
|
|
121
|
+
headers: HTTPHeaders;
|
|
122
|
+
query?: HTTPQuery;
|
|
123
|
+
body?: HTTPBody;
|
|
124
|
+
}
|
|
125
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
130
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
|
+
export interface Consume {
|
|
132
|
+
contentType: string;
|
|
133
|
+
}
|
|
134
|
+
export interface RequestContext {
|
|
135
|
+
fetch: FetchAPI;
|
|
136
|
+
url: string;
|
|
137
|
+
init: RequestInit;
|
|
138
|
+
}
|
|
139
|
+
export interface ResponseContext {
|
|
140
|
+
fetch: FetchAPI;
|
|
141
|
+
url: string;
|
|
142
|
+
init: RequestInit;
|
|
143
|
+
response: Response;
|
|
144
|
+
}
|
|
145
|
+
export interface ErrorContext {
|
|
146
|
+
fetch: FetchAPI;
|
|
147
|
+
url: string;
|
|
148
|
+
init: RequestInit;
|
|
149
|
+
error: unknown;
|
|
150
|
+
response?: Response;
|
|
151
|
+
}
|
|
152
|
+
export interface Middleware {
|
|
153
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
+
}
|
|
157
|
+
export interface ApiResponse<T> {
|
|
158
|
+
raw: Response;
|
|
159
|
+
value(): Promise<T>;
|
|
160
|
+
}
|
|
161
|
+
export interface ResponseTransformer<T> {
|
|
162
|
+
(json: any): T;
|
|
163
|
+
}
|
|
164
|
+
export declare class JSONApiResponse<T> {
|
|
165
|
+
raw: Response;
|
|
166
|
+
private transformer;
|
|
167
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
+
value(): Promise<T>;
|
|
169
|
+
}
|
|
170
|
+
export declare class VoidApiResponse {
|
|
171
|
+
raw: Response;
|
|
172
|
+
constructor(raw: Response);
|
|
173
|
+
value(): Promise<void>;
|
|
174
|
+
}
|
|
175
|
+
export declare class BlobApiResponse {
|
|
176
|
+
raw: Response;
|
|
177
|
+
constructor(raw: Response);
|
|
178
|
+
value(): Promise<Blob>;
|
|
179
|
+
}
|
|
180
|
+
export declare class TextApiResponse {
|
|
181
|
+
raw: Response;
|
|
182
|
+
constructor(raw: Response);
|
|
183
|
+
value(): Promise<string>;
|
|
184
|
+
}
|