@camunda8/orchestration-cluster-api 10.0.0-alpha.28 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
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)
2
9
 
3
10
 
@@ -3436,12 +3436,30 @@ var changeClusterModeAsClusterAdmin = (options) => (options.client ?? client).pa
3436
3436
  url: "/cluster/v2/mode",
3437
3437
  ...options
3438
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
+ });
3439
3450
  var getClusterStatus = (options) => (options?.client ?? client).get({
3440
3451
  requestValidator: void 0,
3441
3452
  responseValidator: void 0,
3442
3453
  url: "/cluster/v2/status",
3443
3454
  ...options
3444
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
+ });
3445
3463
  var createUser = (options) => (options.client ?? client).post({
3446
3464
  requestValidator: void 0,
3447
3465
  responseValidator: void 0,
@@ -4956,7 +4974,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4956
4974
  }
4957
4975
 
4958
4976
  // src/runtime/version.ts
4959
- var packageVersion = "10.0.0-alpha.28";
4977
+ var packageVersion = "10.0.0-alpha.29";
4960
4978
 
4961
4979
  // src/runtime/supportLogger.ts
4962
4980
  var NoopSupportLogger = class {
@@ -6975,7 +6993,7 @@ var CamundaClient = class {
6975
6993
  _schemasPromise = null;
6976
6994
  _loadSchemas() {
6977
6995
  if (!this._schemasPromise) {
6978
- this._schemasPromise = import("./zod.gen-AXFHZMWR.js");
6996
+ this._schemasPromise = import("./zod.gen-VUGH5AQW.js");
6979
6997
  }
6980
6998
  return this._schemasPromise;
6981
6999
  }
@@ -11091,6 +11109,49 @@ var CamundaClient = class {
11091
11109
  return this._invokeWithRetry(() => call(), { opId: "getClusterStatus", exempt: false, retryOverride: options?.retry });
11092
11110
  });
11093
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
+ }
11094
11155
  getDecisionDefinition(arg, consistencyManagement, options) {
11095
11156
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
11096
11157
  const useConsistency = consistencyManagement.consistency;
@@ -14883,6 +14944,66 @@ var CamundaClient = class {
14883
14944
  return this._invokeWithRetry(() => call(), { opId: "restore", exempt: false, retryOverride: options?.retry });
14884
14945
  });
14885
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
+ }
14886
15007
  resumeBatchOperation(arg, options) {
14887
15008
  return toCancelable2(async (signal) => {
14888
15009
  const { batchOperationKey, ..._body } = arg || {};
@@ -20261,4 +20382,4 @@ export {
20261
20382
  withTimeoutTE,
20262
20383
  eventuallyTE
20263
20384
  };
20264
- //# sourceMappingURL=chunk-H6DTQLKK.js.map
20385
+ //# sourceMappingURL=chunk-NRW5BD5X.js.map