@breign/client 1.0.173 → 1.0.175

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.
@@ -21,6 +21,7 @@ exports.ExecutionNodeDetailUioToJSON = ExecutionNodeDetailUioToJSON;
21
21
  exports.ExecutionNodeDetailUioToJSONTyped = ExecutionNodeDetailUioToJSONTyped;
22
22
  const ExecutionNodeAgentUio_1 = require("./ExecutionNodeAgentUio");
23
23
  const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
24
+ const ExecutionNodeOrganizationUio_1 = require("./ExecutionNodeOrganizationUio");
24
25
  const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
25
26
  const NodeSessionUio_1 = require("./NodeSessionUio");
26
27
  /**
@@ -55,6 +56,8 @@ function instanceOfExecutionNodeDetailUio(value) {
55
56
  return false;
56
57
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
58
  return false;
59
+ if (!('organizations' in value) || value['organizations'] === undefined)
60
+ return false;
58
61
  if (!('agents' in value) || value['agents'] === undefined)
59
62
  return false;
60
63
  if (!('sessions' in value) || value['sessions'] === undefined)
@@ -79,6 +82,7 @@ function ExecutionNodeDetailUioFromJSONTyped(json, ignoreDiscriminator) {
79
82
  'lastSeenAt': json['lastSeenAt'],
80
83
  'revokedAt': json['revokedAt'],
81
84
  'createdAt': json['createdAt'],
85
+ 'organizations': (json['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioFromJSON)),
82
86
  'agents': (json['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioFromJSON)),
83
87
  'sessions': (json['sessions'].map(NodeSessionUio_1.NodeSessionUioFromJSON)),
84
88
  };
@@ -101,6 +105,7 @@ function ExecutionNodeDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
101
105
  'lastSeenAt': value['lastSeenAt'],
102
106
  'revokedAt': value['revokedAt'],
103
107
  'createdAt': value['createdAt'],
108
+ 'organizations': (value['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioToJSON)),
104
109
  'agents': (value['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioToJSON)),
105
110
  'sessions': (value['sessions'].map(NodeSessionUio_1.NodeSessionUioToJSON)),
106
111
  };
@@ -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
+ * Une organisation à laquelle le nœud est associé : seuls les agents de ces organisations peuvent y tourner. Le propriétaire associe son nœud depuis Breign Mate, organisation par organisation.
14
+ * @export
15
+ * @interface ExecutionNodeOrganizationUio
16
+ */
17
+ export interface ExecutionNodeOrganizationUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExecutionNodeOrganizationUio
22
+ */
23
+ organizationId: string;
24
+ /**
25
+ * Nom de l'organisation, résolu par l'API. Null pour une organisation supprimée.
26
+ * @type {string}
27
+ * @memberof ExecutionNodeOrganizationUio
28
+ */
29
+ organizationName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExecutionNodeOrganizationUio
34
+ */
35
+ associatedAt: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExecutionNodeOrganizationUio interface.
39
+ */
40
+ export declare function instanceOfExecutionNodeOrganizationUio(value: object): value is ExecutionNodeOrganizationUio;
41
+ export declare function ExecutionNodeOrganizationUioFromJSON(json: any): ExecutionNodeOrganizationUio;
42
+ export declare function ExecutionNodeOrganizationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeOrganizationUio;
43
+ export declare function ExecutionNodeOrganizationUioToJSON(json: any): ExecutionNodeOrganizationUio;
44
+ export declare function ExecutionNodeOrganizationUioToJSONTyped(value?: ExecutionNodeOrganizationUio | 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.instanceOfExecutionNodeOrganizationUio = instanceOfExecutionNodeOrganizationUio;
17
+ exports.ExecutionNodeOrganizationUioFromJSON = ExecutionNodeOrganizationUioFromJSON;
18
+ exports.ExecutionNodeOrganizationUioFromJSONTyped = ExecutionNodeOrganizationUioFromJSONTyped;
19
+ exports.ExecutionNodeOrganizationUioToJSON = ExecutionNodeOrganizationUioToJSON;
20
+ exports.ExecutionNodeOrganizationUioToJSONTyped = ExecutionNodeOrganizationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExecutionNodeOrganizationUio interface.
23
+ */
24
+ function instanceOfExecutionNodeOrganizationUio(value) {
25
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
26
+ return false;
27
+ if (!('organizationName' in value) || value['organizationName'] === undefined)
28
+ return false;
29
+ if (!('associatedAt' in value) || value['associatedAt'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ExecutionNodeOrganizationUioFromJSON(json) {
34
+ return ExecutionNodeOrganizationUioFromJSONTyped(json, false);
35
+ }
36
+ function ExecutionNodeOrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'organizationId': json['organizationId'],
42
+ 'organizationName': json['organizationName'],
43
+ 'associatedAt': json['associatedAt'],
44
+ };
45
+ }
46
+ function ExecutionNodeOrganizationUioToJSON(json) {
47
+ return ExecutionNodeOrganizationUioToJSONTyped(json, false);
48
+ }
49
+ function ExecutionNodeOrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'organizationId': value['organizationId'],
55
+ 'organizationName': value['organizationName'],
56
+ 'associatedAt': value['associatedAt'],
57
+ };
58
+ }
@@ -0,0 +1,33 @@
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 { NodeAssociationPolicyUio } from './NodeAssociationPolicyUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ExecutionNodeSettingsUio
17
+ */
18
+ export interface ExecutionNodeSettingsUio {
19
+ /**
20
+ *
21
+ * @type {NodeAssociationPolicyUio}
22
+ * @memberof ExecutionNodeSettingsUio
23
+ */
24
+ associationPolicy: NodeAssociationPolicyUio;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ExecutionNodeSettingsUio interface.
28
+ */
29
+ export declare function instanceOfExecutionNodeSettingsUio(value: object): value is ExecutionNodeSettingsUio;
30
+ export declare function ExecutionNodeSettingsUioFromJSON(json: any): ExecutionNodeSettingsUio;
31
+ export declare function ExecutionNodeSettingsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeSettingsUio;
32
+ export declare function ExecutionNodeSettingsUioToJSON(json: any): ExecutionNodeSettingsUio;
33
+ export declare function ExecutionNodeSettingsUioToJSONTyped(value?: ExecutionNodeSettingsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfExecutionNodeSettingsUio = instanceOfExecutionNodeSettingsUio;
17
+ exports.ExecutionNodeSettingsUioFromJSON = ExecutionNodeSettingsUioFromJSON;
18
+ exports.ExecutionNodeSettingsUioFromJSONTyped = ExecutionNodeSettingsUioFromJSONTyped;
19
+ exports.ExecutionNodeSettingsUioToJSON = ExecutionNodeSettingsUioToJSON;
20
+ exports.ExecutionNodeSettingsUioToJSONTyped = ExecutionNodeSettingsUioToJSONTyped;
21
+ const NodeAssociationPolicyUio_1 = require("./NodeAssociationPolicyUio");
22
+ /**
23
+ * Check if a given object implements the ExecutionNodeSettingsUio interface.
24
+ */
25
+ function instanceOfExecutionNodeSettingsUio(value) {
26
+ if (!('associationPolicy' in value) || value['associationPolicy'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ExecutionNodeSettingsUioFromJSON(json) {
31
+ return ExecutionNodeSettingsUioFromJSONTyped(json, false);
32
+ }
33
+ function ExecutionNodeSettingsUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'associationPolicy': (0, NodeAssociationPolicyUio_1.NodeAssociationPolicyUioFromJSON)(json['associationPolicy']),
39
+ };
40
+ }
41
+ function ExecutionNodeSettingsUioToJSON(json) {
42
+ return ExecutionNodeSettingsUioToJSONTyped(json, false);
43
+ }
44
+ function ExecutionNodeSettingsUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'associationPolicy': (0, NodeAssociationPolicyUio_1.NodeAssociationPolicyUioToJSON)(value['associationPolicy']),
50
+ };
51
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ExecutionNodeAgentUio } from './ExecutionNodeAgentUio';
13
13
  import type { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
14
+ import type { ExecutionNodeOrganizationUio } from './ExecutionNodeOrganizationUio';
14
15
  import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
15
16
  /**
16
17
  *
@@ -78,6 +79,12 @@ export interface ExecutionNodeUio {
78
79
  * @memberof ExecutionNodeUio
79
80
  */
80
81
  createdAt: string;
82
+ /**
83
+ * Les organisations auxquelles le nœud est associé, par date d'association.
84
+ * @type {Array<ExecutionNodeOrganizationUio>}
85
+ * @memberof ExecutionNodeUio
86
+ */
87
+ organizations: Array<ExecutionNodeOrganizationUio>;
81
88
  /**
82
89
  *
83
90
  * @type {Array<ExecutionNodeAgentUio>}
@@ -21,6 +21,7 @@ exports.ExecutionNodeUioToJSON = ExecutionNodeUioToJSON;
21
21
  exports.ExecutionNodeUioToJSONTyped = ExecutionNodeUioToJSONTyped;
22
22
  const ExecutionNodeAgentUio_1 = require("./ExecutionNodeAgentUio");
23
23
  const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
24
+ const ExecutionNodeOrganizationUio_1 = require("./ExecutionNodeOrganizationUio");
24
25
  const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
25
26
  /**
26
27
  * @export
@@ -54,6 +55,8 @@ function instanceOfExecutionNodeUio(value) {
54
55
  return false;
55
56
  if (!('createdAt' in value) || value['createdAt'] === undefined)
56
57
  return false;
58
+ if (!('organizations' in value) || value['organizations'] === undefined)
59
+ return false;
57
60
  return true;
58
61
  }
59
62
  function ExecutionNodeUioFromJSON(json) {
@@ -74,6 +77,7 @@ function ExecutionNodeUioFromJSONTyped(json, ignoreDiscriminator) {
74
77
  'lastSeenAt': json['lastSeenAt'],
75
78
  'revokedAt': json['revokedAt'],
76
79
  'createdAt': json['createdAt'],
80
+ 'organizations': (json['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioFromJSON)),
77
81
  'agents': json['agents'] == null ? undefined : (json['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioFromJSON)),
78
82
  };
79
83
  }
@@ -95,6 +99,7 @@ function ExecutionNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
95
99
  'lastSeenAt': value['lastSeenAt'],
96
100
  'revokedAt': value['revokedAt'],
97
101
  'createdAt': value['createdAt'],
102
+ 'organizations': (value['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioToJSON)),
98
103
  'agents': value['agents'] == null ? undefined : (value['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioToJSON)),
99
104
  };
100
105
  }
@@ -0,0 +1,26 @@
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
+ * Qui peut associer un nœud à l'organisation : tous ses membres, ses admins seulement, ou personne. Les nœuds déjà associés ne sont pas touchés par un changement.
14
+ * @export
15
+ */
16
+ export declare const NodeAssociationPolicyUio: {
17
+ readonly Members: "members";
18
+ readonly Admins: "admins";
19
+ readonly None: "none";
20
+ };
21
+ export type NodeAssociationPolicyUio = typeof NodeAssociationPolicyUio[keyof typeof NodeAssociationPolicyUio];
22
+ export declare function instanceOfNodeAssociationPolicyUio(value: any): boolean;
23
+ export declare function NodeAssociationPolicyUioFromJSON(json: any): NodeAssociationPolicyUio;
24
+ export declare function NodeAssociationPolicyUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeAssociationPolicyUio;
25
+ export declare function NodeAssociationPolicyUioToJSON(value?: NodeAssociationPolicyUio | null): any;
26
+ export declare function NodeAssociationPolicyUioToJSONTyped(value: any, ignoreDiscriminator: boolean): NodeAssociationPolicyUio;
@@ -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.NodeAssociationPolicyUio = void 0;
17
+ exports.instanceOfNodeAssociationPolicyUio = instanceOfNodeAssociationPolicyUio;
18
+ exports.NodeAssociationPolicyUioFromJSON = NodeAssociationPolicyUioFromJSON;
19
+ exports.NodeAssociationPolicyUioFromJSONTyped = NodeAssociationPolicyUioFromJSONTyped;
20
+ exports.NodeAssociationPolicyUioToJSON = NodeAssociationPolicyUioToJSON;
21
+ exports.NodeAssociationPolicyUioToJSONTyped = NodeAssociationPolicyUioToJSONTyped;
22
+ /**
23
+ * Qui peut associer un nœud à l'organisation : tous ses membres, ses admins seulement, ou personne. Les nœuds déjà associés ne sont pas touchés par un changement.
24
+ * @export
25
+ */
26
+ exports.NodeAssociationPolicyUio = {
27
+ Members: 'members',
28
+ Admins: 'admins',
29
+ None: 'none'
30
+ };
31
+ function instanceOfNodeAssociationPolicyUio(value) {
32
+ for (const key in exports.NodeAssociationPolicyUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.NodeAssociationPolicyUio, key)) {
34
+ if (exports.NodeAssociationPolicyUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function NodeAssociationPolicyUioFromJSON(json) {
42
+ return NodeAssociationPolicyUioFromJSONTyped(json, false);
43
+ }
44
+ function NodeAssociationPolicyUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function NodeAssociationPolicyUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function NodeAssociationPolicyUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -67,7 +67,7 @@ export interface NodeSessionDetailUio {
67
67
  */
68
68
  state: NodeSessionStateUio;
69
69
  /**
70
- * Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node…
70
+ * Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node, node_dissociated (nœud retiré de l'organisation du tour)…
71
71
  * @type {string}
72
72
  * @memberof NodeSessionDetailUio
73
73
  */
@@ -67,7 +67,7 @@ export interface NodeSessionUio {
67
67
  */
68
68
  state: NodeSessionStateUio;
69
69
  /**
70
- * Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node…
70
+ * Motif d'un tour interrompu ou en échec : cancelled, host_restart, unpaired, runtime_missing, runtime_failed, workdir_refused, invalid_task, node_unreachable, lost_on_node, node_dissociated (nœud retiré de l'organisation du tour)…
71
71
  * @type {string}
72
72
  * @memberof NodeSessionUio
73
73
  */
@@ -0,0 +1,52 @@
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 OrganizationExecutionNodeAgentUio
16
+ */
17
+ export interface OrganizationExecutionNodeAgentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrganizationExecutionNodeAgentUio
22
+ */
23
+ agentId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OrganizationExecutionNodeAgentUio
28
+ */
29
+ agentName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OrganizationExecutionNodeAgentUio
34
+ */
35
+ runtime: OrganizationExecutionNodeAgentUioRuntimeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const OrganizationExecutionNodeAgentUioRuntimeEnum: {
41
+ readonly Claude: "claude";
42
+ readonly Opencode: "opencode";
43
+ };
44
+ export type OrganizationExecutionNodeAgentUioRuntimeEnum = typeof OrganizationExecutionNodeAgentUioRuntimeEnum[keyof typeof OrganizationExecutionNodeAgentUioRuntimeEnum];
45
+ /**
46
+ * Check if a given object implements the OrganizationExecutionNodeAgentUio interface.
47
+ */
48
+ export declare function instanceOfOrganizationExecutionNodeAgentUio(value: object): value is OrganizationExecutionNodeAgentUio;
49
+ export declare function OrganizationExecutionNodeAgentUioFromJSON(json: any): OrganizationExecutionNodeAgentUio;
50
+ export declare function OrganizationExecutionNodeAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationExecutionNodeAgentUio;
51
+ export declare function OrganizationExecutionNodeAgentUioToJSON(json: any): OrganizationExecutionNodeAgentUio;
52
+ export declare function OrganizationExecutionNodeAgentUioToJSONTyped(value?: OrganizationExecutionNodeAgentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.OrganizationExecutionNodeAgentUioRuntimeEnum = void 0;
17
+ exports.instanceOfOrganizationExecutionNodeAgentUio = instanceOfOrganizationExecutionNodeAgentUio;
18
+ exports.OrganizationExecutionNodeAgentUioFromJSON = OrganizationExecutionNodeAgentUioFromJSON;
19
+ exports.OrganizationExecutionNodeAgentUioFromJSONTyped = OrganizationExecutionNodeAgentUioFromJSONTyped;
20
+ exports.OrganizationExecutionNodeAgentUioToJSON = OrganizationExecutionNodeAgentUioToJSON;
21
+ exports.OrganizationExecutionNodeAgentUioToJSONTyped = OrganizationExecutionNodeAgentUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.OrganizationExecutionNodeAgentUioRuntimeEnum = {
26
+ Claude: 'claude',
27
+ Opencode: 'opencode'
28
+ };
29
+ /**
30
+ * Check if a given object implements the OrganizationExecutionNodeAgentUio interface.
31
+ */
32
+ function instanceOfOrganizationExecutionNodeAgentUio(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
+ return true;
40
+ }
41
+ function OrganizationExecutionNodeAgentUioFromJSON(json) {
42
+ return OrganizationExecutionNodeAgentUioFromJSONTyped(json, false);
43
+ }
44
+ function OrganizationExecutionNodeAgentUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'agentId': json['agentId'],
50
+ 'agentName': json['agentName'],
51
+ 'runtime': json['runtime'],
52
+ };
53
+ }
54
+ function OrganizationExecutionNodeAgentUioToJSON(json) {
55
+ return OrganizationExecutionNodeAgentUioToJSONTyped(json, false);
56
+ }
57
+ function OrganizationExecutionNodeAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'agentId': value['agentId'],
63
+ 'agentName': value['agentName'],
64
+ 'runtime': value['runtime'],
65
+ };
66
+ }
@@ -0,0 +1,97 @@
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 { OrganizationExecutionNodeUserUio } from './OrganizationExecutionNodeUserUio';
13
+ import type { OrganizationExecutionNodeAgentUio } from './OrganizationExecutionNodeAgentUio';
14
+ /**
15
+ * Un nœud associé à l'organisation, vu par ses admins.
16
+ * @export
17
+ * @interface OrganizationExecutionNodeUio
18
+ */
19
+ export interface OrganizationExecutionNodeUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof OrganizationExecutionNodeUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof OrganizationExecutionNodeUio
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof OrganizationExecutionNodeUio
36
+ */
37
+ os: OrganizationExecutionNodeUioOsEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof OrganizationExecutionNodeUio
42
+ */
43
+ appVersion: string;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof OrganizationExecutionNodeUio
48
+ */
49
+ connected: boolean;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof OrganizationExecutionNodeUio
54
+ */
55
+ lastSeenAt: string | null;
56
+ /**
57
+ *
58
+ * @type {OrganizationExecutionNodeUserUio}
59
+ * @memberof OrganizationExecutionNodeUio
60
+ */
61
+ owner: OrganizationExecutionNodeUserUio;
62
+ /**
63
+ *
64
+ * @type {OrganizationExecutionNodeUserUio}
65
+ * @memberof OrganizationExecutionNodeUio
66
+ */
67
+ associatedBy: OrganizationExecutionNodeUserUio;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof OrganizationExecutionNodeUio
72
+ */
73
+ associatedAt: string;
74
+ /**
75
+ * Les agents de cette organisation rattachés au nœud ; ceux des autres n'y figurent pas.
76
+ * @type {Array<OrganizationExecutionNodeAgentUio>}
77
+ * @memberof OrganizationExecutionNodeUio
78
+ */
79
+ agents: Array<OrganizationExecutionNodeAgentUio>;
80
+ }
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const OrganizationExecutionNodeUioOsEnum: {
85
+ readonly Macos: "macos";
86
+ readonly Windows: "windows";
87
+ readonly Linux: "linux";
88
+ };
89
+ export type OrganizationExecutionNodeUioOsEnum = typeof OrganizationExecutionNodeUioOsEnum[keyof typeof OrganizationExecutionNodeUioOsEnum];
90
+ /**
91
+ * Check if a given object implements the OrganizationExecutionNodeUio interface.
92
+ */
93
+ export declare function instanceOfOrganizationExecutionNodeUio(value: object): value is OrganizationExecutionNodeUio;
94
+ export declare function OrganizationExecutionNodeUioFromJSON(json: any): OrganizationExecutionNodeUio;
95
+ export declare function OrganizationExecutionNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationExecutionNodeUio;
96
+ export declare function OrganizationExecutionNodeUioToJSON(json: any): OrganizationExecutionNodeUio;
97
+ export declare function OrganizationExecutionNodeUioToJSONTyped(value?: OrganizationExecutionNodeUio | null, ignoreDiscriminator?: boolean): any;