@bpmnkit/api 0.0.8
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/README.md +150 -0
- package/dist/generated/admin-resources.d.ts +199 -0
- package/dist/generated/admin-resources.js +381 -0
- package/dist/generated/admin-types.d.ts +283 -0
- package/dist/generated/admin-types.js +4 -0
- package/dist/generated/resources.d.ts +1519 -0
- package/dist/generated/resources.js +2650 -0
- package/dist/generated/types.d.ts +11946 -0
- package/dist/generated/types.js +4 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/runtime/auth.d.ts +31 -0
- package/dist/runtime/auth.js +136 -0
- package/dist/runtime/cache.d.ts +13 -0
- package/dist/runtime/cache.js +48 -0
- package/dist/runtime/cache.test.d.ts +2 -0
- package/dist/runtime/cache.test.js +38 -0
- package/dist/runtime/client.d.ts +25 -0
- package/dist/runtime/client.js +33 -0
- package/dist/runtime/config.d.ts +15 -0
- package/dist/runtime/config.js +371 -0
- package/dist/runtime/errors.d.ts +53 -0
- package/dist/runtime/errors.js +101 -0
- package/dist/runtime/errors.test.d.ts +2 -0
- package/dist/runtime/errors.test.js +40 -0
- package/dist/runtime/events.d.ts +12 -0
- package/dist/runtime/events.js +48 -0
- package/dist/runtime/events.test.d.ts +2 -0
- package/dist/runtime/events.test.js +57 -0
- package/dist/runtime/http.d.ts +15 -0
- package/dist/runtime/http.js +210 -0
- package/dist/runtime/logger.d.ts +9 -0
- package/dist/runtime/logger.js +34 -0
- package/dist/runtime/relations.d.ts +43 -0
- package/dist/runtime/relations.js +54 -0
- package/dist/runtime/retry.d.ts +14 -0
- package/dist/runtime/retry.js +41 -0
- package/dist/runtime/retry.test.d.ts +2 -0
- package/dist/runtime/retry.test.js +46 -0
- package/dist/runtime/token-cache.d.ts +42 -0
- package/dist/runtime/token-cache.js +104 -0
- package/dist/runtime/types.d.ts +191 -0
- package/dist/runtime/types.js +2 -0
- package/dist/runtime/yaml.d.ts +14 -0
- package/dist/runtime/yaml.js +234 -0
- package/dist/runtime/yaml.test.d.ts +2 -0
- package/dist/runtime/yaml.test.js +93 -0
- package/package.json +31 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/generate.mjs
|
|
2
|
+
// Do not edit manually. Run `pnpm --filter @bpmnkit/api generate` to regenerate.
|
|
3
|
+
import { CamundaBaseClient } from "../runtime/client.js";
|
|
4
|
+
import { ResourceBase } from "../runtime/client.js";
|
|
5
|
+
// ── Meta ──
|
|
6
|
+
export class MetaResource extends ResourceBase {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* This endpoint only exposes egress IP addresses for the related services.
|
|
10
|
+
* Expected changes will be published through the API at least 24 hours in advance.
|
|
11
|
+
* We expect interested customers to periodically read this list from the API and reflect the changes in their systems.
|
|
12
|
+
* @see GET /meta/ip-ranges
|
|
13
|
+
*/
|
|
14
|
+
async getMeta() {
|
|
15
|
+
return this._http.request({
|
|
16
|
+
method: "GET",
|
|
17
|
+
path: "/meta/ip-ranges",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
// ── Members ──
|
|
22
|
+
export class MembersResource extends ResourceBase {
|
|
23
|
+
async getMembers() {
|
|
24
|
+
return this._http.request({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/members",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async updateMembers(email, body) {
|
|
30
|
+
return this._http.request({
|
|
31
|
+
method: "POST",
|
|
32
|
+
path: `/members/${email}`,
|
|
33
|
+
body,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async deleteMember(email) {
|
|
37
|
+
return this._http.request({
|
|
38
|
+
method: "DELETE",
|
|
39
|
+
path: `/members/${email}`,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// ── Clusters ──
|
|
44
|
+
export class ClustersResource extends ResourceBase {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* Get Secure Connectivity status for a cluster
|
|
48
|
+
* @see GET /clusters/{clusterUuid}/secure-connectivity
|
|
49
|
+
*/
|
|
50
|
+
async getSecureConnectivityStatus(clusterUuid) {
|
|
51
|
+
return this._http.request({
|
|
52
|
+
method: "GET",
|
|
53
|
+
path: `/clusters/${clusterUuid}/secure-connectivity`,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* Activates Secure Connectivity for a cluster
|
|
59
|
+
* @see POST /clusters/{clusterUuid}/secure-connectivity
|
|
60
|
+
*/
|
|
61
|
+
async activateSecureConnectivity(clusterUuid, body) {
|
|
62
|
+
return this._http.request({
|
|
63
|
+
method: "POST",
|
|
64
|
+
path: `/clusters/${clusterUuid}/secure-connectivity`,
|
|
65
|
+
body,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* Deactivates Secure Connectivity for a cluster
|
|
71
|
+
* @see DELETE /clusters/{clusterUuid}/secure-connectivity
|
|
72
|
+
*/
|
|
73
|
+
async deactivateSecureConnectivity(clusterUuid) {
|
|
74
|
+
return this._http.request({
|
|
75
|
+
method: "DELETE",
|
|
76
|
+
path: `/clusters/${clusterUuid}/secure-connectivity`,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
async getSecrets(clusterUuid) {
|
|
80
|
+
return this._http.request({
|
|
81
|
+
method: "GET",
|
|
82
|
+
path: `/clusters/${clusterUuid}/secrets`,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* Creates a new secret
|
|
88
|
+
* @see POST /clusters/{clusterUuid}/secrets
|
|
89
|
+
*/
|
|
90
|
+
async createSecret(clusterUuid, body) {
|
|
91
|
+
return this._http.request({
|
|
92
|
+
method: "POST",
|
|
93
|
+
path: `/clusters/${clusterUuid}/secrets`,
|
|
94
|
+
body,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* Updates a secret
|
|
100
|
+
* @see PUT /clusters/{clusterUuid}/secrets/{secretName}
|
|
101
|
+
*/
|
|
102
|
+
async updateSecret(clusterUuid, secretName, body) {
|
|
103
|
+
return this._http.request({
|
|
104
|
+
method: "PUT",
|
|
105
|
+
path: `/clusters/${clusterUuid}/secrets/${secretName}`,
|
|
106
|
+
body,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* Irreversibly deletes a secret
|
|
112
|
+
* @see DELETE /clusters/{clusterUuid}/secrets/{secretName}
|
|
113
|
+
*/
|
|
114
|
+
async deleteSecret(clusterUuid, secretName) {
|
|
115
|
+
return this._http.request({
|
|
116
|
+
method: "DELETE",
|
|
117
|
+
path: `/clusters/${clusterUuid}/secrets/${secretName}`,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
async getClusters() {
|
|
121
|
+
return this._http.request({
|
|
122
|
+
method: "GET",
|
|
123
|
+
path: "/clusters",
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async createCluster(body) {
|
|
127
|
+
return this._http.request({
|
|
128
|
+
method: "POST",
|
|
129
|
+
path: "/clusters",
|
|
130
|
+
body,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
async getCluster(clusterUuid) {
|
|
134
|
+
return this._http.request({
|
|
135
|
+
method: "GET",
|
|
136
|
+
path: `/clusters/${clusterUuid}`,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* Updates name or labels of a cluster identified by the given clusterUuid.
|
|
142
|
+
* @see PATCH /clusters/{clusterUuid}
|
|
143
|
+
*/
|
|
144
|
+
async updateCluster(clusterUuid, body) {
|
|
145
|
+
return this._http.request({
|
|
146
|
+
method: "PATCH",
|
|
147
|
+
path: `/clusters/${clusterUuid}`,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* Irreversibly deletes a cluster identified by the given clusterUuid.
|
|
154
|
+
* @see DELETE /clusters/{clusterUuid}
|
|
155
|
+
*/
|
|
156
|
+
async deleteCluster(clusterUuid) {
|
|
157
|
+
return this._http.request({
|
|
158
|
+
method: "DELETE",
|
|
159
|
+
path: `/clusters/${clusterUuid}`,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* upgrades a cluster identified by the given clusterUuid to the latest generation available.
|
|
165
|
+
* @see PUT /clusters/{clusterUuid}/upgrade
|
|
166
|
+
*/
|
|
167
|
+
async upgradeCluster(clusterUuid) {
|
|
168
|
+
return this._http.request({
|
|
169
|
+
method: "PUT",
|
|
170
|
+
path: `/clusters/${clusterUuid}/upgrade`,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* Gets all possible options to create a Camunda cluster.
|
|
176
|
+
* @see GET /clusters/parameters
|
|
177
|
+
*/
|
|
178
|
+
async getParameters() {
|
|
179
|
+
return this._http.request({
|
|
180
|
+
method: "GET",
|
|
181
|
+
path: "/clusters/parameters",
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* Updates the IP Allowlist rules for your cluster. Each entry in the array must be a valid comma separated list of CIDRs.
|
|
187
|
+
* @see PUT /clusters/{clusterUuid}/ipallowlist
|
|
188
|
+
*/
|
|
189
|
+
async updateIpAllowlist(clusterUuid, body) {
|
|
190
|
+
return this._http.request({
|
|
191
|
+
method: "PUT",
|
|
192
|
+
path: `/clusters/${clusterUuid}/ipallowlist`,
|
|
193
|
+
body,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* Updates the IP Whitelist rules for your cluster. Each entry in the array must be a valid comma separated list of CIDRs.
|
|
199
|
+
* THIS IS DEPRECATED AND WILL BE REMOVED FROM THE API IN JUNE 2025. USE /clusters/:clusterUuid/ipallowlist INSTEAD.
|
|
200
|
+
* @see PUT /clusters/{clusterUuid}/ipwhitelist
|
|
201
|
+
*/
|
|
202
|
+
async updateIpWhitelist(clusterUuid, body) {
|
|
203
|
+
return this._http.request({
|
|
204
|
+
method: "PUT",
|
|
205
|
+
path: `/clusters/${clusterUuid}/ipwhitelist`,
|
|
206
|
+
body,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* Resumes a 'Suspended' Cluster.
|
|
212
|
+
* @see PUT /clusters/{clusterUuid}/wake
|
|
213
|
+
*/
|
|
214
|
+
async wake(clusterUuid) {
|
|
215
|
+
return this._http.request({
|
|
216
|
+
method: "PUT",
|
|
217
|
+
path: `/clusters/${clusterUuid}/wake`,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
async getClients(clusterUuid) {
|
|
221
|
+
return this._http.request({
|
|
222
|
+
method: "GET",
|
|
223
|
+
path: `/clusters/${clusterUuid}/clients`,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
async createClient(clusterUuid, body) {
|
|
227
|
+
return this._http.request({
|
|
228
|
+
method: "POST",
|
|
229
|
+
path: `/clusters/${clusterUuid}/clients`,
|
|
230
|
+
body,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
async getClient(clusterUuid, clientId) {
|
|
234
|
+
return this._http.request({
|
|
235
|
+
method: "GET",
|
|
236
|
+
path: `/clusters/${clusterUuid}/clients/${clientId}`,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* Irreversibly deletes a cluster client.
|
|
242
|
+
* @see DELETE /clusters/{clusterUuid}/clients/{clientId}
|
|
243
|
+
*/
|
|
244
|
+
async deleteClient(clusterUuid, clientId) {
|
|
245
|
+
return this._http.request({
|
|
246
|
+
method: "DELETE",
|
|
247
|
+
path: `/clusters/${clusterUuid}/clients/${clientId}`,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* Activates External Monitoring for a cluster
|
|
253
|
+
* @see POST /clusters/{clusterUuid}/monitoring
|
|
254
|
+
*/
|
|
255
|
+
async activateMonitoring(clusterUuid) {
|
|
256
|
+
return this._http.request({
|
|
257
|
+
method: "POST",
|
|
258
|
+
path: `/clusters/${clusterUuid}/monitoring`,
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* Deactivates External Monitoring for a cluster
|
|
264
|
+
* @see DELETE /clusters/{clusterUuid}/monitoring
|
|
265
|
+
*/
|
|
266
|
+
async deactivateMonitoring(clusterUuid) {
|
|
267
|
+
return this._http.request({
|
|
268
|
+
method: "DELETE",
|
|
269
|
+
path: `/clusters/${clusterUuid}/monitoring`,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* Get all External Monitoring clients for a cluster
|
|
275
|
+
* @see GET /clusters/{clusterUuid}/monitoring/clients
|
|
276
|
+
*/
|
|
277
|
+
async getMonitoringClients(clusterUuid) {
|
|
278
|
+
return this._http.request({
|
|
279
|
+
method: "GET",
|
|
280
|
+
path: `/clusters/${clusterUuid}/monitoring/clients`,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* Creates a new External Monitoring client
|
|
286
|
+
* @see POST /clusters/{clusterUuid}/monitoring/clients
|
|
287
|
+
*/
|
|
288
|
+
async createMonitoringClient(clusterUuid, body) {
|
|
289
|
+
return this._http.request({
|
|
290
|
+
method: "POST",
|
|
291
|
+
path: `/clusters/${clusterUuid}/monitoring/clients`,
|
|
292
|
+
body,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* Rotates the password for an External Monitoring client
|
|
298
|
+
* @see POST /clusters/{clusterUuid}/monitoring/clients/{clientUuid}/rotate
|
|
299
|
+
*/
|
|
300
|
+
async rotateMonitoringClientPassword(clusterUuid, clientUuid) {
|
|
301
|
+
return this._http.request({
|
|
302
|
+
method: "POST",
|
|
303
|
+
path: `/clusters/${clusterUuid}/monitoring/clients/${clientUuid}/rotate`,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* Deletes an External Monitoring client
|
|
309
|
+
* @see DELETE /clusters/{clusterUuid}/monitoring/clients/{clientUuid}
|
|
310
|
+
*/
|
|
311
|
+
async deleteMonitoringClient(clusterUuid, clientUuid) {
|
|
312
|
+
return this._http.request({
|
|
313
|
+
method: "DELETE",
|
|
314
|
+
path: `/clusters/${clusterUuid}/monitoring/clients/${clientUuid}`,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
async getBackups(clusterUuid) {
|
|
318
|
+
return this._http.request({
|
|
319
|
+
method: "GET",
|
|
320
|
+
path: `/clusters/${clusterUuid}/backups`,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* Creates a new backup
|
|
326
|
+
* @see POST /clusters/{clusterUuid}/backups
|
|
327
|
+
*/
|
|
328
|
+
async createBackup(clusterUuid) {
|
|
329
|
+
return this._http.request({
|
|
330
|
+
method: "POST",
|
|
331
|
+
path: `/clusters/${clusterUuid}/backups`,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* Irreversibly deletes a cluster
|
|
337
|
+
* @see DELETE /clusters/{clusterUuid}/backups/{backupId}
|
|
338
|
+
*/
|
|
339
|
+
async deleteBackup(clusterUuid, backupId) {
|
|
340
|
+
return this._http.request({
|
|
341
|
+
method: "DELETE",
|
|
342
|
+
path: `/clusters/${clusterUuid}/backups/${backupId}`,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
// ── Activity ──
|
|
347
|
+
export class ActivityResource extends ResourceBase {
|
|
348
|
+
async getJson() {
|
|
349
|
+
return this._http.request({
|
|
350
|
+
method: "GET",
|
|
351
|
+
path: "/activity/json",
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
async getCsv() {
|
|
355
|
+
return this._http.request({
|
|
356
|
+
method: "GET",
|
|
357
|
+
path: "/activity/csv",
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Camunda Admin API client.
|
|
363
|
+
*/
|
|
364
|
+
export class AdminApiClient extends CamundaBaseClient {
|
|
365
|
+
/** Meta operations */
|
|
366
|
+
meta;
|
|
367
|
+
/** Members operations */
|
|
368
|
+
members;
|
|
369
|
+
/** Clusters operations */
|
|
370
|
+
clusters;
|
|
371
|
+
/** Activity operations */
|
|
372
|
+
activity;
|
|
373
|
+
constructor(config = {}) {
|
|
374
|
+
super(config);
|
|
375
|
+
this.meta = new MetaResource(this.http);
|
|
376
|
+
this.members = new MembersResource(this.http);
|
|
377
|
+
this.clusters = new ClustersResource(this.http);
|
|
378
|
+
this.activity = new ActivityResource(this.http);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
//# sourceMappingURL=admin-resources.js.map
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
export interface MetaDto {
|
|
2
|
+
"web-modeler": Array<string>;
|
|
3
|
+
}
|
|
4
|
+
export type OrganizationRole = "member" | "admin" | "organizationadmin" | "organizationowner" | "owner" | "supportagent" | "operationsengineer" | "taskuser" | "analyst" | "developer" | "visitor" | "modeler";
|
|
5
|
+
export interface Member {
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
roles: Array<"member" | "admin" | "organizationadmin" | "organizationowner" | "owner" | "supportagent" | "operationsengineer" | "taskuser" | "analyst" | "developer" | "visitor" | "modeler">;
|
|
9
|
+
invitePending: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type AssignableOrganizationRoleType = "admin" | "operationsengineer" | "taskuser" | "analyst" | "developer" | "visitor" | "modeler";
|
|
12
|
+
export interface PostMemberBody {
|
|
13
|
+
orgRoles: Array<"admin" | "operationsengineer" | "taskuser" | "analyst" | "developer" | "visitor" | "modeler">;
|
|
14
|
+
}
|
|
15
|
+
export interface SecureConnectivityDto {
|
|
16
|
+
status: {
|
|
17
|
+
privateEndpoint: {
|
|
18
|
+
status: string;
|
|
19
|
+
"type": string;
|
|
20
|
+
service: string;
|
|
21
|
+
region: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
connectivity: {
|
|
25
|
+
"private": {
|
|
26
|
+
allowedPrincipals: Array<string>;
|
|
27
|
+
allowedRegions: Array<string>;
|
|
28
|
+
};
|
|
29
|
+
"type": string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface ClusterSecrets {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CreateSecretBody {
|
|
36
|
+
secretName: string;
|
|
37
|
+
secretValue: string;
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateSecretBody {
|
|
40
|
+
secretValue: string;
|
|
41
|
+
}
|
|
42
|
+
export type ClusterStatus = "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
43
|
+
/** Describing a Camunda cluster running in your organization. For reference, use the UUID. */
|
|
44
|
+
export interface Cluster {
|
|
45
|
+
/** The ID used in all further API operations referencing your cluster. */
|
|
46
|
+
uuid: string;
|
|
47
|
+
name: string;
|
|
48
|
+
/** Optional description for the cluster (max 150 characters). */
|
|
49
|
+
description?: string;
|
|
50
|
+
ownerId: string;
|
|
51
|
+
created: string;
|
|
52
|
+
/** Also called `ClusterPlanType`, this describes the hardware used to run your Camunda cluster. */
|
|
53
|
+
planType: {
|
|
54
|
+
name: string;
|
|
55
|
+
uuid: string;
|
|
56
|
+
};
|
|
57
|
+
/** The data center where your Camunda cluster is running. */
|
|
58
|
+
region: {
|
|
59
|
+
name: string;
|
|
60
|
+
uuid: string;
|
|
61
|
+
};
|
|
62
|
+
/** The data center where your backups are stored. Only available if the Sales Plan supports this. (Enterprise) */
|
|
63
|
+
backupRegion?: {
|
|
64
|
+
name: string;
|
|
65
|
+
uuid: string;
|
|
66
|
+
};
|
|
67
|
+
/** The version of Camunda running on your cluster. */
|
|
68
|
+
generation: {
|
|
69
|
+
name: string;
|
|
70
|
+
uuid: string;
|
|
71
|
+
};
|
|
72
|
+
/** The software channel your cluster is running on. */
|
|
73
|
+
channel: {
|
|
74
|
+
name: string;
|
|
75
|
+
uuid: string;
|
|
76
|
+
};
|
|
77
|
+
/** The cluster will automatically be updated by Camunda when a new C8 version is released
|
|
78
|
+
If the cluster you want to create is running on a non-stable Channel passing this property will be ignored! */
|
|
79
|
+
autoUpdate: boolean;
|
|
80
|
+
/** DEPRECATED: this field is going to be removed in June 2025, please use ipallowlist instead
|
|
81
|
+
|
|
82
|
+
the IP Whitelist rules for your cluster - will only be returned if your organization has the feature enabled and the client you are using has the permission to see it. */
|
|
83
|
+
ipwhitelist?: Array<{
|
|
84
|
+
description: string;
|
|
85
|
+
ip: string;
|
|
86
|
+
}>;
|
|
87
|
+
/** the IP Allowlist rules for your cluster - will only be returned if your organization has the feature enabled and the client you are using has the permission to see it. */
|
|
88
|
+
ipallowlist?: Array<{
|
|
89
|
+
description: string;
|
|
90
|
+
ip: string;
|
|
91
|
+
}>;
|
|
92
|
+
/** A health indicator for your Camunda cluster. Each of the components have their own state. The combined state is in the field `ready`. */
|
|
93
|
+
status: {
|
|
94
|
+
connectorsStatus?: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
95
|
+
optimizeStatus?: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
96
|
+
tasklistStatus?: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
97
|
+
operateStatus?: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
98
|
+
zeebeStatus?: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
99
|
+
ready: "Creating" | "Healthy" | "Unhealthy" | "Updating" | "Resuming" | "Suspended";
|
|
100
|
+
};
|
|
101
|
+
/** Endpoints for the components running in your Camunda cluster. */
|
|
102
|
+
links: {
|
|
103
|
+
oauth?: string;
|
|
104
|
+
connectors?: string;
|
|
105
|
+
console?: string;
|
|
106
|
+
identity?: string;
|
|
107
|
+
optimize?: string;
|
|
108
|
+
tasklist?: string;
|
|
109
|
+
operate?: string;
|
|
110
|
+
zeebe?: string;
|
|
111
|
+
};
|
|
112
|
+
labels?: Array<string>;
|
|
113
|
+
}
|
|
114
|
+
export type CamundaClusterStage = "dev" | "test" | "stage" | "prod";
|
|
115
|
+
export type ClusterEncryptionKey = "Software" | "Hardware" | "Provider" | "External";
|
|
116
|
+
/** Used to create a cluster through this API. All necessary values can be retrieved from the <pre>/clusters/parameters</pre> endpoint. */
|
|
117
|
+
export interface CreateClusterBody {
|
|
118
|
+
/** The name of your new cluster. */
|
|
119
|
+
name: string;
|
|
120
|
+
/** Optional description for the cluster (max 150 characters). */
|
|
121
|
+
description?: string;
|
|
122
|
+
/** The planType (hardware spec) to use. */
|
|
123
|
+
planTypeId: string;
|
|
124
|
+
/** The channel (software spec) to use. */
|
|
125
|
+
channelId: string;
|
|
126
|
+
/** The generation (software version) to use. */
|
|
127
|
+
generationId: string;
|
|
128
|
+
/** The data center to use. */
|
|
129
|
+
regionId: string;
|
|
130
|
+
/** The backup region to choose. Only available if the Sales Plan supports this. (Enterprise) */
|
|
131
|
+
backupRegionId?: string;
|
|
132
|
+
/** If set to false, no automatic updates will be performed on your cluster. */
|
|
133
|
+
autoUpdate?: boolean;
|
|
134
|
+
stageLabel?: "dev" | "test" | "stage" | "prod";
|
|
135
|
+
encryption?: "Software" | "Hardware" | "Provider" | "External";
|
|
136
|
+
/** Optional number uf hardware packages, defaults to 1. Only availabe on request and for Advanced offering cluster types. */
|
|
137
|
+
hardwarePackages?: number;
|
|
138
|
+
}
|
|
139
|
+
export interface GenerationUpgradeForClusterDto {
|
|
140
|
+
cluster: {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
};
|
|
144
|
+
oldGeneration: {
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
};
|
|
148
|
+
newGeneration: {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
};
|
|
152
|
+
orgId: string;
|
|
153
|
+
}
|
|
154
|
+
/** Used to update a cluster through this API. */
|
|
155
|
+
export interface UpdateClusterBody {
|
|
156
|
+
/** The name of your cluster. */
|
|
157
|
+
name?: string;
|
|
158
|
+
/** Optional description for the cluster (max 150 characters). */
|
|
159
|
+
description?: string;
|
|
160
|
+
stageLabel?: "dev" | "test" | "stage" | "prod";
|
|
161
|
+
/** Optional number uf hardware packages, defaults to 1. Only availabe on request and for Advanced offering cluster types. */
|
|
162
|
+
numberOfAllocatedHwPackages?: number;
|
|
163
|
+
}
|
|
164
|
+
/** Describes the different options to create a Camunda cluster. */
|
|
165
|
+
export interface Parameters {
|
|
166
|
+
channels: Array<{
|
|
167
|
+
allowedGenerations: Array<{
|
|
168
|
+
name: string;
|
|
169
|
+
uuid: string;
|
|
170
|
+
}>;
|
|
171
|
+
defaultGeneration: {
|
|
172
|
+
name: string;
|
|
173
|
+
uuid: string;
|
|
174
|
+
};
|
|
175
|
+
name: string;
|
|
176
|
+
uuid: string;
|
|
177
|
+
}>;
|
|
178
|
+
clusterPlanTypes: Array<{
|
|
179
|
+
name: string;
|
|
180
|
+
uuid: string;
|
|
181
|
+
}>;
|
|
182
|
+
regions: Array<{
|
|
183
|
+
backups?: Array<{
|
|
184
|
+
regions: Array<{
|
|
185
|
+
label: string;
|
|
186
|
+
id: string;
|
|
187
|
+
}>;
|
|
188
|
+
uuid: string;
|
|
189
|
+
}>;
|
|
190
|
+
provider: string;
|
|
191
|
+
name: string;
|
|
192
|
+
uuid: string;
|
|
193
|
+
}>;
|
|
194
|
+
}
|
|
195
|
+
export interface IpAllowListBody {
|
|
196
|
+
ipallowlist: Array<{
|
|
197
|
+
description: string;
|
|
198
|
+
ip: string;
|
|
199
|
+
}>;
|
|
200
|
+
}
|
|
201
|
+
export interface IpWhiteListBody {
|
|
202
|
+
ipwhitelist: Array<{
|
|
203
|
+
description: string;
|
|
204
|
+
ip: string;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
|
207
|
+
export interface ClusterClient {
|
|
208
|
+
name: string;
|
|
209
|
+
clientId: string;
|
|
210
|
+
permissions: Array<"Zeebe" | "Operate" | "Tasklist" | "Optimize" | "Secrets">;
|
|
211
|
+
}
|
|
212
|
+
export interface CreatedClusterClient {
|
|
213
|
+
name: string;
|
|
214
|
+
uuid: string;
|
|
215
|
+
clientId: string;
|
|
216
|
+
clientSecret: string;
|
|
217
|
+
permissions: Array<string>;
|
|
218
|
+
links?: {
|
|
219
|
+
oauth?: string;
|
|
220
|
+
console?: string;
|
|
221
|
+
connectors?: string;
|
|
222
|
+
optimize?: string;
|
|
223
|
+
tasklist?: string;
|
|
224
|
+
operate?: string;
|
|
225
|
+
zeebe?: string;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
/** if no permissions are passed, the client will be created with all the permissions available at the time of creation */
|
|
229
|
+
export interface CreateClusterClientBody {
|
|
230
|
+
clientName: string;
|
|
231
|
+
permissions?: Array<"Zeebe" | "Operate" | "Tasklist" | "Optimize" | "Secrets">;
|
|
232
|
+
}
|
|
233
|
+
export interface ClusterClientConnectionDetails {
|
|
234
|
+
name: string;
|
|
235
|
+
ZEEBE_ADDRESS: string;
|
|
236
|
+
ZEEBE_CLIENT_ID: string;
|
|
237
|
+
ZEEBE_AUTHORIZATION_SERVER_URL: string;
|
|
238
|
+
}
|
|
239
|
+
export interface ByomStatus {
|
|
240
|
+
metricsEndpoint: {
|
|
241
|
+
target: string;
|
|
242
|
+
scheme: string;
|
|
243
|
+
path: string;
|
|
244
|
+
};
|
|
245
|
+
conditions: Array<unknown>;
|
|
246
|
+
}
|
|
247
|
+
export interface ByomClientDto {
|
|
248
|
+
uuid: string;
|
|
249
|
+
name: string;
|
|
250
|
+
username: string;
|
|
251
|
+
created: string;
|
|
252
|
+
lastUsed: string;
|
|
253
|
+
createdBy: string;
|
|
254
|
+
createdByName: string;
|
|
255
|
+
}
|
|
256
|
+
export type BackupStatus = "In progress" | "Failed" | "Complete" | "-";
|
|
257
|
+
export interface BackupDto {
|
|
258
|
+
uuid: string;
|
|
259
|
+
name: string;
|
|
260
|
+
created: string;
|
|
261
|
+
completed: string;
|
|
262
|
+
status: "In progress" | "Failed" | "Complete" | "-";
|
|
263
|
+
zeebeStatus: "In progress" | "Failed" | "Complete" | "-";
|
|
264
|
+
tasklistStatus: "In progress" | "Failed" | "Complete" | "-";
|
|
265
|
+
operateStatus: "In progress" | "Failed" | "Complete" | "-";
|
|
266
|
+
optimizeStatus: "In progress" | "Failed" | "Complete" | "-";
|
|
267
|
+
}
|
|
268
|
+
export interface AuditDto {
|
|
269
|
+
service: string;
|
|
270
|
+
orgId: string;
|
|
271
|
+
timestamp?: number;
|
|
272
|
+
audit: string;
|
|
273
|
+
auditType: "c" | "r" | "u" | "d";
|
|
274
|
+
entity: string;
|
|
275
|
+
entityId: string;
|
|
276
|
+
parentEntity?: string;
|
|
277
|
+
parentEntityId?: string;
|
|
278
|
+
userId: string;
|
|
279
|
+
entityAttribute?: string;
|
|
280
|
+
entityAttributeValueFrom?: string;
|
|
281
|
+
entityAttributeValueTo?: string;
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=admin-types.d.ts.map
|