@breign/client 1.0.170 → 1.0.172

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 (46) hide show
  1. package/dist/apis/ExecutionNodesApi.d.ts +165 -0
  2. package/dist/apis/ExecutionNodesApi.js +399 -0
  3. package/dist/apis/TicketsApi.d.ts +31 -1
  4. package/dist/apis/TicketsApi.js +74 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AgentExecutionNodeChoiceUio.d.ts +58 -0
  8. package/dist/models/AgentExecutionNodeChoiceUio.js +68 -0
  9. package/dist/models/AgentExecutionNodeUio.d.ts +50 -0
  10. package/dist/models/AgentExecutionNodeUio.js +62 -0
  11. package/dist/models/AgentExecutionUio.d.ts +80 -0
  12. package/dist/models/AgentExecutionUio.js +79 -0
  13. package/dist/models/ExecutionNodeAgentUio.d.ts +82 -0
  14. package/dist/models/ExecutionNodeAgentUio.js +86 -0
  15. package/dist/models/ExecutionNodeDetailUio.d.ts +111 -0
  16. package/dist/models/ExecutionNodeDetailUio.js +107 -0
  17. package/dist/models/ExecutionNodeRuntimeUio.d.ts +46 -0
  18. package/dist/models/ExecutionNodeRuntimeUio.js +60 -0
  19. package/dist/models/ExecutionNodeUio.d.ts +104 -0
  20. package/dist/models/ExecutionNodeUio.js +100 -0
  21. package/dist/models/ExecutionNodeWorkspaceUio.d.ts +38 -0
  22. package/dist/models/ExecutionNodeWorkspaceUio.js +54 -0
  23. package/dist/models/NodeSessionDetailUio.d.ts +133 -0
  24. package/dist/models/NodeSessionDetailUio.js +113 -0
  25. package/dist/models/NodeSessionLogEntryUio.d.ts +58 -0
  26. package/dist/models/NodeSessionLogEntryUio.js +70 -0
  27. package/dist/models/NodeSessionLogsUio.d.ts +51 -0
  28. package/dist/models/NodeSessionLogsUio.js +63 -0
  29. package/dist/models/NodeSessionMetricsUio.d.ts +74 -0
  30. package/dist/models/NodeSessionMetricsUio.js +62 -0
  31. package/dist/models/NodeSessionProgressUio.d.ts +44 -0
  32. package/dist/models/NodeSessionProgressUio.js +54 -0
  33. package/dist/models/NodeSessionStateUio.d.ts +29 -0
  34. package/dist/models/NodeSessionStateUio.js +55 -0
  35. package/dist/models/NodeSessionUio.d.ts +127 -0
  36. package/dist/models/NodeSessionUio.js +111 -0
  37. package/dist/models/NodeTurnCancelResultUio.d.ts +32 -0
  38. package/dist/models/NodeTurnCancelResultUio.js +50 -0
  39. package/dist/models/SaveTicketArtifactVersionRequestUio.d.ts +32 -0
  40. package/dist/models/SaveTicketArtifactVersionRequestUio.js +50 -0
  41. package/dist/models/SetAgentExecutionRequestUio.d.ts +72 -0
  42. package/dist/models/SetAgentExecutionRequestUio.js +73 -0
  43. package/dist/models/index.d.ts +18 -0
  44. package/dist/models/index.js +18 -0
  45. package/dist/openapi.json +3053 -2001
  46. package/package.json +1 -1
@@ -0,0 +1,111 @@
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 { ExecutionNodeAgentUio } from './ExecutionNodeAgentUio';
13
+ import type { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
14
+ import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
15
+ import type { NodeSessionUio } from './NodeSessionUio';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ExecutionNodeDetailUio
20
+ */
21
+ export interface ExecutionNodeDetailUio {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExecutionNodeDetailUio
26
+ */
27
+ id: string;
28
+ /**
29
+ * Nom du poste
30
+ * @type {string}
31
+ * @memberof ExecutionNodeDetailUio
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ExecutionNodeDetailUio
38
+ */
39
+ os: ExecutionNodeDetailUioOsEnum;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ExecutionNodeDetailUio
44
+ */
45
+ appVersion: string;
46
+ /**
47
+ *
48
+ * @type {Array<ExecutionNodeRuntimeUio>}
49
+ * @memberof ExecutionNodeDetailUio
50
+ */
51
+ runtimes: Array<ExecutionNodeRuntimeUio>;
52
+ /**
53
+ *
54
+ * @type {Array<ExecutionNodeWorkspaceUio>}
55
+ * @memberof ExecutionNodeDetailUio
56
+ */
57
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof ExecutionNodeDetailUio
62
+ */
63
+ connected: boolean;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ExecutionNodeDetailUio
68
+ */
69
+ lastSeenAt: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ExecutionNodeDetailUio
74
+ */
75
+ revokedAt: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof ExecutionNodeDetailUio
80
+ */
81
+ createdAt: string;
82
+ /**
83
+ *
84
+ * @type {Array<ExecutionNodeAgentUio>}
85
+ * @memberof ExecutionNodeDetailUio
86
+ */
87
+ agents: Array<ExecutionNodeAgentUio>;
88
+ /**
89
+ * Les derniers tours du nœud, du plus récent au plus ancien.
90
+ * @type {Array<NodeSessionUio>}
91
+ * @memberof ExecutionNodeDetailUio
92
+ */
93
+ sessions: Array<NodeSessionUio>;
94
+ }
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const ExecutionNodeDetailUioOsEnum: {
99
+ readonly Macos: "macos";
100
+ readonly Windows: "windows";
101
+ readonly Linux: "linux";
102
+ };
103
+ export type ExecutionNodeDetailUioOsEnum = typeof ExecutionNodeDetailUioOsEnum[keyof typeof ExecutionNodeDetailUioOsEnum];
104
+ /**
105
+ * Check if a given object implements the ExecutionNodeDetailUio interface.
106
+ */
107
+ export declare function instanceOfExecutionNodeDetailUio(value: object): value is ExecutionNodeDetailUio;
108
+ export declare function ExecutionNodeDetailUioFromJSON(json: any): ExecutionNodeDetailUio;
109
+ export declare function ExecutionNodeDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeDetailUio;
110
+ export declare function ExecutionNodeDetailUioToJSON(json: any): ExecutionNodeDetailUio;
111
+ export declare function ExecutionNodeDetailUioToJSONTyped(value?: ExecutionNodeDetailUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,107 @@
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.ExecutionNodeDetailUioOsEnum = void 0;
17
+ exports.instanceOfExecutionNodeDetailUio = instanceOfExecutionNodeDetailUio;
18
+ exports.ExecutionNodeDetailUioFromJSON = ExecutionNodeDetailUioFromJSON;
19
+ exports.ExecutionNodeDetailUioFromJSONTyped = ExecutionNodeDetailUioFromJSONTyped;
20
+ exports.ExecutionNodeDetailUioToJSON = ExecutionNodeDetailUioToJSON;
21
+ exports.ExecutionNodeDetailUioToJSONTyped = ExecutionNodeDetailUioToJSONTyped;
22
+ const ExecutionNodeAgentUio_1 = require("./ExecutionNodeAgentUio");
23
+ const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
24
+ const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
25
+ const NodeSessionUio_1 = require("./NodeSessionUio");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.ExecutionNodeDetailUioOsEnum = {
30
+ Macos: 'macos',
31
+ Windows: 'windows',
32
+ Linux: 'linux'
33
+ };
34
+ /**
35
+ * Check if a given object implements the ExecutionNodeDetailUio interface.
36
+ */
37
+ function instanceOfExecutionNodeDetailUio(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('name' in value) || value['name'] === undefined)
41
+ return false;
42
+ if (!('os' in value) || value['os'] === undefined)
43
+ return false;
44
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
45
+ return false;
46
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
47
+ return false;
48
+ if (!('workspaces' in value) || value['workspaces'] === undefined)
49
+ return false;
50
+ if (!('connected' in value) || value['connected'] === undefined)
51
+ return false;
52
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
53
+ return false;
54
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined)
55
+ return false;
56
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
57
+ return false;
58
+ if (!('agents' in value) || value['agents'] === undefined)
59
+ return false;
60
+ if (!('sessions' in value) || value['sessions'] === undefined)
61
+ return false;
62
+ return true;
63
+ }
64
+ function ExecutionNodeDetailUioFromJSON(json) {
65
+ return ExecutionNodeDetailUioFromJSONTyped(json, false);
66
+ }
67
+ function ExecutionNodeDetailUioFromJSONTyped(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
+ 'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
77
+ 'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
78
+ 'connected': json['connected'],
79
+ 'lastSeenAt': json['lastSeenAt'],
80
+ 'revokedAt': json['revokedAt'],
81
+ 'createdAt': json['createdAt'],
82
+ 'agents': (json['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioFromJSON)),
83
+ 'sessions': (json['sessions'].map(NodeSessionUio_1.NodeSessionUioFromJSON)),
84
+ };
85
+ }
86
+ function ExecutionNodeDetailUioToJSON(json) {
87
+ return ExecutionNodeDetailUioToJSONTyped(json, false);
88
+ }
89
+ function ExecutionNodeDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+ 'id': value['id'],
95
+ 'name': value['name'],
96
+ 'os': value['os'],
97
+ 'appVersion': value['appVersion'],
98
+ 'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
99
+ 'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
100
+ 'connected': value['connected'],
101
+ 'lastSeenAt': value['lastSeenAt'],
102
+ 'revokedAt': value['revokedAt'],
103
+ 'createdAt': value['createdAt'],
104
+ 'agents': (value['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioToJSON)),
105
+ 'sessions': (value['sessions'].map(NodeSessionUio_1.NodeSessionUioToJSON)),
106
+ };
107
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExecutionNodeRuntimeUio
16
+ */
17
+ export interface ExecutionNodeRuntimeUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExecutionNodeRuntimeUio
22
+ */
23
+ id: ExecutionNodeRuntimeUioIdEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExecutionNodeRuntimeUio
28
+ */
29
+ version?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ExecutionNodeRuntimeUioIdEnum: {
35
+ readonly Claude: "claude";
36
+ readonly Opencode: "opencode";
37
+ };
38
+ export type ExecutionNodeRuntimeUioIdEnum = typeof ExecutionNodeRuntimeUioIdEnum[keyof typeof ExecutionNodeRuntimeUioIdEnum];
39
+ /**
40
+ * Check if a given object implements the ExecutionNodeRuntimeUio interface.
41
+ */
42
+ export declare function instanceOfExecutionNodeRuntimeUio(value: object): value is ExecutionNodeRuntimeUio;
43
+ export declare function ExecutionNodeRuntimeUioFromJSON(json: any): ExecutionNodeRuntimeUio;
44
+ export declare function ExecutionNodeRuntimeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeRuntimeUio;
45
+ export declare function ExecutionNodeRuntimeUioToJSON(json: any): ExecutionNodeRuntimeUio;
46
+ export declare function ExecutionNodeRuntimeUioToJSONTyped(value?: ExecutionNodeRuntimeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ExecutionNodeRuntimeUioIdEnum = void 0;
17
+ exports.instanceOfExecutionNodeRuntimeUio = instanceOfExecutionNodeRuntimeUio;
18
+ exports.ExecutionNodeRuntimeUioFromJSON = ExecutionNodeRuntimeUioFromJSON;
19
+ exports.ExecutionNodeRuntimeUioFromJSONTyped = ExecutionNodeRuntimeUioFromJSONTyped;
20
+ exports.ExecutionNodeRuntimeUioToJSON = ExecutionNodeRuntimeUioToJSON;
21
+ exports.ExecutionNodeRuntimeUioToJSONTyped = ExecutionNodeRuntimeUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ExecutionNodeRuntimeUioIdEnum = {
26
+ Claude: 'claude',
27
+ Opencode: 'opencode'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ExecutionNodeRuntimeUio interface.
31
+ */
32
+ function instanceOfExecutionNodeRuntimeUio(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ExecutionNodeRuntimeUioFromJSON(json) {
38
+ return ExecutionNodeRuntimeUioFromJSONTyped(json, false);
39
+ }
40
+ function ExecutionNodeRuntimeUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'version': json['version'] == null ? undefined : json['version'],
47
+ };
48
+ }
49
+ function ExecutionNodeRuntimeUioToJSON(json) {
50
+ return ExecutionNodeRuntimeUioToJSONTyped(json, false);
51
+ }
52
+ function ExecutionNodeRuntimeUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'version': value['version'],
59
+ };
60
+ }
@@ -0,0 +1,104 @@
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 { ExecutionNodeAgentUio } from './ExecutionNodeAgentUio';
13
+ import type { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
14
+ import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ExecutionNodeUio
19
+ */
20
+ export interface ExecutionNodeUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ExecutionNodeUio
25
+ */
26
+ id: string;
27
+ /**
28
+ * Nom du poste
29
+ * @type {string}
30
+ * @memberof ExecutionNodeUio
31
+ */
32
+ name: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof ExecutionNodeUio
37
+ */
38
+ os: ExecutionNodeUioOsEnum;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ExecutionNodeUio
43
+ */
44
+ appVersion: string;
45
+ /**
46
+ *
47
+ * @type {Array<ExecutionNodeRuntimeUio>}
48
+ * @memberof ExecutionNodeUio
49
+ */
50
+ runtimes: Array<ExecutionNodeRuntimeUio>;
51
+ /**
52
+ *
53
+ * @type {Array<ExecutionNodeWorkspaceUio>}
54
+ * @memberof ExecutionNodeUio
55
+ */
56
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof ExecutionNodeUio
61
+ */
62
+ connected: boolean;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof ExecutionNodeUio
67
+ */
68
+ lastSeenAt: string | null;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof ExecutionNodeUio
73
+ */
74
+ revokedAt: string | null;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof ExecutionNodeUio
79
+ */
80
+ createdAt: string;
81
+ /**
82
+ *
83
+ * @type {Array<ExecutionNodeAgentUio>}
84
+ * @memberof ExecutionNodeUio
85
+ */
86
+ agents?: Array<ExecutionNodeAgentUio>;
87
+ }
88
+ /**
89
+ * @export
90
+ */
91
+ export declare const ExecutionNodeUioOsEnum: {
92
+ readonly Macos: "macos";
93
+ readonly Windows: "windows";
94
+ readonly Linux: "linux";
95
+ };
96
+ export type ExecutionNodeUioOsEnum = typeof ExecutionNodeUioOsEnum[keyof typeof ExecutionNodeUioOsEnum];
97
+ /**
98
+ * Check if a given object implements the ExecutionNodeUio interface.
99
+ */
100
+ export declare function instanceOfExecutionNodeUio(value: object): value is ExecutionNodeUio;
101
+ export declare function ExecutionNodeUioFromJSON(json: any): ExecutionNodeUio;
102
+ export declare function ExecutionNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeUio;
103
+ export declare function ExecutionNodeUioToJSON(json: any): ExecutionNodeUio;
104
+ export declare function ExecutionNodeUioToJSONTyped(value?: ExecutionNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,100 @@
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.ExecutionNodeUioOsEnum = void 0;
17
+ exports.instanceOfExecutionNodeUio = instanceOfExecutionNodeUio;
18
+ exports.ExecutionNodeUioFromJSON = ExecutionNodeUioFromJSON;
19
+ exports.ExecutionNodeUioFromJSONTyped = ExecutionNodeUioFromJSONTyped;
20
+ exports.ExecutionNodeUioToJSON = ExecutionNodeUioToJSON;
21
+ exports.ExecutionNodeUioToJSONTyped = ExecutionNodeUioToJSONTyped;
22
+ const ExecutionNodeAgentUio_1 = require("./ExecutionNodeAgentUio");
23
+ const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
24
+ const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.ExecutionNodeUioOsEnum = {
29
+ Macos: 'macos',
30
+ Windows: 'windows',
31
+ Linux: 'linux'
32
+ };
33
+ /**
34
+ * Check if a given object implements the ExecutionNodeUio interface.
35
+ */
36
+ function instanceOfExecutionNodeUio(value) {
37
+ if (!('id' in value) || value['id'] === undefined)
38
+ return false;
39
+ if (!('name' in value) || value['name'] === undefined)
40
+ return false;
41
+ if (!('os' in value) || value['os'] === undefined)
42
+ return false;
43
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
44
+ return false;
45
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
46
+ return false;
47
+ if (!('workspaces' in value) || value['workspaces'] === undefined)
48
+ return false;
49
+ if (!('connected' in value) || value['connected'] === undefined)
50
+ return false;
51
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
52
+ return false;
53
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined)
54
+ return false;
55
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ function ExecutionNodeUioFromJSON(json) {
60
+ return ExecutionNodeUioFromJSONTyped(json, false);
61
+ }
62
+ function ExecutionNodeUioFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'id': json['id'],
68
+ 'name': json['name'],
69
+ 'os': json['os'],
70
+ 'appVersion': json['appVersion'],
71
+ 'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
72
+ 'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
73
+ 'connected': json['connected'],
74
+ 'lastSeenAt': json['lastSeenAt'],
75
+ 'revokedAt': json['revokedAt'],
76
+ 'createdAt': json['createdAt'],
77
+ 'agents': json['agents'] == null ? undefined : (json['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioFromJSON)),
78
+ };
79
+ }
80
+ function ExecutionNodeUioToJSON(json) {
81
+ return ExecutionNodeUioToJSONTyped(json, false);
82
+ }
83
+ function ExecutionNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ 'id': value['id'],
89
+ 'name': value['name'],
90
+ 'os': value['os'],
91
+ 'appVersion': value['appVersion'],
92
+ 'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
93
+ 'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
94
+ 'connected': value['connected'],
95
+ 'lastSeenAt': value['lastSeenAt'],
96
+ 'revokedAt': value['revokedAt'],
97
+ 'createdAt': value['createdAt'],
98
+ 'agents': value['agents'] == null ? undefined : (value['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioToJSON)),
99
+ };
100
+ }
@@ -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
+ * Un dossier autorisé sur le poste, par son alias. Son chemin ne quitte jamais le poste.
14
+ * @export
15
+ * @interface ExecutionNodeWorkspaceUio
16
+ */
17
+ export interface ExecutionNodeWorkspaceUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExecutionNodeWorkspaceUio
22
+ */
23
+ alias: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExecutionNodeWorkspaceUio
28
+ */
29
+ label: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ExecutionNodeWorkspaceUio interface.
33
+ */
34
+ export declare function instanceOfExecutionNodeWorkspaceUio(value: object): value is ExecutionNodeWorkspaceUio;
35
+ export declare function ExecutionNodeWorkspaceUioFromJSON(json: any): ExecutionNodeWorkspaceUio;
36
+ export declare function ExecutionNodeWorkspaceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeWorkspaceUio;
37
+ export declare function ExecutionNodeWorkspaceUioToJSON(json: any): ExecutionNodeWorkspaceUio;
38
+ export declare function ExecutionNodeWorkspaceUioToJSONTyped(value?: ExecutionNodeWorkspaceUio | 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.instanceOfExecutionNodeWorkspaceUio = instanceOfExecutionNodeWorkspaceUio;
17
+ exports.ExecutionNodeWorkspaceUioFromJSON = ExecutionNodeWorkspaceUioFromJSON;
18
+ exports.ExecutionNodeWorkspaceUioFromJSONTyped = ExecutionNodeWorkspaceUioFromJSONTyped;
19
+ exports.ExecutionNodeWorkspaceUioToJSON = ExecutionNodeWorkspaceUioToJSON;
20
+ exports.ExecutionNodeWorkspaceUioToJSONTyped = ExecutionNodeWorkspaceUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExecutionNodeWorkspaceUio interface.
23
+ */
24
+ function instanceOfExecutionNodeWorkspaceUio(value) {
25
+ if (!('alias' in value) || value['alias'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ExecutionNodeWorkspaceUioFromJSON(json) {
32
+ return ExecutionNodeWorkspaceUioFromJSONTyped(json, false);
33
+ }
34
+ function ExecutionNodeWorkspaceUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'alias': json['alias'],
40
+ 'label': json['label'],
41
+ };
42
+ }
43
+ function ExecutionNodeWorkspaceUioToJSON(json) {
44
+ return ExecutionNodeWorkspaceUioToJSONTyped(json, false);
45
+ }
46
+ function ExecutionNodeWorkspaceUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'alias': value['alias'],
52
+ 'label': value['label'],
53
+ };
54
+ }