@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.
Files changed (42) hide show
  1. package/dist/apis/ExecutionNodesApi.d.ts +2 -2
  2. package/dist/apis/ExecutionNodesApi.js +2 -2
  3. package/dist/apis/NodeGroupsApi.d.ts +126 -0
  4. package/dist/apis/NodeGroupsApi.js +304 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.d.ts +46 -0
  8. package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.js +62 -0
  9. package/dist/models/AgentExecutionGroupChoiceUio.d.ts +70 -0
  10. package/dist/models/AgentExecutionGroupChoiceUio.js +76 -0
  11. package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.d.ts +44 -0
  12. package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.js +58 -0
  13. package/dist/models/AgentExecutionGroupUio.d.ts +38 -0
  14. package/dist/models/AgentExecutionGroupUio.js +54 -0
  15. package/dist/models/AgentExecutionUio.d.ts +27 -0
  16. package/dist/models/AgentExecutionUio.js +14 -1
  17. package/dist/models/CreateNodeGroupRequestUio.d.ts +56 -0
  18. package/dist/models/CreateNodeGroupRequestUio.js +58 -0
  19. package/dist/models/NodeGroupAgentUio.d.ts +58 -0
  20. package/dist/models/NodeGroupAgentUio.js +70 -0
  21. package/dist/models/NodeGroupCandidateUio.d.ts +115 -0
  22. package/dist/models/NodeGroupCandidateUio.js +109 -0
  23. package/dist/models/NodeGroupDelaysUio.d.ts +44 -0
  24. package/dist/models/NodeGroupDelaysUio.js +52 -0
  25. package/dist/models/NodeGroupDetailUio.d.ts +100 -0
  26. package/dist/models/NodeGroupDetailUio.js +96 -0
  27. package/dist/models/NodeGroupMemberNodeUio.d.ts +115 -0
  28. package/dist/models/NodeGroupMemberNodeUio.js +109 -0
  29. package/dist/models/NodeGroupNodeUio.d.ts +103 -0
  30. package/dist/models/NodeGroupNodeUio.js +101 -0
  31. package/dist/models/NodeGroupSummaryUio.d.ts +116 -0
  32. package/dist/models/NodeGroupSummaryUio.js +106 -0
  33. package/dist/models/NodeGroupUio.d.ts +86 -0
  34. package/dist/models/NodeGroupUio.js +86 -0
  35. package/dist/models/SetAgentExecutionRequestUio.d.ts +20 -1
  36. package/dist/models/SetAgentExecutionRequestUio.js +8 -1
  37. package/dist/models/UpdateNodeGroupRequestUio.d.ts +56 -0
  38. package/dist/models/UpdateNodeGroupRequestUio.js +56 -0
  39. package/dist/models/index.d.ts +14 -0
  40. package/dist/models/index.js +14 -0
  41. package/dist/openapi.json +714 -5
  42. package/package.json +1 -1
@@ -0,0 +1,115 @@
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
+ *
16
+ * @export
17
+ * @interface NodeGroupCandidateUio
18
+ */
19
+ export interface NodeGroupCandidateUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof NodeGroupCandidateUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof NodeGroupCandidateUio
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof NodeGroupCandidateUio
36
+ */
37
+ os: NodeGroupCandidateUioOsEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof NodeGroupCandidateUio
42
+ */
43
+ appVersion: string;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof NodeGroupCandidateUio
48
+ */
49
+ connected: boolean;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof NodeGroupCandidateUio
54
+ */
55
+ revoked: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof NodeGroupCandidateUio
60
+ */
61
+ lastSeenAt: string | null;
62
+ /**
63
+ * Exécutions que le nœud mène en même temps
64
+ * @type {number}
65
+ * @memberof NodeGroupCandidateUio
66
+ */
67
+ slots: number;
68
+ /**
69
+ * Version du contrat parlée par le nœud ; un nœud v1 n'entre dans aucun groupe.
70
+ * @type {number}
71
+ * @memberof NodeGroupCandidateUio
72
+ */
73
+ contractVersion: number;
74
+ /**
75
+ *
76
+ * @type {Array<ExecutionNodeRuntimeUio>}
77
+ * @memberof NodeGroupCandidateUio
78
+ */
79
+ runtimes: Array<ExecutionNodeRuntimeUio>;
80
+ /**
81
+ *
82
+ * @type {Array<ExecutionNodeWorkspaceUio>}
83
+ * @memberof NodeGroupCandidateUio
84
+ */
85
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof NodeGroupCandidateUio
90
+ */
91
+ eligible: boolean;
92
+ /**
93
+ * Pourquoi le nœud ne peut pas entrer dans un groupe (mise à jour à faire…)
94
+ * @type {string}
95
+ * @memberof NodeGroupCandidateUio
96
+ */
97
+ ineligibleReason: string | null;
98
+ }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const NodeGroupCandidateUioOsEnum: {
103
+ readonly Macos: "macos";
104
+ readonly Windows: "windows";
105
+ readonly Linux: "linux";
106
+ };
107
+ export type NodeGroupCandidateUioOsEnum = typeof NodeGroupCandidateUioOsEnum[keyof typeof NodeGroupCandidateUioOsEnum];
108
+ /**
109
+ * Check if a given object implements the NodeGroupCandidateUio interface.
110
+ */
111
+ export declare function instanceOfNodeGroupCandidateUio(value: object): value is NodeGroupCandidateUio;
112
+ export declare function NodeGroupCandidateUioFromJSON(json: any): NodeGroupCandidateUio;
113
+ export declare function NodeGroupCandidateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupCandidateUio;
114
+ export declare function NodeGroupCandidateUioToJSON(json: any): NodeGroupCandidateUio;
115
+ export declare function NodeGroupCandidateUioToJSONTyped(value?: NodeGroupCandidateUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,109 @@
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.NodeGroupCandidateUioOsEnum = void 0;
17
+ exports.instanceOfNodeGroupCandidateUio = instanceOfNodeGroupCandidateUio;
18
+ exports.NodeGroupCandidateUioFromJSON = NodeGroupCandidateUioFromJSON;
19
+ exports.NodeGroupCandidateUioFromJSONTyped = NodeGroupCandidateUioFromJSONTyped;
20
+ exports.NodeGroupCandidateUioToJSON = NodeGroupCandidateUioToJSON;
21
+ exports.NodeGroupCandidateUioToJSONTyped = NodeGroupCandidateUioToJSONTyped;
22
+ const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
23
+ const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.NodeGroupCandidateUioOsEnum = {
28
+ Macos: 'macos',
29
+ Windows: 'windows',
30
+ Linux: 'linux'
31
+ };
32
+ /**
33
+ * Check if a given object implements the NodeGroupCandidateUio interface.
34
+ */
35
+ function instanceOfNodeGroupCandidateUio(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('os' in value) || value['os'] === undefined)
41
+ return false;
42
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
43
+ return false;
44
+ if (!('connected' in value) || value['connected'] === undefined)
45
+ return false;
46
+ if (!('revoked' in value) || value['revoked'] === undefined)
47
+ return false;
48
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
49
+ return false;
50
+ if (!('slots' in value) || value['slots'] === undefined)
51
+ return false;
52
+ if (!('contractVersion' in value) || value['contractVersion'] === undefined)
53
+ return false;
54
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
55
+ return false;
56
+ if (!('workspaces' in value) || value['workspaces'] === undefined)
57
+ return false;
58
+ if (!('eligible' in value) || value['eligible'] === undefined)
59
+ return false;
60
+ if (!('ineligibleReason' in value) || value['ineligibleReason'] === undefined)
61
+ return false;
62
+ return true;
63
+ }
64
+ function NodeGroupCandidateUioFromJSON(json) {
65
+ return NodeGroupCandidateUioFromJSONTyped(json, false);
66
+ }
67
+ function NodeGroupCandidateUioFromJSONTyped(json, ignoreDiscriminator) {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+ 'id': json['id'],
73
+ 'name': json['name'],
74
+ 'os': json['os'],
75
+ 'appVersion': json['appVersion'],
76
+ 'connected': json['connected'],
77
+ 'revoked': json['revoked'],
78
+ 'lastSeenAt': json['lastSeenAt'],
79
+ 'slots': json['slots'],
80
+ 'contractVersion': json['contractVersion'],
81
+ 'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
82
+ 'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
83
+ 'eligible': json['eligible'],
84
+ 'ineligibleReason': json['ineligibleReason'],
85
+ };
86
+ }
87
+ function NodeGroupCandidateUioToJSON(json) {
88
+ return NodeGroupCandidateUioToJSONTyped(json, false);
89
+ }
90
+ function NodeGroupCandidateUioToJSONTyped(value, ignoreDiscriminator = false) {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+ return {
95
+ 'id': value['id'],
96
+ 'name': value['name'],
97
+ 'os': value['os'],
98
+ 'appVersion': value['appVersion'],
99
+ 'connected': value['connected'],
100
+ 'revoked': value['revoked'],
101
+ 'lastSeenAt': value['lastSeenAt'],
102
+ 'slots': value['slots'],
103
+ 'contractVersion': value['contractVersion'],
104
+ 'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
105
+ 'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
106
+ 'eligible': value['eligible'],
107
+ 'ineligibleReason': value['ineligibleReason'],
108
+ };
109
+ }
@@ -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 NodeGroupDelaysUio
16
+ */
17
+ export interface NodeGroupDelaysUio {
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 NodeGroupDelaysUio
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 NodeGroupDelaysUio
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 NodeGroupDelaysUio
34
+ */
35
+ queueExpiryMs?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the NodeGroupDelaysUio interface.
39
+ */
40
+ export declare function instanceOfNodeGroupDelaysUio(value: object): value is NodeGroupDelaysUio;
41
+ export declare function NodeGroupDelaysUioFromJSON(json: any): NodeGroupDelaysUio;
42
+ export declare function NodeGroupDelaysUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupDelaysUio;
43
+ export declare function NodeGroupDelaysUioToJSON(json: any): NodeGroupDelaysUio;
44
+ export declare function NodeGroupDelaysUioToJSONTyped(value?: NodeGroupDelaysUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNodeGroupDelaysUio = instanceOfNodeGroupDelaysUio;
17
+ exports.NodeGroupDelaysUioFromJSON = NodeGroupDelaysUioFromJSON;
18
+ exports.NodeGroupDelaysUioFromJSONTyped = NodeGroupDelaysUioFromJSONTyped;
19
+ exports.NodeGroupDelaysUioToJSON = NodeGroupDelaysUioToJSON;
20
+ exports.NodeGroupDelaysUioToJSONTyped = NodeGroupDelaysUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the NodeGroupDelaysUio interface.
23
+ */
24
+ function instanceOfNodeGroupDelaysUio(value) {
25
+ return true;
26
+ }
27
+ function NodeGroupDelaysUioFromJSON(json) {
28
+ return NodeGroupDelaysUioFromJSONTyped(json, false);
29
+ }
30
+ function NodeGroupDelaysUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'envWaitMs': json['envWaitMs'] == null ? undefined : json['envWaitMs'],
36
+ 'envIdleTtlMs': json['envIdleTtlMs'] == null ? undefined : json['envIdleTtlMs'],
37
+ 'queueExpiryMs': json['queueExpiryMs'] == null ? undefined : json['queueExpiryMs'],
38
+ };
39
+ }
40
+ function NodeGroupDelaysUioToJSON(json) {
41
+ return NodeGroupDelaysUioToJSONTyped(json, false);
42
+ }
43
+ function NodeGroupDelaysUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'envWaitMs': value['envWaitMs'],
49
+ 'envIdleTtlMs': value['envIdleTtlMs'],
50
+ 'queueExpiryMs': value['queueExpiryMs'],
51
+ };
52
+ }
@@ -0,0 +1,100 @@
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 { NodeGroupAgentUio } from './NodeGroupAgentUio';
13
+ import type { NodeGroupMemberNodeUio } from './NodeGroupMemberNodeUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface NodeGroupDetailUio
18
+ */
19
+ export interface NodeGroupDetailUio {
20
+ /**
21
+ * 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.
22
+ * @type {number}
23
+ * @memberof NodeGroupDetailUio
24
+ */
25
+ envWaitMs: number | null;
26
+ /**
27
+ * Libération d'un environnement après ce temps sans activité ; `null` : jamais.
28
+ * @type {number}
29
+ * @memberof NodeGroupDetailUio
30
+ */
31
+ envIdleTtlMs: number | null;
32
+ /**
33
+ * Une exécution qu'aucun nœud ne prend dans ce délai échoue.
34
+ * @type {number}
35
+ * @memberof NodeGroupDetailUio
36
+ */
37
+ queueExpiryMs: number;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof NodeGroupDetailUio
42
+ */
43
+ id: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof NodeGroupDetailUio
48
+ */
49
+ organizationId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof NodeGroupDetailUio
54
+ */
55
+ name: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof NodeGroupDetailUio
60
+ */
61
+ description: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof NodeGroupDetailUio
66
+ */
67
+ createdByUserId: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof NodeGroupDetailUio
72
+ */
73
+ createdAt: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof NodeGroupDetailUio
78
+ */
79
+ updatedAt: string;
80
+ /**
81
+ *
82
+ * @type {Array<NodeGroupMemberNodeUio>}
83
+ * @memberof NodeGroupDetailUio
84
+ */
85
+ nodes: Array<NodeGroupMemberNodeUio>;
86
+ /**
87
+ *
88
+ * @type {Array<NodeGroupAgentUio>}
89
+ * @memberof NodeGroupDetailUio
90
+ */
91
+ agents: Array<NodeGroupAgentUio>;
92
+ }
93
+ /**
94
+ * Check if a given object implements the NodeGroupDetailUio interface.
95
+ */
96
+ export declare function instanceOfNodeGroupDetailUio(value: object): value is NodeGroupDetailUio;
97
+ export declare function NodeGroupDetailUioFromJSON(json: any): NodeGroupDetailUio;
98
+ export declare function NodeGroupDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupDetailUio;
99
+ export declare function NodeGroupDetailUioToJSON(json: any): NodeGroupDetailUio;
100
+ export declare function NodeGroupDetailUioToJSONTyped(value?: NodeGroupDetailUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,96 @@
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.instanceOfNodeGroupDetailUio = instanceOfNodeGroupDetailUio;
17
+ exports.NodeGroupDetailUioFromJSON = NodeGroupDetailUioFromJSON;
18
+ exports.NodeGroupDetailUioFromJSONTyped = NodeGroupDetailUioFromJSONTyped;
19
+ exports.NodeGroupDetailUioToJSON = NodeGroupDetailUioToJSON;
20
+ exports.NodeGroupDetailUioToJSONTyped = NodeGroupDetailUioToJSONTyped;
21
+ const NodeGroupAgentUio_1 = require("./NodeGroupAgentUio");
22
+ const NodeGroupMemberNodeUio_1 = require("./NodeGroupMemberNodeUio");
23
+ /**
24
+ * Check if a given object implements the NodeGroupDetailUio interface.
25
+ */
26
+ function instanceOfNodeGroupDetailUio(value) {
27
+ if (!('envWaitMs' in value) || value['envWaitMs'] === undefined)
28
+ return false;
29
+ if (!('envIdleTtlMs' in value) || value['envIdleTtlMs'] === undefined)
30
+ return false;
31
+ if (!('queueExpiryMs' in value) || value['queueExpiryMs'] === undefined)
32
+ return false;
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('description' in value) || value['description'] === undefined)
40
+ return false;
41
+ if (!('createdByUserId' in value) || value['createdByUserId'] === undefined)
42
+ return false;
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
46
+ return false;
47
+ if (!('nodes' in value) || value['nodes'] === undefined)
48
+ return false;
49
+ if (!('agents' in value) || value['agents'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function NodeGroupDetailUioFromJSON(json) {
54
+ return NodeGroupDetailUioFromJSONTyped(json, false);
55
+ }
56
+ function NodeGroupDetailUioFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'envWaitMs': json['envWaitMs'],
62
+ 'envIdleTtlMs': json['envIdleTtlMs'],
63
+ 'queueExpiryMs': json['queueExpiryMs'],
64
+ 'id': json['id'],
65
+ 'organizationId': json['organizationId'],
66
+ 'name': json['name'],
67
+ 'description': json['description'],
68
+ 'createdByUserId': json['createdByUserId'],
69
+ 'createdAt': json['createdAt'],
70
+ 'updatedAt': json['updatedAt'],
71
+ 'nodes': (json['nodes'].map(NodeGroupMemberNodeUio_1.NodeGroupMemberNodeUioFromJSON)),
72
+ 'agents': (json['agents'].map(NodeGroupAgentUio_1.NodeGroupAgentUioFromJSON)),
73
+ };
74
+ }
75
+ function NodeGroupDetailUioToJSON(json) {
76
+ return NodeGroupDetailUioToJSONTyped(json, false);
77
+ }
78
+ function NodeGroupDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+ return {
83
+ 'envWaitMs': value['envWaitMs'],
84
+ 'envIdleTtlMs': value['envIdleTtlMs'],
85
+ 'queueExpiryMs': value['queueExpiryMs'],
86
+ 'id': value['id'],
87
+ 'organizationId': value['organizationId'],
88
+ 'name': value['name'],
89
+ 'description': value['description'],
90
+ 'createdByUserId': value['createdByUserId'],
91
+ 'createdAt': value['createdAt'],
92
+ 'updatedAt': value['updatedAt'],
93
+ 'nodes': (value['nodes'].map(NodeGroupMemberNodeUio_1.NodeGroupMemberNodeUioToJSON)),
94
+ 'agents': (value['agents'].map(NodeGroupAgentUio_1.NodeGroupAgentUioToJSON)),
95
+ };
96
+ }
@@ -0,0 +1,115 @@
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
+ *
16
+ * @export
17
+ * @interface NodeGroupMemberNodeUio
18
+ */
19
+ export interface NodeGroupMemberNodeUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof NodeGroupMemberNodeUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof NodeGroupMemberNodeUio
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof NodeGroupMemberNodeUio
36
+ */
37
+ os: NodeGroupMemberNodeUioOsEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof NodeGroupMemberNodeUio
42
+ */
43
+ appVersion: string;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof NodeGroupMemberNodeUio
48
+ */
49
+ connected: boolean;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof NodeGroupMemberNodeUio
54
+ */
55
+ revoked: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof NodeGroupMemberNodeUio
60
+ */
61
+ lastSeenAt: string | null;
62
+ /**
63
+ * Exécutions que le nœud mène en même temps
64
+ * @type {number}
65
+ * @memberof NodeGroupMemberNodeUio
66
+ */
67
+ slots: number;
68
+ /**
69
+ * Version du contrat parlée par le nœud ; un nœud v1 n'entre dans aucun groupe.
70
+ * @type {number}
71
+ * @memberof NodeGroupMemberNodeUio
72
+ */
73
+ contractVersion: number;
74
+ /**
75
+ *
76
+ * @type {Array<ExecutionNodeRuntimeUio>}
77
+ * @memberof NodeGroupMemberNodeUio
78
+ */
79
+ runtimes: Array<ExecutionNodeRuntimeUio>;
80
+ /**
81
+ *
82
+ * @type {Array<ExecutionNodeWorkspaceUio>}
83
+ * @memberof NodeGroupMemberNodeUio
84
+ */
85
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof NodeGroupMemberNodeUio
90
+ */
91
+ addedByUserId: string;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof NodeGroupMemberNodeUio
96
+ */
97
+ addedAt: string;
98
+ }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const NodeGroupMemberNodeUioOsEnum: {
103
+ readonly Macos: "macos";
104
+ readonly Windows: "windows";
105
+ readonly Linux: "linux";
106
+ };
107
+ export type NodeGroupMemberNodeUioOsEnum = typeof NodeGroupMemberNodeUioOsEnum[keyof typeof NodeGroupMemberNodeUioOsEnum];
108
+ /**
109
+ * Check if a given object implements the NodeGroupMemberNodeUio interface.
110
+ */
111
+ export declare function instanceOfNodeGroupMemberNodeUio(value: object): value is NodeGroupMemberNodeUio;
112
+ export declare function NodeGroupMemberNodeUioFromJSON(json: any): NodeGroupMemberNodeUio;
113
+ export declare function NodeGroupMemberNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupMemberNodeUio;
114
+ export declare function NodeGroupMemberNodeUioToJSON(json: any): NodeGroupMemberNodeUio;
115
+ export declare function NodeGroupMemberNodeUioToJSONTyped(value?: NodeGroupMemberNodeUio | null, ignoreDiscriminator?: boolean): any;