@breign/client 1.0.5 → 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/apis/AgentApi.d.ts +5 -4
- package/dist/apis/AgentApi.js +6 -3
- package/dist/apis/EngineApi.d.ts +6 -5
- package/dist/apis/EngineApi.js +13 -7
- package/dist/apis/FilesApi.d.ts +21 -21
- package/dist/apis/FilesApi.js +42 -42
- package/dist/apis/GeneralApi.d.ts +2 -2
- package/dist/apis/GeneralApi.js +3 -3
- package/dist/apis/GuardiansApi.d.ts +54 -54
- package/dist/apis/GuardiansApi.js +91 -91
- package/dist/apis/KnowledgeApi.d.ts +72 -72
- package/dist/apis/KnowledgeApi.js +152 -152
- package/dist/apis/ManifestsApi.d.ts +28 -28
- package/dist/apis/ManifestsApi.js +45 -45
- package/dist/apis/MetricsApi.d.ts +14 -14
- package/dist/apis/MetricsApi.js +18 -18
- package/dist/apis/OrganizationsApi.d.ts +3 -3
- package/dist/apis/OrganizationsApi.js +4 -4
- package/dist/apis/PromptsApi.d.ts +31 -31
- package/dist/apis/PromptsApi.js +60 -60
- package/dist/apis/RemotesApi.d.ts +3 -3
- package/dist/apis/RemotesApi.js +4 -4
- package/dist/apis/ToolsApi.d.ts +6 -6
- package/dist/apis/ToolsApi.js +8 -8
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +4 -4
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentRequestUio.d.ts +10 -1
- package/dist/models/AgentRequestUio.js +5 -3
- 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/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +10 -2
- package/dist/models/ChatMessageUio.js +6 -2
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +9 -3
- package/dist/models/ChatUio.js +5 -3
- 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/DefaultEngineRequestUio.d.ts +1 -7
- package/dist/models/DefaultEngineRequestUio.js +3 -7
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- 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/GuardianCreateRequestUio.d.ts +7 -0
- package/dist/models/GuardianCreateRequestUio.js +5 -0
- package/dist/models/GuardianEngineUio.d.ts +0 -7
- package/dist/models/GuardianEngineUio.js +0 -5
- package/dist/models/GuardianPutRequestUio.d.ts +7 -0
- package/dist/models/GuardianPutRequestUio.js +3 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +7 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -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/ProviderCreateRequestUio.d.ts +4 -9
- package/dist/models/ProviderCreateRequestUio.js +4 -9
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +4 -9
- package/dist/models/ProviderUio.js +4 -9
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/openapi.json +369 -120
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
- package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
- package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
- package/dist/models/GuardianEngineTypeUio.js +0 -52
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
- package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
package/dist/models/ChatUio.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ChatMessageWithFlowNodeUio } from './ChatMessageWithFlowNodeUio';
|
|
12
13
|
import type { ChatContextUio } from './ChatContextUio';
|
|
13
|
-
import type { ChatMessageUio } from './ChatMessageUio';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -23,6 +23,12 @@ export interface ChatUio {
|
|
|
23
23
|
* @memberof ChatUio
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ChatUio
|
|
30
|
+
*/
|
|
31
|
+
appId?: string;
|
|
26
32
|
/**
|
|
27
33
|
*
|
|
28
34
|
* @type {string}
|
|
@@ -67,10 +73,10 @@ export interface ChatUio {
|
|
|
67
73
|
init?: string;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
|
-
* @type {Array<
|
|
76
|
+
* @type {Array<ChatMessageWithFlowNodeUio>}
|
|
71
77
|
* @memberof ChatUio
|
|
72
78
|
*/
|
|
73
|
-
messages: Array<
|
|
79
|
+
messages: Array<ChatMessageWithFlowNodeUio>;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {string}
|
package/dist/models/ChatUio.js
CHANGED
|
@@ -18,8 +18,8 @@ exports.ChatUioFromJSON = ChatUioFromJSON;
|
|
|
18
18
|
exports.ChatUioFromJSONTyped = ChatUioFromJSONTyped;
|
|
19
19
|
exports.ChatUioToJSON = ChatUioToJSON;
|
|
20
20
|
exports.ChatUioToJSONTyped = ChatUioToJSONTyped;
|
|
21
|
+
const ChatMessageWithFlowNodeUio_1 = require("./ChatMessageWithFlowNodeUio");
|
|
21
22
|
const ChatContextUio_1 = require("./ChatContextUio");
|
|
22
|
-
const ChatMessageUio_1 = require("./ChatMessageUio");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the ChatUio interface.
|
|
25
25
|
*/
|
|
@@ -49,6 +49,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
'id': json['id'],
|
|
52
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
52
53
|
'lang': json['lang'],
|
|
53
54
|
'agentId': json['agentId'],
|
|
54
55
|
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
@@ -56,7 +57,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
57
|
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
57
58
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
58
59
|
'init': json['init'] == null ? undefined : json['init'],
|
|
59
|
-
'messages': (json['messages'].map(
|
|
60
|
+
'messages': (json['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioFromJSON)),
|
|
60
61
|
'createdAt': json['createdAt'],
|
|
61
62
|
'updatedAt': json['updatedAt'],
|
|
62
63
|
'context': (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
|
|
@@ -71,6 +72,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
}
|
|
72
73
|
return {
|
|
73
74
|
'id': value['id'],
|
|
75
|
+
'appId': value['appId'],
|
|
74
76
|
'lang': value['lang'],
|
|
75
77
|
'agentId': value['agentId'],
|
|
76
78
|
'instanceId': value['instanceId'],
|
|
@@ -78,7 +80,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
80
|
'customUserId': value['customUserId'],
|
|
79
81
|
'summary': value['summary'],
|
|
80
82
|
'init': value['init'],
|
|
81
|
-
'messages': (value['messages'].map(
|
|
83
|
+
'messages': (value['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioToJSON)),
|
|
82
84
|
'createdAt': value['createdAt'],
|
|
83
85
|
'updatedAt': value['updatedAt'],
|
|
84
86
|
'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ConversationFlowNodeEntrypointsUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationFlowNodeEntrypointsUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ConversationFlowNodeEntrypointsUio
|
|
22
|
+
*/
|
|
23
|
+
intents?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ConversationFlowNodeEntrypointsUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfConversationFlowNodeEntrypointsUio(value: object): value is ConversationFlowNodeEntrypointsUio;
|
|
29
|
+
export declare function ConversationFlowNodeEntrypointsUioFromJSON(json: any): ConversationFlowNodeEntrypointsUio;
|
|
30
|
+
export declare function ConversationFlowNodeEntrypointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationFlowNodeEntrypointsUio;
|
|
31
|
+
export declare function ConversationFlowNodeEntrypointsUioToJSON(json: any): ConversationFlowNodeEntrypointsUio;
|
|
32
|
+
export declare function ConversationFlowNodeEntrypointsUioToJSONTyped(value?: ConversationFlowNodeEntrypointsUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfConversationFlowNodeEntrypointsUio = instanceOfConversationFlowNodeEntrypointsUio;
|
|
17
|
+
exports.ConversationFlowNodeEntrypointsUioFromJSON = ConversationFlowNodeEntrypointsUioFromJSON;
|
|
18
|
+
exports.ConversationFlowNodeEntrypointsUioFromJSONTyped = ConversationFlowNodeEntrypointsUioFromJSONTyped;
|
|
19
|
+
exports.ConversationFlowNodeEntrypointsUioToJSON = ConversationFlowNodeEntrypointsUioToJSON;
|
|
20
|
+
exports.ConversationFlowNodeEntrypointsUioToJSONTyped = ConversationFlowNodeEntrypointsUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConversationFlowNodeEntrypointsUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConversationFlowNodeEntrypointsUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ConversationFlowNodeEntrypointsUioFromJSON(json) {
|
|
28
|
+
return ConversationFlowNodeEntrypointsUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ConversationFlowNodeEntrypointsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'intents': json['intents'] == null ? undefined : json['intents'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ConversationFlowNodeEntrypointsUioToJSON(json) {
|
|
39
|
+
return ConversationFlowNodeEntrypointsUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ConversationFlowNodeEntrypointsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'intents': value['intents'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ConversationFlowNodeEntrypointsUio } from './ConversationFlowNodeEntrypointsUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationFlowNodeUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationFlowNodeUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationFlowNodeUio
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {any}
|
|
28
|
+
* @memberof ConversationFlowNodeUio
|
|
29
|
+
*/
|
|
30
|
+
contents?: any | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ConversationFlowNodeEntrypointsUio}
|
|
34
|
+
* @memberof ConversationFlowNodeUio
|
|
35
|
+
*/
|
|
36
|
+
entrypoints?: ConversationFlowNodeEntrypointsUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {any}
|
|
40
|
+
* @memberof ConversationFlowNodeUio
|
|
41
|
+
*/
|
|
42
|
+
exits?: any | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ConversationFlowNodeUio interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfConversationFlowNodeUio(value: object): value is ConversationFlowNodeUio;
|
|
48
|
+
export declare function ConversationFlowNodeUioFromJSON(json: any): ConversationFlowNodeUio;
|
|
49
|
+
export declare function ConversationFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationFlowNodeUio;
|
|
50
|
+
export declare function ConversationFlowNodeUioToJSON(json: any): ConversationFlowNodeUio;
|
|
51
|
+
export declare function ConversationFlowNodeUioToJSONTyped(value?: ConversationFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
}
|
|
@@ -26,13 +26,7 @@ export interface DefaultEngineRequestUio {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof DefaultEngineRequestUio
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof DefaultEngineRequestUio
|
|
34
|
-
*/
|
|
35
|
-
provider: string;
|
|
29
|
+
providerId: string;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {string}
|
|
@@ -24,9 +24,7 @@ exports.DefaultEngineRequestUioToJSONTyped = DefaultEngineRequestUioToJSONTyped;
|
|
|
24
24
|
function instanceOfDefaultEngineRequestUio(value) {
|
|
25
25
|
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('provider' in value) || value['provider'] === undefined)
|
|
27
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('model' in value) || value['model'] === undefined)
|
|
32
30
|
return false;
|
|
@@ -41,8 +39,7 @@ function DefaultEngineRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
41
|
'organizationId': json['organizationId'],
|
|
44
|
-
'
|
|
45
|
-
'provider': json['provider'],
|
|
42
|
+
'providerId': json['providerId'],
|
|
46
43
|
'model': json['model'],
|
|
47
44
|
};
|
|
48
45
|
}
|
|
@@ -55,8 +52,7 @@ function DefaultEngineRequestUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
55
52
|
}
|
|
56
53
|
return {
|
|
57
54
|
'organizationId': value['organizationId'],
|
|
58
|
-
'
|
|
59
|
-
'provider': value['provider'],
|
|
55
|
+
'providerId': value['providerId'],
|
|
60
56
|
'model': value['model'],
|
|
61
57
|
};
|
|
62
58
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { EngineTypeUio } from './EngineTypeUio';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -18,18 +17,16 @@ import type { EngineTypeUio } from './EngineTypeUio';
|
|
|
18
17
|
export interface EngineUio {
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
21
|
-
* @type {
|
|
20
|
+
* @type {string}
|
|
22
21
|
* @memberof EngineUio
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
providerId: string;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
28
27
|
* @memberof EngineUio
|
|
29
28
|
*/
|
|
30
|
-
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
};
|
|
29
|
+
model: string;
|
|
33
30
|
}
|
|
34
31
|
/**
|
|
35
32
|
* Check if a given object implements the EngineUio interface.
|
package/dist/models/EngineUio.js
CHANGED
|
@@ -18,14 +18,13 @@ exports.EngineUioFromJSON = EngineUioFromJSON;
|
|
|
18
18
|
exports.EngineUioFromJSONTyped = EngineUioFromJSONTyped;
|
|
19
19
|
exports.EngineUioToJSON = EngineUioToJSON;
|
|
20
20
|
exports.EngineUioToJSONTyped = EngineUioToJSONTyped;
|
|
21
|
-
const EngineTypeUio_1 = require("./EngineTypeUio");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the EngineUio interface.
|
|
24
23
|
*/
|
|
25
24
|
function instanceOfEngineUio(value) {
|
|
26
|
-
if (!('
|
|
25
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
27
26
|
return false;
|
|
28
|
-
if (!('
|
|
27
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
29
28
|
return false;
|
|
30
29
|
return true;
|
|
31
30
|
}
|
|
@@ -37,8 +36,8 @@ function EngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
return json;
|
|
38
37
|
}
|
|
39
38
|
return {
|
|
40
|
-
'
|
|
41
|
-
'
|
|
39
|
+
'providerId': json['providerId'],
|
|
40
|
+
'model': json['model'],
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function EngineUioToJSON(json) {
|
|
@@ -49,7 +48,7 @@ function EngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
48
|
return value;
|
|
50
49
|
}
|
|
51
50
|
return {
|
|
52
|
-
'
|
|
53
|
-
'
|
|
51
|
+
'providerId': value['providerId'],
|
|
52
|
+
'model': value['model'],
|
|
54
53
|
};
|
|
55
54
|
}
|
|
@@ -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'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
+
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -43,6 +44,12 @@ export interface GuardianCreateRequestUio {
|
|
|
43
44
|
thresholds?: {
|
|
44
45
|
[key: string]: number;
|
|
45
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {GuardianTypeUio}
|
|
50
|
+
* @memberof GuardianCreateRequestUio
|
|
51
|
+
*/
|
|
52
|
+
type: GuardianTypeUio;
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
55
|
* @type {Array<string>}
|
|
@@ -20,12 +20,15 @@ exports.GuardianCreateRequestUioToJSON = GuardianCreateRequestUioToJSON;
|
|
|
20
20
|
exports.GuardianCreateRequestUioToJSONTyped = GuardianCreateRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
22
|
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
23
|
+
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the GuardianCreateRequestUio interface.
|
|
25
26
|
*/
|
|
26
27
|
function instanceOfGuardianCreateRequestUio(value) {
|
|
27
28
|
if (!('role' in value) || value['role'] === undefined)
|
|
28
29
|
return false;
|
|
30
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
31
|
+
return false;
|
|
29
32
|
if (!('engine' in value) || value['engine'] === undefined)
|
|
30
33
|
return false;
|
|
31
34
|
return true;
|
|
@@ -42,6 +45,7 @@ function GuardianCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
45
|
'name': json['name'] == null ? undefined : json['name'],
|
|
43
46
|
'description': json['description'] == null ? undefined : json['description'],
|
|
44
47
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
48
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioFromJSON)(json['type']),
|
|
45
49
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
46
50
|
'engine': (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
|
|
47
51
|
};
|
|
@@ -58,6 +62,7 @@ function GuardianCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
58
62
|
'name': value['name'],
|
|
59
63
|
'description': value['description'],
|
|
60
64
|
'thresholds': value['thresholds'],
|
|
65
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioToJSON)(value['type']),
|
|
61
66
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
62
67
|
'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
|
|
63
68
|
};
|
|
@@ -9,19 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { GuardianEngineTypeUio } from './GuardianEngineTypeUio';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
16
15
|
* @interface GuardianEngineUio
|
|
17
16
|
*/
|
|
18
17
|
export interface GuardianEngineUio {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {GuardianEngineTypeUio}
|
|
22
|
-
* @memberof GuardianEngineUio
|
|
23
|
-
*/
|
|
24
|
-
type: GuardianEngineTypeUio;
|
|
25
18
|
/**
|
|
26
19
|
*
|
|
27
20
|
* @type {{ [key: string]: any; }}
|
|
@@ -18,13 +18,10 @@ exports.GuardianEngineUioFromJSON = GuardianEngineUioFromJSON;
|
|
|
18
18
|
exports.GuardianEngineUioFromJSONTyped = GuardianEngineUioFromJSONTyped;
|
|
19
19
|
exports.GuardianEngineUioToJSON = GuardianEngineUioToJSON;
|
|
20
20
|
exports.GuardianEngineUioToJSONTyped = GuardianEngineUioToJSONTyped;
|
|
21
|
-
const GuardianEngineTypeUio_1 = require("./GuardianEngineTypeUio");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
24
23
|
*/
|
|
25
24
|
function instanceOfGuardianEngineUio(value) {
|
|
26
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
-
return false;
|
|
28
25
|
if (!('_configuration' in value) || value['_configuration'] === undefined)
|
|
29
26
|
return false;
|
|
30
27
|
return true;
|
|
@@ -37,7 +34,6 @@ function GuardianEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
34
|
return json;
|
|
38
35
|
}
|
|
39
36
|
return {
|
|
40
|
-
'type': (0, GuardianEngineTypeUio_1.GuardianEngineTypeUioFromJSON)(json['type']),
|
|
41
37
|
'_configuration': json['configuration'],
|
|
42
38
|
};
|
|
43
39
|
}
|
|
@@ -49,7 +45,6 @@ function GuardianEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
45
|
return value;
|
|
50
46
|
}
|
|
51
47
|
return {
|
|
52
|
-
'type': (0, GuardianEngineTypeUio_1.GuardianEngineTypeUioToJSON)(value['type']),
|
|
53
48
|
'configuration': value['_configuration'],
|
|
54
49
|
};
|
|
55
50
|
}
|