@camunda8/orchestration-cluster-api 10.0.0-alpha.49 → 10.0.0-alpha.50

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.
@@ -1,7 +1,7 @@
1
1
  import * as effect_Cause from 'effect/Cause';
2
2
  import * as effect_Types from 'effect/Types';
3
3
  import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
4
- import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-D0pHU3oF.cjs';
4
+ import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-DBZ5xkfB.cjs';
5
5
  import 'zod';
6
6
  import '../logger-D-p21VHo.cjs';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import * as effect_Cause from 'effect/Cause';
2
2
  import * as effect_Types from 'effect/Types';
3
3
  import { Context, Effect, Stream, Duration, Layer, Schedule, Cause, Scope } from 'effect';
4
- import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-BD2Gqc3Y.js';
4
+ import { S as SearchPaginateOptions, P as Paginator, a as PaginationMode, C as ConsistencyOptions, b as SearchResponse, c as CamundaClient, d as CamundaOptions, A as ActivatedJobResult } from '../CamundaClient-DuZf_I-y.js';
5
5
  import 'zod';
6
6
  import '../logger-D-p21VHo.js';
7
7
 
@@ -4,7 +4,7 @@ import {
4
4
  createCamundaClient,
5
5
  isPresentWhenUnsupportedError,
6
6
  nextPageRequest
7
- } from "../chunk-GIOXXJ73.js";
7
+ } from "../chunk-GMNYLSVD.js";
8
8
  import "../chunk-LXWPMQOS.js";
9
9
  import "../chunk-DGUM43GV.js";
10
10
 
package/dist/index.cjs CHANGED
@@ -13359,6 +13359,11 @@ var SCHEMA = {
13359
13359
  aliases: ["ZEEBE_REST_ADDRESS"],
13360
13360
  doc: "Base REST endpoint address. Legacy alias: ZEEBE_REST_ADDRESS (used only when CAMUNDA_REST_ADDRESS is unset)."
13361
13361
  },
13362
+ CAMUNDA_REST_ADDRESS_EXACT: {
13363
+ type: "boolean",
13364
+ default: false,
13365
+ doc: "Disable the automatic /v2 suffix so CAMUNDA_REST_ADDRESS is used as the base path. The value is still normalized (surrounding whitespace and trailing slashes are trimmed) \u2014 this option only suppresses the /v2 append, it does not preserve the address byte-for-byte. Useful for gateway/reverse-proxy deployments whose base path does not follow the /v2 convention."
13366
+ },
13362
13367
  CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS: {
13363
13368
  desc: "Maximum total HTTP attempts (including the initial attempt) for transient failures (429,503, network).",
13364
13369
  type: "int",
@@ -13918,10 +13923,13 @@ function hydrateConfig(options = {}) {
13918
13923
  if (isSecret(k) && v) redacted[k] = redactSecret(v);
13919
13924
  else redacted[k] = v;
13920
13925
  }
13926
+ const _restAddressExact = reqBool("CAMUNDA_REST_ADDRESS_EXACT");
13921
13927
  let _restAddress = reqStr("CAMUNDA_REST_ADDRESS");
13922
13928
  if (_restAddress) {
13923
13929
  _restAddress = _restAddress.trim();
13924
- if (!/\/v2\/?$/i.test(_restAddress)) {
13930
+ if (_restAddressExact) {
13931
+ _restAddress = _restAddress.replace(/\/+$/, "");
13932
+ } else if (!/\/v2\/?$/i.test(_restAddress)) {
13925
13933
  _restAddress = `${_restAddress.replace(/\/+$/, "")}/v2`;
13926
13934
  } else {
13927
13935
  }
@@ -14507,7 +14515,7 @@ function createLogger(opts = {}) {
14507
14515
  }
14508
14516
 
14509
14517
  // src/runtime/version.ts
14510
- var packageVersion = "10.0.0-alpha.49";
14518
+ var packageVersion = "10.0.0-alpha.50";
14511
14519
 
14512
14520
  // src/runtime/supportLogger.ts
14513
14521
  var NoopSupportLogger = class {