@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,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,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.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 = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'contentType': value['contentType'],
58
+ 'ext': value['ext'],
59
+ 'size': value['size'],
60
+ 'hash': value['hash'],
61
+ };
62
+ }
@@ -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 (const 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
+ }
@@ -0,0 +1,75 @@
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 { FileStatusUio } from './FileStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FileUio
17
+ */
18
+ export interface FileUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof FileUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof FileUio
29
+ */
30
+ contentType: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof FileUio
35
+ */
36
+ ext: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FileUio
41
+ */
42
+ key: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof FileUio
47
+ */
48
+ size: number;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof FileUio
53
+ */
54
+ createdAt: Date;
55
+ /**
56
+ *
57
+ * @type {FileStatusUio}
58
+ * @memberof FileUio
59
+ */
60
+ status: FileStatusUio;
61
+ /**
62
+ * URL to upload the image to
63
+ * @type {string}
64
+ * @memberof FileUio
65
+ */
66
+ postURL: string;
67
+ }
68
+ /**
69
+ * Check if a given object implements the FileUio interface.
70
+ */
71
+ export declare function instanceOfFileUio(value: object): value is FileUio;
72
+ export declare function FileUioFromJSON(json: any): FileUio;
73
+ export declare function FileUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUio;
74
+ export declare function FileUioToJSON(json: any): FileUio;
75
+ export declare function FileUioToJSONTyped(value?: FileUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.instanceOfFileUio = instanceOfFileUio;
17
+ exports.FileUioFromJSON = FileUioFromJSON;
18
+ exports.FileUioFromJSONTyped = FileUioFromJSONTyped;
19
+ exports.FileUioToJSON = FileUioToJSON;
20
+ exports.FileUioToJSONTyped = FileUioToJSONTyped;
21
+ const FileStatusUio_1 = require("./FileStatusUio");
22
+ /**
23
+ * Check if a given object implements the FileUio interface.
24
+ */
25
+ function instanceOfFileUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('contentType' in value) || value['contentType'] === undefined)
29
+ return false;
30
+ if (!('ext' in value) || value['ext'] === undefined)
31
+ return false;
32
+ if (!('key' in value) || value['key'] === undefined)
33
+ return false;
34
+ if (!('size' in value) || value['size'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ if (!('status' in value) || value['status'] === undefined)
39
+ return false;
40
+ if (!('postURL' in value) || value['postURL'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function FileUioFromJSON(json) {
45
+ return FileUioFromJSONTyped(json, false);
46
+ }
47
+ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'contentType': json['contentType'],
54
+ 'ext': json['ext'],
55
+ 'key': json['key'],
56
+ 'size': json['size'],
57
+ 'createdAt': (new Date(json['createdAt'])),
58
+ 'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
59
+ 'postURL': json['postURL'],
60
+ };
61
+ }
62
+ function FileUioToJSON(json) {
63
+ return FileUioToJSONTyped(json, false);
64
+ }
65
+ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'id': value['id'],
71
+ 'contentType': value['contentType'],
72
+ 'ext': value['ext'],
73
+ 'key': value['key'],
74
+ 'size': value['size'],
75
+ 'createdAt': ((value['createdAt']).toISOString()),
76
+ 'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
77
+ 'postURL': value['postURL'],
78
+ };
79
+ }
@@ -0,0 +1,38 @@
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 FlowContentsSuggestionUio
16
+ */
17
+ export interface FlowContentsSuggestionUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FlowContentsSuggestionUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FlowContentsSuggestionUio
28
+ */
29
+ text: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FlowContentsSuggestionUio interface.
33
+ */
34
+ export declare function instanceOfFlowContentsSuggestionUio(value: object): value is FlowContentsSuggestionUio;
35
+ export declare function FlowContentsSuggestionUioFromJSON(json: any): FlowContentsSuggestionUio;
36
+ export declare function FlowContentsSuggestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsSuggestionUio;
37
+ export declare function FlowContentsSuggestionUioToJSON(json: any): FlowContentsSuggestionUio;
38
+ export declare function FlowContentsSuggestionUioToJSONTyped(value?: FlowContentsSuggestionUio | 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.instanceOfFlowContentsSuggestionUio = instanceOfFlowContentsSuggestionUio;
17
+ exports.FlowContentsSuggestionUioFromJSON = FlowContentsSuggestionUioFromJSON;
18
+ exports.FlowContentsSuggestionUioFromJSONTyped = FlowContentsSuggestionUioFromJSONTyped;
19
+ exports.FlowContentsSuggestionUioToJSON = FlowContentsSuggestionUioToJSON;
20
+ exports.FlowContentsSuggestionUioToJSONTyped = FlowContentsSuggestionUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowContentsSuggestionUio interface.
23
+ */
24
+ function instanceOfFlowContentsSuggestionUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('text' in value) || value['text'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function FlowContentsSuggestionUioFromJSON(json) {
32
+ return FlowContentsSuggestionUioFromJSONTyped(json, false);
33
+ }
34
+ function FlowContentsSuggestionUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'text': json['text'],
41
+ };
42
+ }
43
+ function FlowContentsSuggestionUioToJSON(json) {
44
+ return FlowContentsSuggestionUioToJSONTyped(json, false);
45
+ }
46
+ function FlowContentsSuggestionUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'text': value['text'],
53
+ };
54
+ }
@@ -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 { FlowContentsSuggestionUio } from './FlowContentsSuggestionUio';
13
+ import type { ContentsToolsUio } from './ContentsToolsUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FlowContentsUio
18
+ */
19
+ export interface FlowContentsUio {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof FlowContentsUio
24
+ */
25
+ rephrase?: boolean;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof FlowContentsUio
30
+ */
31
+ text?: string;
32
+ /**
33
+ *
34
+ * @type {Array<string>}
35
+ * @memberof FlowContentsUio
36
+ */
37
+ texts?: Array<string>;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof FlowContentsUio
42
+ */
43
+ instructions?: string;
44
+ /**
45
+ *
46
+ * @type {ContentsToolsUio}
47
+ * @memberof FlowContentsUio
48
+ */
49
+ tools?: ContentsToolsUio;
50
+ /**
51
+ *
52
+ * @type {Array<FlowContentsSuggestionUio>}
53
+ * @memberof FlowContentsUio
54
+ */
55
+ suggestions?: Array<FlowContentsSuggestionUio>;
56
+ }
57
+ /**
58
+ * Check if a given object implements the FlowContentsUio interface.
59
+ */
60
+ export declare function instanceOfFlowContentsUio(value: object): value is FlowContentsUio;
61
+ export declare function FlowContentsUioFromJSON(json: any): FlowContentsUio;
62
+ export declare function FlowContentsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowContentsUio;
63
+ export declare function FlowContentsUioToJSON(json: any): FlowContentsUio;
64
+ export declare function FlowContentsUioToJSONTyped(value?: FlowContentsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfFlowContentsUio = instanceOfFlowContentsUio;
17
+ exports.FlowContentsUioFromJSON = FlowContentsUioFromJSON;
18
+ exports.FlowContentsUioFromJSONTyped = FlowContentsUioFromJSONTyped;
19
+ exports.FlowContentsUioToJSON = FlowContentsUioToJSON;
20
+ exports.FlowContentsUioToJSONTyped = FlowContentsUioToJSONTyped;
21
+ const FlowContentsSuggestionUio_1 = require("./FlowContentsSuggestionUio");
22
+ const ContentsToolsUio_1 = require("./ContentsToolsUio");
23
+ /**
24
+ * Check if a given object implements the FlowContentsUio interface.
25
+ */
26
+ function instanceOfFlowContentsUio(value) {
27
+ return true;
28
+ }
29
+ function FlowContentsUioFromJSON(json) {
30
+ return FlowContentsUioFromJSONTyped(json, false);
31
+ }
32
+ function FlowContentsUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'rephrase': json['rephrase'] == null ? undefined : json['rephrase'],
38
+ 'text': json['text'] == null ? undefined : json['text'],
39
+ 'texts': json['texts'] == null ? undefined : json['texts'],
40
+ 'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
+ 'tools': json['tools'] == null ? undefined : (0, ContentsToolsUio_1.ContentsToolsUioFromJSON)(json['tools']),
42
+ 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioFromJSON)),
43
+ };
44
+ }
45
+ function FlowContentsUioToJSON(json) {
46
+ return FlowContentsUioToJSONTyped(json, false);
47
+ }
48
+ function FlowContentsUioToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'rephrase': value['rephrase'],
54
+ 'text': value['text'],
55
+ 'texts': value['texts'],
56
+ 'instructions': value['instructions'],
57
+ 'tools': (0, ContentsToolsUio_1.ContentsToolsUioToJSON)(value['tools']),
58
+ 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(FlowContentsSuggestionUio_1.FlowContentsSuggestionUioToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,38 @@
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 FlowEntrypointsUio
16
+ */
17
+ export interface FlowEntrypointsUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof FlowEntrypointsUio
22
+ */
23
+ intents: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof FlowEntrypointsUio
28
+ */
29
+ nodes?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FlowEntrypointsUio interface.
33
+ */
34
+ export declare function instanceOfFlowEntrypointsUio(value: object): value is FlowEntrypointsUio;
35
+ export declare function FlowEntrypointsUioFromJSON(json: any): FlowEntrypointsUio;
36
+ export declare function FlowEntrypointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowEntrypointsUio;
37
+ export declare function FlowEntrypointsUioToJSON(json: any): FlowEntrypointsUio;
38
+ export declare function FlowEntrypointsUioToJSONTyped(value?: FlowEntrypointsUio | 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.instanceOfFlowEntrypointsUio = instanceOfFlowEntrypointsUio;
17
+ exports.FlowEntrypointsUioFromJSON = FlowEntrypointsUioFromJSON;
18
+ exports.FlowEntrypointsUioFromJSONTyped = FlowEntrypointsUioFromJSONTyped;
19
+ exports.FlowEntrypointsUioToJSON = FlowEntrypointsUioToJSON;
20
+ exports.FlowEntrypointsUioToJSONTyped = FlowEntrypointsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FlowEntrypointsUio interface.
23
+ */
24
+ function instanceOfFlowEntrypointsUio(value) {
25
+ if (!('intents' in value) || value['intents'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function FlowEntrypointsUioFromJSON(json) {
30
+ return FlowEntrypointsUioFromJSONTyped(json, false);
31
+ }
32
+ function FlowEntrypointsUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'intents': json['intents'],
38
+ 'nodes': json['nodes'] == null ? undefined : json['nodes'],
39
+ };
40
+ }
41
+ function FlowEntrypointsUioToJSON(json) {
42
+ return FlowEntrypointsUioToJSONTyped(json, false);
43
+ }
44
+ function FlowEntrypointsUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'intents': value['intents'],
50
+ 'nodes': value['nodes'],
51
+ };
52
+ }