@breign/client 1.0.157 → 1.0.158
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/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/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/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 +19 -0
- package/dist/models/index.js +19 -0
- package/dist/openapi.json +628 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.ConversationHumanRequestUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfConversationHumanRequestUio = instanceOfConversationHumanRequestUio;
|
|
18
|
+
exports.ConversationHumanRequestUioFromJSON = ConversationHumanRequestUioFromJSON;
|
|
19
|
+
exports.ConversationHumanRequestUioFromJSONTyped = ConversationHumanRequestUioFromJSONTyped;
|
|
20
|
+
exports.ConversationHumanRequestUioToJSON = ConversationHumanRequestUioToJSON;
|
|
21
|
+
exports.ConversationHumanRequestUioToJSONTyped = ConversationHumanRequestUioToJSONTyped;
|
|
22
|
+
const ConversationHumanRequestRequestedByUio_1 = require("./ConversationHumanRequestRequestedByUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ConversationHumanRequestUioStatusEnum = {
|
|
27
|
+
Pending: 'pending',
|
|
28
|
+
Answered: 'answered',
|
|
29
|
+
Declined: 'declined',
|
|
30
|
+
Expired: 'expired'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ConversationHumanRequestUio interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfConversationHumanRequestUio(value) {
|
|
36
|
+
if (!('callId' in value) || value['callId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('taskConversationId' in value) || value['taskConversationId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('taskMessageId' in value) || value['taskMessageId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('requestedBy' in value) || value['requestedBy'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function ConversationHumanRequestUioFromJSON(json) {
|
|
51
|
+
return ConversationHumanRequestUioFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ConversationHumanRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'callId': json['callId'],
|
|
59
|
+
'taskConversationId': json['taskConversationId'],
|
|
60
|
+
'taskMessageId': json['taskMessageId'],
|
|
61
|
+
'question': json['question'],
|
|
62
|
+
'options': json['options'] == null ? undefined : json['options'],
|
|
63
|
+
'context': json['context'] == null ? undefined : json['context'],
|
|
64
|
+
'requestedBy': (0, ConversationHumanRequestRequestedByUio_1.ConversationHumanRequestRequestedByUioFromJSON)(json['requestedBy']),
|
|
65
|
+
'status': json['status'],
|
|
66
|
+
'answer': json['answer'] == null ? undefined : json['answer'],
|
|
67
|
+
'answeredBy': json['answeredBy'] == null ? undefined : json['answeredBy'],
|
|
68
|
+
'answeredAt': json['answeredAt'] == null ? undefined : json['answeredAt'],
|
|
69
|
+
'expiresAt': json['expiresAt'] == null ? undefined : json['expiresAt'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ConversationHumanRequestUioToJSON(json) {
|
|
73
|
+
return ConversationHumanRequestUioToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function ConversationHumanRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'callId': value['callId'],
|
|
81
|
+
'taskConversationId': value['taskConversationId'],
|
|
82
|
+
'taskMessageId': value['taskMessageId'],
|
|
83
|
+
'question': value['question'],
|
|
84
|
+
'options': value['options'],
|
|
85
|
+
'context': value['context'],
|
|
86
|
+
'requestedBy': (0, ConversationHumanRequestRequestedByUio_1.ConversationHumanRequestRequestedByUioToJSON)(value['requestedBy']),
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'answer': value['answer'],
|
|
89
|
+
'answeredBy': value['answeredBy'],
|
|
90
|
+
'answeredAt': value['answeredAt'],
|
|
91
|
+
'expiresAt': value['expiresAt'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 HumanRequestAnswerResultUio
|
|
16
|
+
*/
|
|
17
|
+
export interface HumanRequestAnswerResultUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HumanRequestAnswerResultUio
|
|
22
|
+
*/
|
|
23
|
+
status: HumanRequestAnswerResultUioStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const HumanRequestAnswerResultUioStatusEnum: {
|
|
29
|
+
readonly Answered: "answered";
|
|
30
|
+
readonly Declined: "declined";
|
|
31
|
+
};
|
|
32
|
+
export type HumanRequestAnswerResultUioStatusEnum = typeof HumanRequestAnswerResultUioStatusEnum[keyof typeof HumanRequestAnswerResultUioStatusEnum];
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the HumanRequestAnswerResultUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfHumanRequestAnswerResultUio(value: object): value is HumanRequestAnswerResultUio;
|
|
37
|
+
export declare function HumanRequestAnswerResultUioFromJSON(json: any): HumanRequestAnswerResultUio;
|
|
38
|
+
export declare function HumanRequestAnswerResultUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanRequestAnswerResultUio;
|
|
39
|
+
export declare function HumanRequestAnswerResultUioToJSON(json: any): HumanRequestAnswerResultUio;
|
|
40
|
+
export declare function HumanRequestAnswerResultUioToJSONTyped(value?: HumanRequestAnswerResultUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.HumanRequestAnswerResultUioStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfHumanRequestAnswerResultUio = instanceOfHumanRequestAnswerResultUio;
|
|
18
|
+
exports.HumanRequestAnswerResultUioFromJSON = HumanRequestAnswerResultUioFromJSON;
|
|
19
|
+
exports.HumanRequestAnswerResultUioFromJSONTyped = HumanRequestAnswerResultUioFromJSONTyped;
|
|
20
|
+
exports.HumanRequestAnswerResultUioToJSON = HumanRequestAnswerResultUioToJSON;
|
|
21
|
+
exports.HumanRequestAnswerResultUioToJSONTyped = HumanRequestAnswerResultUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.HumanRequestAnswerResultUioStatusEnum = {
|
|
26
|
+
Answered: 'answered',
|
|
27
|
+
Declined: 'declined'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the HumanRequestAnswerResultUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfHumanRequestAnswerResultUio(value) {
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function HumanRequestAnswerResultUioFromJSON(json) {
|
|
38
|
+
return HumanRequestAnswerResultUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function HumanRequestAnswerResultUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function HumanRequestAnswerResultUioToJSON(json) {
|
|
49
|
+
return HumanRequestAnswerResultUioToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function HumanRequestAnswerResultUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'status': value['status'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Réponse à une question. Soit une réponse non vide, soit decline à vrai : l'agent repart alors sur sa meilleure hypothèse.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HumanRequestAnswerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface HumanRequestAnswerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HumanRequestAnswerUio
|
|
22
|
+
*/
|
|
23
|
+
answer?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof HumanRequestAnswerUio
|
|
28
|
+
*/
|
|
29
|
+
decline?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the HumanRequestAnswerUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfHumanRequestAnswerUio(value: object): value is HumanRequestAnswerUio;
|
|
35
|
+
export declare function HumanRequestAnswerUioFromJSON(json: any): HumanRequestAnswerUio;
|
|
36
|
+
export declare function HumanRequestAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): HumanRequestAnswerUio;
|
|
37
|
+
export declare function HumanRequestAnswerUioToJSON(json: any): HumanRequestAnswerUio;
|
|
38
|
+
export declare function HumanRequestAnswerUioToJSONTyped(value?: HumanRequestAnswerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfHumanRequestAnswerUio = instanceOfHumanRequestAnswerUio;
|
|
17
|
+
exports.HumanRequestAnswerUioFromJSON = HumanRequestAnswerUioFromJSON;
|
|
18
|
+
exports.HumanRequestAnswerUioFromJSONTyped = HumanRequestAnswerUioFromJSONTyped;
|
|
19
|
+
exports.HumanRequestAnswerUioToJSON = HumanRequestAnswerUioToJSON;
|
|
20
|
+
exports.HumanRequestAnswerUioToJSONTyped = HumanRequestAnswerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HumanRequestAnswerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHumanRequestAnswerUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HumanRequestAnswerUioFromJSON(json) {
|
|
28
|
+
return HumanRequestAnswerUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HumanRequestAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'answer': json['answer'] == null ? undefined : json['answer'],
|
|
36
|
+
'decline': json['decline'] == null ? undefined : json['decline'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function HumanRequestAnswerUioToJSON(json) {
|
|
40
|
+
return HumanRequestAnswerUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function HumanRequestAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'answer': value['answer'],
|
|
48
|
+
'decline': value['decline'],
|
|
49
|
+
};
|
|
50
|
+
}
|