@breign/client 1.0.0 → 1.0.2

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.
Files changed (77) hide show
  1. package/dist/apis/BrainApi.d.ts +290 -0
  2. package/dist/apis/BrainApi.js +637 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +19 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +21 -0
  7. package/dist/models/AdditionalUio.d.ts +44 -0
  8. package/dist/models/AdditionalUio.js +58 -0
  9. package/dist/models/BrainFlowCreateUio.d.ts +53 -0
  10. package/dist/models/BrainFlowCreateUio.js +57 -0
  11. package/dist/models/BrainFlowUio.d.ts +65 -0
  12. package/dist/models/BrainFlowUio.js +65 -0
  13. package/dist/models/BrainMetricsEventUio.d.ts +65 -0
  14. package/dist/models/BrainMetricsEventUio.js +69 -0
  15. package/dist/models/BrainMetricsOverviewUio.d.ts +64 -0
  16. package/dist/models/BrainMetricsOverviewUio.js +68 -0
  17. package/dist/models/BrainMetricsUnitsTypeUio.d.ts +27 -0
  18. package/dist/models/BrainMetricsUnitsTypeUio.js +53 -0
  19. package/dist/models/BrainMetricsValueUio.d.ts +57 -0
  20. package/dist/models/BrainMetricsValueUio.js +63 -0
  21. package/dist/models/BrainModuleTypeUio.d.ts +25 -0
  22. package/dist/models/BrainModuleTypeUio.js +51 -0
  23. package/dist/models/BrainModuleUio.d.ts +51 -0
  24. package/dist/models/BrainModuleUio.js +61 -0
  25. package/dist/models/BrainPatchUio.d.ts +166 -0
  26. package/dist/models/BrainPatchUio.js +108 -0
  27. package/dist/models/BrainRequestImageBrainUio.d.ts +50 -0
  28. package/dist/models/BrainRequestImageBrainUio.js +62 -0
  29. package/dist/models/BrainRequestUio.d.ts +114 -0
  30. package/dist/models/BrainRequestUio.js +88 -0
  31. package/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +39 -0
  32. package/dist/models/BrainSubscriptionTextInteractionsUio.js +55 -0
  33. package/dist/models/BrainSubscriptionUio.d.ts +57 -0
  34. package/dist/models/BrainSubscriptionUio.js +63 -0
  35. package/dist/models/BrainUio.d.ts +166 -0
  36. package/dist/models/BrainUio.js +108 -0
  37. package/dist/models/BrainUsageMetricsIdUio.d.ts +44 -0
  38. package/dist/models/BrainUsageMetricsIdUio.js +52 -0
  39. package/dist/models/BrainUsageMetricsUio.d.ts +46 -0
  40. package/dist/models/BrainUsageMetricsUio.js +54 -0
  41. package/dist/models/ContentsToolsUio.d.ts +44 -0
  42. package/dist/models/ContentsToolsUio.js +52 -0
  43. package/dist/models/CostMetricUio.d.ts +45 -0
  44. package/dist/models/CostMetricUio.js +57 -0
  45. package/dist/models/EngineTypeUio.d.ts +25 -0
  46. package/dist/models/EngineTypeUio.js +51 -0
  47. package/dist/models/EngineUio.d.ts +41 -0
  48. package/dist/models/EngineUio.js +55 -0
  49. package/dist/models/FileCreationRequestUio.d.ts +50 -0
  50. package/dist/models/FileCreationRequestUio.js +62 -0
  51. package/dist/models/FileStatusUio.d.ts +25 -0
  52. package/dist/models/FileStatusUio.js +51 -0
  53. package/dist/models/FileUio.d.ts +75 -0
  54. package/dist/models/FileUio.js +79 -0
  55. package/dist/models/FlowContentsSuggestionUio.d.ts +38 -0
  56. package/dist/models/FlowContentsSuggestionUio.js +54 -0
  57. package/dist/models/FlowContentsUio.d.ts +64 -0
  58. package/dist/models/FlowContentsUio.js +60 -0
  59. package/dist/models/FlowEntrypointsUio.d.ts +38 -0
  60. package/dist/models/FlowEntrypointsUio.js +52 -0
  61. package/dist/models/FlowOptionsUio.d.ts +46 -0
  62. package/dist/models/FlowOptionsUio.js +54 -0
  63. package/dist/models/PersonaUio.d.ts +33 -0
  64. package/dist/models/PersonaUio.js +52 -0
  65. package/dist/models/PromptInitUio.d.ts +33 -0
  66. package/dist/models/PromptInitUio.js +52 -0
  67. package/dist/models/SubscriptionMetricUio.d.ts +56 -0
  68. package/dist/models/SubscriptionMetricUio.js +56 -0
  69. package/dist/models/TransactionUio.d.ts +38 -0
  70. package/dist/models/TransactionUio.js +54 -0
  71. package/dist/models/index.d.ts +32 -0
  72. package/dist/models/index.js +50 -0
  73. package/dist/openapi.json +1668 -0
  74. package/dist/runtime.d.ts +184 -0
  75. package/dist/runtime.js +338 -0
  76. package/package.json +11 -5
  77. package/README.md +0 -10
@@ -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.BrainMetricsUnitsTypeUio = void 0;
17
+ exports.instanceOfBrainMetricsUnitsTypeUio = instanceOfBrainMetricsUnitsTypeUio;
18
+ exports.BrainMetricsUnitsTypeUioFromJSON = BrainMetricsUnitsTypeUioFromJSON;
19
+ exports.BrainMetricsUnitsTypeUioFromJSONTyped = BrainMetricsUnitsTypeUioFromJSONTyped;
20
+ exports.BrainMetricsUnitsTypeUioToJSON = BrainMetricsUnitsTypeUioToJSON;
21
+ exports.BrainMetricsUnitsTypeUioToJSONTyped = BrainMetricsUnitsTypeUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.BrainMetricsUnitsTypeUio = {
27
+ Tokens: 'TOKENS',
28
+ Currency: 'CURRENCY',
29
+ Milliseconds: 'MILLISECONDS',
30
+ Characters: 'CHARACTERS'
31
+ };
32
+ function instanceOfBrainMetricsUnitsTypeUio(value) {
33
+ for (const key in exports.BrainMetricsUnitsTypeUio) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.BrainMetricsUnitsTypeUio, key)) {
35
+ if (exports.BrainMetricsUnitsTypeUio[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function BrainMetricsUnitsTypeUioFromJSON(json) {
43
+ return BrainMetricsUnitsTypeUioFromJSONTyped(json, false);
44
+ }
45
+ function BrainMetricsUnitsTypeUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function BrainMetricsUnitsTypeUioToJSON(value) {
49
+ return value;
50
+ }
51
+ function BrainMetricsUnitsTypeUioToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,57 @@
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 { BrainMetricsUnitsTypeUio } from './BrainMetricsUnitsTypeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BrainMetricsValueUio
17
+ */
18
+ export interface BrainMetricsValueUio {
19
+ /**
20
+ *
21
+ * @type {BrainMetricsUnitsTypeUio}
22
+ * @memberof BrainMetricsValueUio
23
+ */
24
+ units: BrainMetricsUnitsTypeUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof BrainMetricsValueUio
29
+ */
30
+ type: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof BrainMetricsValueUio
35
+ */
36
+ amount: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof BrainMetricsValueUio
41
+ */
42
+ model?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof BrainMetricsValueUio
47
+ */
48
+ provider?: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the BrainMetricsValueUio interface.
52
+ */
53
+ export declare function instanceOfBrainMetricsValueUio(value: object): value is BrainMetricsValueUio;
54
+ export declare function BrainMetricsValueUioFromJSON(json: any): BrainMetricsValueUio;
55
+ export declare function BrainMetricsValueUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsValueUio;
56
+ export declare function BrainMetricsValueUioToJSON(json: any): BrainMetricsValueUio;
57
+ export declare function BrainMetricsValueUioToJSONTyped(value?: BrainMetricsValueUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfBrainMetricsValueUio = instanceOfBrainMetricsValueUio;
17
+ exports.BrainMetricsValueUioFromJSON = BrainMetricsValueUioFromJSON;
18
+ exports.BrainMetricsValueUioFromJSONTyped = BrainMetricsValueUioFromJSONTyped;
19
+ exports.BrainMetricsValueUioToJSON = BrainMetricsValueUioToJSON;
20
+ exports.BrainMetricsValueUioToJSONTyped = BrainMetricsValueUioToJSONTyped;
21
+ const BrainMetricsUnitsTypeUio_1 = require("./BrainMetricsUnitsTypeUio");
22
+ /**
23
+ * Check if a given object implements the BrainMetricsValueUio interface.
24
+ */
25
+ function instanceOfBrainMetricsValueUio(value) {
26
+ if (!('units' in value) || value['units'] === undefined)
27
+ return false;
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('amount' in value) || value['amount'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function BrainMetricsValueUioFromJSON(json) {
35
+ return BrainMetricsValueUioFromJSONTyped(json, false);
36
+ }
37
+ function BrainMetricsValueUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'units': (0, BrainMetricsUnitsTypeUio_1.BrainMetricsUnitsTypeUioFromJSON)(json['units']),
43
+ 'type': json['type'],
44
+ 'amount': json['amount'],
45
+ 'model': json['model'] == null ? undefined : json['model'],
46
+ 'provider': json['provider'] == null ? undefined : json['provider'],
47
+ };
48
+ }
49
+ function BrainMetricsValueUioToJSON(json) {
50
+ return BrainMetricsValueUioToJSONTyped(json, false);
51
+ }
52
+ function BrainMetricsValueUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'units': (0, BrainMetricsUnitsTypeUio_1.BrainMetricsUnitsTypeUioToJSON)(value['units']),
58
+ 'type': value['type'],
59
+ 'amount': value['amount'],
60
+ 'model': value['model'],
61
+ 'provider': value['provider'],
62
+ };
63
+ }
@@ -0,0 +1,25 @@
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
+ */
16
+ export declare const BrainModuleTypeUio: {
17
+ readonly ContextualKnowledgeWeaviate: "ContextualKnowledgeWeaviate";
18
+ readonly External: "External";
19
+ };
20
+ export type BrainModuleTypeUio = typeof BrainModuleTypeUio[keyof typeof BrainModuleTypeUio];
21
+ export declare function instanceOfBrainModuleTypeUio(value: any): boolean;
22
+ export declare function BrainModuleTypeUioFromJSON(json: any): BrainModuleTypeUio;
23
+ export declare function BrainModuleTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainModuleTypeUio;
24
+ export declare function BrainModuleTypeUioToJSON(value?: BrainModuleTypeUio | null): any;
25
+ export declare function BrainModuleTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): BrainModuleTypeUio;
@@ -0,0 +1,51 @@
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.BrainModuleTypeUio = void 0;
17
+ exports.instanceOfBrainModuleTypeUio = instanceOfBrainModuleTypeUio;
18
+ exports.BrainModuleTypeUioFromJSON = BrainModuleTypeUioFromJSON;
19
+ exports.BrainModuleTypeUioFromJSONTyped = BrainModuleTypeUioFromJSONTyped;
20
+ exports.BrainModuleTypeUioToJSON = BrainModuleTypeUioToJSON;
21
+ exports.BrainModuleTypeUioToJSONTyped = BrainModuleTypeUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.BrainModuleTypeUio = {
27
+ ContextualKnowledgeWeaviate: 'ContextualKnowledgeWeaviate',
28
+ External: 'External'
29
+ };
30
+ function instanceOfBrainModuleTypeUio(value) {
31
+ for (const key in exports.BrainModuleTypeUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.BrainModuleTypeUio, key)) {
33
+ if (exports.BrainModuleTypeUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function BrainModuleTypeUioFromJSON(json) {
41
+ return BrainModuleTypeUioFromJSONTyped(json, false);
42
+ }
43
+ function BrainModuleTypeUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function BrainModuleTypeUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function BrainModuleTypeUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,51 @@
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 { BrainModuleTypeUio } from './BrainModuleTypeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BrainModuleUio
17
+ */
18
+ export interface BrainModuleUio {
19
+ /**
20
+ *
21
+ * @type {BrainModuleTypeUio}
22
+ * @memberof BrainModuleUio
23
+ */
24
+ type: BrainModuleTypeUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof BrainModuleUio
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {object}
34
+ * @memberof BrainModuleUio
35
+ */
36
+ _configuration: object;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof BrainModuleUio
41
+ */
42
+ restricted?: boolean;
43
+ }
44
+ /**
45
+ * Check if a given object implements the BrainModuleUio interface.
46
+ */
47
+ export declare function instanceOfBrainModuleUio(value: object): value is BrainModuleUio;
48
+ export declare function BrainModuleUioFromJSON(json: any): BrainModuleUio;
49
+ export declare function BrainModuleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainModuleUio;
50
+ export declare function BrainModuleUioToJSON(json: any): BrainModuleUio;
51
+ export declare function BrainModuleUioToJSONTyped(value?: BrainModuleUio | 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.instanceOfBrainModuleUio = instanceOfBrainModuleUio;
17
+ exports.BrainModuleUioFromJSON = BrainModuleUioFromJSON;
18
+ exports.BrainModuleUioFromJSONTyped = BrainModuleUioFromJSONTyped;
19
+ exports.BrainModuleUioToJSON = BrainModuleUioToJSON;
20
+ exports.BrainModuleUioToJSONTyped = BrainModuleUioToJSONTyped;
21
+ const BrainModuleTypeUio_1 = require("./BrainModuleTypeUio");
22
+ /**
23
+ * Check if a given object implements the BrainModuleUio interface.
24
+ */
25
+ function instanceOfBrainModuleUio(value) {
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('_configuration' in value) || value['_configuration'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function BrainModuleUioFromJSON(json) {
35
+ return BrainModuleUioFromJSONTyped(json, false);
36
+ }
37
+ function BrainModuleUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'type': (0, BrainModuleTypeUio_1.BrainModuleTypeUioFromJSON)(json['type']),
43
+ 'name': json['name'],
44
+ '_configuration': json['configuration'],
45
+ 'restricted': json['restricted'] == null ? undefined : json['restricted'],
46
+ };
47
+ }
48
+ function BrainModuleUioToJSON(json) {
49
+ return BrainModuleUioToJSONTyped(json, false);
50
+ }
51
+ function BrainModuleUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'type': (0, BrainModuleTypeUio_1.BrainModuleTypeUioToJSON)(value['type']),
57
+ 'name': value['name'],
58
+ 'configuration': value['_configuration'],
59
+ 'restricted': value['restricted'],
60
+ };
61
+ }
@@ -0,0 +1,166 @@
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 { BrainSubscriptionUio } from './BrainSubscriptionUio';
13
+ import type { PersonaUio } from './PersonaUio';
14
+ import type { EngineUio } from './EngineUio';
15
+ import type { PromptInitUio } from './PromptInitUio';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BrainPatchUio
20
+ */
21
+ export interface BrainPatchUio {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BrainPatchUio
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BrainPatchUio
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {EngineUio}
37
+ * @memberof BrainPatchUio
38
+ */
39
+ engine: EngineUio;
40
+ /**
41
+ *
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof BrainPatchUio
44
+ */
45
+ modules: {
46
+ [key: string]: any;
47
+ };
48
+ /**
49
+ *
50
+ * @type {PersonaUio}
51
+ * @memberof BrainPatchUio
52
+ */
53
+ persona: PersonaUio;
54
+ /**
55
+ *
56
+ * @type {PromptInitUio}
57
+ * @memberof BrainPatchUio
58
+ */
59
+ promptInit: PromptInitUio;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof BrainPatchUio
64
+ */
65
+ flow?: string;
66
+ /**
67
+ *
68
+ * @type {BrainSubscriptionUio}
69
+ * @memberof BrainPatchUio
70
+ */
71
+ subscription?: BrainSubscriptionUio;
72
+ /**
73
+ *
74
+ * @type {{ [key: string]: string; }}
75
+ * @memberof BrainPatchUio
76
+ */
77
+ speechOverrides?: {
78
+ [key: string]: string;
79
+ };
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof BrainPatchUio
84
+ */
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;
158
+ }
159
+ /**
160
+ * Check if a given object implements the BrainPatchUio interface.
161
+ */
162
+ export declare function instanceOfBrainPatchUio(value: object): value is BrainPatchUio;
163
+ export declare function BrainPatchUioFromJSON(json: any): BrainPatchUio;
164
+ export declare function BrainPatchUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainPatchUio;
165
+ export declare function BrainPatchUioToJSON(json: any): BrainPatchUio;
166
+ export declare function BrainPatchUioToJSONTyped(value?: BrainPatchUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,108 @@
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.instanceOfBrainPatchUio = instanceOfBrainPatchUio;
17
+ exports.BrainPatchUioFromJSON = BrainPatchUioFromJSON;
18
+ exports.BrainPatchUioFromJSONTyped = BrainPatchUioFromJSONTyped;
19
+ exports.BrainPatchUioToJSON = BrainPatchUioToJSON;
20
+ exports.BrainPatchUioToJSONTyped = BrainPatchUioToJSONTyped;
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
+ /**
26
+ * Check if a given object implements the BrainPatchUio interface.
27
+ */
28
+ function instanceOfBrainPatchUio(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('engine' in value) || value['engine'] === undefined)
34
+ return false;
35
+ if (!('modules' in value) || value['modules'] === undefined)
36
+ return false;
37
+ if (!('persona' in value) || value['persona'] === undefined)
38
+ return false;
39
+ if (!('promptInit' in value) || value['promptInit'] === undefined)
40
+ return false;
41
+ if (!('organisationId' in value) || value['organisationId'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function BrainPatchUioFromJSON(json) {
46
+ return BrainPatchUioFromJSONTyped(json, false);
47
+ }
48
+ function BrainPatchUioFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'name': json['name'],
55
+ 'engine': (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
56
+ 'modules': json['modules'],
57
+ 'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
58
+ 'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
59
+ 'flow': json['flow'] == null ? undefined : json['flow'],
60
+ 'subscription': json['subscription'] == null ? undefined : (0, BrainSubscriptionUio_1.BrainSubscriptionUioFromJSON)(json['subscription']),
61
+ 'speechOverrides': json['speechOverrides'] == null ? undefined : json['speechOverrides'],
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'],
75
+ };
76
+ }
77
+ function BrainPatchUioToJSON(json) {
78
+ return BrainPatchUioToJSONTyped(json, false);
79
+ }
80
+ function BrainPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'name': value['name'],
87
+ 'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
88
+ 'modules': value['modules'],
89
+ 'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
90
+ 'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
91
+ 'flow': value['flow'],
92
+ 'subscription': (0, BrainSubscriptionUio_1.BrainSubscriptionUioToJSON)(value['subscription']),
93
+ 'speechOverrides': value['speechOverrides'],
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'],
107
+ };
108
+ }
@@ -0,0 +1,50 @@
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 BrainRequestImageBrainUio
16
+ */
17
+ export interface BrainRequestImageBrainUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrainRequestImageBrainUio
22
+ */
23
+ hash: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof BrainRequestImageBrainUio
28
+ */
29
+ size: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrainRequestImageBrainUio
34
+ */
35
+ contentType: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BrainRequestImageBrainUio
40
+ */
41
+ ext: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the BrainRequestImageBrainUio interface.
45
+ */
46
+ export declare function instanceOfBrainRequestImageBrainUio(value: object): value is BrainRequestImageBrainUio;
47
+ export declare function BrainRequestImageBrainUioFromJSON(json: any): BrainRequestImageBrainUio;
48
+ export declare function BrainRequestImageBrainUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainRequestImageBrainUio;
49
+ export declare function BrainRequestImageBrainUioToJSON(json: any): BrainRequestImageBrainUio;
50
+ export declare function BrainRequestImageBrainUioToJSONTyped(value?: BrainRequestImageBrainUio | null, ignoreDiscriminator?: boolean): any;