@camunda8/orchestration-cluster-api 10.0.0-alpha.23 → 10.0.0-alpha.25

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
@@ -3097,8 +3097,12 @@ var init_zod_gen = __esm({
3097
3097
  }).optional()
3098
3098
  }).nullable();
3099
3099
  zJobResult = z.union([
3100
- zJobResultUserTask,
3101
- zJobResultAdHocSubProcess
3100
+ z.object({
3101
+ type: z.literal("userTask")
3102
+ }).and(zJobResultUserTask),
3103
+ z.object({
3104
+ type: z.literal("adHocSubProcess")
3105
+ }).and(zJobResultAdHocSubProcess)
3102
3106
  ]);
3103
3107
  zJobCompletionRequest = z.object({
3104
3108
  variables: z.record(z.string(), z.unknown()).nullish(),
@@ -4740,7 +4744,9 @@ var init_zod_gen = __esm({
4740
4744
  }).register(z.globalRegistry, {
4741
4745
  description: "Terminates the process instance after a specific BPMN element is completed or terminated.\n"
4742
4746
  });
4743
- zProcessInstanceCreationRuntimeInstruction = zProcessInstanceCreationTerminateInstruction;
4747
+ zProcessInstanceCreationRuntimeInstruction = z.object({
4748
+ type: z.literal("TERMINATE_PROCESS_INSTANCE")
4749
+ }).and(zProcessInstanceCreationTerminateInstruction);
4744
4750
  zProcessInstanceCreationInstructionById = z.object({
4745
4751
  processDefinitionId: zProcessDefinitionId,
4746
4752
  processDefinitionVersion: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, {
@@ -9254,6 +9260,7 @@ var createClient = (config = {}) => {
9254
9260
  const responseStyle = options.responseStyle ?? _config.responseStyle;
9255
9261
  let request2;
9256
9262
  let response;
9263
+ let __isHttpErrorResponse = false;
9257
9264
  try {
9258
9265
  const { opts, url: url2 } = await beforeRequest(options);
9259
9266
  const requestInit = {
@@ -9342,6 +9349,7 @@ var createClient = (config = {}) => {
9342
9349
  jsonError = JSON.parse(textError);
9343
9350
  } catch {
9344
9351
  }
9352
+ __isHttpErrorResponse = true;
9345
9353
  throw jsonError ?? textError;
9346
9354
  } catch (error) {
9347
9355
  let finalError = error;
@@ -9351,7 +9359,7 @@ var createClient = (config = {}) => {
9351
9359
  }
9352
9360
  }
9353
9361
  finalError = finalError || {};
9354
- if (throwOnError) {
9362
+ if (throwOnError || !__isHttpErrorResponse) {
9355
9363
  throw finalError;
9356
9364
  }
9357
9365
  return responseStyle === "data" ? void 0 : {
@@ -12967,7 +12975,7 @@ function createLogger(opts = {}) {
12967
12975
  }
12968
12976
 
12969
12977
  // src/runtime/version.ts
12970
- var packageVersion = "10.0.0-alpha.23";
12978
+ var packageVersion = "10.0.0-alpha.25";
12971
12979
 
12972
12980
  // src/runtime/supportLogger.ts
12973
12981
  var NoopSupportLogger = class {
@@ -14205,6 +14213,33 @@ function createVariableSearchFetchPage(params) {
14205
14213
  };
14206
14214
  }
14207
14215
 
14216
+ // src/runtime/pollBackoff.ts
14217
+ var DEFAULT_POLL_BACKOFF_MIN_MS = 1e3;
14218
+ var DEFAULT_POLL_BACKOFF_MAX_MS = 3e4;
14219
+ var MAX_SAFE_TIMEOUT_MS = 2147483647;
14220
+ function computePollBackoffMs(attempt, opts) {
14221
+ const rng = opts.rng ?? Math.random;
14222
+ const min = Number.isFinite(opts.minMs) ? Math.min(MAX_SAFE_TIMEOUT_MS, Math.max(0, Math.floor(opts.minMs))) : 0;
14223
+ const max = Number.isFinite(opts.maxMs) ? Math.min(MAX_SAFE_TIMEOUT_MS, Math.max(min, Math.floor(opts.maxMs))) : min;
14224
+ const safeAttempt = Number.isFinite(attempt) ? Math.max(1, Math.floor(attempt)) : 1;
14225
+ const exponent = Math.min(safeAttempt - 1, 53);
14226
+ const cap = Math.min(max, min * 2 ** exponent);
14227
+ const half = cap / 2;
14228
+ const r = rng();
14229
+ const jitter = Number.isFinite(r) ? Math.min(1, Math.max(0, r)) : 0;
14230
+ return Math.round(half + jitter * half);
14231
+ }
14232
+ function nextActivationRetryDelayMs(attempt, cfg, rng) {
14233
+ if (cfg.pollBackoffMinMs > 0) {
14234
+ return computePollBackoffMs(attempt, {
14235
+ minMs: cfg.pollBackoffMinMs,
14236
+ maxMs: cfg.pollBackoffMaxMs,
14237
+ rng
14238
+ });
14239
+ }
14240
+ return Number.isFinite(cfg.pollIntervalMs) ? Math.max(0, Math.round(cfg.pollIntervalMs)) : 0;
14241
+ }
14242
+
14208
14243
  // src/runtime/workerStartGate.ts
14209
14244
  var WorkerStartGate = class {
14210
14245
  /**
@@ -14264,6 +14299,8 @@ var JobWorker = class {
14264
14299
  _pollTimer = null;
14265
14300
  _inFlightActivation = null;
14266
14301
  // CancelablePromise-like
14302
+ /** Consecutive failed activation requests; drives the retry backoff, reset on success. */
14303
+ _consecutiveActivationErrors = 0;
14267
14304
  _log;
14268
14305
  _startGate;
14269
14306
  constructor(client2, cfg) {
@@ -14271,6 +14308,8 @@ var JobWorker = class {
14271
14308
  this._cfg = {
14272
14309
  ...cfg,
14273
14310
  pollIntervalMs: cfg.pollIntervalMs ?? 1,
14311
+ pollBackoffMinMs: cfg.pollBackoffMinMs ?? DEFAULT_POLL_BACKOFF_MIN_MS,
14312
+ pollBackoffMaxMs: cfg.pollBackoffMaxMs ?? DEFAULT_POLL_BACKOFF_MAX_MS,
14274
14313
  autoStart: cfg.autoStart ?? true,
14275
14314
  validateSchemas: cfg.validateSchemas ?? false,
14276
14315
  maxParallelJobs: cfg.maxParallelJobs ?? 10,
@@ -14415,6 +14454,7 @@ var JobWorker = class {
14415
14454
  this._inFlightActivation = this._client.activateJobs(body);
14416
14455
  const activation = await this._inFlightActivation;
14417
14456
  this._inFlightActivation = null;
14457
+ this._consecutiveActivationErrors = 0;
14418
14458
  result = activation?.jobs || [];
14419
14459
  this._log.debug(() => ["activation.response", { jobs: result.length }]);
14420
14460
  } catch (e) {
@@ -14422,10 +14462,17 @@ var JobWorker = class {
14422
14462
  if (this._stopped) return;
14423
14463
  if (e?.name === "CancelSdkError") {
14424
14464
  this._log.debug("activation.cancelled");
14425
- } else {
14426
- this._log.error("activation.error", e);
14465
+ this._scheduleNext(this._cfg.pollIntervalMs);
14466
+ return;
14427
14467
  }
14428
- this._scheduleNext(this._cfg.pollIntervalMs);
14468
+ this._consecutiveActivationErrors += 1;
14469
+ const delayMs = nextActivationRetryDelayMs(this._consecutiveActivationErrors, this._cfg);
14470
+ this._log.error("activation.error", e);
14471
+ this._log.debug(() => [
14472
+ "activation.retry",
14473
+ { attempt: this._consecutiveActivationErrors, retryInMs: delayMs }
14474
+ ]);
14475
+ this._scheduleNext(delayMs);
14429
14476
  return;
14430
14477
  }
14431
14478
  if (!result || result.length === 0) {
@@ -14576,6 +14623,8 @@ var ThreadedJobWorker = class {
14576
14623
  _stopped = false;
14577
14624
  _pollTimer = null;
14578
14625
  _inFlightActivation = null;
14626
+ /** Consecutive failed activation requests; drives the retry backoff, reset on success. */
14627
+ _consecutiveActivationErrors = 0;
14579
14628
  _log;
14580
14629
  _jobQueue = [];
14581
14630
  _startGate;
@@ -14585,6 +14634,8 @@ var ThreadedJobWorker = class {
14585
14634
  this._cfg = {
14586
14635
  ...cfg,
14587
14636
  pollIntervalMs: cfg.pollIntervalMs ?? 1,
14637
+ pollBackoffMinMs: cfg.pollBackoffMinMs ?? DEFAULT_POLL_BACKOFF_MIN_MS,
14638
+ pollBackoffMaxMs: cfg.pollBackoffMaxMs ?? DEFAULT_POLL_BACKOFF_MAX_MS,
14588
14639
  autoStart: cfg.autoStart ?? true,
14589
14640
  validateSchemas: cfg.validateSchemas ?? false,
14590
14641
  maxParallelJobs: cfg.maxParallelJobs ?? 10,
@@ -14816,6 +14867,7 @@ var ThreadedJobWorker = class {
14816
14867
  this._inFlightActivation = this._client.activateJobs(body);
14817
14868
  const activation = await this._inFlightActivation;
14818
14869
  this._inFlightActivation = null;
14870
+ this._consecutiveActivationErrors = 0;
14819
14871
  result = activation?.jobs || [];
14820
14872
  this._log.debug(() => ["activation.response", { jobs: result.length }]);
14821
14873
  } catch (e) {
@@ -14823,10 +14875,17 @@ var ThreadedJobWorker = class {
14823
14875
  if (this._stopped) return;
14824
14876
  if (e?.name === "CancelSdkError") {
14825
14877
  this._log.debug("activation.cancelled");
14826
- } else {
14827
- this._log.error("activation.error", e);
14878
+ this._scheduleNext(this._cfg.pollIntervalMs);
14879
+ return;
14828
14880
  }
14829
- this._scheduleNext(this._cfg.pollIntervalMs);
14881
+ this._consecutiveActivationErrors += 1;
14882
+ const delayMs = nextActivationRetryDelayMs(this._consecutiveActivationErrors, this._cfg);
14883
+ this._log.error("activation.error", e);
14884
+ this._log.debug(() => [
14885
+ "activation.retry",
14886
+ { attempt: this._consecutiveActivationErrors, retryInMs: delayMs }
14887
+ ]);
14888
+ this._scheduleNext(delayMs);
14830
14889
  return;
14831
14890
  }
14832
14891
  if (!result || result.length === 0) {
@@ -15563,6 +15622,10 @@ var CamundaClient = class {
15563
15622
  const maybeBody = await this._validation.gateRequest("activateAdHocSubProcessActivities", _schemas.zActivateAdHocSubProcessActivitiesBody, envelope.body);
15564
15623
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
15565
15624
  }
15625
+ if (envelope.path !== void 0) {
15626
+ const maybePath = await this._validation.gateRequest("activateAdHocSubProcessActivities", _schemas.zActivateAdHocSubProcessActivitiesPath, envelope.path);
15627
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15628
+ }
15566
15629
  }
15567
15630
  const opts = { client: this._client, signal, throwOnError: false };
15568
15631
  if (envelope.path) opts.path = envelope.path;
@@ -15675,7 +15738,10 @@ var CamundaClient = class {
15675
15738
  envelope.path = { groupId, clientId };
15676
15739
  if (this._validation.settings.req !== "none") {
15677
15740
  const _schemas = await this._loadSchemas();
15678
- await this._validation.gateRequest("assignClientToGroup", void 0, envelope);
15741
+ if (envelope.path !== void 0) {
15742
+ const maybePath = await this._validation.gateRequest("assignClientToGroup", _schemas.zAssignClientToGroupPath, envelope.path);
15743
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15744
+ }
15679
15745
  }
15680
15746
  const opts = { client: this._client, signal, throwOnError: false };
15681
15747
  if (envelope.path) opts.path = envelope.path;
@@ -15726,7 +15792,10 @@ var CamundaClient = class {
15726
15792
  envelope.path = { tenantId, clientId };
15727
15793
  if (this._validation.settings.req !== "none") {
15728
15794
  const _schemas = await this._loadSchemas();
15729
- await this._validation.gateRequest("assignClientToTenant", void 0, envelope);
15795
+ if (envelope.path !== void 0) {
15796
+ const maybePath = await this._validation.gateRequest("assignClientToTenant", _schemas.zAssignClientToTenantPath, envelope.path);
15797
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15798
+ }
15730
15799
  }
15731
15800
  const opts = { client: this._client, signal, throwOnError: false };
15732
15801
  if (envelope.path) opts.path = envelope.path;
@@ -15777,7 +15846,10 @@ var CamundaClient = class {
15777
15846
  envelope.path = { tenantId, groupId };
15778
15847
  if (this._validation.settings.req !== "none") {
15779
15848
  const _schemas = await this._loadSchemas();
15780
- await this._validation.gateRequest("assignGroupToTenant", void 0, envelope);
15849
+ if (envelope.path !== void 0) {
15850
+ const maybePath = await this._validation.gateRequest("assignGroupToTenant", _schemas.zAssignGroupToTenantPath, envelope.path);
15851
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15852
+ }
15781
15853
  }
15782
15854
  const opts = { client: this._client, signal, throwOnError: false };
15783
15855
  if (envelope.path) opts.path = envelope.path;
@@ -15828,7 +15900,10 @@ var CamundaClient = class {
15828
15900
  envelope.path = { groupId, mappingRuleId };
15829
15901
  if (this._validation.settings.req !== "none") {
15830
15902
  const _schemas = await this._loadSchemas();
15831
- await this._validation.gateRequest("assignMappingRuleToGroup", void 0, envelope);
15903
+ if (envelope.path !== void 0) {
15904
+ const maybePath = await this._validation.gateRequest("assignMappingRuleToGroup", _schemas.zAssignMappingRuleToGroupPath, envelope.path);
15905
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15906
+ }
15832
15907
  }
15833
15908
  const opts = { client: this._client, signal, throwOnError: false };
15834
15909
  if (envelope.path) opts.path = envelope.path;
@@ -15879,7 +15954,10 @@ var CamundaClient = class {
15879
15954
  envelope.path = { tenantId, mappingRuleId };
15880
15955
  if (this._validation.settings.req !== "none") {
15881
15956
  const _schemas = await this._loadSchemas();
15882
- await this._validation.gateRequest("assignMappingRuleToTenant", void 0, envelope);
15957
+ if (envelope.path !== void 0) {
15958
+ const maybePath = await this._validation.gateRequest("assignMappingRuleToTenant", _schemas.zAssignMappingRuleToTenantPath, envelope.path);
15959
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
15960
+ }
15883
15961
  }
15884
15962
  const opts = { client: this._client, signal, throwOnError: false };
15885
15963
  if (envelope.path) opts.path = envelope.path;
@@ -15935,6 +16013,10 @@ var CamundaClient = class {
15935
16013
  const maybeBody = await this._validation.gateRequest("assignProcessInstanceBusinessId", _schemas.zAssignProcessInstanceBusinessIdBody, envelope.body);
15936
16014
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
15937
16015
  }
16016
+ if (envelope.path !== void 0) {
16017
+ const maybePath = await this._validation.gateRequest("assignProcessInstanceBusinessId", _schemas.zAssignProcessInstanceBusinessIdPath, envelope.path);
16018
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16019
+ }
15938
16020
  }
15939
16021
  const opts = { client: this._client, signal, throwOnError: false };
15940
16022
  if (envelope.path) opts.path = envelope.path;
@@ -15986,7 +16068,10 @@ var CamundaClient = class {
15986
16068
  envelope.path = { roleId, clientId };
15987
16069
  if (this._validation.settings.req !== "none") {
15988
16070
  const _schemas = await this._loadSchemas();
15989
- await this._validation.gateRequest("assignRoleToClient", void 0, envelope);
16071
+ if (envelope.path !== void 0) {
16072
+ const maybePath = await this._validation.gateRequest("assignRoleToClient", _schemas.zAssignRoleToClientPath, envelope.path);
16073
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16074
+ }
15990
16075
  }
15991
16076
  const opts = { client: this._client, signal, throwOnError: false };
15992
16077
  if (envelope.path) opts.path = envelope.path;
@@ -16037,7 +16122,10 @@ var CamundaClient = class {
16037
16122
  envelope.path = { roleId, groupId };
16038
16123
  if (this._validation.settings.req !== "none") {
16039
16124
  const _schemas = await this._loadSchemas();
16040
- await this._validation.gateRequest("assignRoleToGroup", void 0, envelope);
16125
+ if (envelope.path !== void 0) {
16126
+ const maybePath = await this._validation.gateRequest("assignRoleToGroup", _schemas.zAssignRoleToGroupPath, envelope.path);
16127
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16128
+ }
16041
16129
  }
16042
16130
  const opts = { client: this._client, signal, throwOnError: false };
16043
16131
  if (envelope.path) opts.path = envelope.path;
@@ -16088,7 +16176,10 @@ var CamundaClient = class {
16088
16176
  envelope.path = { roleId, mappingRuleId };
16089
16177
  if (this._validation.settings.req !== "none") {
16090
16178
  const _schemas = await this._loadSchemas();
16091
- await this._validation.gateRequest("assignRoleToMappingRule", void 0, envelope);
16179
+ if (envelope.path !== void 0) {
16180
+ const maybePath = await this._validation.gateRequest("assignRoleToMappingRule", _schemas.zAssignRoleToMappingRulePath, envelope.path);
16181
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16182
+ }
16092
16183
  }
16093
16184
  const opts = { client: this._client, signal, throwOnError: false };
16094
16185
  if (envelope.path) opts.path = envelope.path;
@@ -16139,7 +16230,10 @@ var CamundaClient = class {
16139
16230
  envelope.path = { tenantId, roleId };
16140
16231
  if (this._validation.settings.req !== "none") {
16141
16232
  const _schemas = await this._loadSchemas();
16142
- await this._validation.gateRequest("assignRoleToTenant", void 0, envelope);
16233
+ if (envelope.path !== void 0) {
16234
+ const maybePath = await this._validation.gateRequest("assignRoleToTenant", _schemas.zAssignRoleToTenantPath, envelope.path);
16235
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16236
+ }
16143
16237
  }
16144
16238
  const opts = { client: this._client, signal, throwOnError: false };
16145
16239
  if (envelope.path) opts.path = envelope.path;
@@ -16190,7 +16284,10 @@ var CamundaClient = class {
16190
16284
  envelope.path = { roleId, username };
16191
16285
  if (this._validation.settings.req !== "none") {
16192
16286
  const _schemas = await this._loadSchemas();
16193
- await this._validation.gateRequest("assignRoleToUser", void 0, envelope);
16287
+ if (envelope.path !== void 0) {
16288
+ const maybePath = await this._validation.gateRequest("assignRoleToUser", _schemas.zAssignRoleToUserPath, envelope.path);
16289
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16290
+ }
16194
16291
  }
16195
16292
  const opts = { client: this._client, signal, throwOnError: false };
16196
16293
  if (envelope.path) opts.path = envelope.path;
@@ -16246,6 +16343,10 @@ var CamundaClient = class {
16246
16343
  const maybeBody = await this._validation.gateRequest("assignUserTask", _schemas.zAssignUserTaskBody, envelope.body);
16247
16344
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16248
16345
  }
16346
+ if (envelope.path !== void 0) {
16347
+ const maybePath = await this._validation.gateRequest("assignUserTask", _schemas.zAssignUserTaskPath, envelope.path);
16348
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16349
+ }
16249
16350
  }
16250
16351
  const opts = { client: this._client, signal, throwOnError: false };
16251
16352
  if (envelope.path) opts.path = envelope.path;
@@ -16297,7 +16398,10 @@ var CamundaClient = class {
16297
16398
  envelope.path = { groupId, username };
16298
16399
  if (this._validation.settings.req !== "none") {
16299
16400
  const _schemas = await this._loadSchemas();
16300
- await this._validation.gateRequest("assignUserToGroup", void 0, envelope);
16401
+ if (envelope.path !== void 0) {
16402
+ const maybePath = await this._validation.gateRequest("assignUserToGroup", _schemas.zAssignUserToGroupPath, envelope.path);
16403
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16404
+ }
16301
16405
  }
16302
16406
  const opts = { client: this._client, signal, throwOnError: false };
16303
16407
  if (envelope.path) opts.path = envelope.path;
@@ -16348,7 +16452,10 @@ var CamundaClient = class {
16348
16452
  envelope.path = { tenantId, username };
16349
16453
  if (this._validation.settings.req !== "none") {
16350
16454
  const _schemas = await this._loadSchemas();
16351
- await this._validation.gateRequest("assignUserToTenant", void 0, envelope);
16455
+ if (envelope.path !== void 0) {
16456
+ const maybePath = await this._validation.gateRequest("assignUserToTenant", _schemas.zAssignUserToTenantPath, envelope.path);
16457
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16458
+ }
16352
16459
  }
16353
16460
  const opts = { client: this._client, signal, throwOnError: false };
16354
16461
  if (envelope.path) opts.path = envelope.path;
@@ -16462,6 +16569,10 @@ var CamundaClient = class {
16462
16569
  const maybeBody = await this._validation.gateRequest("cancelBatchOperation", _schemas.zCancelBatchOperationBody, envelope.body);
16463
16570
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16464
16571
  }
16572
+ if (envelope.path !== void 0) {
16573
+ const maybePath = await this._validation.gateRequest("cancelBatchOperation", _schemas.zCancelBatchOperationPath, envelope.path);
16574
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16575
+ }
16465
16576
  }
16466
16577
  const opts = { client: this._client, signal, throwOnError: false };
16467
16578
  if (envelope.path) opts.path = envelope.path;
@@ -16518,6 +16629,10 @@ var CamundaClient = class {
16518
16629
  const maybeBody = await this._validation.gateRequest("cancelProcessInstance", _schemas.zCancelProcessInstanceBody, envelope.body);
16519
16630
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16520
16631
  }
16632
+ if (envelope.path !== void 0) {
16633
+ const maybePath = await this._validation.gateRequest("cancelProcessInstance", _schemas.zCancelProcessInstancePath, envelope.path);
16634
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16635
+ }
16521
16636
  }
16522
16637
  const opts = { client: this._client, signal, throwOnError: false };
16523
16638
  if (envelope.path) opts.path = envelope.path;
@@ -16623,7 +16738,10 @@ var CamundaClient = class {
16623
16738
  envelope.query = { mode, dryRun };
16624
16739
  if (this._validation.settings.req !== "none") {
16625
16740
  const _schemas = await this._loadSchemas();
16626
- await this._validation.gateRequest("changeClusterMode", void 0, envelope);
16741
+ if (envelope.query !== void 0) {
16742
+ const maybeQuery = await this._validation.gateRequest("changeClusterMode", _schemas.zChangeClusterModeQuery, envelope.query);
16743
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
16744
+ }
16627
16745
  }
16628
16746
  const opts = { client: this._client, signal, throwOnError: false };
16629
16747
  if (envelope.query) opts.query = envelope.query;
@@ -16679,6 +16797,10 @@ var CamundaClient = class {
16679
16797
  const maybeBody = await this._validation.gateRequest("completeJob", _schemas.zCompleteJobBody, envelope.body);
16680
16798
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16681
16799
  }
16800
+ if (envelope.path !== void 0) {
16801
+ const maybePath = await this._validation.gateRequest("completeJob", _schemas.zCompleteJobPath, envelope.path);
16802
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16803
+ }
16682
16804
  }
16683
16805
  const opts = { client: this._client, signal, throwOnError: false };
16684
16806
  if (envelope.path) opts.path = envelope.path;
@@ -16735,6 +16857,10 @@ var CamundaClient = class {
16735
16857
  const maybeBody = await this._validation.gateRequest("completeUserTask", _schemas.zCompleteUserTaskBody, envelope.body);
16736
16858
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16737
16859
  }
16860
+ if (envelope.path !== void 0) {
16861
+ const maybePath = await this._validation.gateRequest("completeUserTask", _schemas.zCompleteUserTaskPath, envelope.path);
16862
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
16863
+ }
16738
16864
  }
16739
16865
  const opts = { client: this._client, signal, throwOnError: false };
16740
16866
  if (envelope.path) opts.path = envelope.path;
@@ -16957,6 +17083,10 @@ var CamundaClient = class {
16957
17083
  const maybeBody = await this._validation.gateRequest("createAgentInstanceHistoryItem", _schemas.zCreateAgentInstanceHistoryItemBody, envelope.body);
16958
17084
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
16959
17085
  }
17086
+ if (envelope.path !== void 0) {
17087
+ const maybePath = await this._validation.gateRequest("createAgentInstanceHistoryItem", _schemas.zCreateAgentInstanceHistoryItemPath, envelope.path);
17088
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
17089
+ }
16960
17090
  }
16961
17091
  const opts = { client: this._client, signal, throwOnError: false };
16962
17092
  if (envelope.path) opts.path = envelope.path;
@@ -17139,6 +17269,10 @@ var CamundaClient = class {
17139
17269
  const maybeBody = await this._validation.gateRequest("createDocument", _schemas.zCreateDocumentBody, envelope.body);
17140
17270
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17141
17271
  }
17272
+ if (envelope.query !== void 0) {
17273
+ const maybeQuery = await this._validation.gateRequest("createDocument", _schemas.zCreateDocumentQuery, envelope.query);
17274
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
17275
+ }
17142
17276
  }
17143
17277
  const opts = { client: this._client, signal, throwOnError: false };
17144
17278
  if (envelope.query) opts.query = envelope.query;
@@ -17196,6 +17330,14 @@ var CamundaClient = class {
17196
17330
  const maybeBody = await this._validation.gateRequest("createDocumentLink", _schemas.zCreateDocumentLinkBody, envelope.body);
17197
17331
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17198
17332
  }
17333
+ if (envelope.path !== void 0) {
17334
+ const maybePath = await this._validation.gateRequest("createDocumentLink", _schemas.zCreateDocumentLinkPath, envelope.path);
17335
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
17336
+ }
17337
+ if (envelope.query !== void 0) {
17338
+ const maybeQuery = await this._validation.gateRequest("createDocumentLink", _schemas.zCreateDocumentLinkQuery, envelope.query);
17339
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
17340
+ }
17199
17341
  }
17200
17342
  const opts = { client: this._client, signal, throwOnError: false };
17201
17343
  if (envelope.path) opts.path = envelope.path;
@@ -17253,6 +17395,10 @@ var CamundaClient = class {
17253
17395
  const maybeBody = await this._validation.gateRequest("createDocuments", _schemas.zCreateDocumentsBody, envelope.body);
17254
17396
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17255
17397
  }
17398
+ if (envelope.query !== void 0) {
17399
+ const maybeQuery = await this._validation.gateRequest("createDocuments", _schemas.zCreateDocumentsQuery, envelope.query);
17400
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
17401
+ }
17256
17402
  }
17257
17403
  const opts = { client: this._client, signal, throwOnError: false };
17258
17404
  if (envelope.query) opts.query = envelope.query;
@@ -17309,6 +17455,10 @@ var CamundaClient = class {
17309
17455
  const maybeBody = await this._validation.gateRequest("createElementInstanceVariables", _schemas.zCreateElementInstanceVariablesBody, envelope.body);
17310
17456
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17311
17457
  }
17458
+ if (envelope.path !== void 0) {
17459
+ const maybePath = await this._validation.gateRequest("createElementInstanceVariables", _schemas.zCreateElementInstanceVariablesPath, envelope.path);
17460
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
17461
+ }
17312
17462
  }
17313
17463
  const opts = { client: this._client, signal, throwOnError: false };
17314
17464
  if (envelope.path) opts.path = envelope.path;
@@ -17747,6 +17897,10 @@ var CamundaClient = class {
17747
17897
  const maybeBody = await this._validation.gateRequest("createTenantClusterVariable", _schemas.zCreateTenantClusterVariableBody, envelope.body);
17748
17898
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17749
17899
  }
17900
+ if (envelope.path !== void 0) {
17901
+ const maybePath = await this._validation.gateRequest("createTenantClusterVariable", _schemas.zCreateTenantClusterVariablePath, envelope.path);
17902
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
17903
+ }
17750
17904
  }
17751
17905
  const opts = { client: this._client, signal, throwOnError: false };
17752
17906
  if (envelope.path) opts.path = envelope.path;
@@ -17852,7 +18006,10 @@ var CamundaClient = class {
17852
18006
  envelope.path = { authorizationKey };
17853
18007
  if (this._validation.settings.req !== "none") {
17854
18008
  const _schemas = await this._loadSchemas();
17855
- await this._validation.gateRequest("deleteAuthorization", void 0, envelope);
18009
+ if (envelope.path !== void 0) {
18010
+ const maybePath = await this._validation.gateRequest("deleteAuthorization", _schemas.zDeleteAuthorizationPath, envelope.path);
18011
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18012
+ }
17856
18013
  }
17857
18014
  const opts = { client: this._client, signal, throwOnError: false };
17858
18015
  if (envelope.path) opts.path = envelope.path;
@@ -17908,6 +18065,10 @@ var CamundaClient = class {
17908
18065
  const maybeBody = await this._validation.gateRequest("deleteDecisionInstance", _schemas.zDeleteDecisionInstanceBody, envelope.body);
17909
18066
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
17910
18067
  }
18068
+ if (envelope.path !== void 0) {
18069
+ const maybePath = await this._validation.gateRequest("deleteDecisionInstance", _schemas.zDeleteDecisionInstancePath, envelope.path);
18070
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18071
+ }
17911
18072
  }
17912
18073
  const opts = { client: this._client, signal, throwOnError: false };
17913
18074
  if (envelope.path) opts.path = envelope.path;
@@ -18014,7 +18175,14 @@ var CamundaClient = class {
18014
18175
  envelope.query = { storeId };
18015
18176
  if (this._validation.settings.req !== "none") {
18016
18177
  const _schemas = await this._loadSchemas();
18017
- await this._validation.gateRequest("deleteDocument", void 0, envelope);
18178
+ if (envelope.path !== void 0) {
18179
+ const maybePath = await this._validation.gateRequest("deleteDocument", _schemas.zDeleteDocumentPath, envelope.path);
18180
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18181
+ }
18182
+ if (envelope.query !== void 0) {
18183
+ const maybeQuery = await this._validation.gateRequest("deleteDocument", _schemas.zDeleteDocumentQuery, envelope.query);
18184
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
18185
+ }
18018
18186
  }
18019
18187
  const opts = { client: this._client, signal, throwOnError: false };
18020
18188
  if (envelope.path) opts.path = envelope.path;
@@ -18066,7 +18234,10 @@ var CamundaClient = class {
18066
18234
  envelope.path = { name };
18067
18235
  if (this._validation.settings.req !== "none") {
18068
18236
  const _schemas = await this._loadSchemas();
18069
- await this._validation.gateRequest("deleteGlobalClusterVariable", void 0, envelope);
18237
+ if (envelope.path !== void 0) {
18238
+ const maybePath = await this._validation.gateRequest("deleteGlobalClusterVariable", _schemas.zDeleteGlobalClusterVariablePath, envelope.path);
18239
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18240
+ }
18070
18241
  }
18071
18242
  const opts = { client: this._client, signal, throwOnError: false };
18072
18243
  if (envelope.path) opts.path = envelope.path;
@@ -18117,7 +18288,10 @@ var CamundaClient = class {
18117
18288
  envelope.path = { id };
18118
18289
  if (this._validation.settings.req !== "none") {
18119
18290
  const _schemas = await this._loadSchemas();
18120
- await this._validation.gateRequest("deleteGlobalTaskListener", void 0, envelope);
18291
+ if (envelope.path !== void 0) {
18292
+ const maybePath = await this._validation.gateRequest("deleteGlobalTaskListener", _schemas.zDeleteGlobalTaskListenerPath, envelope.path);
18293
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18294
+ }
18121
18295
  }
18122
18296
  const opts = { client: this._client, signal, throwOnError: false };
18123
18297
  if (envelope.path) opts.path = envelope.path;
@@ -18168,7 +18342,10 @@ var CamundaClient = class {
18168
18342
  envelope.path = { groupId };
18169
18343
  if (this._validation.settings.req !== "none") {
18170
18344
  const _schemas = await this._loadSchemas();
18171
- await this._validation.gateRequest("deleteGroup", void 0, envelope);
18345
+ if (envelope.path !== void 0) {
18346
+ const maybePath = await this._validation.gateRequest("deleteGroup", _schemas.zDeleteGroupPath, envelope.path);
18347
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18348
+ }
18172
18349
  }
18173
18350
  const opts = { client: this._client, signal, throwOnError: false };
18174
18351
  if (envelope.path) opts.path = envelope.path;
@@ -18219,7 +18396,10 @@ var CamundaClient = class {
18219
18396
  envelope.path = { mappingRuleId };
18220
18397
  if (this._validation.settings.req !== "none") {
18221
18398
  const _schemas = await this._loadSchemas();
18222
- await this._validation.gateRequest("deleteMappingRule", void 0, envelope);
18399
+ if (envelope.path !== void 0) {
18400
+ const maybePath = await this._validation.gateRequest("deleteMappingRule", _schemas.zDeleteMappingRulePath, envelope.path);
18401
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18402
+ }
18223
18403
  }
18224
18404
  const opts = { client: this._client, signal, throwOnError: false };
18225
18405
  if (envelope.path) opts.path = envelope.path;
@@ -18275,6 +18455,10 @@ var CamundaClient = class {
18275
18455
  const maybeBody = await this._validation.gateRequest("deleteProcessInstance", _schemas.zDeleteProcessInstanceBody, envelope.body);
18276
18456
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
18277
18457
  }
18458
+ if (envelope.path !== void 0) {
18459
+ const maybePath = await this._validation.gateRequest("deleteProcessInstance", _schemas.zDeleteProcessInstancePath, envelope.path);
18460
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18461
+ }
18278
18462
  }
18279
18463
  const opts = { client: this._client, signal, throwOnError: false };
18280
18464
  if (envelope.path) opts.path = envelope.path;
@@ -18385,6 +18569,10 @@ var CamundaClient = class {
18385
18569
  const maybeBody = await this._validation.gateRequest("deleteResource", _schemas.zDeleteResourceBody, envelope.body);
18386
18570
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
18387
18571
  }
18572
+ if (envelope.path !== void 0) {
18573
+ const maybePath = await this._validation.gateRequest("deleteResource", _schemas.zDeleteResourcePath, envelope.path);
18574
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18575
+ }
18388
18576
  }
18389
18577
  const opts = { client: this._client, signal, throwOnError: false };
18390
18578
  if (envelope.path) opts.path = envelope.path;
@@ -18436,7 +18624,10 @@ var CamundaClient = class {
18436
18624
  envelope.path = { roleId };
18437
18625
  if (this._validation.settings.req !== "none") {
18438
18626
  const _schemas = await this._loadSchemas();
18439
- await this._validation.gateRequest("deleteRole", void 0, envelope);
18627
+ if (envelope.path !== void 0) {
18628
+ const maybePath = await this._validation.gateRequest("deleteRole", _schemas.zDeleteRolePath, envelope.path);
18629
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18630
+ }
18440
18631
  }
18441
18632
  const opts = { client: this._client, signal, throwOnError: false };
18442
18633
  if (envelope.path) opts.path = envelope.path;
@@ -18487,7 +18678,10 @@ var CamundaClient = class {
18487
18678
  envelope.path = { backupId };
18488
18679
  if (this._validation.settings.req !== "none") {
18489
18680
  const _schemas = await this._loadSchemas();
18490
- await this._validation.gateRequest("deleteRuntimeBackup", void 0, envelope);
18681
+ if (envelope.path !== void 0) {
18682
+ const maybePath = await this._validation.gateRequest("deleteRuntimeBackup", _schemas.zDeleteRuntimeBackupPath, envelope.path);
18683
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18684
+ }
18491
18685
  }
18492
18686
  const opts = { client: this._client, signal, throwOnError: false };
18493
18687
  if (envelope.path) opts.path = envelope.path;
@@ -18581,7 +18775,10 @@ var CamundaClient = class {
18581
18775
  envelope.path = { tenantId };
18582
18776
  if (this._validation.settings.req !== "none") {
18583
18777
  const _schemas = await this._loadSchemas();
18584
- await this._validation.gateRequest("deleteTenant", void 0, envelope);
18778
+ if (envelope.path !== void 0) {
18779
+ const maybePath = await this._validation.gateRequest("deleteTenant", _schemas.zDeleteTenantPath, envelope.path);
18780
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18781
+ }
18585
18782
  }
18586
18783
  const opts = { client: this._client, signal, throwOnError: false };
18587
18784
  if (envelope.path) opts.path = envelope.path;
@@ -18632,7 +18829,10 @@ var CamundaClient = class {
18632
18829
  envelope.path = { tenantId, name };
18633
18830
  if (this._validation.settings.req !== "none") {
18634
18831
  const _schemas = await this._loadSchemas();
18635
- await this._validation.gateRequest("deleteTenantClusterVariable", void 0, envelope);
18832
+ if (envelope.path !== void 0) {
18833
+ const maybePath = await this._validation.gateRequest("deleteTenantClusterVariable", _schemas.zDeleteTenantClusterVariablePath, envelope.path);
18834
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18835
+ }
18636
18836
  }
18637
18837
  const opts = { client: this._client, signal, throwOnError: false };
18638
18838
  if (envelope.path) opts.path = envelope.path;
@@ -18683,7 +18883,10 @@ var CamundaClient = class {
18683
18883
  envelope.path = { username };
18684
18884
  if (this._validation.settings.req !== "none") {
18685
18885
  const _schemas = await this._loadSchemas();
18686
- await this._validation.gateRequest("deleteUser", void 0, envelope);
18886
+ if (envelope.path !== void 0) {
18887
+ const maybePath = await this._validation.gateRequest("deleteUser", _schemas.zDeleteUserPath, envelope.path);
18888
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
18889
+ }
18687
18890
  }
18688
18891
  const opts = { client: this._client, signal, throwOnError: false };
18689
18892
  if (envelope.path) opts.path = envelope.path;
@@ -18913,6 +19116,10 @@ var CamundaClient = class {
18913
19116
  const maybeBody = await this._validation.gateRequest("failJob", _schemas.zFailJobBody, envelope.body);
18914
19117
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
18915
19118
  }
19119
+ if (envelope.path !== void 0) {
19120
+ const maybePath = await this._validation.gateRequest("failJob", _schemas.zFailJobPath, envelope.path);
19121
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19122
+ }
18916
19123
  }
18917
19124
  const opts = { client: this._client, signal, throwOnError: false };
18918
19125
  if (envelope.path) opts.path = envelope.path;
@@ -18966,7 +19173,10 @@ var CamundaClient = class {
18966
19173
  envelope.path = { agentInstanceKey };
18967
19174
  if (this._validation.settings.req !== "none") {
18968
19175
  const _schemas = await this._loadSchemas();
18969
- await this._validation.gateRequest("getAgentInstance", void 0, envelope);
19176
+ if (envelope.path !== void 0) {
19177
+ const maybePath = await this._validation.gateRequest("getAgentInstance", _schemas.zGetAgentInstancePath, envelope.path);
19178
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19179
+ }
18970
19180
  }
18971
19181
  const opts = { client: this._client, signal, throwOnError: false };
18972
19182
  if (envelope.path) opts.path = envelope.path;
@@ -19021,7 +19231,10 @@ var CamundaClient = class {
19021
19231
  envelope.path = { auditLogKey };
19022
19232
  if (this._validation.settings.req !== "none") {
19023
19233
  const _schemas = await this._loadSchemas();
19024
- await this._validation.gateRequest("getAuditLog", void 0, envelope);
19234
+ if (envelope.path !== void 0) {
19235
+ const maybePath = await this._validation.gateRequest("getAuditLog", _schemas.zGetAuditLogPath, envelope.path);
19236
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19237
+ }
19025
19238
  }
19026
19239
  const opts = { client: this._client, signal, throwOnError: false };
19027
19240
  if (envelope.path) opts.path = envelope.path;
@@ -19119,7 +19332,10 @@ var CamundaClient = class {
19119
19332
  envelope.path = { authorizationKey };
19120
19333
  if (this._validation.settings.req !== "none") {
19121
19334
  const _schemas = await this._loadSchemas();
19122
- await this._validation.gateRequest("getAuthorization", void 0, envelope);
19335
+ if (envelope.path !== void 0) {
19336
+ const maybePath = await this._validation.gateRequest("getAuthorization", _schemas.zGetAuthorizationPath, envelope.path);
19337
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19338
+ }
19123
19339
  }
19124
19340
  const opts = { client: this._client, signal, throwOnError: false };
19125
19341
  if (envelope.path) opts.path = envelope.path;
@@ -19174,7 +19390,10 @@ var CamundaClient = class {
19174
19390
  envelope.path = { batchOperationKey };
19175
19391
  if (this._validation.settings.req !== "none") {
19176
19392
  const _schemas = await this._loadSchemas();
19177
- await this._validation.gateRequest("getBatchOperation", void 0, envelope);
19393
+ if (envelope.path !== void 0) {
19394
+ const maybePath = await this._validation.gateRequest("getBatchOperation", _schemas.zGetBatchOperationPath, envelope.path);
19395
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19396
+ }
19178
19397
  }
19179
19398
  const opts = { client: this._client, signal, throwOnError: false };
19180
19399
  if (envelope.path) opts.path = envelope.path;
@@ -19272,7 +19491,10 @@ var CamundaClient = class {
19272
19491
  envelope.path = { decisionDefinitionKey };
19273
19492
  if (this._validation.settings.req !== "none") {
19274
19493
  const _schemas = await this._loadSchemas();
19275
- await this._validation.gateRequest("getDecisionDefinition", void 0, envelope);
19494
+ if (envelope.path !== void 0) {
19495
+ const maybePath = await this._validation.gateRequest("getDecisionDefinition", _schemas.zGetDecisionDefinitionPath, envelope.path);
19496
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19497
+ }
19276
19498
  }
19277
19499
  const opts = { client: this._client, signal, throwOnError: false };
19278
19500
  if (envelope.path) opts.path = envelope.path;
@@ -19327,7 +19549,10 @@ var CamundaClient = class {
19327
19549
  envelope.path = { decisionDefinitionKey };
19328
19550
  if (this._validation.settings.req !== "none") {
19329
19551
  const _schemas = await this._loadSchemas();
19330
- await this._validation.gateRequest("getDecisionDefinitionXML", void 0, envelope);
19552
+ if (envelope.path !== void 0) {
19553
+ const maybePath = await this._validation.gateRequest("getDecisionDefinitionXML", _schemas.zGetDecisionDefinitionXmlPath, envelope.path);
19554
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19555
+ }
19331
19556
  }
19332
19557
  const opts = { client: this._client, signal, throwOnError: false };
19333
19558
  if (envelope.path) opts.path = envelope.path;
@@ -19382,7 +19607,10 @@ var CamundaClient = class {
19382
19607
  envelope.path = { decisionEvaluationInstanceKey };
19383
19608
  if (this._validation.settings.req !== "none") {
19384
19609
  const _schemas = await this._loadSchemas();
19385
- await this._validation.gateRequest("getDecisionInstance", void 0, envelope);
19610
+ if (envelope.path !== void 0) {
19611
+ const maybePath = await this._validation.gateRequest("getDecisionInstance", _schemas.zGetDecisionInstancePath, envelope.path);
19612
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19613
+ }
19386
19614
  }
19387
19615
  const opts = { client: this._client, signal, throwOnError: false };
19388
19616
  if (envelope.path) opts.path = envelope.path;
@@ -19437,7 +19665,10 @@ var CamundaClient = class {
19437
19665
  envelope.path = { decisionRequirementsKey };
19438
19666
  if (this._validation.settings.req !== "none") {
19439
19667
  const _schemas = await this._loadSchemas();
19440
- await this._validation.gateRequest("getDecisionRequirements", void 0, envelope);
19668
+ if (envelope.path !== void 0) {
19669
+ const maybePath = await this._validation.gateRequest("getDecisionRequirements", _schemas.zGetDecisionRequirementsPath, envelope.path);
19670
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19671
+ }
19441
19672
  }
19442
19673
  const opts = { client: this._client, signal, throwOnError: false };
19443
19674
  if (envelope.path) opts.path = envelope.path;
@@ -19492,7 +19723,10 @@ var CamundaClient = class {
19492
19723
  envelope.path = { decisionRequirementsKey };
19493
19724
  if (this._validation.settings.req !== "none") {
19494
19725
  const _schemas = await this._loadSchemas();
19495
- await this._validation.gateRequest("getDecisionRequirementsXML", void 0, envelope);
19726
+ if (envelope.path !== void 0) {
19727
+ const maybePath = await this._validation.gateRequest("getDecisionRequirementsXML", _schemas.zGetDecisionRequirementsXmlPath, envelope.path);
19728
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19729
+ }
19496
19730
  }
19497
19731
  const opts = { client: this._client, signal, throwOnError: false };
19498
19732
  if (envelope.path) opts.path = envelope.path;
@@ -19546,7 +19780,14 @@ var CamundaClient = class {
19546
19780
  envelope.query = { storeId, contentHash };
19547
19781
  if (this._validation.settings.req !== "none") {
19548
19782
  const _schemas = await this._loadSchemas();
19549
- await this._validation.gateRequest("getDocument", void 0, envelope);
19783
+ if (envelope.path !== void 0) {
19784
+ const maybePath = await this._validation.gateRequest("getDocument", _schemas.zGetDocumentPath, envelope.path);
19785
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19786
+ }
19787
+ if (envelope.query !== void 0) {
19788
+ const maybeQuery = await this._validation.gateRequest("getDocument", _schemas.zGetDocumentQuery, envelope.query);
19789
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
19790
+ }
19550
19791
  }
19551
19792
  const opts = { client: this._client, signal, throwOnError: false };
19552
19793
  if (envelope.path) opts.path = envelope.path;
@@ -19600,7 +19841,10 @@ var CamundaClient = class {
19600
19841
  envelope.path = { elementInstanceKey };
19601
19842
  if (this._validation.settings.req !== "none") {
19602
19843
  const _schemas = await this._loadSchemas();
19603
- await this._validation.gateRequest("getElementInstance", void 0, envelope);
19844
+ if (envelope.path !== void 0) {
19845
+ const maybePath = await this._validation.gateRequest("getElementInstance", _schemas.zGetElementInstancePath, envelope.path);
19846
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19847
+ }
19604
19848
  }
19605
19849
  const opts = { client: this._client, signal, throwOnError: false };
19606
19850
  if (envelope.path) opts.path = envelope.path;
@@ -19698,7 +19942,10 @@ var CamundaClient = class {
19698
19942
  envelope.path = { formKey };
19699
19943
  if (this._validation.settings.req !== "none") {
19700
19944
  const _schemas = await this._loadSchemas();
19701
- await this._validation.gateRequest("getFormByKey", void 0, envelope);
19945
+ if (envelope.path !== void 0) {
19946
+ const maybePath = await this._validation.gateRequest("getFormByKey", _schemas.zGetFormByKeyPath, envelope.path);
19947
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
19948
+ }
19702
19949
  }
19703
19950
  const opts = { client: this._client, signal, throwOnError: false };
19704
19951
  if (envelope.path) opts.path = envelope.path;
@@ -19753,7 +20000,10 @@ var CamundaClient = class {
19753
20000
  envelope.path = { name };
19754
20001
  if (this._validation.settings.req !== "none") {
19755
20002
  const _schemas = await this._loadSchemas();
19756
- await this._validation.gateRequest("getGlobalClusterVariable", void 0, envelope);
20003
+ if (envelope.path !== void 0) {
20004
+ const maybePath = await this._validation.gateRequest("getGlobalClusterVariable", _schemas.zGetGlobalClusterVariablePath, envelope.path);
20005
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20006
+ }
19757
20007
  }
19758
20008
  const opts = { client: this._client, signal, throwOnError: false };
19759
20009
  if (envelope.path) opts.path = envelope.path;
@@ -19808,7 +20058,10 @@ var CamundaClient = class {
19808
20058
  envelope.query = { from, to, jobType };
19809
20059
  if (this._validation.settings.req !== "none") {
19810
20060
  const _schemas = await this._loadSchemas();
19811
- await this._validation.gateRequest("getGlobalJobStatistics", void 0, envelope);
20061
+ if (envelope.query !== void 0) {
20062
+ const maybeQuery = await this._validation.gateRequest("getGlobalJobStatistics", _schemas.zGetGlobalJobStatisticsQuery, envelope.query);
20063
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
20064
+ }
19812
20065
  }
19813
20066
  const opts = { client: this._client, signal, throwOnError: false };
19814
20067
  if (envelope.query) opts.query = envelope.query;
@@ -19863,7 +20116,10 @@ var CamundaClient = class {
19863
20116
  envelope.path = { id };
19864
20117
  if (this._validation.settings.req !== "none") {
19865
20118
  const _schemas = await this._loadSchemas();
19866
- await this._validation.gateRequest("getGlobalTaskListener", void 0, envelope);
20119
+ if (envelope.path !== void 0) {
20120
+ const maybePath = await this._validation.gateRequest("getGlobalTaskListener", _schemas.zGetGlobalTaskListenerPath, envelope.path);
20121
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20122
+ }
19867
20123
  }
19868
20124
  const opts = { client: this._client, signal, throwOnError: false };
19869
20125
  if (envelope.path) opts.path = envelope.path;
@@ -19918,7 +20174,10 @@ var CamundaClient = class {
19918
20174
  envelope.path = { groupId };
19919
20175
  if (this._validation.settings.req !== "none") {
19920
20176
  const _schemas = await this._loadSchemas();
19921
- await this._validation.gateRequest("getGroup", void 0, envelope);
20177
+ if (envelope.path !== void 0) {
20178
+ const maybePath = await this._validation.gateRequest("getGroup", _schemas.zGetGroupPath, envelope.path);
20179
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20180
+ }
19922
20181
  }
19923
20182
  const opts = { client: this._client, signal, throwOnError: false };
19924
20183
  if (envelope.path) opts.path = envelope.path;
@@ -19973,7 +20232,10 @@ var CamundaClient = class {
19973
20232
  envelope.path = { incidentKey };
19974
20233
  if (this._validation.settings.req !== "none") {
19975
20234
  const _schemas = await this._loadSchemas();
19976
- await this._validation.gateRequest("getIncident", void 0, envelope);
20235
+ if (envelope.path !== void 0) {
20236
+ const maybePath = await this._validation.gateRequest("getIncident", _schemas.zGetIncidentPath, envelope.path);
20237
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20238
+ }
19977
20239
  }
19978
20240
  const opts = { client: this._client, signal, throwOnError: false };
19979
20241
  if (envelope.path) opts.path = envelope.path;
@@ -20303,7 +20565,10 @@ var CamundaClient = class {
20303
20565
  envelope.path = { mappingRuleId };
20304
20566
  if (this._validation.settings.req !== "none") {
20305
20567
  const _schemas = await this._loadSchemas();
20306
- await this._validation.gateRequest("getMappingRule", void 0, envelope);
20568
+ if (envelope.path !== void 0) {
20569
+ const maybePath = await this._validation.gateRequest("getMappingRule", _schemas.zGetMappingRulePath, envelope.path);
20570
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20571
+ }
20307
20572
  }
20308
20573
  const opts = { client: this._client, signal, throwOnError: false };
20309
20574
  if (envelope.path) opts.path = envelope.path;
@@ -20358,7 +20623,10 @@ var CamundaClient = class {
20358
20623
  envelope.path = { processDefinitionKey };
20359
20624
  if (this._validation.settings.req !== "none") {
20360
20625
  const _schemas = await this._loadSchemas();
20361
- await this._validation.gateRequest("getProcessDefinition", void 0, envelope);
20626
+ if (envelope.path !== void 0) {
20627
+ const maybePath = await this._validation.gateRequest("getProcessDefinition", _schemas.zGetProcessDefinitionPath, envelope.path);
20628
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20629
+ }
20362
20630
  }
20363
20631
  const opts = { client: this._client, signal, throwOnError: false };
20364
20632
  if (envelope.path) opts.path = envelope.path;
@@ -20592,6 +20860,10 @@ var CamundaClient = class {
20592
20860
  const maybeBody = await this._validation.gateRequest("getProcessDefinitionStatistics", _schemas.zGetProcessDefinitionStatisticsBody, envelope.body);
20593
20861
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
20594
20862
  }
20863
+ if (envelope.path !== void 0) {
20864
+ const maybePath = await this._validation.gateRequest("getProcessDefinitionStatistics", _schemas.zGetProcessDefinitionStatisticsPath, envelope.path);
20865
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20866
+ }
20595
20867
  }
20596
20868
  const opts = { client: this._client, signal, throwOnError: false };
20597
20869
  if (envelope.path) opts.path = envelope.path;
@@ -20647,7 +20919,10 @@ var CamundaClient = class {
20647
20919
  envelope.path = { processDefinitionKey };
20648
20920
  if (this._validation.settings.req !== "none") {
20649
20921
  const _schemas = await this._loadSchemas();
20650
- await this._validation.gateRequest("getProcessDefinitionXML", void 0, envelope);
20922
+ if (envelope.path !== void 0) {
20923
+ const maybePath = await this._validation.gateRequest("getProcessDefinitionXML", _schemas.zGetProcessDefinitionXmlPath, envelope.path);
20924
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20925
+ }
20651
20926
  }
20652
20927
  const opts = { client: this._client, signal, throwOnError: false };
20653
20928
  if (envelope.path) opts.path = envelope.path;
@@ -20702,7 +20977,10 @@ var CamundaClient = class {
20702
20977
  envelope.path = { processInstanceKey };
20703
20978
  if (this._validation.settings.req !== "none") {
20704
20979
  const _schemas = await this._loadSchemas();
20705
- await this._validation.gateRequest("getProcessInstance", void 0, envelope);
20980
+ if (envelope.path !== void 0) {
20981
+ const maybePath = await this._validation.gateRequest("getProcessInstance", _schemas.zGetProcessInstancePath, envelope.path);
20982
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
20983
+ }
20706
20984
  }
20707
20985
  const opts = { client: this._client, signal, throwOnError: false };
20708
20986
  if (envelope.path) opts.path = envelope.path;
@@ -20757,7 +21035,10 @@ var CamundaClient = class {
20757
21035
  envelope.path = { processInstanceKey };
20758
21036
  if (this._validation.settings.req !== "none") {
20759
21037
  const _schemas = await this._loadSchemas();
20760
- await this._validation.gateRequest("getProcessInstanceCallHierarchy", void 0, envelope);
21038
+ if (envelope.path !== void 0) {
21039
+ const maybePath = await this._validation.gateRequest("getProcessInstanceCallHierarchy", _schemas.zGetProcessInstanceCallHierarchyPath, envelope.path);
21040
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21041
+ }
20761
21042
  }
20762
21043
  const opts = { client: this._client, signal, throwOnError: false };
20763
21044
  if (envelope.path) opts.path = envelope.path;
@@ -20812,7 +21093,10 @@ var CamundaClient = class {
20812
21093
  envelope.path = { processInstanceKey };
20813
21094
  if (this._validation.settings.req !== "none") {
20814
21095
  const _schemas = await this._loadSchemas();
20815
- await this._validation.gateRequest("getProcessInstanceSequenceFlows", void 0, envelope);
21096
+ if (envelope.path !== void 0) {
21097
+ const maybePath = await this._validation.gateRequest("getProcessInstanceSequenceFlows", _schemas.zGetProcessInstanceSequenceFlowsPath, envelope.path);
21098
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21099
+ }
20816
21100
  }
20817
21101
  const opts = { client: this._client, signal, throwOnError: false };
20818
21102
  if (envelope.path) opts.path = envelope.path;
@@ -20867,7 +21151,10 @@ var CamundaClient = class {
20867
21151
  envelope.path = { processInstanceKey };
20868
21152
  if (this._validation.settings.req !== "none") {
20869
21153
  const _schemas = await this._loadSchemas();
20870
- await this._validation.gateRequest("getProcessInstanceStatistics", void 0, envelope);
21154
+ if (envelope.path !== void 0) {
21155
+ const maybePath = await this._validation.gateRequest("getProcessInstanceStatistics", _schemas.zGetProcessInstanceStatisticsPath, envelope.path);
21156
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21157
+ }
20871
21158
  }
20872
21159
  const opts = { client: this._client, signal, throwOnError: false };
20873
21160
  if (envelope.path) opts.path = envelope.path;
@@ -21038,7 +21325,10 @@ var CamundaClient = class {
21038
21325
  envelope.path = { processInstanceKey };
21039
21326
  if (this._validation.settings.req !== "none") {
21040
21327
  const _schemas = await this._loadSchemas();
21041
- await this._validation.gateRequest("getProcessInstanceWaitStateStatistics", void 0, envelope);
21328
+ if (envelope.path !== void 0) {
21329
+ const maybePath = await this._validation.gateRequest("getProcessInstanceWaitStateStatistics", _schemas.zGetProcessInstanceWaitStateStatisticsPath, envelope.path);
21330
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21331
+ }
21042
21332
  }
21043
21333
  const opts = { client: this._client, signal, throwOnError: false };
21044
21334
  if (envelope.path) opts.path = envelope.path;
@@ -21093,7 +21383,10 @@ var CamundaClient = class {
21093
21383
  envelope.path = { resourceKey };
21094
21384
  if (this._validation.settings.req !== "none") {
21095
21385
  const _schemas = await this._loadSchemas();
21096
- await this._validation.gateRequest("getResource", void 0, envelope);
21386
+ if (envelope.path !== void 0) {
21387
+ const maybePath = await this._validation.gateRequest("getResource", _schemas.zGetResourcePath, envelope.path);
21388
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21389
+ }
21097
21390
  }
21098
21391
  const opts = { client: this._client, signal, throwOnError: false };
21099
21392
  if (envelope.path) opts.path = envelope.path;
@@ -21148,7 +21441,10 @@ var CamundaClient = class {
21148
21441
  envelope.path = { resourceKey };
21149
21442
  if (this._validation.settings.req !== "none") {
21150
21443
  const _schemas = await this._loadSchemas();
21151
- await this._validation.gateRequest("getResourceContent", void 0, envelope);
21444
+ if (envelope.path !== void 0) {
21445
+ const maybePath = await this._validation.gateRequest("getResourceContent", _schemas.zGetResourceContentPath, envelope.path);
21446
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21447
+ }
21152
21448
  }
21153
21449
  const opts = { client: this._client, signal, throwOnError: false };
21154
21450
  if (envelope.path) opts.path = envelope.path;
@@ -21203,7 +21499,10 @@ var CamundaClient = class {
21203
21499
  envelope.path = { resourceKey };
21204
21500
  if (this._validation.settings.req !== "none") {
21205
21501
  const _schemas = await this._loadSchemas();
21206
- await this._validation.gateRequest("getResourceContentBinary", void 0, envelope);
21502
+ if (envelope.path !== void 0) {
21503
+ const maybePath = await this._validation.gateRequest("getResourceContentBinary", _schemas.zGetResourceContentBinaryPath, envelope.path);
21504
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21505
+ }
21207
21506
  }
21208
21507
  const opts = { client: this._client, signal, throwOnError: false };
21209
21508
  if (envelope.path) opts.path = envelope.path;
@@ -21301,7 +21600,10 @@ var CamundaClient = class {
21301
21600
  envelope.path = { roleId };
21302
21601
  if (this._validation.settings.req !== "none") {
21303
21602
  const _schemas = await this._loadSchemas();
21304
- await this._validation.gateRequest("getRole", void 0, envelope);
21603
+ if (envelope.path !== void 0) {
21604
+ const maybePath = await this._validation.gateRequest("getRole", _schemas.zGetRolePath, envelope.path);
21605
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21606
+ }
21305
21607
  }
21306
21608
  const opts = { client: this._client, signal, throwOnError: false };
21307
21609
  if (envelope.path) opts.path = envelope.path;
@@ -21354,7 +21656,10 @@ var CamundaClient = class {
21354
21656
  envelope.path = { backupId };
21355
21657
  if (this._validation.settings.req !== "none") {
21356
21658
  const _schemas = await this._loadSchemas();
21357
- await this._validation.gateRequest("getRuntimeBackup", void 0, envelope);
21659
+ if (envelope.path !== void 0) {
21660
+ const maybePath = await this._validation.gateRequest("getRuntimeBackup", _schemas.zGetRuntimeBackupPath, envelope.path);
21661
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21662
+ }
21358
21663
  }
21359
21664
  const opts = { client: this._client, signal, throwOnError: false };
21360
21665
  if (envelope.path) opts.path = envelope.path;
@@ -21450,7 +21755,10 @@ var CamundaClient = class {
21450
21755
  envelope.path = { processDefinitionKey };
21451
21756
  if (this._validation.settings.req !== "none") {
21452
21757
  const _schemas = await this._loadSchemas();
21453
- await this._validation.gateRequest("getStartProcessForm", void 0, envelope);
21758
+ if (envelope.path !== void 0) {
21759
+ const maybePath = await this._validation.gateRequest("getStartProcessForm", _schemas.zGetStartProcessFormPath, envelope.path);
21760
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21761
+ }
21454
21762
  }
21455
21763
  const opts = { client: this._client, signal, throwOnError: false };
21456
21764
  if (envelope.path) opts.path = envelope.path;
@@ -21591,7 +21899,10 @@ var CamundaClient = class {
21591
21899
  envelope.path = { tenantId };
21592
21900
  if (this._validation.settings.req !== "none") {
21593
21901
  const _schemas = await this._loadSchemas();
21594
- await this._validation.gateRequest("getTenant", void 0, envelope);
21902
+ if (envelope.path !== void 0) {
21903
+ const maybePath = await this._validation.gateRequest("getTenant", _schemas.zGetTenantPath, envelope.path);
21904
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21905
+ }
21595
21906
  }
21596
21907
  const opts = { client: this._client, signal, throwOnError: false };
21597
21908
  if (envelope.path) opts.path = envelope.path;
@@ -21646,7 +21957,10 @@ var CamundaClient = class {
21646
21957
  envelope.path = { tenantId, name };
21647
21958
  if (this._validation.settings.req !== "none") {
21648
21959
  const _schemas = await this._loadSchemas();
21649
- await this._validation.gateRequest("getTenantClusterVariable", void 0, envelope);
21960
+ if (envelope.path !== void 0) {
21961
+ const maybePath = await this._validation.gateRequest("getTenantClusterVariable", _schemas.zGetTenantClusterVariablePath, envelope.path);
21962
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
21963
+ }
21650
21964
  }
21651
21965
  const opts = { client: this._client, signal, throwOnError: false };
21652
21966
  if (envelope.path) opts.path = envelope.path;
@@ -21744,7 +22058,10 @@ var CamundaClient = class {
21744
22058
  envelope.query = { startTime, endTime, tenantId, withTenants };
21745
22059
  if (this._validation.settings.req !== "none") {
21746
22060
  const _schemas = await this._loadSchemas();
21747
- await this._validation.gateRequest("getUsageMetrics", void 0, envelope);
22061
+ if (envelope.query !== void 0) {
22062
+ const maybeQuery = await this._validation.gateRequest("getUsageMetrics", _schemas.zGetUsageMetricsQuery, envelope.query);
22063
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
22064
+ }
21748
22065
  }
21749
22066
  const opts = { client: this._client, signal, throwOnError: false };
21750
22067
  if (envelope.query) opts.query = envelope.query;
@@ -21799,7 +22116,10 @@ var CamundaClient = class {
21799
22116
  envelope.path = { username };
21800
22117
  if (this._validation.settings.req !== "none") {
21801
22118
  const _schemas = await this._loadSchemas();
21802
- await this._validation.gateRequest("getUser", void 0, envelope);
22119
+ if (envelope.path !== void 0) {
22120
+ const maybePath = await this._validation.gateRequest("getUser", _schemas.zGetUserPath, envelope.path);
22121
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22122
+ }
21803
22123
  }
21804
22124
  const opts = { client: this._client, signal, throwOnError: false };
21805
22125
  if (envelope.path) opts.path = envelope.path;
@@ -21854,7 +22174,10 @@ var CamundaClient = class {
21854
22174
  envelope.path = { userTaskKey };
21855
22175
  if (this._validation.settings.req !== "none") {
21856
22176
  const _schemas = await this._loadSchemas();
21857
- await this._validation.gateRequest("getUserTask", void 0, envelope);
22177
+ if (envelope.path !== void 0) {
22178
+ const maybePath = await this._validation.gateRequest("getUserTask", _schemas.zGetUserTaskPath, envelope.path);
22179
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22180
+ }
21858
22181
  }
21859
22182
  const opts = { client: this._client, signal, throwOnError: false };
21860
22183
  if (envelope.path) opts.path = envelope.path;
@@ -21909,7 +22232,10 @@ var CamundaClient = class {
21909
22232
  envelope.path = { userTaskKey };
21910
22233
  if (this._validation.settings.req !== "none") {
21911
22234
  const _schemas = await this._loadSchemas();
21912
- await this._validation.gateRequest("getUserTaskForm", void 0, envelope);
22235
+ if (envelope.path !== void 0) {
22236
+ const maybePath = await this._validation.gateRequest("getUserTaskForm", _schemas.zGetUserTaskFormPath, envelope.path);
22237
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22238
+ }
21913
22239
  }
21914
22240
  const opts = { client: this._client, signal, throwOnError: false };
21915
22241
  if (envelope.path) opts.path = envelope.path;
@@ -21964,7 +22290,10 @@ var CamundaClient = class {
21964
22290
  envelope.path = { variableKey };
21965
22291
  if (this._validation.settings.req !== "none") {
21966
22292
  const _schemas = await this._loadSchemas();
21967
- await this._validation.gateRequest("getVariable", void 0, envelope);
22293
+ if (envelope.path !== void 0) {
22294
+ const maybePath = await this._validation.gateRequest("getVariable", _schemas.zGetVariablePath, envelope.path);
22295
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22296
+ }
21968
22297
  }
21969
22298
  const opts = { client: this._client, signal, throwOnError: false };
21970
22299
  if (envelope.path) opts.path = envelope.path;
@@ -22017,7 +22346,10 @@ var CamundaClient = class {
22017
22346
  envelope.query = { prefix };
22018
22347
  if (this._validation.settings.req !== "none") {
22019
22348
  const _schemas = await this._loadSchemas();
22020
- await this._validation.gateRequest("listRuntimeBackups", void 0, envelope);
22349
+ if (envelope.query !== void 0) {
22350
+ const maybeQuery = await this._validation.gateRequest("listRuntimeBackups", _schemas.zListRuntimeBackupsQuery, envelope.query);
22351
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
22352
+ }
22021
22353
  }
22022
22354
  const opts = { client: this._client, signal, throwOnError: false };
22023
22355
  if (envelope.query) opts.query = envelope.query;
@@ -22127,6 +22459,10 @@ var CamundaClient = class {
22127
22459
  const maybeBody = await this._validation.gateRequest("migrateProcessInstance", _schemas.zMigrateProcessInstanceBody, envelope.body);
22128
22460
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
22129
22461
  }
22462
+ if (envelope.path !== void 0) {
22463
+ const maybePath = await this._validation.gateRequest("migrateProcessInstance", _schemas.zMigrateProcessInstancePath, envelope.path);
22464
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22465
+ }
22130
22466
  }
22131
22467
  const opts = { client: this._client, signal, throwOnError: false };
22132
22468
  if (envelope.path) opts.path = envelope.path;
@@ -22237,6 +22573,10 @@ var CamundaClient = class {
22237
22573
  const maybeBody = await this._validation.gateRequest("modifyProcessInstance", _schemas.zModifyProcessInstanceBody, envelope.body);
22238
22574
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
22239
22575
  }
22576
+ if (envelope.path !== void 0) {
22577
+ const maybePath = await this._validation.gateRequest("modifyProcessInstance", _schemas.zModifyProcessInstancePath, envelope.path);
22578
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22579
+ }
22240
22580
  }
22241
22581
  const opts = { client: this._client, signal, throwOnError: false };
22242
22582
  if (envelope.path) opts.path = envelope.path;
@@ -22342,7 +22682,10 @@ var CamundaClient = class {
22342
22682
  envelope.query = { soft };
22343
22683
  if (this._validation.settings.req !== "none") {
22344
22684
  const _schemas = await this._loadSchemas();
22345
- await this._validation.gateRequest("pauseExporting", void 0, envelope);
22685
+ if (envelope.query !== void 0) {
22686
+ const maybeQuery = await this._validation.gateRequest("pauseExporting", _schemas.zPauseExportingQuery, envelope.query);
22687
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
22688
+ }
22346
22689
  }
22347
22690
  const opts = { client: this._client, signal, throwOnError: false };
22348
22691
  if (envelope.query) opts.query = envelope.query;
@@ -22553,6 +22896,10 @@ var CamundaClient = class {
22553
22896
  const maybeBody = await this._validation.gateRequest("resolveIncident", _schemas.zResolveIncidentBody, envelope.body);
22554
22897
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
22555
22898
  }
22899
+ if (envelope.path !== void 0) {
22900
+ const maybePath = await this._validation.gateRequest("resolveIncident", _schemas.zResolveIncidentPath, envelope.path);
22901
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
22902
+ }
22556
22903
  }
22557
22904
  const opts = { client: this._client, signal, throwOnError: false };
22558
22905
  if (envelope.path) opts.path = envelope.path;
@@ -22658,7 +23005,10 @@ var CamundaClient = class {
22658
23005
  envelope.path = { processInstanceKey };
22659
23006
  if (this._validation.settings.req !== "none") {
22660
23007
  const _schemas = await this._loadSchemas();
22661
- await this._validation.gateRequest("resolveProcessInstanceIncidents", void 0, envelope);
23008
+ if (envelope.path !== void 0) {
23009
+ const maybePath = await this._validation.gateRequest("resolveProcessInstanceIncidents", _schemas.zResolveProcessInstanceIncidentsPath, envelope.path);
23010
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23011
+ }
22662
23012
  }
22663
23013
  const opts = { client: this._client, signal, throwOnError: false };
22664
23014
  if (envelope.path) opts.path = envelope.path;
@@ -22822,6 +23172,10 @@ var CamundaClient = class {
22822
23172
  const maybeBody = await this._validation.gateRequest("resumeBatchOperation", _schemas.zResumeBatchOperationBody, envelope.body);
22823
23173
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
22824
23174
  }
23175
+ if (envelope.path !== void 0) {
23176
+ const maybePath = await this._validation.gateRequest("resumeBatchOperation", _schemas.zResumeBatchOperationPath, envelope.path);
23177
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23178
+ }
22825
23179
  }
22826
23180
  const opts = { client: this._client, signal, throwOnError: false };
22827
23181
  if (envelope.path) opts.path = envelope.path;
@@ -22921,6 +23275,10 @@ var CamundaClient = class {
22921
23275
  const maybeBody = await this._validation.gateRequest("resumeProcessInstance", _schemas.zResumeProcessInstanceBody, envelope.body);
22922
23276
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
22923
23277
  }
23278
+ if (envelope.path !== void 0) {
23279
+ const maybePath = await this._validation.gateRequest("resumeProcessInstance", _schemas.zResumeProcessInstancePath, envelope.path);
23280
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23281
+ }
22924
23282
  }
22925
23283
  const opts = { client: this._client, signal, throwOnError: false };
22926
23284
  if (envelope.path) opts.path = envelope.path;
@@ -23033,6 +23391,10 @@ var CamundaClient = class {
23033
23391
  const maybeBody = await this._validation.gateRequest("searchAgentInstanceHistory", _schemas.zSearchAgentInstanceHistoryBody, envelope.body);
23034
23392
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23035
23393
  }
23394
+ if (envelope.path !== void 0) {
23395
+ const maybePath = await this._validation.gateRequest("searchAgentInstanceHistory", _schemas.zSearchAgentInstanceHistoryPath, envelope.path);
23396
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23397
+ }
23036
23398
  }
23037
23399
  const opts = { client: this._client, signal, throwOnError: false };
23038
23400
  if (envelope.path) opts.path = envelope.path;
@@ -23383,6 +23745,10 @@ var CamundaClient = class {
23383
23745
  const maybeBody = await this._validation.gateRequest("searchClientsForGroup", _schemas.zSearchClientsForGroupBody, envelope.body);
23384
23746
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23385
23747
  }
23748
+ if (envelope.path !== void 0) {
23749
+ const maybePath = await this._validation.gateRequest("searchClientsForGroup", _schemas.zSearchClientsForGroupPath, envelope.path);
23750
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23751
+ }
23386
23752
  }
23387
23753
  const opts = { client: this._client, signal, throwOnError: false };
23388
23754
  if (envelope.path) opts.path = envelope.path;
@@ -23443,6 +23809,10 @@ var CamundaClient = class {
23443
23809
  const maybeBody = await this._validation.gateRequest("searchClientsForRole", _schemas.zSearchClientsForRoleBody, envelope.body);
23444
23810
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23445
23811
  }
23812
+ if (envelope.path !== void 0) {
23813
+ const maybePath = await this._validation.gateRequest("searchClientsForRole", _schemas.zSearchClientsForRolePath, envelope.path);
23814
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23815
+ }
23446
23816
  }
23447
23817
  const opts = { client: this._client, signal, throwOnError: false };
23448
23818
  if (envelope.path) opts.path = envelope.path;
@@ -23503,6 +23873,10 @@ var CamundaClient = class {
23503
23873
  const maybeBody = await this._validation.gateRequest("searchClientsForTenant", _schemas.zSearchClientsForTenantBody, envelope.body);
23504
23874
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23505
23875
  }
23876
+ if (envelope.path !== void 0) {
23877
+ const maybePath = await this._validation.gateRequest("searchClientsForTenant", _schemas.zSearchClientsForTenantPath, envelope.path);
23878
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
23879
+ }
23506
23880
  }
23507
23881
  const opts = { client: this._client, signal, throwOnError: false };
23508
23882
  if (envelope.path) opts.path = envelope.path;
@@ -23563,6 +23937,10 @@ var CamundaClient = class {
23563
23937
  const maybeBody = await this._validation.gateRequest("searchClusterVariables", _schemas.zSearchClusterVariablesBody, envelope.body);
23564
23938
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23565
23939
  }
23940
+ if (envelope.query !== void 0) {
23941
+ const maybeQuery = await this._validation.gateRequest("searchClusterVariables", _schemas.zSearchClusterVariablesQuery, envelope.query);
23942
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
23943
+ }
23566
23944
  }
23567
23945
  const opts = { client: this._client, signal, throwOnError: false };
23568
23946
  if (envelope.query) opts.query = envelope.query;
@@ -23855,6 +24233,10 @@ var CamundaClient = class {
23855
24233
  const maybeBody = await this._validation.gateRequest("searchElementInstanceIncidents", _schemas.zSearchElementInstanceIncidentsBody, envelope.body);
23856
24234
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
23857
24235
  }
24236
+ if (envelope.path !== void 0) {
24237
+ const maybePath = await this._validation.gateRequest("searchElementInstanceIncidents", _schemas.zSearchElementInstanceIncidentsPath, envelope.path);
24238
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24239
+ }
23858
24240
  }
23859
24241
  const opts = { client: this._client, signal, throwOnError: false };
23860
24242
  if (envelope.path) opts.path = envelope.path;
@@ -24089,6 +24471,10 @@ var CamundaClient = class {
24089
24471
  const maybeBody = await this._validation.gateRequest("searchGroupIdsForTenant", _schemas.zSearchGroupIdsForTenantBody, envelope.body);
24090
24472
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24091
24473
  }
24474
+ if (envelope.path !== void 0) {
24475
+ const maybePath = await this._validation.gateRequest("searchGroupIdsForTenant", _schemas.zSearchGroupIdsForTenantPath, envelope.path);
24476
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24477
+ }
24092
24478
  }
24093
24479
  const opts = { client: this._client, signal, throwOnError: false };
24094
24480
  if (envelope.path) opts.path = envelope.path;
@@ -24207,6 +24593,10 @@ var CamundaClient = class {
24207
24593
  const maybeBody = await this._validation.gateRequest("searchGroupsForRole", _schemas.zSearchGroupsForRoleBody, envelope.body);
24208
24594
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24209
24595
  }
24596
+ if (envelope.path !== void 0) {
24597
+ const maybePath = await this._validation.gateRequest("searchGroupsForRole", _schemas.zSearchGroupsForRolePath, envelope.path);
24598
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24599
+ }
24210
24600
  }
24211
24601
  const opts = { client: this._client, signal, throwOnError: false };
24212
24602
  if (envelope.path) opts.path = envelope.path;
@@ -24441,6 +24831,10 @@ var CamundaClient = class {
24441
24831
  const maybeBody = await this._validation.gateRequest("searchMappingRulesForGroup", _schemas.zSearchMappingRulesForGroupBody, envelope.body);
24442
24832
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24443
24833
  }
24834
+ if (envelope.path !== void 0) {
24835
+ const maybePath = await this._validation.gateRequest("searchMappingRulesForGroup", _schemas.zSearchMappingRulesForGroupPath, envelope.path);
24836
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24837
+ }
24444
24838
  }
24445
24839
  const opts = { client: this._client, signal, throwOnError: false };
24446
24840
  if (envelope.path) opts.path = envelope.path;
@@ -24501,6 +24895,10 @@ var CamundaClient = class {
24501
24895
  const maybeBody = await this._validation.gateRequest("searchMappingRulesForRole", _schemas.zSearchMappingRulesForRoleBody, envelope.body);
24502
24896
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24503
24897
  }
24898
+ if (envelope.path !== void 0) {
24899
+ const maybePath = await this._validation.gateRequest("searchMappingRulesForRole", _schemas.zSearchMappingRulesForRolePath, envelope.path);
24900
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24901
+ }
24504
24902
  }
24505
24903
  const opts = { client: this._client, signal, throwOnError: false };
24506
24904
  if (envelope.path) opts.path = envelope.path;
@@ -24561,6 +24959,10 @@ var CamundaClient = class {
24561
24959
  const maybeBody = await this._validation.gateRequest("searchMappingRulesForTenant", _schemas.zSearchMappingRulesForTenantBody, envelope.body);
24562
24960
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24563
24961
  }
24962
+ if (envelope.path !== void 0) {
24963
+ const maybePath = await this._validation.gateRequest("searchMappingRulesForTenant", _schemas.zSearchMappingRulesForTenantPath, envelope.path);
24964
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
24965
+ }
24564
24966
  }
24565
24967
  const opts = { client: this._client, signal, throwOnError: false };
24566
24968
  if (envelope.path) opts.path = envelope.path;
@@ -24737,6 +25139,10 @@ var CamundaClient = class {
24737
25139
  const maybeBody = await this._validation.gateRequest("searchProcessDefinitionVariableNames", _schemas.zSearchProcessDefinitionVariableNamesBody, envelope.body);
24738
25140
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24739
25141
  }
25142
+ if (envelope.path !== void 0) {
25143
+ const maybePath = await this._validation.gateRequest("searchProcessDefinitionVariableNames", _schemas.zSearchProcessDefinitionVariableNamesPath, envelope.path);
25144
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25145
+ }
24740
25146
  }
24741
25147
  const opts = { client: this._client, signal, throwOnError: false };
24742
25148
  if (envelope.path) opts.path = envelope.path;
@@ -24797,6 +25203,10 @@ var CamundaClient = class {
24797
25203
  const maybeBody = await this._validation.gateRequest("searchProcessInstanceIncidents", _schemas.zSearchProcessInstanceIncidentsBody, envelope.body);
24798
25204
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
24799
25205
  }
25206
+ if (envelope.path !== void 0) {
25207
+ const maybePath = await this._validation.gateRequest("searchProcessInstanceIncidents", _schemas.zSearchProcessInstanceIncidentsPath, envelope.path);
25208
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25209
+ }
24800
25210
  }
24801
25211
  const opts = { client: this._client, signal, throwOnError: false };
24802
25212
  if (envelope.path) opts.path = envelope.path;
@@ -25031,6 +25441,10 @@ var CamundaClient = class {
25031
25441
  const maybeBody = await this._validation.gateRequest("searchRolesForGroup", _schemas.zSearchRolesForGroupBody, envelope.body);
25032
25442
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25033
25443
  }
25444
+ if (envelope.path !== void 0) {
25445
+ const maybePath = await this._validation.gateRequest("searchRolesForGroup", _schemas.zSearchRolesForGroupPath, envelope.path);
25446
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25447
+ }
25034
25448
  }
25035
25449
  const opts = { client: this._client, signal, throwOnError: false };
25036
25450
  if (envelope.path) opts.path = envelope.path;
@@ -25091,6 +25505,10 @@ var CamundaClient = class {
25091
25505
  const maybeBody = await this._validation.gateRequest("searchRolesForTenant", _schemas.zSearchRolesForTenantBody, envelope.body);
25092
25506
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25093
25507
  }
25508
+ if (envelope.path !== void 0) {
25509
+ const maybePath = await this._validation.gateRequest("searchRolesForTenant", _schemas.zSearchRolesForTenantPath, envelope.path);
25510
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25511
+ }
25094
25512
  }
25095
25513
  const opts = { client: this._client, signal, throwOnError: false };
25096
25514
  if (envelope.path) opts.path = envelope.path;
@@ -25267,6 +25685,10 @@ var CamundaClient = class {
25267
25685
  const maybeBody = await this._validation.gateRequest("searchUsersForGroup", _schemas.zSearchUsersForGroupBody, envelope.body);
25268
25686
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25269
25687
  }
25688
+ if (envelope.path !== void 0) {
25689
+ const maybePath = await this._validation.gateRequest("searchUsersForGroup", _schemas.zSearchUsersForGroupPath, envelope.path);
25690
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25691
+ }
25270
25692
  }
25271
25693
  const opts = { client: this._client, signal, throwOnError: false };
25272
25694
  if (envelope.path) opts.path = envelope.path;
@@ -25327,6 +25749,10 @@ var CamundaClient = class {
25327
25749
  const maybeBody = await this._validation.gateRequest("searchUsersForRole", _schemas.zSearchUsersForRoleBody, envelope.body);
25328
25750
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25329
25751
  }
25752
+ if (envelope.path !== void 0) {
25753
+ const maybePath = await this._validation.gateRequest("searchUsersForRole", _schemas.zSearchUsersForRolePath, envelope.path);
25754
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25755
+ }
25330
25756
  }
25331
25757
  const opts = { client: this._client, signal, throwOnError: false };
25332
25758
  if (envelope.path) opts.path = envelope.path;
@@ -25387,6 +25813,10 @@ var CamundaClient = class {
25387
25813
  const maybeBody = await this._validation.gateRequest("searchUsersForTenant", _schemas.zSearchUsersForTenantBody, envelope.body);
25388
25814
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25389
25815
  }
25816
+ if (envelope.path !== void 0) {
25817
+ const maybePath = await this._validation.gateRequest("searchUsersForTenant", _schemas.zSearchUsersForTenantPath, envelope.path);
25818
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25819
+ }
25390
25820
  }
25391
25821
  const opts = { client: this._client, signal, throwOnError: false };
25392
25822
  if (envelope.path) opts.path = envelope.path;
@@ -25447,6 +25877,10 @@ var CamundaClient = class {
25447
25877
  const maybeBody = await this._validation.gateRequest("searchUserTaskAuditLogs", _schemas.zSearchUserTaskAuditLogsBody, envelope.body);
25448
25878
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25449
25879
  }
25880
+ if (envelope.path !== void 0) {
25881
+ const maybePath = await this._validation.gateRequest("searchUserTaskAuditLogs", _schemas.zSearchUserTaskAuditLogsPath, envelope.path);
25882
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25883
+ }
25450
25884
  }
25451
25885
  const opts = { client: this._client, signal, throwOnError: false };
25452
25886
  if (envelope.path) opts.path = envelope.path;
@@ -25508,6 +25942,14 @@ var CamundaClient = class {
25508
25942
  const maybeBody = await this._validation.gateRequest("searchUserTaskEffectiveVariables", _schemas.zSearchUserTaskEffectiveVariablesBody, envelope.body);
25509
25943
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25510
25944
  }
25945
+ if (envelope.path !== void 0) {
25946
+ const maybePath = await this._validation.gateRequest("searchUserTaskEffectiveVariables", _schemas.zSearchUserTaskEffectiveVariablesPath, envelope.path);
25947
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
25948
+ }
25949
+ if (envelope.query !== void 0) {
25950
+ const maybeQuery = await this._validation.gateRequest("searchUserTaskEffectiveVariables", _schemas.zSearchUserTaskEffectiveVariablesQuery, envelope.query);
25951
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
25952
+ }
25511
25953
  }
25512
25954
  const opts = { client: this._client, signal, throwOnError: false };
25513
25955
  if (envelope.path) opts.path = envelope.path;
@@ -25628,6 +26070,14 @@ var CamundaClient = class {
25628
26070
  const maybeBody = await this._validation.gateRequest("searchUserTaskVariables", _schemas.zSearchUserTaskVariablesBody, envelope.body);
25629
26071
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25630
26072
  }
26073
+ if (envelope.path !== void 0) {
26074
+ const maybePath = await this._validation.gateRequest("searchUserTaskVariables", _schemas.zSearchUserTaskVariablesPath, envelope.path);
26075
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26076
+ }
26077
+ if (envelope.query !== void 0) {
26078
+ const maybeQuery = await this._validation.gateRequest("searchUserTaskVariables", _schemas.zSearchUserTaskVariablesQuery, envelope.query);
26079
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
26080
+ }
25631
26081
  }
25632
26082
  const opts = { client: this._client, signal, throwOnError: false };
25633
26083
  if (envelope.path) opts.path = envelope.path;
@@ -25689,6 +26139,10 @@ var CamundaClient = class {
25689
26139
  const maybeBody = await this._validation.gateRequest("searchVariables", _schemas.zSearchVariablesBody, envelope.body);
25690
26140
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25691
26141
  }
26142
+ if (envelope.query !== void 0) {
26143
+ const maybeQuery = await this._validation.gateRequest("searchVariables", _schemas.zSearchVariablesQuery, envelope.query);
26144
+ if (this._validation.settings.req === "strict") envelope.query = maybeQuery;
26145
+ }
25692
26146
  }
25693
26147
  const opts = { client: this._client, signal, throwOnError: false };
25694
26148
  if (envelope.query) opts.query = envelope.query;
@@ -25747,6 +26201,10 @@ var CamundaClient = class {
25747
26201
  const maybeBody = await this._validation.gateRequest("suspendBatchOperation", _schemas.zSuspendBatchOperationBody, envelope.body);
25748
26202
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25749
26203
  }
26204
+ if (envelope.path !== void 0) {
26205
+ const maybePath = await this._validation.gateRequest("suspendBatchOperation", _schemas.zSuspendBatchOperationPath, envelope.path);
26206
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26207
+ }
25750
26208
  }
25751
26209
  const opts = { client: this._client, signal, throwOnError: false };
25752
26210
  if (envelope.path) opts.path = envelope.path;
@@ -25803,6 +26261,10 @@ var CamundaClient = class {
25803
26261
  const maybeBody = await this._validation.gateRequest("suspendProcessInstance", _schemas.zSuspendProcessInstanceBody, envelope.body);
25804
26262
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
25805
26263
  }
26264
+ if (envelope.path !== void 0) {
26265
+ const maybePath = await this._validation.gateRequest("suspendProcessInstance", _schemas.zSuspendProcessInstancePath, envelope.path);
26266
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26267
+ }
25806
26268
  }
25807
26269
  const opts = { client: this._client, signal, throwOnError: false };
25808
26270
  if (envelope.path) opts.path = envelope.path;
@@ -26010,6 +26472,10 @@ var CamundaClient = class {
26010
26472
  const maybeBody = await this._validation.gateRequest("throwJobError", _schemas.zThrowJobErrorBody, envelope.body);
26011
26473
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26012
26474
  }
26475
+ if (envelope.path !== void 0) {
26476
+ const maybePath = await this._validation.gateRequest("throwJobError", _schemas.zThrowJobErrorPath, envelope.path);
26477
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26478
+ }
26013
26479
  }
26014
26480
  const opts = { client: this._client, signal, throwOnError: false };
26015
26481
  if (envelope.path) opts.path = envelope.path;
@@ -26061,7 +26527,10 @@ var CamundaClient = class {
26061
26527
  envelope.path = { groupId, clientId };
26062
26528
  if (this._validation.settings.req !== "none") {
26063
26529
  const _schemas = await this._loadSchemas();
26064
- await this._validation.gateRequest("unassignClientFromGroup", void 0, envelope);
26530
+ if (envelope.path !== void 0) {
26531
+ const maybePath = await this._validation.gateRequest("unassignClientFromGroup", _schemas.zUnassignClientFromGroupPath, envelope.path);
26532
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26533
+ }
26065
26534
  }
26066
26535
  const opts = { client: this._client, signal, throwOnError: false };
26067
26536
  if (envelope.path) opts.path = envelope.path;
@@ -26112,7 +26581,10 @@ var CamundaClient = class {
26112
26581
  envelope.path = { tenantId, clientId };
26113
26582
  if (this._validation.settings.req !== "none") {
26114
26583
  const _schemas = await this._loadSchemas();
26115
- await this._validation.gateRequest("unassignClientFromTenant", void 0, envelope);
26584
+ if (envelope.path !== void 0) {
26585
+ const maybePath = await this._validation.gateRequest("unassignClientFromTenant", _schemas.zUnassignClientFromTenantPath, envelope.path);
26586
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26587
+ }
26116
26588
  }
26117
26589
  const opts = { client: this._client, signal, throwOnError: false };
26118
26590
  if (envelope.path) opts.path = envelope.path;
@@ -26163,7 +26635,10 @@ var CamundaClient = class {
26163
26635
  envelope.path = { tenantId, groupId };
26164
26636
  if (this._validation.settings.req !== "none") {
26165
26637
  const _schemas = await this._loadSchemas();
26166
- await this._validation.gateRequest("unassignGroupFromTenant", void 0, envelope);
26638
+ if (envelope.path !== void 0) {
26639
+ const maybePath = await this._validation.gateRequest("unassignGroupFromTenant", _schemas.zUnassignGroupFromTenantPath, envelope.path);
26640
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26641
+ }
26167
26642
  }
26168
26643
  const opts = { client: this._client, signal, throwOnError: false };
26169
26644
  if (envelope.path) opts.path = envelope.path;
@@ -26214,7 +26689,10 @@ var CamundaClient = class {
26214
26689
  envelope.path = { groupId, mappingRuleId };
26215
26690
  if (this._validation.settings.req !== "none") {
26216
26691
  const _schemas = await this._loadSchemas();
26217
- await this._validation.gateRequest("unassignMappingRuleFromGroup", void 0, envelope);
26692
+ if (envelope.path !== void 0) {
26693
+ const maybePath = await this._validation.gateRequest("unassignMappingRuleFromGroup", _schemas.zUnassignMappingRuleFromGroupPath, envelope.path);
26694
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26695
+ }
26218
26696
  }
26219
26697
  const opts = { client: this._client, signal, throwOnError: false };
26220
26698
  if (envelope.path) opts.path = envelope.path;
@@ -26265,7 +26743,10 @@ var CamundaClient = class {
26265
26743
  envelope.path = { tenantId, mappingRuleId };
26266
26744
  if (this._validation.settings.req !== "none") {
26267
26745
  const _schemas = await this._loadSchemas();
26268
- await this._validation.gateRequest("unassignMappingRuleFromTenant", void 0, envelope);
26746
+ if (envelope.path !== void 0) {
26747
+ const maybePath = await this._validation.gateRequest("unassignMappingRuleFromTenant", _schemas.zUnassignMappingRuleFromTenantPath, envelope.path);
26748
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26749
+ }
26269
26750
  }
26270
26751
  const opts = { client: this._client, signal, throwOnError: false };
26271
26752
  if (envelope.path) opts.path = envelope.path;
@@ -26316,7 +26797,10 @@ var CamundaClient = class {
26316
26797
  envelope.path = { roleId, clientId };
26317
26798
  if (this._validation.settings.req !== "none") {
26318
26799
  const _schemas = await this._loadSchemas();
26319
- await this._validation.gateRequest("unassignRoleFromClient", void 0, envelope);
26800
+ if (envelope.path !== void 0) {
26801
+ const maybePath = await this._validation.gateRequest("unassignRoleFromClient", _schemas.zUnassignRoleFromClientPath, envelope.path);
26802
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26803
+ }
26320
26804
  }
26321
26805
  const opts = { client: this._client, signal, throwOnError: false };
26322
26806
  if (envelope.path) opts.path = envelope.path;
@@ -26367,7 +26851,10 @@ var CamundaClient = class {
26367
26851
  envelope.path = { roleId, groupId };
26368
26852
  if (this._validation.settings.req !== "none") {
26369
26853
  const _schemas = await this._loadSchemas();
26370
- await this._validation.gateRequest("unassignRoleFromGroup", void 0, envelope);
26854
+ if (envelope.path !== void 0) {
26855
+ const maybePath = await this._validation.gateRequest("unassignRoleFromGroup", _schemas.zUnassignRoleFromGroupPath, envelope.path);
26856
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26857
+ }
26371
26858
  }
26372
26859
  const opts = { client: this._client, signal, throwOnError: false };
26373
26860
  if (envelope.path) opts.path = envelope.path;
@@ -26418,7 +26905,10 @@ var CamundaClient = class {
26418
26905
  envelope.path = { roleId, mappingRuleId };
26419
26906
  if (this._validation.settings.req !== "none") {
26420
26907
  const _schemas = await this._loadSchemas();
26421
- await this._validation.gateRequest("unassignRoleFromMappingRule", void 0, envelope);
26908
+ if (envelope.path !== void 0) {
26909
+ const maybePath = await this._validation.gateRequest("unassignRoleFromMappingRule", _schemas.zUnassignRoleFromMappingRulePath, envelope.path);
26910
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26911
+ }
26422
26912
  }
26423
26913
  const opts = { client: this._client, signal, throwOnError: false };
26424
26914
  if (envelope.path) opts.path = envelope.path;
@@ -26469,7 +26959,10 @@ var CamundaClient = class {
26469
26959
  envelope.path = { tenantId, roleId };
26470
26960
  if (this._validation.settings.req !== "none") {
26471
26961
  const _schemas = await this._loadSchemas();
26472
- await this._validation.gateRequest("unassignRoleFromTenant", void 0, envelope);
26962
+ if (envelope.path !== void 0) {
26963
+ const maybePath = await this._validation.gateRequest("unassignRoleFromTenant", _schemas.zUnassignRoleFromTenantPath, envelope.path);
26964
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
26965
+ }
26473
26966
  }
26474
26967
  const opts = { client: this._client, signal, throwOnError: false };
26475
26968
  if (envelope.path) opts.path = envelope.path;
@@ -26520,7 +27013,10 @@ var CamundaClient = class {
26520
27013
  envelope.path = { roleId, username };
26521
27014
  if (this._validation.settings.req !== "none") {
26522
27015
  const _schemas = await this._loadSchemas();
26523
- await this._validation.gateRequest("unassignRoleFromUser", void 0, envelope);
27016
+ if (envelope.path !== void 0) {
27017
+ const maybePath = await this._validation.gateRequest("unassignRoleFromUser", _schemas.zUnassignRoleFromUserPath, envelope.path);
27018
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27019
+ }
26524
27020
  }
26525
27021
  const opts = { client: this._client, signal, throwOnError: false };
26526
27022
  if (envelope.path) opts.path = envelope.path;
@@ -26571,7 +27067,10 @@ var CamundaClient = class {
26571
27067
  envelope.path = { groupId, username };
26572
27068
  if (this._validation.settings.req !== "none") {
26573
27069
  const _schemas = await this._loadSchemas();
26574
- await this._validation.gateRequest("unassignUserFromGroup", void 0, envelope);
27070
+ if (envelope.path !== void 0) {
27071
+ const maybePath = await this._validation.gateRequest("unassignUserFromGroup", _schemas.zUnassignUserFromGroupPath, envelope.path);
27072
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27073
+ }
26575
27074
  }
26576
27075
  const opts = { client: this._client, signal, throwOnError: false };
26577
27076
  if (envelope.path) opts.path = envelope.path;
@@ -26622,7 +27121,10 @@ var CamundaClient = class {
26622
27121
  envelope.path = { tenantId, username };
26623
27122
  if (this._validation.settings.req !== "none") {
26624
27123
  const _schemas = await this._loadSchemas();
26625
- await this._validation.gateRequest("unassignUserFromTenant", void 0, envelope);
27124
+ if (envelope.path !== void 0) {
27125
+ const maybePath = await this._validation.gateRequest("unassignUserFromTenant", _schemas.zUnassignUserFromTenantPath, envelope.path);
27126
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27127
+ }
26626
27128
  }
26627
27129
  const opts = { client: this._client, signal, throwOnError: false };
26628
27130
  if (envelope.path) opts.path = envelope.path;
@@ -26673,7 +27175,10 @@ var CamundaClient = class {
26673
27175
  envelope.path = { userTaskKey };
26674
27176
  if (this._validation.settings.req !== "none") {
26675
27177
  const _schemas = await this._loadSchemas();
26676
- await this._validation.gateRequest("unassignUserTask", void 0, envelope);
27178
+ if (envelope.path !== void 0) {
27179
+ const maybePath = await this._validation.gateRequest("unassignUserTask", _schemas.zUnassignUserTaskPath, envelope.path);
27180
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27181
+ }
26677
27182
  }
26678
27183
  const opts = { client: this._client, signal, throwOnError: false };
26679
27184
  if (envelope.path) opts.path = envelope.path;
@@ -26729,6 +27234,10 @@ var CamundaClient = class {
26729
27234
  const maybeBody = await this._validation.gateRequest("updateAgentInstance", _schemas.zUpdateAgentInstanceBody, envelope.body);
26730
27235
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26731
27236
  }
27237
+ if (envelope.path !== void 0) {
27238
+ const maybePath = await this._validation.gateRequest("updateAgentInstance", _schemas.zUpdateAgentInstancePath, envelope.path);
27239
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27240
+ }
26732
27241
  }
26733
27242
  const opts = { client: this._client, signal, throwOnError: false };
26734
27243
  if (envelope.path) opts.path = envelope.path;
@@ -26785,6 +27294,10 @@ var CamundaClient = class {
26785
27294
  const maybeBody = await this._validation.gateRequest("updateAuthorization", _schemas.zUpdateAuthorizationBody, envelope.body);
26786
27295
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26787
27296
  }
27297
+ if (envelope.path !== void 0) {
27298
+ const maybePath = await this._validation.gateRequest("updateAuthorization", _schemas.zUpdateAuthorizationPath, envelope.path);
27299
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27300
+ }
26788
27301
  }
26789
27302
  const opts = { client: this._client, signal, throwOnError: false };
26790
27303
  if (envelope.path) opts.path = envelope.path;
@@ -26841,6 +27354,10 @@ var CamundaClient = class {
26841
27354
  const maybeBody = await this._validation.gateRequest("updateGlobalClusterVariable", _schemas.zUpdateGlobalClusterVariableBody, envelope.body);
26842
27355
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26843
27356
  }
27357
+ if (envelope.path !== void 0) {
27358
+ const maybePath = await this._validation.gateRequest("updateGlobalClusterVariable", _schemas.zUpdateGlobalClusterVariablePath, envelope.path);
27359
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27360
+ }
26844
27361
  }
26845
27362
  const opts = { client: this._client, signal, throwOnError: false };
26846
27363
  if (envelope.path) opts.path = envelope.path;
@@ -26897,6 +27414,10 @@ var CamundaClient = class {
26897
27414
  const maybeBody = await this._validation.gateRequest("updateGlobalTaskListener", _schemas.zUpdateGlobalTaskListenerBody, envelope.body);
26898
27415
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26899
27416
  }
27417
+ if (envelope.path !== void 0) {
27418
+ const maybePath = await this._validation.gateRequest("updateGlobalTaskListener", _schemas.zUpdateGlobalTaskListenerPath, envelope.path);
27419
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27420
+ }
26900
27421
  }
26901
27422
  const opts = { client: this._client, signal, throwOnError: false };
26902
27423
  if (envelope.path) opts.path = envelope.path;
@@ -26953,6 +27474,10 @@ var CamundaClient = class {
26953
27474
  const maybeBody = await this._validation.gateRequest("updateGroup", _schemas.zUpdateGroupBody, envelope.body);
26954
27475
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
26955
27476
  }
27477
+ if (envelope.path !== void 0) {
27478
+ const maybePath = await this._validation.gateRequest("updateGroup", _schemas.zUpdateGroupPath, envelope.path);
27479
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27480
+ }
26956
27481
  }
26957
27482
  const opts = { client: this._client, signal, throwOnError: false };
26958
27483
  if (envelope.path) opts.path = envelope.path;
@@ -27009,6 +27534,10 @@ var CamundaClient = class {
27009
27534
  const maybeBody = await this._validation.gateRequest("updateJob", _schemas.zUpdateJobBody, envelope.body);
27010
27535
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27011
27536
  }
27537
+ if (envelope.path !== void 0) {
27538
+ const maybePath = await this._validation.gateRequest("updateJob", _schemas.zUpdateJobPath, envelope.path);
27539
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27540
+ }
27012
27541
  }
27013
27542
  const opts = { client: this._client, signal, throwOnError: false };
27014
27543
  if (envelope.path) opts.path = envelope.path;
@@ -27119,6 +27648,10 @@ var CamundaClient = class {
27119
27648
  const maybeBody = await this._validation.gateRequest("updateMappingRule", _schemas.zUpdateMappingRuleBody, envelope.body);
27120
27649
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27121
27650
  }
27651
+ if (envelope.path !== void 0) {
27652
+ const maybePath = await this._validation.gateRequest("updateMappingRule", _schemas.zUpdateMappingRulePath, envelope.path);
27653
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27654
+ }
27122
27655
  }
27123
27656
  const opts = { client: this._client, signal, throwOnError: false };
27124
27657
  if (envelope.path) opts.path = envelope.path;
@@ -27175,6 +27708,10 @@ var CamundaClient = class {
27175
27708
  const maybeBody = await this._validation.gateRequest("updateRole", _schemas.zUpdateRoleBody, envelope.body);
27176
27709
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27177
27710
  }
27711
+ if (envelope.path !== void 0) {
27712
+ const maybePath = await this._validation.gateRequest("updateRole", _schemas.zUpdateRolePath, envelope.path);
27713
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27714
+ }
27178
27715
  }
27179
27716
  const opts = { client: this._client, signal, throwOnError: false };
27180
27717
  if (envelope.path) opts.path = envelope.path;
@@ -27231,6 +27768,10 @@ var CamundaClient = class {
27231
27768
  const maybeBody = await this._validation.gateRequest("updateTenant", _schemas.zUpdateTenantBody, envelope.body);
27232
27769
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27233
27770
  }
27771
+ if (envelope.path !== void 0) {
27772
+ const maybePath = await this._validation.gateRequest("updateTenant", _schemas.zUpdateTenantPath, envelope.path);
27773
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27774
+ }
27234
27775
  }
27235
27776
  const opts = { client: this._client, signal, throwOnError: false };
27236
27777
  if (envelope.path) opts.path = envelope.path;
@@ -27287,6 +27828,10 @@ var CamundaClient = class {
27287
27828
  const maybeBody = await this._validation.gateRequest("updateTenantClusterVariable", _schemas.zUpdateTenantClusterVariableBody, envelope.body);
27288
27829
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27289
27830
  }
27831
+ if (envelope.path !== void 0) {
27832
+ const maybePath = await this._validation.gateRequest("updateTenantClusterVariable", _schemas.zUpdateTenantClusterVariablePath, envelope.path);
27833
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27834
+ }
27290
27835
  }
27291
27836
  const opts = { client: this._client, signal, throwOnError: false };
27292
27837
  if (envelope.path) opts.path = envelope.path;
@@ -27343,6 +27888,10 @@ var CamundaClient = class {
27343
27888
  const maybeBody = await this._validation.gateRequest("updateUser", _schemas.zUpdateUserBody, envelope.body);
27344
27889
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27345
27890
  }
27891
+ if (envelope.path !== void 0) {
27892
+ const maybePath = await this._validation.gateRequest("updateUser", _schemas.zUpdateUserPath, envelope.path);
27893
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27894
+ }
27346
27895
  }
27347
27896
  const opts = { client: this._client, signal, throwOnError: false };
27348
27897
  if (envelope.path) opts.path = envelope.path;
@@ -27399,6 +27948,10 @@ var CamundaClient = class {
27399
27948
  const maybeBody = await this._validation.gateRequest("updateUserTask", _schemas.zUpdateUserTaskBody, envelope.body);
27400
27949
  if (this._validation.settings.req === "strict") envelope.body = maybeBody;
27401
27950
  }
27951
+ if (envelope.path !== void 0) {
27952
+ const maybePath = await this._validation.gateRequest("updateUserTask", _schemas.zUpdateUserTaskPath, envelope.path);
27953
+ if (this._validation.settings.req === "strict") envelope.path = maybePath;
27954
+ }
27402
27955
  }
27403
27956
  const opts = { client: this._client, signal, throwOnError: false };
27404
27957
  if (envelope.path) opts.path = envelope.path;