@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.
- package/dist/apis/ExecutionNodesApi.d.ts +165 -0
- package/dist/apis/ExecutionNodesApi.js +399 -0
- package/dist/apis/TicketsApi.d.ts +31 -1
- package/dist/apis/TicketsApi.js +74 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentExecutionNodeChoiceUio.d.ts +58 -0
- package/dist/models/AgentExecutionNodeChoiceUio.js +68 -0
- package/dist/models/AgentExecutionNodeUio.d.ts +50 -0
- package/dist/models/AgentExecutionNodeUio.js +62 -0
- package/dist/models/AgentExecutionUio.d.ts +80 -0
- package/dist/models/AgentExecutionUio.js +79 -0
- package/dist/models/ExecutionNodeAgentUio.d.ts +82 -0
- package/dist/models/ExecutionNodeAgentUio.js +86 -0
- package/dist/models/ExecutionNodeDetailUio.d.ts +111 -0
- package/dist/models/ExecutionNodeDetailUio.js +107 -0
- package/dist/models/ExecutionNodeRuntimeUio.d.ts +46 -0
- package/dist/models/ExecutionNodeRuntimeUio.js +60 -0
- package/dist/models/ExecutionNodeUio.d.ts +104 -0
- package/dist/models/ExecutionNodeUio.js +100 -0
- package/dist/models/ExecutionNodeWorkspaceUio.d.ts +38 -0
- package/dist/models/ExecutionNodeWorkspaceUio.js +54 -0
- package/dist/models/NodeSessionDetailUio.d.ts +133 -0
- package/dist/models/NodeSessionDetailUio.js +113 -0
- package/dist/models/NodeSessionLogEntryUio.d.ts +58 -0
- package/dist/models/NodeSessionLogEntryUio.js +70 -0
- package/dist/models/NodeSessionLogsUio.d.ts +51 -0
- package/dist/models/NodeSessionLogsUio.js +63 -0
- package/dist/models/NodeSessionMetricsUio.d.ts +74 -0
- package/dist/models/NodeSessionMetricsUio.js +62 -0
- package/dist/models/NodeSessionProgressUio.d.ts +44 -0
- package/dist/models/NodeSessionProgressUio.js +54 -0
- package/dist/models/NodeSessionStateUio.d.ts +29 -0
- package/dist/models/NodeSessionStateUio.js +55 -0
- package/dist/models/NodeSessionUio.d.ts +127 -0
- package/dist/models/NodeSessionUio.js +111 -0
- package/dist/models/NodeTurnCancelResultUio.d.ts +32 -0
- package/dist/models/NodeTurnCancelResultUio.js +50 -0
- package/dist/models/SaveTicketArtifactVersionRequestUio.d.ts +32 -0
- package/dist/models/SaveTicketArtifactVersionRequestUio.js +50 -0
- package/dist/models/SetAgentExecutionRequestUio.d.ts +72 -0
- package/dist/models/SetAgentExecutionRequestUio.js +73 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/openapi.json +3053 -2001
- package/package.json +1 -1
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -676,6 +676,43 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
676
676
|
const response = await this.reviewTicketRaw({ ticketId: ticketId, ticketReviewRequestUio: ticketReviewRequestUio }, initOverrides);
|
|
677
677
|
return await response.value();
|
|
678
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
681
|
+
* Save an edited text artifact as its next version
|
|
682
|
+
*/
|
|
683
|
+
async saveTicketArtifactVersionRaw(requestParameters, initOverrides) {
|
|
684
|
+
if (requestParameters['ticketId'] == null) {
|
|
685
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling saveTicketArtifactVersion().');
|
|
686
|
+
}
|
|
687
|
+
if (requestParameters['artifactId'] == null) {
|
|
688
|
+
throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling saveTicketArtifactVersion().');
|
|
689
|
+
}
|
|
690
|
+
if (requestParameters['saveTicketArtifactVersionRequestUio'] == null) {
|
|
691
|
+
throw new runtime.RequiredError('saveTicketArtifactVersionRequestUio', 'Required parameter "saveTicketArtifactVersionRequestUio" was null or undefined when calling saveTicketArtifactVersion().');
|
|
692
|
+
}
|
|
693
|
+
const queryParameters = {};
|
|
694
|
+
const headerParameters = {};
|
|
695
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
696
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
697
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
698
|
+
}
|
|
699
|
+
const response = await this.request({
|
|
700
|
+
path: `/tickets/{ticketId}/artifacts/{artifactId}/versions`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
|
|
701
|
+
method: 'POST',
|
|
702
|
+
headers: headerParameters,
|
|
703
|
+
query: queryParameters,
|
|
704
|
+
body: (0, index_1.SaveTicketArtifactVersionRequestUioToJSON)(requestParameters['saveTicketArtifactVersionRequestUio']),
|
|
705
|
+
}, initOverrides);
|
|
706
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactUioFromJSON)(jsonValue));
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Enregistre le texte modifié d\'un artefact comme sa version suivante (prd-x-v3.md après prd-x-v2.md) ; l\'original ne change pas. Réservé aux artefacts texte, 1 Mo au plus.
|
|
710
|
+
* Save an edited text artifact as its next version
|
|
711
|
+
*/
|
|
712
|
+
async saveTicketArtifactVersion(ticketId, artifactId, saveTicketArtifactVersionRequestUio, initOverrides) {
|
|
713
|
+
const response = await this.saveTicketArtifactVersionRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
|
|
714
|
+
return await response.value();
|
|
715
|
+
}
|
|
679
716
|
/**
|
|
680
717
|
* Remplace les assignés. Les nouveaux agents démarrent selon startMode (réglage du projet par défaut) ; en hold, un feu vert est demandé.
|
|
681
718
|
* Replace the assignees of a ticket
|
|
@@ -744,5 +781,42 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
744
781
|
const response = await this.updateTicketRaw({ ticketId: ticketId, updateTicketRequestUio: updateTicketRequestUio }, initOverrides);
|
|
745
782
|
return await response.value();
|
|
746
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
786
|
+
* Replace the text of an artifact in place
|
|
787
|
+
*/
|
|
788
|
+
async updateTicketArtifactContentRaw(requestParameters, initOverrides) {
|
|
789
|
+
if (requestParameters['ticketId'] == null) {
|
|
790
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling updateTicketArtifactContent().');
|
|
791
|
+
}
|
|
792
|
+
if (requestParameters['artifactId'] == null) {
|
|
793
|
+
throw new runtime.RequiredError('artifactId', 'Required parameter "artifactId" was null or undefined when calling updateTicketArtifactContent().');
|
|
794
|
+
}
|
|
795
|
+
if (requestParameters['saveTicketArtifactVersionRequestUio'] == null) {
|
|
796
|
+
throw new runtime.RequiredError('saveTicketArtifactVersionRequestUio', 'Required parameter "saveTicketArtifactVersionRequestUio" was null or undefined when calling updateTicketArtifactContent().');
|
|
797
|
+
}
|
|
798
|
+
const queryParameters = {};
|
|
799
|
+
const headerParameters = {};
|
|
800
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
803
|
+
}
|
|
804
|
+
const response = await this.request({
|
|
805
|
+
path: `/tickets/{ticketId}/artifacts/{artifactId}/content`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"artifactId"}}`, encodeURIComponent(String(requestParameters['artifactId']))),
|
|
806
|
+
method: 'PUT',
|
|
807
|
+
headers: headerParameters,
|
|
808
|
+
query: queryParameters,
|
|
809
|
+
body: (0, index_1.SaveTicketArtifactVersionRequestUioToJSON)(requestParameters['saveTicketArtifactVersionRequestUio']),
|
|
810
|
+
}, initOverrides);
|
|
811
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketArtifactUioFromJSON)(jsonValue));
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Un humain corrige un artefact texte sur place : même nom, même version, fichier remplacé. L\'historique du ticket enregistre un événement artifact_updated. Réservé aux humains et aux artefacts texte, 1 Mo au plus.
|
|
815
|
+
* Replace the text of an artifact in place
|
|
816
|
+
*/
|
|
817
|
+
async updateTicketArtifactContent(ticketId, artifactId, saveTicketArtifactVersionRequestUio, initOverrides) {
|
|
818
|
+
const response = await this.updateTicketArtifactContentRaw({ ticketId: ticketId, artifactId: artifactId, saveTicketArtifactVersionRequestUio: saveTicketArtifactVersionRequestUio }, initOverrides);
|
|
819
|
+
return await response.value();
|
|
820
|
+
}
|
|
747
821
|
}
|
|
748
822
|
exports.TicketsApi = TicketsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ContentsApi';
|
|
|
9
9
|
export * from './ConversationsApi';
|
|
10
10
|
export * from './EngineApi';
|
|
11
11
|
export * from './EnginesApi';
|
|
12
|
+
export * from './ExecutionNodesApi';
|
|
12
13
|
export * from './FilesApi';
|
|
13
14
|
export * from './GeneralApi';
|
|
14
15
|
export * from './GuardiansApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./ContentsApi"), exports);
|
|
|
27
27
|
__exportStar(require("./ConversationsApi"), exports);
|
|
28
28
|
__exportStar(require("./EngineApi"), exports);
|
|
29
29
|
__exportStar(require("./EnginesApi"), exports);
|
|
30
|
+
__exportStar(require("./ExecutionNodesApi"), exports);
|
|
30
31
|
__exportStar(require("./FilesApi"), exports);
|
|
31
32
|
__exportStar(require("./GeneralApi"), exports);
|
|
32
33
|
__exportStar(require("./GuardiansApi"), exports);
|
|
@@ -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
|
+
import type { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
|
|
13
|
+
import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
|
|
14
|
+
/**
|
|
15
|
+
* Un nœud de l'utilisateur, proposé dans la section Exécution de la fiche agent.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AgentExecutionNodeChoiceUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AgentExecutionNodeChoiceUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
36
|
+
*/
|
|
37
|
+
connected: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<ExecutionNodeRuntimeUio>}
|
|
41
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
42
|
+
*/
|
|
43
|
+
runtimes: Array<ExecutionNodeRuntimeUio>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<ExecutionNodeWorkspaceUio>}
|
|
47
|
+
* @memberof AgentExecutionNodeChoiceUio
|
|
48
|
+
*/
|
|
49
|
+
workspaces: Array<ExecutionNodeWorkspaceUio>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AgentExecutionNodeChoiceUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAgentExecutionNodeChoiceUio(value: object): value is AgentExecutionNodeChoiceUio;
|
|
55
|
+
export declare function AgentExecutionNodeChoiceUioFromJSON(json: any): AgentExecutionNodeChoiceUio;
|
|
56
|
+
export declare function AgentExecutionNodeChoiceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionNodeChoiceUio;
|
|
57
|
+
export declare function AgentExecutionNodeChoiceUioToJSON(json: any): AgentExecutionNodeChoiceUio;
|
|
58
|
+
export declare function AgentExecutionNodeChoiceUioToJSONTyped(value?: AgentExecutionNodeChoiceUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfAgentExecutionNodeChoiceUio = instanceOfAgentExecutionNodeChoiceUio;
|
|
17
|
+
exports.AgentExecutionNodeChoiceUioFromJSON = AgentExecutionNodeChoiceUioFromJSON;
|
|
18
|
+
exports.AgentExecutionNodeChoiceUioFromJSONTyped = AgentExecutionNodeChoiceUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionNodeChoiceUioToJSON = AgentExecutionNodeChoiceUioToJSON;
|
|
20
|
+
exports.AgentExecutionNodeChoiceUioToJSONTyped = AgentExecutionNodeChoiceUioToJSONTyped;
|
|
21
|
+
const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
|
|
22
|
+
const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AgentExecutionNodeChoiceUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAgentExecutionNodeChoiceUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('connected' in value) || value['connected'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('runtimes' in value) || value['runtimes'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('workspaces' in value) || value['workspaces'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AgentExecutionNodeChoiceUioFromJSON(json) {
|
|
40
|
+
return AgentExecutionNodeChoiceUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AgentExecutionNodeChoiceUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'connected': json['connected'],
|
|
50
|
+
'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
|
|
51
|
+
'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AgentExecutionNodeChoiceUioToJSON(json) {
|
|
55
|
+
return AgentExecutionNodeChoiceUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AgentExecutionNodeChoiceUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'connected': value['connected'],
|
|
65
|
+
'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
|
|
66
|
+
'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Présent en mode node
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentExecutionNodeUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentExecutionNodeUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentExecutionNodeUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentExecutionNodeUio
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AgentExecutionNodeUio
|
|
34
|
+
*/
|
|
35
|
+
connected: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentExecutionNodeUio
|
|
40
|
+
*/
|
|
41
|
+
ownedByMe: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AgentExecutionNodeUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAgentExecutionNodeUio(value: object): value is AgentExecutionNodeUio;
|
|
47
|
+
export declare function AgentExecutionNodeUioFromJSON(json: any): AgentExecutionNodeUio;
|
|
48
|
+
export declare function AgentExecutionNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionNodeUio;
|
|
49
|
+
export declare function AgentExecutionNodeUioToJSON(json: any): AgentExecutionNodeUio;
|
|
50
|
+
export declare function AgentExecutionNodeUioToJSONTyped(value?: AgentExecutionNodeUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAgentExecutionNodeUio = instanceOfAgentExecutionNodeUio;
|
|
17
|
+
exports.AgentExecutionNodeUioFromJSON = AgentExecutionNodeUioFromJSON;
|
|
18
|
+
exports.AgentExecutionNodeUioFromJSONTyped = AgentExecutionNodeUioFromJSONTyped;
|
|
19
|
+
exports.AgentExecutionNodeUioToJSON = AgentExecutionNodeUioToJSON;
|
|
20
|
+
exports.AgentExecutionNodeUioToJSONTyped = AgentExecutionNodeUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentExecutionNodeUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentExecutionNodeUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('connected' in value) || value['connected'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('ownedByMe' in value) || value['ownedByMe'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AgentExecutionNodeUioFromJSON(json) {
|
|
36
|
+
return AgentExecutionNodeUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AgentExecutionNodeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'connected': json['connected'],
|
|
46
|
+
'ownedByMe': json['ownedByMe'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AgentExecutionNodeUioToJSON(json) {
|
|
50
|
+
return AgentExecutionNodeUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AgentExecutionNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'connected': value['connected'],
|
|
60
|
+
'ownedByMe': value['ownedByMe'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { AgentExecutionNodeChoiceUio } from './AgentExecutionNodeChoiceUio';
|
|
13
|
+
import type { AgentExecutionNodeUio } from './AgentExecutionNodeUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AgentExecutionUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AgentExecutionUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AgentExecutionUio
|
|
24
|
+
*/
|
|
25
|
+
mode: AgentExecutionUioModeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {AgentExecutionNodeUio}
|
|
29
|
+
* @memberof AgentExecutionUio
|
|
30
|
+
*/
|
|
31
|
+
node?: AgentExecutionNodeUio;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AgentExecutionUio
|
|
36
|
+
*/
|
|
37
|
+
runtime?: AgentExecutionUioRuntimeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AgentExecutionUio
|
|
42
|
+
*/
|
|
43
|
+
workspaceAlias?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof AgentExecutionUio
|
|
48
|
+
*/
|
|
49
|
+
autoResume?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<AgentExecutionNodeChoiceUio>}
|
|
53
|
+
* @memberof AgentExecutionUio
|
|
54
|
+
*/
|
|
55
|
+
availableNodes: Array<AgentExecutionNodeChoiceUio>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const AgentExecutionUioModeEnum: {
|
|
61
|
+
readonly Server: "server";
|
|
62
|
+
readonly Node: "node";
|
|
63
|
+
};
|
|
64
|
+
export type AgentExecutionUioModeEnum = typeof AgentExecutionUioModeEnum[keyof typeof AgentExecutionUioModeEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const AgentExecutionUioRuntimeEnum: {
|
|
69
|
+
readonly Claude: "claude";
|
|
70
|
+
readonly Opencode: "opencode";
|
|
71
|
+
};
|
|
72
|
+
export type AgentExecutionUioRuntimeEnum = typeof AgentExecutionUioRuntimeEnum[keyof typeof AgentExecutionUioRuntimeEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the AgentExecutionUio interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfAgentExecutionUio(value: object): value is AgentExecutionUio;
|
|
77
|
+
export declare function AgentExecutionUioFromJSON(json: any): AgentExecutionUio;
|
|
78
|
+
export declare function AgentExecutionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionUio;
|
|
79
|
+
export declare function AgentExecutionUioToJSON(json: any): AgentExecutionUio;
|
|
80
|
+
export declare function AgentExecutionUioToJSONTyped(value?: AgentExecutionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.AgentExecutionUioRuntimeEnum = exports.AgentExecutionUioModeEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentExecutionUio = instanceOfAgentExecutionUio;
|
|
18
|
+
exports.AgentExecutionUioFromJSON = AgentExecutionUioFromJSON;
|
|
19
|
+
exports.AgentExecutionUioFromJSONTyped = AgentExecutionUioFromJSONTyped;
|
|
20
|
+
exports.AgentExecutionUioToJSON = AgentExecutionUioToJSON;
|
|
21
|
+
exports.AgentExecutionUioToJSONTyped = AgentExecutionUioToJSONTyped;
|
|
22
|
+
const AgentExecutionNodeChoiceUio_1 = require("./AgentExecutionNodeChoiceUio");
|
|
23
|
+
const AgentExecutionNodeUio_1 = require("./AgentExecutionNodeUio");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.AgentExecutionUioModeEnum = {
|
|
28
|
+
Server: 'server',
|
|
29
|
+
Node: 'node'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AgentExecutionUioRuntimeEnum = {
|
|
35
|
+
Claude: 'claude',
|
|
36
|
+
Opencode: 'opencode'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AgentExecutionUio interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfAgentExecutionUio(value) {
|
|
42
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('availableNodes' in value) || value['availableNodes'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function AgentExecutionUioFromJSON(json) {
|
|
49
|
+
return AgentExecutionUioFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AgentExecutionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'mode': json['mode'],
|
|
57
|
+
'node': json['node'] == null ? undefined : (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioFromJSON)(json['node']),
|
|
58
|
+
'runtime': json['runtime'] == null ? undefined : json['runtime'],
|
|
59
|
+
'workspaceAlias': json['workspaceAlias'] == null ? undefined : json['workspaceAlias'],
|
|
60
|
+
'autoResume': json['autoResume'] == null ? undefined : json['autoResume'],
|
|
61
|
+
'availableNodes': (json['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioFromJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function AgentExecutionUioToJSON(json) {
|
|
65
|
+
return AgentExecutionUioToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function AgentExecutionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'mode': value['mode'],
|
|
73
|
+
'node': (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioToJSON)(value['node']),
|
|
74
|
+
'runtime': value['runtime'],
|
|
75
|
+
'workspaceAlias': value['workspaceAlias'],
|
|
76
|
+
'autoResume': value['autoResume'],
|
|
77
|
+
'availableNodes': (value['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioToJSON)),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -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
|
+
}
|