@breign/client 1.0.1 → 1.0.3
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/{target/typescript/dist → dist}/apis/BrainApi.d.ts +10 -0
- package/dist/apis/BrainApi.js +637 -0
- package/{target/typescript/dist → dist}/models/AdditionalUio.js +1 -2
- package/{target/typescript/dist → dist}/models/BrainFlowCreateUio.js +4 -5
- package/{target/typescript/dist → dist}/models/BrainFlowUio.js +4 -5
- package/{target/typescript/dist → dist}/models/BrainMetricsEventUio.js +2 -3
- package/{target/typescript/dist → dist}/models/BrainMetricsOverviewUio.js +3 -4
- package/{target/typescript/dist → dist}/models/BrainMetricsUnitsTypeUio.js +1 -1
- package/{target/typescript/dist → dist}/models/BrainMetricsValueUio.js +2 -3
- package/{target/typescript/dist → dist}/models/BrainModuleTypeUio.js +1 -1
- package/{target/typescript/dist → dist}/models/BrainModuleUio.js +2 -3
- package/{target/typescript/dist → dist}/models/BrainPatchUio.d.ts +72 -0
- package/{target/typescript/dist → dist}/models/BrainPatchUio.js +31 -6
- package/{target/typescript/dist → dist}/models/BrainRequestImageBrainUio.js +1 -2
- package/{target/typescript/dist → dist}/models/BrainRequestUio.d.ts +54 -0
- package/{target/typescript/dist → dist}/models/BrainRequestUio.js +25 -6
- package/{target/typescript/dist → dist}/models/BrainSubscriptionTextInteractionsUio.js +2 -3
- package/{target/typescript/dist → dist}/models/BrainSubscriptionUio.js +2 -3
- package/{target/typescript/dist → dist}/models/BrainUio.d.ts +72 -0
- package/{target/typescript/dist → dist}/models/BrainUio.js +31 -6
- package/{target/typescript/dist → dist}/models/BrainUsageMetricsIdUio.js +1 -2
- package/{target/typescript/dist → dist}/models/BrainUsageMetricsUio.js +3 -4
- package/{target/typescript/dist → dist}/models/ContentsToolsUio.js +1 -2
- package/{target/typescript/dist → dist}/models/CostMetricUio.js +2 -3
- package/{target/typescript/dist → dist}/models/EngineTypeUio.js +1 -1
- package/{target/typescript/dist → dist}/models/EngineUio.js +2 -3
- package/{target/typescript/dist → dist}/models/FileCreationRequestUio.js +1 -2
- package/{target/typescript/dist → dist}/models/FileStatusUio.js +1 -1
- package/{target/typescript/dist → dist}/models/FileUio.js +2 -3
- package/{target/typescript/dist → dist}/models/FlowContentsSuggestionUio.js +1 -2
- package/{target/typescript/dist → dist}/models/FlowContentsUio.js +3 -4
- package/{target/typescript/dist → dist}/models/FlowEntrypointsUio.js +1 -2
- package/{target/typescript/dist → dist}/models/FlowOptionsUio.js +1 -2
- package/{target/typescript/dist → dist}/models/PersonaUio.js +9 -15
- package/{target/typescript/dist → dist}/models/PromptInitUio.js +9 -15
- package/{target/typescript/dist → dist}/models/SubscriptionMetricUio.js +1 -2
- package/{target/typescript/dist → dist}/models/TransactionUio.js +1 -2
- package/dist/openapi.json +1668 -0
- package/dist/runtime.js +338 -0
- package/package.json +11 -6
- package/README.md +0 -10
- package/target/typescript/dist/apis/BrainApi.js +0 -1013
- package/target/typescript/dist/runtime.js +0 -564
- /package/{target/typescript/dist → dist}/apis/index.d.ts +0 -0
- /package/{target/typescript/dist → dist}/apis/index.js +0 -0
- /package/{target/typescript/dist → dist}/index.d.ts +0 -0
- /package/{target/typescript/dist → dist}/index.js +0 -0
- /package/{target/typescript/dist → dist}/models/AdditionalUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainFlowCreateUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainFlowUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainMetricsEventUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainMetricsOverviewUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainMetricsUnitsTypeUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainMetricsValueUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainModuleTypeUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainModuleUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainRequestImageBrainUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainSubscriptionTextInteractionsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainSubscriptionUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainUsageMetricsIdUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/BrainUsageMetricsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/ContentsToolsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/CostMetricUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/EngineTypeUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/EngineUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FileCreationRequestUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FileStatusUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FileUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FlowContentsSuggestionUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FlowContentsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FlowEntrypointsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/FlowOptionsUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/PersonaUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/PromptInitUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/SubscriptionMetricUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/TransactionUio.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/index.d.ts +0 -0
- /package/{target/typescript/dist → dist}/models/index.js +0 -0
- /package/{target/typescript/dist → dist}/runtime.d.ts +0 -0
|
@@ -18,9 +18,9 @@ exports.BrainFlowCreateUioFromJSON = BrainFlowCreateUioFromJSON;
|
|
|
18
18
|
exports.BrainFlowCreateUioFromJSONTyped = BrainFlowCreateUioFromJSONTyped;
|
|
19
19
|
exports.BrainFlowCreateUioToJSON = BrainFlowCreateUioToJSON;
|
|
20
20
|
exports.BrainFlowCreateUioToJSONTyped = BrainFlowCreateUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const FlowContentsUio_1 = require("./FlowContentsUio");
|
|
22
|
+
const FlowOptionsUio_1 = require("./FlowOptionsUio");
|
|
23
|
+
const FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the BrainFlowCreateUio interface.
|
|
26
26
|
*/
|
|
@@ -44,8 +44,7 @@ function BrainFlowCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
function BrainFlowCreateUioToJSON(json) {
|
|
45
45
|
return BrainFlowCreateUioToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
function BrainFlowCreateUioToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
function BrainFlowCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
51
50
|
}
|
|
@@ -18,9 +18,9 @@ exports.BrainFlowUioFromJSON = BrainFlowUioFromJSON;
|
|
|
18
18
|
exports.BrainFlowUioFromJSONTyped = BrainFlowUioFromJSONTyped;
|
|
19
19
|
exports.BrainFlowUioToJSON = BrainFlowUioToJSON;
|
|
20
20
|
exports.BrainFlowUioToJSONTyped = BrainFlowUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const FlowContentsUio_1 = require("./FlowContentsUio");
|
|
22
|
+
const FlowOptionsUio_1 = require("./FlowOptionsUio");
|
|
23
|
+
const FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the BrainFlowUio interface.
|
|
26
26
|
*/
|
|
@@ -50,8 +50,7 @@ function BrainFlowUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
function BrainFlowUioToJSON(json) {
|
|
51
51
|
return BrainFlowUioToJSONTyped(json, false);
|
|
52
52
|
}
|
|
53
|
-
function BrainFlowUioToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
function BrainFlowUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
54
|
if (value == null) {
|
|
56
55
|
return value;
|
|
57
56
|
}
|
|
@@ -18,7 +18,7 @@ exports.BrainMetricsEventUioFromJSON = BrainMetricsEventUioFromJSON;
|
|
|
18
18
|
exports.BrainMetricsEventUioFromJSONTyped = BrainMetricsEventUioFromJSONTyped;
|
|
19
19
|
exports.BrainMetricsEventUioToJSON = BrainMetricsEventUioToJSON;
|
|
20
20
|
exports.BrainMetricsEventUioToJSONTyped = BrainMetricsEventUioToJSONTyped;
|
|
21
|
-
|
|
21
|
+
const BrainMetricsValueUio_1 = require("./BrainMetricsValueUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the BrainMetricsEventUio interface.
|
|
24
24
|
*/
|
|
@@ -54,8 +54,7 @@ function BrainMetricsEventUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
function BrainMetricsEventUioToJSON(json) {
|
|
55
55
|
return BrainMetricsEventUioToJSONTyped(json, false);
|
|
56
56
|
}
|
|
57
|
-
function BrainMetricsEventUioToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
function BrainMetricsEventUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
58
|
if (value == null) {
|
|
60
59
|
return value;
|
|
61
60
|
}
|
|
@@ -18,8 +18,8 @@ exports.BrainMetricsOverviewUioFromJSON = BrainMetricsOverviewUioFromJSON;
|
|
|
18
18
|
exports.BrainMetricsOverviewUioFromJSONTyped = BrainMetricsOverviewUioFromJSONTyped;
|
|
19
19
|
exports.BrainMetricsOverviewUioToJSON = BrainMetricsOverviewUioToJSON;
|
|
20
20
|
exports.BrainMetricsOverviewUioToJSONTyped = BrainMetricsOverviewUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const SubscriptionMetricUio_1 = require("./SubscriptionMetricUio");
|
|
22
|
+
const CostMetricUio_1 = require("./CostMetricUio");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the BrainMetricsOverviewUio interface.
|
|
25
25
|
*/
|
|
@@ -53,8 +53,7 @@ function BrainMetricsOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
function BrainMetricsOverviewUioToJSON(json) {
|
|
54
54
|
return BrainMetricsOverviewUioToJSONTyped(json, false);
|
|
55
55
|
}
|
|
56
|
-
function BrainMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
function BrainMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
57
|
if (value == null) {
|
|
59
58
|
return value;
|
|
60
59
|
}
|
|
@@ -30,7 +30,7 @@ exports.BrainMetricsUnitsTypeUio = {
|
|
|
30
30
|
Characters: 'CHARACTERS'
|
|
31
31
|
};
|
|
32
32
|
function instanceOfBrainMetricsUnitsTypeUio(value) {
|
|
33
|
-
for (
|
|
33
|
+
for (const key in exports.BrainMetricsUnitsTypeUio) {
|
|
34
34
|
if (Object.prototype.hasOwnProperty.call(exports.BrainMetricsUnitsTypeUio, key)) {
|
|
35
35
|
if (exports.BrainMetricsUnitsTypeUio[key] === value) {
|
|
36
36
|
return true;
|
|
@@ -18,7 +18,7 @@ exports.BrainMetricsValueUioFromJSON = BrainMetricsValueUioFromJSON;
|
|
|
18
18
|
exports.BrainMetricsValueUioFromJSONTyped = BrainMetricsValueUioFromJSONTyped;
|
|
19
19
|
exports.BrainMetricsValueUioToJSON = BrainMetricsValueUioToJSON;
|
|
20
20
|
exports.BrainMetricsValueUioToJSONTyped = BrainMetricsValueUioToJSONTyped;
|
|
21
|
-
|
|
21
|
+
const BrainMetricsUnitsTypeUio_1 = require("./BrainMetricsUnitsTypeUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the BrainMetricsValueUio interface.
|
|
24
24
|
*/
|
|
@@ -49,8 +49,7 @@ function BrainMetricsValueUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
function BrainMetricsValueUioToJSON(json) {
|
|
50
50
|
return BrainMetricsValueUioToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function BrainMetricsValueUioToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
function BrainMetricsValueUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
53
|
if (value == null) {
|
|
55
54
|
return value;
|
|
56
55
|
}
|
|
@@ -28,7 +28,7 @@ exports.BrainModuleTypeUio = {
|
|
|
28
28
|
External: 'External'
|
|
29
29
|
};
|
|
30
30
|
function instanceOfBrainModuleTypeUio(value) {
|
|
31
|
-
for (
|
|
31
|
+
for (const key in exports.BrainModuleTypeUio) {
|
|
32
32
|
if (Object.prototype.hasOwnProperty.call(exports.BrainModuleTypeUio, key)) {
|
|
33
33
|
if (exports.BrainModuleTypeUio[key] === value) {
|
|
34
34
|
return true;
|
|
@@ -18,7 +18,7 @@ exports.BrainModuleUioFromJSON = BrainModuleUioFromJSON;
|
|
|
18
18
|
exports.BrainModuleUioFromJSONTyped = BrainModuleUioFromJSONTyped;
|
|
19
19
|
exports.BrainModuleUioToJSON = BrainModuleUioToJSON;
|
|
20
20
|
exports.BrainModuleUioToJSONTyped = BrainModuleUioToJSONTyped;
|
|
21
|
-
|
|
21
|
+
const BrainModuleTypeUio_1 = require("./BrainModuleTypeUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the BrainModuleUio interface.
|
|
24
24
|
*/
|
|
@@ -48,8 +48,7 @@ function BrainModuleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
function BrainModuleUioToJSON(json) {
|
|
49
49
|
return BrainModuleUioToJSONTyped(json, false);
|
|
50
50
|
}
|
|
51
|
-
function BrainModuleUioToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
function BrainModuleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
52
|
if (value == null) {
|
|
54
53
|
return value;
|
|
55
54
|
}
|
|
@@ -83,6 +83,78 @@ export interface BrainPatchUio {
|
|
|
83
83
|
* @memberof BrainPatchUio
|
|
84
84
|
*/
|
|
85
85
|
imageBrain?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof BrainPatchUio
|
|
90
|
+
*/
|
|
91
|
+
organisationId: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BrainPatchUio
|
|
96
|
+
*/
|
|
97
|
+
role?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof BrainPatchUio
|
|
102
|
+
*/
|
|
103
|
+
defaultLanguage?: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof BrainPatchUio
|
|
108
|
+
*/
|
|
109
|
+
description?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof BrainPatchUio
|
|
114
|
+
*/
|
|
115
|
+
template?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof BrainPatchUio
|
|
120
|
+
*/
|
|
121
|
+
color?: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof BrainPatchUio
|
|
126
|
+
*/
|
|
127
|
+
picture?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof BrainPatchUio
|
|
132
|
+
*/
|
|
133
|
+
createdAt?: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof BrainPatchUio
|
|
138
|
+
*/
|
|
139
|
+
isActivated?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {Array<string>}
|
|
143
|
+
* @memberof BrainPatchUio
|
|
144
|
+
*/
|
|
145
|
+
knowledgeBaseId?: Array<string>;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof BrainPatchUio
|
|
150
|
+
*/
|
|
151
|
+
isTemplate?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof BrainPatchUio
|
|
156
|
+
*/
|
|
157
|
+
deleted?: boolean;
|
|
86
158
|
}
|
|
87
159
|
/**
|
|
88
160
|
* Check if a given object implements the BrainPatchUio interface.
|
|
@@ -18,10 +18,10 @@ exports.BrainPatchUioFromJSON = BrainPatchUioFromJSON;
|
|
|
18
18
|
exports.BrainPatchUioFromJSONTyped = BrainPatchUioFromJSONTyped;
|
|
19
19
|
exports.BrainPatchUioToJSON = BrainPatchUioToJSON;
|
|
20
20
|
exports.BrainPatchUioToJSONTyped = BrainPatchUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const BrainSubscriptionUio_1 = require("./BrainSubscriptionUio");
|
|
22
|
+
const PersonaUio_1 = require("./PersonaUio");
|
|
23
|
+
const EngineUio_1 = require("./EngineUio");
|
|
24
|
+
const PromptInitUio_1 = require("./PromptInitUio");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the BrainPatchUio interface.
|
|
27
27
|
*/
|
|
@@ -38,6 +38,8 @@ function instanceOfBrainPatchUio(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('promptInit' in value) || value['promptInit'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('organisationId' in value) || value['organisationId'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
function BrainPatchUioFromJSON(json) {
|
|
@@ -58,13 +60,24 @@ function BrainPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'subscription': json['subscription'] == null ? undefined : (0, BrainSubscriptionUio_1.BrainSubscriptionUioFromJSON)(json['subscription']),
|
|
59
61
|
'speechOverrides': json['speechOverrides'] == null ? undefined : json['speechOverrides'],
|
|
60
62
|
'imageBrain': json['imageBrain'] == null ? undefined : json['imageBrain'],
|
|
63
|
+
'organisationId': json['organisationId'],
|
|
64
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
65
|
+
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
68
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
69
|
+
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
70
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
71
|
+
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
72
|
+
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
73
|
+
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
74
|
+
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
61
75
|
};
|
|
62
76
|
}
|
|
63
77
|
function BrainPatchUioToJSON(json) {
|
|
64
78
|
return BrainPatchUioToJSONTyped(json, false);
|
|
65
79
|
}
|
|
66
|
-
function BrainPatchUioToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
+
function BrainPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
81
|
if (value == null) {
|
|
69
82
|
return value;
|
|
70
83
|
}
|
|
@@ -79,5 +92,17 @@ function BrainPatchUioToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
92
|
'subscription': (0, BrainSubscriptionUio_1.BrainSubscriptionUioToJSON)(value['subscription']),
|
|
80
93
|
'speechOverrides': value['speechOverrides'],
|
|
81
94
|
'imageBrain': value['imageBrain'],
|
|
95
|
+
'organisationId': value['organisationId'],
|
|
96
|
+
'role': value['role'],
|
|
97
|
+
'defaultLanguage': value['defaultLanguage'],
|
|
98
|
+
'description': value['description'],
|
|
99
|
+
'template': value['template'],
|
|
100
|
+
'color': value['color'],
|
|
101
|
+
'picture': value['picture'],
|
|
102
|
+
'createdAt': value['createdAt'],
|
|
103
|
+
'isActivated': value['isActivated'],
|
|
104
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
105
|
+
'isTemplate': value['isTemplate'],
|
|
106
|
+
'deleted': value['deleted'],
|
|
82
107
|
};
|
|
83
108
|
}
|
|
@@ -49,8 +49,7 @@ function BrainRequestImageBrainUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
function BrainRequestImageBrainUioToJSON(json) {
|
|
50
50
|
return BrainRequestImageBrainUioToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function BrainRequestImageBrainUioToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
function BrainRequestImageBrainUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
53
|
if (value == null) {
|
|
55
54
|
return value;
|
|
56
55
|
}
|
|
@@ -49,6 +49,60 @@ export interface BrainRequestUio {
|
|
|
49
49
|
* @memberof BrainRequestUio
|
|
50
50
|
*/
|
|
51
51
|
imageBrain?: BrainRequestImageBrainUio;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BrainRequestUio
|
|
56
|
+
*/
|
|
57
|
+
organisationId: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BrainRequestUio
|
|
62
|
+
*/
|
|
63
|
+
role?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof BrainRequestUio
|
|
68
|
+
*/
|
|
69
|
+
defaultLanguage?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof BrainRequestUio
|
|
74
|
+
*/
|
|
75
|
+
description?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BrainRequestUio
|
|
80
|
+
*/
|
|
81
|
+
template?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof BrainRequestUio
|
|
86
|
+
*/
|
|
87
|
+
color?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof BrainRequestUio
|
|
92
|
+
*/
|
|
93
|
+
picture?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof BrainRequestUio
|
|
98
|
+
*/
|
|
99
|
+
createdAt?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {boolean}
|
|
103
|
+
* @memberof BrainRequestUio
|
|
104
|
+
*/
|
|
105
|
+
isActivated?: boolean;
|
|
52
106
|
}
|
|
53
107
|
/**
|
|
54
108
|
* Check if a given object implements the BrainRequestUio interface.
|
|
@@ -18,10 +18,10 @@ exports.BrainRequestUioFromJSON = BrainRequestUioFromJSON;
|
|
|
18
18
|
exports.BrainRequestUioFromJSONTyped = BrainRequestUioFromJSONTyped;
|
|
19
19
|
exports.BrainRequestUioToJSON = BrainRequestUioToJSON;
|
|
20
20
|
exports.BrainRequestUioToJSONTyped = BrainRequestUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const PersonaUio_1 = require("./PersonaUio");
|
|
22
|
+
const EngineUio_1 = require("./EngineUio");
|
|
23
|
+
const BrainRequestImageBrainUio_1 = require("./BrainRequestImageBrainUio");
|
|
24
|
+
const PromptInitUio_1 = require("./PromptInitUio");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the BrainRequestUio interface.
|
|
27
27
|
*/
|
|
@@ -34,6 +34,8 @@ function instanceOfBrainRequestUio(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('promptInit' in value) || value['promptInit'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('organisationId' in value) || value['organisationId'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
return true;
|
|
38
40
|
}
|
|
39
41
|
function BrainRequestUioFromJSON(json) {
|
|
@@ -49,13 +51,21 @@ function BrainRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'engine': (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
50
52
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
51
53
|
'imageBrain': json['imageBrain'] == null ? undefined : (0, BrainRequestImageBrainUio_1.BrainRequestImageBrainUioFromJSON)(json['imageBrain']),
|
|
54
|
+
'organisationId': json['organisationId'],
|
|
55
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
56
|
+
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
57
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
58
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
59
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
60
|
+
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
61
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
62
|
+
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
52
63
|
};
|
|
53
64
|
}
|
|
54
65
|
function BrainRequestUioToJSON(json) {
|
|
55
66
|
return BrainRequestUioToJSONTyped(json, false);
|
|
56
67
|
}
|
|
57
|
-
function BrainRequestUioToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
function BrainRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
69
|
if (value == null) {
|
|
60
70
|
return value;
|
|
61
71
|
}
|
|
@@ -65,5 +75,14 @@ function BrainRequestUioToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
75
|
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
66
76
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
67
77
|
'imageBrain': (0, BrainRequestImageBrainUio_1.BrainRequestImageBrainUioToJSON)(value['imageBrain']),
|
|
78
|
+
'organisationId': value['organisationId'],
|
|
79
|
+
'role': value['role'],
|
|
80
|
+
'defaultLanguage': value['defaultLanguage'],
|
|
81
|
+
'description': value['description'],
|
|
82
|
+
'template': value['template'],
|
|
83
|
+
'color': value['color'],
|
|
84
|
+
'picture': value['picture'],
|
|
85
|
+
'createdAt': value['createdAt'],
|
|
86
|
+
'isActivated': value['isActivated'],
|
|
68
87
|
};
|
|
69
88
|
}
|
|
@@ -18,7 +18,7 @@ exports.BrainSubscriptionTextInteractionsUioFromJSON = BrainSubscriptionTextInte
|
|
|
18
18
|
exports.BrainSubscriptionTextInteractionsUioFromJSONTyped = BrainSubscriptionTextInteractionsUioFromJSONTyped;
|
|
19
19
|
exports.BrainSubscriptionTextInteractionsUioToJSON = BrainSubscriptionTextInteractionsUioToJSON;
|
|
20
20
|
exports.BrainSubscriptionTextInteractionsUioToJSONTyped = BrainSubscriptionTextInteractionsUioToJSONTyped;
|
|
21
|
-
|
|
21
|
+
const AdditionalUio_1 = require("./AdditionalUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the BrainSubscriptionTextInteractionsUio interface.
|
|
24
24
|
*/
|
|
@@ -44,8 +44,7 @@ function BrainSubscriptionTextInteractionsUioFromJSONTyped(json, ignoreDiscrimin
|
|
|
44
44
|
function BrainSubscriptionTextInteractionsUioToJSON(json) {
|
|
45
45
|
return BrainSubscriptionTextInteractionsUioToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
function BrainSubscriptionTextInteractionsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
function BrainSubscriptionTextInteractionsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
51
50
|
}
|
|
@@ -18,7 +18,7 @@ exports.BrainSubscriptionUioFromJSON = BrainSubscriptionUioFromJSON;
|
|
|
18
18
|
exports.BrainSubscriptionUioFromJSONTyped = BrainSubscriptionUioFromJSONTyped;
|
|
19
19
|
exports.BrainSubscriptionUioToJSON = BrainSubscriptionUioToJSON;
|
|
20
20
|
exports.BrainSubscriptionUioToJSONTyped = BrainSubscriptionUioToJSONTyped;
|
|
21
|
-
|
|
21
|
+
const BrainSubscriptionTextInteractionsUio_1 = require("./BrainSubscriptionTextInteractionsUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the BrainSubscriptionUio interface.
|
|
24
24
|
*/
|
|
@@ -49,8 +49,7 @@ function BrainSubscriptionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
function BrainSubscriptionUioToJSON(json) {
|
|
50
50
|
return BrainSubscriptionUioToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function BrainSubscriptionUioToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
function BrainSubscriptionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
53
|
if (value == null) {
|
|
55
54
|
return value;
|
|
56
55
|
}
|
|
@@ -83,6 +83,78 @@ export interface BrainUio {
|
|
|
83
83
|
* @memberof BrainUio
|
|
84
84
|
*/
|
|
85
85
|
imageBrain?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof BrainUio
|
|
90
|
+
*/
|
|
91
|
+
organisationId: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BrainUio
|
|
96
|
+
*/
|
|
97
|
+
role?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof BrainUio
|
|
102
|
+
*/
|
|
103
|
+
defaultLanguage?: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof BrainUio
|
|
108
|
+
*/
|
|
109
|
+
description?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof BrainUio
|
|
114
|
+
*/
|
|
115
|
+
template?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof BrainUio
|
|
120
|
+
*/
|
|
121
|
+
color?: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof BrainUio
|
|
126
|
+
*/
|
|
127
|
+
picture?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof BrainUio
|
|
132
|
+
*/
|
|
133
|
+
createdAt?: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof BrainUio
|
|
138
|
+
*/
|
|
139
|
+
isActivated?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {Array<string>}
|
|
143
|
+
* @memberof BrainUio
|
|
144
|
+
*/
|
|
145
|
+
knowledgeBaseId?: Array<string>;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {boolean}
|
|
149
|
+
* @memberof BrainUio
|
|
150
|
+
*/
|
|
151
|
+
isTemplate?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof BrainUio
|
|
156
|
+
*/
|
|
157
|
+
deleted?: boolean;
|
|
86
158
|
}
|
|
87
159
|
/**
|
|
88
160
|
* Check if a given object implements the BrainUio interface.
|
|
@@ -18,10 +18,10 @@ exports.BrainUioFromJSON = BrainUioFromJSON;
|
|
|
18
18
|
exports.BrainUioFromJSONTyped = BrainUioFromJSONTyped;
|
|
19
19
|
exports.BrainUioToJSON = BrainUioToJSON;
|
|
20
20
|
exports.BrainUioToJSONTyped = BrainUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
const BrainSubscriptionUio_1 = require("./BrainSubscriptionUio");
|
|
22
|
+
const PersonaUio_1 = require("./PersonaUio");
|
|
23
|
+
const EngineUio_1 = require("./EngineUio");
|
|
24
|
+
const PromptInitUio_1 = require("./PromptInitUio");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the BrainUio interface.
|
|
27
27
|
*/
|
|
@@ -38,6 +38,8 @@ function instanceOfBrainUio(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('promptInit' in value) || value['promptInit'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('organisationId' in value) || value['organisationId'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
function BrainUioFromJSON(json) {
|
|
@@ -58,13 +60,24 @@ function BrainUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'subscription': json['subscription'] == null ? undefined : (0, BrainSubscriptionUio_1.BrainSubscriptionUioFromJSON)(json['subscription']),
|
|
59
61
|
'speechOverrides': json['speechOverrides'] == null ? undefined : json['speechOverrides'],
|
|
60
62
|
'imageBrain': json['imageBrain'] == null ? undefined : json['imageBrain'],
|
|
63
|
+
'organisationId': json['organisationId'],
|
|
64
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
65
|
+
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
68
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
69
|
+
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
70
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
71
|
+
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
72
|
+
'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
|
|
73
|
+
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
74
|
+
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
61
75
|
};
|
|
62
76
|
}
|
|
63
77
|
function BrainUioToJSON(json) {
|
|
64
78
|
return BrainUioToJSONTyped(json, false);
|
|
65
79
|
}
|
|
66
|
-
function BrainUioToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
+
function BrainUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
81
|
if (value == null) {
|
|
69
82
|
return value;
|
|
70
83
|
}
|
|
@@ -79,5 +92,17 @@ function BrainUioToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
92
|
'subscription': (0, BrainSubscriptionUio_1.BrainSubscriptionUioToJSON)(value['subscription']),
|
|
80
93
|
'speechOverrides': value['speechOverrides'],
|
|
81
94
|
'imageBrain': value['imageBrain'],
|
|
95
|
+
'organisationId': value['organisationId'],
|
|
96
|
+
'role': value['role'],
|
|
97
|
+
'defaultLanguage': value['defaultLanguage'],
|
|
98
|
+
'description': value['description'],
|
|
99
|
+
'template': value['template'],
|
|
100
|
+
'color': value['color'],
|
|
101
|
+
'picture': value['picture'],
|
|
102
|
+
'createdAt': value['createdAt'],
|
|
103
|
+
'isActivated': value['isActivated'],
|
|
104
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
105
|
+
'isTemplate': value['isTemplate'],
|
|
106
|
+
'deleted': value['deleted'],
|
|
82
107
|
};
|
|
83
108
|
}
|
|
@@ -40,8 +40,7 @@ function BrainUsageMetricsIdUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
function BrainUsageMetricsIdUioToJSON(json) {
|
|
41
41
|
return BrainUsageMetricsIdUioToJSONTyped(json, false);
|
|
42
42
|
}
|
|
43
|
-
function BrainUsageMetricsIdUioToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function BrainUsageMetricsIdUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
@@ -18,8 +18,8 @@ exports.BrainUsageMetricsUioFromJSON = BrainUsageMetricsUioFromJSON;
|
|
|
18
18
|
exports.BrainUsageMetricsUioFromJSONTyped = BrainUsageMetricsUioFromJSONTyped;
|
|
19
19
|
exports.BrainUsageMetricsUioToJSON = BrainUsageMetricsUioToJSON;
|
|
20
20
|
exports.BrainUsageMetricsUioToJSONTyped = BrainUsageMetricsUioToJSONTyped;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const BrainUsageMetricsIdUio_1 = require("./BrainUsageMetricsIdUio");
|
|
22
|
+
const TransactionUio_1 = require("./TransactionUio");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the BrainUsageMetricsUio interface.
|
|
25
25
|
*/
|
|
@@ -42,8 +42,7 @@ function BrainUsageMetricsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
function BrainUsageMetricsUioToJSON(json) {
|
|
43
43
|
return BrainUsageMetricsUioToJSONTyped(json, false);
|
|
44
44
|
}
|
|
45
|
-
function BrainUsageMetricsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
function BrainUsageMetricsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
46
|
if (value == null) {
|
|
48
47
|
return value;
|
|
49
48
|
}
|
|
@@ -40,8 +40,7 @@ function ContentsToolsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
function ContentsToolsUioToJSON(json) {
|
|
41
41
|
return ContentsToolsUioToJSONTyped(json, false);
|
|
42
42
|
}
|
|
43
|
-
function ContentsToolsUioToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
function ContentsToolsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
44
|
if (value == null) {
|
|
46
45
|
return value;
|
|
47
46
|
}
|