@camunda8/orchestration-cluster-api 10.0.0-alpha.18 → 10.0.0-alpha.19

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.
@@ -129,6 +129,8 @@ var VariableScopeCollisionError = class extends TypedVariablesError {
129
129
  this.scopeKeys = scopeKeys;
130
130
  this.name = "VariableScopeCollisionError";
131
131
  }
132
+ variableName;
133
+ scopeKeys;
132
134
  };
133
135
  var VariableDeserializationError = class extends TypedVariablesError {
134
136
  constructor(variableName, options) {
@@ -136,6 +138,7 @@ var VariableDeserializationError = class extends TypedVariablesError {
136
138
  this.variableName = variableName;
137
139
  this.name = "VariableDeserializationError";
138
140
  }
141
+ variableName;
139
142
  };
140
143
  function variableNamesFromSchema(schema) {
141
144
  const shape = schema == null ? void 0 : schema.shape;
@@ -151,6 +154,8 @@ var VariableMap = class {
151
154
  this._raw = _raw;
152
155
  this._schema = _schema;
153
156
  }
157
+ _raw;
158
+ _schema;
154
159
  /** The parsed variable values, keyed by variable name. */
155
160
  get raw() {
156
161
  return this._raw;
@@ -1539,6 +1544,59 @@ var updateAuthorization = (options) => (options.client ?? client).put({
1539
1544
  ...options.headers
1540
1545
  }
1541
1546
  });
1547
+ var listRuntimeBackups = (options) => (options?.client ?? client).get({
1548
+ requestValidator: void 0,
1549
+ responseValidator: void 0,
1550
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1551
+ url: "/backups/runtime",
1552
+ ...options
1553
+ });
1554
+ var takeRuntimeBackup = (options) => (options?.client ?? client).post({
1555
+ requestValidator: void 0,
1556
+ responseValidator: void 0,
1557
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1558
+ url: "/backups/runtime",
1559
+ ...options,
1560
+ headers: {
1561
+ "Content-Type": "application/json",
1562
+ ...options?.headers
1563
+ }
1564
+ });
1565
+ var deleteRuntimeBackupState = (options) => (options?.client ?? client).delete({
1566
+ requestValidator: void 0,
1567
+ responseValidator: void 0,
1568
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1569
+ url: "/backups/runtime/state",
1570
+ ...options
1571
+ });
1572
+ var getRuntimeBackupState = (options) => (options?.client ?? client).get({
1573
+ requestValidator: void 0,
1574
+ responseValidator: void 0,
1575
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1576
+ url: "/backups/runtime/state",
1577
+ ...options
1578
+ });
1579
+ var syncRuntimeBackupState = (options) => (options?.client ?? client).post({
1580
+ requestValidator: void 0,
1581
+ responseValidator: void 0,
1582
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1583
+ url: "/backups/runtime/state/sync",
1584
+ ...options
1585
+ });
1586
+ var deleteRuntimeBackup = (options) => (options.client ?? client).delete({
1587
+ requestValidator: void 0,
1588
+ responseValidator: void 0,
1589
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1590
+ url: "/backups/runtime/{backupId}",
1591
+ ...options
1592
+ });
1593
+ var getRuntimeBackup = (options) => (options.client ?? client).get({
1594
+ requestValidator: void 0,
1595
+ responseValidator: void 0,
1596
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1597
+ url: "/backups/runtime/{backupId}",
1598
+ ...options
1599
+ });
1542
1600
  var searchBatchOperationItems = (options) => (options?.client ?? client).post({
1543
1601
  requestValidator: void 0,
1544
1602
  responseValidator: void 0,
@@ -1948,6 +2006,20 @@ var createElementInstanceVariables = (options) => (options.client ?? client).put
1948
2006
  ...options.headers
1949
2007
  }
1950
2008
  });
2009
+ var pauseExporting = (options) => (options?.client ?? client).post({
2010
+ requestValidator: void 0,
2011
+ responseValidator: void 0,
2012
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
2013
+ url: "/exporting/pause",
2014
+ ...options
2015
+ });
2016
+ var resumeExporting = (options) => (options?.client ?? client).post({
2017
+ requestValidator: void 0,
2018
+ responseValidator: void 0,
2019
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
2020
+ url: "/exporting/resume",
2021
+ ...options
2022
+ });
1951
2023
  var evaluateExpression = (options) => (options.client ?? client).post({
1952
2024
  requestValidator: void 0,
1953
2025
  responseValidator: void 0,
@@ -2928,6 +3000,17 @@ var resolveSecrets = (options) => (options.client ?? client).post({
2928
3000
  ...options.headers
2929
3001
  }
2930
3002
  });
3003
+ var listSecrets = (options) => (options?.client ?? client).post({
3004
+ requestValidator: void 0,
3005
+ responseValidator: void 0,
3006
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3007
+ url: "/secrets/list",
3008
+ ...options,
3009
+ headers: {
3010
+ "Content-Type": "application/json",
3011
+ ...options?.headers
3012
+ }
3013
+ });
2931
3014
  var createAdminUser = (options) => (options.client ?? client).post({
2932
3015
  requestValidator: void 0,
2933
3016
  responseValidator: void 0,
@@ -2955,6 +3038,12 @@ var getStatus = (options) => (options?.client ?? client).get({
2955
3038
  url: "/status",
2956
3039
  ...options
2957
3040
  });
3041
+ var getClusterStatus = (options) => (options?.client ?? client).get({
3042
+ requestValidator: void 0,
3043
+ responseValidator: void 0,
3044
+ url: "/cluster/v2/status",
3045
+ ...options
3046
+ });
2958
3047
  var getUsageMetrics = (options) => (options.client ?? client).get({
2959
3048
  requestValidator: void 0,
2960
3049
  responseValidator: void 0,
@@ -3155,6 +3244,13 @@ var changeClusterMode = (options) => (options.client ?? client).patch({
3155
3244
  url: "/mode",
3156
3245
  ...options
3157
3246
  });
3247
+ var getRestoreStatus = (options) => (options?.client ?? client).get({
3248
+ requestValidator: void 0,
3249
+ responseValidator: void 0,
3250
+ security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
3251
+ url: "/restore",
3252
+ ...options
3253
+ });
3158
3254
  var restore = (options) => (options.client ?? client).post({
3159
3255
  requestValidator: void 0,
3160
3256
  responseValidator: void 0,
@@ -3338,6 +3434,8 @@ var CamundaAuthError = class extends Error {
3338
3434
  this.cause = cause;
3339
3435
  this.name = "CamundaAuthError";
3340
3436
  }
3437
+ code;
3438
+ cause;
3341
3439
  };
3342
3440
  var OAuthManager = class {
3343
3441
  constructor(cfg, logger, tHooks, correlationProvider) {
@@ -3350,6 +3448,10 @@ var OAuthManager = class {
3350
3448
  this.session = this.isBrowser && typeof window.sessionStorage !== "undefined" ? window.sessionStorage : null;
3351
3449
  this.loadPersisted();
3352
3450
  }
3451
+ cfg;
3452
+ logger;
3453
+ tHooks;
3454
+ correlationProvider;
3353
3455
  refreshing = null;
3354
3456
  token = null;
3355
3457
  storageKey;
@@ -4674,7 +4776,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4674
4776
  }
4675
4777
 
4676
4778
  // src/runtime/version.ts
4677
- var packageVersion = "10.0.0-alpha.18";
4779
+ var packageVersion = "10.0.0-alpha.19";
4678
4780
 
4679
4781
  // src/runtime/supportLogger.ts
4680
4782
  var NoopSupportLogger = class {
@@ -5348,6 +5450,7 @@ var ValidationManager = class {
5348
5450
  this._logger = _logger;
5349
5451
  this._settings = { ...settings };
5350
5452
  }
5453
+ _logger;
5351
5454
  _settings;
5352
5455
  update(settings) {
5353
5456
  this._settings = { ...settings };
@@ -6347,7 +6450,7 @@ function deepFreeze2(obj) {
6347
6450
  }
6348
6451
  return obj;
6349
6452
  }
6350
- var VOID_RESPONSES = /* @__PURE__ */ new Set(["zUpdateAgentInstanceResponse", "zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "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"]);
6453
+ var VOID_RESPONSES = /* @__PURE__ */ new Set(["zUpdateAgentInstanceResponse", "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"]);
6351
6454
  var CancelError = class extends Error {
6352
6455
  constructor() {
6353
6456
  super("Cancelled");
@@ -6651,7 +6754,7 @@ var CamundaClient = class {
6651
6754
  _schemasPromise = null;
6652
6755
  _loadSchemas() {
6653
6756
  if (!this._schemasPromise) {
6654
- this._schemasPromise = import("./zod.gen-Y23JMS2R.js");
6757
+ this._schemasPromise = import("./zod.gen-GEVQP4MW.js");
6655
6758
  }
6656
6759
  return this._schemasPromise;
6657
6760
  }
@@ -9658,6 +9761,100 @@ var CamundaClient = class {
9658
9761
  return this._invokeWithRetry(() => call(), { opId: "deleteRole", exempt: false, retryOverride: options?.retry });
9659
9762
  });
9660
9763
  }
9764
+ deleteRuntimeBackup(arg, options) {
9765
+ return toCancelable2(async (signal) => {
9766
+ const { backupId } = arg || {};
9767
+ let envelope = {};
9768
+ envelope.path = { backupId };
9769
+ if (this._validation.settings.req !== "none") {
9770
+ const _schemas = await this._loadSchemas();
9771
+ await this._validation.gateRequest("deleteRuntimeBackup", void 0, envelope);
9772
+ }
9773
+ const opts = { client: this._client, signal, throwOnError: false };
9774
+ if (envelope.path) opts.path = envelope.path;
9775
+ const call = async () => {
9776
+ try {
9777
+ const _raw = await deleteRuntimeBackup(opts);
9778
+ let data = this._evaluateResponse(_raw, "deleteRuntimeBackup", (resp) => {
9779
+ const st = resp.status ?? resp.response?.status;
9780
+ if (!st) return void 0;
9781
+ const candidate = st === 429 || st === 503 || st === 500;
9782
+ if (!candidate) return void 0;
9783
+ let prob = void 0;
9784
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
9785
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
9786
+ err.status = st;
9787
+ err.name = "HttpSdkError";
9788
+ if (prob) {
9789
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
9790
+ }
9791
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
9792
+ if (!isBp) err.nonRetryable = true;
9793
+ return err;
9794
+ });
9795
+ const _respSchemaName = "zDeleteRuntimeBackupResponse";
9796
+ if (this._isVoidResponse(_respSchemaName)) {
9797
+ data = void 0;
9798
+ }
9799
+ if (this._validation.settings.res !== "none") {
9800
+ const _schemas = await this._loadSchemas();
9801
+ const _schema = _schemas.zDeleteRuntimeBackupResponse;
9802
+ if (_schema) {
9803
+ const maybeR = await this._validation.gateResponse("deleteRuntimeBackup", _schema, data);
9804
+ if (this._validation.settings.res === "strict") data = maybeR;
9805
+ }
9806
+ }
9807
+ return data;
9808
+ } catch (e) {
9809
+ throw e;
9810
+ }
9811
+ };
9812
+ return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackup", exempt: false, retryOverride: options?.retry });
9813
+ });
9814
+ }
9815
+ deleteRuntimeBackupState(arg, options) {
9816
+ return toCancelable2(async (signal) => {
9817
+ const opts = { client: this._client, signal, throwOnError: false };
9818
+ const call = async () => {
9819
+ try {
9820
+ const _raw = await deleteRuntimeBackupState(opts);
9821
+ let data = this._evaluateResponse(_raw, "deleteRuntimeBackupState", (resp) => {
9822
+ const st = resp.status ?? resp.response?.status;
9823
+ if (!st) return void 0;
9824
+ const candidate = st === 429 || st === 503 || st === 500;
9825
+ if (!candidate) return void 0;
9826
+ let prob = void 0;
9827
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
9828
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
9829
+ err.status = st;
9830
+ err.name = "HttpSdkError";
9831
+ if (prob) {
9832
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
9833
+ }
9834
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
9835
+ if (!isBp) err.nonRetryable = true;
9836
+ return err;
9837
+ });
9838
+ const _respSchemaName = "zDeleteRuntimeBackupStateResponse";
9839
+ if (this._isVoidResponse(_respSchemaName)) {
9840
+ data = void 0;
9841
+ }
9842
+ if (this._validation.settings.res !== "none") {
9843
+ const _schemas = await this._loadSchemas();
9844
+ const _schema = _schemas.zDeleteRuntimeBackupStateResponse;
9845
+ if (_schema) {
9846
+ const maybeR = await this._validation.gateResponse("deleteRuntimeBackupState", _schema, data);
9847
+ if (this._validation.settings.res === "strict") data = maybeR;
9848
+ }
9849
+ }
9850
+ return data;
9851
+ } catch (e) {
9852
+ throw e;
9853
+ }
9854
+ };
9855
+ return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupState", exempt: false, retryOverride: options?.retry });
9856
+ });
9857
+ }
9661
9858
  deleteTenant(arg, options) {
9662
9859
  return toCancelable2(async (signal) => {
9663
9860
  const { tenantId } = arg || {};
@@ -10304,6 +10501,49 @@ var CamundaClient = class {
10304
10501
  return invoke();
10305
10502
  });
10306
10503
  }
10504
+ getClusterStatus(arg, options) {
10505
+ return toCancelable2(async (signal) => {
10506
+ const opts = { client: this._client, signal, throwOnError: false };
10507
+ const call = async () => {
10508
+ try {
10509
+ const _raw = await getClusterStatus(opts);
10510
+ let data = this._evaluateResponse(_raw, "getClusterStatus", (resp) => {
10511
+ const st = resp.status ?? resp.response?.status;
10512
+ if (!st) return void 0;
10513
+ const candidate = st === 429 || st === 503 || st === 500;
10514
+ if (!candidate) return void 0;
10515
+ let prob = void 0;
10516
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
10517
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
10518
+ err.status = st;
10519
+ err.name = "HttpSdkError";
10520
+ if (prob) {
10521
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
10522
+ }
10523
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
10524
+ if (!isBp) err.nonRetryable = true;
10525
+ return err;
10526
+ });
10527
+ const _respSchemaName = "zGetClusterStatusResponse";
10528
+ if (this._isVoidResponse(_respSchemaName)) {
10529
+ data = void 0;
10530
+ }
10531
+ if (this._validation.settings.res !== "none") {
10532
+ const _schemas = await this._loadSchemas();
10533
+ const _schema = _schemas.zGetClusterStatusResponse;
10534
+ if (_schema) {
10535
+ const maybeR = await this._validation.gateResponse("getClusterStatus", _schema, data);
10536
+ if (this._validation.settings.res === "strict") data = maybeR;
10537
+ }
10538
+ }
10539
+ return data;
10540
+ } catch (e) {
10541
+ throw e;
10542
+ }
10543
+ };
10544
+ return this._invokeWithRetry(() => call(), { opId: "getClusterStatus", exempt: false, retryOverride: options?.retry });
10545
+ });
10546
+ }
10307
10547
  getDecisionDefinition(arg, consistencyManagement, options) {
10308
10548
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
10309
10549
  const useConsistency = consistencyManagement.consistency;
@@ -12247,23 +12487,13 @@ var CamundaClient = class {
12247
12487
  return invoke();
12248
12488
  });
12249
12489
  }
12250
- getRole(arg, consistencyManagement, options) {
12251
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12252
- const useConsistency = consistencyManagement.consistency;
12490
+ getRestoreStatus(arg, options) {
12253
12491
  return toCancelable2(async (signal) => {
12254
- const { roleId } = arg || {};
12255
- let envelope = {};
12256
- envelope.path = { roleId };
12257
- if (this._validation.settings.req !== "none") {
12258
- const _schemas = await this._loadSchemas();
12259
- await this._validation.gateRequest("getRole", void 0, envelope);
12260
- }
12261
12492
  const opts = { client: this._client, signal, throwOnError: false };
12262
- if (envelope.path) opts.path = envelope.path;
12263
12493
  const call = async () => {
12264
12494
  try {
12265
- const _raw = await getRole(opts);
12266
- let data = this._evaluateResponse(_raw, "getRole", (resp) => {
12495
+ const _raw = await getRestoreStatus(opts);
12496
+ let data = this._evaluateResponse(_raw, "getRestoreStatus", (resp) => {
12267
12497
  const st = resp.status ?? resp.response?.status;
12268
12498
  if (!st) return void 0;
12269
12499
  const candidate = st === 429 || st === 503 || st === 500;
@@ -12280,15 +12510,15 @@ var CamundaClient = class {
12280
12510
  if (!isBp) err.nonRetryable = true;
12281
12511
  return err;
12282
12512
  });
12283
- const _respSchemaName = "zGetRoleResponse";
12513
+ const _respSchemaName = "zGetRestoreStatusResponse";
12284
12514
  if (this._isVoidResponse(_respSchemaName)) {
12285
12515
  data = void 0;
12286
12516
  }
12287
12517
  if (this._validation.settings.res !== "none") {
12288
12518
  const _schemas = await this._loadSchemas();
12289
- const _schema = _schemas.zGetRoleResponse;
12519
+ const _schema = _schemas.zGetRestoreStatusResponse;
12290
12520
  if (_schema) {
12291
- const maybeR = await this._validation.gateResponse("getRole", _schema, data);
12521
+ const maybeR = await this._validation.gateResponse("getRestoreStatus", _schema, data);
12292
12522
  if (this._validation.settings.res === "strict") data = maybeR;
12293
12523
  }
12294
12524
  }
@@ -12297,28 +12527,26 @@ var CamundaClient = class {
12297
12527
  throw e;
12298
12528
  }
12299
12529
  };
12300
- const invoke = () => toCancelable2(() => call());
12301
- if (useConsistency) return eventualPoll("getRole", true, invoke, { ...useConsistency, logger: this._log });
12302
- return invoke();
12530
+ return this._invokeWithRetry(() => call(), { opId: "getRestoreStatus", exempt: false, retryOverride: options?.retry });
12303
12531
  });
12304
12532
  }
12305
- getStartProcessForm(arg, consistencyManagement, options) {
12533
+ getRole(arg, consistencyManagement, options) {
12306
12534
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12307
12535
  const useConsistency = consistencyManagement.consistency;
12308
12536
  return toCancelable2(async (signal) => {
12309
- const { processDefinitionKey } = arg || {};
12537
+ const { roleId } = arg || {};
12310
12538
  let envelope = {};
12311
- envelope.path = { processDefinitionKey };
12539
+ envelope.path = { roleId };
12312
12540
  if (this._validation.settings.req !== "none") {
12313
12541
  const _schemas = await this._loadSchemas();
12314
- await this._validation.gateRequest("getStartProcessForm", void 0, envelope);
12542
+ await this._validation.gateRequest("getRole", void 0, envelope);
12315
12543
  }
12316
12544
  const opts = { client: this._client, signal, throwOnError: false };
12317
12545
  if (envelope.path) opts.path = envelope.path;
12318
12546
  const call = async () => {
12319
12547
  try {
12320
- const _raw = await getStartProcessForm(opts);
12321
- let data = this._evaluateResponse(_raw, "getStartProcessForm", (resp) => {
12548
+ const _raw = await getRole(opts);
12549
+ let data = this._evaluateResponse(_raw, "getRole", (resp) => {
12322
12550
  const st = resp.status ?? resp.response?.status;
12323
12551
  if (!st) return void 0;
12324
12552
  const candidate = st === 429 || st === 503 || st === 500;
@@ -12335,15 +12563,15 @@ var CamundaClient = class {
12335
12563
  if (!isBp) err.nonRetryable = true;
12336
12564
  return err;
12337
12565
  });
12338
- const _respSchemaName = "zGetStartProcessFormResponse";
12566
+ const _respSchemaName = "zGetRoleResponse";
12339
12567
  if (this._isVoidResponse(_respSchemaName)) {
12340
12568
  data = void 0;
12341
12569
  }
12342
12570
  if (this._validation.settings.res !== "none") {
12343
12571
  const _schemas = await this._loadSchemas();
12344
- const _schema = _schemas.zGetStartProcessFormResponse;
12572
+ const _schema = _schemas.zGetRoleResponse;
12345
12573
  if (_schema) {
12346
- const maybeR = await this._validation.gateResponse("getStartProcessForm", _schema, data);
12574
+ const maybeR = await this._validation.gateResponse("getRole", _schema, data);
12347
12575
  if (this._validation.settings.res === "strict") data = maybeR;
12348
12576
  }
12349
12577
  }
@@ -12353,17 +12581,25 @@ var CamundaClient = class {
12353
12581
  }
12354
12582
  };
12355
12583
  const invoke = () => toCancelable2(() => call());
12356
- if (useConsistency) return eventualPoll("getStartProcessForm", true, invoke, { ...useConsistency, logger: this._log });
12584
+ if (useConsistency) return eventualPoll("getRole", true, invoke, { ...useConsistency, logger: this._log });
12357
12585
  return invoke();
12358
12586
  });
12359
12587
  }
12360
- getStatus(arg, options) {
12588
+ getRuntimeBackup(arg, options) {
12361
12589
  return toCancelable2(async (signal) => {
12590
+ const { backupId } = arg || {};
12591
+ let envelope = {};
12592
+ envelope.path = { backupId };
12593
+ if (this._validation.settings.req !== "none") {
12594
+ const _schemas = await this._loadSchemas();
12595
+ await this._validation.gateRequest("getRuntimeBackup", void 0, envelope);
12596
+ }
12362
12597
  const opts = { client: this._client, signal, throwOnError: false };
12598
+ if (envelope.path) opts.path = envelope.path;
12363
12599
  const call = async () => {
12364
12600
  try {
12365
- const _raw = await getStatus(opts);
12366
- let data = this._evaluateResponse(_raw, "getStatus", (resp) => {
12601
+ const _raw = await getRuntimeBackup(opts);
12602
+ let data = this._evaluateResponse(_raw, "getRuntimeBackup", (resp) => {
12367
12603
  const st = resp.status ?? resp.response?.status;
12368
12604
  if (!st) return void 0;
12369
12605
  const candidate = st === 429 || st === 503 || st === 500;
@@ -12380,15 +12616,15 @@ var CamundaClient = class {
12380
12616
  if (!isBp) err.nonRetryable = true;
12381
12617
  return err;
12382
12618
  });
12383
- const _respSchemaName = "zGetStatusResponse";
12619
+ const _respSchemaName = "zGetRuntimeBackupResponse";
12384
12620
  if (this._isVoidResponse(_respSchemaName)) {
12385
12621
  data = void 0;
12386
12622
  }
12387
12623
  if (this._validation.settings.res !== "none") {
12388
12624
  const _schemas = await this._loadSchemas();
12389
- const _schema = _schemas.zGetStatusResponse;
12625
+ const _schema = _schemas.zGetRuntimeBackupResponse;
12390
12626
  if (_schema) {
12391
- const maybeR = await this._validation.gateResponse("getStatus", _schema, data);
12627
+ const maybeR = await this._validation.gateResponse("getRuntimeBackup", _schema, data);
12392
12628
  if (this._validation.settings.res === "strict") data = maybeR;
12393
12629
  }
12394
12630
  }
@@ -12397,16 +12633,16 @@ var CamundaClient = class {
12397
12633
  throw e;
12398
12634
  }
12399
12635
  };
12400
- return this._invokeWithRetry(() => call(), { opId: "getStatus", exempt: false, retryOverride: options?.retry });
12636
+ return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackup", exempt: false, retryOverride: options?.retry });
12401
12637
  });
12402
12638
  }
12403
- getSystemConfiguration(arg, options) {
12639
+ getRuntimeBackupState(arg, options) {
12404
12640
  return toCancelable2(async (signal) => {
12405
12641
  const opts = { client: this._client, signal, throwOnError: false };
12406
12642
  const call = async () => {
12407
12643
  try {
12408
- const _raw = await getSystemConfiguration(opts);
12409
- let data = this._evaluateResponse(_raw, "getSystemConfiguration", (resp) => {
12644
+ const _raw = await getRuntimeBackupState(opts);
12645
+ let data = this._evaluateResponse(_raw, "getRuntimeBackupState", (resp) => {
12410
12646
  const st = resp.status ?? resp.response?.status;
12411
12647
  if (!st) return void 0;
12412
12648
  const candidate = st === 429 || st === 503 || st === 500;
@@ -12423,15 +12659,15 @@ var CamundaClient = class {
12423
12659
  if (!isBp) err.nonRetryable = true;
12424
12660
  return err;
12425
12661
  });
12426
- const _respSchemaName = "zGetSystemConfigurationResponse";
12662
+ const _respSchemaName = "zGetRuntimeBackupStateResponse";
12427
12663
  if (this._isVoidResponse(_respSchemaName)) {
12428
12664
  data = void 0;
12429
12665
  }
12430
12666
  if (this._validation.settings.res !== "none") {
12431
12667
  const _schemas = await this._loadSchemas();
12432
- const _schema = _schemas.zGetSystemConfigurationResponse;
12668
+ const _schema = _schemas.zGetRuntimeBackupStateResponse;
12433
12669
  if (_schema) {
12434
- const maybeR = await this._validation.gateResponse("getSystemConfiguration", _schema, data);
12670
+ const maybeR = await this._validation.gateResponse("getRuntimeBackupState", _schema, data);
12435
12671
  if (this._validation.settings.res === "strict") data = maybeR;
12436
12672
  }
12437
12673
  }
@@ -12440,26 +12676,26 @@ var CamundaClient = class {
12440
12676
  throw e;
12441
12677
  }
12442
12678
  };
12443
- return this._invokeWithRetry(() => call(), { opId: "getSystemConfiguration", exempt: false, retryOverride: options?.retry });
12679
+ return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupState", exempt: false, retryOverride: options?.retry });
12444
12680
  });
12445
12681
  }
12446
- getTenant(arg, consistencyManagement, options) {
12682
+ getStartProcessForm(arg, consistencyManagement, options) {
12447
12683
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12448
12684
  const useConsistency = consistencyManagement.consistency;
12449
12685
  return toCancelable2(async (signal) => {
12450
- const { tenantId } = arg || {};
12686
+ const { processDefinitionKey } = arg || {};
12451
12687
  let envelope = {};
12452
- envelope.path = { tenantId };
12688
+ envelope.path = { processDefinitionKey };
12453
12689
  if (this._validation.settings.req !== "none") {
12454
12690
  const _schemas = await this._loadSchemas();
12455
- await this._validation.gateRequest("getTenant", void 0, envelope);
12691
+ await this._validation.gateRequest("getStartProcessForm", void 0, envelope);
12456
12692
  }
12457
12693
  const opts = { client: this._client, signal, throwOnError: false };
12458
12694
  if (envelope.path) opts.path = envelope.path;
12459
12695
  const call = async () => {
12460
12696
  try {
12461
- const _raw = await getTenant(opts);
12462
- let data = this._evaluateResponse(_raw, "getTenant", (resp) => {
12697
+ const _raw = await getStartProcessForm(opts);
12698
+ let data = this._evaluateResponse(_raw, "getStartProcessForm", (resp) => {
12463
12699
  const st = resp.status ?? resp.response?.status;
12464
12700
  if (!st) return void 0;
12465
12701
  const candidate = st === 429 || st === 503 || st === 500;
@@ -12476,13 +12712,154 @@ var CamundaClient = class {
12476
12712
  if (!isBp) err.nonRetryable = true;
12477
12713
  return err;
12478
12714
  });
12479
- const _respSchemaName = "zGetTenantResponse";
12715
+ const _respSchemaName = "zGetStartProcessFormResponse";
12480
12716
  if (this._isVoidResponse(_respSchemaName)) {
12481
12717
  data = void 0;
12482
12718
  }
12483
12719
  if (this._validation.settings.res !== "none") {
12484
12720
  const _schemas = await this._loadSchemas();
12485
- const _schema = _schemas.zGetTenantResponse;
12721
+ const _schema = _schemas.zGetStartProcessFormResponse;
12722
+ if (_schema) {
12723
+ const maybeR = await this._validation.gateResponse("getStartProcessForm", _schema, data);
12724
+ if (this._validation.settings.res === "strict") data = maybeR;
12725
+ }
12726
+ }
12727
+ return data;
12728
+ } catch (e) {
12729
+ throw e;
12730
+ }
12731
+ };
12732
+ const invoke = () => toCancelable2(() => call());
12733
+ if (useConsistency) return eventualPoll("getStartProcessForm", true, invoke, { ...useConsistency, logger: this._log });
12734
+ return invoke();
12735
+ });
12736
+ }
12737
+ getStatus(arg, options) {
12738
+ return toCancelable2(async (signal) => {
12739
+ const opts = { client: this._client, signal, throwOnError: false };
12740
+ const call = async () => {
12741
+ try {
12742
+ const _raw = await getStatus(opts);
12743
+ let data = this._evaluateResponse(_raw, "getStatus", (resp) => {
12744
+ const st = resp.status ?? resp.response?.status;
12745
+ if (!st) return void 0;
12746
+ const candidate = st === 429 || st === 503 || st === 500;
12747
+ if (!candidate) return void 0;
12748
+ let prob = void 0;
12749
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
12750
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
12751
+ err.status = st;
12752
+ err.name = "HttpSdkError";
12753
+ if (prob) {
12754
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
12755
+ }
12756
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
12757
+ if (!isBp) err.nonRetryable = true;
12758
+ return err;
12759
+ });
12760
+ const _respSchemaName = "zGetStatusResponse";
12761
+ if (this._isVoidResponse(_respSchemaName)) {
12762
+ data = void 0;
12763
+ }
12764
+ if (this._validation.settings.res !== "none") {
12765
+ const _schemas = await this._loadSchemas();
12766
+ const _schema = _schemas.zGetStatusResponse;
12767
+ if (_schema) {
12768
+ const maybeR = await this._validation.gateResponse("getStatus", _schema, data);
12769
+ if (this._validation.settings.res === "strict") data = maybeR;
12770
+ }
12771
+ }
12772
+ return data;
12773
+ } catch (e) {
12774
+ throw e;
12775
+ }
12776
+ };
12777
+ return this._invokeWithRetry(() => call(), { opId: "getStatus", exempt: false, retryOverride: options?.retry });
12778
+ });
12779
+ }
12780
+ getSystemConfiguration(arg, options) {
12781
+ return toCancelable2(async (signal) => {
12782
+ const opts = { client: this._client, signal, throwOnError: false };
12783
+ const call = async () => {
12784
+ try {
12785
+ const _raw = await getSystemConfiguration(opts);
12786
+ let data = this._evaluateResponse(_raw, "getSystemConfiguration", (resp) => {
12787
+ const st = resp.status ?? resp.response?.status;
12788
+ if (!st) return void 0;
12789
+ const candidate = st === 429 || st === 503 || st === 500;
12790
+ if (!candidate) return void 0;
12791
+ let prob = void 0;
12792
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
12793
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
12794
+ err.status = st;
12795
+ err.name = "HttpSdkError";
12796
+ if (prob) {
12797
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
12798
+ }
12799
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
12800
+ if (!isBp) err.nonRetryable = true;
12801
+ return err;
12802
+ });
12803
+ const _respSchemaName = "zGetSystemConfigurationResponse";
12804
+ if (this._isVoidResponse(_respSchemaName)) {
12805
+ data = void 0;
12806
+ }
12807
+ if (this._validation.settings.res !== "none") {
12808
+ const _schemas = await this._loadSchemas();
12809
+ const _schema = _schemas.zGetSystemConfigurationResponse;
12810
+ if (_schema) {
12811
+ const maybeR = await this._validation.gateResponse("getSystemConfiguration", _schema, data);
12812
+ if (this._validation.settings.res === "strict") data = maybeR;
12813
+ }
12814
+ }
12815
+ return data;
12816
+ } catch (e) {
12817
+ throw e;
12818
+ }
12819
+ };
12820
+ return this._invokeWithRetry(() => call(), { opId: "getSystemConfiguration", exempt: false, retryOverride: options?.retry });
12821
+ });
12822
+ }
12823
+ getTenant(arg, consistencyManagement, options) {
12824
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12825
+ const useConsistency = consistencyManagement.consistency;
12826
+ return toCancelable2(async (signal) => {
12827
+ const { tenantId } = arg || {};
12828
+ let envelope = {};
12829
+ envelope.path = { tenantId };
12830
+ if (this._validation.settings.req !== "none") {
12831
+ const _schemas = await this._loadSchemas();
12832
+ await this._validation.gateRequest("getTenant", void 0, envelope);
12833
+ }
12834
+ const opts = { client: this._client, signal, throwOnError: false };
12835
+ if (envelope.path) opts.path = envelope.path;
12836
+ const call = async () => {
12837
+ try {
12838
+ const _raw = await getTenant(opts);
12839
+ let data = this._evaluateResponse(_raw, "getTenant", (resp) => {
12840
+ const st = resp.status ?? resp.response?.status;
12841
+ if (!st) return void 0;
12842
+ const candidate = st === 429 || st === 503 || st === 500;
12843
+ if (!candidate) return void 0;
12844
+ let prob = void 0;
12845
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
12846
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
12847
+ err.status = st;
12848
+ err.name = "HttpSdkError";
12849
+ if (prob) {
12850
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
12851
+ }
12852
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
12853
+ if (!isBp) err.nonRetryable = true;
12854
+ return err;
12855
+ });
12856
+ const _respSchemaName = "zGetTenantResponse";
12857
+ if (this._isVoidResponse(_respSchemaName)) {
12858
+ data = void 0;
12859
+ }
12860
+ if (this._validation.settings.res !== "none") {
12861
+ const _schemas = await this._loadSchemas();
12862
+ const _schema = _schemas.zGetTenantResponse;
12486
12863
  if (_schema) {
12487
12864
  const maybeR = await this._validation.gateResponse("getTenant", _schema, data);
12488
12865
  if (this._validation.settings.res === "strict") data = maybeR;
@@ -12871,6 +13248,111 @@ var CamundaClient = class {
12871
13248
  return invoke();
12872
13249
  });
12873
13250
  }
13251
+ listRuntimeBackups(arg, options) {
13252
+ return toCancelable2(async (signal) => {
13253
+ const { prefix } = arg || {};
13254
+ let envelope = {};
13255
+ envelope.query = { prefix };
13256
+ if (this._validation.settings.req !== "none") {
13257
+ const _schemas = await this._loadSchemas();
13258
+ await this._validation.gateRequest("listRuntimeBackups", void 0, envelope);
13259
+ }
13260
+ const opts = { client: this._client, signal, throwOnError: false };
13261
+ if (envelope.query) opts.query = envelope.query;
13262
+ const call = async () => {
13263
+ try {
13264
+ const _raw = await listRuntimeBackups(opts);
13265
+ let data = this._evaluateResponse(_raw, "listRuntimeBackups", (resp) => {
13266
+ const st = resp.status ?? resp.response?.status;
13267
+ if (!st) return void 0;
13268
+ const candidate = st === 429 || st === 503 || st === 500;
13269
+ if (!candidate) return void 0;
13270
+ let prob = void 0;
13271
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13272
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13273
+ err.status = st;
13274
+ err.name = "HttpSdkError";
13275
+ if (prob) {
13276
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13277
+ }
13278
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13279
+ if (!isBp) err.nonRetryable = true;
13280
+ return err;
13281
+ });
13282
+ const _respSchemaName = "zListRuntimeBackupsResponse";
13283
+ if (this._isVoidResponse(_respSchemaName)) {
13284
+ data = void 0;
13285
+ }
13286
+ if (this._validation.settings.res !== "none") {
13287
+ const _schemas = await this._loadSchemas();
13288
+ const _schema = _schemas.zListRuntimeBackupsResponse;
13289
+ if (_schema) {
13290
+ const maybeR = await this._validation.gateResponse("listRuntimeBackups", _schema, data);
13291
+ if (this._validation.settings.res === "strict") data = maybeR;
13292
+ }
13293
+ }
13294
+ return data;
13295
+ } catch (e) {
13296
+ throw e;
13297
+ }
13298
+ };
13299
+ return this._invokeWithRetry(() => call(), { opId: "listRuntimeBackups", exempt: false, retryOverride: options?.retry });
13300
+ });
13301
+ }
13302
+ listSecrets(arg, options) {
13303
+ return toCancelable2(async (signal) => {
13304
+ const _body = arg;
13305
+ let envelope = {};
13306
+ envelope.body = _body;
13307
+ if (this._validation.settings.req !== "none") {
13308
+ const _schemas = await this._loadSchemas();
13309
+ if (envelope.body !== void 0) {
13310
+ const maybeBody = await this._validation.gateRequest("listSecrets", _schemas.zListSecretsBody, envelope.body);
13311
+ if (this._validation.settings.req === "strict") envelope.body = maybeBody;
13312
+ }
13313
+ }
13314
+ const opts = { client: this._client, signal, throwOnError: false };
13315
+ if (envelope.body !== void 0) opts.body = envelope.body;
13316
+ const call = async () => {
13317
+ try {
13318
+ const _raw = await listSecrets(opts);
13319
+ let data = this._evaluateResponse(_raw, "listSecrets", (resp) => {
13320
+ const st = resp.status ?? resp.response?.status;
13321
+ if (!st) return void 0;
13322
+ const candidate = st === 429 || st === 503 || st === 500;
13323
+ if (!candidate) return void 0;
13324
+ let prob = void 0;
13325
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13326
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13327
+ err.status = st;
13328
+ err.name = "HttpSdkError";
13329
+ if (prob) {
13330
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13331
+ }
13332
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13333
+ if (!isBp) err.nonRetryable = true;
13334
+ return err;
13335
+ });
13336
+ const _respSchemaName = "zListSecretsResponse";
13337
+ if (this._isVoidResponse(_respSchemaName)) {
13338
+ data = void 0;
13339
+ }
13340
+ if (this._validation.settings.res !== "none") {
13341
+ const _schemas = await this._loadSchemas();
13342
+ const _schema = _schemas.zListSecretsResponse;
13343
+ if (_schema) {
13344
+ const maybeR = await this._validation.gateResponse("listSecrets", _schema, data);
13345
+ if (this._validation.settings.res === "strict") data = maybeR;
13346
+ }
13347
+ }
13348
+ return data;
13349
+ } catch (e) {
13350
+ throw e;
13351
+ }
13352
+ };
13353
+ return this._invokeWithRetry(() => call(), { opId: "listSecrets", exempt: false, retryOverride: options?.retry });
13354
+ });
13355
+ }
12874
13356
  migrateProcessInstance(arg, options) {
12875
13357
  return toCancelable2(async (signal) => {
12876
13358
  const { processInstanceKey, ..._body } = arg || {};
@@ -13091,6 +13573,57 @@ var CamundaClient = class {
13091
13573
  return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
13092
13574
  });
13093
13575
  }
13576
+ pauseExporting(arg, options) {
13577
+ return toCancelable2(async (signal) => {
13578
+ const { soft } = arg || {};
13579
+ let envelope = {};
13580
+ envelope.query = { soft };
13581
+ if (this._validation.settings.req !== "none") {
13582
+ const _schemas = await this._loadSchemas();
13583
+ await this._validation.gateRequest("pauseExporting", void 0, envelope);
13584
+ }
13585
+ const opts = { client: this._client, signal, throwOnError: false };
13586
+ if (envelope.query) opts.query = envelope.query;
13587
+ const call = async () => {
13588
+ try {
13589
+ const _raw = await pauseExporting(opts);
13590
+ let data = this._evaluateResponse(_raw, "pauseExporting", (resp) => {
13591
+ const st = resp.status ?? resp.response?.status;
13592
+ if (!st) return void 0;
13593
+ const candidate = st === 429 || st === 503 || st === 500;
13594
+ if (!candidate) return void 0;
13595
+ let prob = void 0;
13596
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13597
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13598
+ err.status = st;
13599
+ err.name = "HttpSdkError";
13600
+ if (prob) {
13601
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13602
+ }
13603
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13604
+ if (!isBp) err.nonRetryable = true;
13605
+ return err;
13606
+ });
13607
+ const _respSchemaName = "zPauseExportingResponse";
13608
+ if (this._isVoidResponse(_respSchemaName)) {
13609
+ data = void 0;
13610
+ }
13611
+ if (this._validation.settings.res !== "none") {
13612
+ const _schemas = await this._loadSchemas();
13613
+ const _schema = _schemas.zPauseExportingResponse;
13614
+ if (_schema) {
13615
+ const maybeR = await this._validation.gateResponse("pauseExporting", _schema, data);
13616
+ if (this._validation.settings.res === "strict") data = maybeR;
13617
+ }
13618
+ }
13619
+ return data;
13620
+ } catch (e) {
13621
+ throw e;
13622
+ }
13623
+ };
13624
+ return this._invokeWithRetry(() => call(), { opId: "pauseExporting", exempt: false, retryOverride: options?.retry });
13625
+ });
13626
+ }
13094
13627
  pinClock(arg, options) {
13095
13628
  return toCancelable2(async (signal) => {
13096
13629
  const _body = arg;
@@ -13571,6 +14104,49 @@ var CamundaClient = class {
13571
14104
  return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false, retryOverride: options?.retry });
13572
14105
  });
13573
14106
  }
14107
+ resumeExporting(arg, options) {
14108
+ return toCancelable2(async (signal) => {
14109
+ const opts = { client: this._client, signal, throwOnError: false };
14110
+ const call = async () => {
14111
+ try {
14112
+ const _raw = await resumeExporting(opts);
14113
+ let data = this._evaluateResponse(_raw, "resumeExporting", (resp) => {
14114
+ const st = resp.status ?? resp.response?.status;
14115
+ if (!st) return void 0;
14116
+ const candidate = st === 429 || st === 503 || st === 500;
14117
+ if (!candidate) return void 0;
14118
+ let prob = void 0;
14119
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
14120
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
14121
+ err.status = st;
14122
+ err.name = "HttpSdkError";
14123
+ if (prob) {
14124
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
14125
+ }
14126
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
14127
+ if (!isBp) err.nonRetryable = true;
14128
+ return err;
14129
+ });
14130
+ const _respSchemaName = "zResumeExportingResponse";
14131
+ if (this._isVoidResponse(_respSchemaName)) {
14132
+ data = void 0;
14133
+ }
14134
+ if (this._validation.settings.res !== "none") {
14135
+ const _schemas = await this._loadSchemas();
14136
+ const _schema = _schemas.zResumeExportingResponse;
14137
+ if (_schema) {
14138
+ const maybeR = await this._validation.gateResponse("resumeExporting", _schema, data);
14139
+ if (this._validation.settings.res === "strict") data = maybeR;
14140
+ }
14141
+ }
14142
+ return data;
14143
+ } catch (e) {
14144
+ throw e;
14145
+ }
14146
+ };
14147
+ return this._invokeWithRetry(() => call(), { opId: "resumeExporting", exempt: false, retryOverride: options?.retry });
14148
+ });
14149
+ }
13574
14150
  resumeProcessInstance(arg, options) {
13575
14151
  return toCancelable2(async (signal) => {
13576
14152
  const { processInstanceKey, ..._body } = arg || {};
@@ -16563,6 +17139,103 @@ var CamundaClient = class {
16563
17139
  return this._invokeWithRetry(() => call(), { opId: "suspendProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
16564
17140
  });
16565
17141
  }
17142
+ syncRuntimeBackupState(arg, options) {
17143
+ return toCancelable2(async (signal) => {
17144
+ const opts = { client: this._client, signal, throwOnError: false };
17145
+ const call = async () => {
17146
+ try {
17147
+ const _raw = await syncRuntimeBackupState(opts);
17148
+ let data = this._evaluateResponse(_raw, "syncRuntimeBackupState", (resp) => {
17149
+ const st = resp.status ?? resp.response?.status;
17150
+ if (!st) return void 0;
17151
+ const candidate = st === 429 || st === 503 || st === 500;
17152
+ if (!candidate) return void 0;
17153
+ let prob = void 0;
17154
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
17155
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
17156
+ err.status = st;
17157
+ err.name = "HttpSdkError";
17158
+ if (prob) {
17159
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
17160
+ }
17161
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
17162
+ if (!isBp) err.nonRetryable = true;
17163
+ return err;
17164
+ });
17165
+ const _respSchemaName = "zSyncRuntimeBackupStateResponse";
17166
+ if (this._isVoidResponse(_respSchemaName)) {
17167
+ data = void 0;
17168
+ }
17169
+ if (this._validation.settings.res !== "none") {
17170
+ const _schemas = await this._loadSchemas();
17171
+ const _schema = _schemas.zSyncRuntimeBackupStateResponse;
17172
+ if (_schema) {
17173
+ const maybeR = await this._validation.gateResponse("syncRuntimeBackupState", _schema, data);
17174
+ if (this._validation.settings.res === "strict") data = maybeR;
17175
+ }
17176
+ }
17177
+ return data;
17178
+ } catch (e) {
17179
+ throw e;
17180
+ }
17181
+ };
17182
+ return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupState", exempt: false, retryOverride: options?.retry });
17183
+ });
17184
+ }
17185
+ takeRuntimeBackup(arg, options) {
17186
+ return toCancelable2(async (signal) => {
17187
+ const _body = arg;
17188
+ let envelope = {};
17189
+ envelope.body = _body;
17190
+ if (this._validation.settings.req !== "none") {
17191
+ const _schemas = await this._loadSchemas();
17192
+ if (envelope.body !== void 0) {
17193
+ const maybeBody = await this._validation.gateRequest("takeRuntimeBackup", _schemas.zTakeRuntimeBackupBody, envelope.body);
17194
+ if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17195
+ }
17196
+ }
17197
+ const opts = { client: this._client, signal, throwOnError: false };
17198
+ if (envelope.body !== void 0) opts.body = envelope.body;
17199
+ const call = async () => {
17200
+ try {
17201
+ const _raw = await takeRuntimeBackup(opts);
17202
+ let data = this._evaluateResponse(_raw, "takeRuntimeBackup", (resp) => {
17203
+ const st = resp.status ?? resp.response?.status;
17204
+ if (!st) return void 0;
17205
+ const candidate = st === 429 || st === 503 || st === 500;
17206
+ if (!candidate) return void 0;
17207
+ let prob = void 0;
17208
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
17209
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
17210
+ err.status = st;
17211
+ err.name = "HttpSdkError";
17212
+ if (prob) {
17213
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
17214
+ }
17215
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
17216
+ if (!isBp) err.nonRetryable = true;
17217
+ return err;
17218
+ });
17219
+ const _respSchemaName = "zTakeRuntimeBackupResponse";
17220
+ if (this._isVoidResponse(_respSchemaName)) {
17221
+ data = void 0;
17222
+ }
17223
+ if (this._validation.settings.res !== "none") {
17224
+ const _schemas = await this._loadSchemas();
17225
+ const _schema = _schemas.zTakeRuntimeBackupResponse;
17226
+ if (_schema) {
17227
+ const maybeR = await this._validation.gateResponse("takeRuntimeBackup", _schema, data);
17228
+ if (this._validation.settings.res === "strict") data = maybeR;
17229
+ }
17230
+ }
17231
+ return data;
17232
+ } catch (e) {
17233
+ throw e;
17234
+ }
17235
+ };
17236
+ return this._invokeWithRetry(() => call(), { opId: "takeRuntimeBackup", exempt: false, retryOverride: options?.retry });
17237
+ });
17238
+ }
16566
17239
  throwJobError(arg, options) {
16567
17240
  return toCancelable2(async (signal) => {
16568
17241
  const { jobKey, ..._body } = arg || {};
@@ -18380,4 +19053,4 @@ export {
18380
19053
  withTimeoutTE,
18381
19054
  eventuallyTE
18382
19055
  };
18383
- //# sourceMappingURL=chunk-MENRNHIZ.js.map
19056
+ //# sourceMappingURL=chunk-JC6LSKNN.js.map