@breign/client 1.0.56 → 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/apis/ToolsApi.d.ts +12 -1
- package/dist/apis/ToolsApi.js +27 -0
- 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/ConnectOAuth2Tool200ResponseUio.d.ts +32 -0
- package/dist/models/ConnectOAuth2Tool200ResponseUio.js +50 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/dist/openapi.json +249 -6
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ exports.ContextUioFromJSON = ContextUioFromJSON;
|
|
|
18
18
|
exports.ContextUioFromJSONTyped = ContextUioFromJSONTyped;
|
|
19
19
|
exports.ContextUioToJSON = ContextUioToJSON;
|
|
20
20
|
exports.ContextUioToJSONTyped = ContextUioToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const ChatContextAttachmentUio_1 = require("./ChatContextAttachmentUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the ContextUio interface.
|
|
24
24
|
*/
|
|
@@ -35,7 +35,7 @@ function ContextUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
-
'attachments': (json['attachments'].map(
|
|
38
|
+
'attachments': (json['attachments'].map(ChatContextAttachmentUio_1.ChatContextAttachmentUioFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
function ContextUioToJSON(json) {
|
|
@@ -46,6 +46,6 @@ function ContextUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'attachments': (value['attachments'].map(
|
|
49
|
+
'attachments': (value['attachments'].map(ChatContextAttachmentUio_1.ChatContextAttachmentUioToJSON)),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 FileAttachmentCreateRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FileAttachmentCreateRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
22
|
+
*/
|
|
23
|
+
type: FileAttachmentCreateRequestUioTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
40
|
+
*/
|
|
41
|
+
ext: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof FileAttachmentCreateRequestUio
|
|
46
|
+
*/
|
|
47
|
+
size: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const FileAttachmentCreateRequestUioTypeEnum: {
|
|
53
|
+
readonly File: "file";
|
|
54
|
+
};
|
|
55
|
+
export type FileAttachmentCreateRequestUioTypeEnum = typeof FileAttachmentCreateRequestUioTypeEnum[keyof typeof FileAttachmentCreateRequestUioTypeEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the FileAttachmentCreateRequestUio interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfFileAttachmentCreateRequestUio(value: object): value is FileAttachmentCreateRequestUio;
|
|
60
|
+
export declare function FileAttachmentCreateRequestUioFromJSON(json: any): FileAttachmentCreateRequestUio;
|
|
61
|
+
export declare function FileAttachmentCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileAttachmentCreateRequestUio;
|
|
62
|
+
export declare function FileAttachmentCreateRequestUioToJSON(json: any): FileAttachmentCreateRequestUio;
|
|
63
|
+
export declare function FileAttachmentCreateRequestUioToJSONTyped(value?: FileAttachmentCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.FileAttachmentCreateRequestUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfFileAttachmentCreateRequestUio = instanceOfFileAttachmentCreateRequestUio;
|
|
18
|
+
exports.FileAttachmentCreateRequestUioFromJSON = FileAttachmentCreateRequestUioFromJSON;
|
|
19
|
+
exports.FileAttachmentCreateRequestUioFromJSONTyped = FileAttachmentCreateRequestUioFromJSONTyped;
|
|
20
|
+
exports.FileAttachmentCreateRequestUioToJSON = FileAttachmentCreateRequestUioToJSON;
|
|
21
|
+
exports.FileAttachmentCreateRequestUioToJSONTyped = FileAttachmentCreateRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.FileAttachmentCreateRequestUioTypeEnum = {
|
|
26
|
+
File: 'file'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the FileAttachmentCreateRequestUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfFileAttachmentCreateRequestUio(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 FileAttachmentCreateRequestUioFromJSON(json) {
|
|
45
|
+
return FileAttachmentCreateRequestUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FileAttachmentCreateRequestUioFromJSONTyped(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
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function FileAttachmentCreateRequestUioToJSON(json) {
|
|
60
|
+
return FileAttachmentCreateRequestUioToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function FileAttachmentCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'type': value['type'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'mimeType': value['mimeType'],
|
|
70
|
+
'ext': value['ext'],
|
|
71
|
+
'size': value['size'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 {
|
|
20
|
+
* @type {string}
|
|
22
21
|
* @memberof FileAttachmentProcessedOneOfUio
|
|
23
22
|
*/
|
|
24
|
-
type:
|
|
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
|
-
|
|
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':
|
|
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':
|
|
59
|
+
'type': value['type'],
|
|
54
60
|
'key': value['key'],
|
|
55
61
|
'content': value['content'],
|
|
56
62
|
};
|
|
@@ -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
|
+
}
|