@camunda8/orchestration-cluster-api 10.0.0-alpha.25 → 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 CHANGED
@@ -1,3 +1,24 @@
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
+
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)
16
+
17
+
18
+ ### Features
19
+
20
+ * **examples:** add searchOwnAuthorizations example coverage ([a3749c3](https://github.com/camunda/orchestration-cluster-api-js/commit/a3749c392e725957ad22d7627b2161a6a4866165))
21
+
1
22
  # [10.0.0-alpha.25](https://github.com/camunda/orchestration-cluster-api-js/compare/v10.0.0-alpha.24...v10.0.0-alpha.25) (2026-08-04)
2
23
 
3
24
 
@@ -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,
@@ -1602,6 +1620,17 @@ var getAuthentication = (options) => (options?.client ?? client).get({
1602
1620
  url: "/authentication/me",
1603
1621
  ...options
1604
1622
  });
1623
+ var searchOwnAuthorizations = (options) => (options?.client ?? client).post({
1624
+ requestValidator: void 0,
1625
+ responseValidator: void 0,
1626
+ security: [{ scheme: "bearer", type: "http" }],
1627
+ url: "/authentication/me/authorizations/search",
1628
+ ...options,
1629
+ headers: {
1630
+ "Content-Type": "application/json",
1631
+ ...options?.headers
1632
+ }
1633
+ });
1605
1634
  var createAuthorization = (options) => (options.client ?? client).post({
1606
1635
  requestValidator: void 0,
1607
1636
  responseValidator: void 0,
@@ -4888,7 +4917,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4888
4917
  }
4889
4918
 
4890
4919
  // src/runtime/version.ts
4891
- var packageVersion = "10.0.0-alpha.25";
4920
+ var packageVersion = "10.0.0-alpha.27";
4892
4921
 
4893
4922
  // src/runtime/supportLogger.ts
4894
4923
  var NoopSupportLogger = class {
@@ -6603,7 +6632,7 @@ function deepFreeze2(obj) {
6603
6632
  }
6604
6633
  return obj;
6605
6634
  }
6606
- var VOID_RESPONSES = /* @__PURE__ */ new Set(["zUpdateAgentInstanceResponse", "zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zDeleteRuntimeBackupStateResponse", "zDeleteRuntimeBackupResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zPauseExportingResponse", "zResumeExportingResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zAssignProcessInstanceBusinessIdResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zResumeProcessInstanceResponse", "zSuspendProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
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"]);
6607
6636
  var CancelError = class extends Error {
6608
6637
  constructor() {
6609
6638
  super("Cancelled");
@@ -6907,7 +6936,7 @@ var CamundaClient = class {
6907
6936
  _schemasPromise = null;
6908
6937
  _loadSchemas() {
6909
6938
  if (!this._schemasPromise) {
6910
- this._schemasPromise = import("./zod.gen-OIU26R2L.js");
6939
+ this._schemasPromise = import("./zod.gen-MZNYXG52.js");
6911
6940
  }
6912
6941
  return this._schemasPromise;
6913
6942
  }
@@ -10539,6 +10568,64 @@ var CamundaClient = class {
10539
10568
  return this._invokeWithRetry(() => call(), { opId: "failJob", exempt: true, retryOverride: options?.retry });
10540
10569
  });
10541
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
+ }
10542
10629
  getAgentInstance(arg, consistencyManagement, options) {
10543
10630
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
10544
10631
  const useConsistency = consistencyManagement.consistency;
@@ -14492,6 +14579,10 @@ var CamundaClient = class {
14492
14579
  const maybeBody = await this._validation.gateRequest("restore", _schemas.zRestoreBody, envelope.body);
14493
14580
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
14494
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
+ }
14495
14586
  }
14496
14587
  const opts = { client: this._client, signal, throwOnError: false };
14497
14588
  if (envelope.body !== void 0) opts.body = envelope.body;
@@ -14752,6 +14843,64 @@ var CamundaClient = class {
14752
14843
  return this._invokeWithRetry(() => call(), { opId: "resumeProcessInstancesBatchOperation", exempt: false, retryOverride: options?.retry });
14753
14844
  });
14754
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
+ }
14755
14904
  searchAgentInstanceHistory(arg, consistencyManagement, options) {
14756
14905
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
14757
14906
  const useConsistency = consistencyManagement.consistency;
@@ -16442,6 +16591,64 @@ var CamundaClient = class {
16442
16591
  return invoke();
16443
16592
  });
16444
16593
  }
16594
+ searchOwnAuthorizations(arg, consistencyManagement, options) {
16595
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
16596
+ const useConsistency = consistencyManagement.consistency;
16597
+ return toCancelable2(async (signal) => {
16598
+ const _body = arg;
16599
+ let envelope = {};
16600
+ envelope.body = _body;
16601
+ if (this._validation.settings.req !== "none") {
16602
+ const _schemas = await this._loadSchemas();
16603
+ if (envelope.body !== void 0) {
16604
+ const maybeBody = await this._validation.gateRequest("searchOwnAuthorizations", _schemas.zSearchOwnAuthorizationsBody, envelope.body);
16605
+ if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16606
+ }
16607
+ }
16608
+ const opts = { client: this._client, signal, throwOnError: false };
16609
+ if (envelope.body !== void 0) opts.body = envelope.body;
16610
+ const call = async () => {
16611
+ try {
16612
+ const _raw = await searchOwnAuthorizations(opts);
16613
+ let data = this._evaluateResponse(_raw, "searchOwnAuthorizations", (resp) => {
16614
+ const st = resp.status ?? resp.response?.status;
16615
+ if (!st) return void 0;
16616
+ const candidate = st === 429 || st === 503 || st === 500;
16617
+ if (!candidate) return void 0;
16618
+ let prob = void 0;
16619
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
16620
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
16621
+ err.status = st;
16622
+ err.name = "HttpSdkError";
16623
+ if (prob) {
16624
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
16625
+ }
16626
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
16627
+ if (!isBp) err.nonRetryable = true;
16628
+ return err;
16629
+ });
16630
+ const _respSchemaName = "zSearchOwnAuthorizationsResponse";
16631
+ if (this._isVoidResponse(_respSchemaName)) {
16632
+ data = void 0;
16633
+ }
16634
+ if (this._validation.settings.res !== "none") {
16635
+ const _schemas = await this._loadSchemas();
16636
+ const _schema = _schemas.zSearchOwnAuthorizationsResponse;
16637
+ if (_schema) {
16638
+ const maybeR = await this._validation.gateResponse("searchOwnAuthorizations", _schema, data);
16639
+ if (this._validation.settings.res === "strict") data = maybeR;
16640
+ }
16641
+ }
16642
+ return data;
16643
+ } catch (e) {
16644
+ throw e;
16645
+ }
16646
+ };
16647
+ const invoke = () => toCancelable2(() => call());
16648
+ if (useConsistency) return eventualPoll("searchOwnAuthorizations", false, invoke, { ...useConsistency, logger: this._log });
16649
+ return invoke();
16650
+ });
16651
+ }
16445
16652
  searchProcessDefinitions(arg, consistencyManagement, options) {
16446
16653
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
16447
16654
  const useConsistency = consistencyManagement.consistency;
@@ -19743,4 +19950,4 @@ export {
19743
19950
  withTimeoutTE,
19744
19951
  eventuallyTE
19745
19952
  };
19746
- //# sourceMappingURL=chunk-5T5DTO7V.js.map
19953
+ //# sourceMappingURL=chunk-JXLQEQ7J.js.map