@breign/client 1.0.171 → 1.0.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/apis/AdminApi.d.ts +110 -1
  2. package/dist/apis/AdminApi.js +263 -0
  3. package/dist/apis/AiGatewayApi.d.ts +41 -5
  4. package/dist/apis/AiGatewayApi.js +80 -7
  5. package/dist/apis/ExecutionNodesApi.d.ts +165 -0
  6. package/dist/apis/ExecutionNodesApi.js +399 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AgentExecutionNodeChoiceUio.d.ts +58 -0
  10. package/dist/models/AgentExecutionNodeChoiceUio.js +68 -0
  11. package/dist/models/AgentExecutionNodeUio.d.ts +50 -0
  12. package/dist/models/AgentExecutionNodeUio.js +62 -0
  13. package/dist/models/AgentExecutionUio.d.ts +80 -0
  14. package/dist/models/AgentExecutionUio.js +79 -0
  15. package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
  16. package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
  17. package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
  18. package/dist/models/AiGatewayUsageCostUio.js +62 -0
  19. package/dist/models/AiGatewayUsageUio.d.ts +7 -0
  20. package/dist/models/AiGatewayUsageUio.js +3 -0
  21. package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
  22. package/dist/models/AllowPlatformEnginesUio.js +50 -0
  23. package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
  24. package/dist/models/DefaultEngineRequestUio.js +2 -0
  25. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
  26. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
  27. package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
  28. package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
  29. package/dist/models/ExecutionNodeAgentUio.d.ts +82 -0
  30. package/dist/models/ExecutionNodeAgentUio.js +86 -0
  31. package/dist/models/ExecutionNodeDetailUio.d.ts +111 -0
  32. package/dist/models/ExecutionNodeDetailUio.js +107 -0
  33. package/dist/models/ExecutionNodeRuntimeUio.d.ts +46 -0
  34. package/dist/models/ExecutionNodeRuntimeUio.js +60 -0
  35. package/dist/models/ExecutionNodeUio.d.ts +104 -0
  36. package/dist/models/ExecutionNodeUio.js +100 -0
  37. package/dist/models/ExecutionNodeWorkspaceUio.d.ts +38 -0
  38. package/dist/models/ExecutionNodeWorkspaceUio.js +54 -0
  39. package/dist/models/ModelDefinitionUio.d.ts +33 -0
  40. package/dist/models/ModelDefinitionUio.js +17 -0
  41. package/dist/models/NodeSessionDetailUio.d.ts +133 -0
  42. package/dist/models/NodeSessionDetailUio.js +113 -0
  43. package/dist/models/NodeSessionLogEntryUio.d.ts +58 -0
  44. package/dist/models/NodeSessionLogEntryUio.js +70 -0
  45. package/dist/models/NodeSessionLogsUio.d.ts +51 -0
  46. package/dist/models/NodeSessionLogsUio.js +63 -0
  47. package/dist/models/NodeSessionMetricsUio.d.ts +74 -0
  48. package/dist/models/NodeSessionMetricsUio.js +62 -0
  49. package/dist/models/NodeSessionProgressUio.d.ts +44 -0
  50. package/dist/models/NodeSessionProgressUio.js +54 -0
  51. package/dist/models/NodeSessionStateUio.d.ts +29 -0
  52. package/dist/models/NodeSessionStateUio.js +55 -0
  53. package/dist/models/NodeSessionUio.d.ts +127 -0
  54. package/dist/models/NodeSessionUio.js +111 -0
  55. package/dist/models/NodeTurnCancelResultUio.d.ts +32 -0
  56. package/dist/models/NodeTurnCancelResultUio.js +50 -0
  57. package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
  58. package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
  59. package/dist/models/OrganizationUio.d.ts +6 -0
  60. package/dist/models/OrganizationUio.js +2 -0
  61. package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
  62. package/dist/models/PlatformEngineUsageUio.js +58 -0
  63. package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
  64. package/dist/models/ProviderCreateRequestUio.js +4 -0
  65. package/dist/models/ProviderUio.d.ts +12 -0
  66. package/dist/models/ProviderUio.js +4 -0
  67. package/dist/models/SetAgentExecutionRequestUio.d.ts +72 -0
  68. package/dist/models/SetAgentExecutionRequestUio.js +73 -0
  69. package/dist/models/index.d.ts +24 -0
  70. package/dist/models/index.js +24 -0
  71. package/dist/openapi.json +3235 -1739
  72. package/package.json +1 -1
@@ -0,0 +1,45 @@
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 { DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio } from './DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeletePlatformEngineResponseUio
17
+ */
18
+ export interface DeletePlatformEngineResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DeletePlatformEngineResponseUio
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof DeletePlatformEngineResponseUio
29
+ */
30
+ agentsEngineUnsetCount: number;
31
+ /**
32
+ *
33
+ * @type {Array<DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio>}
34
+ * @memberof DeletePlatformEngineResponseUio
35
+ */
36
+ knowledgeBasesAffected: Array<DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the DeletePlatformEngineResponseUio interface.
40
+ */
41
+ export declare function instanceOfDeletePlatformEngineResponseUio(value: object): value is DeletePlatformEngineResponseUio;
42
+ export declare function DeletePlatformEngineResponseUioFromJSON(json: any): DeletePlatformEngineResponseUio;
43
+ export declare function DeletePlatformEngineResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePlatformEngineResponseUio;
44
+ export declare function DeletePlatformEngineResponseUioToJSON(json: any): DeletePlatformEngineResponseUio;
45
+ export declare function DeletePlatformEngineResponseUioToJSONTyped(value?: DeletePlatformEngineResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfDeletePlatformEngineResponseUio = instanceOfDeletePlatformEngineResponseUio;
17
+ exports.DeletePlatformEngineResponseUioFromJSON = DeletePlatformEngineResponseUioFromJSON;
18
+ exports.DeletePlatformEngineResponseUioFromJSONTyped = DeletePlatformEngineResponseUioFromJSONTyped;
19
+ exports.DeletePlatformEngineResponseUioToJSON = DeletePlatformEngineResponseUioToJSON;
20
+ exports.DeletePlatformEngineResponseUioToJSONTyped = DeletePlatformEngineResponseUioToJSONTyped;
21
+ const DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1 = require("./DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio");
22
+ /**
23
+ * Check if a given object implements the DeletePlatformEngineResponseUio interface.
24
+ */
25
+ function instanceOfDeletePlatformEngineResponseUio(value) {
26
+ if (!('message' in value) || value['message'] === undefined)
27
+ return false;
28
+ if (!('agentsEngineUnsetCount' in value) || value['agentsEngineUnsetCount'] === undefined)
29
+ return false;
30
+ if (!('knowledgeBasesAffected' in value) || value['knowledgeBasesAffected'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function DeletePlatformEngineResponseUioFromJSON(json) {
35
+ return DeletePlatformEngineResponseUioFromJSONTyped(json, false);
36
+ }
37
+ function DeletePlatformEngineResponseUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'message': json['message'],
43
+ 'agentsEngineUnsetCount': json['agentsEngineUnsetCount'],
44
+ 'knowledgeBasesAffected': (json['knowledgeBasesAffected'].map(DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON)),
45
+ };
46
+ }
47
+ function DeletePlatformEngineResponseUioToJSON(json) {
48
+ return DeletePlatformEngineResponseUioToJSONTyped(json, false);
49
+ }
50
+ function DeletePlatformEngineResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'message': value['message'],
56
+ 'agentsEngineUnsetCount': value['agentsEngineUnsetCount'],
57
+ 'knowledgeBasesAffected': (value['knowledgeBasesAffected'].map(DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON)),
58
+ };
59
+ }
@@ -0,0 +1,82 @@
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 agent rattaché au nœud, avec le runtime et le dossier où il tourne.
14
+ * @export
15
+ * @interface ExecutionNodeAgentUio
16
+ */
17
+ export interface ExecutionNodeAgentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExecutionNodeAgentUio
22
+ */
23
+ agentId: string;
24
+ /**
25
+ * Nom de l'agent, résolu par l'API : un nœud fait tourner des agents de plusieurs organisations. Null pour un agent supprimé.
26
+ * @type {string}
27
+ * @memberof ExecutionNodeAgentUio
28
+ */
29
+ agentName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExecutionNodeAgentUio
34
+ */
35
+ organizationId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ExecutionNodeAgentUio
40
+ */
41
+ runtime: ExecutionNodeAgentUioRuntimeEnum;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ExecutionNodeAgentUio
46
+ */
47
+ workspaceAlias: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ExecutionNodeAgentUio
52
+ */
53
+ autoResume: boolean;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ExecutionNodeAgentUio
58
+ */
59
+ createdAt: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof ExecutionNodeAgentUio
64
+ */
65
+ updatedAt: string;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const ExecutionNodeAgentUioRuntimeEnum: {
71
+ readonly Claude: "claude";
72
+ readonly Opencode: "opencode";
73
+ };
74
+ export type ExecutionNodeAgentUioRuntimeEnum = typeof ExecutionNodeAgentUioRuntimeEnum[keyof typeof ExecutionNodeAgentUioRuntimeEnum];
75
+ /**
76
+ * Check if a given object implements the ExecutionNodeAgentUio interface.
77
+ */
78
+ export declare function instanceOfExecutionNodeAgentUio(value: object): value is ExecutionNodeAgentUio;
79
+ export declare function ExecutionNodeAgentUioFromJSON(json: any): ExecutionNodeAgentUio;
80
+ export declare function ExecutionNodeAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeAgentUio;
81
+ export declare function ExecutionNodeAgentUioToJSON(json: any): ExecutionNodeAgentUio;
82
+ export declare function ExecutionNodeAgentUioToJSONTyped(value?: ExecutionNodeAgentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
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.ExecutionNodeAgentUioRuntimeEnum = void 0;
17
+ exports.instanceOfExecutionNodeAgentUio = instanceOfExecutionNodeAgentUio;
18
+ exports.ExecutionNodeAgentUioFromJSON = ExecutionNodeAgentUioFromJSON;
19
+ exports.ExecutionNodeAgentUioFromJSONTyped = ExecutionNodeAgentUioFromJSONTyped;
20
+ exports.ExecutionNodeAgentUioToJSON = ExecutionNodeAgentUioToJSON;
21
+ exports.ExecutionNodeAgentUioToJSONTyped = ExecutionNodeAgentUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ExecutionNodeAgentUioRuntimeEnum = {
26
+ Claude: 'claude',
27
+ Opencode: 'opencode'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ExecutionNodeAgentUio interface.
31
+ */
32
+ function instanceOfExecutionNodeAgentUio(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 (!('organizationId' in value) || value['organizationId'] === undefined)
38
+ return false;
39
+ if (!('runtime' in value) || value['runtime'] === undefined)
40
+ return false;
41
+ if (!('workspaceAlias' in value) || value['workspaceAlias'] === undefined)
42
+ return false;
43
+ if (!('autoResume' in value) || value['autoResume'] === undefined)
44
+ return false;
45
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
46
+ return false;
47
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function ExecutionNodeAgentUioFromJSON(json) {
52
+ return ExecutionNodeAgentUioFromJSONTyped(json, false);
53
+ }
54
+ function ExecutionNodeAgentUioFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'agentId': json['agentId'],
60
+ 'agentName': json['agentName'],
61
+ 'organizationId': json['organizationId'],
62
+ 'runtime': json['runtime'],
63
+ 'workspaceAlias': json['workspaceAlias'],
64
+ 'autoResume': json['autoResume'],
65
+ 'createdAt': json['createdAt'],
66
+ 'updatedAt': json['updatedAt'],
67
+ };
68
+ }
69
+ function ExecutionNodeAgentUioToJSON(json) {
70
+ return ExecutionNodeAgentUioToJSONTyped(json, false);
71
+ }
72
+ function ExecutionNodeAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'agentId': value['agentId'],
78
+ 'agentName': value['agentName'],
79
+ 'organizationId': value['organizationId'],
80
+ 'runtime': value['runtime'],
81
+ 'workspaceAlias': value['workspaceAlias'],
82
+ 'autoResume': value['autoResume'],
83
+ 'createdAt': value['createdAt'],
84
+ 'updatedAt': value['updatedAt'],
85
+ };
86
+ }
@@ -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
+ }