@breign/client 1.0.171 → 1.0.173
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/AdminApi.d.ts +110 -1
- package/dist/apis/AdminApi.js +263 -0
- package/dist/apis/AiGatewayApi.d.ts +41 -5
- package/dist/apis/AiGatewayApi.js +80 -7
- package/dist/apis/ExecutionNodesApi.d.ts +165 -0
- package/dist/apis/ExecutionNodesApi.js +399 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentExecutionNodeChoiceUio.d.ts +58 -0
- package/dist/models/AgentExecutionNodeChoiceUio.js +68 -0
- package/dist/models/AgentExecutionNodeUio.d.ts +50 -0
- package/dist/models/AgentExecutionNodeUio.js +62 -0
- package/dist/models/AgentExecutionUio.d.ts +80 -0
- package/dist/models/AgentExecutionUio.js +79 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
- package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
- package/dist/models/AiGatewayUsageCostUio.js +62 -0
- package/dist/models/AiGatewayUsageUio.d.ts +7 -0
- package/dist/models/AiGatewayUsageUio.js +3 -0
- package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
- package/dist/models/AllowPlatformEnginesUio.js +50 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
- package/dist/models/DefaultEngineRequestUio.js +2 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
- package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
- package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
- package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
- package/dist/models/ExecutionNodeAgentUio.d.ts +82 -0
- package/dist/models/ExecutionNodeAgentUio.js +86 -0
- package/dist/models/ExecutionNodeDetailUio.d.ts +111 -0
- package/dist/models/ExecutionNodeDetailUio.js +107 -0
- package/dist/models/ExecutionNodeRuntimeUio.d.ts +46 -0
- package/dist/models/ExecutionNodeRuntimeUio.js +60 -0
- package/dist/models/ExecutionNodeUio.d.ts +104 -0
- package/dist/models/ExecutionNodeUio.js +100 -0
- package/dist/models/ExecutionNodeWorkspaceUio.d.ts +38 -0
- package/dist/models/ExecutionNodeWorkspaceUio.js +54 -0
- package/dist/models/ModelDefinitionUio.d.ts +33 -0
- package/dist/models/ModelDefinitionUio.js +17 -0
- package/dist/models/NodeSessionDetailUio.d.ts +133 -0
- package/dist/models/NodeSessionDetailUio.js +113 -0
- package/dist/models/NodeSessionLogEntryUio.d.ts +58 -0
- package/dist/models/NodeSessionLogEntryUio.js +70 -0
- package/dist/models/NodeSessionLogsUio.d.ts +51 -0
- package/dist/models/NodeSessionLogsUio.js +63 -0
- package/dist/models/NodeSessionMetricsUio.d.ts +74 -0
- package/dist/models/NodeSessionMetricsUio.js +62 -0
- package/dist/models/NodeSessionProgressUio.d.ts +44 -0
- package/dist/models/NodeSessionProgressUio.js +54 -0
- package/dist/models/NodeSessionStateUio.d.ts +29 -0
- package/dist/models/NodeSessionStateUio.js +55 -0
- package/dist/models/NodeSessionUio.d.ts +127 -0
- package/dist/models/NodeSessionUio.js +111 -0
- package/dist/models/NodeTurnCancelResultUio.d.ts +32 -0
- package/dist/models/NodeTurnCancelResultUio.js +50 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
- package/dist/models/OrganizationUio.d.ts +6 -0
- package/dist/models/OrganizationUio.js +2 -0
- package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
- package/dist/models/PlatformEngineUsageUio.js +58 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
- package/dist/models/ProviderCreateRequestUio.js +4 -0
- package/dist/models/ProviderUio.d.ts +12 -0
- package/dist/models/ProviderUio.js +4 -0
- package/dist/models/SetAgentExecutionRequestUio.d.ts +72 -0
- package/dist/models/SetAgentExecutionRequestUio.js +73 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/dist/openapi.json +3235 -1739
- package/package.json +1 -1
|
@@ -0,0 +1,399 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ExecutionNodesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ExecutionNodesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
58
|
+
* Stop a turn running on one of my execution nodes
|
|
59
|
+
*/
|
|
60
|
+
async cancelExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['nodeId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling cancelExecutionNodeSession().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['sessionId'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling cancelExecutionNodeSession().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/cancel`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
82
|
+
* Stop a turn running on one of my execution nodes
|
|
83
|
+
*/
|
|
84
|
+
async cancelExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
85
|
+
const response = await this.cancelExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
90
|
+
* Stop the node turn of a message
|
|
91
|
+
*/
|
|
92
|
+
async cancelMessageNodeTurnRaw(requestParameters, initOverrides) {
|
|
93
|
+
if (requestParameters['conversationId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling cancelMessageNodeTurn().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['messageId'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling cancelMessageNodeTurn().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/conversations/{conversationId}/messages/{messageId}/node-turn/cancel`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
106
|
+
method: 'POST',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeTurnCancelResultUioFromJSON)(jsonValue));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
114
|
+
* Stop the node turn of a message
|
|
115
|
+
*/
|
|
116
|
+
async cancelMessageNodeTurn(conversationId, messageId, initOverrides) {
|
|
117
|
+
const response = await this.cancelMessageNodeTurnRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
118
|
+
return await response.value();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
122
|
+
* Get where an agent runs
|
|
123
|
+
*/
|
|
124
|
+
async getAgentExecutionRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters['agentId'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentExecution().');
|
|
127
|
+
}
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
132
|
+
}
|
|
133
|
+
const response = await this.request({
|
|
134
|
+
path: `/agents/{agentId}/execution`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
135
|
+
method: 'GET',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
}, initOverrides);
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentExecutionUioFromJSON)(jsonValue));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
143
|
+
* Get where an agent runs
|
|
144
|
+
*/
|
|
145
|
+
async getAgentExecution(agentId, initOverrides) {
|
|
146
|
+
const response = await this.getAgentExecutionRaw({ agentId: agentId }, initOverrides);
|
|
147
|
+
return await response.value();
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
151
|
+
* Get one of my execution nodes
|
|
152
|
+
*/
|
|
153
|
+
async getExecutionNodeRaw(requestParameters, initOverrides) {
|
|
154
|
+
if (requestParameters['nodeId'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling getExecutionNode().');
|
|
156
|
+
}
|
|
157
|
+
const queryParameters = {};
|
|
158
|
+
const headerParameters = {};
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
161
|
+
}
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/execution-nodes/{nodeId}`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
164
|
+
method: 'GET',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides);
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExecutionNodeDetailUioFromJSON)(jsonValue));
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
172
|
+
* Get one of my execution nodes
|
|
173
|
+
*/
|
|
174
|
+
async getExecutionNode(nodeId, initOverrides) {
|
|
175
|
+
const response = await this.getExecutionNodeRaw({ nodeId: nodeId }, initOverrides);
|
|
176
|
+
return await response.value();
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get a turn run on one of my execution nodes
|
|
180
|
+
*/
|
|
181
|
+
async getExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
182
|
+
if (requestParameters['nodeId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling getExecutionNodeSession().');
|
|
184
|
+
}
|
|
185
|
+
if (requestParameters['sessionId'] == null) {
|
|
186
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getExecutionNodeSession().');
|
|
187
|
+
}
|
|
188
|
+
const queryParameters = {};
|
|
189
|
+
const headerParameters = {};
|
|
190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
192
|
+
}
|
|
193
|
+
const response = await this.request({
|
|
194
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
195
|
+
method: 'GET',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Get a turn run on one of my execution nodes
|
|
203
|
+
*/
|
|
204
|
+
async getExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
205
|
+
const response = await this.getExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
206
|
+
return await response.value();
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
210
|
+
* Page the log lines of a turn
|
|
211
|
+
*/
|
|
212
|
+
async listExecutionNodeSessionLogsRaw(requestParameters, initOverrides) {
|
|
213
|
+
if (requestParameters['nodeId'] == null) {
|
|
214
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling listExecutionNodeSessionLogs().');
|
|
215
|
+
}
|
|
216
|
+
if (requestParameters['sessionId'] == null) {
|
|
217
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling listExecutionNodeSessionLogs().');
|
|
218
|
+
}
|
|
219
|
+
const queryParameters = {};
|
|
220
|
+
if (requestParameters['afterSeq'] != null) {
|
|
221
|
+
queryParameters['afterSeq'] = requestParameters['afterSeq'];
|
|
222
|
+
}
|
|
223
|
+
if (requestParameters['limit'] != null) {
|
|
224
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
225
|
+
}
|
|
226
|
+
const headerParameters = {};
|
|
227
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
229
|
+
}
|
|
230
|
+
const response = await this.request({
|
|
231
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/logs`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
232
|
+
method: 'GET',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
}, initOverrides);
|
|
236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionLogsUioFromJSON)(jsonValue));
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
240
|
+
* Page the log lines of a turn
|
|
241
|
+
*/
|
|
242
|
+
async listExecutionNodeSessionLogs(nodeId, sessionId, afterSeq, limit, initOverrides) {
|
|
243
|
+
const response = await this.listExecutionNodeSessionLogsRaw({ nodeId: nodeId, sessionId: sessionId, afterSeq: afterSeq, limit: limit }, initOverrides);
|
|
244
|
+
return await response.value();
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
248
|
+
* List my Breign Mate execution nodes
|
|
249
|
+
*/
|
|
250
|
+
async listExecutionNodesRaw(initOverrides) {
|
|
251
|
+
const queryParameters = {};
|
|
252
|
+
const headerParameters = {};
|
|
253
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
254
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
255
|
+
}
|
|
256
|
+
const response = await this.request({
|
|
257
|
+
path: `/execution-nodes`,
|
|
258
|
+
method: 'GET',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
}, initOverrides);
|
|
262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ExecutionNodeUioFromJSON));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
266
|
+
* List my Breign Mate execution nodes
|
|
267
|
+
*/
|
|
268
|
+
async listExecutionNodes(initOverrides) {
|
|
269
|
+
const response = await this.listExecutionNodesRaw(initOverrides);
|
|
270
|
+
return await response.value();
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
274
|
+
* Relaunch an interrupted turn
|
|
275
|
+
*/
|
|
276
|
+
async relaunchExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters['nodeId'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling relaunchExecutionNodeSession().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['sessionId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling relaunchExecutionNodeSession().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
286
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
287
|
+
}
|
|
288
|
+
const response = await this.request({
|
|
289
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/relaunch`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
290
|
+
method: 'POST',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
}, initOverrides);
|
|
294
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
298
|
+
* Relaunch an interrupted turn
|
|
299
|
+
*/
|
|
300
|
+
async relaunchExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
301
|
+
const response = await this.relaunchExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
302
|
+
return await response.value();
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
306
|
+
* Relaunch the interrupted node turn of a message
|
|
307
|
+
*/
|
|
308
|
+
async relaunchMessageNodeTurnRaw(requestParameters, initOverrides) {
|
|
309
|
+
if (requestParameters['conversationId'] == null) {
|
|
310
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling relaunchMessageNodeTurn().');
|
|
311
|
+
}
|
|
312
|
+
if (requestParameters['messageId'] == null) {
|
|
313
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling relaunchMessageNodeTurn().');
|
|
314
|
+
}
|
|
315
|
+
const queryParameters = {};
|
|
316
|
+
const headerParameters = {};
|
|
317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
318
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
319
|
+
}
|
|
320
|
+
const response = await this.request({
|
|
321
|
+
path: `/conversations/{conversationId}/messages/{messageId}/node-turn/relaunch`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
322
|
+
method: 'POST',
|
|
323
|
+
headers: headerParameters,
|
|
324
|
+
query: queryParameters,
|
|
325
|
+
}, initOverrides);
|
|
326
|
+
return new runtime.VoidApiResponse(response);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
330
|
+
* Relaunch the interrupted node turn of a message
|
|
331
|
+
*/
|
|
332
|
+
async relaunchMessageNodeTurn(conversationId, messageId, initOverrides) {
|
|
333
|
+
await this.relaunchMessageNodeTurnRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
337
|
+
* Unpair an execution node
|
|
338
|
+
*/
|
|
339
|
+
async revokeExecutionNodeRaw(requestParameters, initOverrides) {
|
|
340
|
+
if (requestParameters['nodeId'] == null) {
|
|
341
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling revokeExecutionNode().');
|
|
342
|
+
}
|
|
343
|
+
const queryParameters = {};
|
|
344
|
+
const headerParameters = {};
|
|
345
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
346
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
347
|
+
}
|
|
348
|
+
const response = await this.request({
|
|
349
|
+
path: `/execution-nodes/{nodeId}/revoke`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
350
|
+
method: 'POST',
|
|
351
|
+
headers: headerParameters,
|
|
352
|
+
query: queryParameters,
|
|
353
|
+
}, initOverrides);
|
|
354
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExecutionNodeUioFromJSON)(jsonValue));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
358
|
+
* Unpair an execution node
|
|
359
|
+
*/
|
|
360
|
+
async revokeExecutionNode(nodeId, initOverrides) {
|
|
361
|
+
const response = await this.revokeExecutionNodeRaw({ nodeId: nodeId }, initOverrides);
|
|
362
|
+
return await response.value();
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
366
|
+
* Set where an agent runs
|
|
367
|
+
*/
|
|
368
|
+
async setAgentExecutionRaw(requestParameters, initOverrides) {
|
|
369
|
+
if (requestParameters['agentId'] == null) {
|
|
370
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling setAgentExecution().');
|
|
371
|
+
}
|
|
372
|
+
if (requestParameters['setAgentExecutionRequestUio'] == null) {
|
|
373
|
+
throw new runtime.RequiredError('setAgentExecutionRequestUio', 'Required parameter "setAgentExecutionRequestUio" was null or undefined when calling setAgentExecution().');
|
|
374
|
+
}
|
|
375
|
+
const queryParameters = {};
|
|
376
|
+
const headerParameters = {};
|
|
377
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
380
|
+
}
|
|
381
|
+
const response = await this.request({
|
|
382
|
+
path: `/agents/{agentId}/execution`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
383
|
+
method: 'PUT',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: (0, index_1.SetAgentExecutionRequestUioToJSON)(requestParameters['setAgentExecutionRequestUio']),
|
|
387
|
+
}, initOverrides);
|
|
388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentExecutionUioFromJSON)(jsonValue));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
392
|
+
* Set where an agent runs
|
|
393
|
+
*/
|
|
394
|
+
async setAgentExecution(agentId, setAgentExecutionRequestUio, initOverrides) {
|
|
395
|
+
const response = await this.setAgentExecutionRaw({ agentId: agentId, setAgentExecutionRequestUio: setAgentExecutionRequestUio }, initOverrides);
|
|
396
|
+
return await response.value();
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.ExecutionNodesApi = ExecutionNodesApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ContentsApi';
|
|
|
9
9
|
export * from './ConversationsApi';
|
|
10
10
|
export * from './EngineApi';
|
|
11
11
|
export * from './EnginesApi';
|
|
12
|
+
export * from './ExecutionNodesApi';
|
|
12
13
|
export * from './FilesApi';
|
|
13
14
|
export * from './GeneralApi';
|
|
14
15
|
export * from './GuardiansApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./ContentsApi"), exports);
|
|
|
27
27
|
__exportStar(require("./ConversationsApi"), exports);
|
|
28
28
|
__exportStar(require("./EngineApi"), exports);
|
|
29
29
|
__exportStar(require("./EnginesApi"), exports);
|
|
30
|
+
__exportStar(require("./ExecutionNodesApi"), exports);
|
|
30
31
|
__exportStar(require("./FilesApi"), exports);
|
|
31
32
|
__exportStar(require("./GeneralApi"), exports);
|
|
32
33
|
__exportStar(require("./GuardiansApi"), exports);
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
|
|
13
|
+
import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
|
|
14
|
+
/**
|
|
15
|
+
* Un nœud de l'utilisateur, proposé dans la section Exécution de la fiche agent.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AgentExecutionNodeChoiceUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AgentExecutionNodeChoiceUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
36
|
+
*/
|
|
37
|
+
connected: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<ExecutionNodeRuntimeUio>}
|
|
41
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
42
|
+
*/
|
|
43
|
+
runtimes: Array<ExecutionNodeRuntimeUio>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<ExecutionNodeWorkspaceUio>}
|
|
47
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
48
|
+
*/
|
|
49
|
+
workspaces: Array<ExecutionNodeWorkspaceUio>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AgentExecutionNodeChoiceUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAgentExecutionNodeChoiceUio(value: object): value is AgentExecutionNodeChoiceUio;
|
|
55
|
+
export declare function AgentExecutionNodeChoiceUioFromJSON(json: any): AgentExecutionNodeChoiceUio;
|
|
56
|
+
export declare function AgentExecutionNodeChoiceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionNodeChoiceUio;
|
|
57
|
+
export declare function AgentExecutionNodeChoiceUioToJSON(json: any): AgentExecutionNodeChoiceUio;
|
|
58
|
+
export declare function AgentExecutionNodeChoiceUioToJSONTyped(value?: AgentExecutionNodeChoiceUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfAgentExecutionNodeChoiceUio = instanceOfAgentExecutionNodeChoiceUio;
|
|
17
|
+
exports.AgentExecutionNodeChoiceUioFromJSON = AgentExecutionNodeChoiceUioFromJSON;
|
|
18
|
+
exports.AgentExecutionNodeChoiceUioFromJSONTyped = AgentExecutionNodeChoiceUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionNodeChoiceUioToJSON = AgentExecutionNodeChoiceUioToJSON;
|
|
20
|
+
exports.AgentExecutionNodeChoiceUioToJSONTyped = AgentExecutionNodeChoiceUioToJSONTyped;
|
|
21
|
+
const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
|
|
22
|
+
const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AgentExecutionNodeChoiceUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAgentExecutionNodeChoiceUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('connected' in value) || value['connected'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('runtimes' in value) || value['runtimes'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('workspaces' in value) || value['workspaces'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AgentExecutionNodeChoiceUioFromJSON(json) {
|
|
40
|
+
return AgentExecutionNodeChoiceUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AgentExecutionNodeChoiceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'connected': json['connected'],
|
|
50
|
+
'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
|
|
51
|
+
'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AgentExecutionNodeChoiceUioToJSON(json) {
|
|
55
|
+
return AgentExecutionNodeChoiceUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AgentExecutionNodeChoiceUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'connected': value['connected'],
|
|
65
|
+
'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
|
|
66
|
+
'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Présent en mode node
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentExecutionNodeUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentExecutionNodeUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentExecutionNodeUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentExecutionNodeUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AgentExecutionNodeUio
|
|
34
|
+
*/
|
|
35
|
+
connected: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentExecutionNodeUio
|
|
40
|
+
*/
|
|
41
|
+
ownedByMe: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AgentExecutionNodeUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAgentExecutionNodeUio(value: object): value is AgentExecutionNodeUio;
|
|
47
|
+
export declare function AgentExecutionNodeUioFromJSON(json: any): AgentExecutionNodeUio;
|
|
48
|
+
export declare function AgentExecutionNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionNodeUio;
|
|
49
|
+
export declare function AgentExecutionNodeUioToJSON(json: any): AgentExecutionNodeUio;
|
|
50
|
+
export declare function AgentExecutionNodeUioToJSONTyped(value?: AgentExecutionNodeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAgentExecutionNodeUio = instanceOfAgentExecutionNodeUio;
|
|
17
|
+
exports.AgentExecutionNodeUioFromJSON = AgentExecutionNodeUioFromJSON;
|
|
18
|
+
exports.AgentExecutionNodeUioFromJSONTyped = AgentExecutionNodeUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionNodeUioToJSON = AgentExecutionNodeUioToJSON;
|
|
20
|
+
exports.AgentExecutionNodeUioToJSONTyped = AgentExecutionNodeUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentExecutionNodeUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentExecutionNodeUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('connected' in value) || value['connected'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ownedByMe' in value) || value['ownedByMe'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AgentExecutionNodeUioFromJSON(json) {
|
|
36
|
+
return AgentExecutionNodeUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AgentExecutionNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'connected': json['connected'],
|
|
46
|
+
'ownedByMe': json['ownedByMe'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AgentExecutionNodeUioToJSON(json) {
|
|
50
|
+
return AgentExecutionNodeUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AgentExecutionNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'connected': value['connected'],
|
|
60
|
+
'ownedByMe': value['ownedByMe'],
|
|
61
|
+
};
|
|
62
|
+
}
|