@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,27 @@
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 BrainMetricsUnitsTypeUio: {
17
+ readonly Tokens: "TOKENS";
18
+ readonly Currency: "CURRENCY";
19
+ readonly Milliseconds: "MILLISECONDS";
20
+ readonly Characters: "CHARACTERS";
21
+ };
22
+ export type BrainMetricsUnitsTypeUio = typeof BrainMetricsUnitsTypeUio[keyof typeof BrainMetricsUnitsTypeUio];
23
+ export declare function instanceOfBrainMetricsUnitsTypeUio(value: any): boolean;
24
+ export declare function BrainMetricsUnitsTypeUioFromJSON(json: any): BrainMetricsUnitsTypeUio;
25
+ export declare function BrainMetricsUnitsTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsUnitsTypeUio;
26
+ export declare function BrainMetricsUnitsTypeUioToJSON(value?: BrainMetricsUnitsTypeUio | null): any;
27
+ export declare function BrainMetricsUnitsTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): BrainMetricsUnitsTypeUio;
@@ -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 (var 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,64 @@
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
+ var 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) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'units': (0, BrainMetricsUnitsTypeUio_1.BrainMetricsUnitsTypeUioToJSON)(value['units']),
59
+ 'type': value['type'],
60
+ 'amount': value['amount'],
61
+ 'model': value['model'],
62
+ 'provider': value['provider'],
63
+ };
64
+ }
@@ -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 (var 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,62 @@
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
+ var 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) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'type': (0, BrainModuleTypeUio_1.BrainModuleTypeUioToJSON)(value['type']),
58
+ 'name': value['name'],
59
+ 'configuration': value['_configuration'],
60
+ 'restricted': value['restricted'],
61
+ };
62
+ }
@@ -0,0 +1,94 @@
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
+ * Check if a given object implements the BrainPatchUio interface.
89
+ */
90
+ export declare function instanceOfBrainPatchUio(value: object): value is BrainPatchUio;
91
+ export declare function BrainPatchUioFromJSON(json: any): BrainPatchUio;
92
+ export declare function BrainPatchUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainPatchUio;
93
+ export declare function BrainPatchUioToJSON(json: any): BrainPatchUio;
94
+ export declare function BrainPatchUioToJSONTyped(value?: BrainPatchUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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
+ var BrainSubscriptionUio_1 = require("./BrainSubscriptionUio");
22
+ var PersonaUio_1 = require("./PersonaUio");
23
+ var EngineUio_1 = require("./EngineUio");
24
+ var 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
+ return true;
42
+ }
43
+ function BrainPatchUioFromJSON(json) {
44
+ return BrainPatchUioFromJSONTyped(json, false);
45
+ }
46
+ function BrainPatchUioFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'name': json['name'],
53
+ 'engine': (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
54
+ 'modules': json['modules'],
55
+ 'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
56
+ 'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
57
+ 'flow': json['flow'] == null ? undefined : json['flow'],
58
+ 'subscription': json['subscription'] == null ? undefined : (0, BrainSubscriptionUio_1.BrainSubscriptionUioFromJSON)(json['subscription']),
59
+ 'speechOverrides': json['speechOverrides'] == null ? undefined : json['speechOverrides'],
60
+ 'imageBrain': json['imageBrain'] == null ? undefined : json['imageBrain'],
61
+ };
62
+ }
63
+ function BrainPatchUioToJSON(json) {
64
+ return BrainPatchUioToJSONTyped(json, false);
65
+ }
66
+ function BrainPatchUioToJSONTyped(value, ignoreDiscriminator) {
67
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'name': value['name'],
74
+ 'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
75
+ 'modules': value['modules'],
76
+ 'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
77
+ 'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
78
+ 'flow': value['flow'],
79
+ 'subscription': (0, BrainSubscriptionUio_1.BrainSubscriptionUioToJSON)(value['subscription']),
80
+ 'speechOverrides': value['speechOverrides'],
81
+ 'imageBrain': value['imageBrain'],
82
+ };
83
+ }
@@ -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;
@@ -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.instanceOfBrainRequestImageBrainUio = instanceOfBrainRequestImageBrainUio;
17
+ exports.BrainRequestImageBrainUioFromJSON = BrainRequestImageBrainUioFromJSON;
18
+ exports.BrainRequestImageBrainUioFromJSONTyped = BrainRequestImageBrainUioFromJSONTyped;
19
+ exports.BrainRequestImageBrainUioToJSON = BrainRequestImageBrainUioToJSON;
20
+ exports.BrainRequestImageBrainUioToJSONTyped = BrainRequestImageBrainUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BrainRequestImageBrainUio interface.
23
+ */
24
+ function instanceOfBrainRequestImageBrainUio(value) {
25
+ if (!('hash' in value) || value['hash'] === undefined)
26
+ return false;
27
+ if (!('size' in value) || value['size'] === undefined)
28
+ return false;
29
+ if (!('contentType' in value) || value['contentType'] === undefined)
30
+ return false;
31
+ if (!('ext' in value) || value['ext'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function BrainRequestImageBrainUioFromJSON(json) {
36
+ return BrainRequestImageBrainUioFromJSONTyped(json, false);
37
+ }
38
+ function BrainRequestImageBrainUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'hash': json['hash'],
44
+ 'size': json['size'],
45
+ 'contentType': json['contentType'],
46
+ 'ext': json['ext'],
47
+ };
48
+ }
49
+ function BrainRequestImageBrainUioToJSON(json) {
50
+ return BrainRequestImageBrainUioToJSONTyped(json, false);
51
+ }
52
+ function BrainRequestImageBrainUioToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'hash': value['hash'],
59
+ 'size': value['size'],
60
+ 'contentType': value['contentType'],
61
+ 'ext': value['ext'],
62
+ };
63
+ }