@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
|
@@ -0,0 +1,165 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { AgentExecutionUio, ExecutionNodeDetailUio, ExecutionNodeUio, NodeSessionDetailUio, NodeSessionLogsUio, NodeTurnCancelResultUio, SetAgentExecutionRequestUio } from '../models/index';
|
|
14
|
+
export interface CancelExecutionNodeSessionRequest {
|
|
15
|
+
nodeId: string;
|
|
16
|
+
sessionId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CancelMessageNodeTurnRequest {
|
|
19
|
+
conversationId: string;
|
|
20
|
+
messageId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetAgentExecutionRequest {
|
|
23
|
+
agentId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GetExecutionNodeRequest {
|
|
26
|
+
nodeId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetExecutionNodeSessionRequest {
|
|
29
|
+
nodeId: string;
|
|
30
|
+
sessionId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ListExecutionNodeSessionLogsRequest {
|
|
33
|
+
nodeId: string;
|
|
34
|
+
sessionId: string;
|
|
35
|
+
afterSeq?: number;
|
|
36
|
+
limit?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface RelaunchExecutionNodeSessionRequest {
|
|
39
|
+
nodeId: string;
|
|
40
|
+
sessionId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface RelaunchMessageNodeTurnRequest {
|
|
43
|
+
conversationId: string;
|
|
44
|
+
messageId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface RevokeExecutionNodeRequest {
|
|
47
|
+
nodeId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SetAgentExecutionRequest {
|
|
50
|
+
agentId: string;
|
|
51
|
+
setAgentExecutionRequestUio: SetAgentExecutionRequestUio;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export declare class ExecutionNodesApi extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
59
|
+
* Stop a turn running on one of my execution nodes
|
|
60
|
+
*/
|
|
61
|
+
cancelExecutionNodeSessionRaw(requestParameters: CancelExecutionNodeSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeSessionDetailUio>>;
|
|
62
|
+
/**
|
|
63
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
64
|
+
* Stop a turn running on one of my execution nodes
|
|
65
|
+
*/
|
|
66
|
+
cancelExecutionNodeSession(nodeId: string, sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeSessionDetailUio>;
|
|
67
|
+
/**
|
|
68
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
69
|
+
* Stop the node turn of a message
|
|
70
|
+
*/
|
|
71
|
+
cancelMessageNodeTurnRaw(requestParameters: CancelMessageNodeTurnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeTurnCancelResultUio>>;
|
|
72
|
+
/**
|
|
73
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
74
|
+
* Stop the node turn of a message
|
|
75
|
+
*/
|
|
76
|
+
cancelMessageNodeTurn(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeTurnCancelResultUio>;
|
|
77
|
+
/**
|
|
78
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
79
|
+
* Get where an agent runs
|
|
80
|
+
*/
|
|
81
|
+
getAgentExecutionRaw(requestParameters: GetAgentExecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentExecutionUio>>;
|
|
82
|
+
/**
|
|
83
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
84
|
+
* Get where an agent runs
|
|
85
|
+
*/
|
|
86
|
+
getAgentExecution(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentExecutionUio>;
|
|
87
|
+
/**
|
|
88
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
89
|
+
* Get one of my execution nodes
|
|
90
|
+
*/
|
|
91
|
+
getExecutionNodeRaw(requestParameters: GetExecutionNodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExecutionNodeDetailUio>>;
|
|
92
|
+
/**
|
|
93
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
94
|
+
* Get one of my execution nodes
|
|
95
|
+
*/
|
|
96
|
+
getExecutionNode(nodeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExecutionNodeDetailUio>;
|
|
97
|
+
/**
|
|
98
|
+
* Get a turn run on one of my execution nodes
|
|
99
|
+
*/
|
|
100
|
+
getExecutionNodeSessionRaw(requestParameters: GetExecutionNodeSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeSessionDetailUio>>;
|
|
101
|
+
/**
|
|
102
|
+
* Get a turn run on one of my execution nodes
|
|
103
|
+
*/
|
|
104
|
+
getExecutionNodeSession(nodeId: string, sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeSessionDetailUio>;
|
|
105
|
+
/**
|
|
106
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
107
|
+
* Page the log lines of a turn
|
|
108
|
+
*/
|
|
109
|
+
listExecutionNodeSessionLogsRaw(requestParameters: ListExecutionNodeSessionLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeSessionLogsUio>>;
|
|
110
|
+
/**
|
|
111
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
112
|
+
* Page the log lines of a turn
|
|
113
|
+
*/
|
|
114
|
+
listExecutionNodeSessionLogs(nodeId: string, sessionId: string, afterSeq?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeSessionLogsUio>;
|
|
115
|
+
/**
|
|
116
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
117
|
+
* List my Breign Mate execution nodes
|
|
118
|
+
*/
|
|
119
|
+
listExecutionNodesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExecutionNodeUio>>>;
|
|
120
|
+
/**
|
|
121
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
122
|
+
* List my Breign Mate execution nodes
|
|
123
|
+
*/
|
|
124
|
+
listExecutionNodes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExecutionNodeUio>>;
|
|
125
|
+
/**
|
|
126
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
127
|
+
* Relaunch an interrupted turn
|
|
128
|
+
*/
|
|
129
|
+
relaunchExecutionNodeSessionRaw(requestParameters: RelaunchExecutionNodeSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NodeSessionDetailUio>>;
|
|
130
|
+
/**
|
|
131
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
132
|
+
* Relaunch an interrupted turn
|
|
133
|
+
*/
|
|
134
|
+
relaunchExecutionNodeSession(nodeId: string, sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NodeSessionDetailUio>;
|
|
135
|
+
/**
|
|
136
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
137
|
+
* Relaunch the interrupted node turn of a message
|
|
138
|
+
*/
|
|
139
|
+
relaunchMessageNodeTurnRaw(requestParameters: RelaunchMessageNodeTurnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
140
|
+
/**
|
|
141
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
142
|
+
* Relaunch the interrupted node turn of a message
|
|
143
|
+
*/
|
|
144
|
+
relaunchMessageNodeTurn(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
147
|
+
* Unpair an execution node
|
|
148
|
+
*/
|
|
149
|
+
revokeExecutionNodeRaw(requestParameters: RevokeExecutionNodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExecutionNodeUio>>;
|
|
150
|
+
/**
|
|
151
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
152
|
+
* Unpair an execution node
|
|
153
|
+
*/
|
|
154
|
+
revokeExecutionNode(nodeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExecutionNodeUio>;
|
|
155
|
+
/**
|
|
156
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
157
|
+
* Set where an agent runs
|
|
158
|
+
*/
|
|
159
|
+
setAgentExecutionRaw(requestParameters: SetAgentExecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentExecutionUio>>;
|
|
160
|
+
/**
|
|
161
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
162
|
+
* Set where an agent runs
|
|
163
|
+
*/
|
|
164
|
+
setAgentExecution(agentId: string, setAgentExecutionRequestUio: SetAgentExecutionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentExecutionUio>;
|
|
165
|
+
}
|
|
@@ -0,0 +1,399 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.ExecutionNodesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class ExecutionNodesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
58
|
+
* Stop a turn running on one of my execution nodes
|
|
59
|
+
*/
|
|
60
|
+
async cancelExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['nodeId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling cancelExecutionNodeSession().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['sessionId'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling cancelExecutionNodeSession().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/cancel`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Interrompt le tour ; un tour jamais livré s\'arrête tout de suite.
|
|
82
|
+
* Stop a turn running on one of my execution nodes
|
|
83
|
+
*/
|
|
84
|
+
async cancelExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
85
|
+
const response = await this.cancelExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
90
|
+
* Stop the node turn of a message
|
|
91
|
+
*/
|
|
92
|
+
async cancelMessageNodeTurnRaw(requestParameters, initOverrides) {
|
|
93
|
+
if (requestParameters['conversationId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling cancelMessageNodeTurn().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['messageId'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling cancelMessageNodeTurn().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/conversations/{conversationId}/messages/{messageId}/node-turn/cancel`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
106
|
+
method: 'POST',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeTurnCancelResultUioFromJSON)(jsonValue));
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
114
|
+
* Stop the node turn of a message
|
|
115
|
+
*/
|
|
116
|
+
async cancelMessageNodeTurn(conversationId, messageId, initOverrides) {
|
|
117
|
+
const response = await this.cancelMessageNodeTurnRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
118
|
+
return await response.value();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
122
|
+
* Get where an agent runs
|
|
123
|
+
*/
|
|
124
|
+
async getAgentExecutionRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters['agentId'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentExecution().');
|
|
127
|
+
}
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
132
|
+
}
|
|
133
|
+
const response = await this.request({
|
|
134
|
+
path: `/agents/{agentId}/execution`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
135
|
+
method: 'GET',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
}, initOverrides);
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentExecutionUioFromJSON)(jsonValue));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* La section Exécution d\'un agent : serveur Breign, ou un runtime sur un nœud ; avec les nœuds de l\'utilisateur qu\'il pourrait choisir.
|
|
143
|
+
* Get where an agent runs
|
|
144
|
+
*/
|
|
145
|
+
async getAgentExecution(agentId, initOverrides) {
|
|
146
|
+
const response = await this.getAgentExecutionRaw({ agentId: agentId }, initOverrides);
|
|
147
|
+
return await response.value();
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
151
|
+
* Get one of my execution nodes
|
|
152
|
+
*/
|
|
153
|
+
async getExecutionNodeRaw(requestParameters, initOverrides) {
|
|
154
|
+
if (requestParameters['nodeId'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling getExecutionNode().');
|
|
156
|
+
}
|
|
157
|
+
const queryParameters = {};
|
|
158
|
+
const headerParameters = {};
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
161
|
+
}
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/execution-nodes/{nodeId}`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
164
|
+
method: 'GET',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
}, initOverrides);
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExecutionNodeDetailUioFromJSON)(jsonValue));
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Le détail d\'un nœud de l\'utilisateur courant, ses agents et ses derniers tours.
|
|
172
|
+
* Get one of my execution nodes
|
|
173
|
+
*/
|
|
174
|
+
async getExecutionNode(nodeId, initOverrides) {
|
|
175
|
+
const response = await this.getExecutionNodeRaw({ nodeId: nodeId }, initOverrides);
|
|
176
|
+
return await response.value();
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get a turn run on one of my execution nodes
|
|
180
|
+
*/
|
|
181
|
+
async getExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
182
|
+
if (requestParameters['nodeId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling getExecutionNodeSession().');
|
|
184
|
+
}
|
|
185
|
+
if (requestParameters['sessionId'] == null) {
|
|
186
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getExecutionNodeSession().');
|
|
187
|
+
}
|
|
188
|
+
const queryParameters = {};
|
|
189
|
+
const headerParameters = {};
|
|
190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
192
|
+
}
|
|
193
|
+
const response = await this.request({
|
|
194
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
195
|
+
method: 'GET',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Get a turn run on one of my execution nodes
|
|
203
|
+
*/
|
|
204
|
+
async getExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
205
|
+
const response = await this.getExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
206
|
+
return await response.value();
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
210
|
+
* Page the log lines of a turn
|
|
211
|
+
*/
|
|
212
|
+
async listExecutionNodeSessionLogsRaw(requestParameters, initOverrides) {
|
|
213
|
+
if (requestParameters['nodeId'] == null) {
|
|
214
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling listExecutionNodeSessionLogs().');
|
|
215
|
+
}
|
|
216
|
+
if (requestParameters['sessionId'] == null) {
|
|
217
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling listExecutionNodeSessionLogs().');
|
|
218
|
+
}
|
|
219
|
+
const queryParameters = {};
|
|
220
|
+
if (requestParameters['afterSeq'] != null) {
|
|
221
|
+
queryParameters['afterSeq'] = requestParameters['afterSeq'];
|
|
222
|
+
}
|
|
223
|
+
if (requestParameters['limit'] != null) {
|
|
224
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
225
|
+
}
|
|
226
|
+
const headerParameters = {};
|
|
227
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
229
|
+
}
|
|
230
|
+
const response = await this.request({
|
|
231
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/logs`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
232
|
+
method: 'GET',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
}, initOverrides);
|
|
236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionLogsUioFromJSON)(jsonValue));
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Les lignes de log remontées par le nœud après un curseur `seq`, dans l\'ordre.
|
|
240
|
+
* Page the log lines of a turn
|
|
241
|
+
*/
|
|
242
|
+
async listExecutionNodeSessionLogs(nodeId, sessionId, afterSeq, limit, initOverrides) {
|
|
243
|
+
const response = await this.listExecutionNodeSessionLogsRaw({ nodeId: nodeId, sessionId: sessionId, afterSeq: afterSeq, limit: limit }, initOverrides);
|
|
244
|
+
return await response.value();
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
248
|
+
* List my Breign Mate execution nodes
|
|
249
|
+
*/
|
|
250
|
+
async listExecutionNodesRaw(initOverrides) {
|
|
251
|
+
const queryParameters = {};
|
|
252
|
+
const headerParameters = {};
|
|
253
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
254
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
255
|
+
}
|
|
256
|
+
const response = await this.request({
|
|
257
|
+
path: `/execution-nodes`,
|
|
258
|
+
method: 'GET',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
}, initOverrides);
|
|
262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ExecutionNodeUioFromJSON));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Les nœuds d\'exécution de l\'utilisateur courant, chacun avec les agents qui lui sont rattachés.
|
|
266
|
+
* List my Breign Mate execution nodes
|
|
267
|
+
*/
|
|
268
|
+
async listExecutionNodes(initOverrides) {
|
|
269
|
+
const response = await this.listExecutionNodesRaw(initOverrides);
|
|
270
|
+
return await response.value();
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
274
|
+
* Relaunch an interrupted turn
|
|
275
|
+
*/
|
|
276
|
+
async relaunchExecutionNodeSessionRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters['nodeId'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling relaunchExecutionNodeSession().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['sessionId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling relaunchExecutionNodeSession().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
286
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
287
|
+
}
|
|
288
|
+
const response = await this.request({
|
|
289
|
+
path: `/execution-nodes/{nodeId}/sessions/{sessionId}/relaunch`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
290
|
+
method: 'POST',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
}, initOverrides);
|
|
294
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeSessionDetailUioFromJSON)(jsonValue));
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Relance un tour interrompu ; il repart en livraison et reprend sa session CLI.
|
|
298
|
+
* Relaunch an interrupted turn
|
|
299
|
+
*/
|
|
300
|
+
async relaunchExecutionNodeSession(nodeId, sessionId, initOverrides) {
|
|
301
|
+
const response = await this.relaunchExecutionNodeSessionRaw({ nodeId: nodeId, sessionId: sessionId }, initOverrides);
|
|
302
|
+
return await response.value();
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
306
|
+
* Relaunch the interrupted node turn of a message
|
|
307
|
+
*/
|
|
308
|
+
async relaunchMessageNodeTurnRaw(requestParameters, initOverrides) {
|
|
309
|
+
if (requestParameters['conversationId'] == null) {
|
|
310
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling relaunchMessageNodeTurn().');
|
|
311
|
+
}
|
|
312
|
+
if (requestParameters['messageId'] == null) {
|
|
313
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling relaunchMessageNodeTurn().');
|
|
314
|
+
}
|
|
315
|
+
const queryParameters = {};
|
|
316
|
+
const headerParameters = {};
|
|
317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
318
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
319
|
+
}
|
|
320
|
+
const response = await this.request({
|
|
321
|
+
path: `/conversations/{conversationId}/messages/{messageId}/node-turn/relaunch`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
322
|
+
method: 'POST',
|
|
323
|
+
headers: headerParameters,
|
|
324
|
+
query: queryParameters,
|
|
325
|
+
}, initOverrides);
|
|
326
|
+
return new runtime.VoidApiResponse(response);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Depuis la conversation, pour un agent qui tourne sur un nœud Breign Mate.
|
|
330
|
+
* Relaunch the interrupted node turn of a message
|
|
331
|
+
*/
|
|
332
|
+
async relaunchMessageNodeTurn(conversationId, messageId, initOverrides) {
|
|
333
|
+
await this.relaunchMessageNodeTurnRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
337
|
+
* Unpair an execution node
|
|
338
|
+
*/
|
|
339
|
+
async revokeExecutionNodeRaw(requestParameters, initOverrides) {
|
|
340
|
+
if (requestParameters['nodeId'] == null) {
|
|
341
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling revokeExecutionNode().');
|
|
342
|
+
}
|
|
343
|
+
const queryParameters = {};
|
|
344
|
+
const headerParameters = {};
|
|
345
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
346
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
347
|
+
}
|
|
348
|
+
const response = await this.request({
|
|
349
|
+
path: `/execution-nodes/{nodeId}/revoke`.replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
350
|
+
method: 'POST',
|
|
351
|
+
headers: headerParameters,
|
|
352
|
+
query: queryParameters,
|
|
353
|
+
}, initOverrides);
|
|
354
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExecutionNodeUioFromJSON)(jsonValue));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Révoque le nœud (désappairage) : il est refusé à jamais, ses agents repassent sur le serveur Breign, ses tours ouverts sont interrompus. La clé API n\'est pas révoquée.
|
|
358
|
+
* Unpair an execution node
|
|
359
|
+
*/
|
|
360
|
+
async revokeExecutionNode(nodeId, initOverrides) {
|
|
361
|
+
const response = await this.revokeExecutionNodeRaw({ nodeId: nodeId }, initOverrides);
|
|
362
|
+
return await response.value();
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
366
|
+
* Set where an agent runs
|
|
367
|
+
*/
|
|
368
|
+
async setAgentExecutionRaw(requestParameters, initOverrides) {
|
|
369
|
+
if (requestParameters['agentId'] == null) {
|
|
370
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling setAgentExecution().');
|
|
371
|
+
}
|
|
372
|
+
if (requestParameters['setAgentExecutionRequestUio'] == null) {
|
|
373
|
+
throw new runtime.RequiredError('setAgentExecutionRequestUio', 'Required parameter "setAgentExecutionRequestUio" was null or undefined when calling setAgentExecution().');
|
|
374
|
+
}
|
|
375
|
+
const queryParameters = {};
|
|
376
|
+
const headerParameters = {};
|
|
377
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
380
|
+
}
|
|
381
|
+
const response = await this.request({
|
|
382
|
+
path: `/agents/{agentId}/execution`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
383
|
+
method: 'PUT',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: (0, index_1.SetAgentExecutionRequestUioToJSON)(requestParameters['setAgentExecutionRequestUio']),
|
|
387
|
+
}, initOverrides);
|
|
388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentExecutionUioFromJSON)(jsonValue));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Ramène l\'agent sur le serveur Breign, ou le fait tourner sur un runtime d\'un nœud. Seul le propriétaire du nœud peut le choisir, sur un runtime et un alias que le nœud a déclarés ; pour un agent partagé, il faut aussi être admin de l\'organisation (ou créateur d\'un agent personnel).
|
|
392
|
+
* Set where an agent runs
|
|
393
|
+
*/
|
|
394
|
+
async setAgentExecution(agentId, setAgentExecutionRequestUio, initOverrides) {
|
|
395
|
+
const response = await this.setAgentExecutionRaw({ agentId: agentId, setAgentExecutionRequestUio: setAgentExecutionRequestUio }, initOverrides);
|
|
396
|
+
return await response.value();
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.ExecutionNodesApi = ExecutionNodesApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
14
14
|
export interface AcceptTicketProposalRequest {
|
|
15
15
|
proposalId: string;
|
|
16
16
|
acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
|
|
@@ -89,6 +89,11 @@ export interface ReviewTicketRequest {
|
|
|
89
89
|
ticketId: string;
|
|
90
90
|
ticketReviewRequestUio: TicketReviewRequestUio;
|
|
91
91
|
}
|
|
92
|
+
export interface SaveTicketArtifactVersionRequest {
|
|
93
|
+
ticketId: string;
|
|
94
|
+
artifactId: string;
|
|
95
|
+
saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
|
|
96
|
+
}
|
|
92
97
|
export interface SetTicketAssigneesRequest {
|
|
93
98
|
ticketId: string;
|
|
94
99
|
setTicketAssigneesRequestUio: SetTicketAssigneesRequestUio;
|
|
@@ -97,6 +102,11 @@ export interface UpdateTicketRequest {
|
|
|
97
102
|
ticketId: string;
|
|
98
103
|
updateTicketRequestUio: UpdateTicketRequestUio;
|
|
99
104
|
}
|
|
105
|
+
export interface UpdateTicketArtifactContentRequest {
|
|
106
|
+
ticketId: string;
|
|
107
|
+
artifactId: string;
|
|
108
|
+
saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio;
|
|
109
|
+
}
|
|
100
110
|
/**
|
|
101
111
|
*
|
|
102
112
|
*/
|
|
@@ -291,6 +301,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
291
301
|
* Review a ticket
|
|
292
302
|
*/
|
|
293
303
|
reviewTicket(ticketId: string, ticketReviewRequestUio: TicketReviewRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
304
|
+
/**
|
|
305
|
+
* 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.
|
|
306
|
+
* Save an edited text artifact as its next version
|
|
307
|
+
*/
|
|
308
|
+
saveTicketArtifactVersionRaw(requestParameters: SaveTicketArtifactVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketArtifactUio>>;
|
|
309
|
+
/**
|
|
310
|
+
* 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.
|
|
311
|
+
* Save an edited text artifact as its next version
|
|
312
|
+
*/
|
|
313
|
+
saveTicketArtifactVersion(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
|
|
294
314
|
/**
|
|
295
315
|
* 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é.
|
|
296
316
|
* Replace the assignees of a ticket
|
|
@@ -311,4 +331,14 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
311
331
|
* Update a ticket
|
|
312
332
|
*/
|
|
313
333
|
updateTicket(ticketId: string, updateTicketRequestUio: UpdateTicketRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
334
|
+
/**
|
|
335
|
+
* 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.
|
|
336
|
+
* Replace the text of an artifact in place
|
|
337
|
+
*/
|
|
338
|
+
updateTicketArtifactContentRaw(requestParameters: UpdateTicketArtifactContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketArtifactUio>>;
|
|
339
|
+
/**
|
|
340
|
+
* 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.
|
|
341
|
+
* Replace the text of an artifact in place
|
|
342
|
+
*/
|
|
343
|
+
updateTicketArtifactContent(ticketId: string, artifactId: string, saveTicketArtifactVersionRequestUio: SaveTicketArtifactVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
|
|
314
344
|
}
|