@camunda8/orchestration-cluster-api 10.0.0-alpha.32 → 10.0.0-alpha.34
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 +19 -0
- package/README.md +50 -1
- package/dist/{CamundaClient-BRj4omSA.d.ts → CamundaClient-BHhMv8K7.d.ts} +1045 -31
- package/dist/{CamundaClient-D9CRR7D0.d.cts → CamundaClient-FYepah9u.d.cts} +1045 -31
- package/dist/{chunk-WHBUDCPU.js → chunk-DVCU3RZY.js} +601 -5
- package/dist/chunk-DVCU3RZY.js.map +1 -0
- package/dist/effect/index.cjs +839 -54
- package/dist/effect/index.cjs.map +1 -1
- package/dist/effect/index.d.cts +1 -1
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/index.cjs +845 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -21
- package/dist/index.d.ts +27 -21
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-2LVIU5XR.js → zod.gen-GHFW5D76.js} +207 -16
- package/dist/zod.gen-GHFW5D76.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-WHBUDCPU.js.map +0 -1
- package/dist/zod.gen-2LVIU5XR.js.map +0 -1
|
@@ -656,6 +656,85 @@ var JobWorker = class {
|
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
+
// src/runtime/pagination.ts
|
|
660
|
+
function abortError() {
|
|
661
|
+
const e = new Error("Pagination aborted");
|
|
662
|
+
e.name = "AbortError";
|
|
663
|
+
return e;
|
|
664
|
+
}
|
|
665
|
+
function limitOf(body) {
|
|
666
|
+
const l = body.page?.limit;
|
|
667
|
+
return typeof l === "number" ? l : void 0;
|
|
668
|
+
}
|
|
669
|
+
function advancePage(prev, advance) {
|
|
670
|
+
const rest = { ...prev ?? {} };
|
|
671
|
+
delete rest.after;
|
|
672
|
+
delete rest.from;
|
|
673
|
+
delete rest.before;
|
|
674
|
+
return { ...rest, ...advance };
|
|
675
|
+
}
|
|
676
|
+
function nextPageRequest(body, response, mode = "auto") {
|
|
677
|
+
const limit = limitOf(body);
|
|
678
|
+
const count = response.items.length;
|
|
679
|
+
if (count === 0) return null;
|
|
680
|
+
if (limit !== void 0 && count < limit) return null;
|
|
681
|
+
const endCursor = response.page?.endCursor ?? null;
|
|
682
|
+
const hasCursor = body.page?.after !== void 0 || body.page?.before !== void 0;
|
|
683
|
+
const hasFrom = typeof body.page?.from === "number";
|
|
684
|
+
let useCursor;
|
|
685
|
+
if (mode === "cursor") useCursor = true;
|
|
686
|
+
else if (mode === "offset") useCursor = false;
|
|
687
|
+
else if (hasCursor && !hasFrom) useCursor = true;
|
|
688
|
+
else if (hasFrom && !hasCursor) useCursor = false;
|
|
689
|
+
else useCursor = endCursor !== null;
|
|
690
|
+
if (useCursor) {
|
|
691
|
+
if (endCursor === null) return null;
|
|
692
|
+
if (body.page?.after === endCursor) return null;
|
|
693
|
+
return {
|
|
694
|
+
...body,
|
|
695
|
+
page: advancePage(body.page, { after: endCursor })
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
const prevFrom = typeof body.page?.from === "number" ? body.page.from : 0;
|
|
699
|
+
return {
|
|
700
|
+
...body,
|
|
701
|
+
page: advancePage(body.page, { from: prevFrom + count })
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
function paginate(fetchPage, body, opts = {}) {
|
|
705
|
+
const { signal, maxPages = Number.POSITIVE_INFINITY, mode = "auto" } = opts;
|
|
706
|
+
async function* pages() {
|
|
707
|
+
let current = body;
|
|
708
|
+
let fetched = 0;
|
|
709
|
+
while (true) {
|
|
710
|
+
if (fetched >= maxPages) return;
|
|
711
|
+
if (signal?.aborted) throw abortError();
|
|
712
|
+
const response = await fetchPage(current, signal, fetched === 0);
|
|
713
|
+
const next = nextPageRequest(current, response, mode);
|
|
714
|
+
yield response;
|
|
715
|
+
fetched += 1;
|
|
716
|
+
if (next === null) return;
|
|
717
|
+
current = next;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
async function* items() {
|
|
721
|
+
for await (const page of pages()) {
|
|
722
|
+
yield* page.items;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
async function toArray() {
|
|
726
|
+
const out = [];
|
|
727
|
+
for await (const item of items()) out.push(item);
|
|
728
|
+
return out;
|
|
729
|
+
}
|
|
730
|
+
return {
|
|
731
|
+
pages,
|
|
732
|
+
items,
|
|
733
|
+
toArray,
|
|
734
|
+
[Symbol.asyncIterator]: pages
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
|
|
659
738
|
// src/gen/core/serverSentEvents.gen.ts
|
|
660
739
|
var __STANDARD_REQUEST_INIT_KEYS = [
|
|
661
740
|
"method",
|
|
@@ -3450,6 +3529,59 @@ var resumeClusterExporting = (options) => (options?.client ?? client).post({
|
|
|
3450
3529
|
url: "/cluster/v2/exporting/resume",
|
|
3451
3530
|
...options
|
|
3452
3531
|
});
|
|
3532
|
+
var listRuntimeBackupsAsClusterAdmin = (options) => (options?.client ?? client).get({
|
|
3533
|
+
requestValidator: void 0,
|
|
3534
|
+
responseValidator: void 0,
|
|
3535
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3536
|
+
url: "/cluster/v2/backups/runtime",
|
|
3537
|
+
...options
|
|
3538
|
+
});
|
|
3539
|
+
var takeRuntimeBackupAsClusterAdmin = (options) => (options?.client ?? client).post({
|
|
3540
|
+
requestValidator: void 0,
|
|
3541
|
+
responseValidator: void 0,
|
|
3542
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3543
|
+
url: "/cluster/v2/backups/runtime",
|
|
3544
|
+
...options,
|
|
3545
|
+
headers: {
|
|
3546
|
+
"Content-Type": "application/json",
|
|
3547
|
+
...options?.headers
|
|
3548
|
+
}
|
|
3549
|
+
});
|
|
3550
|
+
var deleteRuntimeBackupStateAsClusterAdmin = (options) => (options?.client ?? client).delete({
|
|
3551
|
+
requestValidator: void 0,
|
|
3552
|
+
responseValidator: void 0,
|
|
3553
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3554
|
+
url: "/cluster/v2/backups/runtime/state",
|
|
3555
|
+
...options
|
|
3556
|
+
});
|
|
3557
|
+
var getRuntimeBackupStateAsClusterAdmin = (options) => (options?.client ?? client).get({
|
|
3558
|
+
requestValidator: void 0,
|
|
3559
|
+
responseValidator: void 0,
|
|
3560
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3561
|
+
url: "/cluster/v2/backups/runtime/state",
|
|
3562
|
+
...options
|
|
3563
|
+
});
|
|
3564
|
+
var syncRuntimeBackupStateAsClusterAdmin = (options) => (options?.client ?? client).post({
|
|
3565
|
+
requestValidator: void 0,
|
|
3566
|
+
responseValidator: void 0,
|
|
3567
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3568
|
+
url: "/cluster/v2/backups/runtime/state/sync",
|
|
3569
|
+
...options
|
|
3570
|
+
});
|
|
3571
|
+
var deleteRuntimeBackupAsClusterAdmin = (options) => (options.client ?? client).delete({
|
|
3572
|
+
requestValidator: void 0,
|
|
3573
|
+
responseValidator: void 0,
|
|
3574
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3575
|
+
url: "/cluster/v2/backups/runtime/{backupId}",
|
|
3576
|
+
...options
|
|
3577
|
+
});
|
|
3578
|
+
var getRuntimeBackupAsClusterAdmin = (options) => (options.client ?? client).get({
|
|
3579
|
+
requestValidator: void 0,
|
|
3580
|
+
responseValidator: void 0,
|
|
3581
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3582
|
+
url: "/cluster/v2/backups/runtime/{backupId}",
|
|
3583
|
+
...options
|
|
3584
|
+
});
|
|
3453
3585
|
var listHistoryBackupsAsClusterAdmin = (options) => (options?.client ?? client).get({
|
|
3454
3586
|
requestValidator: void 0,
|
|
3455
3587
|
responseValidator: void 0,
|
|
@@ -5027,7 +5159,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
5027
5159
|
}
|
|
5028
5160
|
|
|
5029
5161
|
// src/runtime/version.ts
|
|
5030
|
-
var packageVersion = "10.0.0-alpha.
|
|
5162
|
+
var packageVersion = "10.0.0-alpha.34";
|
|
5031
5163
|
|
|
5032
5164
|
// src/runtime/supportLogger.ts
|
|
5033
5165
|
var NoopSupportLogger = class {
|
|
@@ -6732,6 +6864,70 @@ function evaluateSdkResponse(raw, opts) {
|
|
|
6732
6864
|
return raw.data !== void 0 ? raw.data : raw;
|
|
6733
6865
|
}
|
|
6734
6866
|
|
|
6867
|
+
// src/runtime/searchPagination.ts
|
|
6868
|
+
var NON_PAGINATED_SEARCH_METHODS = /* @__PURE__ */ new Set(["searchVariablesAsDto"]);
|
|
6869
|
+
function mergeAbortSignals(outer, inner) {
|
|
6870
|
+
if (!inner) return outer;
|
|
6871
|
+
const anyFn = AbortSignal.any;
|
|
6872
|
+
if (typeof anyFn === "function") return anyFn([outer, inner]);
|
|
6873
|
+
const ac = new AbortController();
|
|
6874
|
+
if (outer.aborted || inner.aborted) {
|
|
6875
|
+
ac.abort();
|
|
6876
|
+
return ac.signal;
|
|
6877
|
+
}
|
|
6878
|
+
const onAbort = () => ac.abort();
|
|
6879
|
+
outer.addEventListener("abort", onAbort, { once: true });
|
|
6880
|
+
inner.addEventListener("abort", onAbort, { once: true });
|
|
6881
|
+
return ac.signal;
|
|
6882
|
+
}
|
|
6883
|
+
function installSearchPagination(client2) {
|
|
6884
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6885
|
+
let proto = Object.getPrototypeOf(client2);
|
|
6886
|
+
while (proto && proto !== Object.prototype) {
|
|
6887
|
+
for (const name of Object.getOwnPropertyNames(proto)) {
|
|
6888
|
+
if (seen.has(name)) continue;
|
|
6889
|
+
if (!/^search[A-Z]/.test(name)) continue;
|
|
6890
|
+
if (NON_PAGINATED_SEARCH_METHODS.has(name)) continue;
|
|
6891
|
+
const method = proto[name];
|
|
6892
|
+
if (typeof method !== "function") continue;
|
|
6893
|
+
seen.add(name);
|
|
6894
|
+
const call = method.bind(client2);
|
|
6895
|
+
const wrapper = ((...args) => call(...args));
|
|
6896
|
+
wrapper.paginate = (body, opts = {}) => {
|
|
6897
|
+
const { consistency, ...pageOpts } = opts;
|
|
6898
|
+
const fetchPage = (b, signal, isFirstPage = false) => {
|
|
6899
|
+
const baseConsistency = isFirstPage ? consistency ?? { waitUpToMs: 0 } : { waitUpToMs: 0 };
|
|
6900
|
+
const consistencyValue = signal ? {
|
|
6901
|
+
...baseConsistency,
|
|
6902
|
+
abortSignal: mergeAbortSignals(
|
|
6903
|
+
signal,
|
|
6904
|
+
baseConsistency.abortSignal
|
|
6905
|
+
)
|
|
6906
|
+
} : baseConsistency;
|
|
6907
|
+
const consistencyArg = { consistency: consistencyValue };
|
|
6908
|
+
const p = call(b, consistencyArg);
|
|
6909
|
+
if (signal) {
|
|
6910
|
+
const onAbort = () => p.cancel?.();
|
|
6911
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
6912
|
+
const cleanup = () => signal.removeEventListener("abort", onAbort);
|
|
6913
|
+
p.then(cleanup, cleanup);
|
|
6914
|
+
if (signal.aborted) p.cancel?.();
|
|
6915
|
+
}
|
|
6916
|
+
return p;
|
|
6917
|
+
};
|
|
6918
|
+
return paginate(fetchPage, body, pageOpts);
|
|
6919
|
+
};
|
|
6920
|
+
Object.defineProperty(client2, name, {
|
|
6921
|
+
value: wrapper,
|
|
6922
|
+
writable: true,
|
|
6923
|
+
enumerable: false,
|
|
6924
|
+
configurable: true
|
|
6925
|
+
});
|
|
6926
|
+
}
|
|
6927
|
+
proto = Object.getPrototypeOf(proto);
|
|
6928
|
+
}
|
|
6929
|
+
}
|
|
6930
|
+
|
|
6735
6931
|
// src/gen/CamundaClient.ts
|
|
6736
6932
|
function deepFreeze2(obj) {
|
|
6737
6933
|
if (obj && typeof obj === "object" && !Object.isFrozen(obj)) {
|
|
@@ -6742,7 +6938,7 @@ function deepFreeze2(obj) {
|
|
|
6742
6938
|
}
|
|
6743
6939
|
return obj;
|
|
6744
6940
|
}
|
|
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"]);
|
|
6941
|
+
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
6942
|
var CancelError = class extends Error {
|
|
6747
6943
|
constructor() {
|
|
6748
6944
|
super("Cancelled");
|
|
@@ -6782,7 +6978,7 @@ function toCancelable2(factory) {
|
|
|
6782
6978
|
function createCamundaClient(options) {
|
|
6783
6979
|
return new CamundaClient(options);
|
|
6784
6980
|
}
|
|
6785
|
-
var
|
|
6981
|
+
var CamundaClientBase = class {
|
|
6786
6982
|
_client;
|
|
6787
6983
|
_config;
|
|
6788
6984
|
_auth = createAuthFacade({
|
|
@@ -6909,6 +7105,7 @@ var CamundaClient = class {
|
|
|
6909
7105
|
return ["config.hydrated"];
|
|
6910
7106
|
}
|
|
6911
7107
|
});
|
|
7108
|
+
installSearchPagination(this);
|
|
6912
7109
|
}
|
|
6913
7110
|
get config() {
|
|
6914
7111
|
return this._config;
|
|
@@ -7046,7 +7243,7 @@ var CamundaClient = class {
|
|
|
7046
7243
|
_schemasPromise = null;
|
|
7047
7244
|
_loadSchemas() {
|
|
7048
7245
|
if (!this._schemasPromise) {
|
|
7049
|
-
this._schemasPromise = import("./zod.gen-
|
|
7246
|
+
this._schemasPromise = import("./zod.gen-GHFW5D76.js");
|
|
7050
7247
|
}
|
|
7051
7248
|
return this._schemasPromise;
|
|
7052
7249
|
}
|
|
@@ -10407,6 +10604,66 @@ var CamundaClient = class {
|
|
|
10407
10604
|
return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackup", exempt: false, retryOverride: options?.retry });
|
|
10408
10605
|
});
|
|
10409
10606
|
}
|
|
10607
|
+
deleteRuntimeBackupAsClusterAdmin(arg, options) {
|
|
10608
|
+
return toCancelable2(async (signal) => {
|
|
10609
|
+
const { backupId, physicalTenantId } = arg || {};
|
|
10610
|
+
let envelope = {};
|
|
10611
|
+
envelope.path = { backupId };
|
|
10612
|
+
envelope.query = { physicalTenantId };
|
|
10613
|
+
if (this._validation.settings.req !== "none") {
|
|
10614
|
+
const _schemas = await this._loadSchemas();
|
|
10615
|
+
if (envelope.path !== void 0) {
|
|
10616
|
+
const maybePath = await this._validation.gateRequest("deleteRuntimeBackupAsClusterAdmin", _schemas.zDeleteRuntimeBackupAsClusterAdminPath, envelope.path);
|
|
10617
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
10618
|
+
}
|
|
10619
|
+
if (envelope.query !== void 0) {
|
|
10620
|
+
const maybeQuery = await this._validation.gateRequest("deleteRuntimeBackupAsClusterAdmin", _schemas.zDeleteRuntimeBackupAsClusterAdminQuery, envelope.query);
|
|
10621
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
10622
|
+
}
|
|
10623
|
+
}
|
|
10624
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
10625
|
+
if (envelope.path) opts.path = envelope.path;
|
|
10626
|
+
if (envelope.query) opts.query = envelope.query;
|
|
10627
|
+
const call = async () => {
|
|
10628
|
+
try {
|
|
10629
|
+
const _raw = await deleteRuntimeBackupAsClusterAdmin(opts);
|
|
10630
|
+
let data = this._evaluateResponse(_raw, "deleteRuntimeBackupAsClusterAdmin", (resp) => {
|
|
10631
|
+
const st = resp.status ?? resp.response?.status;
|
|
10632
|
+
if (!st) return void 0;
|
|
10633
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
10634
|
+
if (!candidate) return void 0;
|
|
10635
|
+
let prob = void 0;
|
|
10636
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
10637
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
10638
|
+
err.status = st;
|
|
10639
|
+
err.name = "HttpSdkError";
|
|
10640
|
+
if (prob) {
|
|
10641
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
10642
|
+
}
|
|
10643
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
10644
|
+
if (!isBp) err.nonRetryable = true;
|
|
10645
|
+
return err;
|
|
10646
|
+
});
|
|
10647
|
+
const _respSchemaName = "zDeleteRuntimeBackupAsClusterAdminResponse";
|
|
10648
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
10649
|
+
data = void 0;
|
|
10650
|
+
}
|
|
10651
|
+
if (this._validation.settings.res !== "none") {
|
|
10652
|
+
const _schemas = await this._loadSchemas();
|
|
10653
|
+
const _schema = _schemas.zDeleteRuntimeBackupAsClusterAdminResponse;
|
|
10654
|
+
if (_schema) {
|
|
10655
|
+
const maybeR = await this._validation.gateResponse("deleteRuntimeBackupAsClusterAdmin", _schema, data);
|
|
10656
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
10657
|
+
}
|
|
10658
|
+
}
|
|
10659
|
+
return data;
|
|
10660
|
+
} catch (e) {
|
|
10661
|
+
throw e;
|
|
10662
|
+
}
|
|
10663
|
+
};
|
|
10664
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
10665
|
+
});
|
|
10666
|
+
}
|
|
10410
10667
|
deleteRuntimeBackupState(arg, options) {
|
|
10411
10668
|
return toCancelable2(async (signal) => {
|
|
10412
10669
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
@@ -10450,6 +10707,60 @@ var CamundaClient = class {
|
|
|
10450
10707
|
return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupState", exempt: false, retryOverride: options?.retry });
|
|
10451
10708
|
});
|
|
10452
10709
|
}
|
|
10710
|
+
deleteRuntimeBackupStateAsClusterAdmin(arg, options) {
|
|
10711
|
+
return toCancelable2(async (signal) => {
|
|
10712
|
+
const { physicalTenantId } = arg || {};
|
|
10713
|
+
let envelope = {};
|
|
10714
|
+
envelope.query = { physicalTenantId };
|
|
10715
|
+
if (this._validation.settings.req !== "none") {
|
|
10716
|
+
const _schemas = await this._loadSchemas();
|
|
10717
|
+
if (envelope.query !== void 0) {
|
|
10718
|
+
const maybeQuery = await this._validation.gateRequest("deleteRuntimeBackupStateAsClusterAdmin", _schemas.zDeleteRuntimeBackupStateAsClusterAdminQuery, envelope.query);
|
|
10719
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
10720
|
+
}
|
|
10721
|
+
}
|
|
10722
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
10723
|
+
if (envelope.query) opts.query = envelope.query;
|
|
10724
|
+
const call = async () => {
|
|
10725
|
+
try {
|
|
10726
|
+
const _raw = await deleteRuntimeBackupStateAsClusterAdmin(opts);
|
|
10727
|
+
let data = this._evaluateResponse(_raw, "deleteRuntimeBackupStateAsClusterAdmin", (resp) => {
|
|
10728
|
+
const st = resp.status ?? resp.response?.status;
|
|
10729
|
+
if (!st) return void 0;
|
|
10730
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
10731
|
+
if (!candidate) return void 0;
|
|
10732
|
+
let prob = void 0;
|
|
10733
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
10734
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
10735
|
+
err.status = st;
|
|
10736
|
+
err.name = "HttpSdkError";
|
|
10737
|
+
if (prob) {
|
|
10738
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
10739
|
+
}
|
|
10740
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
10741
|
+
if (!isBp) err.nonRetryable = true;
|
|
10742
|
+
return err;
|
|
10743
|
+
});
|
|
10744
|
+
const _respSchemaName = "zDeleteRuntimeBackupStateAsClusterAdminResponse";
|
|
10745
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
10746
|
+
data = void 0;
|
|
10747
|
+
}
|
|
10748
|
+
if (this._validation.settings.res !== "none") {
|
|
10749
|
+
const _schemas = await this._loadSchemas();
|
|
10750
|
+
const _schema = _schemas.zDeleteRuntimeBackupStateAsClusterAdminResponse;
|
|
10751
|
+
if (_schema) {
|
|
10752
|
+
const maybeR = await this._validation.gateResponse("deleteRuntimeBackupStateAsClusterAdmin", _schema, data);
|
|
10753
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
10754
|
+
}
|
|
10755
|
+
}
|
|
10756
|
+
return data;
|
|
10757
|
+
} catch (e) {
|
|
10758
|
+
throw e;
|
|
10759
|
+
}
|
|
10760
|
+
};
|
|
10761
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
10762
|
+
});
|
|
10763
|
+
}
|
|
10453
10764
|
deleteTenant(arg, options) {
|
|
10454
10765
|
return toCancelable2(async (signal) => {
|
|
10455
10766
|
const { tenantId } = arg || {};
|
|
@@ -13643,6 +13954,66 @@ var CamundaClient = class {
|
|
|
13643
13954
|
return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackup", exempt: false, retryOverride: options?.retry });
|
|
13644
13955
|
});
|
|
13645
13956
|
}
|
|
13957
|
+
getRuntimeBackupAsClusterAdmin(arg, options) {
|
|
13958
|
+
return toCancelable2(async (signal) => {
|
|
13959
|
+
const { backupId, physicalTenantId } = arg || {};
|
|
13960
|
+
let envelope = {};
|
|
13961
|
+
envelope.path = { backupId };
|
|
13962
|
+
envelope.query = { physicalTenantId };
|
|
13963
|
+
if (this._validation.settings.req !== "none") {
|
|
13964
|
+
const _schemas = await this._loadSchemas();
|
|
13965
|
+
if (envelope.path !== void 0) {
|
|
13966
|
+
const maybePath = await this._validation.gateRequest("getRuntimeBackupAsClusterAdmin", _schemas.zGetRuntimeBackupAsClusterAdminPath, envelope.path);
|
|
13967
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
13968
|
+
}
|
|
13969
|
+
if (envelope.query !== void 0) {
|
|
13970
|
+
const maybeQuery = await this._validation.gateRequest("getRuntimeBackupAsClusterAdmin", _schemas.zGetRuntimeBackupAsClusterAdminQuery, envelope.query);
|
|
13971
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
13972
|
+
}
|
|
13973
|
+
}
|
|
13974
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
13975
|
+
if (envelope.path) opts.path = envelope.path;
|
|
13976
|
+
if (envelope.query) opts.query = envelope.query;
|
|
13977
|
+
const call = async () => {
|
|
13978
|
+
try {
|
|
13979
|
+
const _raw = await getRuntimeBackupAsClusterAdmin(opts);
|
|
13980
|
+
let data = this._evaluateResponse(_raw, "getRuntimeBackupAsClusterAdmin", (resp) => {
|
|
13981
|
+
const st = resp.status ?? resp.response?.status;
|
|
13982
|
+
if (!st) return void 0;
|
|
13983
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
13984
|
+
if (!candidate) return void 0;
|
|
13985
|
+
let prob = void 0;
|
|
13986
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
13987
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
13988
|
+
err.status = st;
|
|
13989
|
+
err.name = "HttpSdkError";
|
|
13990
|
+
if (prob) {
|
|
13991
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
13992
|
+
}
|
|
13993
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
13994
|
+
if (!isBp) err.nonRetryable = true;
|
|
13995
|
+
return err;
|
|
13996
|
+
});
|
|
13997
|
+
const _respSchemaName = "zGetRuntimeBackupAsClusterAdminResponse";
|
|
13998
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
13999
|
+
data = void 0;
|
|
14000
|
+
}
|
|
14001
|
+
if (this._validation.settings.res !== "none") {
|
|
14002
|
+
const _schemas = await this._loadSchemas();
|
|
14003
|
+
const _schema = _schemas.zGetRuntimeBackupAsClusterAdminResponse;
|
|
14004
|
+
if (_schema) {
|
|
14005
|
+
const maybeR = await this._validation.gateResponse("getRuntimeBackupAsClusterAdmin", _schema, data);
|
|
14006
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14007
|
+
}
|
|
14008
|
+
}
|
|
14009
|
+
return data;
|
|
14010
|
+
} catch (e) {
|
|
14011
|
+
throw e;
|
|
14012
|
+
}
|
|
14013
|
+
};
|
|
14014
|
+
return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
14015
|
+
});
|
|
14016
|
+
}
|
|
13646
14017
|
getRuntimeBackupState(arg, options) {
|
|
13647
14018
|
return toCancelable2(async (signal) => {
|
|
13648
14019
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
@@ -13686,6 +14057,60 @@ var CamundaClient = class {
|
|
|
13686
14057
|
return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupState", exempt: false, retryOverride: options?.retry });
|
|
13687
14058
|
});
|
|
13688
14059
|
}
|
|
14060
|
+
getRuntimeBackupStateAsClusterAdmin(arg, options) {
|
|
14061
|
+
return toCancelable2(async (signal) => {
|
|
14062
|
+
const { physicalTenantId } = arg || {};
|
|
14063
|
+
let envelope = {};
|
|
14064
|
+
envelope.query = { physicalTenantId };
|
|
14065
|
+
if (this._validation.settings.req !== "none") {
|
|
14066
|
+
const _schemas = await this._loadSchemas();
|
|
14067
|
+
if (envelope.query !== void 0) {
|
|
14068
|
+
const maybeQuery = await this._validation.gateRequest("getRuntimeBackupStateAsClusterAdmin", _schemas.zGetRuntimeBackupStateAsClusterAdminQuery, envelope.query);
|
|
14069
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14070
|
+
}
|
|
14071
|
+
}
|
|
14072
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14073
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14074
|
+
const call = async () => {
|
|
14075
|
+
try {
|
|
14076
|
+
const _raw = await getRuntimeBackupStateAsClusterAdmin(opts);
|
|
14077
|
+
let data = this._evaluateResponse(_raw, "getRuntimeBackupStateAsClusterAdmin", (resp) => {
|
|
14078
|
+
const st = resp.status ?? resp.response?.status;
|
|
14079
|
+
if (!st) return void 0;
|
|
14080
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14081
|
+
if (!candidate) return void 0;
|
|
14082
|
+
let prob = void 0;
|
|
14083
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14084
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14085
|
+
err.status = st;
|
|
14086
|
+
err.name = "HttpSdkError";
|
|
14087
|
+
if (prob) {
|
|
14088
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14089
|
+
}
|
|
14090
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14091
|
+
if (!isBp) err.nonRetryable = true;
|
|
14092
|
+
return err;
|
|
14093
|
+
});
|
|
14094
|
+
const _respSchemaName = "zGetRuntimeBackupStateAsClusterAdminResponse";
|
|
14095
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14096
|
+
data = void 0;
|
|
14097
|
+
}
|
|
14098
|
+
if (this._validation.settings.res !== "none") {
|
|
14099
|
+
const _schemas = await this._loadSchemas();
|
|
14100
|
+
const _schema = _schemas.zGetRuntimeBackupStateAsClusterAdminResponse;
|
|
14101
|
+
if (_schema) {
|
|
14102
|
+
const maybeR = await this._validation.gateResponse("getRuntimeBackupStateAsClusterAdmin", _schema, data);
|
|
14103
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14104
|
+
}
|
|
14105
|
+
}
|
|
14106
|
+
return data;
|
|
14107
|
+
} catch (e) {
|
|
14108
|
+
throw e;
|
|
14109
|
+
}
|
|
14110
|
+
};
|
|
14111
|
+
return this._invokeWithRetry(() => call(), { opId: "getRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
14112
|
+
});
|
|
14113
|
+
}
|
|
13689
14114
|
getStartProcessForm(arg, consistencyManagement, options) {
|
|
13690
14115
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
13691
14116
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -14441,6 +14866,60 @@ var CamundaClient = class {
|
|
|
14441
14866
|
return this._invokeWithRetry(() => call(), { opId: "listRuntimeBackups", exempt: false, retryOverride: options?.retry });
|
|
14442
14867
|
});
|
|
14443
14868
|
}
|
|
14869
|
+
listRuntimeBackupsAsClusterAdmin(arg, options) {
|
|
14870
|
+
return toCancelable2(async (signal) => {
|
|
14871
|
+
const { physicalTenantId, prefix } = arg || {};
|
|
14872
|
+
let envelope = {};
|
|
14873
|
+
envelope.query = { physicalTenantId, prefix };
|
|
14874
|
+
if (this._validation.settings.req !== "none") {
|
|
14875
|
+
const _schemas = await this._loadSchemas();
|
|
14876
|
+
if (envelope.query !== void 0) {
|
|
14877
|
+
const maybeQuery = await this._validation.gateRequest("listRuntimeBackupsAsClusterAdmin", _schemas.zListRuntimeBackupsAsClusterAdminQuery, envelope.query);
|
|
14878
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14879
|
+
}
|
|
14880
|
+
}
|
|
14881
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14882
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14883
|
+
const call = async () => {
|
|
14884
|
+
try {
|
|
14885
|
+
const _raw = await listRuntimeBackupsAsClusterAdmin(opts);
|
|
14886
|
+
let data = this._evaluateResponse(_raw, "listRuntimeBackupsAsClusterAdmin", (resp) => {
|
|
14887
|
+
const st = resp.status ?? resp.response?.status;
|
|
14888
|
+
if (!st) return void 0;
|
|
14889
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14890
|
+
if (!candidate) return void 0;
|
|
14891
|
+
let prob = void 0;
|
|
14892
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14893
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14894
|
+
err.status = st;
|
|
14895
|
+
err.name = "HttpSdkError";
|
|
14896
|
+
if (prob) {
|
|
14897
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14898
|
+
}
|
|
14899
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14900
|
+
if (!isBp) err.nonRetryable = true;
|
|
14901
|
+
return err;
|
|
14902
|
+
});
|
|
14903
|
+
const _respSchemaName = "zListRuntimeBackupsAsClusterAdminResponse";
|
|
14904
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14905
|
+
data = void 0;
|
|
14906
|
+
}
|
|
14907
|
+
if (this._validation.settings.res !== "none") {
|
|
14908
|
+
const _schemas = await this._loadSchemas();
|
|
14909
|
+
const _schema = _schemas.zListRuntimeBackupsAsClusterAdminResponse;
|
|
14910
|
+
if (_schema) {
|
|
14911
|
+
const maybeR = await this._validation.gateResponse("listRuntimeBackupsAsClusterAdmin", _schema, data);
|
|
14912
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14913
|
+
}
|
|
14914
|
+
}
|
|
14915
|
+
return data;
|
|
14916
|
+
} catch (e) {
|
|
14917
|
+
throw e;
|
|
14918
|
+
}
|
|
14919
|
+
};
|
|
14920
|
+
return this._invokeWithRetry(() => call(), { opId: "listRuntimeBackupsAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
14921
|
+
});
|
|
14922
|
+
}
|
|
14444
14923
|
listSecrets(arg, options) {
|
|
14445
14924
|
return toCancelable2(async (signal) => {
|
|
14446
14925
|
const _body = arg;
|
|
@@ -18733,6 +19212,60 @@ var CamundaClient = class {
|
|
|
18733
19212
|
return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupState", exempt: false, retryOverride: options?.retry });
|
|
18734
19213
|
});
|
|
18735
19214
|
}
|
|
19215
|
+
syncRuntimeBackupStateAsClusterAdmin(arg, options) {
|
|
19216
|
+
return toCancelable2(async (signal) => {
|
|
19217
|
+
const { physicalTenantId } = arg || {};
|
|
19218
|
+
let envelope = {};
|
|
19219
|
+
envelope.query = { physicalTenantId };
|
|
19220
|
+
if (this._validation.settings.req !== "none") {
|
|
19221
|
+
const _schemas = await this._loadSchemas();
|
|
19222
|
+
if (envelope.query !== void 0) {
|
|
19223
|
+
const maybeQuery = await this._validation.gateRequest("syncRuntimeBackupStateAsClusterAdmin", _schemas.zSyncRuntimeBackupStateAsClusterAdminQuery, envelope.query);
|
|
19224
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
19225
|
+
}
|
|
19226
|
+
}
|
|
19227
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
19228
|
+
if (envelope.query) opts.query = envelope.query;
|
|
19229
|
+
const call = async () => {
|
|
19230
|
+
try {
|
|
19231
|
+
const _raw = await syncRuntimeBackupStateAsClusterAdmin(opts);
|
|
19232
|
+
let data = this._evaluateResponse(_raw, "syncRuntimeBackupStateAsClusterAdmin", (resp) => {
|
|
19233
|
+
const st = resp.status ?? resp.response?.status;
|
|
19234
|
+
if (!st) return void 0;
|
|
19235
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
19236
|
+
if (!candidate) return void 0;
|
|
19237
|
+
let prob = void 0;
|
|
19238
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
19239
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
19240
|
+
err.status = st;
|
|
19241
|
+
err.name = "HttpSdkError";
|
|
19242
|
+
if (prob) {
|
|
19243
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
19244
|
+
}
|
|
19245
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
19246
|
+
if (!isBp) err.nonRetryable = true;
|
|
19247
|
+
return err;
|
|
19248
|
+
});
|
|
19249
|
+
const _respSchemaName = "zSyncRuntimeBackupStateAsClusterAdminResponse";
|
|
19250
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
19251
|
+
data = void 0;
|
|
19252
|
+
}
|
|
19253
|
+
if (this._validation.settings.res !== "none") {
|
|
19254
|
+
const _schemas = await this._loadSchemas();
|
|
19255
|
+
const _schema = _schemas.zSyncRuntimeBackupStateAsClusterAdminResponse;
|
|
19256
|
+
if (_schema) {
|
|
19257
|
+
const maybeR = await this._validation.gateResponse("syncRuntimeBackupStateAsClusterAdmin", _schema, data);
|
|
19258
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
19259
|
+
}
|
|
19260
|
+
}
|
|
19261
|
+
return data;
|
|
19262
|
+
} catch (e) {
|
|
19263
|
+
throw e;
|
|
19264
|
+
}
|
|
19265
|
+
};
|
|
19266
|
+
return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupStateAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
19267
|
+
});
|
|
19268
|
+
}
|
|
18736
19269
|
takeHistoryBackup(arg, options) {
|
|
18737
19270
|
return toCancelable2(async (signal) => {
|
|
18738
19271
|
const _body = arg;
|
|
@@ -18901,6 +19434,66 @@ var CamundaClient = class {
|
|
|
18901
19434
|
return this._invokeWithRetry(() => call(), { opId: "takeRuntimeBackup", exempt: false, retryOverride: options?.retry });
|
|
18902
19435
|
});
|
|
18903
19436
|
}
|
|
19437
|
+
takeRuntimeBackupAsClusterAdmin(arg, options) {
|
|
19438
|
+
return toCancelable2(async (signal) => {
|
|
19439
|
+
const { physicalTenantId, ..._body } = arg || {};
|
|
19440
|
+
let envelope = {};
|
|
19441
|
+
envelope.query = { physicalTenantId };
|
|
19442
|
+
envelope.body = _body;
|
|
19443
|
+
if (this._validation.settings.req !== "none") {
|
|
19444
|
+
const _schemas = await this._loadSchemas();
|
|
19445
|
+
if (envelope.body !== void 0) {
|
|
19446
|
+
const maybeBody = await this._validation.gateRequest("takeRuntimeBackupAsClusterAdmin", _schemas.zTakeRuntimeBackupAsClusterAdminBody, envelope.body);
|
|
19447
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
19448
|
+
}
|
|
19449
|
+
if (envelope.query !== void 0) {
|
|
19450
|
+
const maybeQuery = await this._validation.gateRequest("takeRuntimeBackupAsClusterAdmin", _schemas.zTakeRuntimeBackupAsClusterAdminQuery, envelope.query);
|
|
19451
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
19452
|
+
}
|
|
19453
|
+
}
|
|
19454
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
19455
|
+
if (envelope.query) opts.query = envelope.query;
|
|
19456
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
19457
|
+
const call = async () => {
|
|
19458
|
+
try {
|
|
19459
|
+
const _raw = await takeRuntimeBackupAsClusterAdmin(opts);
|
|
19460
|
+
let data = this._evaluateResponse(_raw, "takeRuntimeBackupAsClusterAdmin", (resp) => {
|
|
19461
|
+
const st = resp.status ?? resp.response?.status;
|
|
19462
|
+
if (!st) return void 0;
|
|
19463
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
19464
|
+
if (!candidate) return void 0;
|
|
19465
|
+
let prob = void 0;
|
|
19466
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
19467
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
19468
|
+
err.status = st;
|
|
19469
|
+
err.name = "HttpSdkError";
|
|
19470
|
+
if (prob) {
|
|
19471
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
19472
|
+
}
|
|
19473
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
19474
|
+
if (!isBp) err.nonRetryable = true;
|
|
19475
|
+
return err;
|
|
19476
|
+
});
|
|
19477
|
+
const _respSchemaName = "zTakeRuntimeBackupAsClusterAdminResponse";
|
|
19478
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
19479
|
+
data = void 0;
|
|
19480
|
+
}
|
|
19481
|
+
if (this._validation.settings.res !== "none") {
|
|
19482
|
+
const _schemas = await this._loadSchemas();
|
|
19483
|
+
const _schema = _schemas.zTakeRuntimeBackupAsClusterAdminResponse;
|
|
19484
|
+
if (_schema) {
|
|
19485
|
+
const maybeR = await this._validation.gateResponse("takeRuntimeBackupAsClusterAdmin", _schema, data);
|
|
19486
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
19487
|
+
}
|
|
19488
|
+
}
|
|
19489
|
+
return data;
|
|
19490
|
+
} catch (e) {
|
|
19491
|
+
throw e;
|
|
19492
|
+
}
|
|
19493
|
+
};
|
|
19494
|
+
return this._invokeWithRetry(() => call(), { opId: "takeRuntimeBackupAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
19495
|
+
});
|
|
19496
|
+
}
|
|
18904
19497
|
throwJobError(arg, options) {
|
|
18905
19498
|
return toCancelable2(async (signal) => {
|
|
18906
19499
|
const { jobKey, ..._body } = arg || {};
|
|
@@ -20662,6 +21255,7 @@ var CamundaClient = class {
|
|
|
20662
21255
|
});
|
|
20663
21256
|
}
|
|
20664
21257
|
};
|
|
21258
|
+
var CamundaClient = CamundaClientBase;
|
|
20665
21259
|
|
|
20666
21260
|
export {
|
|
20667
21261
|
isSdkError,
|
|
@@ -20675,8 +21269,10 @@ export {
|
|
|
20675
21269
|
VariableCollector,
|
|
20676
21270
|
collectTypedVariables,
|
|
20677
21271
|
JobActionReceipt,
|
|
21272
|
+
nextPageRequest,
|
|
21273
|
+
paginate,
|
|
20678
21274
|
CancelError,
|
|
20679
21275
|
createCamundaClient,
|
|
20680
21276
|
CamundaClient
|
|
20681
21277
|
};
|
|
20682
|
-
//# sourceMappingURL=chunk-
|
|
21278
|
+
//# sourceMappingURL=chunk-DVCU3RZY.js.map
|