@camunda8/orchestration-cluster-api 10.0.0-alpha.31 → 10.0.0-alpha.33

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.
@@ -3450,6 +3450,59 @@ var resumeClusterExporting = (options) => (options?.client ?? client).post({
3450
3450
  url: "/cluster/v2/exporting/resume",
3451
3451
  ...options
3452
3452
  });
3453
+ var listRuntimeBackupsAsClusterAdmin = (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/runtime",
3458
+ ...options
3459
+ });
3460
+ var takeRuntimeBackupAsClusterAdmin = (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/runtime",
3465
+ ...options,
3466
+ headers: {
3467
+ "Content-Type": "application/json",
3468
+ ...options?.headers
3469
+ }
3470
+ });
3471
+ var deleteRuntimeBackupStateAsClusterAdmin = (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/runtime/state",
3476
+ ...options
3477
+ });
3478
+ var getRuntimeBackupStateAsClusterAdmin = (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/runtime/state",
3483
+ ...options
3484
+ });
3485
+ var syncRuntimeBackupStateAsClusterAdmin = (options) => (options?.client ?? client).post({
3486
+ requestValidator: void 0,
3487
+ responseValidator: void 0,
3488
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3489
+ url: "/cluster/v2/backups/runtime/state/sync",
3490
+ ...options
3491
+ });
3492
+ var deleteRuntimeBackupAsClusterAdmin = (options) => (options.client ?? client).delete({
3493
+ requestValidator: void 0,
3494
+ responseValidator: void 0,
3495
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3496
+ url: "/cluster/v2/backups/runtime/{backupId}",
3497
+ ...options
3498
+ });
3499
+ var getRuntimeBackupAsClusterAdmin = (options) => (options.client ?? client).get({
3500
+ requestValidator: void 0,
3501
+ responseValidator: void 0,
3502
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3503
+ url: "/cluster/v2/backups/runtime/{backupId}",
3504
+ ...options
3505
+ });
3453
3506
  var listHistoryBackupsAsClusterAdmin = (options) => (options?.client ?? client).get({
3454
3507
  requestValidator: void 0,
3455
3508
  responseValidator: void 0,
@@ -5027,7 +5080,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
5027
5080
  }
5028
5081
 
5029
5082
  // src/runtime/version.ts
5030
- var packageVersion = "10.0.0-alpha.31";
5083
+ var packageVersion = "10.0.0-alpha.33";
5031
5084
 
5032
5085
  // src/runtime/supportLogger.ts
5033
5086
  var NoopSupportLogger = class {
@@ -6742,7 +6795,7 @@ function deepFreeze2(obj) {
6742
6795
  }
6743
6796
  return obj;
6744
6797
  }
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"]);
6798
+ 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", "zDeleteRuntimeBackupStateAsClusterAdminResponse", "zDeleteRuntimeBackupAsClusterAdminResponse", "zDeleteHistoryBackupAsClusterAdminResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
6746
6799
  var CancelError = class extends Error {
6747
6800
  constructor() {
6748
6801
  super("Cancelled");
@@ -7046,7 +7099,7 @@ var CamundaClient = class {
7046
7099
  _schemasPromise = null;
7047
7100
  _loadSchemas() {
7048
7101
  if (!this._schemasPromise) {
7049
- this._schemasPromise = import("./zod.gen-CGU4FBRF.js");
7102
+ this._schemasPromise = import("./zod.gen-GHFW5D76.js");
7050
7103
  }
7051
7104
  return this._schemasPromise;
7052
7105
  }
@@ -10407,6 +10460,66 @@ var CamundaClient = class {
10407
10460
  return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackup", exempt: false, retryOverride: options?.retry });
10408
10461
  });
10409
10462
  }
10463
+ deleteRuntimeBackupAsClusterAdmin(arg, options) {
10464
+ return toCancelable2(async (signal) => {
10465
+ const { backupId, physicalTenantId } = arg || {};
10466
+ let envelope = {};
10467
+ envelope.path = { backupId };
10468
+ envelope.query = { physicalTenantId };
10469
+ if (this._validation.settings.req !== "none") {
10470
+ const _schemas = await this._loadSchemas();
10471
+ if (envelope.path !== void 0) {
10472
+ const maybePath = await this._validation.gateRequest("deleteRuntimeBackupAsClusterAdmin", _schemas.zDeleteRuntimeBackupAsClusterAdminPath, envelope.path);
10473
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
10474
+ }
10475
+ if (envelope.query !== void 0) {
10476
+ const maybeQuery = await this._validation.gateRequest("deleteRuntimeBackupAsClusterAdmin", _schemas.zDeleteRuntimeBackupAsClusterAdminQuery, envelope.query);
10477
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
10478
+ }
10479
+ }
10480
+ const opts = { client: this._client, signal, throwOnError: false };
10481
+ if (envelope.path) opts.path = envelope.path;
10482
+ if (envelope.query) opts.query = envelope.query;
10483
+ const call = async () => {
10484
+ try {
10485
+ const _raw = await deleteRuntimeBackupAsClusterAdmin(opts);
10486
+ let data = this._evaluateResponse(_raw, "deleteRuntimeBackupAsClusterAdmin", (resp) => {
10487
+ const st = resp.status ?? resp.response?.status;
10488
+ if (!st) return void 0;
10489
+ const candidate = st === 429 || st === 503 || st === 500;
10490
+ if (!candidate) return void 0;
10491
+ let prob = void 0;
10492
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
10493
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
10494
+ err.status = st;
10495
+ err.name = "HttpSdkError";
10496
+ if (prob) {
10497
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
10498
+ }
10499
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
10500
+ if (!isBp) err.nonRetryable = true;
10501
+ return err;
10502
+ });
10503
+ const _respSchemaName = "zDeleteRuntimeBackupAsClusterAdminResponse";
10504
+ if (this._isVoidResponse(_respSchemaName)) {
10505
+ data = void 0;
10506
+ }
10507
+ if (this._validation.settings.res !== "none") {
10508
+ const _schemas = await this._loadSchemas();
10509
+ const _schema = _schemas.zDeleteRuntimeBackupAsClusterAdminResponse;
10510
+ if (_schema) {
10511
+ const maybeR = await this._validation.gateResponse("deleteRuntimeBackupAsClusterAdmin", _schema, data);
10512
+ if (this._validation.settings.res === "strict") data = maybeR;
10513
+ }
10514
+ }
10515
+ return data;
10516
+ } catch (e) {
10517
+ throw e;
10518
+ }
10519
+ };
10520
+ return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
10521
+ });
10522
+ }
10410
10523
  deleteRuntimeBackupState(arg, options) {
10411
10524
  return toCancelable2(async (signal) => {
10412
10525
  const opts = { client: this._client, signal, throwOnError: false };
@@ -10450,6 +10563,60 @@ var CamundaClient = class {
10450
10563
  return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupState", exempt: false, retryOverride: options?.retry });
10451
10564
  });
10452
10565
  }
10566
+ deleteRuntimeBackupStateAsClusterAdmin(arg, options) {
10567
+ return toCancelable2(async (signal) => {
10568
+ const { physicalTenantId } = arg || {};
10569
+ let envelope = {};
10570
+ envelope.query = { physicalTenantId };
10571
+ if (this._validation.settings.req !== "none") {
10572
+ const _schemas = await this._loadSchemas();
10573
+ if (envelope.query !== void 0) {
10574
+ const maybeQuery = await this._validation.gateRequest("deleteRuntimeBackupStateAsClusterAdmin", _schemas.zDeleteRuntimeBackupStateAsClusterAdminQuery, envelope.query);
10575
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
10576
+ }
10577
+ }
10578
+ const opts = { client: this._client, signal, throwOnError: false };
10579
+ if (envelope.query) opts.query = envelope.query;
10580
+ const call = async () => {
10581
+ try {
10582
+ const _raw = await deleteRuntimeBackupStateAsClusterAdmin(opts);
10583
+ let data = this._evaluateResponse(_raw, "deleteRuntimeBackupStateAsClusterAdmin", (resp) => {
10584
+ const st = resp.status ?? resp.response?.status;
10585
+ if (!st) return void 0;
10586
+ const candidate = st === 429 || st === 503 || st === 500;
10587
+ if (!candidate) return void 0;
10588
+ let prob = void 0;
10589
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
10590
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
10591
+ err.status = st;
10592
+ err.name = "HttpSdkError";
10593
+ if (prob) {
10594
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
10595
+ }
10596
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
10597
+ if (!isBp) err.nonRetryable = true;
10598
+ return err;
10599
+ });
10600
+ const _respSchemaName = "zDeleteRuntimeBackupStateAsClusterAdminResponse";
10601
+ if (this._isVoidResponse(_respSchemaName)) {
10602
+ data = void 0;
10603
+ }
10604
+ if (this._validation.settings.res !== "none") {
10605
+ const _schemas = await this._loadSchemas();
10606
+ const _schema = _schemas.zDeleteRuntimeBackupStateAsClusterAdminResponse;
10607
+ if (_schema) {
10608
+ const maybeR = await this._validation.gateResponse("deleteRuntimeBackupStateAsClusterAdmin", _schema, data);
10609
+ if (this._validation.settings.res === "strict") data = maybeR;
10610
+ }
10611
+ }
10612
+ return data;
10613
+ } catch (e) {
10614
+ throw e;
10615
+ }
10616
+ };
10617
+ return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
10618
+ });
10619
+ }
10453
10620
  deleteTenant(arg, options) {
10454
10621
  return toCancelable2(async (signal) => {
10455
10622
  const { tenantId } = arg || {};
@@ -13643,6 +13810,66 @@ var CamundaClient = class {
13643
13810
  return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackup", exempt: false, retryOverride: options?.retry });
13644
13811
  });
13645
13812
  }
13813
+ getRuntimeBackupAsClusterAdmin(arg, options) {
13814
+ return toCancelable2(async (signal) => {
13815
+ const { backupId, physicalTenantId } = arg || {};
13816
+ let envelope = {};
13817
+ envelope.path = { backupId };
13818
+ envelope.query = { physicalTenantId };
13819
+ if (this._validation.settings.req !== "none") {
13820
+ const _schemas = await this._loadSchemas();
13821
+ if (envelope.path !== void 0) {
13822
+ const maybePath = await this._validation.gateRequest("getRuntimeBackupAsClusterAdmin", _schemas.zGetRuntimeBackupAsClusterAdminPath, envelope.path);
13823
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
13824
+ }
13825
+ if (envelope.query !== void 0) {
13826
+ const maybeQuery = await this._validation.gateRequest("getRuntimeBackupAsClusterAdmin", _schemas.zGetRuntimeBackupAsClusterAdminQuery, envelope.query);
13827
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
13828
+ }
13829
+ }
13830
+ const opts = { client: this._client, signal, throwOnError: false };
13831
+ if (envelope.path) opts.path = envelope.path;
13832
+ if (envelope.query) opts.query = envelope.query;
13833
+ const call = async () => {
13834
+ try {
13835
+ const _raw = await getRuntimeBackupAsClusterAdmin(opts);
13836
+ let data = this._evaluateResponse(_raw, "getRuntimeBackupAsClusterAdmin", (resp) => {
13837
+ const st = resp.status ?? resp.response?.status;
13838
+ if (!st) return void 0;
13839
+ const candidate = st === 429 || st === 503 || st === 500;
13840
+ if (!candidate) return void 0;
13841
+ let prob = void 0;
13842
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13843
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13844
+ err.status = st;
13845
+ err.name = "HttpSdkError";
13846
+ if (prob) {
13847
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13848
+ }
13849
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13850
+ if (!isBp) err.nonRetryable = true;
13851
+ return err;
13852
+ });
13853
+ const _respSchemaName = "zGetRuntimeBackupAsClusterAdminResponse";
13854
+ if (this._isVoidResponse(_respSchemaName)) {
13855
+ data = void 0;
13856
+ }
13857
+ if (this._validation.settings.res !== "none") {
13858
+ const _schemas = await this._loadSchemas();
13859
+ const _schema = _schemas.zGetRuntimeBackupAsClusterAdminResponse;
13860
+ if (_schema) {
13861
+ const maybeR = await this._validation.gateResponse("getRuntimeBackupAsClusterAdmin", _schema, data);
13862
+ if (this._validation.settings.res === "strict") data = maybeR;
13863
+ }
13864
+ }
13865
+ return data;
13866
+ } catch (e) {
13867
+ throw e;
13868
+ }
13869
+ };
13870
+ return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
13871
+ });
13872
+ }
13646
13873
  getRuntimeBackupState(arg, options) {
13647
13874
  return toCancelable2(async (signal) => {
13648
13875
  const opts = { client: this._client, signal, throwOnError: false };
@@ -13686,6 +13913,60 @@ var CamundaClient = class {
13686
13913
  return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupState", exempt: false, retryOverride: options?.retry });
13687
13914
  });
13688
13915
  }
13916
+ getRuntimeBackupStateAsClusterAdmin(arg, options) {
13917
+ return toCancelable2(async (signal) => {
13918
+ const { physicalTenantId } = arg || {};
13919
+ let envelope = {};
13920
+ envelope.query = { physicalTenantId };
13921
+ if (this._validation.settings.req !== "none") {
13922
+ const _schemas = await this._loadSchemas();
13923
+ if (envelope.query !== void 0) {
13924
+ const maybeQuery = await this._validation.gateRequest("getRuntimeBackupStateAsClusterAdmin", _schemas.zGetRuntimeBackupStateAsClusterAdminQuery, envelope.query);
13925
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
13926
+ }
13927
+ }
13928
+ const opts = { client: this._client, signal, throwOnError: false };
13929
+ if (envelope.query) opts.query = envelope.query;
13930
+ const call = async () => {
13931
+ try {
13932
+ const _raw = await getRuntimeBackupStateAsClusterAdmin(opts);
13933
+ let data = this._evaluateResponse(_raw, "getRuntimeBackupStateAsClusterAdmin", (resp) => {
13934
+ const st = resp.status ?? resp.response?.status;
13935
+ if (!st) return void 0;
13936
+ const candidate = st === 429 || st === 503 || st === 500;
13937
+ if (!candidate) return void 0;
13938
+ let prob = void 0;
13939
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13940
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13941
+ err.status = st;
13942
+ err.name = "HttpSdkError";
13943
+ if (prob) {
13944
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13945
+ }
13946
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13947
+ if (!isBp) err.nonRetryable = true;
13948
+ return err;
13949
+ });
13950
+ const _respSchemaName = "zGetRuntimeBackupStateAsClusterAdminResponse";
13951
+ if (this._isVoidResponse(_respSchemaName)) {
13952
+ data = void 0;
13953
+ }
13954
+ if (this._validation.settings.res !== "none") {
13955
+ const _schemas = await this._loadSchemas();
13956
+ const _schema = _schemas.zGetRuntimeBackupStateAsClusterAdminResponse;
13957
+ if (_schema) {
13958
+ const maybeR = await this._validation.gateResponse("getRuntimeBackupStateAsClusterAdmin", _schema, data);
13959
+ if (this._validation.settings.res === "strict") data = maybeR;
13960
+ }
13961
+ }
13962
+ return data;
13963
+ } catch (e) {
13964
+ throw e;
13965
+ }
13966
+ };
13967
+ return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
13968
+ });
13969
+ }
13689
13970
  getStartProcessForm(arg, consistencyManagement, options) {
13690
13971
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13691
13972
  const useConsistency = consistencyManagement.consistency;
@@ -14441,6 +14722,60 @@ var CamundaClient = class {
14441
14722
  return this._invokeWithRetry(() => call(), { opId: "listRuntimeBackups", exempt: false, retryOverride: options?.retry });
14442
14723
  });
14443
14724
  }
14725
+ listRuntimeBackupsAsClusterAdmin(arg, options) {
14726
+ return toCancelable2(async (signal) => {
14727
+ const { physicalTenantId, prefix } = arg || {};
14728
+ let envelope = {};
14729
+ envelope.query = { physicalTenantId, prefix };
14730
+ if (this._validation.settings.req !== "none") {
14731
+ const _schemas = await this._loadSchemas();
14732
+ if (envelope.query !== void 0) {
14733
+ const maybeQuery = await this._validation.gateRequest("listRuntimeBackupsAsClusterAdmin", _schemas.zListRuntimeBackupsAsClusterAdminQuery, envelope.query);
14734
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
14735
+ }
14736
+ }
14737
+ const opts = { client: this._client, signal, throwOnError: false };
14738
+ if (envelope.query) opts.query = envelope.query;
14739
+ const call = async () => {
14740
+ try {
14741
+ const _raw = await listRuntimeBackupsAsClusterAdmin(opts);
14742
+ let data = this._evaluateResponse(_raw, "listRuntimeBackupsAsClusterAdmin", (resp) => {
14743
+ const st = resp.status ?? resp.response?.status;
14744
+ if (!st) return void 0;
14745
+ const candidate = st === 429 || st === 503 || st === 500;
14746
+ if (!candidate) return void 0;
14747
+ let prob = void 0;
14748
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
14749
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
14750
+ err.status = st;
14751
+ err.name = "HttpSdkError";
14752
+ if (prob) {
14753
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
14754
+ }
14755
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
14756
+ if (!isBp) err.nonRetryable = true;
14757
+ return err;
14758
+ });
14759
+ const _respSchemaName = "zListRuntimeBackupsAsClusterAdminResponse";
14760
+ if (this._isVoidResponse(_respSchemaName)) {
14761
+ data = void 0;
14762
+ }
14763
+ if (this._validation.settings.res !== "none") {
14764
+ const _schemas = await this._loadSchemas();
14765
+ const _schema = _schemas.zListRuntimeBackupsAsClusterAdminResponse;
14766
+ if (_schema) {
14767
+ const maybeR = await this._validation.gateResponse("listRuntimeBackupsAsClusterAdmin", _schema, data);
14768
+ if (this._validation.settings.res === "strict") data = maybeR;
14769
+ }
14770
+ }
14771
+ return data;
14772
+ } catch (e) {
14773
+ throw e;
14774
+ }
14775
+ };
14776
+ return this._invokeWithRetry(() => call(), { opId: "listRuntimeBackupsAsClusterAdmin", exempt: false, retryOverride: options?.retry });
14777
+ });
14778
+ }
14444
14779
  listSecrets(arg, options) {
14445
14780
  return toCancelable2(async (signal) => {
14446
14781
  const _body = arg;
@@ -18733,6 +19068,60 @@ var CamundaClient = class {
18733
19068
  return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupState", exempt: false, retryOverride: options?.retry });
18734
19069
  });
18735
19070
  }
19071
+ syncRuntimeBackupStateAsClusterAdmin(arg, options) {
19072
+ return toCancelable2(async (signal) => {
19073
+ const { physicalTenantId } = arg || {};
19074
+ let envelope = {};
19075
+ envelope.query = { physicalTenantId };
19076
+ if (this._validation.settings.req !== "none") {
19077
+ const _schemas = await this._loadSchemas();
19078
+ if (envelope.query !== void 0) {
19079
+ const maybeQuery = await this._validation.gateRequest("syncRuntimeBackupStateAsClusterAdmin", _schemas.zSyncRuntimeBackupStateAsClusterAdminQuery, envelope.query);
19080
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
19081
+ }
19082
+ }
19083
+ const opts = { client: this._client, signal, throwOnError: false };
19084
+ if (envelope.query) opts.query = envelope.query;
19085
+ const call = async () => {
19086
+ try {
19087
+ const _raw = await syncRuntimeBackupStateAsClusterAdmin(opts);
19088
+ let data = this._evaluateResponse(_raw, "syncRuntimeBackupStateAsClusterAdmin", (resp) => {
19089
+ const st = resp.status ?? resp.response?.status;
19090
+ if (!st) return void 0;
19091
+ const candidate = st === 429 || st === 503 || st === 500;
19092
+ if (!candidate) return void 0;
19093
+ let prob = void 0;
19094
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
19095
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
19096
+ err.status = st;
19097
+ err.name = "HttpSdkError";
19098
+ if (prob) {
19099
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
19100
+ }
19101
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
19102
+ if (!isBp) err.nonRetryable = true;
19103
+ return err;
19104
+ });
19105
+ const _respSchemaName = "zSyncRuntimeBackupStateAsClusterAdminResponse";
19106
+ if (this._isVoidResponse(_respSchemaName)) {
19107
+ data = void 0;
19108
+ }
19109
+ if (this._validation.settings.res !== "none") {
19110
+ const _schemas = await this._loadSchemas();
19111
+ const _schema = _schemas.zSyncRuntimeBackupStateAsClusterAdminResponse;
19112
+ if (_schema) {
19113
+ const maybeR = await this._validation.gateResponse("syncRuntimeBackupStateAsClusterAdmin", _schema, data);
19114
+ if (this._validation.settings.res === "strict") data = maybeR;
19115
+ }
19116
+ }
19117
+ return data;
19118
+ } catch (e) {
19119
+ throw e;
19120
+ }
19121
+ };
19122
+ return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
19123
+ });
19124
+ }
18736
19125
  takeHistoryBackup(arg, options) {
18737
19126
  return toCancelable2(async (signal) => {
18738
19127
  const _body = arg;
@@ -18901,6 +19290,66 @@ var CamundaClient = class {
18901
19290
  return this._invokeWithRetry(() => call(), { opId: "takeRuntimeBackup", exempt: false, retryOverride: options?.retry });
18902
19291
  });
18903
19292
  }
19293
+ takeRuntimeBackupAsClusterAdmin(arg, options) {
19294
+ return toCancelable2(async (signal) => {
19295
+ const { physicalTenantId, ..._body } = arg || {};
19296
+ let envelope = {};
19297
+ envelope.query = { physicalTenantId };
19298
+ envelope.body = _body;
19299
+ if (this._validation.settings.req !== "none") {
19300
+ const _schemas = await this._loadSchemas();
19301
+ if (envelope.body !== void 0) {
19302
+ const maybeBody = await this._validation.gateRequest("takeRuntimeBackupAsClusterAdmin", _schemas.zTakeRuntimeBackupAsClusterAdminBody, envelope.body);
19303
+ if (this._validation.settings.req === "strict") envelope.body = maybeBody;
19304
+ }
19305
+ if (envelope.query !== void 0) {
19306
+ const maybeQuery = await this._validation.gateRequest("takeRuntimeBackupAsClusterAdmin", _schemas.zTakeRuntimeBackupAsClusterAdminQuery, envelope.query);
19307
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
19308
+ }
19309
+ }
19310
+ const opts = { client: this._client, signal, throwOnError: false };
19311
+ if (envelope.query) opts.query = envelope.query;
19312
+ if (envelope.body !== void 0) opts.body = envelope.body;
19313
+ const call = async () => {
19314
+ try {
19315
+ const _raw = await takeRuntimeBackupAsClusterAdmin(opts);
19316
+ let data = this._evaluateResponse(_raw, "takeRuntimeBackupAsClusterAdmin", (resp) => {
19317
+ const st = resp.status ?? resp.response?.status;
19318
+ if (!st) return void 0;
19319
+ const candidate = st === 429 || st === 503 || st === 500;
19320
+ if (!candidate) return void 0;
19321
+ let prob = void 0;
19322
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
19323
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
19324
+ err.status = st;
19325
+ err.name = "HttpSdkError";
19326
+ if (prob) {
19327
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
19328
+ }
19329
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
19330
+ if (!isBp) err.nonRetryable = true;
19331
+ return err;
19332
+ });
19333
+ const _respSchemaName = "zTakeRuntimeBackupAsClusterAdminResponse";
19334
+ if (this._isVoidResponse(_respSchemaName)) {
19335
+ data = void 0;
19336
+ }
19337
+ if (this._validation.settings.res !== "none") {
19338
+ const _schemas = await this._loadSchemas();
19339
+ const _schema = _schemas.zTakeRuntimeBackupAsClusterAdminResponse;
19340
+ if (_schema) {
19341
+ const maybeR = await this._validation.gateResponse("takeRuntimeBackupAsClusterAdmin", _schema, data);
19342
+ if (this._validation.settings.res === "strict") data = maybeR;
19343
+ }
19344
+ }
19345
+ return data;
19346
+ } catch (e) {
19347
+ throw e;
19348
+ }
19349
+ };
19350
+ return this._invokeWithRetry(() => call(), { opId: "takeRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
19351
+ });
19352
+ }
18904
19353
  throwJobError(arg, options) {
18905
19354
  return toCancelable2(async (signal) => {
18906
19355
  const { jobKey, ..._body } = arg || {};
@@ -20679,4 +21128,4 @@ export {
20679
21128
  createCamundaClient,
20680
21129
  CamundaClient
20681
21130
  };
20682
- //# sourceMappingURL=chunk-M5UHGQJ3.js.map
21131
+ //# sourceMappingURL=chunk-AH6BQSBI.js.map