@camunda8/orchestration-cluster-api 10.0.0-alpha.26 → 10.0.0-alpha.28
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 +27 -0
- package/dist/{chunk-UXIQXURB.js → chunk-H6DTQLKK.js} +460 -11
- package/dist/chunk-H6DTQLKK.js.map +1 -0
- package/dist/fp/index.cjs +820 -64
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.d.cts +1 -1
- package/dist/fp/index.d.ts +1 -1
- package/dist/fp/index.js +1 -1
- package/dist/{index-BBCo5RdH.d.cts → index-D0o8vkHz.d.cts} +1294 -98
- package/dist/{index-DUyZASqV.d.ts → index-DQi0RBbC.d.ts} +1294 -98
- package/dist/index.cjs +853 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-4DQL5SMC.js → zod.gen-AXFHZMWR.js} +340 -33
- package/dist/zod.gen-AXFHZMWR.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-UXIQXURB.js.map +0 -1
- package/dist/zod.gen-4DQL5SMC.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
# [10.0.0-alpha.28](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.27...v10.0.0-alpha.28) (2026-08-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **examples:** group plannedChanges by physical tenant ([d494ce7](https://github.com/camunda/orchestration-cluster-api-js/commit/d494ce716fa83a6ef4d406dd77d9e0ffc0797f35))
|
|
7
|
+
* **examples:** group plannedChanges by physical tenant ([525c176](https://github.com/camunda/orchestration-cluster-api-js/commit/525c1760c6f9fe6f7ef0efb06fd6eefa95f2cc8d))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **examples:** add cluster admin and history backup example coverage ([185071c](https://github.com/camunda/orchestration-cluster-api-js/commit/185071c9a62eb7d8cf24f903ca36d66342c4e2bf))
|
|
13
|
+
|
|
14
|
+
# [10.0.0-alpha.27](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.26...v10.0.0-alpha.27) (2026-08-12)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* mark agent-definition test scaffolds as todo with void unused local ([5ec2940](https://github.com/camunda/orchestration-cluster-api-js/commit/5ec2940b008314794b3f2a2263fa5f57d07a1ca8))
|
|
20
|
+
* use it.skip instead of it.todo with a callback in test scaffolds ([f96e189](https://github.com/camunda/orchestration-cluster-api-js/commit/f96e189710b86fe4ecc414803d1bed507a89626f))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add example coverage for getAgentDefinition, searchAgentDefinitions ([e596713](https://github.com/camunda/orchestration-cluster-api-js/commit/e5967130f963939762d6ccf7508fac94e0c2fe76))
|
|
26
|
+
* **examples:** add agent definition examples for getAgentDefinition and searchAgentDefinitions ([d613ac1](https://github.com/camunda/orchestration-cluster-api-js/commit/d613ac1069dbb253c6a91f900cb39ee94cef1eb7))
|
|
27
|
+
|
|
1
28
|
# [10.0.0-alpha.26](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.25...v10.0.0-alpha.26) (2026-08-10)
|
|
2
29
|
|
|
3
30
|
|
|
@@ -1515,6 +1515,24 @@ var createClient = (config = {}) => {
|
|
|
1515
1515
|
var client = createClient(createConfig({ throwOnError: true }));
|
|
1516
1516
|
|
|
1517
1517
|
// src/gen/sdk.gen.ts
|
|
1518
|
+
var getAgentDefinition = (options) => (options.client ?? client).get({
|
|
1519
|
+
requestValidator: void 0,
|
|
1520
|
+
responseValidator: void 0,
|
|
1521
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1522
|
+
url: "/agent-definitions/{agentDefinitionKey}",
|
|
1523
|
+
...options
|
|
1524
|
+
});
|
|
1525
|
+
var searchAgentDefinitions = (options) => (options?.client ?? client).post({
|
|
1526
|
+
requestValidator: void 0,
|
|
1527
|
+
responseValidator: void 0,
|
|
1528
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1529
|
+
url: "/agent-definitions/search",
|
|
1530
|
+
...options,
|
|
1531
|
+
headers: {
|
|
1532
|
+
"Content-Type": "application/json",
|
|
1533
|
+
...options?.headers
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1518
1536
|
var createAgentInstance = (options) => (options.client ?? client).post({
|
|
1519
1537
|
requestValidator: void 0,
|
|
1520
1538
|
responseValidator: void 0,
|
|
@@ -1713,6 +1731,38 @@ var getRuntimeBackup = (options) => (options.client ?? client).get({
|
|
|
1713
1731
|
url: "/backups/runtime/{backupId}",
|
|
1714
1732
|
...options
|
|
1715
1733
|
});
|
|
1734
|
+
var listHistoryBackups = (options) => (options?.client ?? client).get({
|
|
1735
|
+
requestValidator: void 0,
|
|
1736
|
+
responseValidator: void 0,
|
|
1737
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1738
|
+
url: "/backups/history",
|
|
1739
|
+
...options
|
|
1740
|
+
});
|
|
1741
|
+
var takeHistoryBackup = (options) => (options.client ?? client).post({
|
|
1742
|
+
requestValidator: void 0,
|
|
1743
|
+
responseValidator: void 0,
|
|
1744
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1745
|
+
url: "/backups/history",
|
|
1746
|
+
...options,
|
|
1747
|
+
headers: {
|
|
1748
|
+
"Content-Type": "application/json",
|
|
1749
|
+
...options.headers
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
var deleteHistoryBackup = (options) => (options.client ?? client).delete({
|
|
1753
|
+
requestValidator: void 0,
|
|
1754
|
+
responseValidator: void 0,
|
|
1755
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1756
|
+
url: "/backups/history/{backupId}",
|
|
1757
|
+
...options
|
|
1758
|
+
});
|
|
1759
|
+
var getHistoryBackup = (options) => (options.client ?? client).get({
|
|
1760
|
+
requestValidator: void 0,
|
|
1761
|
+
responseValidator: void 0,
|
|
1762
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
1763
|
+
url: "/backups/history/{backupId}",
|
|
1764
|
+
...options
|
|
1765
|
+
});
|
|
1716
1766
|
var searchBatchOperationItems = (options) => (options?.client ?? client).post({
|
|
1717
1767
|
requestValidator: void 0,
|
|
1718
1768
|
responseValidator: void 0,
|
|
@@ -3161,12 +3211,6 @@ var getStatus = (options) => (options?.client ?? client).get({
|
|
|
3161
3211
|
url: "/status",
|
|
3162
3212
|
...options
|
|
3163
3213
|
});
|
|
3164
|
-
var getClusterStatus = (options) => (options?.client ?? client).get({
|
|
3165
|
-
requestValidator: void 0,
|
|
3166
|
-
responseValidator: void 0,
|
|
3167
|
-
url: "/cluster/v2/status",
|
|
3168
|
-
...options
|
|
3169
|
-
});
|
|
3170
3214
|
var getUsageMetrics = (options) => (options.client ?? client).get({
|
|
3171
3215
|
requestValidator: void 0,
|
|
3172
3216
|
responseValidator: void 0,
|
|
@@ -3385,6 +3429,19 @@ var restore = (options) => (options.client ?? client).post({
|
|
|
3385
3429
|
...options.headers
|
|
3386
3430
|
}
|
|
3387
3431
|
});
|
|
3432
|
+
var changeClusterModeAsClusterAdmin = (options) => (options.client ?? client).patch({
|
|
3433
|
+
requestValidator: void 0,
|
|
3434
|
+
responseValidator: void 0,
|
|
3435
|
+
security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
|
|
3436
|
+
url: "/cluster/v2/mode",
|
|
3437
|
+
...options
|
|
3438
|
+
});
|
|
3439
|
+
var getClusterStatus = (options) => (options?.client ?? client).get({
|
|
3440
|
+
requestValidator: void 0,
|
|
3441
|
+
responseValidator: void 0,
|
|
3442
|
+
url: "/cluster/v2/status",
|
|
3443
|
+
...options
|
|
3444
|
+
});
|
|
3388
3445
|
var createUser = (options) => (options.client ?? client).post({
|
|
3389
3446
|
requestValidator: void 0,
|
|
3390
3447
|
responseValidator: void 0,
|
|
@@ -4899,7 +4956,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
4899
4956
|
}
|
|
4900
4957
|
|
|
4901
4958
|
// src/runtime/version.ts
|
|
4902
|
-
var packageVersion = "10.0.0-alpha.
|
|
4959
|
+
var packageVersion = "10.0.0-alpha.28";
|
|
4903
4960
|
|
|
4904
4961
|
// src/runtime/supportLogger.ts
|
|
4905
4962
|
var NoopSupportLogger = class {
|
|
@@ -6614,7 +6671,7 @@ function deepFreeze2(obj) {
|
|
|
6614
6671
|
}
|
|
6615
6672
|
return obj;
|
|
6616
6673
|
}
|
|
6617
|
-
var VOID_RESPONSES = /* @__PURE__ */ new Set(["
|
|
6674
|
+
var VOID_RESPONSES = /* @__PURE__ */ new Set(["zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zDeleteRuntimeBackupStateResponse", "zDeleteRuntimeBackupResponse", "zDeleteHistoryBackupResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zPauseExportingResponse", "zResumeExportingResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zAssignProcessInstanceBusinessIdResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zResumeProcessInstanceResponse", "zSuspendProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
|
|
6618
6675
|
var CancelError = class extends Error {
|
|
6619
6676
|
constructor() {
|
|
6620
6677
|
super("Cancelled");
|
|
@@ -6918,7 +6975,7 @@ var CamundaClient = class {
|
|
|
6918
6975
|
_schemasPromise = null;
|
|
6919
6976
|
_loadSchemas() {
|
|
6920
6977
|
if (!this._schemasPromise) {
|
|
6921
|
-
this._schemasPromise = import("./zod.gen-
|
|
6978
|
+
this._schemasPromise = import("./zod.gen-AXFHZMWR.js");
|
|
6922
6979
|
}
|
|
6923
6980
|
return this._schemasPromise;
|
|
6924
6981
|
}
|
|
@@ -8171,6 +8228,60 @@ var CamundaClient = class {
|
|
|
8171
8228
|
return this._invokeWithRetry(() => call(), { opId: "changeClusterMode", exempt: false, retryOverride: options?.retry });
|
|
8172
8229
|
});
|
|
8173
8230
|
}
|
|
8231
|
+
changeClusterModeAsClusterAdmin(arg, options) {
|
|
8232
|
+
return toCancelable2(async (signal) => {
|
|
8233
|
+
const { mode, physicalTenantId, dryRun } = arg || {};
|
|
8234
|
+
let envelope = {};
|
|
8235
|
+
envelope.query = { mode, physicalTenantId, dryRun };
|
|
8236
|
+
if (this._validation.settings.req !== "none") {
|
|
8237
|
+
const _schemas = await this._loadSchemas();
|
|
8238
|
+
if (envelope.query !== void 0) {
|
|
8239
|
+
const maybeQuery = await this._validation.gateRequest("changeClusterModeAsClusterAdmin", _schemas.zChangeClusterModeAsClusterAdminQuery, envelope.query);
|
|
8240
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
8241
|
+
}
|
|
8242
|
+
}
|
|
8243
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
8244
|
+
if (envelope.query) opts.query = envelope.query;
|
|
8245
|
+
const call = async () => {
|
|
8246
|
+
try {
|
|
8247
|
+
const _raw = await changeClusterModeAsClusterAdmin(opts);
|
|
8248
|
+
let data = this._evaluateResponse(_raw, "changeClusterModeAsClusterAdmin", (resp) => {
|
|
8249
|
+
const st = resp.status ?? resp.response?.status;
|
|
8250
|
+
if (!st) return void 0;
|
|
8251
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
8252
|
+
if (!candidate) return void 0;
|
|
8253
|
+
let prob = void 0;
|
|
8254
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
8255
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
8256
|
+
err.status = st;
|
|
8257
|
+
err.name = "HttpSdkError";
|
|
8258
|
+
if (prob) {
|
|
8259
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
8260
|
+
}
|
|
8261
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
8262
|
+
if (!isBp) err.nonRetryable = true;
|
|
8263
|
+
return err;
|
|
8264
|
+
});
|
|
8265
|
+
const _respSchemaName = "zChangeClusterModeAsClusterAdminResponse";
|
|
8266
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
8267
|
+
data = void 0;
|
|
8268
|
+
}
|
|
8269
|
+
if (this._validation.settings.res !== "none") {
|
|
8270
|
+
const _schemas = await this._loadSchemas();
|
|
8271
|
+
const _schema = _schemas.zChangeClusterModeAsClusterAdminResponse;
|
|
8272
|
+
if (_schema) {
|
|
8273
|
+
const maybeR = await this._validation.gateResponse("changeClusterModeAsClusterAdmin", _schema, data);
|
|
8274
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
8275
|
+
}
|
|
8276
|
+
}
|
|
8277
|
+
return data;
|
|
8278
|
+
} catch (e) {
|
|
8279
|
+
throw e;
|
|
8280
|
+
}
|
|
8281
|
+
};
|
|
8282
|
+
return this._invokeWithRetry(() => call(), { opId: "changeClusterModeAsClusterAdmin", exempt: false, retryOverride: options?.retry });
|
|
8283
|
+
});
|
|
8284
|
+
}
|
|
8174
8285
|
completeJob(arg, options) {
|
|
8175
8286
|
return toCancelable2(async (signal) => {
|
|
8176
8287
|
const { jobKey, ..._body } = arg || {};
|
|
@@ -9775,6 +9886,60 @@ var CamundaClient = class {
|
|
|
9775
9886
|
return this._invokeWithRetry(() => call(), { opId: "deleteGroup", exempt: false, retryOverride: options?.retry });
|
|
9776
9887
|
});
|
|
9777
9888
|
}
|
|
9889
|
+
deleteHistoryBackup(arg, options) {
|
|
9890
|
+
return toCancelable2(async (signal) => {
|
|
9891
|
+
const { backupId } = arg || {};
|
|
9892
|
+
let envelope = {};
|
|
9893
|
+
envelope.path = { backupId };
|
|
9894
|
+
if (this._validation.settings.req !== "none") {
|
|
9895
|
+
const _schemas = await this._loadSchemas();
|
|
9896
|
+
if (envelope.path !== void 0) {
|
|
9897
|
+
const maybePath = await this._validation.gateRequest("deleteHistoryBackup", _schemas.zDeleteHistoryBackupPath, envelope.path);
|
|
9898
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
9899
|
+
}
|
|
9900
|
+
}
|
|
9901
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
9902
|
+
if (envelope.path) opts.path = envelope.path;
|
|
9903
|
+
const call = async () => {
|
|
9904
|
+
try {
|
|
9905
|
+
const _raw = await deleteHistoryBackup(opts);
|
|
9906
|
+
let data = this._evaluateResponse(_raw, "deleteHistoryBackup", (resp) => {
|
|
9907
|
+
const st = resp.status ?? resp.response?.status;
|
|
9908
|
+
if (!st) return void 0;
|
|
9909
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
9910
|
+
if (!candidate) return void 0;
|
|
9911
|
+
let prob = void 0;
|
|
9912
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
9913
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
9914
|
+
err.status = st;
|
|
9915
|
+
err.name = "HttpSdkError";
|
|
9916
|
+
if (prob) {
|
|
9917
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
9918
|
+
}
|
|
9919
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
9920
|
+
if (!isBp) err.nonRetryable = true;
|
|
9921
|
+
return err;
|
|
9922
|
+
});
|
|
9923
|
+
const _respSchemaName = "zDeleteHistoryBackupResponse";
|
|
9924
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
9925
|
+
data = void 0;
|
|
9926
|
+
}
|
|
9927
|
+
if (this._validation.settings.res !== "none") {
|
|
9928
|
+
const _schemas = await this._loadSchemas();
|
|
9929
|
+
const _schema = _schemas.zDeleteHistoryBackupResponse;
|
|
9930
|
+
if (_schema) {
|
|
9931
|
+
const maybeR = await this._validation.gateResponse("deleteHistoryBackup", _schema, data);
|
|
9932
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
9933
|
+
}
|
|
9934
|
+
}
|
|
9935
|
+
return data;
|
|
9936
|
+
} catch (e) {
|
|
9937
|
+
throw e;
|
|
9938
|
+
}
|
|
9939
|
+
};
|
|
9940
|
+
return this._invokeWithRetry(() => call(), { opId: "deleteHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
9941
|
+
});
|
|
9942
|
+
}
|
|
9778
9943
|
deleteMappingRule(arg, options) {
|
|
9779
9944
|
return toCancelable2(async (signal) => {
|
|
9780
9945
|
const { mappingRuleId } = arg || {};
|
|
@@ -10550,6 +10715,64 @@ var CamundaClient = class {
|
|
|
10550
10715
|
return this._invokeWithRetry(() => call(), { opId: "failJob", exempt: true, retryOverride: options?.retry });
|
|
10551
10716
|
});
|
|
10552
10717
|
}
|
|
10718
|
+
getAgentDefinition(arg, consistencyManagement, options) {
|
|
10719
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10720
|
+
const useConsistency = consistencyManagement.consistency;
|
|
10721
|
+
return toCancelable2(async (signal) => {
|
|
10722
|
+
const { agentDefinitionKey } = arg || {};
|
|
10723
|
+
let envelope = {};
|
|
10724
|
+
envelope.path = { agentDefinitionKey };
|
|
10725
|
+
if (this._validation.settings.req !== "none") {
|
|
10726
|
+
const _schemas = await this._loadSchemas();
|
|
10727
|
+
if (envelope.path !== void 0) {
|
|
10728
|
+
const maybePath = await this._validation.gateRequest("getAgentDefinition", _schemas.zGetAgentDefinitionPath, envelope.path);
|
|
10729
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
10730
|
+
}
|
|
10731
|
+
}
|
|
10732
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
10733
|
+
if (envelope.path) opts.path = envelope.path;
|
|
10734
|
+
const call = async () => {
|
|
10735
|
+
try {
|
|
10736
|
+
const _raw = await getAgentDefinition(opts);
|
|
10737
|
+
let data = this._evaluateResponse(_raw, "getAgentDefinition", (resp) => {
|
|
10738
|
+
const st = resp.status ?? resp.response?.status;
|
|
10739
|
+
if (!st) return void 0;
|
|
10740
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
10741
|
+
if (!candidate) return void 0;
|
|
10742
|
+
let prob = void 0;
|
|
10743
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
10744
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
10745
|
+
err.status = st;
|
|
10746
|
+
err.name = "HttpSdkError";
|
|
10747
|
+
if (prob) {
|
|
10748
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
10749
|
+
}
|
|
10750
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
10751
|
+
if (!isBp) err.nonRetryable = true;
|
|
10752
|
+
return err;
|
|
10753
|
+
});
|
|
10754
|
+
const _respSchemaName = "zGetAgentDefinitionResponse";
|
|
10755
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
10756
|
+
data = void 0;
|
|
10757
|
+
}
|
|
10758
|
+
if (this._validation.settings.res !== "none") {
|
|
10759
|
+
const _schemas = await this._loadSchemas();
|
|
10760
|
+
const _schema = _schemas.zGetAgentDefinitionResponse;
|
|
10761
|
+
if (_schema) {
|
|
10762
|
+
const maybeR = await this._validation.gateResponse("getAgentDefinition", _schema, data);
|
|
10763
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
return data;
|
|
10767
|
+
} catch (e) {
|
|
10768
|
+
throw e;
|
|
10769
|
+
}
|
|
10770
|
+
};
|
|
10771
|
+
const invoke = () => toCancelable2(() => call());
|
|
10772
|
+
if (useConsistency) return eventualPoll("getAgentDefinition", true, invoke, { ...useConsistency, logger: this._log });
|
|
10773
|
+
return invoke();
|
|
10774
|
+
});
|
|
10775
|
+
}
|
|
10553
10776
|
getAgentInstance(arg, consistencyManagement, options) {
|
|
10554
10777
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10555
10778
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -11609,6 +11832,60 @@ var CamundaClient = class {
|
|
|
11609
11832
|
return invoke();
|
|
11610
11833
|
});
|
|
11611
11834
|
}
|
|
11835
|
+
getHistoryBackup(arg, options) {
|
|
11836
|
+
return toCancelable2(async (signal) => {
|
|
11837
|
+
const { backupId } = arg || {};
|
|
11838
|
+
let envelope = {};
|
|
11839
|
+
envelope.path = { backupId };
|
|
11840
|
+
if (this._validation.settings.req !== "none") {
|
|
11841
|
+
const _schemas = await this._loadSchemas();
|
|
11842
|
+
if (envelope.path !== void 0) {
|
|
11843
|
+
const maybePath = await this._validation.gateRequest("getHistoryBackup", _schemas.zGetHistoryBackupPath, envelope.path);
|
|
11844
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
11845
|
+
}
|
|
11846
|
+
}
|
|
11847
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
11848
|
+
if (envelope.path) opts.path = envelope.path;
|
|
11849
|
+
const call = async () => {
|
|
11850
|
+
try {
|
|
11851
|
+
const _raw = await getHistoryBackup(opts);
|
|
11852
|
+
let data = this._evaluateResponse(_raw, "getHistoryBackup", (resp) => {
|
|
11853
|
+
const st = resp.status ?? resp.response?.status;
|
|
11854
|
+
if (!st) return void 0;
|
|
11855
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
11856
|
+
if (!candidate) return void 0;
|
|
11857
|
+
let prob = void 0;
|
|
11858
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
11859
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
11860
|
+
err.status = st;
|
|
11861
|
+
err.name = "HttpSdkError";
|
|
11862
|
+
if (prob) {
|
|
11863
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
11864
|
+
}
|
|
11865
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
11866
|
+
if (!isBp) err.nonRetryable = true;
|
|
11867
|
+
return err;
|
|
11868
|
+
});
|
|
11869
|
+
const _respSchemaName = "zGetHistoryBackupResponse";
|
|
11870
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
11871
|
+
data = void 0;
|
|
11872
|
+
}
|
|
11873
|
+
if (this._validation.settings.res !== "none") {
|
|
11874
|
+
const _schemas = await this._loadSchemas();
|
|
11875
|
+
const _schema = _schemas.zGetHistoryBackupResponse;
|
|
11876
|
+
if (_schema) {
|
|
11877
|
+
const maybeR = await this._validation.gateResponse("getHistoryBackup", _schema, data);
|
|
11878
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
11879
|
+
}
|
|
11880
|
+
}
|
|
11881
|
+
return data;
|
|
11882
|
+
} catch (e) {
|
|
11883
|
+
throw e;
|
|
11884
|
+
}
|
|
11885
|
+
};
|
|
11886
|
+
return this._invokeWithRetry(() => call(), { opId: "getHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
11887
|
+
});
|
|
11888
|
+
}
|
|
11612
11889
|
getIncident(arg, consistencyManagement, options) {
|
|
11613
11890
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11614
11891
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -13725,6 +14002,60 @@ var CamundaClient = class {
|
|
|
13725
14002
|
return invoke();
|
|
13726
14003
|
});
|
|
13727
14004
|
}
|
|
14005
|
+
listHistoryBackups(arg, options) {
|
|
14006
|
+
return toCancelable2(async (signal) => {
|
|
14007
|
+
const { prefix, verbose } = arg || {};
|
|
14008
|
+
let envelope = {};
|
|
14009
|
+
envelope.query = { prefix, verbose };
|
|
14010
|
+
if (this._validation.settings.req !== "none") {
|
|
14011
|
+
const _schemas = await this._loadSchemas();
|
|
14012
|
+
if (envelope.query !== void 0) {
|
|
14013
|
+
const maybeQuery = await this._validation.gateRequest("listHistoryBackups", _schemas.zListHistoryBackupsQuery, envelope.query);
|
|
14014
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14015
|
+
}
|
|
14016
|
+
}
|
|
14017
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14018
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14019
|
+
const call = async () => {
|
|
14020
|
+
try {
|
|
14021
|
+
const _raw = await listHistoryBackups(opts);
|
|
14022
|
+
let data = this._evaluateResponse(_raw, "listHistoryBackups", (resp) => {
|
|
14023
|
+
const st = resp.status ?? resp.response?.status;
|
|
14024
|
+
if (!st) return void 0;
|
|
14025
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14026
|
+
if (!candidate) return void 0;
|
|
14027
|
+
let prob = void 0;
|
|
14028
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14029
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14030
|
+
err.status = st;
|
|
14031
|
+
err.name = "HttpSdkError";
|
|
14032
|
+
if (prob) {
|
|
14033
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14034
|
+
}
|
|
14035
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14036
|
+
if (!isBp) err.nonRetryable = true;
|
|
14037
|
+
return err;
|
|
14038
|
+
});
|
|
14039
|
+
const _respSchemaName = "zListHistoryBackupsResponse";
|
|
14040
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14041
|
+
data = void 0;
|
|
14042
|
+
}
|
|
14043
|
+
if (this._validation.settings.res !== "none") {
|
|
14044
|
+
const _schemas = await this._loadSchemas();
|
|
14045
|
+
const _schema = _schemas.zListHistoryBackupsResponse;
|
|
14046
|
+
if (_schema) {
|
|
14047
|
+
const maybeR = await this._validation.gateResponse("listHistoryBackups", _schema, data);
|
|
14048
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14049
|
+
}
|
|
14050
|
+
}
|
|
14051
|
+
return data;
|
|
14052
|
+
} catch (e) {
|
|
14053
|
+
throw e;
|
|
14054
|
+
}
|
|
14055
|
+
};
|
|
14056
|
+
return this._invokeWithRetry(() => call(), { opId: "listHistoryBackups", exempt: false, retryOverride: options?.retry });
|
|
14057
|
+
});
|
|
14058
|
+
}
|
|
13728
14059
|
listRuntimeBackups(arg, options) {
|
|
13729
14060
|
return toCancelable2(async (signal) => {
|
|
13730
14061
|
const { prefix } = arg || {};
|
|
@@ -14494,8 +14825,9 @@ var CamundaClient = class {
|
|
|
14494
14825
|
}
|
|
14495
14826
|
restore(arg, options) {
|
|
14496
14827
|
return toCancelable2(async (signal) => {
|
|
14497
|
-
const _body = arg;
|
|
14828
|
+
const { dryRun, ..._body } = arg || {};
|
|
14498
14829
|
let envelope = {};
|
|
14830
|
+
envelope.query = { dryRun };
|
|
14499
14831
|
envelope.body = _body;
|
|
14500
14832
|
if (this._validation.settings.req !== "none") {
|
|
14501
14833
|
const _schemas = await this._loadSchemas();
|
|
@@ -14503,8 +14835,13 @@ var CamundaClient = class {
|
|
|
14503
14835
|
const maybeBody = await this._validation.gateRequest("restore", _schemas.zRestoreBody, envelope.body);
|
|
14504
14836
|
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
14505
14837
|
}
|
|
14838
|
+
if (envelope.query !== void 0) {
|
|
14839
|
+
const maybeQuery = await this._validation.gateRequest("restore", _schemas.zRestoreQuery, envelope.query);
|
|
14840
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14841
|
+
}
|
|
14506
14842
|
}
|
|
14507
14843
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
14844
|
+
if (envelope.query) opts.query = envelope.query;
|
|
14508
14845
|
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
14509
14846
|
const call = async () => {
|
|
14510
14847
|
try {
|
|
@@ -14763,6 +15100,64 @@ var CamundaClient = class {
|
|
|
14763
15100
|
return this._invokeWithRetry(() => call(), { opId: "resumeProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
|
|
14764
15101
|
});
|
|
14765
15102
|
}
|
|
15103
|
+
searchAgentDefinitions(arg, consistencyManagement, options) {
|
|
15104
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
15105
|
+
const useConsistency = consistencyManagement.consistency;
|
|
15106
|
+
return toCancelable2(async (signal) => {
|
|
15107
|
+
const _body = arg;
|
|
15108
|
+
let envelope = {};
|
|
15109
|
+
envelope.body = _body;
|
|
15110
|
+
if (this._validation.settings.req !== "none") {
|
|
15111
|
+
const _schemas = await this._loadSchemas();
|
|
15112
|
+
if (envelope.body !== void 0) {
|
|
15113
|
+
const maybeBody = await this._validation.gateRequest("searchAgentDefinitions", _schemas.zSearchAgentDefinitionsBody, envelope.body);
|
|
15114
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
15115
|
+
}
|
|
15116
|
+
}
|
|
15117
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
15118
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
15119
|
+
const call = async () => {
|
|
15120
|
+
try {
|
|
15121
|
+
const _raw = await searchAgentDefinitions(opts);
|
|
15122
|
+
let data = this._evaluateResponse(_raw, "searchAgentDefinitions", (resp) => {
|
|
15123
|
+
const st = resp.status ?? resp.response?.status;
|
|
15124
|
+
if (!st) return void 0;
|
|
15125
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
15126
|
+
if (!candidate) return void 0;
|
|
15127
|
+
let prob = void 0;
|
|
15128
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
15129
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
15130
|
+
err.status = st;
|
|
15131
|
+
err.name = "HttpSdkError";
|
|
15132
|
+
if (prob) {
|
|
15133
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
15134
|
+
}
|
|
15135
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
15136
|
+
if (!isBp) err.nonRetryable = true;
|
|
15137
|
+
return err;
|
|
15138
|
+
});
|
|
15139
|
+
const _respSchemaName = "zSearchAgentDefinitionsResponse";
|
|
15140
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
15141
|
+
data = void 0;
|
|
15142
|
+
}
|
|
15143
|
+
if (this._validation.settings.res !== "none") {
|
|
15144
|
+
const _schemas = await this._loadSchemas();
|
|
15145
|
+
const _schema = _schemas.zSearchAgentDefinitionsResponse;
|
|
15146
|
+
if (_schema) {
|
|
15147
|
+
const maybeR = await this._validation.gateResponse("searchAgentDefinitions", _schema, data);
|
|
15148
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
15149
|
+
}
|
|
15150
|
+
}
|
|
15151
|
+
return data;
|
|
15152
|
+
} catch (e) {
|
|
15153
|
+
throw e;
|
|
15154
|
+
}
|
|
15155
|
+
};
|
|
15156
|
+
const invoke = () => toCancelable2(() => call());
|
|
15157
|
+
if (useConsistency) return eventualPoll("searchAgentDefinitions", false, invoke, { ...useConsistency, logger: this._log });
|
|
15158
|
+
return invoke();
|
|
15159
|
+
});
|
|
15160
|
+
}
|
|
14766
15161
|
searchAgentInstanceHistory(arg, consistencyManagement, options) {
|
|
14767
15162
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
14768
15163
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -17850,6 +18245,60 @@ var CamundaClient = class {
|
|
|
17850
18245
|
return this._invokeWithRetry(() => call(), { opId: "syncRuntimeBackupState", exempt: false, retryOverride: options?.retry });
|
|
17851
18246
|
});
|
|
17852
18247
|
}
|
|
18248
|
+
takeHistoryBackup(arg, options) {
|
|
18249
|
+
return toCancelable2(async (signal) => {
|
|
18250
|
+
const _body = arg;
|
|
18251
|
+
let envelope = {};
|
|
18252
|
+
envelope.body = _body;
|
|
18253
|
+
if (this._validation.settings.req !== "none") {
|
|
18254
|
+
const _schemas = await this._loadSchemas();
|
|
18255
|
+
if (envelope.body !== void 0) {
|
|
18256
|
+
const maybeBody = await this._validation.gateRequest("takeHistoryBackup", _schemas.zTakeHistoryBackupBody, envelope.body);
|
|
18257
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
18258
|
+
}
|
|
18259
|
+
}
|
|
18260
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
18261
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
18262
|
+
const call = async () => {
|
|
18263
|
+
try {
|
|
18264
|
+
const _raw = await takeHistoryBackup(opts);
|
|
18265
|
+
let data = this._evaluateResponse(_raw, "takeHistoryBackup", (resp) => {
|
|
18266
|
+
const st = resp.status ?? resp.response?.status;
|
|
18267
|
+
if (!st) return void 0;
|
|
18268
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
18269
|
+
if (!candidate) return void 0;
|
|
18270
|
+
let prob = void 0;
|
|
18271
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
18272
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
18273
|
+
err.status = st;
|
|
18274
|
+
err.name = "HttpSdkError";
|
|
18275
|
+
if (prob) {
|
|
18276
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
18277
|
+
}
|
|
18278
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
18279
|
+
if (!isBp) err.nonRetryable = true;
|
|
18280
|
+
return err;
|
|
18281
|
+
});
|
|
18282
|
+
const _respSchemaName = "zTakeHistoryBackupResponse";
|
|
18283
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
18284
|
+
data = void 0;
|
|
18285
|
+
}
|
|
18286
|
+
if (this._validation.settings.res !== "none") {
|
|
18287
|
+
const _schemas = await this._loadSchemas();
|
|
18288
|
+
const _schema = _schemas.zTakeHistoryBackupResponse;
|
|
18289
|
+
if (_schema) {
|
|
18290
|
+
const maybeR = await this._validation.gateResponse("takeHistoryBackup", _schema, data);
|
|
18291
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
18292
|
+
}
|
|
18293
|
+
}
|
|
18294
|
+
return data;
|
|
18295
|
+
} catch (e) {
|
|
18296
|
+
throw e;
|
|
18297
|
+
}
|
|
18298
|
+
};
|
|
18299
|
+
return this._invokeWithRetry(() => call(), { opId: "takeHistoryBackup", exempt: false, retryOverride: options?.retry });
|
|
18300
|
+
});
|
|
18301
|
+
}
|
|
17853
18302
|
takeRuntimeBackup(arg, options) {
|
|
17854
18303
|
return toCancelable2(async (signal) => {
|
|
17855
18304
|
const _body = arg;
|
|
@@ -19812,4 +20261,4 @@ export {
|
|
|
19812
20261
|
withTimeoutTE,
|
|
19813
20262
|
eventuallyTE
|
|
19814
20263
|
};
|
|
19815
|
-
//# sourceMappingURL=chunk-
|
|
20264
|
+
//# sourceMappingURL=chunk-H6DTQLKK.js.map
|