@breign/client 1.0.157 → 1.0.159
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/ConversationsApi.d.ts +28 -1
- package/dist/apis/ConversationsApi.js +63 -0
- package/dist/apis/McpApi.d.ts +58 -0
- package/dist/apis/McpApi.js +154 -0
- package/dist/apis/ToolsApi.d.ts +46 -1
- package/dist/apis/ToolsApi.js +107 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentChatOverviewEntryUio.d.ts +6 -0
- package/dist/models/AgentChatOverviewEntryUio.js +2 -0
- package/dist/models/AgentHumanEscalationConfigurationUio.d.ts +44 -0
- package/dist/models/AgentHumanEscalationConfigurationUio.js +52 -0
- package/dist/models/AgentMcpExposureConfigurationUio.d.ts +32 -0
- package/dist/models/AgentMcpExposureConfigurationUio.js +48 -0
- package/dist/models/AgentPatchUio.d.ts +17 -3
- package/dist/models/AgentPatchUio.js +9 -3
- package/dist/models/AgentUio.d.ts +14 -0
- package/dist/models/AgentUio.js +6 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ConversationHumanRequestRequestedByUio.d.ts +46 -0
- package/dist/models/ConversationHumanRequestRequestedByUio.js +60 -0
- package/dist/models/ConversationHumanRequestUio.d.ts +109 -0
- package/dist/models/ConversationHumanRequestUio.js +93 -0
- package/dist/models/HumanRequestAnswerResultUio.d.ts +40 -0
- package/dist/models/HumanRequestAnswerResultUio.js +58 -0
- package/dist/models/HumanRequestAnswerUio.d.ts +38 -0
- package/dist/models/HumanRequestAnswerUio.js +50 -0
- package/dist/models/HumanRequestSummaryRequestedByUio.d.ts +46 -0
- package/dist/models/HumanRequestSummaryRequestedByUio.js +58 -0
- package/dist/models/HumanRequestSummaryUio.d.ts +93 -0
- package/dist/models/HumanRequestSummaryUio.js +81 -0
- package/dist/models/McpAgentListAgentsInnerUio.d.ts +50 -0
- package/dist/models/McpAgentListAgentsInnerUio.js +58 -0
- package/dist/models/McpAgentListUio.d.ts +33 -0
- package/dist/models/McpAgentListUio.js +51 -0
- package/dist/models/McpCallLogCursorUio.d.ts +38 -0
- package/dist/models/McpCallLogCursorUio.js +54 -0
- package/dist/models/McpCallLogEventUio.d.ts +27 -0
- package/dist/models/McpCallLogEventUio.js +53 -0
- package/dist/models/McpCallLogStatusUio.d.ts +25 -0
- package/dist/models/McpCallLogStatusUio.js +51 -0
- package/dist/models/McpCallLogUio.d.ts +162 -0
- package/dist/models/McpCallLogUio.js +114 -0
- package/dist/models/McpCallLogsDeletedResponseUio.d.ts +32 -0
- package/dist/models/McpCallLogsDeletedResponseUio.js +50 -0
- package/dist/models/McpCallLogsResponseUio.d.ts +58 -0
- package/dist/models/McpCallLogsResponseUio.js +68 -0
- package/dist/models/McpCallToolResultStructuredContentUio.d.ts +23 -0
- package/dist/models/McpCallToolResultStructuredContentUio.js +57 -0
- package/dist/models/McpCallToolResultUio.d.ts +47 -0
- package/dist/models/McpCallToolResultUio.js +56 -0
- package/dist/models/McpJsonRpcErrorUio.d.ts +38 -0
- package/dist/models/McpJsonRpcErrorUio.js +54 -0
- package/dist/models/McpJsonRpcRequestIdUio.d.ts +21 -0
- package/dist/models/McpJsonRpcRequestIdUio.js +37 -0
- package/dist/models/McpJsonRpcRequestUio.d.ts +60 -0
- package/dist/models/McpJsonRpcRequestUio.js +66 -0
- package/dist/models/McpJsonRpcResponseIdUio.d.ts +21 -0
- package/dist/models/McpJsonRpcResponseIdUio.js +37 -0
- package/dist/models/McpJsonRpcResponseUio.d.ts +60 -0
- package/dist/models/McpJsonRpcResponseUio.js +66 -0
- package/dist/models/McpLogsSettingsRequestUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsRequestUio.js +50 -0
- package/dist/models/McpLogsSettingsResponseUio.d.ts +38 -0
- package/dist/models/McpLogsSettingsResponseUio.js +54 -0
- package/dist/models/McpTextContentUio.d.ts +45 -0
- package/dist/models/McpTextContentUio.js +61 -0
- package/dist/models/McpTicketViewUio.d.ts +114 -0
- package/dist/models/McpTicketViewUio.js +90 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/dist/openapi.json +1058 -77
- package/package.json +1 -1
|
@@ -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
|
+
* Per-agent activation of the Human_ask tool, offered only in task conversations (a local agent or another agent asking). The question goes to the first valid referent; without one, to the user who owns the task — the person who connected the local agent.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentHumanEscalationConfigurationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentHumanEscalationConfigurationUio {
|
|
18
|
+
/**
|
|
19
|
+
* Enables the Human_ask tool for this agent.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AgentHumanEscalationConfigurationUio
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Organisation members who answer this agent's questions, in order of preference.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentHumanEscalationConfigurationUio
|
|
28
|
+
*/
|
|
29
|
+
referentUserIds?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* How long a question stays answerable. Past it, the agent resumes on its own assumption.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AgentHumanEscalationConfigurationUio
|
|
34
|
+
*/
|
|
35
|
+
questionTtlHours?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AgentHumanEscalationConfigurationUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAgentHumanEscalationConfigurationUio(value: object): value is AgentHumanEscalationConfigurationUio;
|
|
41
|
+
export declare function AgentHumanEscalationConfigurationUioFromJSON(json: any): AgentHumanEscalationConfigurationUio;
|
|
42
|
+
export declare function AgentHumanEscalationConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentHumanEscalationConfigurationUio;
|
|
43
|
+
export declare function AgentHumanEscalationConfigurationUioToJSON(json: any): AgentHumanEscalationConfigurationUio;
|
|
44
|
+
export declare function AgentHumanEscalationConfigurationUioToJSONTyped(value?: AgentHumanEscalationConfigurationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfAgentHumanEscalationConfigurationUio = instanceOfAgentHumanEscalationConfigurationUio;
|
|
17
|
+
exports.AgentHumanEscalationConfigurationUioFromJSON = AgentHumanEscalationConfigurationUioFromJSON;
|
|
18
|
+
exports.AgentHumanEscalationConfigurationUioFromJSONTyped = AgentHumanEscalationConfigurationUioFromJSONTyped;
|
|
19
|
+
exports.AgentHumanEscalationConfigurationUioToJSON = AgentHumanEscalationConfigurationUioToJSON;
|
|
20
|
+
exports.AgentHumanEscalationConfigurationUioToJSONTyped = AgentHumanEscalationConfigurationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentHumanEscalationConfigurationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentHumanEscalationConfigurationUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentHumanEscalationConfigurationUioFromJSON(json) {
|
|
28
|
+
return AgentHumanEscalationConfigurationUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentHumanEscalationConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
'referentUserIds': json['referentUserIds'] == null ? undefined : json['referentUserIds'],
|
|
37
|
+
'questionTtlHours': json['questionTtlHours'] == null ? undefined : json['questionTtlHours'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AgentHumanEscalationConfigurationUioToJSON(json) {
|
|
41
|
+
return AgentHumanEscalationConfigurationUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AgentHumanEscalationConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'enabled': value['enabled'],
|
|
49
|
+
'referentUserIds': value['referentUserIds'],
|
|
50
|
+
'questionTtlHours': value['questionTtlHours'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
* Reachability from local agents (Claude Code, Pi, Hermes…) through Breign's MCP server. Opt-in: an agent nobody exposed is invisible to list_agents and refuses ask_agent.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentMcpExposureConfigurationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentMcpExposureConfigurationUio {
|
|
18
|
+
/**
|
|
19
|
+
* Makes this agent reachable from local agents.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AgentMcpExposureConfigurationUio
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AgentMcpExposureConfigurationUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAgentMcpExposureConfigurationUio(value: object): value is AgentMcpExposureConfigurationUio;
|
|
29
|
+
export declare function AgentMcpExposureConfigurationUioFromJSON(json: any): AgentMcpExposureConfigurationUio;
|
|
30
|
+
export declare function AgentMcpExposureConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentMcpExposureConfigurationUio;
|
|
31
|
+
export declare function AgentMcpExposureConfigurationUioToJSON(json: any): AgentMcpExposureConfigurationUio;
|
|
32
|
+
export declare function AgentMcpExposureConfigurationUioToJSONTyped(value?: AgentMcpExposureConfigurationUio | 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.instanceOfAgentMcpExposureConfigurationUio = instanceOfAgentMcpExposureConfigurationUio;
|
|
17
|
+
exports.AgentMcpExposureConfigurationUioFromJSON = AgentMcpExposureConfigurationUioFromJSON;
|
|
18
|
+
exports.AgentMcpExposureConfigurationUioFromJSONTyped = AgentMcpExposureConfigurationUioFromJSONTyped;
|
|
19
|
+
exports.AgentMcpExposureConfigurationUioToJSON = AgentMcpExposureConfigurationUioToJSON;
|
|
20
|
+
exports.AgentMcpExposureConfigurationUioToJSONTyped = AgentMcpExposureConfigurationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentMcpExposureConfigurationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentMcpExposureConfigurationUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentMcpExposureConfigurationUioFromJSON(json) {
|
|
28
|
+
return AgentMcpExposureConfigurationUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentMcpExposureConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AgentMcpExposureConfigurationUioToJSON(json) {
|
|
39
|
+
return AgentMcpExposureConfigurationUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AgentMcpExposureConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'enabled': value['enabled'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
13
12
|
import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
|
|
14
13
|
import type { PersonaUio } from './PersonaUio';
|
|
15
|
-
import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
|
|
16
14
|
import type { PromptInitUio } from './PromptInitUio';
|
|
15
|
+
import type { AgentHumanEscalationConfigurationUio } from './AgentHumanEscalationConfigurationUio';
|
|
16
|
+
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
17
|
+
import type { AgentMcpExposureConfigurationUio } from './AgentMcpExposureConfigurationUio';
|
|
18
|
+
import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
19
|
+
import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
|
|
17
20
|
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
18
21
|
import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
|
|
19
22
|
import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
|
|
20
|
-
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
21
23
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
22
24
|
import type { AgentComputerUseConfigurationUio } from './AgentComputerUseConfigurationUio';
|
|
23
25
|
import type { AgentCallConfigurationUio } from './AgentCallConfigurationUio';
|
|
@@ -193,6 +195,18 @@ export interface AgentPatchUio {
|
|
|
193
195
|
* @memberof AgentPatchUio
|
|
194
196
|
*/
|
|
195
197
|
agentCallConfiguration?: AgentCallConfigurationUio | null;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {AgentMcpExposureConfigurationUio}
|
|
201
|
+
* @memberof AgentPatchUio
|
|
202
|
+
*/
|
|
203
|
+
mcpExposureConfiguration?: AgentMcpExposureConfigurationUio | null;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {AgentHumanEscalationConfigurationUio}
|
|
207
|
+
* @memberof AgentPatchUio
|
|
208
|
+
*/
|
|
209
|
+
humanEscalationConfiguration?: AgentHumanEscalationConfigurationUio | null;
|
|
196
210
|
/**
|
|
197
211
|
*
|
|
198
212
|
* @type {AgentCodeModeConfigurationUio}
|
|
@@ -18,15 +18,17 @@ exports.AgentPatchUioFromJSON = AgentPatchUioFromJSON;
|
|
|
18
18
|
exports.AgentPatchUioFromJSONTyped = AgentPatchUioFromJSONTyped;
|
|
19
19
|
exports.AgentPatchUioToJSON = AgentPatchUioToJSON;
|
|
20
20
|
exports.AgentPatchUioToJSONTyped = AgentPatchUioToJSONTyped;
|
|
21
|
-
const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
22
21
|
const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
|
|
23
22
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
|
-
const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
|
|
25
23
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
24
|
+
const AgentHumanEscalationConfigurationUio_1 = require("./AgentHumanEscalationConfigurationUio");
|
|
25
|
+
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
26
|
+
const AgentMcpExposureConfigurationUio_1 = require("./AgentMcpExposureConfigurationUio");
|
|
27
|
+
const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
28
|
+
const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
|
|
26
29
|
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
27
30
|
const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
28
31
|
const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
|
|
29
|
-
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
30
32
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
31
33
|
const AgentComputerUseConfigurationUio_1 = require("./AgentComputerUseConfigurationUio");
|
|
32
34
|
const AgentCallConfigurationUio_1 = require("./AgentCallConfigurationUio");
|
|
@@ -71,6 +73,8 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
73
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
72
74
|
'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
|
|
73
75
|
'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
|
|
76
|
+
'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
|
|
77
|
+
'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
|
|
74
78
|
'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
|
|
75
79
|
};
|
|
76
80
|
}
|
|
@@ -109,6 +113,8 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
109
113
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
110
114
|
'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
|
|
111
115
|
'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
|
|
116
|
+
'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
|
|
117
|
+
'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
|
|
112
118
|
'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
|
|
113
119
|
};
|
|
114
120
|
}
|
|
@@ -14,7 +14,9 @@ import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeCo
|
|
|
14
14
|
import type { PersonaUio } from './PersonaUio';
|
|
15
15
|
import type { EngineUio } from './EngineUio';
|
|
16
16
|
import type { PromptInitUio } from './PromptInitUio';
|
|
17
|
+
import type { AgentHumanEscalationConfigurationUio } from './AgentHumanEscalationConfigurationUio';
|
|
17
18
|
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
19
|
+
import type { AgentMcpExposureConfigurationUio } from './AgentMcpExposureConfigurationUio';
|
|
18
20
|
import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
19
21
|
import type { AgentToolUio } from './AgentToolUio';
|
|
20
22
|
import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
|
|
@@ -214,6 +216,18 @@ export interface AgentUio {
|
|
|
214
216
|
* @memberof AgentUio
|
|
215
217
|
*/
|
|
216
218
|
agentCallConfiguration?: AgentCallConfigurationUio | null;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {AgentMcpExposureConfigurationUio}
|
|
222
|
+
* @memberof AgentUio
|
|
223
|
+
*/
|
|
224
|
+
mcpExposureConfiguration?: AgentMcpExposureConfigurationUio | null;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {AgentHumanEscalationConfigurationUio}
|
|
228
|
+
* @memberof AgentUio
|
|
229
|
+
*/
|
|
230
|
+
humanEscalationConfiguration?: AgentHumanEscalationConfigurationUio | null;
|
|
217
231
|
/**
|
|
218
232
|
*
|
|
219
233
|
* @type {AgentCodeModeConfigurationUio}
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -24,7 +24,9 @@ const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConve
|
|
|
24
24
|
const PersonaUio_1 = require("./PersonaUio");
|
|
25
25
|
const EngineUio_1 = require("./EngineUio");
|
|
26
26
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
27
|
+
const AgentHumanEscalationConfigurationUio_1 = require("./AgentHumanEscalationConfigurationUio");
|
|
27
28
|
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
29
|
+
const AgentMcpExposureConfigurationUio_1 = require("./AgentMcpExposureConfigurationUio");
|
|
28
30
|
const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
29
31
|
const AgentToolUio_1 = require("./AgentToolUio");
|
|
30
32
|
const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
|
|
@@ -104,6 +106,8 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
106
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
105
107
|
'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
|
|
106
108
|
'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
|
|
109
|
+
'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
|
|
110
|
+
'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
|
|
107
111
|
'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
|
|
108
112
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
109
113
|
'updater': json['updater'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['updater']),
|
|
@@ -150,6 +154,8 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
150
154
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
151
155
|
'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
|
|
152
156
|
'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
|
|
157
|
+
'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
|
|
158
|
+
'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
|
|
153
159
|
'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
|
|
154
160
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
155
161
|
'updater': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['updater']),
|
|
@@ -16,6 +16,7 @@ import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
|
|
|
16
16
|
import type { FileAttachmentUio } from './FileAttachmentUio';
|
|
17
17
|
import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
|
|
18
18
|
import type { ConversationMessageApprovalUio } from './ConversationMessageApprovalUio';
|
|
19
|
+
import type { ConversationHumanRequestUio } from './ConversationHumanRequestUio';
|
|
19
20
|
import type { ToolResultsUio } from './ToolResultsUio';
|
|
20
21
|
import type { TokenUsageUio } from './TokenUsageUio';
|
|
21
22
|
/**
|
|
@@ -78,6 +79,12 @@ export interface ChatMessageUio {
|
|
|
78
79
|
* @memberof ChatMessageUio
|
|
79
80
|
*/
|
|
80
81
|
approvals?: Array<ConversationMessageApprovalUio>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {ConversationHumanRequestUio}
|
|
85
|
+
* @memberof ChatMessageUio
|
|
86
|
+
*/
|
|
87
|
+
humanRequest?: ConversationHumanRequestUio;
|
|
81
88
|
/**
|
|
82
89
|
*
|
|
83
90
|
* @type {Array<SuggestionUio>}
|
|
@@ -26,6 +26,7 @@ const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
|
|
|
26
26
|
const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
27
27
|
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
28
28
|
const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalUio");
|
|
29
|
+
const ConversationHumanRequestUio_1 = require("./ConversationHumanRequestUio");
|
|
29
30
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
30
31
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
31
32
|
/**
|
|
@@ -66,6 +67,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
67
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
67
68
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
68
69
|
'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
|
|
70
|
+
'humanRequest': json['humanRequest'] == null ? undefined : (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioFromJSON)(json['humanRequest']),
|
|
69
71
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
70
72
|
'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
|
|
71
73
|
'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
|
|
@@ -100,6 +102,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
100
102
|
'confirmationLink': value['confirmationLink'],
|
|
101
103
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
102
104
|
'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
|
|
105
|
+
'humanRequest': (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioToJSON)(value['humanRequest']),
|
|
103
106
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
104
107
|
'workspaceFiles': value['workspaceFiles'],
|
|
105
108
|
'flowNode': value['flowNode'],
|
|
@@ -0,0 +1,46 @@
|
|
|
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 ConversationHumanRequestRequestedByUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationHumanRequestRequestedByUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationHumanRequestRequestedByUio
|
|
22
|
+
*/
|
|
23
|
+
kind: ConversationHumanRequestRequestedByUioKindEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Local client name (e.g. claude-code) or the calling agent's name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationHumanRequestRequestedByUio
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ConversationHumanRequestRequestedByUioKindEnum: {
|
|
35
|
+
readonly LocalAgent: "local_agent";
|
|
36
|
+
readonly Agent: "agent";
|
|
37
|
+
};
|
|
38
|
+
export type ConversationHumanRequestRequestedByUioKindEnum = typeof ConversationHumanRequestRequestedByUioKindEnum[keyof typeof ConversationHumanRequestRequestedByUioKindEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ConversationHumanRequestRequestedByUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfConversationHumanRequestRequestedByUio(value: object): value is ConversationHumanRequestRequestedByUio;
|
|
43
|
+
export declare function ConversationHumanRequestRequestedByUioFromJSON(json: any): ConversationHumanRequestRequestedByUio;
|
|
44
|
+
export declare function ConversationHumanRequestRequestedByUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationHumanRequestRequestedByUio;
|
|
45
|
+
export declare function ConversationHumanRequestRequestedByUioToJSON(json: any): ConversationHumanRequestRequestedByUio;
|
|
46
|
+
export declare function ConversationHumanRequestRequestedByUioToJSONTyped(value?: ConversationHumanRequestRequestedByUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ConversationHumanRequestRequestedByUioKindEnum = void 0;
|
|
17
|
+
exports.instanceOfConversationHumanRequestRequestedByUio = instanceOfConversationHumanRequestRequestedByUio;
|
|
18
|
+
exports.ConversationHumanRequestRequestedByUioFromJSON = ConversationHumanRequestRequestedByUioFromJSON;
|
|
19
|
+
exports.ConversationHumanRequestRequestedByUioFromJSONTyped = ConversationHumanRequestRequestedByUioFromJSONTyped;
|
|
20
|
+
exports.ConversationHumanRequestRequestedByUioToJSON = ConversationHumanRequestRequestedByUioToJSON;
|
|
21
|
+
exports.ConversationHumanRequestRequestedByUioToJSONTyped = ConversationHumanRequestRequestedByUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ConversationHumanRequestRequestedByUioKindEnum = {
|
|
26
|
+
LocalAgent: 'local_agent',
|
|
27
|
+
Agent: 'agent'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ConversationHumanRequestRequestedByUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfConversationHumanRequestRequestedByUio(value) {
|
|
33
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ConversationHumanRequestRequestedByUioFromJSON(json) {
|
|
38
|
+
return ConversationHumanRequestRequestedByUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ConversationHumanRequestRequestedByUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'kind': json['kind'],
|
|
46
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ConversationHumanRequestRequestedByUioToJSON(json) {
|
|
50
|
+
return ConversationHumanRequestRequestedByUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ConversationHumanRequestRequestedByUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'kind': value['kind'],
|
|
58
|
+
'label': value['label'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { ConversationHumanRequestRequestedByUio } from './ConversationHumanRequestRequestedByUio';
|
|
13
|
+
/**
|
|
14
|
+
* A question an agent asks a human from a task conversation (Human_ask tool). Carried by a mirror message in the human's chat conversation with that agent, which is where they see and answer it. The task stays suspended on the pending call callId until the answer resumes it.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConversationHumanRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface ConversationHumanRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
* The pending tool call the answer resolves.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConversationHumanRequestUio
|
|
23
|
+
*/
|
|
24
|
+
callId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConversationHumanRequestUio
|
|
29
|
+
*/
|
|
30
|
+
taskConversationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ConversationHumanRequestUio
|
|
35
|
+
*/
|
|
36
|
+
taskMessageId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConversationHumanRequestUio
|
|
41
|
+
*/
|
|
42
|
+
question: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof ConversationHumanRequestUio
|
|
47
|
+
*/
|
|
48
|
+
options?: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* What is blocked and why, as the agent put it.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ConversationHumanRequestUio
|
|
53
|
+
*/
|
|
54
|
+
context?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ConversationHumanRequestRequestedByUio}
|
|
58
|
+
* @memberof ConversationHumanRequestUio
|
|
59
|
+
*/
|
|
60
|
+
requestedBy: ConversationHumanRequestRequestedByUio;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ConversationHumanRequestUio
|
|
65
|
+
*/
|
|
66
|
+
status: ConversationHumanRequestUioStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ConversationHumanRequestUio
|
|
71
|
+
*/
|
|
72
|
+
answer?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Name or email of the person who answered, as it stood when they answered.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ConversationHumanRequestUio
|
|
77
|
+
*/
|
|
78
|
+
answeredBy?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ConversationHumanRequestUio
|
|
83
|
+
*/
|
|
84
|
+
answeredAt?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ConversationHumanRequestUio
|
|
89
|
+
*/
|
|
90
|
+
expiresAt?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const ConversationHumanRequestUioStatusEnum: {
|
|
96
|
+
readonly Pending: "pending";
|
|
97
|
+
readonly Answered: "answered";
|
|
98
|
+
readonly Declined: "declined";
|
|
99
|
+
readonly Expired: "expired";
|
|
100
|
+
};
|
|
101
|
+
export type ConversationHumanRequestUioStatusEnum = typeof ConversationHumanRequestUioStatusEnum[keyof typeof ConversationHumanRequestUioStatusEnum];
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the ConversationHumanRequestUio interface.
|
|
104
|
+
*/
|
|
105
|
+
export declare function instanceOfConversationHumanRequestUio(value: object): value is ConversationHumanRequestUio;
|
|
106
|
+
export declare function ConversationHumanRequestUioFromJSON(json: any): ConversationHumanRequestUio;
|
|
107
|
+
export declare function ConversationHumanRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationHumanRequestUio;
|
|
108
|
+
export declare function ConversationHumanRequestUioToJSON(json: any): ConversationHumanRequestUio;
|
|
109
|
+
export declare function ConversationHumanRequestUioToJSONTyped(value?: ConversationHumanRequestUio | null, ignoreDiscriminator?: boolean): any;
|