@camunda8/orchestration-cluster-api 10.0.0-alpha.27 → 10.0.0-alpha.29
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/CHANGELOG.md +20 -0
- package/dist/{chunk-JXLQEQ7J.js → chunk-NRW5BD5X.js} +443 -11
- package/dist/chunk-NRW5BD5X.js.map +1 -0
- package/dist/fp/index.cjs +860 -132
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.d.cts +1 -1
- package/dist/fp/index.d.ts +1 -1
- package/dist/fp/index.js +1 -1
- package/dist/{index-BM6Qesi8.d.cts → index-B-qNewsF.d.cts} +1147 -70
- package/dist/{index-k-KjzBzJ.d.ts → index-CZQ--93q.d.ts} +1147 -70
- package/dist/index.cjs +861 -133
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-MZNYXG52.js → zod.gen-VUGH5AQW.js} +399 -103
- package/dist/zod.gen-VUGH5AQW.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-JXLQEQ7J.js.map +0 -1
- package/dist/zod.gen-MZNYXG52.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# [10.0.0-alpha.29](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.28...v10.0.0-alpha.29) (2026-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add example coverage for restoreAsClusterAdmin, getClusterTopology ([#433](https://github.com/camunda/orchestration-cluster-api-js/issues/433)) ([fab79dc](https://github.com/camunda/orchestration-cluster-api-js/commit/fab79dc97b29c9dcc0c95f30833c832c690a0d6a)), closes [#432](https://github.com/camunda/orchestration-cluster-api-js/issues/432)
|
|
7
|
+
|
|
8
|
+
# [10.0.0-alpha.28](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.27...v10.0.0-alpha.28) (2026-08-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **examples:** group plannedChanges by physical tenant ([d494ce7](https://github.com/camunda/orchestration-cluster-api-js/commit/d494ce716fa83a6ef4d406dd77d9e0ffc0797f35))
|
|
14
|
+
* **examples:** group plannedChanges by physical tenant ([525c176](https://github.com/camunda/orchestration-cluster-api-js/commit/525c1760c6f9fe6f7ef0efb06fd6eefa95f2cc8d))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **examples:** add cluster admin and history backup example coverage ([185071c](https://github.com/camunda/orchestration-cluster-api-js/commit/185071c9a62eb7d8cf24f903ca36d66342c4e2bf))
|
|
20
|
+
|
|
1
21
|
# [10.0.0-alpha.27](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.26...v10.0.0-alpha.27) (2026-08-12)
|
|
2
22
|
|
|
3
23
|
|
|
@@ -1731,6 +1731,38 @@ var getRuntimeBackup = (options) => (options.client ?? client).get({
|
|
|
1731
1731
|
url: "/backups/runtime/{backupId}",
|
|
1732
1732
|
...options
|
|
1733
1733
|
});
|
|
1734
|
+
var listHistoryBackups = (options) => (options?.client ?? client).get({
|
|
1735
|
+
requestValidator: void 0,
|
|
1736
|
+
responseValidator: void 0,
|
|
1737
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1738
|
+
url: "/backups/history",
|
|
1739
|
+
...options
|
|
1740
|
+
});
|
|
1741
|
+
var takeHistoryBackup = (options) => (options.client ?? client).post({
|
|
1742
|
+
requestValidator: void 0,
|
|
1743
|
+
responseValidator: void 0,
|
|
1744
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1745
|
+
url: "/backups/history",
|
|
1746
|
+
...options,
|
|
1747
|
+
headers: {
|
|
1748
|
+
"Content-Type": "application/json",
|
|
1749
|
+
...options.headers
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
var deleteHistoryBackup = (options) => (options.client ?? client).delete({
|
|
1753
|
+
requestValidator: void 0,
|
|
1754
|
+
responseValidator: void 0,
|
|
1755
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1756
|
+
url: "/backups/history/{backupId}",
|
|
1757
|
+
...options
|
|
1758
|
+
});
|
|
1759
|
+
var getHistoryBackup = (options) => (options.client ?? client).get({
|
|
1760
|
+
requestValidator: void 0,
|
|
1761
|
+
responseValidator: void 0,
|
|
1762
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1763
|
+
url: "/backups/history/{backupId}",
|
|
1764
|
+
...options
|
|
1765
|
+
});
|
|
1734
1766
|
var searchBatchOperationItems = (options) => (options?.client ?? client).post({
|
|
1735
1767
|
requestValidator: void 0,
|
|
1736
1768
|
responseValidator: void 0,
|
|
@@ -3179,12 +3211,6 @@ var getStatus = (options) => (options?.client ?? client).get({
|
|
|
3179
3211
|
url: "/status",
|
|
3180
3212
|
...options
|
|
3181
3213
|
});
|
|
3182
|
-
var getClusterStatus = (options) => (options?.client ?? client).get({
|
|
3183
|
-
requestValidator: void 0,
|
|
3184
|
-
responseValidator: void 0,
|
|
3185
|
-
url: "/cluster/v2/status",
|
|
3186
|
-
...options
|
|
3187
|
-
});
|
|
3188
3214
|
var getUsageMetrics = (options) => (options.client ?? client).get({
|
|
3189
3215
|
requestValidator: void 0,
|
|
3190
3216
|
responseValidator: void 0,
|
|
@@ -3403,6 +3429,37 @@ var restore = (options) => (options.client ?? client).post({
|
|
|
3403
3429
|
...options.headers
|
|
3404
3430
|
}
|
|
3405
3431
|
});
|
|
3432
|
+
var changeClusterModeAsClusterAdmin = (options) => (options.client ?? client).patch({
|
|
3433
|
+
requestValidator: void 0,
|
|
3434
|
+
responseValidator: void 0,
|
|
3435
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3436
|
+
url: "/cluster/v2/mode",
|
|
3437
|
+
...options
|
|
3438
|
+
});
|
|
3439
|
+
var restoreAsClusterAdmin = (options) => (options.client ?? client).post({
|
|
3440
|
+
requestValidator: void 0,
|
|
3441
|
+
responseValidator: void 0,
|
|
3442
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3443
|
+
url: "/cluster/v2/restore",
|
|
3444
|
+
...options,
|
|
3445
|
+
headers: {
|
|
3446
|
+
"Content-Type": "application/json",
|
|
3447
|
+
...options.headers
|
|
3448
|
+
}
|
|
3449
|
+
});
|
|
3450
|
+
var getClusterStatus = (options) => (options?.client ?? client).get({
|
|
3451
|
+
requestValidator: void 0,
|
|
3452
|
+
responseValidator: void 0,
|
|
3453
|
+
url: "/cluster/v2/status",
|
|
3454
|
+
...options
|
|
3455
|
+
});
|
|
3456
|
+
var getClusterTopology = (options) => (options?.client ?? client).get({
|
|
3457
|
+
requestValidator: void 0,
|
|
3458
|
+
responseValidator: void 0,
|
|
3459
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3460
|
+
url: "/cluster/v2/topology",
|
|
3461
|
+
...options
|
|
3462
|
+
});
|
|
3406
3463
|
var createUser = (options) => (options.client ?? client).post({
|
|
3407
3464
|
requestValidator: void 0,
|
|
3408
3465
|
responseValidator: void 0,
|
|
@@ -4917,7 +4974,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
4917
4974
|
}
|
|
4918
4975
|
|
|
4919
4976
|
// src/runtime/version.ts
|
|
4920
|
-
var packageVersion = "10.0.0-alpha.
|
|
4977
|
+
var packageVersion = "10.0.0-alpha.29";
|
|
4921
4978
|
|
|
4922
4979
|
// src/runtime/supportLogger.ts
|
|
4923
4980
|
var NoopSupportLogger = class {
|
|
@@ -6632,7 +6689,7 @@ function deepFreeze2(obj) {
|
|
|
6632
6689
|
}
|
|
6633
6690
|
return obj;
|
|
6634
6691
|
}
|
|
6635
|
-
var VOID_RESPONSES = /* @__PURE__ */ new Set(["zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zDeleteRuntimeBackupStateResponse", "zDeleteRuntimeBackupResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zPauseExportingResponse", "zResumeExportingResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zAssignProcessInstanceBusinessIdResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zResumeProcessInstanceResponse", "zSuspendProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
|
|
6692
|
+
var VOID_RESPONSES = /* @__PURE__ */ new Set(["zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zDeleteRuntimeBackupStateResponse", "zDeleteRuntimeBackupResponse", "zDeleteHistoryBackupResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zPauseExportingResponse", "zResumeExportingResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zAssignProcessInstanceBusinessIdResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zResumeProcessInstanceResponse", "zSuspendProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
|
|
6636
6693
|
var CancelError = class extends Error {
|
|
6637
6694
|
constructor() {
|
|
6638
6695
|
super("Cancelled");
|
|
@@ -6936,7 +6993,7 @@ var CamundaClient = class {
|
|
|
6936
6993
|
_schemasPromise = null;
|
|
6937
6994
|
_loadSchemas() {
|
|
6938
6995
|
if (!this._schemasPromise) {
|
|
6939
|
-
this._schemasPromise = import("./zod.gen-
|
|
6996
|
+
this._schemasPromise = import("./zod.gen-VUGH5AQW.js");
|
|
6940
6997
|
}
|
|
6941
6998
|
return this._schemasPromise;
|
|
6942
6999
|
}
|
|
@@ -8189,6 +8246,60 @@ var CamundaClient = class {
|
|
|
8189
8246
|
return this._invokeWithRetry(() => call(), { opId: "changeClusterMode", exempt: false, retryOverride: options?.retry });
|
|
8190
8247
|
});
|
|
8191
8248
|
}
|
|
8249
|
+
changeClusterModeAsClusterAdmin(arg, options) {
|
|
8250
|
+
return toCancelable2(async (signal) => {
|
|
8251
|
+
const { mode, physicalTenantId, dryRun } = arg || {};
|
|
8252
|
+
let envelope = {};
|
|
8253
|
+
envelope.query = { mode, physicalTenantId, dryRun };
|
|
8254
|
+
if (this._validation.settings.req !== "none") {
|
|
8255
|
+
const _schemas = await this._loadSchemas();
|
|
8256
|
+
if (envelope.query !== void 0) {
|
|
8257
|
+
const maybeQuery = await this._validation.gateRequest("changeClusterModeAsClusterAdmin", _schemas.zChangeClusterModeAsClusterAdminQuery, envelope.query);
|
|
8258
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
8259
|
+
}
|
|
8260
|
+
}
|
|
8261
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
8262
|
+
if (envelope.query) opts.query = envelope.query;
|
|
8263
|
+
const call = async () => {
|
|
8264
|
+
try {
|
|
8265
|
+
const _raw = await changeClusterModeAsClusterAdmin(opts);
|
|
8266
|
+
let data = this._evaluateResponse(_raw, "changeClusterModeAsClusterAdmin", (resp) => {
|
|
8267
|
+
const st = resp.status ?? resp.response?.status;
|
|
8268
|
+
if (!st) return void 0;
|
|
8269
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
8270
|
+
if (!candidate) return void 0;
|
|
8271
|
+
let prob = void 0;
|
|
8272
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
8273
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
8274
|
+
err.status = st;
|
|
8275
|
+
err.name = "HttpSdkError";
|
|
8276
|
+
if (prob) {
|
|
8277
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
8278
|
+
}
|
|
8279
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
8280
|
+
if (!isBp) err.nonRetryable = true;
|
|
8281
|
+
return err;
|
|
8282
|
+
});
|
|
8283
|
+
const _respSchemaName = "zChangeClusterModeAsClusterAdminResponse";
|
|
8284
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
8285
|
+
data = void 0;
|
|
8286
|
+
}
|
|
8287
|
+
if (this._validation.settings.res !== "none") {
|
|
8288
|
+
const _schemas = await this._loadSchemas();
|
|
8289
|
+
const _schema = _schemas.zChangeClusterModeAsClusterAdminResponse;
|
|
8290
|
+
if (_schema) {
|
|
8291
|
+
const maybeR = await this._validation.gateResponse("changeClusterModeAsClusterAdmin", _schema, data);
|
|
8292
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
8293
|
+
}
|
|
8294
|
+
}
|
|
8295
|
+
return data;
|
|
8296
|
+
} catch (e) {
|
|
8297
|
+
throw e;
|
|
8298
|
+
}
|
|
8299
|
+
};
|
|
8300
|
+
return this._invokeWithRetry(() => call(), { opId: "changeClusterModeAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
8301
|
+
});
|
|
8302
|
+
}
|
|
8192
8303
|
completeJob(arg, options) {
|
|
8193
8304
|
return toCancelable2(async (signal) => {
|
|
8194
8305
|
const { jobKey, ..._body } = arg || {};
|
|
@@ -9793,6 +9904,60 @@ var CamundaClient = class {
|
|
|
9793
9904
|
return this._invokeWithRetry(() => call(), { opId: "deleteGroup", exempt: false, retryOverride: options?.retry });
|
|
9794
9905
|
});
|
|
9795
9906
|
}
|
|
9907
|
+
deleteHistoryBackup(arg, options) {
|
|
9908
|
+
return toCancelable2(async (signal) => {
|
|
9909
|
+
const { backupId } = arg || {};
|
|
9910
|
+
let envelope = {};
|
|
9911
|
+
envelope.path = { backupId };
|
|
9912
|
+
if (this._validation.settings.req !== "none") {
|
|
9913
|
+
const _schemas = await this._loadSchemas();
|
|
9914
|
+
if (envelope.path !== void 0) {
|
|
9915
|
+
const maybePath = await this._validation.gateRequest("deleteHistoryBackup", _schemas.zDeleteHistoryBackupPath, envelope.path);
|
|
9916
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
9917
|
+
}
|
|
9918
|
+
}
|
|
9919
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
9920
|
+
if (envelope.path) opts.path = envelope.path;
|
|
9921
|
+
const call = async () => {
|
|
9922
|
+
try {
|
|
9923
|
+
const _raw = await deleteHistoryBackup(opts);
|
|
9924
|
+
let data = this._evaluateResponse(_raw, "deleteHistoryBackup", (resp) => {
|
|
9925
|
+
const st = resp.status ?? resp.response?.status;
|
|
9926
|
+
if (!st) return void 0;
|
|
9927
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
9928
|
+
if (!candidate) return void 0;
|
|
9929
|
+
let prob = void 0;
|
|
9930
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
9931
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
9932
|
+
err.status = st;
|
|
9933
|
+
err.name = "HttpSdkError";
|
|
9934
|
+
if (prob) {
|
|
9935
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
9936
|
+
}
|
|
9937
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
9938
|
+
if (!isBp) err.nonRetryable = true;
|
|
9939
|
+
return err;
|
|
9940
|
+
});
|
|
9941
|
+
const _respSchemaName = "zDeleteHistoryBackupResponse";
|
|
9942
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
9943
|
+
data = void 0;
|
|
9944
|
+
}
|
|
9945
|
+
if (this._validation.settings.res !== "none") {
|
|
9946
|
+
const _schemas = await this._loadSchemas();
|
|
9947
|
+
const _schema = _schemas.zDeleteHistoryBackupResponse;
|
|
9948
|
+
if (_schema) {
|
|
9949
|
+
const maybeR = await this._validation.gateResponse("deleteHistoryBackup", _schema, data);
|
|
9950
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
9951
|
+
}
|
|
9952
|
+
}
|
|
9953
|
+
return data;
|
|
9954
|
+
} catch (e) {
|
|
9955
|
+
throw e;
|
|
9956
|
+
}
|
|
9957
|
+
};
|
|
9958
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
9959
|
+
});
|
|
9960
|
+
}
|
|
9796
9961
|
deleteMappingRule(arg, options) {
|
|
9797
9962
|
return toCancelable2(async (signal) => {
|
|
9798
9963
|
const { mappingRuleId } = arg || {};
|
|
@@ -10944,6 +11109,49 @@ var CamundaClient = class {
|
|
|
10944
11109
|
return this._invokeWithRetry(() => call(), { opId: "getClusterStatus", exempt: false, retryOverride: options?.retry });
|
|
10945
11110
|
});
|
|
10946
11111
|
}
|
|
11112
|
+
getClusterTopology(arg, options) {
|
|
11113
|
+
return toCancelable2(async (signal) => {
|
|
11114
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
11115
|
+
const call = async () => {
|
|
11116
|
+
try {
|
|
11117
|
+
const _raw = await getClusterTopology(opts);
|
|
11118
|
+
let data = this._evaluateResponse(_raw, "getClusterTopology", (resp) => {
|
|
11119
|
+
const st = resp.status ?? resp.response?.status;
|
|
11120
|
+
if (!st) return void 0;
|
|
11121
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
11122
|
+
if (!candidate) return void 0;
|
|
11123
|
+
let prob = void 0;
|
|
11124
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
11125
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
11126
|
+
err.status = st;
|
|
11127
|
+
err.name = "HttpSdkError";
|
|
11128
|
+
if (prob) {
|
|
11129
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
11130
|
+
}
|
|
11131
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
11132
|
+
if (!isBp) err.nonRetryable = true;
|
|
11133
|
+
return err;
|
|
11134
|
+
});
|
|
11135
|
+
const _respSchemaName = "zGetClusterTopologyResponse";
|
|
11136
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
11137
|
+
data = void 0;
|
|
11138
|
+
}
|
|
11139
|
+
if (this._validation.settings.res !== "none") {
|
|
11140
|
+
const _schemas = await this._loadSchemas();
|
|
11141
|
+
const _schema = _schemas.zGetClusterTopologyResponse;
|
|
11142
|
+
if (_schema) {
|
|
11143
|
+
const maybeR = await this._validation.gateResponse("getClusterTopology", _schema, data);
|
|
11144
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
11145
|
+
}
|
|
11146
|
+
}
|
|
11147
|
+
return data;
|
|
11148
|
+
} catch (e) {
|
|
11149
|
+
throw e;
|
|
11150
|
+
}
|
|
11151
|
+
};
|
|
11152
|
+
return this._invokeWithRetry(() => call(), { opId: "getClusterTopology", exempt: false, retryOverride: options?.retry });
|
|
11153
|
+
});
|
|
11154
|
+
}
|
|
10947
11155
|
getDecisionDefinition(arg, consistencyManagement, options) {
|
|
10948
11156
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10949
11157
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -11685,6 +11893,60 @@ var CamundaClient = class {
|
|
|
11685
11893
|
return invoke();
|
|
11686
11894
|
});
|
|
11687
11895
|
}
|
|
11896
|
+
getHistoryBackup(arg, options) {
|
|
11897
|
+
return toCancelable2(async (signal) => {
|
|
11898
|
+
const { backupId } = arg || {};
|
|
11899
|
+
let envelope = {};
|
|
11900
|
+
envelope.path = { backupId };
|
|
11901
|
+
if (this._validation.settings.req !== "none") {
|
|
11902
|
+
const _schemas = await this._loadSchemas();
|
|
11903
|
+
if (envelope.path !== void 0) {
|
|
11904
|
+
const maybePath = await this._validation.gateRequest("getHistoryBackup", _schemas.zGetHistoryBackupPath, envelope.path);
|
|
11905
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
11906
|
+
}
|
|
11907
|
+
}
|
|
11908
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
11909
|
+
if (envelope.path) opts.path = envelope.path;
|
|
11910
|
+
const call = async () => {
|
|
11911
|
+
try {
|
|
11912
|
+
const _raw = await getHistoryBackup(opts);
|
|
11913
|
+
let data = this._evaluateResponse(_raw, "getHistoryBackup", (resp) => {
|
|
11914
|
+
const st = resp.status ?? resp.response?.status;
|
|
11915
|
+
if (!st) return void 0;
|
|
11916
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
11917
|
+
if (!candidate) return void 0;
|
|
11918
|
+
let prob = void 0;
|
|
11919
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
11920
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
11921
|
+
err.status = st;
|
|
11922
|
+
err.name = "HttpSdkError";
|
|
11923
|
+
if (prob) {
|
|
11924
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
11925
|
+
}
|
|
11926
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
11927
|
+
if (!isBp) err.nonRetryable = true;
|
|
11928
|
+
return err;
|
|
11929
|
+
});
|
|
11930
|
+
const _respSchemaName = "zGetHistoryBackupResponse";
|
|
11931
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
11932
|
+
data = void 0;
|
|
11933
|
+
}
|
|
11934
|
+
if (this._validation.settings.res !== "none") {
|
|
11935
|
+
const _schemas = await this._loadSchemas();
|
|
11936
|
+
const _schema = _schemas.zGetHistoryBackupResponse;
|
|
11937
|
+
if (_schema) {
|
|
11938
|
+
const maybeR = await this._validation.gateResponse("getHistoryBackup", _schema, data);
|
|
11939
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
11940
|
+
}
|
|
11941
|
+
}
|
|
11942
|
+
return data;
|
|
11943
|
+
} catch (e) {
|
|
11944
|
+
throw e;
|
|
11945
|
+
}
|
|
11946
|
+
};
|
|
11947
|
+
return this._invokeWithRetry(() => call(), { opId: "getHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
11948
|
+
});
|
|
11949
|
+
}
|
|
11688
11950
|
getIncident(arg, consistencyManagement, options) {
|
|
11689
11951
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11690
11952
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -13801,6 +14063,60 @@ var CamundaClient = class {
|
|
|
13801
14063
|
return invoke();
|
|
13802
14064
|
});
|
|
13803
14065
|
}
|
|
14066
|
+
listHistoryBackups(arg, options) {
|
|
14067
|
+
return toCancelable2(async (signal) => {
|
|
14068
|
+
const { prefix, verbose } = arg || {};
|
|
14069
|
+
let envelope = {};
|
|
14070
|
+
envelope.query = { prefix, verbose };
|
|
14071
|
+
if (this._validation.settings.req !== "none") {
|
|
14072
|
+
const _schemas = await this._loadSchemas();
|
|
14073
|
+
if (envelope.query !== void 0) {
|
|
14074
|
+
const maybeQuery = await this._validation.gateRequest("listHistoryBackups", _schemas.zListHistoryBackupsQuery, envelope.query);
|
|
14075
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14076
|
+
}
|
|
14077
|
+
}
|
|
14078
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14079
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14080
|
+
const call = async () => {
|
|
14081
|
+
try {
|
|
14082
|
+
const _raw = await listHistoryBackups(opts);
|
|
14083
|
+
let data = this._evaluateResponse(_raw, "listHistoryBackups", (resp) => {
|
|
14084
|
+
const st = resp.status ?? resp.response?.status;
|
|
14085
|
+
if (!st) return void 0;
|
|
14086
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14087
|
+
if (!candidate) return void 0;
|
|
14088
|
+
let prob = void 0;
|
|
14089
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14090
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14091
|
+
err.status = st;
|
|
14092
|
+
err.name = "HttpSdkError";
|
|
14093
|
+
if (prob) {
|
|
14094
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14095
|
+
}
|
|
14096
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14097
|
+
if (!isBp) err.nonRetryable = true;
|
|
14098
|
+
return err;
|
|
14099
|
+
});
|
|
14100
|
+
const _respSchemaName = "zListHistoryBackupsResponse";
|
|
14101
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14102
|
+
data = void 0;
|
|
14103
|
+
}
|
|
14104
|
+
if (this._validation.settings.res !== "none") {
|
|
14105
|
+
const _schemas = await this._loadSchemas();
|
|
14106
|
+
const _schema = _schemas.zListHistoryBackupsResponse;
|
|
14107
|
+
if (_schema) {
|
|
14108
|
+
const maybeR = await this._validation.gateResponse("listHistoryBackups", _schema, data);
|
|
14109
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14110
|
+
}
|
|
14111
|
+
}
|
|
14112
|
+
return data;
|
|
14113
|
+
} catch (e) {
|
|
14114
|
+
throw e;
|
|
14115
|
+
}
|
|
14116
|
+
};
|
|
14117
|
+
return this._invokeWithRetry(() => call(), { opId: "listHistoryBackups", exempt: false, retryOverride: options?.retry });
|
|
14118
|
+
});
|
|
14119
|
+
}
|
|
13804
14120
|
listRuntimeBackups(arg, options) {
|
|
13805
14121
|
return toCancelable2(async (signal) => {
|
|
13806
14122
|
const { prefix } = arg || {};
|
|
@@ -14570,8 +14886,9 @@ var CamundaClient = class {
|
|
|
14570
14886
|
}
|
|
14571
14887
|
restore(arg, options) {
|
|
14572
14888
|
return toCancelable2(async (signal) => {
|
|
14573
|
-
const _body = arg;
|
|
14889
|
+
const { dryRun, ..._body } = arg || {};
|
|
14574
14890
|
let envelope = {};
|
|
14891
|
+
envelope.query = { dryRun };
|
|
14575
14892
|
envelope.body = _body;
|
|
14576
14893
|
if (this._validation.settings.req !== "none") {
|
|
14577
14894
|
const _schemas = await this._loadSchemas();
|
|
@@ -14585,6 +14902,7 @@ var CamundaClient = class {
|
|
|
14585
14902
|
}
|
|
14586
14903
|
}
|
|
14587
14904
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
14905
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14588
14906
|
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
14589
14907
|
const call = async () => {
|
|
14590
14908
|
try {
|
|
@@ -14626,6 +14944,66 @@ var CamundaClient = class {
|
|
|
14626
14944
|
return this._invokeWithRetry(() => call(), { opId: "restore", exempt: false, retryOverride: options?.retry });
|
|
14627
14945
|
});
|
|
14628
14946
|
}
|
|
14947
|
+
restoreAsClusterAdmin(arg, options) {
|
|
14948
|
+
return toCancelable2(async (signal) => {
|
|
14949
|
+
const { physicalTenantId, dryRun, ..._body } = arg || {};
|
|
14950
|
+
let envelope = {};
|
|
14951
|
+
envelope.query = { physicalTenantId, dryRun };
|
|
14952
|
+
envelope.body = _body;
|
|
14953
|
+
if (this._validation.settings.req !== "none") {
|
|
14954
|
+
const _schemas = await this._loadSchemas();
|
|
14955
|
+
if (envelope.body !== void 0) {
|
|
14956
|
+
const maybeBody = await this._validation.gateRequest("restoreAsClusterAdmin", _schemas.zRestoreAsClusterAdminBody, envelope.body);
|
|
14957
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
14958
|
+
}
|
|
14959
|
+
if (envelope.query !== void 0) {
|
|
14960
|
+
const maybeQuery = await this._validation.gateRequest("restoreAsClusterAdmin", _schemas.zRestoreAsClusterAdminQuery, envelope.query);
|
|
14961
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14962
|
+
}
|
|
14963
|
+
}
|
|
14964
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14965
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14966
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
14967
|
+
const call = async () => {
|
|
14968
|
+
try {
|
|
14969
|
+
const _raw = await restoreAsClusterAdmin(opts);
|
|
14970
|
+
let data = this._evaluateResponse(_raw, "restoreAsClusterAdmin", (resp) => {
|
|
14971
|
+
const st = resp.status ?? resp.response?.status;
|
|
14972
|
+
if (!st) return void 0;
|
|
14973
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14974
|
+
if (!candidate) return void 0;
|
|
14975
|
+
let prob = void 0;
|
|
14976
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14977
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14978
|
+
err.status = st;
|
|
14979
|
+
err.name = "HttpSdkError";
|
|
14980
|
+
if (prob) {
|
|
14981
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14982
|
+
}
|
|
14983
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14984
|
+
if (!isBp) err.nonRetryable = true;
|
|
14985
|
+
return err;
|
|
14986
|
+
});
|
|
14987
|
+
const _respSchemaName = "zRestoreAsClusterAdminResponse";
|
|
14988
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14989
|
+
data = void 0;
|
|
14990
|
+
}
|
|
14991
|
+
if (this._validation.settings.res !== "none") {
|
|
14992
|
+
const _schemas = await this._loadSchemas();
|
|
14993
|
+
const _schema = _schemas.zRestoreAsClusterAdminResponse;
|
|
14994
|
+
if (_schema) {
|
|
14995
|
+
const maybeR = await this._validation.gateResponse("restoreAsClusterAdmin", _schema, data);
|
|
14996
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14997
|
+
}
|
|
14998
|
+
}
|
|
14999
|
+
return data;
|
|
15000
|
+
} catch (e) {
|
|
15001
|
+
throw e;
|
|
15002
|
+
}
|
|
15003
|
+
};
|
|
15004
|
+
return this._invokeWithRetry(() => call(), { opId: "restoreAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
15005
|
+
});
|
|
15006
|
+
}
|
|
14629
15007
|
resumeBatchOperation(arg, options) {
|
|
14630
15008
|
return toCancelable2(async (signal) => {
|
|
14631
15009
|
const { batchOperationKey, ..._body } = arg || {};
|
|
@@ -17988,6 +18366,60 @@ var CamundaClient = class {
|
|
|
17988
18366
|
return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupState", exempt: false, retryOverride: options?.retry });
|
|
17989
18367
|
});
|
|
17990
18368
|
}
|
|
18369
|
+
takeHistoryBackup(arg, options) {
|
|
18370
|
+
return toCancelable2(async (signal) => {
|
|
18371
|
+
const _body = arg;
|
|
18372
|
+
let envelope = {};
|
|
18373
|
+
envelope.body = _body;
|
|
18374
|
+
if (this._validation.settings.req !== "none") {
|
|
18375
|
+
const _schemas = await this._loadSchemas();
|
|
18376
|
+
if (envelope.body !== void 0) {
|
|
18377
|
+
const maybeBody = await this._validation.gateRequest("takeHistoryBackup", _schemas.zTakeHistoryBackupBody, envelope.body);
|
|
18378
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
18379
|
+
}
|
|
18380
|
+
}
|
|
18381
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
18382
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
18383
|
+
const call = async () => {
|
|
18384
|
+
try {
|
|
18385
|
+
const _raw = await takeHistoryBackup(opts);
|
|
18386
|
+
let data = this._evaluateResponse(_raw, "takeHistoryBackup", (resp) => {
|
|
18387
|
+
const st = resp.status ?? resp.response?.status;
|
|
18388
|
+
if (!st) return void 0;
|
|
18389
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
18390
|
+
if (!candidate) return void 0;
|
|
18391
|
+
let prob = void 0;
|
|
18392
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
18393
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
18394
|
+
err.status = st;
|
|
18395
|
+
err.name = "HttpSdkError";
|
|
18396
|
+
if (prob) {
|
|
18397
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
18398
|
+
}
|
|
18399
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
18400
|
+
if (!isBp) err.nonRetryable = true;
|
|
18401
|
+
return err;
|
|
18402
|
+
});
|
|
18403
|
+
const _respSchemaName = "zTakeHistoryBackupResponse";
|
|
18404
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
18405
|
+
data = void 0;
|
|
18406
|
+
}
|
|
18407
|
+
if (this._validation.settings.res !== "none") {
|
|
18408
|
+
const _schemas = await this._loadSchemas();
|
|
18409
|
+
const _schema = _schemas.zTakeHistoryBackupResponse;
|
|
18410
|
+
if (_schema) {
|
|
18411
|
+
const maybeR = await this._validation.gateResponse("takeHistoryBackup", _schema, data);
|
|
18412
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
18413
|
+
}
|
|
18414
|
+
}
|
|
18415
|
+
return data;
|
|
18416
|
+
} catch (e) {
|
|
18417
|
+
throw e;
|
|
18418
|
+
}
|
|
18419
|
+
};
|
|
18420
|
+
return this._invokeWithRetry(() => call(), { opId: "takeHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
18421
|
+
});
|
|
18422
|
+
}
|
|
17991
18423
|
takeRuntimeBackup(arg, options) {
|
|
17992
18424
|
return toCancelable2(async (signal) => {
|
|
17993
18425
|
const _body = arg;
|
|
@@ -19950,4 +20382,4 @@ export {
|
|
|
19950
20382
|
withTimeoutTE,
|
|
19951
20383
|
eventuallyTE
|
|
19952
20384
|
};
|
|
19953
|
-
//# sourceMappingURL=chunk-
|
|
20385
|
+
//# sourceMappingURL=chunk-NRW5BD5X.js.map
|