@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.
- package/dist/apis/ConversationsApi.d.ts +5 -5
- package/dist/apis/ConversationsApi.js +4 -3
- package/dist/models/AttachmentCreateRequestUio.d.ts +5 -39
- package/dist/models/AttachmentCreateRequestUio.js +22 -32
- package/dist/models/AttachmentCreateResponseUio.d.ts +24 -0
- package/dist/models/AttachmentCreateResponseUio.js +64 -0
- package/dist/models/AttachmentDetailsResponseUio.d.ts +23 -0
- package/dist/models/AttachmentDetailsResponseUio.js +57 -0
- package/dist/models/AttachmentTypeUio.d.ts +1 -0
- package/dist/models/AttachmentTypeUio.js +2 -1
- package/dist/models/ChatContextAttachmentUio.d.ts +23 -0
- package/dist/models/ChatContextAttachmentUio.js +57 -0
- package/dist/models/ContextUio.d.ts +3 -3
- package/dist/models/ContextUio.js +3 -3
- package/dist/models/FileAttachmentCreateRequestUio.d.ts +63 -0
- package/dist/models/FileAttachmentCreateRequestUio.js +73 -0
- package/dist/models/FileAttachmentDetailsResponseUio.d.ts +89 -0
- package/dist/models/FileAttachmentDetailsResponseUio.js +85 -0
- package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +9 -3
- package/dist/models/FileAttachmentProcessedOneOfUio.js +9 -3
- package/dist/models/FileAttachmentUio.d.ts +1 -1
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +103 -0
- package/dist/models/FileAttachmentUploadResponseUio.js +93 -0
- package/dist/models/ImageAttachment1Uio.d.ts +94 -0
- package/dist/models/ImageAttachment1Uio.js +90 -0
- package/dist/models/ImageAttachmentCreateRequestUio.d.ts +69 -0
- package/dist/models/ImageAttachmentCreateRequestUio.js +75 -0
- package/dist/models/ImageAttachmentDetailsResponseUio.d.ts +94 -0
- package/dist/models/ImageAttachmentDetailsResponseUio.js +90 -0
- package/dist/models/ImageAttachmentUio.d.ts +94 -0
- package/dist/models/ImageAttachmentUio.js +90 -0
- package/dist/models/ImageAttachmentUploadResponseUio.d.ts +108 -0
- package/dist/models/ImageAttachmentUploadResponseUio.js +98 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/openapi.json +194 -6
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
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 ImageAttachmentCreateRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageAttachmentCreateRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
22
|
+
*/
|
|
23
|
+
type: ImageAttachmentCreateRequestUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
40
|
+
*/
|
|
41
|
+
ext: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
46
|
+
*/
|
|
47
|
+
size: number;
|
|
48
|
+
/**
|
|
49
|
+
* Optional inline base64 image data
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ImageAttachmentCreateRequestUio
|
|
52
|
+
*/
|
|
53
|
+
dataUrl?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ImageAttachmentCreateRequestUioTypeEnum: {
|
|
59
|
+
readonly Image: "image";
|
|
60
|
+
};
|
|
61
|
+
export type ImageAttachmentCreateRequestUioTypeEnum = typeof ImageAttachmentCreateRequestUioTypeEnum[keyof typeof ImageAttachmentCreateRequestUioTypeEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ImageAttachmentCreateRequestUio interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfImageAttachmentCreateRequestUio(value: object): value is ImageAttachmentCreateRequestUio;
|
|
66
|
+
export declare function ImageAttachmentCreateRequestUioFromJSON(json: any): ImageAttachmentCreateRequestUio;
|
|
67
|
+
export declare function ImageAttachmentCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachmentCreateRequestUio;
|
|
68
|
+
export declare function ImageAttachmentCreateRequestUioToJSON(json: any): ImageAttachmentCreateRequestUio;
|
|
69
|
+
export declare function ImageAttachmentCreateRequestUioToJSONTyped(value?: ImageAttachmentCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ImageAttachmentCreateRequestUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfImageAttachmentCreateRequestUio = instanceOfImageAttachmentCreateRequestUio;
|
|
18
|
+
exports.ImageAttachmentCreateRequestUioFromJSON = ImageAttachmentCreateRequestUioFromJSON;
|
|
19
|
+
exports.ImageAttachmentCreateRequestUioFromJSONTyped = ImageAttachmentCreateRequestUioFromJSONTyped;
|
|
20
|
+
exports.ImageAttachmentCreateRequestUioToJSON = ImageAttachmentCreateRequestUioToJSON;
|
|
21
|
+
exports.ImageAttachmentCreateRequestUioToJSONTyped = ImageAttachmentCreateRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ImageAttachmentCreateRequestUioTypeEnum = {
|
|
26
|
+
Image: 'image'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ImageAttachmentCreateRequestUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfImageAttachmentCreateRequestUio(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('ext' in value) || value['ext'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function ImageAttachmentCreateRequestUioFromJSON(json) {
|
|
45
|
+
return ImageAttachmentCreateRequestUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ImageAttachmentCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': json['type'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'mimeType': json['mimeType'],
|
|
55
|
+
'ext': json['ext'],
|
|
56
|
+
'size': json['size'],
|
|
57
|
+
'dataUrl': json['dataUrl'] == null ? undefined : json['dataUrl'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ImageAttachmentCreateRequestUioToJSON(json) {
|
|
61
|
+
return ImageAttachmentCreateRequestUioToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ImageAttachmentCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'type': value['type'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'mimeType': value['mimeType'],
|
|
71
|
+
'ext': value['ext'],
|
|
72
|
+
'size': value['size'],
|
|
73
|
+
'dataUrl': value['dataUrl'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -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 ImageAttachmentDetailsResponseUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageAttachmentDetailsResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
23
|
+
*/
|
|
24
|
+
type: ImageAttachmentDetailsResponseUioTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
41
|
+
*/
|
|
42
|
+
mimeType: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
47
|
+
*/
|
|
48
|
+
ext: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
53
|
+
*/
|
|
54
|
+
size: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
59
|
+
*/
|
|
60
|
+
key: string;
|
|
61
|
+
/**
|
|
62
|
+
* Presigned download URL (if available)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
65
|
+
*/
|
|
66
|
+
url?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Base64 inline data URL (optional)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
71
|
+
*/
|
|
72
|
+
inlineDataUrl?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {FileAttachmentStatusUio}
|
|
76
|
+
* @memberof ImageAttachmentDetailsResponseUio
|
|
77
|
+
*/
|
|
78
|
+
status: FileAttachmentStatusUio;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const ImageAttachmentDetailsResponseUioTypeEnum: {
|
|
84
|
+
readonly Image: "image";
|
|
85
|
+
};
|
|
86
|
+
export type ImageAttachmentDetailsResponseUioTypeEnum = typeof ImageAttachmentDetailsResponseUioTypeEnum[keyof typeof ImageAttachmentDetailsResponseUioTypeEnum];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ImageAttachmentDetailsResponseUio interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfImageAttachmentDetailsResponseUio(value: object): value is ImageAttachmentDetailsResponseUio;
|
|
91
|
+
export declare function ImageAttachmentDetailsResponseUioFromJSON(json: any): ImageAttachmentDetailsResponseUio;
|
|
92
|
+
export declare function ImageAttachmentDetailsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachmentDetailsResponseUio;
|
|
93
|
+
export declare function ImageAttachmentDetailsResponseUioToJSON(json: any): ImageAttachmentDetailsResponseUio;
|
|
94
|
+
export declare function ImageAttachmentDetailsResponseUioToJSONTyped(value?: ImageAttachmentDetailsResponseUio | 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.ImageAttachmentDetailsResponseUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfImageAttachmentDetailsResponseUio = instanceOfImageAttachmentDetailsResponseUio;
|
|
18
|
+
exports.ImageAttachmentDetailsResponseUioFromJSON = ImageAttachmentDetailsResponseUioFromJSON;
|
|
19
|
+
exports.ImageAttachmentDetailsResponseUioFromJSONTyped = ImageAttachmentDetailsResponseUioFromJSONTyped;
|
|
20
|
+
exports.ImageAttachmentDetailsResponseUioToJSON = ImageAttachmentDetailsResponseUioToJSON;
|
|
21
|
+
exports.ImageAttachmentDetailsResponseUioToJSONTyped = ImageAttachmentDetailsResponseUioToJSONTyped;
|
|
22
|
+
const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ImageAttachmentDetailsResponseUioTypeEnum = {
|
|
27
|
+
Image: 'image'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ImageAttachmentDetailsResponseUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfImageAttachmentDetailsResponseUio(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 ImageAttachmentDetailsResponseUioFromJSON(json) {
|
|
52
|
+
return ImageAttachmentDetailsResponseUioFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ImageAttachmentDetailsResponseUioFromJSONTyped(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 ImageAttachmentDetailsResponseUioToJSON(json) {
|
|
72
|
+
return ImageAttachmentDetailsResponseUioToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function ImageAttachmentDetailsResponseUioToJSONTyped(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
|
+
}
|
|
@@ -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 ImageAttachmentUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageAttachmentUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ImageAttachmentUio
|
|
23
|
+
*/
|
|
24
|
+
type: ImageAttachmentUioTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ImageAttachmentUio
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ImageAttachmentUio
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ImageAttachmentUio
|
|
41
|
+
*/
|
|
42
|
+
mimeType: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ImageAttachmentUio
|
|
47
|
+
*/
|
|
48
|
+
ext: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ImageAttachmentUio
|
|
53
|
+
*/
|
|
54
|
+
size: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ImageAttachmentUio
|
|
59
|
+
*/
|
|
60
|
+
key: string;
|
|
61
|
+
/**
|
|
62
|
+
* Presigned URL to access the image
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ImageAttachmentUio
|
|
65
|
+
*/
|
|
66
|
+
url?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Base64 inline data URL (optional)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ImageAttachmentUio
|
|
71
|
+
*/
|
|
72
|
+
inlineDataUrl?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {FileAttachmentStatusUio}
|
|
76
|
+
* @memberof ImageAttachmentUio
|
|
77
|
+
*/
|
|
78
|
+
status: FileAttachmentStatusUio;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const ImageAttachmentUioTypeEnum: {
|
|
84
|
+
readonly Image: "image";
|
|
85
|
+
};
|
|
86
|
+
export type ImageAttachmentUioTypeEnum = typeof ImageAttachmentUioTypeEnum[keyof typeof ImageAttachmentUioTypeEnum];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ImageAttachmentUio interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfImageAttachmentUio(value: object): value is ImageAttachmentUio;
|
|
91
|
+
export declare function ImageAttachmentUioFromJSON(json: any): ImageAttachmentUio;
|
|
92
|
+
export declare function ImageAttachmentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachmentUio;
|
|
93
|
+
export declare function ImageAttachmentUioToJSON(json: any): ImageAttachmentUio;
|
|
94
|
+
export declare function ImageAttachmentUioToJSONTyped(value?: ImageAttachmentUio | 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.ImageAttachmentUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfImageAttachmentUio = instanceOfImageAttachmentUio;
|
|
18
|
+
exports.ImageAttachmentUioFromJSON = ImageAttachmentUioFromJSON;
|
|
19
|
+
exports.ImageAttachmentUioFromJSONTyped = ImageAttachmentUioFromJSONTyped;
|
|
20
|
+
exports.ImageAttachmentUioToJSON = ImageAttachmentUioToJSON;
|
|
21
|
+
exports.ImageAttachmentUioToJSONTyped = ImageAttachmentUioToJSONTyped;
|
|
22
|
+
const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ImageAttachmentUioTypeEnum = {
|
|
27
|
+
Image: 'image'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ImageAttachmentUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfImageAttachmentUio(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 ImageAttachmentUioFromJSON(json) {
|
|
52
|
+
return ImageAttachmentUioFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ImageAttachmentUioFromJSONTyped(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 ImageAttachmentUioToJSON(json) {
|
|
72
|
+
return ImageAttachmentUioToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function ImageAttachmentUioToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ImageAttachmentUploadResponseUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageAttachmentUploadResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
23
|
+
*/
|
|
24
|
+
type: ImageAttachmentUploadResponseUioTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
41
|
+
*/
|
|
42
|
+
mimeType: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
47
|
+
*/
|
|
48
|
+
ext: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
53
|
+
*/
|
|
54
|
+
size: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
59
|
+
*/
|
|
60
|
+
key: string;
|
|
61
|
+
/**
|
|
62
|
+
* Presigned URL to access the image
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
65
|
+
*/
|
|
66
|
+
url?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Base64 inline data URL (optional)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
71
|
+
*/
|
|
72
|
+
inlineDataUrl?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {FileAttachmentStatusUio}
|
|
76
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
77
|
+
*/
|
|
78
|
+
status: FileAttachmentStatusUio;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
83
|
+
*/
|
|
84
|
+
postURL: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {{ [key: string]: any; }}
|
|
88
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
89
|
+
*/
|
|
90
|
+
formData: {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const ImageAttachmentUploadResponseUioTypeEnum: {
|
|
98
|
+
readonly Image: "image";
|
|
99
|
+
};
|
|
100
|
+
export type ImageAttachmentUploadResponseUioTypeEnum = typeof ImageAttachmentUploadResponseUioTypeEnum[keyof typeof ImageAttachmentUploadResponseUioTypeEnum];
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the ImageAttachmentUploadResponseUio interface.
|
|
103
|
+
*/
|
|
104
|
+
export declare function instanceOfImageAttachmentUploadResponseUio(value: object): value is ImageAttachmentUploadResponseUio;
|
|
105
|
+
export declare function ImageAttachmentUploadResponseUioFromJSON(json: any): ImageAttachmentUploadResponseUio;
|
|
106
|
+
export declare function ImageAttachmentUploadResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachmentUploadResponseUio;
|
|
107
|
+
export declare function ImageAttachmentUploadResponseUioToJSON(json: any): ImageAttachmentUploadResponseUio;
|
|
108
|
+
export declare function ImageAttachmentUploadResponseUioToJSONTyped(value?: ImageAttachmentUploadResponseUio | null, ignoreDiscriminator?: boolean): any;
|