@camunda8/orchestration-cluster-api 10.0.0-alpha.29 → 10.0.0-alpha.30

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.30](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.29...v10.0.0-alpha.30) (2026-08-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * **examples:** add coverage for 7 cluster-admin backup/exporting ops ([#442](https://github.com/camunda/orchestration-cluster-api-js/issues/442)) ([fdc805d](https://github.com/camunda/orchestration-cluster-api-js/commit/fdc805d2877e02b3cb7c89038e05ac9325d76c6a)), closes [#429](https://github.com/camunda/orchestration-cluster-api-js/issues/429) [#441](https://github.com/camunda/orchestration-cluster-api-js/issues/441)
7
+
1
8
  # [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
9
 
3
10
 
@@ -3429,6 +3429,59 @@ var restore = (options) => (options.client ?? client).post({
3429
3429
  ...options.headers
3430
3430
  }
3431
3431
  });
3432
+ var getClusterExportingStatus = (options) => (options?.client ?? client).get({
3433
+ requestValidator: void 0,
3434
+ responseValidator: void 0,
3435
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3436
+ url: "/cluster/v2/exporting",
3437
+ ...options
3438
+ });
3439
+ var pauseClusterExporting = (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/exporting/pause",
3444
+ ...options
3445
+ });
3446
+ var resumeClusterExporting = (options) => (options?.client ?? client).post({
3447
+ requestValidator: void 0,
3448
+ responseValidator: void 0,
3449
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3450
+ url: "/cluster/v2/exporting/resume",
3451
+ ...options
3452
+ });
3453
+ var listHistoryBackupsAsClusterAdmin = (options) => (options?.client ?? client).get({
3454
+ requestValidator: void 0,
3455
+ responseValidator: void 0,
3456
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3457
+ url: "/cluster/v2/backups/history",
3458
+ ...options
3459
+ });
3460
+ var takeHistoryBackupAsClusterAdmin = (options) => (options.client ?? client).post({
3461
+ requestValidator: void 0,
3462
+ responseValidator: void 0,
3463
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3464
+ url: "/cluster/v2/backups/history",
3465
+ ...options,
3466
+ headers: {
3467
+ "Content-Type": "application/json",
3468
+ ...options.headers
3469
+ }
3470
+ });
3471
+ var deleteHistoryBackupAsClusterAdmin = (options) => (options.client ?? client).delete({
3472
+ requestValidator: void 0,
3473
+ responseValidator: void 0,
3474
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3475
+ url: "/cluster/v2/backups/history/{backupId}",
3476
+ ...options
3477
+ });
3478
+ var getHistoryBackupAsClusterAdmin = (options) => (options.client ?? client).get({
3479
+ requestValidator: void 0,
3480
+ responseValidator: void 0,
3481
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3482
+ url: "/cluster/v2/backups/history/{backupId}",
3483
+ ...options
3484
+ });
3432
3485
  var changeClusterModeAsClusterAdmin = (options) => (options.client ?? client).patch({
3433
3486
  requestValidator: void 0,
3434
3487
  responseValidator: void 0,
@@ -4974,7 +5027,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4974
5027
  }
4975
5028
 
4976
5029
  // src/runtime/version.ts
4977
- var packageVersion = "10.0.0-alpha.29";
5030
+ var packageVersion = "10.0.0-alpha.30";
4978
5031
 
4979
5032
  // src/runtime/supportLogger.ts
4980
5033
  var NoopSupportLogger = class {
@@ -6689,7 +6742,7 @@ function deepFreeze2(obj) {
6689
6742
  }
6690
6743
  return obj;
6691
6744
  }
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"]);
6745
+ 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", "zPauseClusterExportingResponse", "zResumeClusterExportingResponse", "zDeleteHistoryBackupAsClusterAdminResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
6693
6746
  var CancelError = class extends Error {
6694
6747
  constructor() {
6695
6748
  super("Cancelled");
@@ -6993,7 +7046,7 @@ var CamundaClient = class {
6993
7046
  _schemasPromise = null;
6994
7047
  _loadSchemas() {
6995
7048
  if (!this._schemasPromise) {
6996
- this._schemasPromise = import("./zod.gen-VUGH5AQW.js");
7049
+ this._schemasPromise = import("./zod.gen-CGU4FBRF.js");
6997
7050
  }
6998
7051
  return this._schemasPromise;
6999
7052
  }
@@ -9958,6 +10011,66 @@ var CamundaClient = class {
9958
10011
  return this._invokeWithRetry(() => call(), { opId: "deleteHistoryBackup", exempt: false, retryOverride: options?.retry });
9959
10012
  });
9960
10013
  }
10014
+ deleteHistoryBackupAsClusterAdmin(arg, options) {
10015
+ return toCancelable2(async (signal) => {
10016
+ const { backupId, physicalTenantId } = arg || {};
10017
+ let envelope = {};
10018
+ envelope.path = { backupId };
10019
+ envelope.query = { physicalTenantId };
10020
+ if (this._validation.settings.req !== "none") {
10021
+ const _schemas = await this._loadSchemas();
10022
+ if (envelope.path !== void 0) {
10023
+ const maybePath = await this._validation.gateRequest("deleteHistoryBackupAsClusterAdmin", _schemas.zDeleteHistoryBackupAsClusterAdminPath, envelope.path);
10024
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
10025
+ }
10026
+ if (envelope.query !== void 0) {
10027
+ const maybeQuery = await this._validation.gateRequest("deleteHistoryBackupAsClusterAdmin", _schemas.zDeleteHistoryBackupAsClusterAdminQuery, envelope.query);
10028
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
10029
+ }
10030
+ }
10031
+ const opts = { client: this._client, signal, throwOnError: false };
10032
+ if (envelope.path) opts.path = envelope.path;
10033
+ if (envelope.query) opts.query = envelope.query;
10034
+ const call = async () => {
10035
+ try {
10036
+ const _raw = await deleteHistoryBackupAsClusterAdmin(opts);
10037
+ let data = this._evaluateResponse(_raw, "deleteHistoryBackupAsClusterAdmin", (resp) => {
10038
+ const st = resp.status ?? resp.response?.status;
10039
+ if (!st) return void 0;
10040
+ const candidate = st === 429 || st === 503 || st === 500;
10041
+ if (!candidate) return void 0;
10042
+ let prob = void 0;
10043
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
10044
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
10045
+ err.status = st;
10046
+ err.name = "HttpSdkError";
10047
+ if (prob) {
10048
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
10049
+ }
10050
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
10051
+ if (!isBp) err.nonRetryable = true;
10052
+ return err;
10053
+ });
10054
+ const _respSchemaName = "zDeleteHistoryBackupAsClusterAdminResponse";
10055
+ if (this._isVoidResponse(_respSchemaName)) {
10056
+ data = void 0;
10057
+ }
10058
+ if (this._validation.settings.res !== "none") {
10059
+ const _schemas = await this._loadSchemas();
10060
+ const _schema = _schemas.zDeleteHistoryBackupAsClusterAdminResponse;
10061
+ if (_schema) {
10062
+ const maybeR = await this._validation.gateResponse("deleteHistoryBackupAsClusterAdmin", _schema, data);
10063
+ if (this._validation.settings.res === "strict") data = maybeR;
10064
+ }
10065
+ }
10066
+ return data;
10067
+ } catch (e) {
10068
+ throw e;
10069
+ }
10070
+ };
10071
+ return this._invokeWithRetry(() => call(), { opId: "deleteHistoryBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
10072
+ });
10073
+ }
9961
10074
  deleteMappingRule(arg, options) {
9962
10075
  return toCancelable2(async (signal) => {
9963
10076
  const { mappingRuleId } = arg || {};
@@ -11066,6 +11179,49 @@ var CamundaClient = class {
11066
11179
  return invoke();
11067
11180
  });
11068
11181
  }
11182
+ getClusterExportingStatus(arg, options) {
11183
+ return toCancelable2(async (signal) => {
11184
+ const opts = { client: this._client, signal, throwOnError: false };
11185
+ const call = async () => {
11186
+ try {
11187
+ const _raw = await getClusterExportingStatus(opts);
11188
+ let data = this._evaluateResponse(_raw, "getClusterExportingStatus", (resp) => {
11189
+ const st = resp.status ?? resp.response?.status;
11190
+ if (!st) return void 0;
11191
+ const candidate = st === 429 || st === 503 || st === 500;
11192
+ if (!candidate) return void 0;
11193
+ let prob = void 0;
11194
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
11195
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
11196
+ err.status = st;
11197
+ err.name = "HttpSdkError";
11198
+ if (prob) {
11199
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
11200
+ }
11201
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
11202
+ if (!isBp) err.nonRetryable = true;
11203
+ return err;
11204
+ });
11205
+ const _respSchemaName = "zGetClusterExportingStatusResponse";
11206
+ if (this._isVoidResponse(_respSchemaName)) {
11207
+ data = void 0;
11208
+ }
11209
+ if (this._validation.settings.res !== "none") {
11210
+ const _schemas = await this._loadSchemas();
11211
+ const _schema = _schemas.zGetClusterExportingStatusResponse;
11212
+ if (_schema) {
11213
+ const maybeR = await this._validation.gateResponse("getClusterExportingStatus", _schema, data);
11214
+ if (this._validation.settings.res === "strict") data = maybeR;
11215
+ }
11216
+ }
11217
+ return data;
11218
+ } catch (e) {
11219
+ throw e;
11220
+ }
11221
+ };
11222
+ return this._invokeWithRetry(() => call(), { opId: "getClusterExportingStatus", exempt: false, retryOverride: options?.retry });
11223
+ });
11224
+ }
11069
11225
  getClusterStatus(arg, options) {
11070
11226
  return toCancelable2(async (signal) => {
11071
11227
  const opts = { client: this._client, signal, throwOnError: false };
@@ -11947,6 +12103,66 @@ var CamundaClient = class {
11947
12103
  return this._invokeWithRetry(() => call(), { opId: "getHistoryBackup", exempt: false, retryOverride: options?.retry });
11948
12104
  });
11949
12105
  }
12106
+ getHistoryBackupAsClusterAdmin(arg, options) {
12107
+ return toCancelable2(async (signal) => {
12108
+ const { backupId, physicalTenantId } = arg || {};
12109
+ let envelope = {};
12110
+ envelope.path = { backupId };
12111
+ envelope.query = { physicalTenantId };
12112
+ if (this._validation.settings.req !== "none") {
12113
+ const _schemas = await this._loadSchemas();
12114
+ if (envelope.path !== void 0) {
12115
+ const maybePath = await this._validation.gateRequest("getHistoryBackupAsClusterAdmin", _schemas.zGetHistoryBackupAsClusterAdminPath, envelope.path);
12116
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
12117
+ }
12118
+ if (envelope.query !== void 0) {
12119
+ const maybeQuery = await this._validation.gateRequest("getHistoryBackupAsClusterAdmin", _schemas.zGetHistoryBackupAsClusterAdminQuery, envelope.query);
12120
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
12121
+ }
12122
+ }
12123
+ const opts = { client: this._client, signal, throwOnError: false };
12124
+ if (envelope.path) opts.path = envelope.path;
12125
+ if (envelope.query) opts.query = envelope.query;
12126
+ const call = async () => {
12127
+ try {
12128
+ const _raw = await getHistoryBackupAsClusterAdmin(opts);
12129
+ let data = this._evaluateResponse(_raw, "getHistoryBackupAsClusterAdmin", (resp) => {
12130
+ const st = resp.status ?? resp.response?.status;
12131
+ if (!st) return void 0;
12132
+ const candidate = st === 429 || st === 503 || st === 500;
12133
+ if (!candidate) return void 0;
12134
+ let prob = void 0;
12135
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
12136
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
12137
+ err.status = st;
12138
+ err.name = "HttpSdkError";
12139
+ if (prob) {
12140
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
12141
+ }
12142
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
12143
+ if (!isBp) err.nonRetryable = true;
12144
+ return err;
12145
+ });
12146
+ const _respSchemaName = "zGetHistoryBackupAsClusterAdminResponse";
12147
+ if (this._isVoidResponse(_respSchemaName)) {
12148
+ data = void 0;
12149
+ }
12150
+ if (this._validation.settings.res !== "none") {
12151
+ const _schemas = await this._loadSchemas();
12152
+ const _schema = _schemas.zGetHistoryBackupAsClusterAdminResponse;
12153
+ if (_schema) {
12154
+ const maybeR = await this._validation.gateResponse("getHistoryBackupAsClusterAdmin", _schema, data);
12155
+ if (this._validation.settings.res === "strict") data = maybeR;
12156
+ }
12157
+ }
12158
+ return data;
12159
+ } catch (e) {
12160
+ throw e;
12161
+ }
12162
+ };
12163
+ return this._invokeWithRetry(() => call(), { opId: "getHistoryBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
12164
+ });
12165
+ }
11950
12166
  getIncident(arg, consistencyManagement, options) {
11951
12167
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
11952
12168
  const useConsistency = consistencyManagement.consistency;
@@ -14117,6 +14333,60 @@ var CamundaClient = class {
14117
14333
  return this._invokeWithRetry(() => call(), { opId: "listHistoryBackups", exempt: false, retryOverride: options?.retry });
14118
14334
  });
14119
14335
  }
14336
+ listHistoryBackupsAsClusterAdmin(arg, options) {
14337
+ return toCancelable2(async (signal) => {
14338
+ const { physicalTenantId, prefix, verbose } = arg || {};
14339
+ let envelope = {};
14340
+ envelope.query = { physicalTenantId, prefix, verbose };
14341
+ if (this._validation.settings.req !== "none") {
14342
+ const _schemas = await this._loadSchemas();
14343
+ if (envelope.query !== void 0) {
14344
+ const maybeQuery = await this._validation.gateRequest("listHistoryBackupsAsClusterAdmin", _schemas.zListHistoryBackupsAsClusterAdminQuery, envelope.query);
14345
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
14346
+ }
14347
+ }
14348
+ const opts = { client: this._client, signal, throwOnError: false };
14349
+ if (envelope.query) opts.query = envelope.query;
14350
+ const call = async () => {
14351
+ try {
14352
+ const _raw = await listHistoryBackupsAsClusterAdmin(opts);
14353
+ let data = this._evaluateResponse(_raw, "listHistoryBackupsAsClusterAdmin", (resp) => {
14354
+ const st = resp.status ?? resp.response?.status;
14355
+ if (!st) return void 0;
14356
+ const candidate = st === 429 || st === 503 || st === 500;
14357
+ if (!candidate) return void 0;
14358
+ let prob = void 0;
14359
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
14360
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
14361
+ err.status = st;
14362
+ err.name = "HttpSdkError";
14363
+ if (prob) {
14364
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
14365
+ }
14366
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
14367
+ if (!isBp) err.nonRetryable = true;
14368
+ return err;
14369
+ });
14370
+ const _respSchemaName = "zListHistoryBackupsAsClusterAdminResponse";
14371
+ if (this._isVoidResponse(_respSchemaName)) {
14372
+ data = void 0;
14373
+ }
14374
+ if (this._validation.settings.res !== "none") {
14375
+ const _schemas = await this._loadSchemas();
14376
+ const _schema = _schemas.zListHistoryBackupsAsClusterAdminResponse;
14377
+ if (_schema) {
14378
+ const maybeR = await this._validation.gateResponse("listHistoryBackupsAsClusterAdmin", _schema, data);
14379
+ if (this._validation.settings.res === "strict") data = maybeR;
14380
+ }
14381
+ }
14382
+ return data;
14383
+ } catch (e) {
14384
+ throw e;
14385
+ }
14386
+ };
14387
+ return this._invokeWithRetry(() => call(), { opId: "listHistoryBackupsAsClusterAdmin", exempt: false, retryOverride: options?.retry });
14388
+ });
14389
+ }
14120
14390
  listRuntimeBackups(arg, options) {
14121
14391
  return toCancelable2(async (signal) => {
14122
14392
  const { prefix } = arg || {};
@@ -14453,6 +14723,60 @@ var CamundaClient = class {
14453
14723
  return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
14454
14724
  });
14455
14725
  }
14726
+ pauseClusterExporting(arg, options) {
14727
+ return toCancelable2(async (signal) => {
14728
+ const { soft } = arg || {};
14729
+ let envelope = {};
14730
+ envelope.query = { soft };
14731
+ if (this._validation.settings.req !== "none") {
14732
+ const _schemas = await this._loadSchemas();
14733
+ if (envelope.query !== void 0) {
14734
+ const maybeQuery = await this._validation.gateRequest("pauseClusterExporting", _schemas.zPauseClusterExportingQuery, envelope.query);
14735
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
14736
+ }
14737
+ }
14738
+ const opts = { client: this._client, signal, throwOnError: false };
14739
+ if (envelope.query) opts.query = envelope.query;
14740
+ const call = async () => {
14741
+ try {
14742
+ const _raw = await pauseClusterExporting(opts);
14743
+ let data = this._evaluateResponse(_raw, "pauseClusterExporting", (resp) => {
14744
+ const st = resp.status ?? resp.response?.status;
14745
+ if (!st) return void 0;
14746
+ const candidate = st === 429 || st === 503 || st === 500;
14747
+ if (!candidate) return void 0;
14748
+ let prob = void 0;
14749
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
14750
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
14751
+ err.status = st;
14752
+ err.name = "HttpSdkError";
14753
+ if (prob) {
14754
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
14755
+ }
14756
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
14757
+ if (!isBp) err.nonRetryable = true;
14758
+ return err;
14759
+ });
14760
+ const _respSchemaName = "zPauseClusterExportingResponse";
14761
+ if (this._isVoidResponse(_respSchemaName)) {
14762
+ data = void 0;
14763
+ }
14764
+ if (this._validation.settings.res !== "none") {
14765
+ const _schemas = await this._loadSchemas();
14766
+ const _schema = _schemas.zPauseClusterExportingResponse;
14767
+ if (_schema) {
14768
+ const maybeR = await this._validation.gateResponse("pauseClusterExporting", _schema, data);
14769
+ if (this._validation.settings.res === "strict") data = maybeR;
14770
+ }
14771
+ }
14772
+ return data;
14773
+ } catch (e) {
14774
+ throw e;
14775
+ }
14776
+ };
14777
+ return this._invokeWithRetry(() => call(), { opId: "pauseClusterExporting", exempt: false, retryOverride: options?.retry });
14778
+ });
14779
+ }
14456
14780
  pauseExporting(arg, options) {
14457
14781
  return toCancelable2(async (signal) => {
14458
14782
  const { soft } = arg || {};
@@ -15064,6 +15388,49 @@ var CamundaClient = class {
15064
15388
  return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false, retryOverride: options?.retry });
15065
15389
  });
15066
15390
  }
15391
+ resumeClusterExporting(arg, options) {
15392
+ return toCancelable2(async (signal) => {
15393
+ const opts = { client: this._client, signal, throwOnError: false };
15394
+ const call = async () => {
15395
+ try {
15396
+ const _raw = await resumeClusterExporting(opts);
15397
+ let data = this._evaluateResponse(_raw, "resumeClusterExporting", (resp) => {
15398
+ const st = resp.status ?? resp.response?.status;
15399
+ if (!st) return void 0;
15400
+ const candidate = st === 429 || st === 503 || st === 500;
15401
+ if (!candidate) return void 0;
15402
+ let prob = void 0;
15403
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
15404
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
15405
+ err.status = st;
15406
+ err.name = "HttpSdkError";
15407
+ if (prob) {
15408
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
15409
+ }
15410
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
15411
+ if (!isBp) err.nonRetryable = true;
15412
+ return err;
15413
+ });
15414
+ const _respSchemaName = "zResumeClusterExportingResponse";
15415
+ if (this._isVoidResponse(_respSchemaName)) {
15416
+ data = void 0;
15417
+ }
15418
+ if (this._validation.settings.res !== "none") {
15419
+ const _schemas = await this._loadSchemas();
15420
+ const _schema = _schemas.zResumeClusterExportingResponse;
15421
+ if (_schema) {
15422
+ const maybeR = await this._validation.gateResponse("resumeClusterExporting", _schema, data);
15423
+ if (this._validation.settings.res === "strict") data = maybeR;
15424
+ }
15425
+ }
15426
+ return data;
15427
+ } catch (e) {
15428
+ throw e;
15429
+ }
15430
+ };
15431
+ return this._invokeWithRetry(() => call(), { opId: "resumeClusterExporting", exempt: false, retryOverride: options?.retry });
15432
+ });
15433
+ }
15067
15434
  resumeExporting(arg, options) {
15068
15435
  return toCancelable2(async (signal) => {
15069
15436
  const opts = { client: this._client, signal, throwOnError: false };
@@ -18420,6 +18787,66 @@ var CamundaClient = class {
18420
18787
  return this._invokeWithRetry(() => call(), { opId: "takeHistoryBackup", exempt: false, retryOverride: options?.retry });
18421
18788
  });
18422
18789
  }
18790
+ takeHistoryBackupAsClusterAdmin(arg, options) {
18791
+ return toCancelable2(async (signal) => {
18792
+ const { physicalTenantId, ..._body } = arg || {};
18793
+ let envelope = {};
18794
+ envelope.query = { physicalTenantId };
18795
+ envelope.body = _body;
18796
+ if (this._validation.settings.req !== "none") {
18797
+ const _schemas = await this._loadSchemas();
18798
+ if (envelope.body !== void 0) {
18799
+ const maybeBody = await this._validation.gateRequest("takeHistoryBackupAsClusterAdmin", _schemas.zTakeHistoryBackupAsClusterAdminBody, envelope.body);
18800
+ if (this._validation.settings.req === "strict") envelope.body = maybeBody;
18801
+ }
18802
+ if (envelope.query !== void 0) {
18803
+ const maybeQuery = await this._validation.gateRequest("takeHistoryBackupAsClusterAdmin", _schemas.zTakeHistoryBackupAsClusterAdminQuery, envelope.query);
18804
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
18805
+ }
18806
+ }
18807
+ const opts = { client: this._client, signal, throwOnError: false };
18808
+ if (envelope.query) opts.query = envelope.query;
18809
+ if (envelope.body !== void 0) opts.body = envelope.body;
18810
+ const call = async () => {
18811
+ try {
18812
+ const _raw = await takeHistoryBackupAsClusterAdmin(opts);
18813
+ let data = this._evaluateResponse(_raw, "takeHistoryBackupAsClusterAdmin", (resp) => {
18814
+ const st = resp.status ?? resp.response?.status;
18815
+ if (!st) return void 0;
18816
+ const candidate = st === 429 || st === 503 || st === 500;
18817
+ if (!candidate) return void 0;
18818
+ let prob = void 0;
18819
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
18820
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
18821
+ err.status = st;
18822
+ err.name = "HttpSdkError";
18823
+ if (prob) {
18824
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
18825
+ }
18826
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
18827
+ if (!isBp) err.nonRetryable = true;
18828
+ return err;
18829
+ });
18830
+ const _respSchemaName = "zTakeHistoryBackupAsClusterAdminResponse";
18831
+ if (this._isVoidResponse(_respSchemaName)) {
18832
+ data = void 0;
18833
+ }
18834
+ if (this._validation.settings.res !== "none") {
18835
+ const _schemas = await this._loadSchemas();
18836
+ const _schema = _schemas.zTakeHistoryBackupAsClusterAdminResponse;
18837
+ if (_schema) {
18838
+ const maybeR = await this._validation.gateResponse("takeHistoryBackupAsClusterAdmin", _schema, data);
18839
+ if (this._validation.settings.res === "strict") data = maybeR;
18840
+ }
18841
+ }
18842
+ return data;
18843
+ } catch (e) {
18844
+ throw e;
18845
+ }
18846
+ };
18847
+ return this._invokeWithRetry(() => call(), { opId: "takeHistoryBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
18848
+ });
18849
+ }
18423
18850
  takeRuntimeBackup(arg, options) {
18424
18851
  return toCancelable2(async (signal) => {
18425
18852
  const _body = arg;
@@ -20382,4 +20809,4 @@ export {
20382
20809
  withTimeoutTE,
20383
20810
  eventuallyTE
20384
20811
  };
20385
- //# sourceMappingURL=chunk-NRW5BD5X.js.map
20812
+ //# sourceMappingURL=chunk-SHE5T54L.js.map