@breign/client 1.0.57 → 1.0.58

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 (37) hide show
  1. package/dist/apis/ConversationsApi.d.ts +5 -5
  2. package/dist/apis/ConversationsApi.js +4 -3
  3. package/dist/models/AttachmentCreateRequestUio.d.ts +5 -39
  4. package/dist/models/AttachmentCreateRequestUio.js +22 -32
  5. package/dist/models/AttachmentCreateResponseUio.d.ts +24 -0
  6. package/dist/models/AttachmentCreateResponseUio.js +64 -0
  7. package/dist/models/AttachmentDetailsResponseUio.d.ts +23 -0
  8. package/dist/models/AttachmentDetailsResponseUio.js +57 -0
  9. package/dist/models/AttachmentTypeUio.d.ts +1 -0
  10. package/dist/models/AttachmentTypeUio.js +2 -1
  11. package/dist/models/ChatContextAttachmentUio.d.ts +23 -0
  12. package/dist/models/ChatContextAttachmentUio.js +57 -0
  13. package/dist/models/ContextUio.d.ts +3 -3
  14. package/dist/models/ContextUio.js +3 -3
  15. package/dist/models/FileAttachmentCreateRequestUio.d.ts +63 -0
  16. package/dist/models/FileAttachmentCreateRequestUio.js +73 -0
  17. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +89 -0
  18. package/dist/models/FileAttachmentDetailsResponseUio.js +85 -0
  19. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +9 -3
  20. package/dist/models/FileAttachmentProcessedOneOfUio.js +9 -3
  21. package/dist/models/FileAttachmentUio.d.ts +1 -1
  22. package/dist/models/FileAttachmentUploadResponseUio.d.ts +103 -0
  23. package/dist/models/FileAttachmentUploadResponseUio.js +93 -0
  24. package/dist/models/ImageAttachment1Uio.d.ts +94 -0
  25. package/dist/models/ImageAttachment1Uio.js +90 -0
  26. package/dist/models/ImageAttachmentCreateRequestUio.d.ts +69 -0
  27. package/dist/models/ImageAttachmentCreateRequestUio.js +75 -0
  28. package/dist/models/ImageAttachmentDetailsResponseUio.d.ts +94 -0
  29. package/dist/models/ImageAttachmentDetailsResponseUio.js +90 -0
  30. package/dist/models/ImageAttachmentUio.d.ts +94 -0
  31. package/dist/models/ImageAttachmentUio.js +90 -0
  32. package/dist/models/ImageAttachmentUploadResponseUio.d.ts +108 -0
  33. package/dist/models/ImageAttachmentUploadResponseUio.js +98 -0
  34. package/dist/models/index.d.ts +11 -0
  35. package/dist/models/index.js +11 -0
  36. package/dist/openapi.json +194 -6
  37. package/package.json +1 -1
@@ -0,0 +1,89 @@
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 { AttachmentTypeUio } from './AttachmentTypeUio';
13
+ import type { FileAttachmentProcessedUio } from './FileAttachmentProcessedUio';
14
+ import type { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface FileAttachmentDetailsResponseUio
19
+ */
20
+ export interface FileAttachmentDetailsResponseUio {
21
+ /**
22
+ *
23
+ * @type {AttachmentTypeUio}
24
+ * @memberof FileAttachmentDetailsResponseUio
25
+ */
26
+ type: AttachmentTypeUio;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof FileAttachmentDetailsResponseUio
31
+ */
32
+ id: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof FileAttachmentDetailsResponseUio
37
+ */
38
+ name: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof FileAttachmentDetailsResponseUio
43
+ */
44
+ mimeType: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof FileAttachmentDetailsResponseUio
49
+ */
50
+ ext: string;
51
+ /**
52
+ *
53
+ * @type {number}
54
+ * @memberof FileAttachmentDetailsResponseUio
55
+ */
56
+ size: number;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof FileAttachmentDetailsResponseUio
61
+ */
62
+ key: string;
63
+ /**
64
+ * Presigned download URL (if available)
65
+ * @type {string}
66
+ * @memberof FileAttachmentDetailsResponseUio
67
+ */
68
+ url?: string;
69
+ /**
70
+ *
71
+ * @type {FileAttachmentStatusUio}
72
+ * @memberof FileAttachmentDetailsResponseUio
73
+ */
74
+ status: FileAttachmentStatusUio;
75
+ /**
76
+ *
77
+ * @type {FileAttachmentProcessedUio}
78
+ * @memberof FileAttachmentDetailsResponseUio
79
+ */
80
+ processed?: FileAttachmentProcessedUio;
81
+ }
82
+ /**
83
+ * Check if a given object implements the FileAttachmentDetailsResponseUio interface.
84
+ */
85
+ export declare function instanceOfFileAttachmentDetailsResponseUio(value: object): value is FileAttachmentDetailsResponseUio;
86
+ export declare function FileAttachmentDetailsResponseUioFromJSON(json: any): FileAttachmentDetailsResponseUio;
87
+ export declare function FileAttachmentDetailsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileAttachmentDetailsResponseUio;
88
+ export declare function FileAttachmentDetailsResponseUioToJSON(json: any): FileAttachmentDetailsResponseUio;
89
+ export declare function FileAttachmentDetailsResponseUioToJSONTyped(value?: FileAttachmentDetailsResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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.instanceOfFileAttachmentDetailsResponseUio = instanceOfFileAttachmentDetailsResponseUio;
17
+ exports.FileAttachmentDetailsResponseUioFromJSON = FileAttachmentDetailsResponseUioFromJSON;
18
+ exports.FileAttachmentDetailsResponseUioFromJSONTyped = FileAttachmentDetailsResponseUioFromJSONTyped;
19
+ exports.FileAttachmentDetailsResponseUioToJSON = FileAttachmentDetailsResponseUioToJSON;
20
+ exports.FileAttachmentDetailsResponseUioToJSONTyped = FileAttachmentDetailsResponseUioToJSONTyped;
21
+ const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
+ const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
23
+ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
24
+ /**
25
+ * Check if a given object implements the FileAttachmentDetailsResponseUio interface.
26
+ */
27
+ function instanceOfFileAttachmentDetailsResponseUio(value) {
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('name' in value) || value['name'] === undefined)
33
+ return false;
34
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
35
+ return false;
36
+ if (!('ext' in value) || value['ext'] === undefined)
37
+ return false;
38
+ if (!('size' in value) || value['size'] === undefined)
39
+ return false;
40
+ if (!('key' in value) || value['key'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function FileAttachmentDetailsResponseUioFromJSON(json) {
47
+ return FileAttachmentDetailsResponseUioFromJSONTyped(json, false);
48
+ }
49
+ function FileAttachmentDetailsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioFromJSON)(json['type']),
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ 'mimeType': json['mimeType'],
58
+ 'ext': json['ext'],
59
+ 'size': json['size'],
60
+ 'key': json['key'],
61
+ 'url': json['url'] == null ? undefined : json['url'],
62
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
63
+ 'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
64
+ };
65
+ }
66
+ function FileAttachmentDetailsResponseUioToJSON(json) {
67
+ return FileAttachmentDetailsResponseUioToJSONTyped(json, false);
68
+ }
69
+ function FileAttachmentDetailsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioToJSON)(value['type']),
75
+ 'id': value['id'],
76
+ 'name': value['name'],
77
+ 'mimeType': value['mimeType'],
78
+ 'ext': value['ext'],
79
+ 'size': value['size'],
80
+ 'key': value['key'],
81
+ 'url': value['url'],
82
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
83
+ 'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
84
+ };
85
+ }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AttachmentTypeUio } from './AttachmentTypeUio';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -18,10 +17,10 @@ import type { AttachmentTypeUio } from './AttachmentTypeUio';
18
17
  export interface FileAttachmentProcessedOneOfUio {
19
18
  /**
20
19
  *
21
- * @type {AttachmentTypeUio}
20
+ * @type {string}
22
21
  * @memberof FileAttachmentProcessedOneOfUio
23
22
  */
24
- type: AttachmentTypeUio;
23
+ type: FileAttachmentProcessedOneOfUioTypeEnum;
25
24
  /**
26
25
  *
27
26
  * @type {string}
@@ -35,6 +34,13 @@ export interface FileAttachmentProcessedOneOfUio {
35
34
  */
36
35
  content?: string;
37
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const FileAttachmentProcessedOneOfUioTypeEnum: {
41
+ readonly File: "file";
42
+ };
43
+ export type FileAttachmentProcessedOneOfUioTypeEnum = typeof FileAttachmentProcessedOneOfUioTypeEnum[keyof typeof FileAttachmentProcessedOneOfUioTypeEnum];
38
44
  /**
39
45
  * Check if a given object implements the FileAttachmentProcessedOneOfUio interface.
40
46
  */
@@ -13,12 +13,18 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileAttachmentProcessedOneOfUioTypeEnum = void 0;
16
17
  exports.instanceOfFileAttachmentProcessedOneOfUio = instanceOfFileAttachmentProcessedOneOfUio;
17
18
  exports.FileAttachmentProcessedOneOfUioFromJSON = FileAttachmentProcessedOneOfUioFromJSON;
18
19
  exports.FileAttachmentProcessedOneOfUioFromJSONTyped = FileAttachmentProcessedOneOfUioFromJSONTyped;
19
20
  exports.FileAttachmentProcessedOneOfUioToJSON = FileAttachmentProcessedOneOfUioToJSON;
20
21
  exports.FileAttachmentProcessedOneOfUioToJSONTyped = FileAttachmentProcessedOneOfUioToJSONTyped;
21
- const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
+ /**
23
+ * @export
24
+ */
25
+ exports.FileAttachmentProcessedOneOfUioTypeEnum = {
26
+ File: 'file'
27
+ };
22
28
  /**
23
29
  * Check if a given object implements the FileAttachmentProcessedOneOfUio interface.
24
30
  */
@@ -37,7 +43,7 @@ function FileAttachmentProcessedOneOfUioFromJSONTyped(json, ignoreDiscriminator)
37
43
  return json;
38
44
  }
39
45
  return {
40
- 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioFromJSON)(json['type']),
46
+ 'type': json['type'],
41
47
  'key': json['key'],
42
48
  'content': json['content'] == null ? undefined : json['content'],
43
49
  };
@@ -50,7 +56,7 @@ function FileAttachmentProcessedOneOfUioToJSONTyped(value, ignoreDiscriminator =
50
56
  return value;
51
57
  }
52
58
  return {
53
- 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioToJSON)(value['type']),
59
+ 'type': value['type'],
54
60
  'key': value['key'],
55
61
  'content': value['content'],
56
62
  };
@@ -61,7 +61,7 @@ export interface FileAttachmentUio {
61
61
  */
62
62
  key: string;
63
63
  /**
64
- * URL to access the attachment
64
+ *
65
65
  * @type {string}
66
66
  * @memberof FileAttachmentUio
67
67
  */
@@ -0,0 +1,103 @@
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 { AttachmentTypeUio } from './AttachmentTypeUio';
13
+ import type { FileAttachmentProcessedUio } from './FileAttachmentProcessedUio';
14
+ import type { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface FileAttachmentUploadResponseUio
19
+ */
20
+ export interface FileAttachmentUploadResponseUio {
21
+ /**
22
+ *
23
+ * @type {AttachmentTypeUio}
24
+ * @memberof FileAttachmentUploadResponseUio
25
+ */
26
+ type: AttachmentTypeUio;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof FileAttachmentUploadResponseUio
31
+ */
32
+ id: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof FileAttachmentUploadResponseUio
37
+ */
38
+ name: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof FileAttachmentUploadResponseUio
43
+ */
44
+ mimeType: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof FileAttachmentUploadResponseUio
49
+ */
50
+ ext: string;
51
+ /**
52
+ *
53
+ * @type {number}
54
+ * @memberof FileAttachmentUploadResponseUio
55
+ */
56
+ size: number;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof FileAttachmentUploadResponseUio
61
+ */
62
+ key: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof FileAttachmentUploadResponseUio
67
+ */
68
+ url?: string;
69
+ /**
70
+ *
71
+ * @type {FileAttachmentStatusUio}
72
+ * @memberof FileAttachmentUploadResponseUio
73
+ */
74
+ status: FileAttachmentStatusUio;
75
+ /**
76
+ *
77
+ * @type {FileAttachmentProcessedUio}
78
+ * @memberof FileAttachmentUploadResponseUio
79
+ */
80
+ processed?: FileAttachmentProcessedUio;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof FileAttachmentUploadResponseUio
85
+ */
86
+ postURL: string;
87
+ /**
88
+ *
89
+ * @type {{ [key: string]: any; }}
90
+ * @memberof FileAttachmentUploadResponseUio
91
+ */
92
+ formData: {
93
+ [key: string]: any;
94
+ };
95
+ }
96
+ /**
97
+ * Check if a given object implements the FileAttachmentUploadResponseUio interface.
98
+ */
99
+ export declare function instanceOfFileAttachmentUploadResponseUio(value: object): value is FileAttachmentUploadResponseUio;
100
+ export declare function FileAttachmentUploadResponseUioFromJSON(json: any): FileAttachmentUploadResponseUio;
101
+ export declare function FileAttachmentUploadResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileAttachmentUploadResponseUio;
102
+ export declare function FileAttachmentUploadResponseUioToJSON(json: any): FileAttachmentUploadResponseUio;
103
+ export declare function FileAttachmentUploadResponseUioToJSONTyped(value?: FileAttachmentUploadResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,93 @@
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.instanceOfFileAttachmentUploadResponseUio = instanceOfFileAttachmentUploadResponseUio;
17
+ exports.FileAttachmentUploadResponseUioFromJSON = FileAttachmentUploadResponseUioFromJSON;
18
+ exports.FileAttachmentUploadResponseUioFromJSONTyped = FileAttachmentUploadResponseUioFromJSONTyped;
19
+ exports.FileAttachmentUploadResponseUioToJSON = FileAttachmentUploadResponseUioToJSON;
20
+ exports.FileAttachmentUploadResponseUioToJSONTyped = FileAttachmentUploadResponseUioToJSONTyped;
21
+ const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
22
+ const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
23
+ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
24
+ /**
25
+ * Check if a given object implements the FileAttachmentUploadResponseUio interface.
26
+ */
27
+ function instanceOfFileAttachmentUploadResponseUio(value) {
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('name' in value) || value['name'] === undefined)
33
+ return false;
34
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
35
+ return false;
36
+ if (!('ext' in value) || value['ext'] === undefined)
37
+ return false;
38
+ if (!('size' in value) || value['size'] === undefined)
39
+ return false;
40
+ if (!('key' in value) || value['key'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('postURL' in value) || value['postURL'] === undefined)
45
+ return false;
46
+ if (!('formData' in value) || value['formData'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function FileAttachmentUploadResponseUioFromJSON(json) {
51
+ return FileAttachmentUploadResponseUioFromJSONTyped(json, false);
52
+ }
53
+ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioFromJSON)(json['type']),
59
+ 'id': json['id'],
60
+ 'name': json['name'],
61
+ 'mimeType': json['mimeType'],
62
+ 'ext': json['ext'],
63
+ 'size': json['size'],
64
+ 'key': json['key'],
65
+ 'url': json['url'] == null ? undefined : json['url'],
66
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
67
+ 'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
68
+ 'postURL': json['postURL'],
69
+ 'formData': json['formData'],
70
+ };
71
+ }
72
+ function FileAttachmentUploadResponseUioToJSON(json) {
73
+ return FileAttachmentUploadResponseUioToJSONTyped(json, false);
74
+ }
75
+ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'type': (0, AttachmentTypeUio_1.AttachmentTypeUioToJSON)(value['type']),
81
+ 'id': value['id'],
82
+ 'name': value['name'],
83
+ 'mimeType': value['mimeType'],
84
+ 'ext': value['ext'],
85
+ 'size': value['size'],
86
+ 'key': value['key'],
87
+ 'url': value['url'],
88
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
89
+ 'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
90
+ 'postURL': value['postURL'],
91
+ 'formData': value['formData'],
92
+ };
93
+ }
@@ -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 { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ImageAttachment1Uio
17
+ */
18
+ export interface ImageAttachment1Uio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ImageAttachment1Uio
23
+ */
24
+ type: ImageAttachment1UioTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ImageAttachment1Uio
29
+ */
30
+ id: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ImageAttachment1Uio
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ImageAttachment1Uio
41
+ */
42
+ mimeType: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ImageAttachment1Uio
47
+ */
48
+ ext: string;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof ImageAttachment1Uio
53
+ */
54
+ size: number;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ImageAttachment1Uio
59
+ */
60
+ key: string;
61
+ /**
62
+ * Presigned URL to access the image
63
+ * @type {string}
64
+ * @memberof ImageAttachment1Uio
65
+ */
66
+ url?: string;
67
+ /**
68
+ * Base64 inline data URL (optional)
69
+ * @type {string}
70
+ * @memberof ImageAttachment1Uio
71
+ */
72
+ inlineDataUrl?: string;
73
+ /**
74
+ *
75
+ * @type {FileAttachmentStatusUio}
76
+ * @memberof ImageAttachment1Uio
77
+ */
78
+ status: FileAttachmentStatusUio;
79
+ }
80
+ /**
81
+ * @export
82
+ */
83
+ export declare const ImageAttachment1UioTypeEnum: {
84
+ readonly Image: "image";
85
+ };
86
+ export type ImageAttachment1UioTypeEnum = typeof ImageAttachment1UioTypeEnum[keyof typeof ImageAttachment1UioTypeEnum];
87
+ /**
88
+ * Check if a given object implements the ImageAttachment1Uio interface.
89
+ */
90
+ export declare function instanceOfImageAttachment1Uio(value: object): value is ImageAttachment1Uio;
91
+ export declare function ImageAttachment1UioFromJSON(json: any): ImageAttachment1Uio;
92
+ export declare function ImageAttachment1UioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachment1Uio;
93
+ export declare function ImageAttachment1UioToJSON(json: any): ImageAttachment1Uio;
94
+ export declare function ImageAttachment1UioToJSONTyped(value?: ImageAttachment1Uio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
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.ImageAttachment1UioTypeEnum = void 0;
17
+ exports.instanceOfImageAttachment1Uio = instanceOfImageAttachment1Uio;
18
+ exports.ImageAttachment1UioFromJSON = ImageAttachment1UioFromJSON;
19
+ exports.ImageAttachment1UioFromJSONTyped = ImageAttachment1UioFromJSONTyped;
20
+ exports.ImageAttachment1UioToJSON = ImageAttachment1UioToJSON;
21
+ exports.ImageAttachment1UioToJSONTyped = ImageAttachment1UioToJSONTyped;
22
+ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ImageAttachment1UioTypeEnum = {
27
+ Image: 'image'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ImageAttachment1Uio interface.
31
+ */
32
+ function instanceOfImageAttachment1Uio(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
40
+ return false;
41
+ if (!('ext' in value) || value['ext'] === undefined)
42
+ return false;
43
+ if (!('size' in value) || value['size'] === undefined)
44
+ return false;
45
+ if (!('key' in value) || value['key'] === undefined)
46
+ return false;
47
+ if (!('status' in value) || value['status'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function ImageAttachment1UioFromJSON(json) {
52
+ return ImageAttachment1UioFromJSONTyped(json, false);
53
+ }
54
+ function ImageAttachment1UioFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'type': json['type'],
60
+ 'id': json['id'],
61
+ 'name': json['name'],
62
+ 'mimeType': json['mimeType'],
63
+ 'ext': json['ext'],
64
+ 'size': json['size'],
65
+ 'key': json['key'],
66
+ 'url': json['url'] == null ? undefined : json['url'],
67
+ 'inlineDataUrl': json['inlineDataUrl'] == null ? undefined : json['inlineDataUrl'],
68
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
69
+ };
70
+ }
71
+ function ImageAttachment1UioToJSON(json) {
72
+ return ImageAttachment1UioToJSONTyped(json, false);
73
+ }
74
+ function ImageAttachment1UioToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'type': value['type'],
80
+ 'id': value['id'],
81
+ 'name': value['name'],
82
+ 'mimeType': value['mimeType'],
83
+ 'ext': value['ext'],
84
+ 'size': value['size'],
85
+ 'key': value['key'],
86
+ 'url': value['url'],
87
+ 'inlineDataUrl': value['inlineDataUrl'],
88
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
89
+ };
90
+ }