@breign/client 1.0.5 → 1.0.6
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 +1 -1
- package/dist/models/AgentRequestUio.js +1 -3
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +3 -3
- package/dist/models/ChatUio.js +3 -3
- 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/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/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 +6 -5
- package/dist/models/index.js +6 -5
- package/dist/openapi.json +171 -81
- package/package.json +1 -1
- 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
|
@@ -22,6 +22,7 @@ const ToolActionUio_1 = require("./ToolActionUio");
|
|
|
22
22
|
const SuggestionUio_1 = require("./SuggestionUio");
|
|
23
23
|
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
24
24
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
25
|
+
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
25
26
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
26
27
|
/**
|
|
27
28
|
* Check if a given object implements the ChatMessageUio interface.
|
|
@@ -60,6 +61,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'timestamp': json['timestamp'],
|
|
61
62
|
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
62
63
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
64
|
+
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
function ChatMessageUioToJSON(json) {
|
|
@@ -85,5 +87,6 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
87
|
'timestamp': value['timestamp'],
|
|
86
88
|
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
87
89
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
90
|
+
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
88
91
|
};
|
|
89
92
|
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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 { ToolActionUio } from './ToolActionUio';
|
|
13
|
+
import type { AgentFlowUio } from './AgentFlowUio';
|
|
14
|
+
import type { SuggestionUio } from './SuggestionUio';
|
|
15
|
+
import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
16
|
+
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
17
|
+
import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
|
|
18
|
+
import type { ToolResultsUio } from './ToolResultsUio';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface ChatMessageWithFlowNodeUio
|
|
23
|
+
*/
|
|
24
|
+
export interface ChatMessageWithFlowNodeUio {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ChatMessageRoleUio}
|
|
34
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
35
|
+
*/
|
|
36
|
+
role: ChatMessageRoleUio;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
41
|
+
*/
|
|
42
|
+
content: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
47
|
+
*/
|
|
48
|
+
askConfirmation?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
53
|
+
*/
|
|
54
|
+
confirmationLink?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<ToolResultsUio>}
|
|
58
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
59
|
+
*/
|
|
60
|
+
toolResults?: Array<ToolResultsUio>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<SuggestionUio>}
|
|
64
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
65
|
+
*/
|
|
66
|
+
suggestions?: Array<SuggestionUio>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AgentFlowUio}
|
|
70
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
71
|
+
*/
|
|
72
|
+
flowNode: AgentFlowUio;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
77
|
+
*/
|
|
78
|
+
flowNodeRequirementsChecked?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
83
|
+
*/
|
|
84
|
+
flowNodeRequirementsMet?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
89
|
+
*/
|
|
90
|
+
flowNodeRequirementsCheckReason?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
95
|
+
*/
|
|
96
|
+
flowNodeIterations?: number;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
101
|
+
*/
|
|
102
|
+
timestamp: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<ToolActionUio>}
|
|
106
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
107
|
+
*/
|
|
108
|
+
actions?: Array<ToolActionUio>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<FileAttachmentUio>}
|
|
112
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
113
|
+
*/
|
|
114
|
+
attachments?: Array<FileAttachmentUio>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {Array<ChatMessageAudioInnerUio>}
|
|
118
|
+
* @memberof ChatMessageWithFlowNodeUio
|
|
119
|
+
*/
|
|
120
|
+
audio?: Array<ChatMessageAudioInnerUio>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Check if a given object implements the ChatMessageWithFlowNodeUio interface.
|
|
124
|
+
*/
|
|
125
|
+
export declare function instanceOfChatMessageWithFlowNodeUio(value: object): value is ChatMessageWithFlowNodeUio;
|
|
126
|
+
export declare function ChatMessageWithFlowNodeUioFromJSON(json: any): ChatMessageWithFlowNodeUio;
|
|
127
|
+
export declare function ChatMessageWithFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageWithFlowNodeUio;
|
|
128
|
+
export declare function ChatMessageWithFlowNodeUioToJSON(json: any): ChatMessageWithFlowNodeUio;
|
|
129
|
+
export declare function ChatMessageWithFlowNodeUioToJSONTyped(value?: ChatMessageWithFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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.instanceOfChatMessageWithFlowNodeUio = instanceOfChatMessageWithFlowNodeUio;
|
|
17
|
+
exports.ChatMessageWithFlowNodeUioFromJSON = ChatMessageWithFlowNodeUioFromJSON;
|
|
18
|
+
exports.ChatMessageWithFlowNodeUioFromJSONTyped = ChatMessageWithFlowNodeUioFromJSONTyped;
|
|
19
|
+
exports.ChatMessageWithFlowNodeUioToJSON = ChatMessageWithFlowNodeUioToJSON;
|
|
20
|
+
exports.ChatMessageWithFlowNodeUioToJSONTyped = ChatMessageWithFlowNodeUioToJSONTyped;
|
|
21
|
+
const ToolActionUio_1 = require("./ToolActionUio");
|
|
22
|
+
const AgentFlowUio_1 = require("./AgentFlowUio");
|
|
23
|
+
const SuggestionUio_1 = require("./SuggestionUio");
|
|
24
|
+
const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
25
|
+
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
26
|
+
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
27
|
+
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ChatMessageWithFlowNodeUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfChatMessageWithFlowNodeUio(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('flowNode' in value) || value['flowNode'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function ChatMessageWithFlowNodeUioFromJSON(json) {
|
|
45
|
+
return ChatMessageWithFlowNodeUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ChatMessageWithFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
|
|
54
|
+
'content': json['content'],
|
|
55
|
+
'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
|
|
56
|
+
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
57
|
+
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
58
|
+
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
59
|
+
'flowNode': (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
|
|
60
|
+
'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
|
|
61
|
+
'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
|
|
62
|
+
'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
|
|
63
|
+
'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
|
|
64
|
+
'timestamp': json['timestamp'],
|
|
65
|
+
'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
|
|
66
|
+
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
|
|
67
|
+
'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ChatMessageWithFlowNodeUioToJSON(json) {
|
|
71
|
+
return ChatMessageWithFlowNodeUioToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ChatMessageWithFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
|
|
80
|
+
'content': value['content'],
|
|
81
|
+
'askConfirmation': value['askConfirmation'],
|
|
82
|
+
'confirmationLink': value['confirmationLink'],
|
|
83
|
+
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
84
|
+
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
85
|
+
'flowNode': (0, AgentFlowUio_1.AgentFlowUioToJSON)(value['flowNode']),
|
|
86
|
+
'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
|
|
87
|
+
'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
|
|
88
|
+
'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
|
|
89
|
+
'flowNodeIterations': value['flowNodeIterations'],
|
|
90
|
+
'timestamp': value['timestamp'],
|
|
91
|
+
'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
|
|
92
|
+
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
|
|
93
|
+
'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
|
|
94
|
+
};
|
|
95
|
+
}
|
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
|
|
@@ -67,10 +67,10 @@ export interface ChatUio {
|
|
|
67
67
|
init?: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @type {Array<
|
|
70
|
+
* @type {Array<ChatMessageWithFlowNodeUio>}
|
|
71
71
|
* @memberof ChatUio
|
|
72
72
|
*/
|
|
73
|
-
messages: Array<
|
|
73
|
+
messages: Array<ChatMessageWithFlowNodeUio>;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @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
|
*/
|
|
@@ -56,7 +56,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
|
|
57
57
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
58
58
|
'init': json['init'] == null ? undefined : json['init'],
|
|
59
|
-
'messages': (json['messages'].map(
|
|
59
|
+
'messages': (json['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioFromJSON)),
|
|
60
60
|
'createdAt': json['createdAt'],
|
|
61
61
|
'updatedAt': json['updatedAt'],
|
|
62
62
|
'context': (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
|
|
@@ -78,7 +78,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
78
|
'customUserId': value['customUserId'],
|
|
79
79
|
'summary': value['summary'],
|
|
80
80
|
'init': value['init'],
|
|
81
|
-
'messages': (value['messages'].map(
|
|
81
|
+
'messages': (value['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioToJSON)),
|
|
82
82
|
'createdAt': value['createdAt'],
|
|
83
83
|
'updatedAt': value['updatedAt'],
|
|
84
84
|
'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
|
+
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
13
14
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,6 +30,12 @@ export interface GuardianPutRequestUio {
|
|
|
29
30
|
* @memberof GuardianPutRequestUio
|
|
30
31
|
*/
|
|
31
32
|
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {GuardianTypeUio}
|
|
36
|
+
* @memberof GuardianPutRequestUio
|
|
37
|
+
*/
|
|
38
|
+
type?: GuardianTypeUio;
|
|
32
39
|
/**
|
|
33
40
|
*
|
|
34
41
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.GuardianPutRequestUioFromJSONTyped = GuardianPutRequestUioFromJSONTyped;
|
|
|
19
19
|
exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
|
|
20
20
|
exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
|
+
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
22
23
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -36,6 +37,7 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'role': json['role'] == null ? undefined : (0, GuardianRoleUio_1.GuardianRoleUioFromJSON)(json['role']),
|
|
38
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
40
|
+
'type': json['type'] == null ? undefined : (0, GuardianTypeUio_1.GuardianTypeUioFromJSON)(json['type']),
|
|
39
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
40
42
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
41
43
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
@@ -52,6 +54,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
54
|
return {
|
|
53
55
|
'role': (0, GuardianRoleUio_1.GuardianRoleUioToJSON)(value['role']),
|
|
54
56
|
'name': value['name'],
|
|
57
|
+
'type': (0, GuardianTypeUio_1.GuardianTypeUioToJSON)(value['type']),
|
|
55
58
|
'description': value['description'],
|
|
56
59
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
57
60
|
'thresholds': value['thresholds'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const GuardianTypeUio: {
|
|
17
|
+
readonly Node: "node";
|
|
18
|
+
readonly Openai: "openai";
|
|
19
|
+
readonly Llmguards: "llmguards";
|
|
20
|
+
};
|
|
21
|
+
export type GuardianTypeUio = typeof GuardianTypeUio[keyof typeof GuardianTypeUio];
|
|
22
|
+
export declare function instanceOfGuardianTypeUio(value: any): boolean;
|
|
23
|
+
export declare function GuardianTypeUioFromJSON(json: any): GuardianTypeUio;
|
|
24
|
+
export declare function GuardianTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuardianTypeUio;
|
|
25
|
+
export declare function GuardianTypeUioToJSON(value?: GuardianTypeUio | null): any;
|
|
26
|
+
export declare function GuardianTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): GuardianTypeUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.GuardianTypeUio = void 0;
|
|
17
|
+
exports.instanceOfGuardianTypeUio = instanceOfGuardianTypeUio;
|
|
18
|
+
exports.GuardianTypeUioFromJSON = GuardianTypeUioFromJSON;
|
|
19
|
+
exports.GuardianTypeUioFromJSONTyped = GuardianTypeUioFromJSONTyped;
|
|
20
|
+
exports.GuardianTypeUioToJSON = GuardianTypeUioToJSON;
|
|
21
|
+
exports.GuardianTypeUioToJSONTyped = GuardianTypeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GuardianTypeUio = {
|
|
27
|
+
Node: 'node',
|
|
28
|
+
Openai: 'openai',
|
|
29
|
+
Llmguards: 'llmguards'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfGuardianTypeUio(value) {
|
|
32
|
+
for (const key in exports.GuardianTypeUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.GuardianTypeUio, key)) {
|
|
34
|
+
if (exports.GuardianTypeUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function GuardianTypeUioFromJSON(json) {
|
|
42
|
+
return GuardianTypeUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GuardianTypeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function GuardianTypeUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function GuardianTypeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -30,6 +31,12 @@ export interface GuardianUio {
|
|
|
30
31
|
* @memberof GuardianUio
|
|
31
32
|
*/
|
|
32
33
|
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GuardianTypeUio}
|
|
37
|
+
* @memberof GuardianUio
|
|
38
|
+
*/
|
|
39
|
+
type: GuardianTypeUio;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {string}
|