@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,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.instanceOfBrainUio = instanceOfBrainUio;
17
+ exports.BrainUioFromJSON = BrainUioFromJSON;
18
+ exports.BrainUioFromJSONTyped = BrainUioFromJSONTyped;
19
+ exports.BrainUioToJSON = BrainUioToJSON;
20
+ exports.BrainUioToJSONTyped = BrainUioToJSONTyped;
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 BrainUio interface.
27
+ */
28
+ function instanceOfBrainUio(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 BrainUioFromJSON(json) {
46
+ return BrainUioFromJSONTyped(json, false);
47
+ }
48
+ function BrainUioFromJSONTyped(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 BrainUioToJSON(json) {
78
+ return BrainUioToJSONTyped(json, false);
79
+ }
80
+ function BrainUioToJSONTyped(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,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 BrainUsageMetricsIdUio
16
+ */
17
+ export interface BrainUsageMetricsIdUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrainUsageMetricsIdUio
22
+ */
23
+ provider?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BrainUsageMetricsIdUio
28
+ */
29
+ model?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrainUsageMetricsIdUio
34
+ */
35
+ type?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the BrainUsageMetricsIdUio interface.
39
+ */
40
+ export declare function instanceOfBrainUsageMetricsIdUio(value: object): value is BrainUsageMetricsIdUio;
41
+ export declare function BrainUsageMetricsIdUioFromJSON(json: any): BrainUsageMetricsIdUio;
42
+ export declare function BrainUsageMetricsIdUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainUsageMetricsIdUio;
43
+ export declare function BrainUsageMetricsIdUioToJSON(json: any): BrainUsageMetricsIdUio;
44
+ export declare function BrainUsageMetricsIdUioToJSONTyped(value?: BrainUsageMetricsIdUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfBrainUsageMetricsIdUio = instanceOfBrainUsageMetricsIdUio;
17
+ exports.BrainUsageMetricsIdUioFromJSON = BrainUsageMetricsIdUioFromJSON;
18
+ exports.BrainUsageMetricsIdUioFromJSONTyped = BrainUsageMetricsIdUioFromJSONTyped;
19
+ exports.BrainUsageMetricsIdUioToJSON = BrainUsageMetricsIdUioToJSON;
20
+ exports.BrainUsageMetricsIdUioToJSONTyped = BrainUsageMetricsIdUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BrainUsageMetricsIdUio interface.
23
+ */
24
+ function instanceOfBrainUsageMetricsIdUio(value) {
25
+ return true;
26
+ }
27
+ function BrainUsageMetricsIdUioFromJSON(json) {
28
+ return BrainUsageMetricsIdUioFromJSONTyped(json, false);
29
+ }
30
+ function BrainUsageMetricsIdUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'provider': json['provider'] == null ? undefined : json['provider'],
36
+ 'model': json['model'] == null ? undefined : json['model'],
37
+ 'type': json['type'] == null ? undefined : json['type'],
38
+ };
39
+ }
40
+ function BrainUsageMetricsIdUioToJSON(json) {
41
+ return BrainUsageMetricsIdUioToJSONTyped(json, false);
42
+ }
43
+ function BrainUsageMetricsIdUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'provider': value['provider'],
49
+ 'model': value['model'],
50
+ 'type': value['type'],
51
+ };
52
+ }
@@ -0,0 +1,46 @@
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 { BrainUsageMetricsIdUio } from './BrainUsageMetricsIdUio';
13
+ import type { TransactionUio } from './TransactionUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BrainUsageMetricsUio
18
+ */
19
+ export interface BrainUsageMetricsUio {
20
+ /**
21
+ *
22
+ * @type {BrainUsageMetricsIdUio}
23
+ * @memberof BrainUsageMetricsUio
24
+ */
25
+ id?: BrainUsageMetricsIdUio;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof BrainUsageMetricsUio
30
+ */
31
+ total?: number;
32
+ /**
33
+ *
34
+ * @type {TransactionUio}
35
+ * @memberof BrainUsageMetricsUio
36
+ */
37
+ cost?: TransactionUio;
38
+ }
39
+ /**
40
+ * Check if a given object implements the BrainUsageMetricsUio interface.
41
+ */
42
+ export declare function instanceOfBrainUsageMetricsUio(value: object): value is BrainUsageMetricsUio;
43
+ export declare function BrainUsageMetricsUioFromJSON(json: any): BrainUsageMetricsUio;
44
+ export declare function BrainUsageMetricsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainUsageMetricsUio;
45
+ export declare function BrainUsageMetricsUioToJSON(json: any): BrainUsageMetricsUio;
46
+ export declare function BrainUsageMetricsUioToJSONTyped(value?: BrainUsageMetricsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ const BrainUsageMetricsIdUio_1 = require("./BrainUsageMetricsIdUio");
22
+ const 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 = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ '_id': (0, BrainUsageMetricsIdUio_1.BrainUsageMetricsIdUioToJSON)(value['id']),
51
+ 'total': value['total'],
52
+ 'cost': (0, TransactionUio_1.TransactionUioToJSON)(value['cost']),
53
+ };
54
+ }
@@ -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,52 @@
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 = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'exclusive': value['exclusive'],
49
+ 'forbidden': value['forbidden'],
50
+ 'allowed': value['allowed'],
51
+ };
52
+ }
@@ -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,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCostMetricUio = instanceOfCostMetricUio;
17
+ exports.CostMetricUioFromJSON = CostMetricUioFromJSON;
18
+ exports.CostMetricUioFromJSONTyped = CostMetricUioFromJSONTyped;
19
+ exports.CostMetricUioToJSON = CostMetricUioToJSON;
20
+ exports.CostMetricUioToJSONTyped = CostMetricUioToJSONTyped;
21
+ const 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 = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'voiceInteractions': (0, TransactionUio_1.TransactionUioToJSON)(value['voiceInteractions']),
54
+ 'textInteractions': (0, TransactionUio_1.TransactionUioToJSON)(value['textInteractions']),
55
+ 'total': (0, TransactionUio_1.TransactionUioToJSON)(value['total']),
56
+ };
57
+ }
@@ -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 (const 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,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.instanceOfEngineUio = instanceOfEngineUio;
17
+ exports.EngineUioFromJSON = EngineUioFromJSON;
18
+ exports.EngineUioFromJSONTyped = EngineUioFromJSONTyped;
19
+ exports.EngineUioToJSON = EngineUioToJSON;
20
+ exports.EngineUioToJSONTyped = EngineUioToJSONTyped;
21
+ const 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 = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'type': (0, EngineTypeUio_1.EngineTypeUioToJSON)(value['type']),
53
+ 'configuration': value['_configuration'],
54
+ };
55
+ }