@breign/client 1.0.194 → 1.0.196
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 +31 -3
- package/dist/apis/ExecutionNodesApi.js +66 -2
- package/dist/apis/NodeGroupsApi.d.ts +353 -0
- package/dist/apis/NodeGroupsApi.js +697 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.d.ts +46 -0
- package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.js +62 -0
- package/dist/models/AgentExecutionGroupChoiceUio.d.ts +70 -0
- package/dist/models/AgentExecutionGroupChoiceUio.js +76 -0
- package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.d.ts +44 -0
- package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.js +58 -0
- package/dist/models/AgentExecutionGroupUio.d.ts +38 -0
- package/dist/models/AgentExecutionGroupUio.js +54 -0
- package/dist/models/AgentExecutionUio.d.ts +27 -0
- package/dist/models/AgentExecutionUio.js +14 -1
- package/dist/models/CreateNodeGroupRequestUio.d.ts +56 -0
- package/dist/models/CreateNodeGroupRequestUio.js +58 -0
- package/dist/models/NodeGroupAgentUio.d.ts +58 -0
- package/dist/models/NodeGroupAgentUio.js +70 -0
- package/dist/models/NodeGroupBulkIdsUio.d.ts +32 -0
- package/dist/models/NodeGroupBulkIdsUio.js +50 -0
- package/dist/models/NodeGroupBulkResultResultsInnerUio.d.ts +50 -0
- package/dist/models/NodeGroupBulkResultResultsInnerUio.js +58 -0
- package/dist/models/NodeGroupBulkResultUio.d.ts +33 -0
- package/dist/models/NodeGroupBulkResultUio.js +51 -0
- package/dist/models/NodeGroupCandidateUio.d.ts +115 -0
- package/dist/models/NodeGroupCandidateUio.js +109 -0
- package/dist/models/NodeGroupDelaysUio.d.ts +44 -0
- package/dist/models/NodeGroupDelaysUio.js +52 -0
- package/dist/models/NodeGroupDetailUio.d.ts +100 -0
- package/dist/models/NodeGroupDetailUio.js +96 -0
- package/dist/models/NodeGroupEnvironmentPageCountsUio.d.ts +56 -0
- package/dist/models/NodeGroupEnvironmentPageCountsUio.js +66 -0
- package/dist/models/NodeGroupEnvironmentPageUio.d.ts +52 -0
- package/dist/models/NodeGroupEnvironmentPageUio.js +64 -0
- package/dist/models/NodeGroupEnvironmentReleaseFilterUio.d.ts +45 -0
- package/dist/models/NodeGroupEnvironmentReleaseFilterUio.js +59 -0
- package/dist/models/NodeGroupEnvironmentReleaseUio.d.ts +39 -0
- package/dist/models/NodeGroupEnvironmentReleaseUio.js +51 -0
- package/dist/models/NodeGroupEnvironmentUio.d.ts +140 -0
- package/dist/models/NodeGroupEnvironmentUio.js +130 -0
- package/dist/models/NodeGroupExecutionPageUio.d.ts +45 -0
- package/dist/models/NodeGroupExecutionPageUio.js +59 -0
- package/dist/models/NodeGroupExecutionUio.d.ts +180 -0
- package/dist/models/NodeGroupExecutionUio.js +155 -0
- package/dist/models/NodeGroupMemberNodeUio.d.ts +115 -0
- package/dist/models/NodeGroupMemberNodeUio.js +109 -0
- package/dist/models/NodeGroupNodeOverviewOtherGroupsInnerUio.d.ts +38 -0
- package/dist/models/NodeGroupNodeOverviewOtherGroupsInnerUio.js +54 -0
- package/dist/models/NodeGroupNodeOverviewRunningInnerUio.d.ts +62 -0
- package/dist/models/NodeGroupNodeOverviewRunningInnerUio.js +70 -0
- package/dist/models/NodeGroupNodeOverviewUio.d.ts +135 -0
- package/dist/models/NodeGroupNodeOverviewUio.js +123 -0
- package/dist/models/NodeGroupNodePageUio.d.ts +39 -0
- package/dist/models/NodeGroupNodePageUio.js +55 -0
- package/dist/models/NodeGroupNodeUio.d.ts +103 -0
- package/dist/models/NodeGroupNodeUio.js +101 -0
- package/dist/models/NodeGroupQueueSummaryEnvironmentsUio.d.ts +44 -0
- package/dist/models/NodeGroupQueueSummaryEnvironmentsUio.js +58 -0
- package/dist/models/NodeGroupQueueSummaryMedianWaitMsUio.d.ts +38 -0
- package/dist/models/NodeGroupQueueSummaryMedianWaitMsUio.js +54 -0
- package/dist/models/NodeGroupQueueSummaryNodesInnerUio.d.ts +56 -0
- package/dist/models/NodeGroupQueueSummaryNodesInnerUio.js +66 -0
- package/dist/models/NodeGroupQueueSummaryPendingByAgentInnerUio.d.ts +44 -0
- package/dist/models/NodeGroupQueueSummaryPendingByAgentInnerUio.js +58 -0
- package/dist/models/NodeGroupQueueSummaryUio.d.ts +115 -0
- package/dist/models/NodeGroupQueueSummaryUio.js +107 -0
- package/dist/models/NodeGroupQueueSummaryWaitingForUio.d.ts +44 -0
- package/dist/models/NodeGroupQueueSummaryWaitingForUio.js +58 -0
- package/dist/models/NodeGroupSummaryUio.d.ts +116 -0
- package/dist/models/NodeGroupSummaryUio.js +106 -0
- package/dist/models/NodeGroupUio.d.ts +86 -0
- package/dist/models/NodeGroupUio.js +86 -0
- package/dist/models/NodeQueueTurnGroupUio.d.ts +38 -0
- package/dist/models/NodeQueueTurnGroupUio.js +54 -0
- package/dist/models/NodeQueueTurnUio.d.ts +114 -0
- package/dist/models/NodeQueueTurnUio.js +106 -0
- package/dist/models/NodeRefUio.d.ts +44 -0
- package/dist/models/NodeRefUio.js +58 -0
- package/dist/models/NodeSessionDetailUio.d.ts +1 -1
- package/dist/models/NodeSessionStateUio.d.ts +2 -1
- package/dist/models/NodeSessionStateUio.js +2 -1
- package/dist/models/NodeSessionUio.d.ts +1 -1
- package/dist/models/SetAgentExecutionRequestUio.d.ts +20 -1
- package/dist/models/SetAgentExecutionRequestUio.js +8 -1
- package/dist/models/UpdateNodeGroupRequestUio.d.ts +56 -0
- package/dist/models/UpdateNodeGroupRequestUio.js +56 -0
- package/dist/models/WaitingForUio.d.ts +26 -0
- package/dist/models/WaitingForUio.js +52 -0
- package/dist/models/index.d.ts +38 -0
- package/dist/models/index.js +38 -0
- package/dist/openapi.json +1994 -8
- package/package.json +1 -1
|
@@ -0,0 +1,697 @@
|
|
|
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.ListNodeGroupNodesSortEnum = exports.ListNodeGroupNodesRuntimeEnum = exports.ListNodeGroupNodesLoadEnum = exports.ListNodeGroupNodesStatusEnum = exports.ListNodeGroupExecutionsSortEnum = exports.ListNodeGroupExecutionsResultEnum = exports.ListNodeGroupExecutionsRuntimeEnum = exports.ListNodeGroupExecutionsWaitingForEnum = exports.ListNodeGroupExecutionsOriginEnum = exports.ListNodeGroupExecutionsStatusEnum = exports.ListNodeGroupEnvironmentsSortEnum = exports.ListNodeGroupEnvironmentsStateEnum = exports.NodeGroupsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class NodeGroupsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Ajoute un nœud associé à l\'organisation du groupe et parlant le contrat v2 ; sans effet s\'il y est déjà. Demande `nodeGroup.update`.
|
|
58
|
+
* Add a node to a node group
|
|
59
|
+
*/
|
|
60
|
+
async addNodeGroupNodeRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['groupId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling addNodeGroupNode().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['nodeId'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling addNodeGroupNode().');
|
|
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: `/node-groups/{groupId}/nodes/{nodeId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))).replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
74
|
+
method: 'PUT',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupDetailUioFromJSON)(jsonValue));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Ajoute un nœud associé à l\'organisation du groupe et parlant le contrat v2 ; sans effet s\'il y est déjà. Demande `nodeGroup.update`.
|
|
82
|
+
* Add a node to a node group
|
|
83
|
+
*/
|
|
84
|
+
async addNodeGroupNode(groupId, nodeId, initOverrides) {
|
|
85
|
+
const response = await this.addNodeGroupNodeRaw({ groupId: groupId, nodeId: nodeId }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Annule ces exécutions (en attente ou en cours). Demande `nodeGroup.execution.manage`, sauf pour les exécutions des conversations de l\'appelant.
|
|
90
|
+
* Cancel executions of a node group
|
|
91
|
+
*/
|
|
92
|
+
async cancelNodeGroupExecutionsRaw(requestParameters, initOverrides) {
|
|
93
|
+
if (requestParameters['groupId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling cancelNodeGroupExecutions().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['nodeGroupBulkIdsUio'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('nodeGroupBulkIdsUio', 'Required parameter "nodeGroupBulkIdsUio" was null or undefined when calling cancelNodeGroupExecutions().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
104
|
+
}
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: `/node-groups/{groupId}/executions/cancel`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
body: (0, index_1.NodeGroupBulkIdsUioToJSON)(requestParameters['nodeGroupBulkIdsUio']),
|
|
111
|
+
}, initOverrides);
|
|
112
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupBulkResultUioFromJSON)(jsonValue));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Annule ces exécutions (en attente ou en cours). Demande `nodeGroup.execution.manage`, sauf pour les exécutions des conversations de l\'appelant.
|
|
116
|
+
* Cancel executions of a node group
|
|
117
|
+
*/
|
|
118
|
+
async cancelNodeGroupExecutions(groupId, nodeGroupBulkIdsUio, initOverrides) {
|
|
119
|
+
const response = await this.cancelNodeGroupExecutionsRaw({ groupId: groupId, nodeGroupBulkIdsUio: nodeGroupBulkIdsUio }, initOverrides);
|
|
120
|
+
return await response.value();
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Crée un groupe vide ; les délais absents prennent les valeurs par défaut (attente du nœud de l\'environnement 10 min, libération après 24 h, expiration de la file après 24 h). Demande `nodeGroup.create`.
|
|
124
|
+
* Create a node group
|
|
125
|
+
*/
|
|
126
|
+
async createNodeGroupRaw(requestParameters, initOverrides) {
|
|
127
|
+
if (requestParameters['organizationId'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createNodeGroup().');
|
|
129
|
+
}
|
|
130
|
+
if (requestParameters['createNodeGroupRequestUio'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('createNodeGroupRequestUio', 'Required parameter "createNodeGroupRequestUio" was null or undefined when calling createNodeGroup().');
|
|
132
|
+
}
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
const headerParameters = {};
|
|
135
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
136
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
137
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
138
|
+
}
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: `/organizations/{organizationId}/node-groups`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: (0, index_1.CreateNodeGroupRequestUioToJSON)(requestParameters['createNodeGroupRequestUio']),
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupDetailUioFromJSON)(jsonValue));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Crée un groupe vide ; les délais absents prennent les valeurs par défaut (attente du nœud de l\'environnement 10 min, libération après 24 h, expiration de la file après 24 h). Demande `nodeGroup.create`.
|
|
150
|
+
* Create a node group
|
|
151
|
+
*/
|
|
152
|
+
async createNodeGroup(organizationId, createNodeGroupRequestUio, initOverrides) {
|
|
153
|
+
const response = await this.createNodeGroupRaw({ organizationId: organizationId, createNodeGroupRequestUio: createNodeGroupRequestUio }, initOverrides);
|
|
154
|
+
return await response.value();
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Supprime le groupe et ses membres. Refusé tant qu\'un agent y est rattaché. Demande `nodeGroup.delete`.
|
|
158
|
+
* Delete a node group
|
|
159
|
+
*/
|
|
160
|
+
async deleteNodeGroupRaw(requestParameters, initOverrides) {
|
|
161
|
+
if (requestParameters['groupId'] == null) {
|
|
162
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling deleteNodeGroup().');
|
|
163
|
+
}
|
|
164
|
+
const queryParameters = {};
|
|
165
|
+
const headerParameters = {};
|
|
166
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
167
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
168
|
+
}
|
|
169
|
+
const response = await this.request({
|
|
170
|
+
path: `/node-groups/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
171
|
+
method: 'DELETE',
|
|
172
|
+
headers: headerParameters,
|
|
173
|
+
query: queryParameters,
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
return new runtime.VoidApiResponse(response);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Supprime le groupe et ses membres. Refusé tant qu\'un agent y est rattaché. Demande `nodeGroup.delete`.
|
|
179
|
+
* Delete a node group
|
|
180
|
+
*/
|
|
181
|
+
async deleteNodeGroup(groupId, initOverrides) {
|
|
182
|
+
await this.deleteNodeGroupRaw({ groupId: groupId }, initOverrides);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Le groupe, ses nœuds et les agents qui y sont rattachés. Demande `nodeGroup.read`.
|
|
186
|
+
* Get a node group
|
|
187
|
+
*/
|
|
188
|
+
async getNodeGroupRaw(requestParameters, initOverrides) {
|
|
189
|
+
if (requestParameters['groupId'] == null) {
|
|
190
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling getNodeGroup().');
|
|
191
|
+
}
|
|
192
|
+
const queryParameters = {};
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
196
|
+
}
|
|
197
|
+
const response = await this.request({
|
|
198
|
+
path: `/node-groups/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
199
|
+
method: 'GET',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupDetailUioFromJSON)(jsonValue));
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Le groupe, ses nœuds et les agents qui y sont rattachés. Demande `nodeGroup.read`.
|
|
207
|
+
* Get a node group
|
|
208
|
+
*/
|
|
209
|
+
async getNodeGroup(groupId, initOverrides) {
|
|
210
|
+
const response = await this.getNodeGroupRaw({ groupId: groupId }, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Les compteurs de la file (en attente, en cours, attente médiane, causes d\'attente), la file par agent, l\'occupation des nœuds et les environnements conservés. Demande `nodeGroup.read`.
|
|
215
|
+
* Get the queue summary of a node group
|
|
216
|
+
*/
|
|
217
|
+
async getNodeGroupSummaryRaw(requestParameters, initOverrides) {
|
|
218
|
+
if (requestParameters['groupId'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling getNodeGroupSummary().');
|
|
220
|
+
}
|
|
221
|
+
const queryParameters = {};
|
|
222
|
+
const headerParameters = {};
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
225
|
+
}
|
|
226
|
+
const response = await this.request({
|
|
227
|
+
path: `/node-groups/{groupId}/summary`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
228
|
+
method: 'GET',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
}, initOverrides);
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupQueueSummaryUioFromJSON)(jsonValue));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Les compteurs de la file (en attente, en cours, attente médiane, causes d\'attente), la file par agent, l\'occupation des nœuds et les environnements conservés. Demande `nodeGroup.read`.
|
|
236
|
+
* Get the queue summary of a node group
|
|
237
|
+
*/
|
|
238
|
+
async getNodeGroupSummary(groupId, initOverrides) {
|
|
239
|
+
const response = await this.getNodeGroupSummaryRaw({ groupId: groupId }, initOverrides);
|
|
240
|
+
return await response.value();
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Les nœuds associés à l\'organisation, avec ce qui empêche chacun d\'entrer dans un groupe (un nœud doit parler le contrat v2 : Breign Mate ou Breign CLI à jour). Demande `nodeGroup.read`.
|
|
244
|
+
* List the nodes that can join a node group
|
|
245
|
+
*/
|
|
246
|
+
async listNodeGroupCandidatesRaw(requestParameters, initOverrides) {
|
|
247
|
+
if (requestParameters['organizationId'] == null) {
|
|
248
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listNodeGroupCandidates().');
|
|
249
|
+
}
|
|
250
|
+
const queryParameters = {};
|
|
251
|
+
const headerParameters = {};
|
|
252
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
253
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
254
|
+
}
|
|
255
|
+
const response = await this.request({
|
|
256
|
+
path: `/organizations/{organizationId}/node-group-candidates`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
257
|
+
method: 'GET',
|
|
258
|
+
headers: headerParameters,
|
|
259
|
+
query: queryParameters,
|
|
260
|
+
}, initOverrides);
|
|
261
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.NodeGroupCandidateUioFromJSON));
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Les nœuds associés à l\'organisation, avec ce qui empêche chacun d\'entrer dans un groupe (un nœud doit parler le contrat v2 : Breign Mate ou Breign CLI à jour). Demande `nodeGroup.read`.
|
|
265
|
+
* List the nodes that can join a node group
|
|
266
|
+
*/
|
|
267
|
+
async listNodeGroupCandidates(organizationId, initOverrides) {
|
|
268
|
+
const response = await this.listNodeGroupCandidatesRaw({ organizationId: organizationId }, initOverrides);
|
|
269
|
+
return await response.value();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Les environnements que les nœuds du groupe gardent pour des conversations, avec leurs compteurs par état. Demande `nodeGroup.read`.
|
|
273
|
+
* List the environments kept by the nodes of a group
|
|
274
|
+
*/
|
|
275
|
+
async listNodeGroupEnvironmentsRaw(requestParameters, initOverrides) {
|
|
276
|
+
if (requestParameters['groupId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listNodeGroupEnvironments().');
|
|
278
|
+
}
|
|
279
|
+
const queryParameters = {};
|
|
280
|
+
if (requestParameters['state'] != null) {
|
|
281
|
+
queryParameters['state'] = requestParameters['state'];
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters['q'] != null) {
|
|
284
|
+
queryParameters['q'] = requestParameters['q'];
|
|
285
|
+
}
|
|
286
|
+
if (requestParameters['nodeId'] != null) {
|
|
287
|
+
queryParameters['nodeId'] = requestParameters['nodeId'];
|
|
288
|
+
}
|
|
289
|
+
if (requestParameters['agentId'] != null) {
|
|
290
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
291
|
+
}
|
|
292
|
+
if (requestParameters['idleBefore'] != null) {
|
|
293
|
+
queryParameters['idleBefore'] = requestParameters['idleBefore'].toISOString();
|
|
294
|
+
}
|
|
295
|
+
if (requestParameters['sort'] != null) {
|
|
296
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
297
|
+
}
|
|
298
|
+
if (requestParameters['page'] != null) {
|
|
299
|
+
queryParameters['page'] = requestParameters['page'];
|
|
300
|
+
}
|
|
301
|
+
if (requestParameters['limit'] != null) {
|
|
302
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
303
|
+
}
|
|
304
|
+
const headerParameters = {};
|
|
305
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
306
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
307
|
+
}
|
|
308
|
+
const response = await this.request({
|
|
309
|
+
path: `/node-groups/{groupId}/environments`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
310
|
+
method: 'GET',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
}, initOverrides);
|
|
314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupEnvironmentPageUioFromJSON)(jsonValue));
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Les environnements que les nœuds du groupe gardent pour des conversations, avec leurs compteurs par état. Demande `nodeGroup.read`.
|
|
318
|
+
* List the environments kept by the nodes of a group
|
|
319
|
+
*/
|
|
320
|
+
async listNodeGroupEnvironments(groupId, state, q, nodeId, agentId, idleBefore, sort, page, limit, initOverrides) {
|
|
321
|
+
const response = await this.listNodeGroupEnvironmentsRaw({ groupId: groupId, state: state, q: q, nodeId: nodeId, agentId: agentId, idleBefore: idleBefore, sort: sort, page: page, limit: limit }, initOverrides);
|
|
322
|
+
return await response.value();
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* En attente (avec leur place dans la file), en cours, ou terminées sur 24 h. Seules les exécutions des agents que l\'appelant peut lire sont listées. Demande `nodeGroup.read`.
|
|
326
|
+
* List the executions of a node group
|
|
327
|
+
*/
|
|
328
|
+
async listNodeGroupExecutionsRaw(requestParameters, initOverrides) {
|
|
329
|
+
if (requestParameters['groupId'] == null) {
|
|
330
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listNodeGroupExecutions().');
|
|
331
|
+
}
|
|
332
|
+
const queryParameters = {};
|
|
333
|
+
if (requestParameters['status'] != null) {
|
|
334
|
+
queryParameters['status'] = requestParameters['status'];
|
|
335
|
+
}
|
|
336
|
+
if (requestParameters['q'] != null) {
|
|
337
|
+
queryParameters['q'] = requestParameters['q'];
|
|
338
|
+
}
|
|
339
|
+
if (requestParameters['agentId'] != null) {
|
|
340
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
341
|
+
}
|
|
342
|
+
if (requestParameters['origin'] != null) {
|
|
343
|
+
queryParameters['origin'] = requestParameters['origin'];
|
|
344
|
+
}
|
|
345
|
+
if (requestParameters['waitingFor'] != null) {
|
|
346
|
+
queryParameters['waitingFor'] = requestParameters['waitingFor'];
|
|
347
|
+
}
|
|
348
|
+
if (requestParameters['nodeId'] != null) {
|
|
349
|
+
queryParameters['nodeId'] = requestParameters['nodeId'];
|
|
350
|
+
}
|
|
351
|
+
if (requestParameters['runtime'] != null) {
|
|
352
|
+
queryParameters['runtime'] = requestParameters['runtime'];
|
|
353
|
+
}
|
|
354
|
+
if (requestParameters['result'] != null) {
|
|
355
|
+
queryParameters['result'] = requestParameters['result'];
|
|
356
|
+
}
|
|
357
|
+
if (requestParameters['sort'] != null) {
|
|
358
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
359
|
+
}
|
|
360
|
+
if (requestParameters['page'] != null) {
|
|
361
|
+
queryParameters['page'] = requestParameters['page'];
|
|
362
|
+
}
|
|
363
|
+
if (requestParameters['limit'] != null) {
|
|
364
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
365
|
+
}
|
|
366
|
+
const headerParameters = {};
|
|
367
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
369
|
+
}
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: `/node-groups/{groupId}/executions`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupExecutionPageUioFromJSON)(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* En attente (avec leur place dans la file), en cours, ou terminées sur 24 h. Seules les exécutions des agents que l\'appelant peut lire sont listées. Demande `nodeGroup.read`.
|
|
380
|
+
* List the executions of a node group
|
|
381
|
+
*/
|
|
382
|
+
async listNodeGroupExecutions(groupId, status, q, agentId, origin, waitingFor, nodeId, runtime, result, sort, page, limit, initOverrides) {
|
|
383
|
+
const response = await this.listNodeGroupExecutionsRaw({ groupId: groupId, status: status, q: q, agentId: agentId, origin: origin, waitingFor: waitingFor, nodeId: nodeId, runtime: runtime, result: result, sort: sort, page: page, limit: limit }, initOverrides);
|
|
384
|
+
return await response.value();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Les nœuds du groupe, leurs emplacements pris, ce qui y tourne, leurs environnements et leurs autres groupes. Demande `nodeGroup.read`.
|
|
388
|
+
* List the nodes of a node group with their load
|
|
389
|
+
*/
|
|
390
|
+
async listNodeGroupNodesRaw(requestParameters, initOverrides) {
|
|
391
|
+
if (requestParameters['groupId'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listNodeGroupNodes().');
|
|
393
|
+
}
|
|
394
|
+
const queryParameters = {};
|
|
395
|
+
if (requestParameters['q'] != null) {
|
|
396
|
+
queryParameters['q'] = requestParameters['q'];
|
|
397
|
+
}
|
|
398
|
+
if (requestParameters['status'] != null) {
|
|
399
|
+
queryParameters['status'] = requestParameters['status'];
|
|
400
|
+
}
|
|
401
|
+
if (requestParameters['load'] != null) {
|
|
402
|
+
queryParameters['load'] = requestParameters['load'];
|
|
403
|
+
}
|
|
404
|
+
if (requestParameters['runtime'] != null) {
|
|
405
|
+
queryParameters['runtime'] = requestParameters['runtime'];
|
|
406
|
+
}
|
|
407
|
+
if (requestParameters['ownerUserId'] != null) {
|
|
408
|
+
queryParameters['ownerUserId'] = requestParameters['ownerUserId'];
|
|
409
|
+
}
|
|
410
|
+
if (requestParameters['sort'] != null) {
|
|
411
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
412
|
+
}
|
|
413
|
+
if (requestParameters['page'] != null) {
|
|
414
|
+
queryParameters['page'] = requestParameters['page'];
|
|
415
|
+
}
|
|
416
|
+
if (requestParameters['limit'] != null) {
|
|
417
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
418
|
+
}
|
|
419
|
+
const headerParameters = {};
|
|
420
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
421
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
422
|
+
}
|
|
423
|
+
const response = await this.request({
|
|
424
|
+
path: `/node-groups/{groupId}/nodes`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
425
|
+
method: 'GET',
|
|
426
|
+
headers: headerParameters,
|
|
427
|
+
query: queryParameters,
|
|
428
|
+
}, initOverrides);
|
|
429
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupNodePageUioFromJSON)(jsonValue));
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Les nœuds du groupe, leurs emplacements pris, ce qui y tourne, leurs environnements et leurs autres groupes. Demande `nodeGroup.read`.
|
|
433
|
+
* List the nodes of a node group with their load
|
|
434
|
+
*/
|
|
435
|
+
async listNodeGroupNodes(groupId, q, status, load, runtime, ownerUserId, sort, page, limit, initOverrides) {
|
|
436
|
+
const response = await this.listNodeGroupNodesRaw({ groupId: groupId, q: q, status: status, load: load, runtime: runtime, ownerUserId: ownerUserId, sort: sort, page: page, limit: limit }, initOverrides);
|
|
437
|
+
return await response.value();
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Les groupes de nœuds de l\'organisation, avec leurs nœuds (en ligne ou non), leurs emplacements et le nombre d\'agents rattachés. Demande `nodeGroup.read`.
|
|
441
|
+
* List the node groups of an organization
|
|
442
|
+
*/
|
|
443
|
+
async listNodeGroupsRaw(requestParameters, initOverrides) {
|
|
444
|
+
if (requestParameters['organizationId'] == null) {
|
|
445
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listNodeGroups().');
|
|
446
|
+
}
|
|
447
|
+
const queryParameters = {};
|
|
448
|
+
const headerParameters = {};
|
|
449
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
450
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
451
|
+
}
|
|
452
|
+
const response = await this.request({
|
|
453
|
+
path: `/organizations/{organizationId}/node-groups`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
454
|
+
method: 'GET',
|
|
455
|
+
headers: headerParameters,
|
|
456
|
+
query: queryParameters,
|
|
457
|
+
}, initOverrides);
|
|
458
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.NodeGroupSummaryUioFromJSON));
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Les groupes de nœuds de l\'organisation, avec leurs nœuds (en ligne ou non), leurs emplacements et le nombre d\'agents rattachés. Demande `nodeGroup.read`.
|
|
462
|
+
* List the node groups of an organization
|
|
463
|
+
*/
|
|
464
|
+
async listNodeGroups(organizationId, initOverrides) {
|
|
465
|
+
const response = await this.listNodeGroupsRaw({ organizationId: organizationId }, initOverrides);
|
|
466
|
+
return await response.value();
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Demande aux nœuds de supprimer ces environnements (ou tous les inactifs). Un environnement qu\'une exécution utilise n\'est pas libéré. Demande `nodeGroup.environment.release`.
|
|
470
|
+
* Release environments of a node group
|
|
471
|
+
*/
|
|
472
|
+
async releaseNodeGroupEnvironmentsRaw(requestParameters, initOverrides) {
|
|
473
|
+
if (requestParameters['groupId'] == null) {
|
|
474
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling releaseNodeGroupEnvironments().');
|
|
475
|
+
}
|
|
476
|
+
if (requestParameters['nodeGroupEnvironmentReleaseUio'] == null) {
|
|
477
|
+
throw new runtime.RequiredError('nodeGroupEnvironmentReleaseUio', 'Required parameter "nodeGroupEnvironmentReleaseUio" was null or undefined when calling releaseNodeGroupEnvironments().');
|
|
478
|
+
}
|
|
479
|
+
const queryParameters = {};
|
|
480
|
+
const headerParameters = {};
|
|
481
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
482
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
483
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
484
|
+
}
|
|
485
|
+
const response = await this.request({
|
|
486
|
+
path: `/node-groups/{groupId}/environments/release`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
487
|
+
method: 'POST',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
body: (0, index_1.NodeGroupEnvironmentReleaseUioToJSON)(requestParameters['nodeGroupEnvironmentReleaseUio']),
|
|
491
|
+
}, initOverrides);
|
|
492
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupBulkResultUioFromJSON)(jsonValue));
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Demande aux nœuds de supprimer ces environnements (ou tous les inactifs). Un environnement qu\'une exécution utilise n\'est pas libéré. Demande `nodeGroup.environment.release`.
|
|
496
|
+
* Release environments of a node group
|
|
497
|
+
*/
|
|
498
|
+
async releaseNodeGroupEnvironments(groupId, nodeGroupEnvironmentReleaseUio, initOverrides) {
|
|
499
|
+
const response = await this.releaseNodeGroupEnvironmentsRaw({ groupId: groupId, nodeGroupEnvironmentReleaseUio: nodeGroupEnvironmentReleaseUio }, initOverrides);
|
|
500
|
+
return await response.value();
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Retire le nœud du groupe. Demande `nodeGroup.update`.
|
|
504
|
+
* Remove a node from a node group
|
|
505
|
+
*/
|
|
506
|
+
async removeNodeGroupNodeRaw(requestParameters, initOverrides) {
|
|
507
|
+
if (requestParameters['groupId'] == null) {
|
|
508
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling removeNodeGroupNode().');
|
|
509
|
+
}
|
|
510
|
+
if (requestParameters['nodeId'] == null) {
|
|
511
|
+
throw new runtime.RequiredError('nodeId', 'Required parameter "nodeId" was null or undefined when calling removeNodeGroupNode().');
|
|
512
|
+
}
|
|
513
|
+
const queryParameters = {};
|
|
514
|
+
const headerParameters = {};
|
|
515
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
516
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
517
|
+
}
|
|
518
|
+
const response = await this.request({
|
|
519
|
+
path: `/node-groups/{groupId}/nodes/{nodeId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))).replace(`{${"nodeId"}}`, encodeURIComponent(String(requestParameters['nodeId']))),
|
|
520
|
+
method: 'DELETE',
|
|
521
|
+
headers: headerParameters,
|
|
522
|
+
query: queryParameters,
|
|
523
|
+
}, initOverrides);
|
|
524
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupDetailUioFromJSON)(jsonValue));
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Retire le nœud du groupe. Demande `nodeGroup.update`.
|
|
528
|
+
* Remove a node from a node group
|
|
529
|
+
*/
|
|
530
|
+
async removeNodeGroupNode(groupId, nodeId, initOverrides) {
|
|
531
|
+
const response = await this.removeNodeGroupNodeRaw({ groupId: groupId, nodeId: nodeId }, initOverrides);
|
|
532
|
+
return await response.value();
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Ces exécutions n\'attendent plus le nœud de leur environnement : le premier nœud libre du groupe les prend. Demande `nodeGroup.execution.manage`, sauf pour les exécutions des conversations de l\'appelant.
|
|
536
|
+
* Start executions elsewhere
|
|
537
|
+
*/
|
|
538
|
+
async startNodeGroupExecutionsElsewhereRaw(requestParameters, initOverrides) {
|
|
539
|
+
if (requestParameters['groupId'] == null) {
|
|
540
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling startNodeGroupExecutionsElsewhere().');
|
|
541
|
+
}
|
|
542
|
+
if (requestParameters['nodeGroupBulkIdsUio'] == null) {
|
|
543
|
+
throw new runtime.RequiredError('nodeGroupBulkIdsUio', 'Required parameter "nodeGroupBulkIdsUio" was null or undefined when calling startNodeGroupExecutionsElsewhere().');
|
|
544
|
+
}
|
|
545
|
+
const queryParameters = {};
|
|
546
|
+
const headerParameters = {};
|
|
547
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
548
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
549
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
550
|
+
}
|
|
551
|
+
const response = await this.request({
|
|
552
|
+
path: `/node-groups/{groupId}/executions/start-elsewhere`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
553
|
+
method: 'POST',
|
|
554
|
+
headers: headerParameters,
|
|
555
|
+
query: queryParameters,
|
|
556
|
+
body: (0, index_1.NodeGroupBulkIdsUioToJSON)(requestParameters['nodeGroupBulkIdsUio']),
|
|
557
|
+
}, initOverrides);
|
|
558
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupBulkResultUioFromJSON)(jsonValue));
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Ces exécutions n\'attendent plus le nœud de leur environnement : le premier nœud libre du groupe les prend. Demande `nodeGroup.execution.manage`, sauf pour les exécutions des conversations de l\'appelant.
|
|
562
|
+
* Start executions elsewhere
|
|
563
|
+
*/
|
|
564
|
+
async startNodeGroupExecutionsElsewhere(groupId, nodeGroupBulkIdsUio, initOverrides) {
|
|
565
|
+
const response = await this.startNodeGroupExecutionsElsewhereRaw({ groupId: groupId, nodeGroupBulkIdsUio: nodeGroupBulkIdsUio }, initOverrides);
|
|
566
|
+
return await response.value();
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Renomme le groupe ou change ses délais. Demande `nodeGroup.update`.
|
|
570
|
+
* Update a node group
|
|
571
|
+
*/
|
|
572
|
+
async updateNodeGroupRaw(requestParameters, initOverrides) {
|
|
573
|
+
if (requestParameters['groupId'] == null) {
|
|
574
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling updateNodeGroup().');
|
|
575
|
+
}
|
|
576
|
+
if (requestParameters['updateNodeGroupRequestUio'] == null) {
|
|
577
|
+
throw new runtime.RequiredError('updateNodeGroupRequestUio', 'Required parameter "updateNodeGroupRequestUio" was null or undefined when calling updateNodeGroup().');
|
|
578
|
+
}
|
|
579
|
+
const queryParameters = {};
|
|
580
|
+
const headerParameters = {};
|
|
581
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
582
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
583
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
584
|
+
}
|
|
585
|
+
const response = await this.request({
|
|
586
|
+
path: `/node-groups/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
587
|
+
method: 'PATCH',
|
|
588
|
+
headers: headerParameters,
|
|
589
|
+
query: queryParameters,
|
|
590
|
+
body: (0, index_1.UpdateNodeGroupRequestUioToJSON)(requestParameters['updateNodeGroupRequestUio']),
|
|
591
|
+
}, initOverrides);
|
|
592
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.NodeGroupDetailUioFromJSON)(jsonValue));
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Renomme le groupe ou change ses délais. Demande `nodeGroup.update`.
|
|
596
|
+
* Update a node group
|
|
597
|
+
*/
|
|
598
|
+
async updateNodeGroup(groupId, updateNodeGroupRequestUio, initOverrides) {
|
|
599
|
+
const response = await this.updateNodeGroupRaw({ groupId: groupId, updateNodeGroupRequestUio: updateNodeGroupRequestUio }, initOverrides);
|
|
600
|
+
return await response.value();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
exports.NodeGroupsApi = NodeGroupsApi;
|
|
604
|
+
/**
|
|
605
|
+
* @export
|
|
606
|
+
*/
|
|
607
|
+
exports.ListNodeGroupEnvironmentsStateEnum = {
|
|
608
|
+
Running: 'running',
|
|
609
|
+
Waiting: 'waiting',
|
|
610
|
+
Idle: 'idle',
|
|
611
|
+
Releasing: 'releasing'
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* @export
|
|
615
|
+
*/
|
|
616
|
+
exports.ListNodeGroupEnvironmentsSortEnum = {
|
|
617
|
+
Idle: 'idle',
|
|
618
|
+
Recent: 'recent'
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* @export
|
|
622
|
+
*/
|
|
623
|
+
exports.ListNodeGroupExecutionsStatusEnum = {
|
|
624
|
+
Pending: 'pending',
|
|
625
|
+
Running: 'running',
|
|
626
|
+
Done: 'done'
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* @export
|
|
630
|
+
*/
|
|
631
|
+
exports.ListNodeGroupExecutionsOriginEnum = {
|
|
632
|
+
Conversation: 'conversation',
|
|
633
|
+
Ticket: 'ticket',
|
|
634
|
+
Agent: 'agent',
|
|
635
|
+
Task: 'task'
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* @export
|
|
639
|
+
*/
|
|
640
|
+
exports.ListNodeGroupExecutionsWaitingForEnum = {
|
|
641
|
+
Free: 'free',
|
|
642
|
+
EnvBusy: 'env_busy',
|
|
643
|
+
EnvOffline: 'env_offline'
|
|
644
|
+
};
|
|
645
|
+
/**
|
|
646
|
+
* @export
|
|
647
|
+
*/
|
|
648
|
+
exports.ListNodeGroupExecutionsRuntimeEnum = {
|
|
649
|
+
Claude: 'claude',
|
|
650
|
+
Opencode: 'opencode'
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* @export
|
|
654
|
+
*/
|
|
655
|
+
exports.ListNodeGroupExecutionsResultEnum = {
|
|
656
|
+
Finished: 'finished',
|
|
657
|
+
Failed: 'failed',
|
|
658
|
+
Interrupted: 'interrupted'
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* @export
|
|
662
|
+
*/
|
|
663
|
+
exports.ListNodeGroupExecutionsSortEnum = {
|
|
664
|
+
Oldest: 'oldest',
|
|
665
|
+
Newest: 'newest',
|
|
666
|
+
Agent: 'agent'
|
|
667
|
+
};
|
|
668
|
+
/**
|
|
669
|
+
* @export
|
|
670
|
+
*/
|
|
671
|
+
exports.ListNodeGroupNodesStatusEnum = {
|
|
672
|
+
Online: 'online',
|
|
673
|
+
Offline: 'offline'
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* @export
|
|
677
|
+
*/
|
|
678
|
+
exports.ListNodeGroupNodesLoadEnum = {
|
|
679
|
+
Full: 'full',
|
|
680
|
+
Free: 'free'
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* @export
|
|
684
|
+
*/
|
|
685
|
+
exports.ListNodeGroupNodesRuntimeEnum = {
|
|
686
|
+
Claude: 'claude',
|
|
687
|
+
Opencode: 'opencode'
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* @export
|
|
691
|
+
*/
|
|
692
|
+
exports.ListNodeGroupNodesSortEnum = {
|
|
693
|
+
Load: 'load',
|
|
694
|
+
Name: 'name',
|
|
695
|
+
Environments: 'environments',
|
|
696
|
+
LastSeen: 'lastSeen'
|
|
697
|
+
};
|