@camunda8/orchestration-cluster-api 8.8.4 → 8.8.5

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/dist/fp/index.cjs CHANGED
@@ -176,54 +176,6 @@ var createSseClient = ({
176
176
  return { stream };
177
177
  };
178
178
 
179
- // src/gen/core/auth.gen.ts
180
- var getAuthToken = async (auth, callback) => {
181
- const token = typeof callback === "function" ? await callback(auth) : callback;
182
- if (!token) {
183
- return;
184
- }
185
- if (auth.scheme === "bearer") {
186
- return `Bearer ${token}`;
187
- }
188
- if (auth.scheme === "basic") {
189
- return `Basic ${btoa(token)}`;
190
- }
191
- return token;
192
- };
193
-
194
- // src/gen/core/bodySerializer.gen.ts
195
- var serializeFormDataPair = (data, key, value) => {
196
- if (typeof value === "string" || value instanceof Blob) {
197
- data.append(key, value);
198
- } else if (value instanceof Date) {
199
- data.append(key, value.toISOString());
200
- } else {
201
- data.append(key, JSON.stringify(value));
202
- }
203
- };
204
- var formDataBodySerializer = {
205
- bodySerializer: (body) => {
206
- const data = new FormData();
207
- Object.entries(body).forEach(([key, value]) => {
208
- if (value === void 0 || value === null) {
209
- return;
210
- }
211
- if (Array.isArray(value)) {
212
- value.forEach((v) => serializeFormDataPair(data, key, v));
213
- } else {
214
- serializeFormDataPair(data, key, value);
215
- }
216
- });
217
- return data;
218
- }
219
- };
220
- var jsonBodySerializer = {
221
- bodySerializer: (body) => JSON.stringify(
222
- body,
223
- (_key, value) => typeof value === "bigint" ? value.toString() : value
224
- )
225
- };
226
-
227
179
  // src/gen/core/pathSerializer.gen.ts
228
180
  var separatorArrayExplode = (style) => {
229
181
  switch (style) {
@@ -436,6 +388,69 @@ var getUrl = ({
436
388
  }
437
389
  return url;
438
390
  };
391
+ function getValidRequestBody(options) {
392
+ const hasBody = options.body !== void 0;
393
+ const isSerializedBody = hasBody && options.bodySerializer;
394
+ if (isSerializedBody) {
395
+ if ("serializedBody" in options) {
396
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
397
+ return hasSerializedBody ? options.serializedBody : null;
398
+ }
399
+ return options.body !== "" ? options.body : null;
400
+ }
401
+ if (hasBody) {
402
+ return options.body;
403
+ }
404
+ return void 0;
405
+ }
406
+
407
+ // src/gen/core/auth.gen.ts
408
+ var getAuthToken = async (auth, callback) => {
409
+ const token = typeof callback === "function" ? await callback(auth) : callback;
410
+ if (!token) {
411
+ return;
412
+ }
413
+ if (auth.scheme === "bearer") {
414
+ return `Bearer ${token}`;
415
+ }
416
+ if (auth.scheme === "basic") {
417
+ return `Basic ${btoa(token)}`;
418
+ }
419
+ return token;
420
+ };
421
+
422
+ // src/gen/core/bodySerializer.gen.ts
423
+ var serializeFormDataPair = (data, key, value) => {
424
+ if (typeof value === "string" || value instanceof Blob) {
425
+ data.append(key, value);
426
+ } else if (value instanceof Date) {
427
+ data.append(key, value.toISOString());
428
+ } else {
429
+ data.append(key, JSON.stringify(value));
430
+ }
431
+ };
432
+ var formDataBodySerializer = {
433
+ bodySerializer: (body) => {
434
+ const data = new FormData();
435
+ Object.entries(body).forEach(([key, value]) => {
436
+ if (value === void 0 || value === null) {
437
+ return;
438
+ }
439
+ if (Array.isArray(value)) {
440
+ value.forEach((v) => serializeFormDataPair(data, key, v));
441
+ } else {
442
+ serializeFormDataPair(data, key, value);
443
+ }
444
+ });
445
+ return data;
446
+ }
447
+ };
448
+ var jsonBodySerializer = {
449
+ bodySerializer: (body) => JSON.stringify(
450
+ body,
451
+ (_key, value) => typeof value === "bigint" ? value.toString() : value
452
+ )
453
+ };
439
454
 
440
455
  // src/gen/client/utils.gen.ts
441
456
  var createQuerySerializer = ({
@@ -563,13 +578,20 @@ var mergeConfigs = (a, b) => {
563
578
  config.headers = mergeHeaders(a.headers, b.headers);
564
579
  return config;
565
580
  };
581
+ var headersEntries = (headers) => {
582
+ const entries = [];
583
+ headers.forEach((value, key) => {
584
+ entries.push([key, value]);
585
+ });
586
+ return entries;
587
+ };
566
588
  var mergeHeaders = (...headers) => {
567
589
  const mergedHeaders = new Headers();
568
590
  for (const header of headers) {
569
- if (!header || typeof header !== "object") {
591
+ if (!header) {
570
592
  continue;
571
593
  }
572
- const iterator = header instanceof Headers ? header.entries() : Object.entries(header);
594
+ const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
573
595
  for (const [key, value] of iterator) {
574
596
  if (value === null) {
575
597
  mergedHeaders.delete(key);
@@ -679,10 +701,10 @@ var createClient = (config = {}) => {
679
701
  if (opts.requestValidator) {
680
702
  await opts.requestValidator(opts);
681
703
  }
682
- if (opts.body && opts.bodySerializer) {
704
+ if (opts.body !== void 0 && opts.bodySerializer) {
683
705
  opts.serializedBody = opts.bodySerializer(opts.body);
684
706
  }
685
- if (opts.serializedBody === void 0 || opts.serializedBody === "") {
707
+ if (opts.body === void 0 || opts.serializedBody === "") {
686
708
  opts.headers.delete("Content-Type");
687
709
  }
688
710
  const url = buildUrl(opts);
@@ -693,7 +715,7 @@ var createClient = (config = {}) => {
693
715
  const requestInit = {
694
716
  redirect: "follow",
695
717
  ...opts,
696
- body: opts.serializedBody
718
+ body: getValidRequestBody(opts)
697
719
  };
698
720
  let request2 = new Request(url, requestInit);
699
721
  for (const fn of interceptors.request._fns) {
@@ -1241,6 +1263,18 @@ var searchUserTaskVariables = (options) => {
1241
1263
  }
1242
1264
  });
1243
1265
  };
1266
+ var searchUserTaskEffectiveVariables = (options) => {
1267
+ return (options.client ?? client).post({
1268
+ requestValidator: void 0,
1269
+ responseValidator: void 0,
1270
+ url: "/user-tasks/{userTaskKey}/effective-variables/search",
1271
+ ...options,
1272
+ headers: {
1273
+ "Content-Type": "application/json",
1274
+ ...options.headers
1275
+ }
1276
+ });
1277
+ };
1244
1278
  var searchVariables = (options) => {
1245
1279
  return (options?.client ?? client).post({
1246
1280
  requestValidator: void 0,
@@ -2868,6 +2902,8 @@ __export(zod_gen_exports, {
2868
2902
  zSearchRolesResponse: () => zSearchRolesResponse,
2869
2903
  zSearchTenantsData: () => zSearchTenantsData,
2870
2904
  zSearchTenantsResponse: () => zSearchTenantsResponse,
2905
+ zSearchUserTaskEffectiveVariablesData: () => zSearchUserTaskEffectiveVariablesData,
2906
+ zSearchUserTaskEffectiveVariablesResponse: () => zSearchUserTaskEffectiveVariablesResponse,
2871
2907
  zSearchUserTaskVariablesData: () => zSearchUserTaskVariablesData,
2872
2908
  zSearchUserTaskVariablesResponse: () => zSearchUserTaskVariablesResponse,
2873
2909
  zSearchUserTasksData: () => zSearchUserTasksData,
@@ -2971,6 +3007,7 @@ __export(zod_gen_exports, {
2971
3007
  zUserSearchResult: () => zUserSearchResult,
2972
3008
  zUserTaskAssignmentRequest: () => zUserTaskAssignmentRequest,
2973
3009
  zUserTaskCompletionRequest: () => zUserTaskCompletionRequest,
3010
+ zUserTaskEffectiveVariableSearchQueryRequest: () => zUserTaskEffectiveVariableSearchQueryRequest,
2974
3011
  zUserTaskFilter: () => zUserTaskFilter,
2975
3012
  zUserTaskKey: () => zUserTaskKey,
2976
3013
  zUserTaskProperties: () => zUserTaskProperties,
@@ -3039,7 +3076,9 @@ var zMessageSubscriptionKey = zLongKey;
3039
3076
  var zDecisionDefinitionId = import_zod.z.string().min(1).max(256).regex(/^[A-Za-z0-9_@.+-]+$/).register(import_zod.z.globalRegistry, {
3040
3077
  description: "Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful."
3041
3078
  });
3042
- var zDecisionEvaluationInstanceKey = zLongKey;
3079
+ var zDecisionEvaluationInstanceKey = import_zod.z.string().min(3).max(30).regex(/^[0-9]+-[0-9]+$/).register(import_zod.z.globalRegistry, {
3080
+ description: "System-generated key for a decision evaluation instance."
3081
+ });
3043
3082
  var zDecisionEvaluationKey = zLongKey;
3044
3083
  var zAuthorizationKey = zLongKey;
3045
3084
  var zMessageKey = zLongKey;
@@ -3392,6 +3431,15 @@ var zUserTaskVariableSearchQueryRequest = zSearchQueryRequest.and(import_zod.z.o
3392
3431
  }).register(import_zod.z.globalRegistry, {
3393
3432
  description: "User task search query request."
3394
3433
  }));
3434
+ var zUserTaskEffectiveVariableSearchQueryRequest = import_zod.z.object({
3435
+ page: import_zod.z.optional(zOffsetPagination),
3436
+ sort: import_zod.z.optional(import_zod.z.array(zUserTaskVariableSearchQuerySortRequest).register(import_zod.z.globalRegistry, {
3437
+ description: "Sort field criteria."
3438
+ })),
3439
+ filter: import_zod.z.optional(zUserTaskVariableFilter)
3440
+ }).register(import_zod.z.globalRegistry, {
3441
+ description: "User task effective variable search query request. Uses offset-based pagination only.\n"
3442
+ });
3395
3443
  var zUserTaskResult = import_zod.z.object({
3396
3444
  name: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3397
3445
  description: "The name for this user task."
@@ -3592,7 +3640,7 @@ var zProcessDefinitionSearchQuerySortRequest = import_zod.z.object({
3592
3640
  var zProcessDefinitionFilter = import_zod.z.object({
3593
3641
  name: import_zod.z.optional(zStringFilterProperty),
3594
3642
  isLatestVersion: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3595
- description: "Whether to only return the latest version of each process definition.\nWhen using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`.\nThe response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`.\n"
3643
+ description: "Whether to only return the latest version of each process definition.\nWhen using this filter, pagination functionality is limited, you can only paginate forward using `after` and `limit`.\nThe response contains no `startCursor` in the `page`, and requests ignore the `from` and `before` in the `page`.\nWhen using this filter, sorting is limited to `processDefinitionId` and `tenantId` fields only.\n"
3596
3644
  })),
3597
3645
  resourceName: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
3598
3646
  description: "Resource name of this process definition."
@@ -3608,6 +3656,12 @@ var zProcessDefinitionFilter = import_zod.z.object({
3608
3656
  processDefinitionKey: import_zod.z.optional(zProcessDefinitionKey),
3609
3657
  hasStartForm: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3610
3658
  description: "Indicates whether the start event of the process has an associated Form Key."
3659
+ })),
3660
+ state: import_zod.z.optional(import_zod.z.enum([
3661
+ "ACTIVE",
3662
+ "DELETED"
3663
+ ]).register(import_zod.z.globalRegistry, {
3664
+ description: "Filter by the process definition's state.\nWhen not set, process definitions in any state are returned.\nSet to `ACTIVE` to exclude deleted definitions (recommended for most use cases).\nSet to `DELETED` to return only definitions that have been deleted but are still\nretained in secondary storage.\n"
3611
3665
  }))
3612
3666
  }).register(import_zod.z.globalRegistry, {
3613
3667
  description: "Process definition search filter."
@@ -3636,6 +3690,12 @@ var zProcessDefinitionResult = import_zod.z.object({
3636
3690
  processDefinitionKey: import_zod.z.optional(zProcessDefinitionKey),
3637
3691
  hasStartForm: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3638
3692
  description: "Indicates whether the start event of the process has an associated Form Key."
3693
+ })),
3694
+ state: import_zod.z.optional(import_zod.z.enum([
3695
+ "ACTIVE",
3696
+ "DELETED"
3697
+ ]).register(import_zod.z.globalRegistry, {
3698
+ description: "The state of this process definition."
3639
3699
  }))
3640
3700
  });
3641
3701
  var zProcessDefinitionSearchQueryResult = zSearchQueryResponse.and(import_zod.z.object({
@@ -3751,6 +3811,7 @@ var zBaseProcessInstanceFilterFields = import_zod.z.object({
3751
3811
  parentProcessInstanceKey: import_zod.z.optional(zProcessInstanceKeyFilterProperty),
3752
3812
  parentElementInstanceKey: import_zod.z.optional(zElementInstanceKeyFilterProperty),
3753
3813
  batchOperationId: import_zod.z.optional(zStringFilterProperty),
3814
+ batchOperationKey: import_zod.z.optional(zStringFilterProperty),
3754
3815
  errorMessage: import_zod.z.optional(zStringFilterProperty),
3755
3816
  hasRetriesLeft: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
3756
3817
  description: "Whether the process has failed jobs with retries left."
@@ -6444,8 +6505,8 @@ var zSignalBroadcastResult = import_zod.z.object({
6444
6505
  var zFormResult = import_zod.z.object({
6445
6506
  tenantId: import_zod.z.optional(zTenantId),
6446
6507
  formId: import_zod.z.optional(zFormId),
6447
- schema: import_zod.z.optional(import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).register(import_zod.z.globalRegistry, {
6448
- description: "The form content."
6508
+ schema: import_zod.z.optional(import_zod.z.string().register(import_zod.z.globalRegistry, {
6509
+ description: "The form schema as a JSON document serialized as a string."
6449
6510
  })),
6450
6511
  version: import_zod.z.optional(import_zod.z.coerce.bigint().register(import_zod.z.globalRegistry, {
6451
6512
  description: "The version of the the deployed form."
@@ -7088,6 +7149,18 @@ var zSearchUserTaskVariablesData = import_zod.z.object({
7088
7149
  }))
7089
7150
  });
7090
7151
  var zSearchUserTaskVariablesResponse = zVariableSearchQueryResult;
7152
+ var zSearchUserTaskEffectiveVariablesData = import_zod.z.object({
7153
+ body: import_zod.z.optional(zUserTaskEffectiveVariableSearchQueryRequest),
7154
+ path: import_zod.z.object({
7155
+ userTaskKey: zUserTaskKey
7156
+ }),
7157
+ query: import_zod.z.optional(import_zod.z.object({
7158
+ truncateValues: import_zod.z.optional(import_zod.z.boolean().register(import_zod.z.globalRegistry, {
7159
+ description: "When true (default), long variable values in the response are truncated. When false, full variable values are returned."
7160
+ }))
7161
+ }))
7162
+ });
7163
+ var zSearchUserTaskEffectiveVariablesResponse = zVariableSearchQueryResult;
7091
7164
  var zSearchVariablesData = import_zod.z.object({
7092
7165
  body: import_zod.z.optional(zVariableSearchQuery),
7093
7166
  path: import_zod.z.optional(import_zod.z.never()),
@@ -9523,7 +9596,7 @@ function createLogger(opts = {}) {
9523
9596
  }
9524
9597
 
9525
9598
  // src/runtime/version.ts
9526
- var packageVersion = "8.8.4";
9599
+ var packageVersion = "8.8.5";
9527
9600
 
9528
9601
  // src/runtime/supportLogger.ts
9529
9602
  var NoopSupportLogger = class {
@@ -11944,9 +12017,7 @@ var CamundaClient = class {
11944
12017
  return this._invokeWithRetry(() => call(), { opId: "broadcastSignal", exempt: false });
11945
12018
  });
11946
12019
  }
11947
- cancelBatchOperation(arg, consistencyManagement) {
11948
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
11949
- const useConsistency = consistencyManagement.consistency;
12020
+ cancelBatchOperation(arg) {
11950
12021
  return toCancelable2(async (signal) => {
11951
12022
  const { batchOperationKey, ..._body } = arg || {};
11952
12023
  let envelope = {};
@@ -11995,9 +12066,7 @@ var CamundaClient = class {
11995
12066
  throw e;
11996
12067
  }
11997
12068
  };
11998
- const invoke = () => toCancelable2(() => call());
11999
- if (useConsistency) return eventualPoll("cancelBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
12000
- return invoke();
12069
+ return this._invokeWithRetry(() => call(), { opId: "cancelBatchOperation", exempt: false });
12001
12070
  });
12002
12071
  }
12003
12072
  cancelProcessInstance(arg) {
@@ -12052,9 +12121,7 @@ var CamundaClient = class {
12052
12121
  return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstance", exempt: false });
12053
12122
  });
12054
12123
  }
12055
- cancelProcessInstancesBatchOperation(arg, consistencyManagement) {
12056
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12057
- const useConsistency = consistencyManagement.consistency;
12124
+ cancelProcessInstancesBatchOperation(arg) {
12058
12125
  return toCancelable2(async (signal) => {
12059
12126
  const _body = arg;
12060
12127
  let envelope = {};
@@ -12101,9 +12168,7 @@ var CamundaClient = class {
12101
12168
  throw e;
12102
12169
  }
12103
12170
  };
12104
- const invoke = () => toCancelable2(() => call());
12105
- if (useConsistency) return eventualPoll("cancelProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
12106
- return invoke();
12171
+ return this._invokeWithRetry(() => call(), { opId: "cancelProcessInstancesBatchOperation", exempt: false });
12107
12172
  });
12108
12173
  }
12109
12174
  completeJob(arg) {
@@ -12264,9 +12329,7 @@ var CamundaClient = class {
12264
12329
  return this._invokeWithRetry(() => call(), { opId: "correlateMessage", exempt: false });
12265
12330
  });
12266
12331
  }
12267
- createAdminUser(arg, consistencyManagement) {
12268
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12269
- const useConsistency = consistencyManagement.consistency;
12332
+ createAdminUser(arg) {
12270
12333
  return toCancelable2(async (signal) => {
12271
12334
  const _body = arg;
12272
12335
  let envelope = {};
@@ -12313,9 +12376,7 @@ var CamundaClient = class {
12313
12376
  throw e;
12314
12377
  }
12315
12378
  };
12316
- const invoke = () => toCancelable2(() => call());
12317
- if (useConsistency) return eventualPoll("createAdminUser", false, invoke, { ...useConsistency, logger: this._log });
12318
- return invoke();
12379
+ return this._invokeWithRetry(() => call(), { opId: "createAdminUser", exempt: false });
12319
12380
  });
12320
12381
  }
12321
12382
  createAuthorization(arg) {
@@ -12900,9 +12961,7 @@ var CamundaClient = class {
12900
12961
  return this._invokeWithRetry(() => call(), { opId: "createTenant", exempt: false });
12901
12962
  });
12902
12963
  }
12903
- createUser(arg, consistencyManagement) {
12904
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12905
- const useConsistency = consistencyManagement.consistency;
12964
+ createUser(arg) {
12906
12965
  return toCancelable2(async (signal) => {
12907
12966
  const _body = arg;
12908
12967
  let envelope = {};
@@ -12949,9 +13008,7 @@ var CamundaClient = class {
12949
13008
  throw e;
12950
13009
  }
12951
13010
  };
12952
- const invoke = () => toCancelable2(() => call());
12953
- if (useConsistency) return eventualPoll("createUser", false, invoke, { ...useConsistency, logger: this._log });
12954
- return invoke();
13011
+ return this._invokeWithRetry(() => call(), { opId: "createUser", exempt: false });
12955
13012
  });
12956
13013
  }
12957
13014
  deleteAuthorization(arg) {
@@ -13301,9 +13358,7 @@ var CamundaClient = class {
13301
13358
  return this._invokeWithRetry(() => call(), { opId: "deleteTenant", exempt: false });
13302
13359
  });
13303
13360
  }
13304
- deleteUser(arg, consistencyManagement) {
13305
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13306
- const useConsistency = consistencyManagement.consistency;
13361
+ deleteUser(arg) {
13307
13362
  return toCancelable2(async (signal) => {
13308
13363
  const { username } = arg || {};
13309
13364
  let envelope = {};
@@ -13350,9 +13405,7 @@ var CamundaClient = class {
13350
13405
  throw e;
13351
13406
  }
13352
13407
  };
13353
- const invoke = () => toCancelable2(() => call());
13354
- if (useConsistency) return eventualPoll("deleteUser", false, invoke, { ...useConsistency, logger: this._log });
13355
- return invoke();
13408
+ return this._invokeWithRetry(() => call(), { opId: "deleteUser", exempt: false });
13356
13409
  });
13357
13410
  }
13358
13411
  evaluateDecision(arg) {
@@ -15239,9 +15292,7 @@ var CamundaClient = class {
15239
15292
  return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstance", exempt: false });
15240
15293
  });
15241
15294
  }
15242
- migrateProcessInstancesBatchOperation(arg, consistencyManagement) {
15243
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15244
- const useConsistency = consistencyManagement.consistency;
15295
+ migrateProcessInstancesBatchOperation(arg) {
15245
15296
  return toCancelable2(async (signal) => {
15246
15297
  const _body = arg;
15247
15298
  let envelope = {};
@@ -15288,9 +15339,7 @@ var CamundaClient = class {
15288
15339
  throw e;
15289
15340
  }
15290
15341
  };
15291
- const invoke = () => toCancelable2(() => call());
15292
- if (useConsistency) return eventualPoll("migrateProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
15293
- return invoke();
15342
+ return this._invokeWithRetry(() => call(), { opId: "migrateProcessInstancesBatchOperation", exempt: false });
15294
15343
  });
15295
15344
  }
15296
15345
  modifyProcessInstance(arg) {
@@ -15345,9 +15394,7 @@ var CamundaClient = class {
15345
15394
  return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstance", exempt: false });
15346
15395
  });
15347
15396
  }
15348
- modifyProcessInstancesBatchOperation(arg, consistencyManagement) {
15349
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15350
- const useConsistency = consistencyManagement.consistency;
15397
+ modifyProcessInstancesBatchOperation(arg) {
15351
15398
  return toCancelable2(async (signal) => {
15352
15399
  const _body = arg;
15353
15400
  let envelope = {};
@@ -15394,9 +15441,7 @@ var CamundaClient = class {
15394
15441
  throw e;
15395
15442
  }
15396
15443
  };
15397
- const invoke = () => toCancelable2(() => call());
15398
- if (useConsistency) return eventualPoll("modifyProcessInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
15399
- return invoke();
15444
+ return this._invokeWithRetry(() => call(), { opId: "modifyProcessInstancesBatchOperation", exempt: false });
15400
15445
  });
15401
15446
  }
15402
15447
  pinClock(arg) {
@@ -15597,9 +15642,7 @@ var CamundaClient = class {
15597
15642
  return this._invokeWithRetry(() => call(), { opId: "resolveIncident", exempt: false });
15598
15643
  });
15599
15644
  }
15600
- resolveIncidentsBatchOperation(arg, consistencyManagement) {
15601
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15602
- const useConsistency = consistencyManagement.consistency;
15645
+ resolveIncidentsBatchOperation(arg) {
15603
15646
  return toCancelable2(async (signal) => {
15604
15647
  const _body = arg;
15605
15648
  let envelope = {};
@@ -15646,14 +15689,10 @@ var CamundaClient = class {
15646
15689
  throw e;
15647
15690
  }
15648
15691
  };
15649
- const invoke = () => toCancelable2(() => call());
15650
- if (useConsistency) return eventualPoll("resolveIncidentsBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
15651
- return invoke();
15692
+ return this._invokeWithRetry(() => call(), { opId: "resolveIncidentsBatchOperation", exempt: false });
15652
15693
  });
15653
15694
  }
15654
- resumeBatchOperation(arg, consistencyManagement) {
15655
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15656
- const useConsistency = consistencyManagement.consistency;
15695
+ resumeBatchOperation(arg) {
15657
15696
  return toCancelable2(async (signal) => {
15658
15697
  const { batchOperationKey, ..._body } = arg || {};
15659
15698
  let envelope = {};
@@ -15702,9 +15741,7 @@ var CamundaClient = class {
15702
15741
  throw e;
15703
15742
  }
15704
15743
  };
15705
- const invoke = () => toCancelable2(() => call());
15706
- if (useConsistency) return eventualPoll("resumeBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
15707
- return invoke();
15744
+ return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false });
15708
15745
  });
15709
15746
  }
15710
15747
  searchAuthorizations(arg, consistencyManagement) {
@@ -17463,6 +17500,64 @@ var CamundaClient = class {
17463
17500
  return invoke();
17464
17501
  });
17465
17502
  }
17503
+ searchUserTaskEffectiveVariables(arg, consistencyManagement) {
17504
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
17505
+ const useConsistency = consistencyManagement.consistency;
17506
+ return toCancelable2(async (signal) => {
17507
+ const { userTaskKey, truncateValues, ..._body } = arg || {};
17508
+ let envelope = {};
17509
+ envelope.path = { userTaskKey };
17510
+ envelope.query = { truncateValues };
17511
+ envelope.body = _body;
17512
+ if (this._validation.settings.req !== "none") {
17513
+ const maybe = await this._validation.gateRequest("searchUserTaskEffectiveVariables", zSearchUserTaskEffectiveVariablesData, envelope);
17514
+ if (this._validation.settings.req === "strict") envelope = maybe;
17515
+ }
17516
+ const opts = { client: this._client, signal, throwOnError: false };
17517
+ if (envelope.path) opts.path = envelope.path;
17518
+ if (envelope.query) opts.query = envelope.query;
17519
+ if (envelope.body !== void 0) opts.body = envelope.body;
17520
+ const call = async () => {
17521
+ try {
17522
+ const _raw = await searchUserTaskEffectiveVariables(opts);
17523
+ let data = this._evaluateResponse(_raw, "searchUserTaskEffectiveVariables", (resp) => {
17524
+ const st = resp.status ?? resp.response?.status;
17525
+ if (!st) return void 0;
17526
+ const candidate = st === 429 || st === 503 || st === 500;
17527
+ if (!candidate) return void 0;
17528
+ let prob = void 0;
17529
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
17530
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
17531
+ err.status = st;
17532
+ err.name = "HttpSdkError";
17533
+ if (prob) {
17534
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
17535
+ }
17536
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
17537
+ if (!isBp) err.nonRetryable = true;
17538
+ return err;
17539
+ });
17540
+ const _respSchemaName = "zSearchUserTaskEffectiveVariablesResponse";
17541
+ if (this._isVoidResponse(_respSchemaName)) {
17542
+ data = void 0;
17543
+ }
17544
+ if (this._validation.settings.res !== "none") {
17545
+ const _schema = zSearchUserTaskEffectiveVariablesResponse;
17546
+ if (_schema) {
17547
+ const maybeR = await this._validation.gateResponse("searchUserTaskEffectiveVariables", _schema, data);
17548
+ if (this._validation.settings.res === "strict") data = maybeR;
17549
+ }
17550
+ }
17551
+ return data;
17552
+ } catch (e) {
17553
+ throw e;
17554
+ }
17555
+ };
17556
+ const invoke = () => toCancelable2(() => call());
17557
+ if (useConsistency) return eventualPoll("searchUserTaskEffectiveVariables", false, invoke, { ...useConsistency, logger: this._log });
17558
+ return invoke();
17559
+ });
17560
+ }
17466
17561
  searchUserTasks(arg, consistencyManagement) {
17467
17562
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
17468
17563
  const useConsistency = consistencyManagement.consistency;
@@ -17631,9 +17726,7 @@ var CamundaClient = class {
17631
17726
  return invoke();
17632
17727
  });
17633
17728
  }
17634
- suspendBatchOperation(arg, consistencyManagement) {
17635
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
17636
- const useConsistency = consistencyManagement.consistency;
17729
+ suspendBatchOperation(arg) {
17637
17730
  return toCancelable2(async (signal) => {
17638
17731
  const { batchOperationKey, ..._body } = arg || {};
17639
17732
  let envelope = {};
@@ -17682,9 +17775,7 @@ var CamundaClient = class {
17682
17775
  throw e;
17683
17776
  }
17684
17777
  };
17685
- const invoke = () => toCancelable2(() => call());
17686
- if (useConsistency) return eventualPoll("suspendBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
17687
- return invoke();
17778
+ return this._invokeWithRetry(() => call(), { opId: "suspendBatchOperation", exempt: false });
17688
17779
  });
17689
17780
  }
17690
17781
  throwJobError(arg) {
@@ -18701,9 +18792,7 @@ var CamundaClient = class {
18701
18792
  return this._invokeWithRetry(() => call(), { opId: "updateTenant", exempt: false });
18702
18793
  });
18703
18794
  }
18704
- updateUser(arg, consistencyManagement) {
18705
- if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
18706
- const useConsistency = consistencyManagement.consistency;
18795
+ updateUser(arg) {
18707
18796
  return toCancelable2(async (signal) => {
18708
18797
  const { username, ..._body } = arg || {};
18709
18798
  let envelope = {};
@@ -18752,9 +18841,7 @@ var CamundaClient = class {
18752
18841
  throw e;
18753
18842
  }
18754
18843
  };
18755
- const invoke = () => toCancelable2(() => call());
18756
- if (useConsistency) return eventualPoll("updateUser", false, invoke, { ...useConsistency, logger: this._log });
18757
- return invoke();
18844
+ return this._invokeWithRetry(() => call(), { opId: "updateUser", exempt: false });
18758
18845
  });
18759
18846
  }
18760
18847
  updateUserTask(arg) {