@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,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
+ }
@@ -75,6 +75,30 @@ export interface ModelDefinitionUio {
75
75
  * @memberof ModelDefinitionUio
76
76
  */
77
77
  maxTokens?: number;
78
+ /**
79
+ * Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme.
80
+ * @type {number}
81
+ * @memberof ModelDefinitionUio
82
+ */
83
+ inputTokenPrice?: number;
84
+ /**
85
+ * Prix d'un million de tokens en sortie. Les tokens de raisonnement suivent ce tarif.
86
+ * @type {number}
87
+ * @memberof ModelDefinitionUio
88
+ */
89
+ outputTokenPrice?: number;
90
+ /**
91
+ * Devise ISO du prix au token, par exemple EUR ou USD.
92
+ * @type {string}
93
+ * @memberof ModelDefinitionUio
94
+ */
95
+ currency?: string;
96
+ /**
97
+ * Origine du prix au token. configuration = tarifs déjà enregistrés par Breign, catalog = catalogue public, manual = saisi à la main.
98
+ * @type {string}
99
+ * @memberof ModelDefinitionUio
100
+ */
101
+ priceSource?: ModelDefinitionUioPriceSourceEnum;
78
102
  /**
79
103
  *
80
104
  * @type {{ [key: string]: any; }}
@@ -84,6 +108,15 @@ export interface ModelDefinitionUio {
84
108
  [key: string]: any;
85
109
  };
86
110
  }
111
+ /**
112
+ * @export
113
+ */
114
+ export declare const ModelDefinitionUioPriceSourceEnum: {
115
+ readonly Configuration: "configuration";
116
+ readonly Catalog: "catalog";
117
+ readonly Manual: "manual";
118
+ };
119
+ export type ModelDefinitionUioPriceSourceEnum = typeof ModelDefinitionUioPriceSourceEnum[keyof typeof ModelDefinitionUioPriceSourceEnum];
87
120
  /**
88
121
  * Check if a given object implements the ModelDefinitionUio interface.
89
122
  */
@@ -13,11 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ModelDefinitionUioPriceSourceEnum = void 0;
16
17
  exports.instanceOfModelDefinitionUio = instanceOfModelDefinitionUio;
17
18
  exports.ModelDefinitionUioFromJSON = ModelDefinitionUioFromJSON;
18
19
  exports.ModelDefinitionUioFromJSONTyped = ModelDefinitionUioFromJSONTyped;
19
20
  exports.ModelDefinitionUioToJSON = ModelDefinitionUioToJSON;
20
21
  exports.ModelDefinitionUioToJSONTyped = ModelDefinitionUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ModelDefinitionUioPriceSourceEnum = {
26
+ Configuration: 'configuration',
27
+ Catalog: 'catalog',
28
+ Manual: 'manual'
29
+ };
21
30
  /**
22
31
  * Check if a given object implements the ModelDefinitionUio interface.
23
32
  */
@@ -46,6 +55,10 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
46
55
  'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
47
56
  'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
48
57
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
58
+ 'inputTokenPrice': json['inputTokenPrice'] == null ? undefined : json['inputTokenPrice'],
59
+ 'outputTokenPrice': json['outputTokenPrice'] == null ? undefined : json['outputTokenPrice'],
60
+ 'currency': json['currency'] == null ? undefined : json['currency'],
61
+ 'priceSource': json['priceSource'] == null ? undefined : json['priceSource'],
49
62
  'options': json['options'] == null ? undefined : json['options'],
50
63
  };
51
64
  }
@@ -67,6 +80,10 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
67
80
  'hasSpeechToText': value['hasSpeechToText'],
68
81
  'hasOcr': value['hasOcr'],
69
82
  'maxTokens': value['maxTokens'],
83
+ 'inputTokenPrice': value['inputTokenPrice'],
84
+ 'outputTokenPrice': value['outputTokenPrice'],
85
+ 'currency': value['currency'],
86
+ 'priceSource': value['priceSource'],
70
87
  'options': value['options'],
71
88
  };
72
89
  }
@@ -0,0 +1,133 @@
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 { NodeSessionMetricsUio } from './NodeSessionMetricsUio';
13
+ import type { NodeSessionStateUio } from './NodeSessionStateUio';
14
+ import type { NodeSessionProgressUio } from './NodeSessionProgressUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface NodeSessionDetailUio
19
+ */
20
+ export interface NodeSessionDetailUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof NodeSessionDetailUio
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof NodeSessionDetailUio
31
+ */
32
+ agentId: string;
33
+ /**
34
+ * Nom de l'agent, résolu par l'API ; null pour un agent supprimé.
35
+ * @type {string}
36
+ * @memberof NodeSessionDetailUio
37
+ */
38
+ agentName: string | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof NodeSessionDetailUio
43
+ */
44
+ conversationId: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof NodeSessionDetailUio
49
+ */
50
+ responseMessageId?: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof NodeSessionDetailUio
55
+ */
56
+ runtime: NodeSessionDetailUioRuntimeEnum;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof NodeSessionDetailUio
61
+ */
62
+ workspaceAlias: string;
63
+ /**
64
+ *
65
+ * @type {NodeSessionStateUio}
66
+ * @memberof NodeSessionDetailUio
67
+ */
68
+ state: NodeSessionStateUio;
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…
71
+ * @type {string}
72
+ * @memberof NodeSessionDetailUio
73
+ */
74
+ reason: string | null;
75
+ /**
76
+ *
77
+ * @type {NodeSessionMetricsUio}
78
+ * @memberof NodeSessionDetailUio
79
+ */
80
+ metrics: NodeSessionMetricsUio | null;
81
+ /**
82
+ *
83
+ * @type {NodeSessionProgressUio}
84
+ * @memberof NodeSessionDetailUio
85
+ */
86
+ progress: NodeSessionProgressUio | null;
87
+ /**
88
+ *
89
+ * @type {boolean}
90
+ * @memberof NodeSessionDetailUio
91
+ */
92
+ autoResumed?: boolean;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof NodeSessionDetailUio
97
+ */
98
+ lastFrameAt?: string | null;
99
+ /**
100
+ *
101
+ * @type {string}
102
+ * @memberof NodeSessionDetailUio
103
+ */
104
+ createdAt: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof NodeSessionDetailUio
109
+ */
110
+ updatedAt: string;
111
+ /**
112
+ * La réponse de la CLI, quand le tour en a une.
113
+ * @type {string}
114
+ * @memberof NodeSessionDetailUio
115
+ */
116
+ resultText?: string | null;
117
+ }
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const NodeSessionDetailUioRuntimeEnum: {
122
+ readonly Claude: "claude";
123
+ readonly Opencode: "opencode";
124
+ };
125
+ export type NodeSessionDetailUioRuntimeEnum = typeof NodeSessionDetailUioRuntimeEnum[keyof typeof NodeSessionDetailUioRuntimeEnum];
126
+ /**
127
+ * Check if a given object implements the NodeSessionDetailUio interface.
128
+ */
129
+ export declare function instanceOfNodeSessionDetailUio(value: object): value is NodeSessionDetailUio;
130
+ export declare function NodeSessionDetailUioFromJSON(json: any): NodeSessionDetailUio;
131
+ export declare function NodeSessionDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeSessionDetailUio;
132
+ export declare function NodeSessionDetailUioToJSON(json: any): NodeSessionDetailUio;
133
+ export declare function NodeSessionDetailUioToJSONTyped(value?: NodeSessionDetailUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,113 @@
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.NodeSessionDetailUioRuntimeEnum = void 0;
17
+ exports.instanceOfNodeSessionDetailUio = instanceOfNodeSessionDetailUio;
18
+ exports.NodeSessionDetailUioFromJSON = NodeSessionDetailUioFromJSON;
19
+ exports.NodeSessionDetailUioFromJSONTyped = NodeSessionDetailUioFromJSONTyped;
20
+ exports.NodeSessionDetailUioToJSON = NodeSessionDetailUioToJSON;
21
+ exports.NodeSessionDetailUioToJSONTyped = NodeSessionDetailUioToJSONTyped;
22
+ const NodeSessionMetricsUio_1 = require("./NodeSessionMetricsUio");
23
+ const NodeSessionStateUio_1 = require("./NodeSessionStateUio");
24
+ const NodeSessionProgressUio_1 = require("./NodeSessionProgressUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.NodeSessionDetailUioRuntimeEnum = {
29
+ Claude: 'claude',
30
+ Opencode: 'opencode'
31
+ };
32
+ /**
33
+ * Check if a given object implements the NodeSessionDetailUio interface.
34
+ */
35
+ function instanceOfNodeSessionDetailUio(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('agentId' in value) || value['agentId'] === undefined)
39
+ return false;
40
+ if (!('agentName' in value) || value['agentName'] === undefined)
41
+ return false;
42
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
43
+ return false;
44
+ if (!('runtime' in value) || value['runtime'] === undefined)
45
+ return false;
46
+ if (!('workspaceAlias' in value) || value['workspaceAlias'] === undefined)
47
+ return false;
48
+ if (!('state' in value) || value['state'] === undefined)
49
+ return false;
50
+ if (!('reason' in value) || value['reason'] === undefined)
51
+ return false;
52
+ if (!('metrics' in value) || value['metrics'] === undefined)
53
+ return false;
54
+ if (!('progress' in value) || value['progress'] === undefined)
55
+ return false;
56
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
57
+ return false;
58
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
59
+ return false;
60
+ return true;
61
+ }
62
+ function NodeSessionDetailUioFromJSON(json) {
63
+ return NodeSessionDetailUioFromJSONTyped(json, false);
64
+ }
65
+ function NodeSessionDetailUioFromJSONTyped(json, ignoreDiscriminator) {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+ 'id': json['id'],
71
+ 'agentId': json['agentId'],
72
+ 'agentName': json['agentName'],
73
+ 'conversationId': json['conversationId'],
74
+ 'responseMessageId': json['responseMessageId'] == null ? undefined : json['responseMessageId'],
75
+ 'runtime': json['runtime'],
76
+ 'workspaceAlias': json['workspaceAlias'],
77
+ 'state': (0, NodeSessionStateUio_1.NodeSessionStateUioFromJSON)(json['state']),
78
+ 'reason': json['reason'],
79
+ 'metrics': (0, NodeSessionMetricsUio_1.NodeSessionMetricsUioFromJSON)(json['metrics']),
80
+ 'progress': (0, NodeSessionProgressUio_1.NodeSessionProgressUioFromJSON)(json['progress']),
81
+ 'autoResumed': json['autoResumed'] == null ? undefined : json['autoResumed'],
82
+ 'lastFrameAt': json['lastFrameAt'] == null ? undefined : json['lastFrameAt'],
83
+ 'createdAt': json['createdAt'],
84
+ 'updatedAt': json['updatedAt'],
85
+ 'resultText': json['resultText'] == null ? undefined : json['resultText'],
86
+ };
87
+ }
88
+ function NodeSessionDetailUioToJSON(json) {
89
+ return NodeSessionDetailUioToJSONTyped(json, false);
90
+ }
91
+ function NodeSessionDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'id': value['id'],
97
+ 'agentId': value['agentId'],
98
+ 'agentName': value['agentName'],
99
+ 'conversationId': value['conversationId'],
100
+ 'responseMessageId': value['responseMessageId'],
101
+ 'runtime': value['runtime'],
102
+ 'workspaceAlias': value['workspaceAlias'],
103
+ 'state': (0, NodeSessionStateUio_1.NodeSessionStateUioToJSON)(value['state']),
104
+ 'reason': value['reason'],
105
+ 'metrics': (0, NodeSessionMetricsUio_1.NodeSessionMetricsUioToJSON)(value['metrics']),
106
+ 'progress': (0, NodeSessionProgressUio_1.NodeSessionProgressUioToJSON)(value['progress']),
107
+ 'autoResumed': value['autoResumed'],
108
+ 'lastFrameAt': value['lastFrameAt'],
109
+ 'createdAt': value['createdAt'],
110
+ 'updatedAt': value['updatedAt'],
111
+ 'resultText': value['resultText'],
112
+ };
113
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface NodeSessionLogEntryUio
16
+ */
17
+ export interface NodeSessionLogEntryUio {
18
+ /**
19
+ * Numéro de la trame qui portait la ligne
20
+ * @type {number}
21
+ * @memberof NodeSessionLogEntryUio
22
+ */
23
+ seq: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof NodeSessionLogEntryUio
28
+ */
29
+ stream: NodeSessionLogEntryUioStreamEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof NodeSessionLogEntryUio
34
+ */
35
+ line: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof NodeSessionLogEntryUio
40
+ */
41
+ at: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const NodeSessionLogEntryUioStreamEnum: {
47
+ readonly Stdout: "stdout";
48
+ readonly Stderr: "stderr";
49
+ };
50
+ export type NodeSessionLogEntryUioStreamEnum = typeof NodeSessionLogEntryUioStreamEnum[keyof typeof NodeSessionLogEntryUioStreamEnum];
51
+ /**
52
+ * Check if a given object implements the NodeSessionLogEntryUio interface.
53
+ */
54
+ export declare function instanceOfNodeSessionLogEntryUio(value: object): value is NodeSessionLogEntryUio;
55
+ export declare function NodeSessionLogEntryUioFromJSON(json: any): NodeSessionLogEntryUio;
56
+ export declare function NodeSessionLogEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeSessionLogEntryUio;
57
+ export declare function NodeSessionLogEntryUioToJSON(json: any): NodeSessionLogEntryUio;
58
+ export declare function NodeSessionLogEntryUioToJSONTyped(value?: NodeSessionLogEntryUio | null, ignoreDiscriminator?: boolean): any;