@camunda8/orchestration-cluster-api 10.0.0-alpha.26 → 10.0.0-alpha.27
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 +14 -0
- package/dist/{chunk-UXIQXURB.js → chunk-JXLQEQ7J.js} +142 -4
- package/dist/chunk-JXLQEQ7J.js.map +1 -0
- package/dist/fp/index.cjs +355 -20
- 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-BM6Qesi8.d.cts} +558 -27
- package/dist/{index-DUyZASqV.d.ts → index-k-KjzBzJ.d.ts} +558 -27
- package/dist/index.cjs +388 -22
- 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-MZNYXG52.js} +215 -18
- package/dist/zod.gen-MZNYXG52.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,17 @@
|
|
|
1
|
+
# [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)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* mark agent-definition test scaffolds as todo with void unused local ([5ec2940](https://github.com/camunda/orchestration-cluster-api-js/commit/5ec2940b008314794b3f2a2263fa5f57d07a1ca8))
|
|
7
|
+
* use it.skip instead of it.todo with a callback in test scaffolds ([f96e189](https://github.com/camunda/orchestration-cluster-api-js/commit/f96e189710b86fe4ecc414803d1bed507a89626f))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add example coverage for getAgentDefinition, searchAgentDefinitions ([e596713](https://github.com/camunda/orchestration-cluster-api-js/commit/e5967130f963939762d6ccf7508fac94e0c2fe76))
|
|
13
|
+
* **examples:** add agent definition examples for getAgentDefinition and searchAgentDefinitions ([d613ac1](https://github.com/camunda/orchestration-cluster-api-js/commit/d613ac1069dbb253c6a91f900cb39ee94cef1eb7))
|
|
14
|
+
|
|
1
15
|
# [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
16
|
|
|
3
17
|
|
|
@@ -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,
|
|
@@ -4899,7 +4917,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
4899
4917
|
}
|
|
4900
4918
|
|
|
4901
4919
|
// src/runtime/version.ts
|
|
4902
|
-
var packageVersion = "10.0.0-alpha.
|
|
4920
|
+
var packageVersion = "10.0.0-alpha.27";
|
|
4903
4921
|
|
|
4904
4922
|
// src/runtime/supportLogger.ts
|
|
4905
4923
|
var NoopSupportLogger = class {
|
|
@@ -6614,7 +6632,7 @@ function deepFreeze2(obj) {
|
|
|
6614
6632
|
}
|
|
6615
6633
|
return obj;
|
|
6616
6634
|
}
|
|
6617
|
-
var VOID_RESPONSES = /* @__PURE__ */ new Set(["
|
|
6635
|
+
var VOID_RESPONSES = /* @__PURE__ */ new Set(["zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zDeleteRuntimeBackupStateResponse", "zDeleteRuntimeBackupResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zPauseExportingResponse", "zResumeExportingResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zAssignProcessInstanceBusinessIdResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zResumeProcessInstanceResponse", "zSuspendProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
|
|
6618
6636
|
var CancelError = class extends Error {
|
|
6619
6637
|
constructor() {
|
|
6620
6638
|
super("Cancelled");
|
|
@@ -6918,7 +6936,7 @@ var CamundaClient = class {
|
|
|
6918
6936
|
_schemasPromise = null;
|
|
6919
6937
|
_loadSchemas() {
|
|
6920
6938
|
if (!this._schemasPromise) {
|
|
6921
|
-
this._schemasPromise = import("./zod.gen-
|
|
6939
|
+
this._schemasPromise = import("./zod.gen-MZNYXG52.js");
|
|
6922
6940
|
}
|
|
6923
6941
|
return this._schemasPromise;
|
|
6924
6942
|
}
|
|
@@ -10550,6 +10568,64 @@ var CamundaClient = class {
|
|
|
10550
10568
|
return this._invokeWithRetry(() => call(), { opId: "failJob", exempt: true, retryOverride: options?.retry });
|
|
10551
10569
|
});
|
|
10552
10570
|
}
|
|
10571
|
+
getAgentDefinition(arg, consistencyManagement, options) {
|
|
10572
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10573
|
+
const useConsistency = consistencyManagement.consistency;
|
|
10574
|
+
return toCancelable2(async (signal) => {
|
|
10575
|
+
const { agentDefinitionKey } = arg || {};
|
|
10576
|
+
let envelope = {};
|
|
10577
|
+
envelope.path = { agentDefinitionKey };
|
|
10578
|
+
if (this._validation.settings.req !== "none") {
|
|
10579
|
+
const _schemas = await this._loadSchemas();
|
|
10580
|
+
if (envelope.path !== void 0) {
|
|
10581
|
+
const maybePath = await this._validation.gateRequest("getAgentDefinition", _schemas.zGetAgentDefinitionPath, envelope.path);
|
|
10582
|
+
if (this._validation.settings.req === "strict") envelope.path = maybePath;
|
|
10583
|
+
}
|
|
10584
|
+
}
|
|
10585
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
10586
|
+
if (envelope.path) opts.path = envelope.path;
|
|
10587
|
+
const call = async () => {
|
|
10588
|
+
try {
|
|
10589
|
+
const _raw = await getAgentDefinition(opts);
|
|
10590
|
+
let data = this._evaluateResponse(_raw, "getAgentDefinition", (resp) => {
|
|
10591
|
+
const st = resp.status ?? resp.response?.status;
|
|
10592
|
+
if (!st) return void 0;
|
|
10593
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
10594
|
+
if (!candidate) return void 0;
|
|
10595
|
+
let prob = void 0;
|
|
10596
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
10597
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
10598
|
+
err.status = st;
|
|
10599
|
+
err.name = "HttpSdkError";
|
|
10600
|
+
if (prob) {
|
|
10601
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
10602
|
+
}
|
|
10603
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
10604
|
+
if (!isBp) err.nonRetryable = true;
|
|
10605
|
+
return err;
|
|
10606
|
+
});
|
|
10607
|
+
const _respSchemaName = "zGetAgentDefinitionResponse";
|
|
10608
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
10609
|
+
data = void 0;
|
|
10610
|
+
}
|
|
10611
|
+
if (this._validation.settings.res !== "none") {
|
|
10612
|
+
const _schemas = await this._loadSchemas();
|
|
10613
|
+
const _schema = _schemas.zGetAgentDefinitionResponse;
|
|
10614
|
+
if (_schema) {
|
|
10615
|
+
const maybeR = await this._validation.gateResponse("getAgentDefinition", _schema, data);
|
|
10616
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
10617
|
+
}
|
|
10618
|
+
}
|
|
10619
|
+
return data;
|
|
10620
|
+
} catch (e) {
|
|
10621
|
+
throw e;
|
|
10622
|
+
}
|
|
10623
|
+
};
|
|
10624
|
+
const invoke = () => toCancelable2(() => call());
|
|
10625
|
+
if (useConsistency) return eventualPoll("getAgentDefinition", true, invoke, { ...useConsistency, logger: this._log });
|
|
10626
|
+
return invoke();
|
|
10627
|
+
});
|
|
10628
|
+
}
|
|
10553
10629
|
getAgentInstance(arg, consistencyManagement, options) {
|
|
10554
10630
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
10555
10631
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -14503,6 +14579,10 @@ var CamundaClient = class {
|
|
|
14503
14579
|
const maybeBody = await this._validation.gateRequest("restore", _schemas.zRestoreBody, envelope.body);
|
|
14504
14580
|
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
14505
14581
|
}
|
|
14582
|
+
if (envelope.query !== void 0) {
|
|
14583
|
+
const maybeQuery = await this._validation.gateRequest("restore", _schemas.zRestoreQuery, envelope.query);
|
|
14584
|
+
if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
|
|
14585
|
+
}
|
|
14506
14586
|
}
|
|
14507
14587
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
14508
14588
|
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
@@ -14763,6 +14843,64 @@ var CamundaClient = class {
|
|
|
14763
14843
|
return this._invokeWithRetry(() => call(), { opId: "resumeProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
|
|
14764
14844
|
});
|
|
14765
14845
|
}
|
|
14846
|
+
searchAgentDefinitions(arg, consistencyManagement, options) {
|
|
14847
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
14848
|
+
const useConsistency = consistencyManagement.consistency;
|
|
14849
|
+
return toCancelable2(async (signal) => {
|
|
14850
|
+
const _body = arg;
|
|
14851
|
+
let envelope = {};
|
|
14852
|
+
envelope.body = _body;
|
|
14853
|
+
if (this._validation.settings.req !== "none") {
|
|
14854
|
+
const _schemas = await this._loadSchemas();
|
|
14855
|
+
if (envelope.body !== void 0) {
|
|
14856
|
+
const maybeBody = await this._validation.gateRequest("searchAgentDefinitions", _schemas.zSearchAgentDefinitionsBody, envelope.body);
|
|
14857
|
+
if (this._validation.settings.req === "strict") envelope.body = maybeBody;
|
|
14858
|
+
}
|
|
14859
|
+
}
|
|
14860
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
14861
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
14862
|
+
const call = async () => {
|
|
14863
|
+
try {
|
|
14864
|
+
const _raw = await searchAgentDefinitions(opts);
|
|
14865
|
+
let data = this._evaluateResponse(_raw, "searchAgentDefinitions", (resp) => {
|
|
14866
|
+
const st = resp.status ?? resp.response?.status;
|
|
14867
|
+
if (!st) return void 0;
|
|
14868
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
14869
|
+
if (!candidate) return void 0;
|
|
14870
|
+
let prob = void 0;
|
|
14871
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
14872
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
14873
|
+
err.status = st;
|
|
14874
|
+
err.name = "HttpSdkError";
|
|
14875
|
+
if (prob) {
|
|
14876
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
14877
|
+
}
|
|
14878
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
14879
|
+
if (!isBp) err.nonRetryable = true;
|
|
14880
|
+
return err;
|
|
14881
|
+
});
|
|
14882
|
+
const _respSchemaName = "zSearchAgentDefinitionsResponse";
|
|
14883
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
14884
|
+
data = void 0;
|
|
14885
|
+
}
|
|
14886
|
+
if (this._validation.settings.res !== "none") {
|
|
14887
|
+
const _schemas = await this._loadSchemas();
|
|
14888
|
+
const _schema = _schemas.zSearchAgentDefinitionsResponse;
|
|
14889
|
+
if (_schema) {
|
|
14890
|
+
const maybeR = await this._validation.gateResponse("searchAgentDefinitions", _schema, data);
|
|
14891
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
14892
|
+
}
|
|
14893
|
+
}
|
|
14894
|
+
return data;
|
|
14895
|
+
} catch (e) {
|
|
14896
|
+
throw e;
|
|
14897
|
+
}
|
|
14898
|
+
};
|
|
14899
|
+
const invoke = () => toCancelable2(() => call());
|
|
14900
|
+
if (useConsistency) return eventualPoll("searchAgentDefinitions", false, invoke, { ...useConsistency, logger: this._log });
|
|
14901
|
+
return invoke();
|
|
14902
|
+
});
|
|
14903
|
+
}
|
|
14766
14904
|
searchAgentInstanceHistory(arg, consistencyManagement, options) {
|
|
14767
14905
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
14768
14906
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -19812,4 +19950,4 @@ export {
|
|
|
19812
19950
|
withTimeoutTE,
|
|
19813
19951
|
eventuallyTE
|
|
19814
19952
|
};
|
|
19815
|
-
//# sourceMappingURL=chunk-
|
|
19953
|
+
//# sourceMappingURL=chunk-JXLQEQ7J.js.map
|