@breign/client 1.0.6 → 1.0.8
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/models/AgentRequestUio.d.ts +9 -0
- package/dist/models/AgentRequestUio.js +4 -0
- package/dist/models/AgentUio.d.ts +10 -3
- package/dist/models/AgentUio.js +4 -3
- package/dist/models/AppCreateRequestUio.d.ts +6 -0
- package/dist/models/AppCreateRequestUio.js +2 -0
- package/dist/models/AppSequencesInnerUio.d.ts +38 -0
- package/dist/models/AppSequencesInnerUio.js +50 -0
- package/dist/models/AppUio.d.ts +47 -3
- package/dist/models/AppUio.js +18 -10
- package/dist/models/ChatMessageUio.d.ts +3 -2
- package/dist/models/ChatMessageUio.js +3 -2
- package/dist/models/ChatUio.d.ts +6 -0
- package/dist/models/ChatUio.js +2 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationFlowNodeUio.js +55 -0
- package/dist/models/ConversationUio.d.ts +7 -0
- package/dist/models/ConversationUio.js +5 -0
- package/dist/models/FileCreationRequestUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.js +1 -3
- package/dist/models/FileCreationResponseUio.d.ts +18 -12
- package/dist/models/FileCreationResponseUio.js +10 -20
- package/dist/models/FileFormDataUio.d.ts +38 -0
- package/dist/models/FileFormDataUio.js +50 -0
- package/dist/models/FileUio.d.ts +25 -6
- package/dist/models/FileUio.js +13 -18
- package/dist/models/FileWithDownloadUrlUio.d.ts +25 -6
- package/dist/models/FileWithDownloadUrlUio.js +13 -18
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
- package/dist/models/KnowledgeBaseUio.d.ts +132 -0
- package/dist/models/KnowledgeBaseUio.js +90 -0
- package/dist/models/ModelAgentUio.d.ts +159 -0
- package/dist/models/ModelAgentUio.js +112 -0
- package/dist/models/OrganizationUio.d.ts +0 -9
- package/dist/models/OrganizationUio.js +0 -6
- package/dist/models/UserUio.d.ts +56 -1
- package/dist/models/UserUio.js +21 -4
- package/dist/models/UserUserUio.d.ts +32 -0
- package/dist/models/UserUserUio.js +50 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/dist/openapi.json +357 -44
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfConversationFlowNodeUio = instanceOfConversationFlowNodeUio;
|
|
17
|
+
exports.ConversationFlowNodeUioFromJSON = ConversationFlowNodeUioFromJSON;
|
|
18
|
+
exports.ConversationFlowNodeUioFromJSONTyped = ConversationFlowNodeUioFromJSONTyped;
|
|
19
|
+
exports.ConversationFlowNodeUioToJSON = ConversationFlowNodeUioToJSON;
|
|
20
|
+
exports.ConversationFlowNodeUioToJSONTyped = ConversationFlowNodeUioToJSONTyped;
|
|
21
|
+
const ConversationFlowNodeEntrypointsUio_1 = require("./ConversationFlowNodeEntrypointsUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ConversationFlowNodeUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfConversationFlowNodeUio(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ConversationFlowNodeUioFromJSON(json) {
|
|
29
|
+
return ConversationFlowNodeUioFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ConversationFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'contents': json['contents'] == null ? undefined : json['contents'],
|
|
38
|
+
'entrypoints': json['entrypoints'] == null ? undefined : (0, ConversationFlowNodeEntrypointsUio_1.ConversationFlowNodeEntrypointsUioFromJSON)(json['entrypoints']),
|
|
39
|
+
'exits': json['exits'] == null ? undefined : json['exits'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ConversationFlowNodeUioToJSON(json) {
|
|
43
|
+
return ConversationFlowNodeUioToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ConversationFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'contents': value['contents'],
|
|
52
|
+
'entrypoints': (0, ConversationFlowNodeEntrypointsUio_1.ConversationFlowNodeEntrypointsUioToJSON)(value['entrypoints']),
|
|
53
|
+
'exits': value['exits'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ConversationFlowNodeUio } from './ConversationFlowNodeUio';
|
|
12
13
|
import type { ChatMessageUio } from './ChatMessageUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -22,6 +23,12 @@ export interface ConversationUio {
|
|
|
22
23
|
* @memberof ConversationUio
|
|
23
24
|
*/
|
|
24
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ConversationFlowNodeUio}
|
|
29
|
+
* @memberof ConversationUio
|
|
30
|
+
*/
|
|
31
|
+
flowNode: ConversationFlowNodeUio;
|
|
25
32
|
/**
|
|
26
33
|
*
|
|
27
34
|
* @type {Array<ChatMessageUio>}
|
|
@@ -18,6 +18,7 @@ exports.ConversationUioFromJSON = ConversationUioFromJSON;
|
|
|
18
18
|
exports.ConversationUioFromJSONTyped = ConversationUioFromJSONTyped;
|
|
19
19
|
exports.ConversationUioToJSON = ConversationUioToJSON;
|
|
20
20
|
exports.ConversationUioToJSONTyped = ConversationUioToJSONTyped;
|
|
21
|
+
const ConversationFlowNodeUio_1 = require("./ConversationFlowNodeUio");
|
|
21
22
|
const ChatMessageUio_1 = require("./ChatMessageUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ConversationUio interface.
|
|
@@ -25,6 +26,8 @@ const ChatMessageUio_1 = require("./ChatMessageUio");
|
|
|
25
26
|
function instanceOfConversationUio(value) {
|
|
26
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('flowNode' in value) || value['flowNode'] === undefined)
|
|
30
|
+
return false;
|
|
28
31
|
if (!('messages' in value) || value['messages'] === undefined)
|
|
29
32
|
return false;
|
|
30
33
|
return true;
|
|
@@ -38,6 +41,7 @@ function ConversationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
41
|
}
|
|
39
42
|
return {
|
|
40
43
|
'id': json['id'],
|
|
44
|
+
'flowNode': (0, ConversationFlowNodeUio_1.ConversationFlowNodeUioFromJSON)(json['flowNode']),
|
|
41
45
|
'messages': (json['messages'].map(ChatMessageUio_1.ChatMessageUioFromJSON)),
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -50,6 +54,7 @@ function ConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
54
|
}
|
|
51
55
|
return {
|
|
52
56
|
'id': value['id'],
|
|
57
|
+
'flowNode': (0, ConversationFlowNodeUio_1.ConversationFlowNodeUioToJSON)(value['flowNode']),
|
|
53
58
|
'messages': (value['messages'].map(ChatMessageUio_1.ChatMessageUioToJSON)),
|
|
54
59
|
};
|
|
55
60
|
}
|
|
@@ -28,8 +28,6 @@ function instanceOfFileCreationRequestUio(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('size' in value) || value['size'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('hash' in value) || value['hash'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function FileCreationRequestUioFromJSON(json) {
|
|
@@ -44,7 +42,7 @@ function FileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
'contentType': json['contentType'],
|
|
45
43
|
'ext': json['ext'],
|
|
46
44
|
'size': json['size'],
|
|
47
|
-
'hash': json['hash'],
|
|
45
|
+
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
48
46
|
};
|
|
49
47
|
}
|
|
50
48
|
function FileCreationRequestUioToJSON(json) {
|
|
@@ -16,6 +16,12 @@ import type { FileStatusUio } from './FileStatusUio';
|
|
|
16
16
|
* @interface FileCreationResponseUio
|
|
17
17
|
*/
|
|
18
18
|
export interface FileCreationResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FileCreationResponseUio
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -27,51 +33,51 @@ export interface FileCreationResponseUio {
|
|
|
27
33
|
* @type {string}
|
|
28
34
|
* @memberof FileCreationResponseUio
|
|
29
35
|
*/
|
|
30
|
-
contentType
|
|
36
|
+
contentType?: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
34
40
|
* @memberof FileCreationResponseUio
|
|
35
41
|
*/
|
|
36
|
-
ext
|
|
42
|
+
ext?: string;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {string}
|
|
40
46
|
* @memberof FileCreationResponseUio
|
|
41
47
|
*/
|
|
42
|
-
key
|
|
48
|
+
key?: string;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {number}
|
|
46
52
|
* @memberof FileCreationResponseUio
|
|
47
53
|
*/
|
|
48
|
-
size
|
|
54
|
+
size?: number;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {string}
|
|
52
58
|
* @memberof FileCreationResponseUio
|
|
53
59
|
*/
|
|
54
|
-
|
|
60
|
+
postURL: string;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
|
-
* @type {
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
58
64
|
* @memberof FileCreationResponseUio
|
|
59
65
|
*/
|
|
60
|
-
|
|
66
|
+
formData: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
61
69
|
/**
|
|
62
70
|
*
|
|
63
71
|
* @type {string}
|
|
64
72
|
* @memberof FileCreationResponseUio
|
|
65
73
|
*/
|
|
66
|
-
|
|
74
|
+
createdAt?: string;
|
|
67
75
|
/**
|
|
68
76
|
*
|
|
69
|
-
* @type {
|
|
77
|
+
* @type {FileStatusUio}
|
|
70
78
|
* @memberof FileCreationResponseUio
|
|
71
79
|
*/
|
|
72
|
-
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
};
|
|
80
|
+
status?: FileStatusUio;
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
77
83
|
* Check if a given object implements the FileCreationResponseUio interface.
|
|
@@ -25,18 +25,6 @@ const FileStatusUio_1 = require("./FileStatusUio");
|
|
|
25
25
|
function instanceOfFileCreationResponseUio(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('ext' in value) || value['ext'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('key' in value) || value['key'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('size' in value) || value['size'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
-
return false;
|
|
40
28
|
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
41
29
|
return false;
|
|
42
30
|
if (!('formData' in value) || value['formData'] === undefined)
|
|
@@ -51,15 +39,16 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
39
|
return json;
|
|
52
40
|
}
|
|
53
41
|
return {
|
|
42
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
43
|
'id': json['id'],
|
|
55
|
-
'contentType': json['contentType'],
|
|
56
|
-
'ext': json['ext'],
|
|
57
|
-
'key': json['key'],
|
|
58
|
-
'size': json['size'],
|
|
59
|
-
'createdAt': json['createdAt'],
|
|
60
|
-
'status': (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
44
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
45
|
+
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
46
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
47
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
61
48
|
'postURL': json['postURL'],
|
|
62
49
|
'formData': json['formData'],
|
|
50
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
51
|
+
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
63
52
|
};
|
|
64
53
|
}
|
|
65
54
|
function FileCreationResponseUioToJSON(json) {
|
|
@@ -70,14 +59,15 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
70
59
|
return value;
|
|
71
60
|
}
|
|
72
61
|
return {
|
|
62
|
+
'name': value['name'],
|
|
73
63
|
'id': value['id'],
|
|
74
64
|
'contentType': value['contentType'],
|
|
75
65
|
'ext': value['ext'],
|
|
76
66
|
'key': value['key'],
|
|
77
67
|
'size': value['size'],
|
|
78
|
-
'createdAt': value['createdAt'],
|
|
79
|
-
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
80
68
|
'postURL': value['postURL'],
|
|
81
69
|
'formData': value['formData'],
|
|
70
|
+
'createdAt': value['createdAt'],
|
|
71
|
+
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
82
72
|
};
|
|
83
73
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FileFormDataUio
|
|
16
|
+
*/
|
|
17
|
+
export interface FileFormDataUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FileFormDataUio
|
|
22
|
+
*/
|
|
23
|
+
fileName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FileFormDataUio
|
|
28
|
+
*/
|
|
29
|
+
contentType?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FileFormDataUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFileFormDataUio(value: object): value is FileFormDataUio;
|
|
35
|
+
export declare function FileFormDataUioFromJSON(json: any): FileFormDataUio;
|
|
36
|
+
export declare function FileFormDataUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileFormDataUio;
|
|
37
|
+
export declare function FileFormDataUioToJSON(json: any): FileFormDataUio;
|
|
38
|
+
export declare function FileFormDataUioToJSONTyped(value?: FileFormDataUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfFileFormDataUio = instanceOfFileFormDataUio;
|
|
17
|
+
exports.FileFormDataUioFromJSON = FileFormDataUioFromJSON;
|
|
18
|
+
exports.FileFormDataUioFromJSONTyped = FileFormDataUioFromJSONTyped;
|
|
19
|
+
exports.FileFormDataUioToJSON = FileFormDataUioToJSON;
|
|
20
|
+
exports.FileFormDataUioToJSONTyped = FileFormDataUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FileFormDataUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFileFormDataUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function FileFormDataUioFromJSON(json) {
|
|
28
|
+
return FileFormDataUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function FileFormDataUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
|
36
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function FileFormDataUioToJSON(json) {
|
|
40
|
+
return FileFormDataUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function FileFormDataUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'fileName': value['fileName'],
|
|
48
|
+
'contentType': value['contentType'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/FileUio.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { FileFormDataUio } from './FileFormDataUio';
|
|
12
13
|
import type { FileStatusUio } from './FileStatusUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -16,6 +17,12 @@ import type { FileStatusUio } from './FileStatusUio';
|
|
|
16
17
|
* @interface FileUio
|
|
17
18
|
*/
|
|
18
19
|
export interface FileUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof FileUio
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
19
26
|
/**
|
|
20
27
|
*
|
|
21
28
|
* @type {string}
|
|
@@ -27,37 +34,49 @@ export interface FileUio {
|
|
|
27
34
|
* @type {string}
|
|
28
35
|
* @memberof FileUio
|
|
29
36
|
*/
|
|
30
|
-
contentType
|
|
37
|
+
contentType?: string;
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @type {string}
|
|
34
41
|
* @memberof FileUio
|
|
35
42
|
*/
|
|
36
|
-
ext
|
|
43
|
+
ext?: string;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {string}
|
|
40
47
|
* @memberof FileUio
|
|
41
48
|
*/
|
|
42
|
-
key
|
|
49
|
+
key?: string;
|
|
43
50
|
/**
|
|
44
51
|
*
|
|
45
52
|
* @type {number}
|
|
46
53
|
* @memberof FileUio
|
|
47
54
|
*/
|
|
48
|
-
size
|
|
55
|
+
size?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof FileUio
|
|
60
|
+
*/
|
|
61
|
+
postURL?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {FileFormDataUio}
|
|
65
|
+
* @memberof FileUio
|
|
66
|
+
*/
|
|
67
|
+
formData?: FileFormDataUio;
|
|
49
68
|
/**
|
|
50
69
|
*
|
|
51
70
|
* @type {string}
|
|
52
71
|
* @memberof FileUio
|
|
53
72
|
*/
|
|
54
|
-
createdAt
|
|
73
|
+
createdAt?: string;
|
|
55
74
|
/**
|
|
56
75
|
*
|
|
57
76
|
* @type {FileStatusUio}
|
|
58
77
|
* @memberof FileUio
|
|
59
78
|
*/
|
|
60
|
-
status
|
|
79
|
+
status?: FileStatusUio;
|
|
61
80
|
}
|
|
62
81
|
/**
|
|
63
82
|
* Check if a given object implements the FileUio interface.
|
package/dist/models/FileUio.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.FileUioFromJSON = FileUioFromJSON;
|
|
|
18
18
|
exports.FileUioFromJSONTyped = FileUioFromJSONTyped;
|
|
19
19
|
exports.FileUioToJSON = FileUioToJSON;
|
|
20
20
|
exports.FileUioToJSONTyped = FileUioToJSONTyped;
|
|
21
|
+
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
21
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the FileUio interface.
|
|
@@ -25,18 +26,6 @@ const FileStatusUio_1 = require("./FileStatusUio");
|
|
|
25
26
|
function instanceOfFileUio(value) {
|
|
26
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
28
|
return false;
|
|
28
|
-
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('ext' in value) || value['ext'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('key' in value) || value['key'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('size' in value) || value['size'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
-
return false;
|
|
40
29
|
return true;
|
|
41
30
|
}
|
|
42
31
|
function FileUioFromJSON(json) {
|
|
@@ -47,13 +36,16 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
36
|
return json;
|
|
48
37
|
}
|
|
49
38
|
return {
|
|
39
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
50
40
|
'id': json['id'],
|
|
51
|
-
'contentType': json['contentType'],
|
|
52
|
-
'ext': json['ext'],
|
|
53
|
-
'key': json['key'],
|
|
54
|
-
'size': json['size'],
|
|
55
|
-
'
|
|
56
|
-
'
|
|
41
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
42
|
+
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
43
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
44
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
45
|
+
'postURL': json['postURL'] == null ? undefined : json['postURL'],
|
|
46
|
+
'formData': json['formData'] == null ? undefined : (0, FileFormDataUio_1.FileFormDataUioFromJSON)(json['formData']),
|
|
47
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
48
|
+
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
57
49
|
};
|
|
58
50
|
}
|
|
59
51
|
function FileUioToJSON(json) {
|
|
@@ -64,11 +56,14 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
56
|
return value;
|
|
65
57
|
}
|
|
66
58
|
return {
|
|
59
|
+
'name': value['name'],
|
|
67
60
|
'id': value['id'],
|
|
68
61
|
'contentType': value['contentType'],
|
|
69
62
|
'ext': value['ext'],
|
|
70
63
|
'key': value['key'],
|
|
71
64
|
'size': value['size'],
|
|
65
|
+
'postURL': value['postURL'],
|
|
66
|
+
'formData': (0, FileFormDataUio_1.FileFormDataUioToJSON)(value['formData']),
|
|
72
67
|
'createdAt': value['createdAt'],
|
|
73
68
|
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
74
69
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { FileFormDataUio } from './FileFormDataUio';
|
|
12
13
|
import type { FileStatusUio } from './FileStatusUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -16,6 +17,12 @@ import type { FileStatusUio } from './FileStatusUio';
|
|
|
16
17
|
* @interface FileWithDownloadUrlUio
|
|
17
18
|
*/
|
|
18
19
|
export interface FileWithDownloadUrlUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof FileWithDownloadUrlUio
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
19
26
|
/**
|
|
20
27
|
*
|
|
21
28
|
* @type {string}
|
|
@@ -27,37 +34,49 @@ export interface FileWithDownloadUrlUio {
|
|
|
27
34
|
* @type {string}
|
|
28
35
|
* @memberof FileWithDownloadUrlUio
|
|
29
36
|
*/
|
|
30
|
-
contentType
|
|
37
|
+
contentType?: string;
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @type {string}
|
|
34
41
|
* @memberof FileWithDownloadUrlUio
|
|
35
42
|
*/
|
|
36
|
-
ext
|
|
43
|
+
ext?: string;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {string}
|
|
40
47
|
* @memberof FileWithDownloadUrlUio
|
|
41
48
|
*/
|
|
42
|
-
key
|
|
49
|
+
key?: string;
|
|
43
50
|
/**
|
|
44
51
|
*
|
|
45
52
|
* @type {number}
|
|
46
53
|
* @memberof FileWithDownloadUrlUio
|
|
47
54
|
*/
|
|
48
|
-
size
|
|
55
|
+
size?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof FileWithDownloadUrlUio
|
|
60
|
+
*/
|
|
61
|
+
postURL?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {FileFormDataUio}
|
|
65
|
+
* @memberof FileWithDownloadUrlUio
|
|
66
|
+
*/
|
|
67
|
+
formData?: FileFormDataUio;
|
|
49
68
|
/**
|
|
50
69
|
*
|
|
51
70
|
* @type {string}
|
|
52
71
|
* @memberof FileWithDownloadUrlUio
|
|
53
72
|
*/
|
|
54
|
-
createdAt
|
|
73
|
+
createdAt?: string;
|
|
55
74
|
/**
|
|
56
75
|
*
|
|
57
76
|
* @type {FileStatusUio}
|
|
58
77
|
* @memberof FileWithDownloadUrlUio
|
|
59
78
|
*/
|
|
60
|
-
status
|
|
79
|
+
status?: FileStatusUio;
|
|
61
80
|
/**
|
|
62
81
|
* Temporary URL to download the file
|
|
63
82
|
* @type {string}
|
|
@@ -18,6 +18,7 @@ exports.FileWithDownloadUrlUioFromJSON = FileWithDownloadUrlUioFromJSON;
|
|
|
18
18
|
exports.FileWithDownloadUrlUioFromJSONTyped = FileWithDownloadUrlUioFromJSONTyped;
|
|
19
19
|
exports.FileWithDownloadUrlUioToJSON = FileWithDownloadUrlUioToJSON;
|
|
20
20
|
exports.FileWithDownloadUrlUioToJSONTyped = FileWithDownloadUrlUioToJSONTyped;
|
|
21
|
+
const FileFormDataUio_1 = require("./FileFormDataUio");
|
|
21
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the FileWithDownloadUrlUio interface.
|
|
@@ -25,18 +26,6 @@ const FileStatusUio_1 = require("./FileStatusUio");
|
|
|
25
26
|
function instanceOfFileWithDownloadUrlUio(value) {
|
|
26
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
28
|
return false;
|
|
28
|
-
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('ext' in value) || value['ext'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('key' in value) || value['key'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('size' in value) || value['size'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
39
|
-
return false;
|
|
40
29
|
if (!('downloadURL' in value) || value['downloadURL'] === undefined)
|
|
41
30
|
return false;
|
|
42
31
|
return true;
|
|
@@ -49,13 +38,16 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
38
|
return json;
|
|
50
39
|
}
|
|
51
40
|
return {
|
|
41
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
52
42
|
'id': json['id'],
|
|
53
|
-
'contentType': json['contentType'],
|
|
54
|
-
'ext': json['ext'],
|
|
55
|
-
'key': json['key'],
|
|
56
|
-
'size': json['size'],
|
|
57
|
-
'
|
|
58
|
-
'
|
|
43
|
+
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
|
44
|
+
'ext': json['ext'] == null ? undefined : json['ext'],
|
|
45
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
46
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
47
|
+
'postURL': json['postURL'] == null ? undefined : json['postURL'],
|
|
48
|
+
'formData': json['formData'] == null ? undefined : (0, FileFormDataUio_1.FileFormDataUioFromJSON)(json['formData']),
|
|
49
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
50
|
+
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
59
51
|
'downloadURL': json['downloadURL'],
|
|
60
52
|
};
|
|
61
53
|
}
|
|
@@ -67,11 +59,14 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
59
|
return value;
|
|
68
60
|
}
|
|
69
61
|
return {
|
|
62
|
+
'name': value['name'],
|
|
70
63
|
'id': value['id'],
|
|
71
64
|
'contentType': value['contentType'],
|
|
72
65
|
'ext': value['ext'],
|
|
73
66
|
'key': value['key'],
|
|
74
67
|
'size': value['size'],
|
|
68
|
+
'postURL': value['postURL'],
|
|
69
|
+
'formData': (0, FileFormDataUio_1.FileFormDataUioToJSON)(value['formData']),
|
|
75
70
|
'createdAt': value['createdAt'],
|
|
76
71
|
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
77
72
|
'downloadURL': value['downloadURL'],
|