@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.
Files changed (75) hide show
  1. package/package.json +2 -1
  2. package/target/typescript/dist/apis/BrainApi.d.ts +280 -0
  3. package/target/typescript/dist/apis/BrainApi.js +1013 -0
  4. package/target/typescript/dist/apis/index.d.ts +1 -0
  5. package/target/typescript/dist/apis/index.js +19 -0
  6. package/target/typescript/dist/index.d.ts +3 -0
  7. package/target/typescript/dist/index.js +21 -0
  8. package/target/typescript/dist/models/AdditionalUio.d.ts +44 -0
  9. package/target/typescript/dist/models/AdditionalUio.js +59 -0
  10. package/target/typescript/dist/models/BrainFlowCreateUio.d.ts +53 -0
  11. package/target/typescript/dist/models/BrainFlowCreateUio.js +58 -0
  12. package/target/typescript/dist/models/BrainFlowUio.d.ts +65 -0
  13. package/target/typescript/dist/models/BrainFlowUio.js +66 -0
  14. package/target/typescript/dist/models/BrainMetricsEventUio.d.ts +65 -0
  15. package/target/typescript/dist/models/BrainMetricsEventUio.js +70 -0
  16. package/target/typescript/dist/models/BrainMetricsOverviewUio.d.ts +64 -0
  17. package/target/typescript/dist/models/BrainMetricsOverviewUio.js +69 -0
  18. package/target/typescript/dist/models/BrainMetricsUnitsTypeUio.d.ts +27 -0
  19. package/target/typescript/dist/models/BrainMetricsUnitsTypeUio.js +53 -0
  20. package/target/typescript/dist/models/BrainMetricsValueUio.d.ts +57 -0
  21. package/target/typescript/dist/models/BrainMetricsValueUio.js +64 -0
  22. package/target/typescript/dist/models/BrainModuleTypeUio.d.ts +25 -0
  23. package/target/typescript/dist/models/BrainModuleTypeUio.js +51 -0
  24. package/target/typescript/dist/models/BrainModuleUio.d.ts +51 -0
  25. package/target/typescript/dist/models/BrainModuleUio.js +62 -0
  26. package/target/typescript/dist/models/BrainPatchUio.d.ts +94 -0
  27. package/target/typescript/dist/models/BrainPatchUio.js +83 -0
  28. package/target/typescript/dist/models/BrainRequestImageBrainUio.d.ts +50 -0
  29. package/target/typescript/dist/models/BrainRequestImageBrainUio.js +63 -0
  30. package/target/typescript/dist/models/BrainRequestUio.d.ts +60 -0
  31. package/target/typescript/dist/models/BrainRequestUio.js +69 -0
  32. package/target/typescript/dist/models/BrainSubscriptionTextInteractionsUio.d.ts +39 -0
  33. package/target/typescript/dist/models/BrainSubscriptionTextInteractionsUio.js +56 -0
  34. package/target/typescript/dist/models/BrainSubscriptionUio.d.ts +57 -0
  35. package/target/typescript/dist/models/BrainSubscriptionUio.js +64 -0
  36. package/target/typescript/dist/models/BrainUio.d.ts +94 -0
  37. package/target/typescript/dist/models/BrainUio.js +83 -0
  38. package/target/typescript/dist/models/BrainUsageMetricsIdUio.d.ts +44 -0
  39. package/target/typescript/dist/models/BrainUsageMetricsIdUio.js +53 -0
  40. package/target/typescript/dist/models/BrainUsageMetricsUio.d.ts +46 -0
  41. package/target/typescript/dist/models/BrainUsageMetricsUio.js +55 -0
  42. package/target/typescript/dist/models/ContentsToolsUio.d.ts +44 -0
  43. package/target/typescript/dist/models/ContentsToolsUio.js +53 -0
  44. package/target/typescript/dist/models/CostMetricUio.d.ts +45 -0
  45. package/target/typescript/dist/models/CostMetricUio.js +58 -0
  46. package/target/typescript/dist/models/EngineTypeUio.d.ts +25 -0
  47. package/target/typescript/dist/models/EngineTypeUio.js +51 -0
  48. package/target/typescript/dist/models/EngineUio.d.ts +41 -0
  49. package/target/typescript/dist/models/EngineUio.js +56 -0
  50. package/target/typescript/dist/models/FileCreationRequestUio.d.ts +50 -0
  51. package/target/typescript/dist/models/FileCreationRequestUio.js +63 -0
  52. package/target/typescript/dist/models/FileStatusUio.d.ts +25 -0
  53. package/target/typescript/dist/models/FileStatusUio.js +51 -0
  54. package/target/typescript/dist/models/FileUio.d.ts +75 -0
  55. package/target/typescript/dist/models/FileUio.js +80 -0
  56. package/target/typescript/dist/models/FlowContentsSuggestionUio.d.ts +38 -0
  57. package/target/typescript/dist/models/FlowContentsSuggestionUio.js +55 -0
  58. package/target/typescript/dist/models/FlowContentsUio.d.ts +64 -0
  59. package/target/typescript/dist/models/FlowContentsUio.js +61 -0
  60. package/target/typescript/dist/models/FlowEntrypointsUio.d.ts +38 -0
  61. package/target/typescript/dist/models/FlowEntrypointsUio.js +53 -0
  62. package/target/typescript/dist/models/FlowOptionsUio.d.ts +46 -0
  63. package/target/typescript/dist/models/FlowOptionsUio.js +55 -0
  64. package/target/typescript/dist/models/PersonaUio.d.ts +33 -0
  65. package/target/typescript/dist/models/PersonaUio.js +58 -0
  66. package/target/typescript/dist/models/PromptInitUio.d.ts +33 -0
  67. package/target/typescript/dist/models/PromptInitUio.js +58 -0
  68. package/target/typescript/dist/models/SubscriptionMetricUio.d.ts +56 -0
  69. package/target/typescript/dist/models/SubscriptionMetricUio.js +57 -0
  70. package/target/typescript/dist/models/TransactionUio.d.ts +38 -0
  71. package/target/typescript/dist/models/TransactionUio.js +55 -0
  72. package/target/typescript/dist/models/index.d.ts +32 -0
  73. package/target/typescript/dist/models/index.js +50 -0
  74. package/target/typescript/dist/runtime.d.ts +184 -0
  75. package/target/typescript/dist/runtime.js +564 -0
@@ -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.instanceOfBrainUsageMetricsUio = instanceOfBrainUsageMetricsUio;
17
+ exports.BrainUsageMetricsUioFromJSON = BrainUsageMetricsUioFromJSON;
18
+ exports.BrainUsageMetricsUioFromJSONTyped = BrainUsageMetricsUioFromJSONTyped;
19
+ exports.BrainUsageMetricsUioToJSON = BrainUsageMetricsUioToJSON;
20
+ exports.BrainUsageMetricsUioToJSONTyped = BrainUsageMetricsUioToJSONTyped;
21
+ var BrainUsageMetricsIdUio_1 = require("./BrainUsageMetricsIdUio");
22
+ var TransactionUio_1 = require("./TransactionUio");
23
+ /**
24
+ * Check if a given object implements the BrainUsageMetricsUio interface.
25
+ */
26
+ function instanceOfBrainUsageMetricsUio(value) {
27
+ return true;
28
+ }
29
+ function BrainUsageMetricsUioFromJSON(json) {
30
+ return BrainUsageMetricsUioFromJSONTyped(json, false);
31
+ }
32
+ function BrainUsageMetricsUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['_id'] == null ? undefined : (0, BrainUsageMetricsIdUio_1.BrainUsageMetricsIdUioFromJSON)(json['_id']),
38
+ 'total': json['total'] == null ? undefined : json['total'],
39
+ 'cost': json['cost'] == null ? undefined : (0, TransactionUio_1.TransactionUioFromJSON)(json['cost']),
40
+ };
41
+ }
42
+ function BrainUsageMetricsUioToJSON(json) {
43
+ return BrainUsageMetricsUioToJSONTyped(json, false);
44
+ }
45
+ function BrainUsageMetricsUioToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ '_id': (0, BrainUsageMetricsIdUio_1.BrainUsageMetricsIdUioToJSON)(value['id']),
52
+ 'total': value['total'],
53
+ 'cost': (0, TransactionUio_1.TransactionUioToJSON)(value['cost']),
54
+ };
55
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ContentsToolsUio
16
+ */
17
+ export interface ContentsToolsUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof ContentsToolsUio
22
+ */
23
+ exclusive?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof ContentsToolsUio
28
+ */
29
+ forbidden?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof ContentsToolsUio
34
+ */
35
+ allowed?: Array<string>;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ContentsToolsUio interface.
39
+ */
40
+ export declare function instanceOfContentsToolsUio(value: object): value is ContentsToolsUio;
41
+ export declare function ContentsToolsUioFromJSON(json: any): ContentsToolsUio;
42
+ export declare function ContentsToolsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentsToolsUio;
43
+ export declare function ContentsToolsUioToJSON(json: any): ContentsToolsUio;
44
+ export declare function ContentsToolsUioToJSONTyped(value?: ContentsToolsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfContentsToolsUio = instanceOfContentsToolsUio;
17
+ exports.ContentsToolsUioFromJSON = ContentsToolsUioFromJSON;
18
+ exports.ContentsToolsUioFromJSONTyped = ContentsToolsUioFromJSONTyped;
19
+ exports.ContentsToolsUioToJSON = ContentsToolsUioToJSON;
20
+ exports.ContentsToolsUioToJSONTyped = ContentsToolsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ContentsToolsUio interface.
23
+ */
24
+ function instanceOfContentsToolsUio(value) {
25
+ return true;
26
+ }
27
+ function ContentsToolsUioFromJSON(json) {
28
+ return ContentsToolsUioFromJSONTyped(json, false);
29
+ }
30
+ function ContentsToolsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'exclusive': json['exclusive'] == null ? undefined : json['exclusive'],
36
+ 'forbidden': json['forbidden'] == null ? undefined : json['forbidden'],
37
+ 'allowed': json['allowed'] == null ? undefined : json['allowed'],
38
+ };
39
+ }
40
+ function ContentsToolsUioToJSON(json) {
41
+ return ContentsToolsUioToJSONTyped(json, false);
42
+ }
43
+ function ContentsToolsUioToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'exclusive': value['exclusive'],
50
+ 'forbidden': value['forbidden'],
51
+ 'allowed': value['allowed'],
52
+ };
53
+ }
@@ -0,0 +1,45 @@
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 { TransactionUio } from './TransactionUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CostMetricUio
17
+ */
18
+ export interface CostMetricUio {
19
+ /**
20
+ *
21
+ * @type {TransactionUio}
22
+ * @memberof CostMetricUio
23
+ */
24
+ voiceInteractions: TransactionUio;
25
+ /**
26
+ *
27
+ * @type {TransactionUio}
28
+ * @memberof CostMetricUio
29
+ */
30
+ textInteractions: TransactionUio;
31
+ /**
32
+ *
33
+ * @type {TransactionUio}
34
+ * @memberof CostMetricUio
35
+ */
36
+ total?: TransactionUio;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CostMetricUio interface.
40
+ */
41
+ export declare function instanceOfCostMetricUio(value: object): value is CostMetricUio;
42
+ export declare function CostMetricUioFromJSON(json: any): CostMetricUio;
43
+ export declare function CostMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CostMetricUio;
44
+ export declare function CostMetricUioToJSON(json: any): CostMetricUio;
45
+ export declare function CostMetricUioToJSONTyped(value?: CostMetricUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCostMetricUio = instanceOfCostMetricUio;
17
+ exports.CostMetricUioFromJSON = CostMetricUioFromJSON;
18
+ exports.CostMetricUioFromJSONTyped = CostMetricUioFromJSONTyped;
19
+ exports.CostMetricUioToJSON = CostMetricUioToJSON;
20
+ exports.CostMetricUioToJSONTyped = CostMetricUioToJSONTyped;
21
+ var TransactionUio_1 = require("./TransactionUio");
22
+ /**
23
+ * Check if a given object implements the CostMetricUio interface.
24
+ */
25
+ function instanceOfCostMetricUio(value) {
26
+ if (!('voiceInteractions' in value) || value['voiceInteractions'] === undefined)
27
+ return false;
28
+ if (!('textInteractions' in value) || value['textInteractions'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CostMetricUioFromJSON(json) {
33
+ return CostMetricUioFromJSONTyped(json, false);
34
+ }
35
+ function CostMetricUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'voiceInteractions': (0, TransactionUio_1.TransactionUioFromJSON)(json['voiceInteractions']),
41
+ 'textInteractions': (0, TransactionUio_1.TransactionUioFromJSON)(json['textInteractions']),
42
+ 'total': json['total'] == null ? undefined : (0, TransactionUio_1.TransactionUioFromJSON)(json['total']),
43
+ };
44
+ }
45
+ function CostMetricUioToJSON(json) {
46
+ return CostMetricUioToJSONTyped(json, false);
47
+ }
48
+ function CostMetricUioToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'voiceInteractions': (0, TransactionUio_1.TransactionUioToJSON)(value['voiceInteractions']),
55
+ 'textInteractions': (0, TransactionUio_1.TransactionUioToJSON)(value['textInteractions']),
56
+ 'total': (0, TransactionUio_1.TransactionUioToJSON)(value['total']),
57
+ };
58
+ }
@@ -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 EngineTypeUio: {
17
+ readonly Llamacpp: "llamacpp";
18
+ readonly Openai: "openai";
19
+ };
20
+ export type EngineTypeUio = typeof EngineTypeUio[keyof typeof EngineTypeUio];
21
+ export declare function instanceOfEngineTypeUio(value: any): boolean;
22
+ export declare function EngineTypeUioFromJSON(json: any): EngineTypeUio;
23
+ export declare function EngineTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EngineTypeUio;
24
+ export declare function EngineTypeUioToJSON(value?: EngineTypeUio | null): any;
25
+ export declare function EngineTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): EngineTypeUio;
@@ -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.EngineTypeUio = void 0;
17
+ exports.instanceOfEngineTypeUio = instanceOfEngineTypeUio;
18
+ exports.EngineTypeUioFromJSON = EngineTypeUioFromJSON;
19
+ exports.EngineTypeUioFromJSONTyped = EngineTypeUioFromJSONTyped;
20
+ exports.EngineTypeUioToJSON = EngineTypeUioToJSON;
21
+ exports.EngineTypeUioToJSONTyped = EngineTypeUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.EngineTypeUio = {
27
+ Llamacpp: 'llamacpp',
28
+ Openai: 'openai'
29
+ };
30
+ function instanceOfEngineTypeUio(value) {
31
+ for (var key in exports.EngineTypeUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.EngineTypeUio, key)) {
33
+ if (exports.EngineTypeUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function EngineTypeUioFromJSON(json) {
41
+ return EngineTypeUioFromJSONTyped(json, false);
42
+ }
43
+ function EngineTypeUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function EngineTypeUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function EngineTypeUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,41 @@
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 { EngineTypeUio } from './EngineTypeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EngineUio
17
+ */
18
+ export interface EngineUio {
19
+ /**
20
+ *
21
+ * @type {EngineTypeUio}
22
+ * @memberof EngineUio
23
+ */
24
+ type: EngineTypeUio;
25
+ /**
26
+ *
27
+ * @type {{ [key: string]: any; }}
28
+ * @memberof EngineUio
29
+ */
30
+ _configuration: {
31
+ [key: string]: any;
32
+ };
33
+ }
34
+ /**
35
+ * Check if a given object implements the EngineUio interface.
36
+ */
37
+ export declare function instanceOfEngineUio(value: object): value is EngineUio;
38
+ export declare function EngineUioFromJSON(json: any): EngineUio;
39
+ export declare function EngineUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EngineUio;
40
+ export declare function EngineUioToJSON(json: any): EngineUio;
41
+ export declare function EngineUioToJSONTyped(value?: EngineUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfEngineUio = instanceOfEngineUio;
17
+ exports.EngineUioFromJSON = EngineUioFromJSON;
18
+ exports.EngineUioFromJSONTyped = EngineUioFromJSONTyped;
19
+ exports.EngineUioToJSON = EngineUioToJSON;
20
+ exports.EngineUioToJSONTyped = EngineUioToJSONTyped;
21
+ var EngineTypeUio_1 = require("./EngineTypeUio");
22
+ /**
23
+ * Check if a given object implements the EngineUio interface.
24
+ */
25
+ function instanceOfEngineUio(value) {
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (!('_configuration' in value) || value['_configuration'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function EngineUioFromJSON(json) {
33
+ return EngineUioFromJSONTyped(json, false);
34
+ }
35
+ function EngineUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'type': (0, EngineTypeUio_1.EngineTypeUioFromJSON)(json['type']),
41
+ '_configuration': json['configuration'],
42
+ };
43
+ }
44
+ function EngineUioToJSON(json) {
45
+ return EngineUioToJSONTyped(json, false);
46
+ }
47
+ function EngineUioToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'type': (0, EngineTypeUio_1.EngineTypeUioToJSON)(value['type']),
54
+ 'configuration': value['_configuration'],
55
+ };
56
+ }
@@ -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 FileCreationRequestUio
16
+ */
17
+ export interface FileCreationRequestUio {
18
+ /**
19
+ * MIME type of the image file
20
+ * @type {string}
21
+ * @memberof FileCreationRequestUio
22
+ */
23
+ contentType: string;
24
+ /**
25
+ * File extension
26
+ * @type {string}
27
+ * @memberof FileCreationRequestUio
28
+ */
29
+ ext: string;
30
+ /**
31
+ * File size in bytes
32
+ * @type {number}
33
+ * @memberof FileCreationRequestUio
34
+ */
35
+ size: number;
36
+ /**
37
+ * File hash
38
+ * @type {string}
39
+ * @memberof FileCreationRequestUio
40
+ */
41
+ hash: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the FileCreationRequestUio interface.
45
+ */
46
+ export declare function instanceOfFileCreationRequestUio(value: object): value is FileCreationRequestUio;
47
+ export declare function FileCreationRequestUioFromJSON(json: any): FileCreationRequestUio;
48
+ export declare function FileCreationRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileCreationRequestUio;
49
+ export declare function FileCreationRequestUioToJSON(json: any): FileCreationRequestUio;
50
+ export declare function FileCreationRequestUioToJSONTyped(value?: FileCreationRequestUio | 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.instanceOfFileCreationRequestUio = instanceOfFileCreationRequestUio;
17
+ exports.FileCreationRequestUioFromJSON = FileCreationRequestUioFromJSON;
18
+ exports.FileCreationRequestUioFromJSONTyped = FileCreationRequestUioFromJSONTyped;
19
+ exports.FileCreationRequestUioToJSON = FileCreationRequestUioToJSON;
20
+ exports.FileCreationRequestUioToJSONTyped = FileCreationRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FileCreationRequestUio interface.
23
+ */
24
+ function instanceOfFileCreationRequestUio(value) {
25
+ if (!('contentType' in value) || value['contentType'] === undefined)
26
+ return false;
27
+ if (!('ext' in value) || value['ext'] === undefined)
28
+ return false;
29
+ if (!('size' in value) || value['size'] === undefined)
30
+ return false;
31
+ if (!('hash' in value) || value['hash'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function FileCreationRequestUioFromJSON(json) {
36
+ return FileCreationRequestUioFromJSONTyped(json, false);
37
+ }
38
+ function FileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'contentType': json['contentType'],
44
+ 'ext': json['ext'],
45
+ 'size': json['size'],
46
+ 'hash': json['hash'],
47
+ };
48
+ }
49
+ function FileCreationRequestUioToJSON(json) {
50
+ return FileCreationRequestUioToJSONTyped(json, false);
51
+ }
52
+ function FileCreationRequestUioToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'contentType': value['contentType'],
59
+ 'ext': value['ext'],
60
+ 'size': value['size'],
61
+ 'hash': value['hash'],
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 FileStatusUio: {
17
+ readonly Pending: "PENDING";
18
+ readonly Uploaded: "UPLOADED";
19
+ };
20
+ export type FileStatusUio = typeof FileStatusUio[keyof typeof FileStatusUio];
21
+ export declare function instanceOfFileStatusUio(value: any): boolean;
22
+ export declare function FileStatusUioFromJSON(json: any): FileStatusUio;
23
+ export declare function FileStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileStatusUio;
24
+ export declare function FileStatusUioToJSON(value?: FileStatusUio | null): any;
25
+ export declare function FileStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): FileStatusUio;
@@ -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.FileStatusUio = void 0;
17
+ exports.instanceOfFileStatusUio = instanceOfFileStatusUio;
18
+ exports.FileStatusUioFromJSON = FileStatusUioFromJSON;
19
+ exports.FileStatusUioFromJSONTyped = FileStatusUioFromJSONTyped;
20
+ exports.FileStatusUioToJSON = FileStatusUioToJSON;
21
+ exports.FileStatusUioToJSONTyped = FileStatusUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.FileStatusUio = {
27
+ Pending: 'PENDING',
28
+ Uploaded: 'UPLOADED'
29
+ };
30
+ function instanceOfFileStatusUio(value) {
31
+ for (var key in exports.FileStatusUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.FileStatusUio, key)) {
33
+ if (exports.FileStatusUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function FileStatusUioFromJSON(json) {
41
+ return FileStatusUioFromJSONTyped(json, false);
42
+ }
43
+ function FileStatusUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function FileStatusUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function FileStatusUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }