@breign/client 1.0.194 → 1.0.195
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/ExecutionNodesApi.d.ts +2 -2
- package/dist/apis/ExecutionNodesApi.js +2 -2
- package/dist/apis/NodeGroupsApi.d.ts +126 -0
- package/dist/apis/NodeGroupsApi.js +304 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.d.ts +46 -0
- package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.js +62 -0
- package/dist/models/AgentExecutionGroupChoiceUio.d.ts +70 -0
- package/dist/models/AgentExecutionGroupChoiceUio.js +76 -0
- package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.d.ts +44 -0
- package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.js +58 -0
- package/dist/models/AgentExecutionGroupUio.d.ts +38 -0
- package/dist/models/AgentExecutionGroupUio.js +54 -0
- package/dist/models/AgentExecutionUio.d.ts +27 -0
- package/dist/models/AgentExecutionUio.js +14 -1
- package/dist/models/CreateNodeGroupRequestUio.d.ts +56 -0
- package/dist/models/CreateNodeGroupRequestUio.js +58 -0
- package/dist/models/NodeGroupAgentUio.d.ts +58 -0
- package/dist/models/NodeGroupAgentUio.js +70 -0
- package/dist/models/NodeGroupCandidateUio.d.ts +115 -0
- package/dist/models/NodeGroupCandidateUio.js +109 -0
- package/dist/models/NodeGroupDelaysUio.d.ts +44 -0
- package/dist/models/NodeGroupDelaysUio.js +52 -0
- package/dist/models/NodeGroupDetailUio.d.ts +100 -0
- package/dist/models/NodeGroupDetailUio.js +96 -0
- package/dist/models/NodeGroupMemberNodeUio.d.ts +115 -0
- package/dist/models/NodeGroupMemberNodeUio.js +109 -0
- package/dist/models/NodeGroupNodeUio.d.ts +103 -0
- package/dist/models/NodeGroupNodeUio.js +101 -0
- package/dist/models/NodeGroupSummaryUio.d.ts +116 -0
- package/dist/models/NodeGroupSummaryUio.js +106 -0
- package/dist/models/NodeGroupUio.d.ts +86 -0
- package/dist/models/NodeGroupUio.js +86 -0
- package/dist/models/SetAgentExecutionRequestUio.d.ts +20 -1
- package/dist/models/SetAgentExecutionRequestUio.js +8 -1
- package/dist/models/UpdateNodeGroupRequestUio.d.ts +56 -0
- package/dist/models/UpdateNodeGroupRequestUio.js +56 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/openapi.json +714 -5
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfAgentExecutionGroupChoiceUio = instanceOfAgentExecutionGroupChoiceUio;
|
|
17
|
+
exports.AgentExecutionGroupChoiceUioFromJSON = AgentExecutionGroupChoiceUioFromJSON;
|
|
18
|
+
exports.AgentExecutionGroupChoiceUioFromJSONTyped = AgentExecutionGroupChoiceUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionGroupChoiceUioToJSON = AgentExecutionGroupChoiceUioToJSON;
|
|
20
|
+
exports.AgentExecutionGroupChoiceUioToJSONTyped = AgentExecutionGroupChoiceUioToJSONTyped;
|
|
21
|
+
const AgentExecutionGroupChoiceWorkspacesInnerUio_1 = require("./AgentExecutionGroupChoiceWorkspacesInnerUio");
|
|
22
|
+
const AgentExecutionGroupChoiceRuntimesInnerUio_1 = require("./AgentExecutionGroupChoiceRuntimesInnerUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AgentExecutionGroupChoiceUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAgentExecutionGroupChoiceUio(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 (!('nodeCount' in value) || value['nodeCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('onlineNodeCount' in value) || value['onlineNodeCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('envWaitMs' in value) || value['envWaitMs'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('runtimes' in value) || value['runtimes'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('workspaces' in value) || value['workspaces'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AgentExecutionGroupChoiceUioFromJSON(json) {
|
|
44
|
+
return AgentExecutionGroupChoiceUioFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentExecutionGroupChoiceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'nodeCount': json['nodeCount'],
|
|
54
|
+
'onlineNodeCount': json['onlineNodeCount'],
|
|
55
|
+
'envWaitMs': json['envWaitMs'],
|
|
56
|
+
'runtimes': (json['runtimes'].map(AgentExecutionGroupChoiceRuntimesInnerUio_1.AgentExecutionGroupChoiceRuntimesInnerUioFromJSON)),
|
|
57
|
+
'workspaces': (json['workspaces'].map(AgentExecutionGroupChoiceWorkspacesInnerUio_1.AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function AgentExecutionGroupChoiceUioToJSON(json) {
|
|
61
|
+
return AgentExecutionGroupChoiceUioToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function AgentExecutionGroupChoiceUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'nodeCount': value['nodeCount'],
|
|
71
|
+
'onlineNodeCount': value['onlineNodeCount'],
|
|
72
|
+
'envWaitMs': value['envWaitMs'],
|
|
73
|
+
'runtimes': (value['runtimes'].map(AgentExecutionGroupChoiceRuntimesInnerUio_1.AgentExecutionGroupChoiceRuntimesInnerUioToJSON)),
|
|
74
|
+
'workspaces': (value['workspaces'].map(AgentExecutionGroupChoiceWorkspacesInnerUio_1.AgentExecutionGroupChoiceWorkspacesInnerUioToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentExecutionGroupChoiceWorkspacesInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentExecutionGroupChoiceWorkspacesInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentExecutionGroupChoiceWorkspacesInnerUio
|
|
22
|
+
*/
|
|
23
|
+
alias: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentExecutionGroupChoiceWorkspacesInnerUio
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AgentExecutionGroupChoiceWorkspacesInnerUio
|
|
34
|
+
*/
|
|
35
|
+
nodeCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AgentExecutionGroupChoiceWorkspacesInnerUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAgentExecutionGroupChoiceWorkspacesInnerUio(value: object): value is AgentExecutionGroupChoiceWorkspacesInnerUio;
|
|
41
|
+
export declare function AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON(json: any): AgentExecutionGroupChoiceWorkspacesInnerUio;
|
|
42
|
+
export declare function AgentExecutionGroupChoiceWorkspacesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionGroupChoiceWorkspacesInnerUio;
|
|
43
|
+
export declare function AgentExecutionGroupChoiceWorkspacesInnerUioToJSON(json: any): AgentExecutionGroupChoiceWorkspacesInnerUio;
|
|
44
|
+
export declare function AgentExecutionGroupChoiceWorkspacesInnerUioToJSONTyped(value?: AgentExecutionGroupChoiceWorkspacesInnerUio | 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.instanceOfAgentExecutionGroupChoiceWorkspacesInnerUio = instanceOfAgentExecutionGroupChoiceWorkspacesInnerUio;
|
|
17
|
+
exports.AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON = AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON;
|
|
18
|
+
exports.AgentExecutionGroupChoiceWorkspacesInnerUioFromJSONTyped = AgentExecutionGroupChoiceWorkspacesInnerUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionGroupChoiceWorkspacesInnerUioToJSON = AgentExecutionGroupChoiceWorkspacesInnerUioToJSON;
|
|
20
|
+
exports.AgentExecutionGroupChoiceWorkspacesInnerUioToJSONTyped = AgentExecutionGroupChoiceWorkspacesInnerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentExecutionGroupChoiceWorkspacesInnerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentExecutionGroupChoiceWorkspacesInnerUio(value) {
|
|
25
|
+
if (!('alias' in value) || value['alias'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('nodeCount' in value) || value['nodeCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AgentExecutionGroupChoiceWorkspacesInnerUioFromJSON(json) {
|
|
34
|
+
return AgentExecutionGroupChoiceWorkspacesInnerUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AgentExecutionGroupChoiceWorkspacesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'alias': json['alias'],
|
|
42
|
+
'label': json['label'],
|
|
43
|
+
'nodeCount': json['nodeCount'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AgentExecutionGroupChoiceWorkspacesInnerUioToJSON(json) {
|
|
47
|
+
return AgentExecutionGroupChoiceWorkspacesInnerUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AgentExecutionGroupChoiceWorkspacesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'alias': value['alias'],
|
|
55
|
+
'label': value['label'],
|
|
56
|
+
'nodeCount': value['nodeCount'],
|
|
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
|
+
* Présent en mode group ; `name` est nul si l'utilisateur ne voit pas les groupes.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentExecutionGroupUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentExecutionGroupUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentExecutionGroupUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentExecutionGroupUio
|
|
28
|
+
*/
|
|
29
|
+
name: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentExecutionGroupUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentExecutionGroupUio(value: object): value is AgentExecutionGroupUio;
|
|
35
|
+
export declare function AgentExecutionGroupUioFromJSON(json: any): AgentExecutionGroupUio;
|
|
36
|
+
export declare function AgentExecutionGroupUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionGroupUio;
|
|
37
|
+
export declare function AgentExecutionGroupUioToJSON(json: any): AgentExecutionGroupUio;
|
|
38
|
+
export declare function AgentExecutionGroupUioToJSONTyped(value?: AgentExecutionGroupUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAgentExecutionGroupUio = instanceOfAgentExecutionGroupUio;
|
|
17
|
+
exports.AgentExecutionGroupUioFromJSON = AgentExecutionGroupUioFromJSON;
|
|
18
|
+
exports.AgentExecutionGroupUioFromJSONTyped = AgentExecutionGroupUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionGroupUioToJSON = AgentExecutionGroupUioToJSON;
|
|
20
|
+
exports.AgentExecutionGroupUioToJSONTyped = AgentExecutionGroupUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentExecutionGroupUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentExecutionGroupUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentExecutionGroupUioFromJSON(json) {
|
|
32
|
+
return AgentExecutionGroupUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentExecutionGroupUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentExecutionGroupUioToJSON(json) {
|
|
44
|
+
return AgentExecutionGroupUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentExecutionGroupUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AgentExecutionNodeChoiceUio } from './AgentExecutionNodeChoiceUio';
|
|
13
|
+
import type { AgentExecutionGroupUio } from './AgentExecutionGroupUio';
|
|
14
|
+
import type { AgentExecutionGroupChoiceUio } from './AgentExecutionGroupChoiceUio';
|
|
13
15
|
import type { AgentExecutionNodeUio } from './AgentExecutionNodeUio';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -23,6 +25,24 @@ export interface AgentExecutionUio {
|
|
|
23
25
|
* @memberof AgentExecutionUio
|
|
24
26
|
*/
|
|
25
27
|
mode: AgentExecutionUioModeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {AgentExecutionGroupUio}
|
|
31
|
+
* @memberof AgentExecutionUio
|
|
32
|
+
*/
|
|
33
|
+
group?: AgentExecutionGroupUio;
|
|
34
|
+
/**
|
|
35
|
+
* Mode group — les messages suivants d'une conversation repartent sur le nœud qui en garde l'environnement.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AgentExecutionUio
|
|
38
|
+
*/
|
|
39
|
+
keepEnvironment?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Mode group — attente du nœud de l'environnement ; `null` celle du groupe, -1 sans limite.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AgentExecutionUio
|
|
44
|
+
*/
|
|
45
|
+
envWaitMs?: number | null;
|
|
26
46
|
/**
|
|
27
47
|
*
|
|
28
48
|
* @type {AgentExecutionNodeUio}
|
|
@@ -53,6 +73,12 @@ export interface AgentExecutionUio {
|
|
|
53
73
|
* @memberof AgentExecutionUio
|
|
54
74
|
*/
|
|
55
75
|
availableNodes: Array<AgentExecutionNodeChoiceUio>;
|
|
76
|
+
/**
|
|
77
|
+
* Nul quand les groupes de nœuds sont éteints ou que l'utilisateur n'a pas `nodeGroup.read`.
|
|
78
|
+
* @type {Array<AgentExecutionGroupChoiceUio>}
|
|
79
|
+
* @memberof AgentExecutionUio
|
|
80
|
+
*/
|
|
81
|
+
availableGroups: Array<AgentExecutionGroupChoiceUio> | null;
|
|
56
82
|
}
|
|
57
83
|
/**
|
|
58
84
|
* @export
|
|
@@ -60,6 +86,7 @@ export interface AgentExecutionUio {
|
|
|
60
86
|
export declare const AgentExecutionUioModeEnum: {
|
|
61
87
|
readonly Server: "server";
|
|
62
88
|
readonly Node: "node";
|
|
89
|
+
readonly Group: "group";
|
|
63
90
|
};
|
|
64
91
|
export type AgentExecutionUioModeEnum = typeof AgentExecutionUioModeEnum[keyof typeof AgentExecutionUioModeEnum];
|
|
65
92
|
/**
|
|
@@ -20,13 +20,16 @@ exports.AgentExecutionUioFromJSONTyped = AgentExecutionUioFromJSONTyped;
|
|
|
20
20
|
exports.AgentExecutionUioToJSON = AgentExecutionUioToJSON;
|
|
21
21
|
exports.AgentExecutionUioToJSONTyped = AgentExecutionUioToJSONTyped;
|
|
22
22
|
const AgentExecutionNodeChoiceUio_1 = require("./AgentExecutionNodeChoiceUio");
|
|
23
|
+
const AgentExecutionGroupUio_1 = require("./AgentExecutionGroupUio");
|
|
24
|
+
const AgentExecutionGroupChoiceUio_1 = require("./AgentExecutionGroupChoiceUio");
|
|
23
25
|
const AgentExecutionNodeUio_1 = require("./AgentExecutionNodeUio");
|
|
24
26
|
/**
|
|
25
27
|
* @export
|
|
26
28
|
*/
|
|
27
29
|
exports.AgentExecutionUioModeEnum = {
|
|
28
30
|
Server: 'server',
|
|
29
|
-
Node: 'node'
|
|
31
|
+
Node: 'node',
|
|
32
|
+
Group: 'group'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* @export
|
|
@@ -43,6 +46,8 @@ function instanceOfAgentExecutionUio(value) {
|
|
|
43
46
|
return false;
|
|
44
47
|
if (!('availableNodes' in value) || value['availableNodes'] === undefined)
|
|
45
48
|
return false;
|
|
49
|
+
if (!('availableGroups' in value) || value['availableGroups'] === undefined)
|
|
50
|
+
return false;
|
|
46
51
|
return true;
|
|
47
52
|
}
|
|
48
53
|
function AgentExecutionUioFromJSON(json) {
|
|
@@ -54,11 +59,15 @@ function AgentExecutionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
59
|
}
|
|
55
60
|
return {
|
|
56
61
|
'mode': json['mode'],
|
|
62
|
+
'group': json['group'] == null ? undefined : (0, AgentExecutionGroupUio_1.AgentExecutionGroupUioFromJSON)(json['group']),
|
|
63
|
+
'keepEnvironment': json['keepEnvironment'] == null ? undefined : json['keepEnvironment'],
|
|
64
|
+
'envWaitMs': json['envWaitMs'] == null ? undefined : json['envWaitMs'],
|
|
57
65
|
'node': json['node'] == null ? undefined : (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioFromJSON)(json['node']),
|
|
58
66
|
'runtime': json['runtime'] == null ? undefined : json['runtime'],
|
|
59
67
|
'workspaceAlias': json['workspaceAlias'] == null ? undefined : json['workspaceAlias'],
|
|
60
68
|
'autoResume': json['autoResume'] == null ? undefined : json['autoResume'],
|
|
61
69
|
'availableNodes': (json['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioFromJSON)),
|
|
70
|
+
'availableGroups': (json['availableGroups'] == null ? null : json['availableGroups'].map(AgentExecutionGroupChoiceUio_1.AgentExecutionGroupChoiceUioFromJSON)),
|
|
62
71
|
};
|
|
63
72
|
}
|
|
64
73
|
function AgentExecutionUioToJSON(json) {
|
|
@@ -70,10 +79,14 @@ function AgentExecutionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
79
|
}
|
|
71
80
|
return {
|
|
72
81
|
'mode': value['mode'],
|
|
82
|
+
'group': (0, AgentExecutionGroupUio_1.AgentExecutionGroupUioToJSON)(value['group']),
|
|
83
|
+
'keepEnvironment': value['keepEnvironment'],
|
|
84
|
+
'envWaitMs': value['envWaitMs'],
|
|
73
85
|
'node': (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioToJSON)(value['node']),
|
|
74
86
|
'runtime': value['runtime'],
|
|
75
87
|
'workspaceAlias': value['workspaceAlias'],
|
|
76
88
|
'autoResume': value['autoResume'],
|
|
77
89
|
'availableNodes': (value['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioToJSON)),
|
|
90
|
+
'availableGroups': (value['availableGroups'] == null ? null : value['availableGroups'].map(AgentExecutionGroupChoiceUio_1.AgentExecutionGroupChoiceUioToJSON)),
|
|
78
91
|
};
|
|
79
92
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CreateNodeGroupRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateNodeGroupRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* Attente du nœud qui garde l'environnement d'une conversation, en millisecondes, avant d'en prendre un autre ; `null` : sans limite ; 0 : aucune attente.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateNodeGroupRequestUio
|
|
22
|
+
*/
|
|
23
|
+
envWaitMs?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Libération d'un environnement après ce temps sans activité ; `null` : jamais.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateNodeGroupRequestUio
|
|
28
|
+
*/
|
|
29
|
+
envIdleTtlMs?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Une exécution qu'aucun nœud ne prend dans ce délai échoue.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateNodeGroupRequestUio
|
|
34
|
+
*/
|
|
35
|
+
queueExpiryMs?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateNodeGroupRequestUio
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateNodeGroupRequestUio
|
|
46
|
+
*/
|
|
47
|
+
description?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CreateNodeGroupRequestUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfCreateNodeGroupRequestUio(value: object): value is CreateNodeGroupRequestUio;
|
|
53
|
+
export declare function CreateNodeGroupRequestUioFromJSON(json: any): CreateNodeGroupRequestUio;
|
|
54
|
+
export declare function CreateNodeGroupRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNodeGroupRequestUio;
|
|
55
|
+
export declare function CreateNodeGroupRequestUioToJSON(json: any): CreateNodeGroupRequestUio;
|
|
56
|
+
export declare function CreateNodeGroupRequestUioToJSONTyped(value?: CreateNodeGroupRequestUio | 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.instanceOfCreateNodeGroupRequestUio = instanceOfCreateNodeGroupRequestUio;
|
|
17
|
+
exports.CreateNodeGroupRequestUioFromJSON = CreateNodeGroupRequestUioFromJSON;
|
|
18
|
+
exports.CreateNodeGroupRequestUioFromJSONTyped = CreateNodeGroupRequestUioFromJSONTyped;
|
|
19
|
+
exports.CreateNodeGroupRequestUioToJSON = CreateNodeGroupRequestUioToJSON;
|
|
20
|
+
exports.CreateNodeGroupRequestUioToJSONTyped = CreateNodeGroupRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateNodeGroupRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateNodeGroupRequestUio(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateNodeGroupRequestUioFromJSON(json) {
|
|
30
|
+
return CreateNodeGroupRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateNodeGroupRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'envWaitMs': json['envWaitMs'] == null ? undefined : json['envWaitMs'],
|
|
38
|
+
'envIdleTtlMs': json['envIdleTtlMs'] == null ? undefined : json['envIdleTtlMs'],
|
|
39
|
+
'queueExpiryMs': json['queueExpiryMs'] == null ? undefined : json['queueExpiryMs'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CreateNodeGroupRequestUioToJSON(json) {
|
|
45
|
+
return CreateNodeGroupRequestUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CreateNodeGroupRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'envWaitMs': value['envWaitMs'],
|
|
53
|
+
'envIdleTtlMs': value['envIdleTtlMs'],
|
|
54
|
+
'queueExpiryMs': value['queueExpiryMs'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NodeGroupAgentUio
|
|
16
|
+
*/
|
|
17
|
+
export interface NodeGroupAgentUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NodeGroupAgentUio
|
|
22
|
+
*/
|
|
23
|
+
agentId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NodeGroupAgentUio
|
|
28
|
+
*/
|
|
29
|
+
agentName: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NodeGroupAgentUio
|
|
34
|
+
*/
|
|
35
|
+
runtime: NodeGroupAgentUioRuntimeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NodeGroupAgentUio
|
|
40
|
+
*/
|
|
41
|
+
workspaceAlias: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const NodeGroupAgentUioRuntimeEnum: {
|
|
47
|
+
readonly Claude: "claude";
|
|
48
|
+
readonly Opencode: "opencode";
|
|
49
|
+
};
|
|
50
|
+
export type NodeGroupAgentUioRuntimeEnum = typeof NodeGroupAgentUioRuntimeEnum[keyof typeof NodeGroupAgentUioRuntimeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the NodeGroupAgentUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfNodeGroupAgentUio(value: object): value is NodeGroupAgentUio;
|
|
55
|
+
export declare function NodeGroupAgentUioFromJSON(json: any): NodeGroupAgentUio;
|
|
56
|
+
export declare function NodeGroupAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupAgentUio;
|
|
57
|
+
export declare function NodeGroupAgentUioToJSON(json: any): NodeGroupAgentUio;
|
|
58
|
+
export declare function NodeGroupAgentUioToJSONTyped(value?: NodeGroupAgentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.NodeGroupAgentUioRuntimeEnum = void 0;
|
|
17
|
+
exports.instanceOfNodeGroupAgentUio = instanceOfNodeGroupAgentUio;
|
|
18
|
+
exports.NodeGroupAgentUioFromJSON = NodeGroupAgentUioFromJSON;
|
|
19
|
+
exports.NodeGroupAgentUioFromJSONTyped = NodeGroupAgentUioFromJSONTyped;
|
|
20
|
+
exports.NodeGroupAgentUioToJSON = NodeGroupAgentUioToJSON;
|
|
21
|
+
exports.NodeGroupAgentUioToJSONTyped = NodeGroupAgentUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.NodeGroupAgentUioRuntimeEnum = {
|
|
26
|
+
Claude: 'claude',
|
|
27
|
+
Opencode: 'opencode'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the NodeGroupAgentUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfNodeGroupAgentUio(value) {
|
|
33
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('agentName' in value) || value['agentName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('runtime' in value) || value['runtime'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('workspaceAlias' in value) || value['workspaceAlias'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function NodeGroupAgentUioFromJSON(json) {
|
|
44
|
+
return NodeGroupAgentUioFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NodeGroupAgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'agentId': json['agentId'],
|
|
52
|
+
'agentName': json['agentName'],
|
|
53
|
+
'runtime': json['runtime'],
|
|
54
|
+
'workspaceAlias': json['workspaceAlias'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function NodeGroupAgentUioToJSON(json) {
|
|
58
|
+
return NodeGroupAgentUioToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function NodeGroupAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'agentId': value['agentId'],
|
|
66
|
+
'agentName': value['agentName'],
|
|
67
|
+
'runtime': value['runtime'],
|
|
68
|
+
'workspaceAlias': value['workspaceAlias'],
|
|
69
|
+
};
|
|
70
|
+
}
|