@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
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -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 AdditionalUio
16
+ */
17
+ export interface AdditionalUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdditionalUio
22
+ */
23
+ price: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdditionalUio
28
+ */
29
+ amountForPrice: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdditionalUio
34
+ */
35
+ currency: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AdditionalUio interface.
39
+ */
40
+ export declare function instanceOfAdditionalUio(value: object): value is AdditionalUio;
41
+ export declare function AdditionalUioFromJSON(json: any): AdditionalUio;
42
+ export declare function AdditionalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalUio;
43
+ export declare function AdditionalUioToJSON(json: any): AdditionalUio;
44
+ export declare function AdditionalUioToJSONTyped(value?: AdditionalUio | 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.instanceOfAdditionalUio = instanceOfAdditionalUio;
17
+ exports.AdditionalUioFromJSON = AdditionalUioFromJSON;
18
+ exports.AdditionalUioFromJSONTyped = AdditionalUioFromJSONTyped;
19
+ exports.AdditionalUioToJSON = AdditionalUioToJSON;
20
+ exports.AdditionalUioToJSONTyped = AdditionalUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdditionalUio interface.
23
+ */
24
+ function instanceOfAdditionalUio(value) {
25
+ if (!('price' in value) || value['price'] === undefined)
26
+ return false;
27
+ if (!('amountForPrice' in value) || value['amountForPrice'] === undefined)
28
+ return false;
29
+ if (!('currency' in value) || value['currency'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AdditionalUioFromJSON(json) {
34
+ return AdditionalUioFromJSONTyped(json, false);
35
+ }
36
+ function AdditionalUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'price': json['price'],
42
+ 'amountForPrice': json['amountForPrice'],
43
+ 'currency': json['currency'],
44
+ };
45
+ }
46
+ function AdditionalUioToJSON(json) {
47
+ return AdditionalUioToJSONTyped(json, false);
48
+ }
49
+ function AdditionalUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'price': value['price'],
55
+ 'amountForPrice': value['amountForPrice'],
56
+ 'currency': value['currency'],
57
+ };
58
+ }
@@ -0,0 +1,53 @@
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 { FlowContentsUio } from './FlowContentsUio';
13
+ import type { FlowOptionsUio } from './FlowOptionsUio';
14
+ import type { FlowEntrypointsUio } from './FlowEntrypointsUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface BrainFlowCreateUio
19
+ */
20
+ export interface BrainFlowCreateUio {
21
+ /**
22
+ *
23
+ * @type {FlowEntrypointsUio}
24
+ * @memberof BrainFlowCreateUio
25
+ */
26
+ entrypoints?: FlowEntrypointsUio;
27
+ /**
28
+ *
29
+ * @type {object}
30
+ * @memberof BrainFlowCreateUio
31
+ */
32
+ exits?: object;
33
+ /**
34
+ *
35
+ * @type {FlowContentsUio}
36
+ * @memberof BrainFlowCreateUio
37
+ */
38
+ contents?: FlowContentsUio;
39
+ /**
40
+ *
41
+ * @type {Array<FlowOptionsUio>}
42
+ * @memberof BrainFlowCreateUio
43
+ */
44
+ options?: Array<FlowOptionsUio>;
45
+ }
46
+ /**
47
+ * Check if a given object implements the BrainFlowCreateUio interface.
48
+ */
49
+ export declare function instanceOfBrainFlowCreateUio(value: object): value is BrainFlowCreateUio;
50
+ export declare function BrainFlowCreateUioFromJSON(json: any): BrainFlowCreateUio;
51
+ export declare function BrainFlowCreateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainFlowCreateUio;
52
+ export declare function BrainFlowCreateUioToJSON(json: any): BrainFlowCreateUio;
53
+ export declare function BrainFlowCreateUioToJSONTyped(value?: BrainFlowCreateUio | 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.instanceOfBrainFlowCreateUio = instanceOfBrainFlowCreateUio;
17
+ exports.BrainFlowCreateUioFromJSON = BrainFlowCreateUioFromJSON;
18
+ exports.BrainFlowCreateUioFromJSONTyped = BrainFlowCreateUioFromJSONTyped;
19
+ exports.BrainFlowCreateUioToJSON = BrainFlowCreateUioToJSON;
20
+ exports.BrainFlowCreateUioToJSONTyped = BrainFlowCreateUioToJSONTyped;
21
+ const FlowContentsUio_1 = require("./FlowContentsUio");
22
+ const FlowOptionsUio_1 = require("./FlowOptionsUio");
23
+ const FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
24
+ /**
25
+ * Check if a given object implements the BrainFlowCreateUio interface.
26
+ */
27
+ function instanceOfBrainFlowCreateUio(value) {
28
+ return true;
29
+ }
30
+ function BrainFlowCreateUioFromJSON(json) {
31
+ return BrainFlowCreateUioFromJSONTyped(json, false);
32
+ }
33
+ function BrainFlowCreateUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'entrypoints': json['entrypoints'] == null ? undefined : (0, FlowEntrypointsUio_1.FlowEntrypointsUioFromJSON)(json['entrypoints']),
39
+ 'exits': json['exits'] == null ? undefined : json['exits'],
40
+ 'contents': json['contents'] == null ? undefined : (0, FlowContentsUio_1.FlowContentsUioFromJSON)(json['contents']),
41
+ 'options': json['options'] == null ? undefined : (json['options'].map(FlowOptionsUio_1.FlowOptionsUioFromJSON)),
42
+ };
43
+ }
44
+ function BrainFlowCreateUioToJSON(json) {
45
+ return BrainFlowCreateUioToJSONTyped(json, false);
46
+ }
47
+ function BrainFlowCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'entrypoints': (0, FlowEntrypointsUio_1.FlowEntrypointsUioToJSON)(value['entrypoints']),
53
+ 'exits': value['exits'],
54
+ 'contents': (0, FlowContentsUio_1.FlowContentsUioToJSON)(value['contents']),
55
+ 'options': value['options'] == null ? undefined : (value['options'].map(FlowOptionsUio_1.FlowOptionsUioToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,65 @@
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 { FlowContentsUio } from './FlowContentsUio';
13
+ import type { FlowOptionsUio } from './FlowOptionsUio';
14
+ import type { FlowEntrypointsUio } from './FlowEntrypointsUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface BrainFlowUio
19
+ */
20
+ export interface BrainFlowUio {
21
+ /**
22
+ *
23
+ * @type {FlowEntrypointsUio}
24
+ * @memberof BrainFlowUio
25
+ */
26
+ entrypoints?: FlowEntrypointsUio;
27
+ /**
28
+ *
29
+ * @type {object}
30
+ * @memberof BrainFlowUio
31
+ */
32
+ exits?: object;
33
+ /**
34
+ *
35
+ * @type {FlowContentsUio}
36
+ * @memberof BrainFlowUio
37
+ */
38
+ contents?: FlowContentsUio;
39
+ /**
40
+ *
41
+ * @type {Array<FlowOptionsUio>}
42
+ * @memberof BrainFlowUio
43
+ */
44
+ options?: Array<FlowOptionsUio>;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof BrainFlowUio
49
+ */
50
+ id: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof BrainFlowUio
55
+ */
56
+ brainId: string;
57
+ }
58
+ /**
59
+ * Check if a given object implements the BrainFlowUio interface.
60
+ */
61
+ export declare function instanceOfBrainFlowUio(value: object): value is BrainFlowUio;
62
+ export declare function BrainFlowUioFromJSON(json: any): BrainFlowUio;
63
+ export declare function BrainFlowUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainFlowUio;
64
+ export declare function BrainFlowUioToJSON(json: any): BrainFlowUio;
65
+ export declare function BrainFlowUioToJSONTyped(value?: BrainFlowUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.instanceOfBrainFlowUio = instanceOfBrainFlowUio;
17
+ exports.BrainFlowUioFromJSON = BrainFlowUioFromJSON;
18
+ exports.BrainFlowUioFromJSONTyped = BrainFlowUioFromJSONTyped;
19
+ exports.BrainFlowUioToJSON = BrainFlowUioToJSON;
20
+ exports.BrainFlowUioToJSONTyped = BrainFlowUioToJSONTyped;
21
+ const FlowContentsUio_1 = require("./FlowContentsUio");
22
+ const FlowOptionsUio_1 = require("./FlowOptionsUio");
23
+ const FlowEntrypointsUio_1 = require("./FlowEntrypointsUio");
24
+ /**
25
+ * Check if a given object implements the BrainFlowUio interface.
26
+ */
27
+ function instanceOfBrainFlowUio(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('brainId' in value) || value['brainId'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function BrainFlowUioFromJSON(json) {
35
+ return BrainFlowUioFromJSONTyped(json, false);
36
+ }
37
+ function BrainFlowUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'entrypoints': json['entrypoints'] == null ? undefined : (0, FlowEntrypointsUio_1.FlowEntrypointsUioFromJSON)(json['entrypoints']),
43
+ 'exits': json['exits'] == null ? undefined : json['exits'],
44
+ 'contents': json['contents'] == null ? undefined : (0, FlowContentsUio_1.FlowContentsUioFromJSON)(json['contents']),
45
+ 'options': json['options'] == null ? undefined : (json['options'].map(FlowOptionsUio_1.FlowOptionsUioFromJSON)),
46
+ 'id': json['id'],
47
+ 'brainId': json['brainId'],
48
+ };
49
+ }
50
+ function BrainFlowUioToJSON(json) {
51
+ return BrainFlowUioToJSONTyped(json, false);
52
+ }
53
+ function BrainFlowUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'entrypoints': (0, FlowEntrypointsUio_1.FlowEntrypointsUioToJSON)(value['entrypoints']),
59
+ 'exits': value['exits'],
60
+ 'contents': (0, FlowContentsUio_1.FlowContentsUioToJSON)(value['contents']),
61
+ 'options': value['options'] == null ? undefined : (value['options'].map(FlowOptionsUio_1.FlowOptionsUioToJSON)),
62
+ 'id': value['id'],
63
+ 'brainId': value['brainId'],
64
+ };
65
+ }
@@ -0,0 +1,65 @@
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 { BrainMetricsValueUio } from './BrainMetricsValueUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BrainMetricsEventUio
17
+ */
18
+ export interface BrainMetricsEventUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof BrainMetricsEventUio
23
+ */
24
+ brainId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof BrainMetricsEventUio
29
+ */
30
+ agentId?: string;
31
+ /**
32
+ *
33
+ * @type {{ [key: string]: any; }}
34
+ * @memberof BrainMetricsEventUio
35
+ */
36
+ source: {
37
+ [key: string]: any;
38
+ };
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof BrainMetricsEventUio
43
+ */
44
+ timestamp: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof BrainMetricsEventUio
49
+ */
50
+ task: string;
51
+ /**
52
+ *
53
+ * @type {Array<BrainMetricsValueUio>}
54
+ * @memberof BrainMetricsEventUio
55
+ */
56
+ value: Array<BrainMetricsValueUio>;
57
+ }
58
+ /**
59
+ * Check if a given object implements the BrainMetricsEventUio interface.
60
+ */
61
+ export declare function instanceOfBrainMetricsEventUio(value: object): value is BrainMetricsEventUio;
62
+ export declare function BrainMetricsEventUioFromJSON(json: any): BrainMetricsEventUio;
63
+ export declare function BrainMetricsEventUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsEventUio;
64
+ export declare function BrainMetricsEventUioToJSON(json: any): BrainMetricsEventUio;
65
+ export declare function BrainMetricsEventUioToJSONTyped(value?: BrainMetricsEventUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfBrainMetricsEventUio = instanceOfBrainMetricsEventUio;
17
+ exports.BrainMetricsEventUioFromJSON = BrainMetricsEventUioFromJSON;
18
+ exports.BrainMetricsEventUioFromJSONTyped = BrainMetricsEventUioFromJSONTyped;
19
+ exports.BrainMetricsEventUioToJSON = BrainMetricsEventUioToJSON;
20
+ exports.BrainMetricsEventUioToJSONTyped = BrainMetricsEventUioToJSONTyped;
21
+ const BrainMetricsValueUio_1 = require("./BrainMetricsValueUio");
22
+ /**
23
+ * Check if a given object implements the BrainMetricsEventUio interface.
24
+ */
25
+ function instanceOfBrainMetricsEventUio(value) {
26
+ if (!('brainId' in value) || value['brainId'] === undefined)
27
+ return false;
28
+ if (!('source' in value) || value['source'] === undefined)
29
+ return false;
30
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
31
+ return false;
32
+ if (!('task' in value) || value['task'] === undefined)
33
+ return false;
34
+ if (!('value' in value) || value['value'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function BrainMetricsEventUioFromJSON(json) {
39
+ return BrainMetricsEventUioFromJSONTyped(json, false);
40
+ }
41
+ function BrainMetricsEventUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'brainId': json['brainId'],
47
+ 'agentId': json['agentId'] == null ? undefined : json['agentId'],
48
+ 'source': json['source'],
49
+ 'timestamp': json['timestamp'],
50
+ 'task': json['task'],
51
+ 'value': (json['value'].map(BrainMetricsValueUio_1.BrainMetricsValueUioFromJSON)),
52
+ };
53
+ }
54
+ function BrainMetricsEventUioToJSON(json) {
55
+ return BrainMetricsEventUioToJSONTyped(json, false);
56
+ }
57
+ function BrainMetricsEventUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'brainId': value['brainId'],
63
+ 'agentId': value['agentId'],
64
+ 'source': value['source'],
65
+ 'timestamp': value['timestamp'],
66
+ 'task': value['task'],
67
+ 'value': (value['value'].map(BrainMetricsValueUio_1.BrainMetricsValueUioToJSON)),
68
+ };
69
+ }
@@ -0,0 +1,64 @@
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 { SubscriptionMetricUio } from './SubscriptionMetricUio';
13
+ import type { CostMetricUio } from './CostMetricUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BrainMetricsOverviewUio
18
+ */
19
+ export interface BrainMetricsOverviewUio {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof BrainMetricsOverviewUio
24
+ */
25
+ textConversationCount: number;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof BrainMetricsOverviewUio
30
+ */
31
+ voiceConversationCount: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof BrainMetricsOverviewUio
36
+ */
37
+ userTextMessagesCount: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof BrainMetricsOverviewUio
42
+ */
43
+ userVoiceMessagesCount: number;
44
+ /**
45
+ *
46
+ * @type {SubscriptionMetricUio}
47
+ * @memberof BrainMetricsOverviewUio
48
+ */
49
+ subscription?: SubscriptionMetricUio;
50
+ /**
51
+ *
52
+ * @type {CostMetricUio}
53
+ * @memberof BrainMetricsOverviewUio
54
+ */
55
+ costs?: CostMetricUio;
56
+ }
57
+ /**
58
+ * Check if a given object implements the BrainMetricsOverviewUio interface.
59
+ */
60
+ export declare function instanceOfBrainMetricsOverviewUio(value: object): value is BrainMetricsOverviewUio;
61
+ export declare function BrainMetricsOverviewUioFromJSON(json: any): BrainMetricsOverviewUio;
62
+ export declare function BrainMetricsOverviewUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrainMetricsOverviewUio;
63
+ export declare function BrainMetricsOverviewUioToJSON(json: any): BrainMetricsOverviewUio;
64
+ export declare function BrainMetricsOverviewUioToJSONTyped(value?: BrainMetricsOverviewUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfBrainMetricsOverviewUio = instanceOfBrainMetricsOverviewUio;
17
+ exports.BrainMetricsOverviewUioFromJSON = BrainMetricsOverviewUioFromJSON;
18
+ exports.BrainMetricsOverviewUioFromJSONTyped = BrainMetricsOverviewUioFromJSONTyped;
19
+ exports.BrainMetricsOverviewUioToJSON = BrainMetricsOverviewUioToJSON;
20
+ exports.BrainMetricsOverviewUioToJSONTyped = BrainMetricsOverviewUioToJSONTyped;
21
+ const SubscriptionMetricUio_1 = require("./SubscriptionMetricUio");
22
+ const CostMetricUio_1 = require("./CostMetricUio");
23
+ /**
24
+ * Check if a given object implements the BrainMetricsOverviewUio interface.
25
+ */
26
+ function instanceOfBrainMetricsOverviewUio(value) {
27
+ if (!('textConversationCount' in value) || value['textConversationCount'] === undefined)
28
+ return false;
29
+ if (!('voiceConversationCount' in value) || value['voiceConversationCount'] === undefined)
30
+ return false;
31
+ if (!('userTextMessagesCount' in value) || value['userTextMessagesCount'] === undefined)
32
+ return false;
33
+ if (!('userVoiceMessagesCount' in value) || value['userVoiceMessagesCount'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function BrainMetricsOverviewUioFromJSON(json) {
38
+ return BrainMetricsOverviewUioFromJSONTyped(json, false);
39
+ }
40
+ function BrainMetricsOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'textConversationCount': json['textConversationCount'],
46
+ 'voiceConversationCount': json['voiceConversationCount'],
47
+ 'userTextMessagesCount': json['userTextMessagesCount'],
48
+ 'userVoiceMessagesCount': json['userVoiceMessagesCount'],
49
+ 'subscription': json['subscription'] == null ? undefined : (0, SubscriptionMetricUio_1.SubscriptionMetricUioFromJSON)(json['subscription']),
50
+ 'costs': json['costs'] == null ? undefined : (0, CostMetricUio_1.CostMetricUioFromJSON)(json['costs']),
51
+ };
52
+ }
53
+ function BrainMetricsOverviewUioToJSON(json) {
54
+ return BrainMetricsOverviewUioToJSONTyped(json, false);
55
+ }
56
+ function BrainMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'textConversationCount': value['textConversationCount'],
62
+ 'voiceConversationCount': value['voiceConversationCount'],
63
+ 'userTextMessagesCount': value['userTextMessagesCount'],
64
+ 'userVoiceMessagesCount': value['userVoiceMessagesCount'],
65
+ 'subscription': (0, SubscriptionMetricUio_1.SubscriptionMetricUioToJSON)(value['subscription']),
66
+ 'costs': (0, CostMetricUio_1.CostMetricUioToJSON)(value['costs']),
67
+ };
68
+ }
@@ -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;