@breign/client 1.0.57 → 1.0.59
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/AppApi.d.ts +48 -1
- package/dist/apis/AppApi.js +110 -0
- 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/AudioFillerExistsResponseUio.d.ts +32 -0
- package/dist/models/AudioFillerExistsResponseUio.js +50 -0
- 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 +12 -0
- package/dist/models/index.js +12 -0
- package/dist/openapi.json +425 -6
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfAudioFillerExistsResponseUio = instanceOfAudioFillerExistsResponseUio;
|
|
17
|
+
exports.AudioFillerExistsResponseUioFromJSON = AudioFillerExistsResponseUioFromJSON;
|
|
18
|
+
exports.AudioFillerExistsResponseUioFromJSONTyped = AudioFillerExistsResponseUioFromJSONTyped;
|
|
19
|
+
exports.AudioFillerExistsResponseUioToJSON = AudioFillerExistsResponseUioToJSON;
|
|
20
|
+
exports.AudioFillerExistsResponseUioToJSONTyped = AudioFillerExistsResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AudioFillerExistsResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAudioFillerExistsResponseUio(value) {
|
|
25
|
+
if (!('_exists' in value) || value['_exists'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AudioFillerExistsResponseUioFromJSON(json) {
|
|
30
|
+
return AudioFillerExistsResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AudioFillerExistsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'_exists': json['exists'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AudioFillerExistsResponseUioToJSON(json) {
|
|
41
|
+
return AudioFillerExistsResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AudioFillerExistsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'exists': value['_exists'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { FileAttachmentUio } from './FileAttachmentUio';
|
|
13
|
+
import type { ImageAttachment1Uio } from './ImageAttachment1Uio';
|
|
14
|
+
/**
|
|
15
|
+
* @type ChatContextAttachmentUio
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type ChatContextAttachmentUio = FileAttachmentUio | ImageAttachment1Uio;
|
|
20
|
+
export declare function ChatContextAttachmentUioFromJSON(json: any): ChatContextAttachmentUio;
|
|
21
|
+
export declare function ChatContextAttachmentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatContextAttachmentUio;
|
|
22
|
+
export declare function ChatContextAttachmentUioToJSON(json: any): any;
|
|
23
|
+
export declare function ChatContextAttachmentUioToJSONTyped(value?: ChatContextAttachmentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ChatContextAttachmentUioFromJSON = ChatContextAttachmentUioFromJSON;
|
|
17
|
+
exports.ChatContextAttachmentUioFromJSONTyped = ChatContextAttachmentUioFromJSONTyped;
|
|
18
|
+
exports.ChatContextAttachmentUioToJSON = ChatContextAttachmentUioToJSON;
|
|
19
|
+
exports.ChatContextAttachmentUioToJSONTyped = ChatContextAttachmentUioToJSONTyped;
|
|
20
|
+
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
21
|
+
const ImageAttachment1Uio_1 = require("./ImageAttachment1Uio");
|
|
22
|
+
function ChatContextAttachmentUioFromJSON(json) {
|
|
23
|
+
return ChatContextAttachmentUioFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function ChatContextAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
if (typeof json !== 'object') {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
if ((0, FileAttachmentUio_1.instanceOfFileAttachmentUio)(json)) {
|
|
33
|
+
return (0, FileAttachmentUio_1.FileAttachmentUioFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
if ((0, ImageAttachment1Uio_1.instanceOfImageAttachment1Uio)(json)) {
|
|
36
|
+
return (0, ImageAttachment1Uio_1.ImageAttachment1UioFromJSONTyped)(json, true);
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
function ChatContextAttachmentUioToJSON(json) {
|
|
41
|
+
return ChatContextAttachmentUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ChatContextAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
if (typeof value !== 'object') {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
if ((0, FileAttachmentUio_1.instanceOfFileAttachmentUio)(value)) {
|
|
51
|
+
return (0, FileAttachmentUio_1.FileAttachmentUioToJSON)(value);
|
|
52
|
+
}
|
|
53
|
+
if ((0, ImageAttachment1Uio_1.instanceOfImageAttachment1Uio)(value)) {
|
|
54
|
+
return (0, ImageAttachment1Uio_1.ImageAttachment1UioToJSON)(value);
|
|
55
|
+
}
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ChatContextAttachmentUio } from './ChatContextAttachmentUio';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
|
18
18
|
export interface ContextUio {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<ChatContextAttachmentUio>}
|
|
22
22
|
* @memberof ContextUio
|
|
23
23
|
*/
|
|
24
|
-
attachments: Array<
|
|
24
|
+
attachments: Array<ChatContextAttachmentUio>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ContextUio interface.
|
|
@@ -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;
|