@camunda8/orchestration-cluster-api 10.0.0-alpha.5 → 10.0.0-alpha.7
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 +15 -0
- package/dist/{chunk-S3RXIYYE.js → chunk-BCNWWIBI.js} +262 -4
- package/dist/chunk-BCNWWIBI.js.map +1 -0
- package/dist/fp/index.cjs +457 -10
- 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-CBhZBupS.d.cts → index-B-q0QFAh.d.cts} +577 -12
- package/dist/{index-CMbPTSiX.d.ts → index-BU0clzK-.d.ts} +577 -12
- package/dist/index.cjs +458 -11
- 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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{zod.gen-UJLBQNEH.js → zod.gen-SZE2T4QF.js} +197 -8
- package/dist/zod.gen-SZE2T4QF.js.map +1 -0
- package/package.json +6 -6
- package/dist/chunk-S3RXIYYE.js.map +0 -1
- package/dist/zod.gen-UJLBQNEH.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [10.0.0-alpha.7](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.6...v10.0.0-alpha.7) (2026-05-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update docker-compose env vars for 8.10 config schema ([d343d56](https://github.com/camunda/orchestration-cluster-api-js/commit/d343d56a54d6b83246e3a2b26b6ce2469c2de77c))
|
|
7
|
+
|
|
8
|
+
# [10.0.0-alpha.6](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.5...v10.0.0-alpha.6) (2026-05-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add example coverage for 4 new operations ([3a2c875](https://github.com/camunda/orchestration-cluster-api-js/commit/3a2c87577bcca87996cc77546216c68fb5124ec5))
|
|
14
|
+
* add example coverage for 4 new operations ([6d757a4](https://github.com/camunda/orchestration-cluster-api-js/commit/6d757a4be85ba733f07bcd08c1b6ae33aacd6c15))
|
|
15
|
+
|
|
1
16
|
# [10.0.0-alpha.5](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.4...v10.0.0-alpha.5) (2026-05-08)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1166,6 +1166,18 @@ var client = createClient(createConfig({
|
|
|
1166
1166
|
}));
|
|
1167
1167
|
|
|
1168
1168
|
// src/gen/sdk.gen.ts
|
|
1169
|
+
var createAgentInstance = (options) => {
|
|
1170
|
+
return (options.client ?? client).post({
|
|
1171
|
+
requestValidator: void 0,
|
|
1172
|
+
responseValidator: void 0,
|
|
1173
|
+
url: "/agent-instances",
|
|
1174
|
+
...options,
|
|
1175
|
+
headers: {
|
|
1176
|
+
"Content-Type": "application/json",
|
|
1177
|
+
...options.headers
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
};
|
|
1169
1181
|
var getAgentInstance = (options) => {
|
|
1170
1182
|
return (options.client ?? client).get({
|
|
1171
1183
|
requestValidator: void 0,
|
|
@@ -1174,6 +1186,18 @@ var getAgentInstance = (options) => {
|
|
|
1174
1186
|
...options
|
|
1175
1187
|
});
|
|
1176
1188
|
};
|
|
1189
|
+
var updateAgentInstance = (options) => {
|
|
1190
|
+
return (options.client ?? client).patch({
|
|
1191
|
+
requestValidator: void 0,
|
|
1192
|
+
responseValidator: void 0,
|
|
1193
|
+
url: "/agent-instances/{agentInstanceKey}",
|
|
1194
|
+
...options,
|
|
1195
|
+
headers: {
|
|
1196
|
+
"Content-Type": "application/json",
|
|
1197
|
+
...options.headers
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
};
|
|
1177
1201
|
var searchAgentInstances = (options) => {
|
|
1178
1202
|
return (options?.client ?? client).post({
|
|
1179
1203
|
requestValidator: void 0,
|
|
@@ -1723,6 +1747,14 @@ var evaluateExpression = (options) => {
|
|
|
1723
1747
|
}
|
|
1724
1748
|
});
|
|
1725
1749
|
};
|
|
1750
|
+
var getFormByKey = (options) => {
|
|
1751
|
+
return (options.client ?? client).get({
|
|
1752
|
+
requestValidator: void 0,
|
|
1753
|
+
responseValidator: void 0,
|
|
1754
|
+
url: "/forms/{formKey}",
|
|
1755
|
+
...options
|
|
1756
|
+
});
|
|
1757
|
+
};
|
|
1726
1758
|
var createGlobalTaskListener = (options) => {
|
|
1727
1759
|
return (options.client ?? client).post({
|
|
1728
1760
|
requestValidator: void 0,
|
|
@@ -2499,6 +2531,14 @@ var getResourceContent = (options) => {
|
|
|
2499
2531
|
...options
|
|
2500
2532
|
});
|
|
2501
2533
|
};
|
|
2534
|
+
var getResourceContentBinary = (options) => {
|
|
2535
|
+
return (options.client ?? client).get({
|
|
2536
|
+
requestValidator: void 0,
|
|
2537
|
+
responseValidator: void 0,
|
|
2538
|
+
url: "/resources/{resourceKey}/content/binary",
|
|
2539
|
+
...options
|
|
2540
|
+
});
|
|
2541
|
+
};
|
|
2502
2542
|
var deleteResource = (options) => {
|
|
2503
2543
|
return (options.client ?? client).post({
|
|
2504
2544
|
requestValidator: void 0,
|
|
@@ -4441,7 +4481,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
4441
4481
|
}
|
|
4442
4482
|
|
|
4443
4483
|
// src/runtime/version.ts
|
|
4444
|
-
var packageVersion = "10.0.0-alpha.
|
|
4484
|
+
var packageVersion = "10.0.0-alpha.7";
|
|
4445
4485
|
|
|
4446
4486
|
// src/runtime/supportLogger.ts
|
|
4447
4487
|
var NoopSupportLogger = class {
|
|
@@ -6114,7 +6154,7 @@ function deepFreeze2(obj) {
|
|
|
6114
6154
|
}
|
|
6115
6155
|
return obj;
|
|
6116
6156
|
}
|
|
6117
|
-
var VOID_RESPONSES = /* @__PURE__ */ new Set(["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", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "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"]);
|
|
6157
|
+
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", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "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"]);
|
|
6118
6158
|
var CancelError = class extends Error {
|
|
6119
6159
|
constructor() {
|
|
6120
6160
|
super("Cancelled");
|
|
@@ -6418,7 +6458,7 @@ var CamundaClient = class {
|
|
|
6418
6458
|
_schemasPromise = null;
|
|
6419
6459
|
_loadSchemas() {
|
|
6420
6460
|
if (!this._schemasPromise) {
|
|
6421
|
-
this._schemasPromise = import("./zod.gen-
|
|
6461
|
+
this._schemasPromise = import("./zod.gen-SZE2T4QF.js");
|
|
6422
6462
|
}
|
|
6423
6463
|
return this._schemasPromise;
|
|
6424
6464
|
}
|
|
@@ -7719,6 +7759,58 @@ var CamundaClient = class {
|
|
|
7719
7759
|
return this._invokeWithRetry(() => call(), { opId: "createAdminUser", exempt: false, retryOverride: options?.retry });
|
|
7720
7760
|
});
|
|
7721
7761
|
}
|
|
7762
|
+
createAgentInstance(arg, options) {
|
|
7763
|
+
return toCancelable2(async (signal) => {
|
|
7764
|
+
const _body = arg;
|
|
7765
|
+
let envelope = {};
|
|
7766
|
+
envelope.body = _body;
|
|
7767
|
+
if (this._validation.settings.req !== "none") {
|
|
7768
|
+
const _schemas = await this._loadSchemas();
|
|
7769
|
+
const maybe = await this._validation.gateRequest("createAgentInstance", _schemas.zCreateAgentInstanceData, envelope);
|
|
7770
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
7771
|
+
}
|
|
7772
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
7773
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
7774
|
+
const call = async () => {
|
|
7775
|
+
try {
|
|
7776
|
+
const _raw = await createAgentInstance(opts);
|
|
7777
|
+
let data = this._evaluateResponse(_raw, "createAgentInstance", (resp) => {
|
|
7778
|
+
const st = resp.status ?? resp.response?.status;
|
|
7779
|
+
if (!st) return void 0;
|
|
7780
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
7781
|
+
if (!candidate) return void 0;
|
|
7782
|
+
let prob = void 0;
|
|
7783
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
7784
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
7785
|
+
err.status = st;
|
|
7786
|
+
err.name = "HttpSdkError";
|
|
7787
|
+
if (prob) {
|
|
7788
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
7789
|
+
}
|
|
7790
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
7791
|
+
if (!isBp) err.nonRetryable = true;
|
|
7792
|
+
return err;
|
|
7793
|
+
});
|
|
7794
|
+
const _respSchemaName = "zCreateAgentInstanceResponse";
|
|
7795
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
7796
|
+
data = void 0;
|
|
7797
|
+
}
|
|
7798
|
+
if (this._validation.settings.res !== "none") {
|
|
7799
|
+
const _schemas = await this._loadSchemas();
|
|
7800
|
+
const _schema = _schemas.zCreateAgentInstanceResponse;
|
|
7801
|
+
if (_schema) {
|
|
7802
|
+
const maybeR = await this._validation.gateResponse("createAgentInstance", _schema, data);
|
|
7803
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
7804
|
+
}
|
|
7805
|
+
}
|
|
7806
|
+
return data;
|
|
7807
|
+
} catch (e) {
|
|
7808
|
+
throw e;
|
|
7809
|
+
}
|
|
7810
|
+
};
|
|
7811
|
+
return this._invokeWithRetry(() => call(), { opId: "createAgentInstance", exempt: false, retryOverride: options?.retry });
|
|
7812
|
+
});
|
|
7813
|
+
}
|
|
7722
7814
|
createAuthorization(arg, options) {
|
|
7723
7815
|
return toCancelable2(async (signal) => {
|
|
7724
7816
|
const _body = arg;
|
|
@@ -10200,6 +10292,62 @@ var CamundaClient = class {
|
|
|
10200
10292
|
return invoke();
|
|
10201
10293
|
});
|
|
10202
10294
|
}
|
|
10295
|
+
getFormByKey(arg, consistencyManagement, options) {
|
|
10296
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10297
|
+
const useConsistency = consistencyManagement.consistency;
|
|
10298
|
+
return toCancelable2(async (signal) => {
|
|
10299
|
+
const { formKey } = arg || {};
|
|
10300
|
+
let envelope = {};
|
|
10301
|
+
envelope.path = { formKey };
|
|
10302
|
+
if (this._validation.settings.req !== "none") {
|
|
10303
|
+
const _schemas = await this._loadSchemas();
|
|
10304
|
+
const maybe = await this._validation.gateRequest("getFormByKey", _schemas.zGetFormByKeyData, envelope);
|
|
10305
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
10306
|
+
}
|
|
10307
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
10308
|
+
if (envelope.path) opts.path = envelope.path;
|
|
10309
|
+
const call = async () => {
|
|
10310
|
+
try {
|
|
10311
|
+
const _raw = await getFormByKey(opts);
|
|
10312
|
+
let data = this._evaluateResponse(_raw, "getFormByKey", (resp) => {
|
|
10313
|
+
const st = resp.status ?? resp.response?.status;
|
|
10314
|
+
if (!st) return void 0;
|
|
10315
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
10316
|
+
if (!candidate) return void 0;
|
|
10317
|
+
let prob = void 0;
|
|
10318
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
10319
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
10320
|
+
err.status = st;
|
|
10321
|
+
err.name = "HttpSdkError";
|
|
10322
|
+
if (prob) {
|
|
10323
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
10324
|
+
}
|
|
10325
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
10326
|
+
if (!isBp) err.nonRetryable = true;
|
|
10327
|
+
return err;
|
|
10328
|
+
});
|
|
10329
|
+
const _respSchemaName = "zGetFormByKeyResponse";
|
|
10330
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
10331
|
+
data = void 0;
|
|
10332
|
+
}
|
|
10333
|
+
if (this._validation.settings.res !== "none") {
|
|
10334
|
+
const _schemas = await this._loadSchemas();
|
|
10335
|
+
const _schema = _schemas.zGetFormByKeyResponse;
|
|
10336
|
+
if (_schema) {
|
|
10337
|
+
const maybeR = await this._validation.gateResponse("getFormByKey", _schema, data);
|
|
10338
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
10339
|
+
}
|
|
10340
|
+
}
|
|
10341
|
+
return data;
|
|
10342
|
+
} catch (e) {
|
|
10343
|
+
throw e;
|
|
10344
|
+
}
|
|
10345
|
+
};
|
|
10346
|
+
const invoke = () => toCancelable2(() => call());
|
|
10347
|
+
if (useConsistency) return eventualPoll("getFormByKey", true, invoke, { ...useConsistency, logger: this._log });
|
|
10348
|
+
return invoke();
|
|
10349
|
+
});
|
|
10350
|
+
}
|
|
10203
10351
|
getGlobalClusterVariable(arg, consistencyManagement, options) {
|
|
10204
10352
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10205
10353
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -11589,6 +11737,62 @@ var CamundaClient = class {
|
|
|
11589
11737
|
return invoke();
|
|
11590
11738
|
});
|
|
11591
11739
|
}
|
|
11740
|
+
getResourceContentBinary(arg, consistencyManagement, options) {
|
|
11741
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11742
|
+
const useConsistency = consistencyManagement.consistency;
|
|
11743
|
+
return toCancelable2(async (signal) => {
|
|
11744
|
+
const { resourceKey } = arg || {};
|
|
11745
|
+
let envelope = {};
|
|
11746
|
+
envelope.path = { resourceKey };
|
|
11747
|
+
if (this._validation.settings.req !== "none") {
|
|
11748
|
+
const _schemas = await this._loadSchemas();
|
|
11749
|
+
const maybe = await this._validation.gateRequest("getResourceContentBinary", _schemas.zGetResourceContentBinaryData, envelope);
|
|
11750
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
11751
|
+
}
|
|
11752
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
11753
|
+
if (envelope.path) opts.path = envelope.path;
|
|
11754
|
+
const call = async () => {
|
|
11755
|
+
try {
|
|
11756
|
+
const _raw = await getResourceContentBinary(opts);
|
|
11757
|
+
let data = this._evaluateResponse(_raw, "getResourceContentBinary", (resp) => {
|
|
11758
|
+
const st = resp.status ?? resp.response?.status;
|
|
11759
|
+
if (!st) return void 0;
|
|
11760
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
11761
|
+
if (!candidate) return void 0;
|
|
11762
|
+
let prob = void 0;
|
|
11763
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
11764
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
11765
|
+
err.status = st;
|
|
11766
|
+
err.name = "HttpSdkError";
|
|
11767
|
+
if (prob) {
|
|
11768
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
11769
|
+
}
|
|
11770
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
11771
|
+
if (!isBp) err.nonRetryable = true;
|
|
11772
|
+
return err;
|
|
11773
|
+
});
|
|
11774
|
+
const _respSchemaName = "zGetResourceContentBinaryResponse";
|
|
11775
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
11776
|
+
data = void 0;
|
|
11777
|
+
}
|
|
11778
|
+
if (this._validation.settings.res !== "none") {
|
|
11779
|
+
const _schemas = await this._loadSchemas();
|
|
11780
|
+
const _schema = _schemas.zGetResourceContentBinaryResponse;
|
|
11781
|
+
if (_schema) {
|
|
11782
|
+
const maybeR = await this._validation.gateResponse("getResourceContentBinary", _schema, data);
|
|
11783
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
11784
|
+
}
|
|
11785
|
+
}
|
|
11786
|
+
return data;
|
|
11787
|
+
} catch (e) {
|
|
11788
|
+
throw e;
|
|
11789
|
+
}
|
|
11790
|
+
};
|
|
11791
|
+
const invoke = () => toCancelable2(() => call());
|
|
11792
|
+
if (useConsistency) return eventualPoll("getResourceContentBinary", true, invoke, { ...useConsistency, logger: this._log });
|
|
11793
|
+
return invoke();
|
|
11794
|
+
});
|
|
11795
|
+
}
|
|
11592
11796
|
getRole(arg, consistencyManagement, options) {
|
|
11593
11797
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
11594
11798
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -16033,6 +16237,60 @@ var CamundaClient = class {
|
|
|
16033
16237
|
return this._invokeWithRetry(() => call(), { opId: "unassignUserTask", exempt: false, retryOverride: options?.retry });
|
|
16034
16238
|
});
|
|
16035
16239
|
}
|
|
16240
|
+
updateAgentInstance(arg, options) {
|
|
16241
|
+
return toCancelable2(async (signal) => {
|
|
16242
|
+
const { agentInstanceKey, ..._body } = arg || {};
|
|
16243
|
+
let envelope = {};
|
|
16244
|
+
envelope.path = { agentInstanceKey };
|
|
16245
|
+
envelope.body = _body;
|
|
16246
|
+
if (this._validation.settings.req !== "none") {
|
|
16247
|
+
const _schemas = await this._loadSchemas();
|
|
16248
|
+
const maybe = await this._validation.gateRequest("updateAgentInstance", _schemas.zUpdateAgentInstanceData, envelope);
|
|
16249
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
16250
|
+
}
|
|
16251
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
16252
|
+
if (envelope.path) opts.path = envelope.path;
|
|
16253
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
16254
|
+
const call = async () => {
|
|
16255
|
+
try {
|
|
16256
|
+
const _raw = await updateAgentInstance(opts);
|
|
16257
|
+
let data = this._evaluateResponse(_raw, "updateAgentInstance", (resp) => {
|
|
16258
|
+
const st = resp.status ?? resp.response?.status;
|
|
16259
|
+
if (!st) return void 0;
|
|
16260
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
16261
|
+
if (!candidate) return void 0;
|
|
16262
|
+
let prob = void 0;
|
|
16263
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
16264
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
16265
|
+
err.status = st;
|
|
16266
|
+
err.name = "HttpSdkError";
|
|
16267
|
+
if (prob) {
|
|
16268
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
16269
|
+
}
|
|
16270
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
16271
|
+
if (!isBp) err.nonRetryable = true;
|
|
16272
|
+
return err;
|
|
16273
|
+
});
|
|
16274
|
+
const _respSchemaName = "zUpdateAgentInstanceResponse";
|
|
16275
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
16276
|
+
data = void 0;
|
|
16277
|
+
}
|
|
16278
|
+
if (this._validation.settings.res !== "none") {
|
|
16279
|
+
const _schemas = await this._loadSchemas();
|
|
16280
|
+
const _schema = _schemas.zUpdateAgentInstanceResponse;
|
|
16281
|
+
if (_schema) {
|
|
16282
|
+
const maybeR = await this._validation.gateResponse("updateAgentInstance", _schema, data);
|
|
16283
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
16284
|
+
}
|
|
16285
|
+
}
|
|
16286
|
+
return data;
|
|
16287
|
+
} catch (e) {
|
|
16288
|
+
throw e;
|
|
16289
|
+
}
|
|
16290
|
+
};
|
|
16291
|
+
return this._invokeWithRetry(() => call(), { opId: "updateAgentInstance", exempt: false, retryOverride: options?.retry });
|
|
16292
|
+
});
|
|
16293
|
+
}
|
|
16036
16294
|
updateAuthorization(arg, options) {
|
|
16037
16295
|
return toCancelable2(async (signal) => {
|
|
16038
16296
|
const { authorizationKey, ..._body } = arg || {};
|
|
@@ -16927,4 +17185,4 @@ export {
|
|
|
16927
17185
|
withTimeoutTE,
|
|
16928
17186
|
eventuallyTE
|
|
16929
17187
|
};
|
|
16930
|
-
//# sourceMappingURL=chunk-
|
|
17188
|
+
//# sourceMappingURL=chunk-BCNWWIBI.js.map
|