@breign/client 1.0.6 → 1.0.7
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 +24 -3
- package/dist/models/AppUio.js +11 -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 +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
- package/dist/models/KnowledgeBaseUio.d.ts +124 -0
- package/dist/models/KnowledgeBaseUio.js +88 -0
- package/dist/models/OrganizationUio.d.ts +0 -9
- package/dist/models/OrganizationUio.js +0 -6
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/dist/openapi.json +200 -41
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
|
@@ -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}
|
|
@@ -51,6 +51,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
return json;
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
55
|
'id': json['id'],
|
|
55
56
|
'contentType': json['contentType'],
|
|
56
57
|
'ext': json['ext'],
|
|
@@ -70,6 +71,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
70
71
|
return value;
|
|
71
72
|
}
|
|
72
73
|
return {
|
|
74
|
+
'name': value['name'],
|
|
73
75
|
'id': value['id'],
|
|
74
76
|
'contentType': value['contentType'],
|
|
75
77
|
'ext': value['ext'],
|
package/dist/models/FileUio.d.ts
CHANGED
package/dist/models/FileUio.js
CHANGED
|
@@ -47,6 +47,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
return json;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
50
51
|
'id': json['id'],
|
|
51
52
|
'contentType': json['contentType'],
|
|
52
53
|
'ext': json['ext'],
|
|
@@ -64,6 +65,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
return value;
|
|
65
66
|
}
|
|
66
67
|
return {
|
|
68
|
+
'name': value['name'],
|
|
67
69
|
'id': value['id'],
|
|
68
70
|
'contentType': value['contentType'],
|
|
69
71
|
'ext': value['ext'],
|
|
@@ -16,6 +16,12 @@ import type { FileStatusUio } from './FileStatusUio';
|
|
|
16
16
|
* @interface FileWithDownloadUrlUio
|
|
17
17
|
*/
|
|
18
18
|
export interface FileWithDownloadUrlUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FileWithDownloadUrlUio
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -49,6 +49,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
return json;
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
52
53
|
'id': json['id'],
|
|
53
54
|
'contentType': json['contentType'],
|
|
54
55
|
'ext': json['ext'],
|
|
@@ -67,6 +68,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
68
|
return value;
|
|
68
69
|
}
|
|
69
70
|
return {
|
|
71
|
+
'name': value['name'],
|
|
70
72
|
'id': value['id'],
|
|
71
73
|
'contentType': value['contentType'],
|
|
72
74
|
'ext': value['ext'],
|
|
@@ -0,0 +1,44 @@
|
|
|
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 KnowledgeBaseFilesInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface KnowledgeBaseFilesInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof KnowledgeBaseFilesInnerUio
|
|
34
|
+
*/
|
|
35
|
+
knowledgeBaseId: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfKnowledgeBaseFilesInnerUio(value: object): value is KnowledgeBaseFilesInnerUio;
|
|
41
|
+
export declare function KnowledgeBaseFilesInnerUioFromJSON(json: any): KnowledgeBaseFilesInnerUio;
|
|
42
|
+
export declare function KnowledgeBaseFilesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseFilesInnerUio;
|
|
43
|
+
export declare function KnowledgeBaseFilesInnerUioToJSON(json: any): KnowledgeBaseFilesInnerUio;
|
|
44
|
+
export declare function KnowledgeBaseFilesInnerUioToJSONTyped(value?: KnowledgeBaseFilesInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfKnowledgeBaseFilesInnerUio = instanceOfKnowledgeBaseFilesInnerUio;
|
|
17
|
+
exports.KnowledgeBaseFilesInnerUioFromJSON = KnowledgeBaseFilesInnerUioFromJSON;
|
|
18
|
+
exports.KnowledgeBaseFilesInnerUioFromJSONTyped = KnowledgeBaseFilesInnerUioFromJSONTyped;
|
|
19
|
+
exports.KnowledgeBaseFilesInnerUioToJSON = KnowledgeBaseFilesInnerUioToJSON;
|
|
20
|
+
exports.KnowledgeBaseFilesInnerUioToJSONTyped = KnowledgeBaseFilesInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfKnowledgeBaseFilesInnerUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('knowledgeBaseId' in value) || value['knowledgeBaseId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function KnowledgeBaseFilesInnerUioFromJSON(json) {
|
|
34
|
+
return KnowledgeBaseFilesInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function KnowledgeBaseFilesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'knowledgeBaseId': json['knowledgeBaseId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function KnowledgeBaseFilesInnerUioToJSON(json) {
|
|
47
|
+
return KnowledgeBaseFilesInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function KnowledgeBaseFilesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'knowledgeBaseId': value['knowledgeBaseId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { KnowledgeBasePrivacyUio } from './KnowledgeBasePrivacyUio';
|
|
13
|
+
import type { KnowledgeBaseFilesInnerUio } from './KnowledgeBaseFilesInnerUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface KnowledgeBaseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface KnowledgeBaseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof KnowledgeBaseUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof KnowledgeBaseUio
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof KnowledgeBaseUio
|
|
36
|
+
*/
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof KnowledgeBaseUio
|
|
42
|
+
*/
|
|
43
|
+
updatedAt?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof KnowledgeBaseUio
|
|
48
|
+
*/
|
|
49
|
+
organisationId?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof KnowledgeBaseUio
|
|
54
|
+
*/
|
|
55
|
+
authorizedAgents: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* DEPRECATED
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof KnowledgeBaseUio
|
|
60
|
+
*/
|
|
61
|
+
isTemplate?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {KnowledgeBasePrivacyUio}
|
|
65
|
+
* @memberof KnowledgeBaseUio
|
|
66
|
+
*/
|
|
67
|
+
privacy?: KnowledgeBasePrivacyUio;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof KnowledgeBaseUio
|
|
72
|
+
*/
|
|
73
|
+
role?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof KnowledgeBaseUio
|
|
78
|
+
*/
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof KnowledgeBaseUio
|
|
84
|
+
*/
|
|
85
|
+
picture?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof KnowledgeBaseUio
|
|
90
|
+
*/
|
|
91
|
+
template?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof KnowledgeBaseUio
|
|
96
|
+
*/
|
|
97
|
+
agentType?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {Array<KnowledgeBaseFilesInnerUio>}
|
|
101
|
+
* @memberof KnowledgeBaseUio
|
|
102
|
+
*/
|
|
103
|
+
files?: Array<KnowledgeBaseFilesInnerUio>;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof KnowledgeBaseUio
|
|
108
|
+
*/
|
|
109
|
+
status?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof KnowledgeBaseUio
|
|
114
|
+
*/
|
|
115
|
+
indexed?: boolean;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the KnowledgeBaseUio interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfKnowledgeBaseUio(value: object): value is KnowledgeBaseUio;
|
|
121
|
+
export declare function KnowledgeBaseUioFromJSON(json: any): KnowledgeBaseUio;
|
|
122
|
+
export declare function KnowledgeBaseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseUio;
|
|
123
|
+
export declare function KnowledgeBaseUioToJSON(json: any): KnowledgeBaseUio;
|
|
124
|
+
export declare function KnowledgeBaseUioToJSONTyped(value?: KnowledgeBaseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.instanceOfKnowledgeBaseUio = instanceOfKnowledgeBaseUio;
|
|
17
|
+
exports.KnowledgeBaseUioFromJSON = KnowledgeBaseUioFromJSON;
|
|
18
|
+
exports.KnowledgeBaseUioFromJSONTyped = KnowledgeBaseUioFromJSONTyped;
|
|
19
|
+
exports.KnowledgeBaseUioToJSON = KnowledgeBaseUioToJSON;
|
|
20
|
+
exports.KnowledgeBaseUioToJSONTyped = KnowledgeBaseUioToJSONTyped;
|
|
21
|
+
const KnowledgeBasePrivacyUio_1 = require("./KnowledgeBasePrivacyUio");
|
|
22
|
+
const KnowledgeBaseFilesInnerUio_1 = require("./KnowledgeBaseFilesInnerUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the KnowledgeBaseUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfKnowledgeBaseUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('authorizedAgents' in value) || value['authorizedAgents'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function KnowledgeBaseUioFromJSON(json) {
|
|
38
|
+
return KnowledgeBaseUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function KnowledgeBaseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'createdAt': json['createdAt'],
|
|
48
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
49
|
+
'organisationId': json['organisationId'] == null ? undefined : json['organisationId'],
|
|
50
|
+
'authorizedAgents': json['authorizedAgents'],
|
|
51
|
+
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
52
|
+
'privacy': json['privacy'] == null ? undefined : (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioFromJSON)(json['privacy']),
|
|
53
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
54
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
55
|
+
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
56
|
+
'template': json['template'] == null ? undefined : json['template'],
|
|
57
|
+
'agentType': json['agentType'] == null ? undefined : json['agentType'],
|
|
58
|
+
'files': json['files'] == null ? undefined : (json['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioFromJSON)),
|
|
59
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
60
|
+
'indexed': json['indexed'] == null ? undefined : json['indexed'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function KnowledgeBaseUioToJSON(json) {
|
|
64
|
+
return KnowledgeBaseUioToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function KnowledgeBaseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'createdAt': value['createdAt'],
|
|
74
|
+
'updatedAt': value['updatedAt'],
|
|
75
|
+
'organisationId': value['organisationId'],
|
|
76
|
+
'authorizedAgents': value['authorizedAgents'],
|
|
77
|
+
'isTemplate': value['isTemplate'],
|
|
78
|
+
'privacy': (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioToJSON)(value['privacy']),
|
|
79
|
+
'role': value['role'],
|
|
80
|
+
'description': value['description'],
|
|
81
|
+
'picture': value['picture'],
|
|
82
|
+
'template': value['template'],
|
|
83
|
+
'agentType': value['agentType'],
|
|
84
|
+
'files': value['files'] == null ? undefined : (value['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioToJSON)),
|
|
85
|
+
'status': value['status'],
|
|
86
|
+
'indexed': value['indexed'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentModuleUio } from './AgentModuleUio';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -28,14 +27,6 @@ export interface OrganizationUio {
|
|
|
28
27
|
* @memberof OrganizationUio
|
|
29
28
|
*/
|
|
30
29
|
name: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {{ [key: string]: AgentModuleUio; }}
|
|
34
|
-
* @memberof OrganizationUio
|
|
35
|
-
*/
|
|
36
|
-
modules: {
|
|
37
|
-
[key: string]: AgentModuleUio;
|
|
38
|
-
};
|
|
39
30
|
}
|
|
40
31
|
/**
|
|
41
32
|
* Check if a given object implements the OrganizationUio interface.
|
|
@@ -18,8 +18,6 @@ exports.OrganizationUioFromJSON = OrganizationUioFromJSON;
|
|
|
18
18
|
exports.OrganizationUioFromJSONTyped = OrganizationUioFromJSONTyped;
|
|
19
19
|
exports.OrganizationUioToJSON = OrganizationUioToJSON;
|
|
20
20
|
exports.OrganizationUioToJSONTyped = OrganizationUioToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const AgentModuleUio_1 = require("./AgentModuleUio");
|
|
23
21
|
/**
|
|
24
22
|
* Check if a given object implements the OrganizationUio interface.
|
|
25
23
|
*/
|
|
@@ -28,8 +26,6 @@ function instanceOfOrganizationUio(value) {
|
|
|
28
26
|
return false;
|
|
29
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
30
28
|
return false;
|
|
31
|
-
if (!('modules' in value) || value['modules'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
return true;
|
|
34
30
|
}
|
|
35
31
|
function OrganizationUioFromJSON(json) {
|
|
@@ -42,7 +38,6 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
38
|
return {
|
|
43
39
|
'id': json['id'],
|
|
44
40
|
'name': json['name'],
|
|
45
|
-
'modules': ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
function OrganizationUioToJSON(json) {
|
|
@@ -55,6 +50,5 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
50
|
return {
|
|
56
51
|
'id': value['id'],
|
|
57
52
|
'name': value['name'],
|
|
58
|
-
'modules': ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
59
53
|
};
|
|
60
54
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './AdditionalUio';
|
|
|
2
2
|
export * from './AgentDuplicateRequestUio';
|
|
3
3
|
export * from './AgentFlowCreateUio';
|
|
4
4
|
export * from './AgentFlowUio';
|
|
5
|
-
export * from './AgentKnowledgeBaseUio';
|
|
6
5
|
export * from './AgentMetricsEventUio';
|
|
7
6
|
export * from './AgentMetricsOverviewUio';
|
|
8
7
|
export * from './AgentMetricsUnitsTypeUio';
|
|
@@ -34,6 +33,7 @@ export * from './AppInstanceCreateRequestUio';
|
|
|
34
33
|
export * from './AppLightUio';
|
|
35
34
|
export * from './AppProbeRequestUio';
|
|
36
35
|
export * from './AppProbeResponseUio';
|
|
36
|
+
export * from './AppSequencesInnerUio';
|
|
37
37
|
export * from './AppStatusRequestUio';
|
|
38
38
|
export * from './AppStatusResponseUio';
|
|
39
39
|
export * from './AppStatusUio';
|
|
@@ -70,6 +70,8 @@ export * from './ChunkUio';
|
|
|
70
70
|
export * from './ConfigurationDefaultFillerPhrasesUio';
|
|
71
71
|
export * from './ContentsToolsUio';
|
|
72
72
|
export * from './ContextUio';
|
|
73
|
+
export * from './ConversationFlowNodeEntrypointsUio';
|
|
74
|
+
export * from './ConversationFlowNodeUio';
|
|
73
75
|
export * from './ConversationUio';
|
|
74
76
|
export * from './CostMetricUio';
|
|
75
77
|
export * from './DefaultClientPricesUio';
|
|
@@ -106,7 +108,9 @@ export * from './HealthStatusUio';
|
|
|
106
108
|
export * from './ImportFileToAgentKnowledge200ResponseUio';
|
|
107
109
|
export * from './InputUio';
|
|
108
110
|
export * from './InstanceUio';
|
|
111
|
+
export * from './KnowledgeBaseFilesInnerUio';
|
|
109
112
|
export * from './KnowledgeBasePrivacyUio';
|
|
113
|
+
export * from './KnowledgeBaseUio';
|
|
110
114
|
export * from './LipsyncUio';
|
|
111
115
|
export * from './ManifestCreateRequestUio';
|
|
112
116
|
export * from './ManifestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -20,7 +20,6 @@ __exportStar(require("./AdditionalUio"), exports);
|
|
|
20
20
|
__exportStar(require("./AgentDuplicateRequestUio"), exports);
|
|
21
21
|
__exportStar(require("./AgentFlowCreateUio"), exports);
|
|
22
22
|
__exportStar(require("./AgentFlowUio"), exports);
|
|
23
|
-
__exportStar(require("./AgentKnowledgeBaseUio"), exports);
|
|
24
23
|
__exportStar(require("./AgentMetricsEventUio"), exports);
|
|
25
24
|
__exportStar(require("./AgentMetricsOverviewUio"), exports);
|
|
26
25
|
__exportStar(require("./AgentMetricsUnitsTypeUio"), exports);
|
|
@@ -52,6 +51,7 @@ __exportStar(require("./AppInstanceCreateRequestUio"), exports);
|
|
|
52
51
|
__exportStar(require("./AppLightUio"), exports);
|
|
53
52
|
__exportStar(require("./AppProbeRequestUio"), exports);
|
|
54
53
|
__exportStar(require("./AppProbeResponseUio"), exports);
|
|
54
|
+
__exportStar(require("./AppSequencesInnerUio"), exports);
|
|
55
55
|
__exportStar(require("./AppStatusRequestUio"), exports);
|
|
56
56
|
__exportStar(require("./AppStatusResponseUio"), exports);
|
|
57
57
|
__exportStar(require("./AppStatusUio"), exports);
|
|
@@ -88,6 +88,8 @@ __exportStar(require("./ChunkUio"), exports);
|
|
|
88
88
|
__exportStar(require("./ConfigurationDefaultFillerPhrasesUio"), exports);
|
|
89
89
|
__exportStar(require("./ContentsToolsUio"), exports);
|
|
90
90
|
__exportStar(require("./ContextUio"), exports);
|
|
91
|
+
__exportStar(require("./ConversationFlowNodeEntrypointsUio"), exports);
|
|
92
|
+
__exportStar(require("./ConversationFlowNodeUio"), exports);
|
|
91
93
|
__exportStar(require("./ConversationUio"), exports);
|
|
92
94
|
__exportStar(require("./CostMetricUio"), exports);
|
|
93
95
|
__exportStar(require("./DefaultClientPricesUio"), exports);
|
|
@@ -124,7 +126,9 @@ __exportStar(require("./HealthStatusUio"), exports);
|
|
|
124
126
|
__exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
|
|
125
127
|
__exportStar(require("./InputUio"), exports);
|
|
126
128
|
__exportStar(require("./InstanceUio"), exports);
|
|
129
|
+
__exportStar(require("./KnowledgeBaseFilesInnerUio"), exports);
|
|
127
130
|
__exportStar(require("./KnowledgeBasePrivacyUio"), exports);
|
|
131
|
+
__exportStar(require("./KnowledgeBaseUio"), exports);
|
|
128
132
|
__exportStar(require("./LipsyncUio"), exports);
|
|
129
133
|
__exportStar(require("./ManifestCreateRequestUio"), exports);
|
|
130
134
|
__exportStar(require("./ManifestUio"), exports);
|