@camunda8/orchestration-cluster-api 9.1.2 → 10.0.0-alpha.10

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.
@@ -111,6 +111,207 @@ var EventualConsistencyTimeoutError = class extends Error {
111
111
  }
112
112
  };
113
113
 
114
+ // src/runtime/typedVariables.ts
115
+ var TypedVariablesError = class extends Error {
116
+ constructor(message, options) {
117
+ super(message, options);
118
+ this.name = "TypedVariablesError";
119
+ }
120
+ };
121
+ var VariableScopeCollisionError = class extends TypedVariablesError {
122
+ constructor(variableName, scopeKeys) {
123
+ super(
124
+ `Variable '${variableName}' was found at more than one scope (${scopeKeys.join(
125
+ ", "
126
+ )}). Pass an explicit scopeKey to disambiguate.`
127
+ );
128
+ this.variableName = variableName;
129
+ this.scopeKeys = scopeKeys;
130
+ this.name = "VariableScopeCollisionError";
131
+ }
132
+ };
133
+ var VariableDeserializationError = class extends TypedVariablesError {
134
+ constructor(variableName, options) {
135
+ super(`Variable '${variableName}' could not be deserialized from its JSON value.`, options);
136
+ this.variableName = variableName;
137
+ this.name = "VariableDeserializationError";
138
+ }
139
+ };
140
+ function variableNamesFromSchema(schema) {
141
+ const shape = schema == null ? void 0 : schema.shape;
142
+ if (shape == null || typeof shape !== "object") {
143
+ throw new TypedVariablesError(
144
+ "A Zod object schema is required: its keys declare the variable names to fetch."
145
+ );
146
+ }
147
+ return Object.keys(shape);
148
+ }
149
+ var VariableMap = class {
150
+ constructor(_raw, _schema) {
151
+ this._raw = _raw;
152
+ this._schema = _schema;
153
+ }
154
+ /** The parsed variable values, keyed by variable name. */
155
+ get raw() {
156
+ return this._raw;
157
+ }
158
+ has(variableName) {
159
+ return Object.hasOwn(this._raw, variableName);
160
+ }
161
+ get(variableName) {
162
+ return this.has(variableName) ? this._raw[variableName] : void 0;
163
+ }
164
+ /**
165
+ * Strict access. Parses the collected values against the schema and returns the typed object.
166
+ * Required variables must be present and well-formed, otherwise a `ZodError` is thrown.
167
+ */
168
+ validate() {
169
+ return this._schema.parse(this._raw);
170
+ }
171
+ };
172
+ function parseValue(variableName, value) {
173
+ try {
174
+ return JSON.parse(value);
175
+ } catch (cause) {
176
+ throw new VariableDeserializationError(variableName, { cause });
177
+ }
178
+ }
179
+ var VariableCollector = class {
180
+ _queryNames;
181
+ _chosenValues = /* @__PURE__ */ new Map();
182
+ _scopesSeen = /* @__PURE__ */ new Map();
183
+ constructor(queryNames) {
184
+ this._queryNames = new Set(queryNames);
185
+ }
186
+ /** Fold one page of results into the retained per-name state. */
187
+ ingest(items) {
188
+ for (const item of items) {
189
+ if (!this._queryNames.has(item.name)) {
190
+ continue;
191
+ }
192
+ let scopes = this._scopesSeen.get(item.name);
193
+ if (!scopes) {
194
+ scopes = /* @__PURE__ */ new Set();
195
+ this._scopesSeen.set(item.name, scopes);
196
+ }
197
+ scopes.add(item.scopeKey);
198
+ if (!this._chosenValues.has(item.name)) {
199
+ this._chosenValues.set(item.name, item.value);
200
+ }
201
+ }
202
+ }
203
+ /**
204
+ * Parse retained values, raising on scope collisions or malformed JSON.
205
+ * @throws {VariableScopeCollisionError} when a name was observed at more than one scope.
206
+ * @throws {VariableDeserializationError} when a retained value is not valid JSON.
207
+ */
208
+ build() {
209
+ const raw = {};
210
+ for (const [name, value] of this._chosenValues) {
211
+ const scopes = this._scopesSeen.get(name);
212
+ if (scopes && scopes.size > 1) {
213
+ throw new VariableScopeCollisionError(name, [...scopes].sort());
214
+ }
215
+ raw[name] = parseValue(name, value);
216
+ }
217
+ return raw;
218
+ }
219
+ };
220
+ var realClock = {
221
+ now: () => Date.now(),
222
+ sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
223
+ };
224
+ async function collectAllPages(params) {
225
+ const remaining = new Set(params.names);
226
+ const seenCursors = /* @__PURE__ */ new Set();
227
+ let after;
228
+ while (true) {
229
+ const page = await params.fetchPage(after);
230
+ params.collector.ingest(page.items);
231
+ for (const item of page.items) {
232
+ remaining.delete(item.name);
233
+ }
234
+ if (params.singleScope && remaining.size === 0) {
235
+ break;
236
+ }
237
+ if (page.endCursor === null || page.items.length === 0) {
238
+ break;
239
+ }
240
+ if (seenCursors.has(page.endCursor)) {
241
+ break;
242
+ }
243
+ seenCursors.add(page.endCursor);
244
+ after = page.endCursor;
245
+ }
246
+ return remaining;
247
+ }
248
+ async function collectTypedVariables(params) {
249
+ const names = variableNamesFromSchema(params.schema);
250
+ if (names.length === 0) {
251
+ return new VariableMap({}, params.schema);
252
+ }
253
+ const clock = params.clock ?? realClock;
254
+ const waitUpToMs = params.consistency?.waitUpToMs ?? 0;
255
+ const pollIntervalMs = Math.max(10, params.consistency?.pollIntervalMs ?? 500);
256
+ const deadline = clock.now() + waitUpToMs;
257
+ while (true) {
258
+ const collector = new VariableCollector(names);
259
+ const remaining = await collectAllPages({
260
+ names,
261
+ singleScope: params.singleScope,
262
+ collector,
263
+ fetchPage: params.fetchPage
264
+ });
265
+ if (remaining.size === 0 || waitUpToMs === 0 || clock.now() >= deadline) {
266
+ return new VariableMap(collector.build(), params.schema);
267
+ }
268
+ await clock.sleep(Math.min(pollIntervalMs, deadline - clock.now()));
269
+ }
270
+ }
271
+ function throwIfAborted(signal) {
272
+ if (typeof signal.throwIfAborted === "function") {
273
+ signal.throwIfAborted();
274
+ return;
275
+ }
276
+ if (signal.aborted) {
277
+ throw signal.reason ?? createAbortError();
278
+ }
279
+ }
280
+ function createAbortError() {
281
+ if (typeof DOMException === "function") {
282
+ return new DOMException("This operation was aborted", "AbortError");
283
+ }
284
+ const error = new Error("This operation was aborted");
285
+ error.name = "AbortError";
286
+ return error;
287
+ }
288
+ function createVariableSearchFetchPage(params) {
289
+ const { filter, limit, signal, search } = params;
290
+ return async (after) => {
291
+ throwIfAborted(signal);
292
+ const input = {
293
+ filter,
294
+ // Cursors are opaque; only an explicit `undefined` means "no cursor". An empty-string
295
+ // cursor is a valid value and must be forwarded as `page.after`.
296
+ page: after !== void 0 ? { after, limit } : { limit },
297
+ truncateValues: false
298
+ };
299
+ const pending = search(input);
300
+ const onAbort = () => pending.cancel();
301
+ signal.addEventListener("abort", onAbort, { once: true });
302
+ if (signal.aborted) onAbort();
303
+ const result = await Promise.resolve(pending).finally(
304
+ () => signal.removeEventListener("abort", onAbort)
305
+ );
306
+ const items = (result?.items ?? []).map((item) => ({
307
+ name: item.name,
308
+ value: item.value,
309
+ scopeKey: String(item.scopeKey)
310
+ }));
311
+ return { items, endCursor: result?.page?.endCursor ?? null };
312
+ };
313
+ }
314
+
114
315
  // src/runtime/jobWorker.ts
115
316
  var JobActionReceipt = "JOB_ACTION_RECEIPT";
116
317
  var _workerCounter = 0;
@@ -1166,10 +1367,148 @@ var client = createClient(createConfig({
1166
1367
  }));
1167
1368
 
1168
1369
  // src/gen/sdk.gen.ts
1370
+ var createAgentInstance = (options) => {
1371
+ return (options.client ?? client).post({
1372
+ requestValidator: void 0,
1373
+ responseValidator: void 0,
1374
+ security: [
1375
+ {
1376
+ scheme: "bearer",
1377
+ type: "http"
1378
+ },
1379
+ {
1380
+ scheme: "basic",
1381
+ type: "http"
1382
+ }
1383
+ ],
1384
+ url: "/agent-instances",
1385
+ ...options,
1386
+ headers: {
1387
+ "Content-Type": "application/json",
1388
+ ...options.headers
1389
+ }
1390
+ });
1391
+ };
1392
+ var getAgentInstance = (options) => {
1393
+ return (options.client ?? client).get({
1394
+ requestValidator: void 0,
1395
+ responseValidator: void 0,
1396
+ security: [
1397
+ {
1398
+ scheme: "bearer",
1399
+ type: "http"
1400
+ },
1401
+ {
1402
+ scheme: "basic",
1403
+ type: "http"
1404
+ }
1405
+ ],
1406
+ url: "/agent-instances/{agentInstanceKey}",
1407
+ ...options
1408
+ });
1409
+ };
1410
+ var updateAgentInstance = (options) => {
1411
+ return (options.client ?? client).patch({
1412
+ requestValidator: void 0,
1413
+ responseValidator: void 0,
1414
+ security: [
1415
+ {
1416
+ scheme: "bearer",
1417
+ type: "http"
1418
+ },
1419
+ {
1420
+ scheme: "basic",
1421
+ type: "http"
1422
+ }
1423
+ ],
1424
+ url: "/agent-instances/{agentInstanceKey}",
1425
+ ...options,
1426
+ headers: {
1427
+ "Content-Type": "application/json",
1428
+ ...options.headers
1429
+ }
1430
+ });
1431
+ };
1432
+ var searchAgentInstances = (options) => {
1433
+ return (options?.client ?? client).post({
1434
+ requestValidator: void 0,
1435
+ responseValidator: void 0,
1436
+ security: [
1437
+ {
1438
+ scheme: "bearer",
1439
+ type: "http"
1440
+ },
1441
+ {
1442
+ scheme: "basic",
1443
+ type: "http"
1444
+ }
1445
+ ],
1446
+ url: "/agent-instances/search",
1447
+ ...options,
1448
+ headers: {
1449
+ "Content-Type": "application/json",
1450
+ ...options?.headers
1451
+ }
1452
+ });
1453
+ };
1454
+ var createAgentInstanceHistoryItem = (options) => {
1455
+ return (options.client ?? client).post({
1456
+ requestValidator: void 0,
1457
+ responseValidator: void 0,
1458
+ security: [
1459
+ {
1460
+ scheme: "bearer",
1461
+ type: "http"
1462
+ },
1463
+ {
1464
+ scheme: "basic",
1465
+ type: "http"
1466
+ }
1467
+ ],
1468
+ url: "/agent-instances/{agentInstanceKey}/history",
1469
+ ...options,
1470
+ headers: {
1471
+ "Content-Type": "application/json",
1472
+ ...options.headers
1473
+ }
1474
+ });
1475
+ };
1476
+ var searchAgentInstanceHistory = (options) => {
1477
+ return (options.client ?? client).post({
1478
+ requestValidator: void 0,
1479
+ responseValidator: void 0,
1480
+ security: [
1481
+ {
1482
+ scheme: "bearer",
1483
+ type: "http"
1484
+ },
1485
+ {
1486
+ scheme: "basic",
1487
+ type: "http"
1488
+ }
1489
+ ],
1490
+ url: "/agent-instances/{agentInstanceKey}/history/search",
1491
+ ...options,
1492
+ headers: {
1493
+ "Content-Type": "application/json",
1494
+ ...options.headers
1495
+ }
1496
+ });
1497
+ };
1169
1498
  var searchAuditLogs = (options) => {
1170
1499
  return (options?.client ?? client).post({
1171
1500
  requestValidator: void 0,
1172
1501
  responseValidator: void 0,
1502
+ security: [
1503
+ {
1504
+ scheme: "bearer",
1505
+ type: "http"
1506
+ },
1507
+ {
1508
+ scheme: "basic",
1509
+ type: "http"
1510
+ }
1511
+ ],
1173
1512
  url: "/audit-logs/search",
1174
1513
  ...options,
1175
1514
  headers: {
@@ -1182,6 +1521,16 @@ var getAuditLog = (options) => {
1182
1521
  return (options.client ?? client).get({
1183
1522
  requestValidator: void 0,
1184
1523
  responseValidator: void 0,
1524
+ security: [
1525
+ {
1526
+ scheme: "bearer",
1527
+ type: "http"
1528
+ },
1529
+ {
1530
+ scheme: "basic",
1531
+ type: "http"
1532
+ }
1533
+ ],
1185
1534
  url: "/audit-logs/{auditLogKey}",
1186
1535
  ...options
1187
1536
  });
@@ -1204,6 +1553,16 @@ var createAuthorization = (options) => {
1204
1553
  return (options.client ?? client).post({
1205
1554
  requestValidator: void 0,
1206
1555
  responseValidator: void 0,
1556
+ security: [
1557
+ {
1558
+ scheme: "bearer",
1559
+ type: "http"
1560
+ },
1561
+ {
1562
+ scheme: "basic",
1563
+ type: "http"
1564
+ }
1565
+ ],
1207
1566
  url: "/authorizations",
1208
1567
  ...options,
1209
1568
  headers: {
@@ -1216,6 +1575,16 @@ var searchAuthorizations = (options) => {
1216
1575
  return (options?.client ?? client).post({
1217
1576
  requestValidator: void 0,
1218
1577
  responseValidator: void 0,
1578
+ security: [
1579
+ {
1580
+ scheme: "bearer",
1581
+ type: "http"
1582
+ },
1583
+ {
1584
+ scheme: "basic",
1585
+ type: "http"
1586
+ }
1587
+ ],
1219
1588
  url: "/authorizations/search",
1220
1589
  ...options,
1221
1590
  headers: {
@@ -1228,6 +1597,16 @@ var deleteAuthorization = (options) => {
1228
1597
  return (options.client ?? client).delete({
1229
1598
  requestValidator: void 0,
1230
1599
  responseValidator: void 0,
1600
+ security: [
1601
+ {
1602
+ scheme: "bearer",
1603
+ type: "http"
1604
+ },
1605
+ {
1606
+ scheme: "basic",
1607
+ type: "http"
1608
+ }
1609
+ ],
1231
1610
  url: "/authorizations/{authorizationKey}",
1232
1611
  ...options
1233
1612
  });
@@ -1236,6 +1615,16 @@ var getAuthorization = (options) => {
1236
1615
  return (options.client ?? client).get({
1237
1616
  requestValidator: void 0,
1238
1617
  responseValidator: void 0,
1618
+ security: [
1619
+ {
1620
+ scheme: "bearer",
1621
+ type: "http"
1622
+ },
1623
+ {
1624
+ scheme: "basic",
1625
+ type: "http"
1626
+ }
1627
+ ],
1239
1628
  url: "/authorizations/{authorizationKey}",
1240
1629
  ...options
1241
1630
  });
@@ -1244,6 +1633,16 @@ var updateAuthorization = (options) => {
1244
1633
  return (options.client ?? client).put({
1245
1634
  requestValidator: void 0,
1246
1635
  responseValidator: void 0,
1636
+ security: [
1637
+ {
1638
+ scheme: "bearer",
1639
+ type: "http"
1640
+ },
1641
+ {
1642
+ scheme: "basic",
1643
+ type: "http"
1644
+ }
1645
+ ],
1247
1646
  url: "/authorizations/{authorizationKey}",
1248
1647
  ...options,
1249
1648
  headers: {
@@ -1256,6 +1655,16 @@ var searchBatchOperationItems = (options) => {
1256
1655
  return (options?.client ?? client).post({
1257
1656
  requestValidator: void 0,
1258
1657
  responseValidator: void 0,
1658
+ security: [
1659
+ {
1660
+ scheme: "bearer",
1661
+ type: "http"
1662
+ },
1663
+ {
1664
+ scheme: "basic",
1665
+ type: "http"
1666
+ }
1667
+ ],
1259
1668
  url: "/batch-operation-items/search",
1260
1669
  ...options,
1261
1670
  headers: {
@@ -1268,6 +1677,16 @@ var searchBatchOperations = (options) => {
1268
1677
  return (options?.client ?? client).post({
1269
1678
  requestValidator: void 0,
1270
1679
  responseValidator: void 0,
1680
+ security: [
1681
+ {
1682
+ scheme: "bearer",
1683
+ type: "http"
1684
+ },
1685
+ {
1686
+ scheme: "basic",
1687
+ type: "http"
1688
+ }
1689
+ ],
1271
1690
  url: "/batch-operations/search",
1272
1691
  ...options,
1273
1692
  headers: {
@@ -1280,6 +1699,16 @@ var getBatchOperation = (options) => {
1280
1699
  return (options.client ?? client).get({
1281
1700
  requestValidator: void 0,
1282
1701
  responseValidator: void 0,
1702
+ security: [
1703
+ {
1704
+ scheme: "bearer",
1705
+ type: "http"
1706
+ },
1707
+ {
1708
+ scheme: "basic",
1709
+ type: "http"
1710
+ }
1711
+ ],
1283
1712
  url: "/batch-operations/{batchOperationKey}",
1284
1713
  ...options
1285
1714
  });
@@ -1288,6 +1717,16 @@ var cancelBatchOperation = (options) => {
1288
1717
  return (options.client ?? client).post({
1289
1718
  requestValidator: void 0,
1290
1719
  responseValidator: void 0,
1720
+ security: [
1721
+ {
1722
+ scheme: "bearer",
1723
+ type: "http"
1724
+ },
1725
+ {
1726
+ scheme: "basic",
1727
+ type: "http"
1728
+ }
1729
+ ],
1291
1730
  url: "/batch-operations/{batchOperationKey}/cancellation",
1292
1731
  ...options,
1293
1732
  headers: {
@@ -1300,6 +1739,16 @@ var resumeBatchOperation = (options) => {
1300
1739
  return (options.client ?? client).post({
1301
1740
  requestValidator: void 0,
1302
1741
  responseValidator: void 0,
1742
+ security: [
1743
+ {
1744
+ scheme: "bearer",
1745
+ type: "http"
1746
+ },
1747
+ {
1748
+ scheme: "basic",
1749
+ type: "http"
1750
+ }
1751
+ ],
1303
1752
  url: "/batch-operations/{batchOperationKey}/resumption",
1304
1753
  ...options,
1305
1754
  headers: {
@@ -1312,6 +1761,16 @@ var suspendBatchOperation = (options) => {
1312
1761
  return (options.client ?? client).post({
1313
1762
  requestValidator: void 0,
1314
1763
  responseValidator: void 0,
1764
+ security: [
1765
+ {
1766
+ scheme: "bearer",
1767
+ type: "http"
1768
+ },
1769
+ {
1770
+ scheme: "basic",
1771
+ type: "http"
1772
+ }
1773
+ ],
1315
1774
  url: "/batch-operations/{batchOperationKey}/suspension",
1316
1775
  ...options,
1317
1776
  headers: {
@@ -1324,6 +1783,16 @@ var pinClock = (options) => {
1324
1783
  return (options.client ?? client).put({
1325
1784
  requestValidator: void 0,
1326
1785
  responseValidator: void 0,
1786
+ security: [
1787
+ {
1788
+ scheme: "bearer",
1789
+ type: "http"
1790
+ },
1791
+ {
1792
+ scheme: "basic",
1793
+ type: "http"
1794
+ }
1795
+ ],
1327
1796
  url: "/clock",
1328
1797
  ...options,
1329
1798
  headers: {
@@ -1336,6 +1805,16 @@ var resetClock = (options) => {
1336
1805
  return (options?.client ?? client).post({
1337
1806
  requestValidator: void 0,
1338
1807
  responseValidator: void 0,
1808
+ security: [
1809
+ {
1810
+ scheme: "bearer",
1811
+ type: "http"
1812
+ },
1813
+ {
1814
+ scheme: "basic",
1815
+ type: "http"
1816
+ }
1817
+ ],
1339
1818
  url: "/clock/reset",
1340
1819
  ...options
1341
1820
  });
@@ -1344,6 +1823,16 @@ var createGlobalClusterVariable = (options) => {
1344
1823
  return (options.client ?? client).post({
1345
1824
  requestValidator: void 0,
1346
1825
  responseValidator: void 0,
1826
+ security: [
1827
+ {
1828
+ scheme: "bearer",
1829
+ type: "http"
1830
+ },
1831
+ {
1832
+ scheme: "basic",
1833
+ type: "http"
1834
+ }
1835
+ ],
1347
1836
  url: "/cluster-variables/global",
1348
1837
  ...options,
1349
1838
  headers: {
@@ -1356,6 +1845,16 @@ var deleteGlobalClusterVariable = (options) => {
1356
1845
  return (options.client ?? client).delete({
1357
1846
  requestValidator: void 0,
1358
1847
  responseValidator: void 0,
1848
+ security: [
1849
+ {
1850
+ scheme: "bearer",
1851
+ type: "http"
1852
+ },
1853
+ {
1854
+ scheme: "basic",
1855
+ type: "http"
1856
+ }
1857
+ ],
1359
1858
  url: "/cluster-variables/global/{name}",
1360
1859
  ...options
1361
1860
  });
@@ -1364,6 +1863,16 @@ var getGlobalClusterVariable = (options) => {
1364
1863
  return (options.client ?? client).get({
1365
1864
  requestValidator: void 0,
1366
1865
  responseValidator: void 0,
1866
+ security: [
1867
+ {
1868
+ scheme: "bearer",
1869
+ type: "http"
1870
+ },
1871
+ {
1872
+ scheme: "basic",
1873
+ type: "http"
1874
+ }
1875
+ ],
1367
1876
  url: "/cluster-variables/global/{name}",
1368
1877
  ...options
1369
1878
  });
@@ -1372,6 +1881,16 @@ var updateGlobalClusterVariable = (options) => {
1372
1881
  return (options.client ?? client).put({
1373
1882
  requestValidator: void 0,
1374
1883
  responseValidator: void 0,
1884
+ security: [
1885
+ {
1886
+ scheme: "bearer",
1887
+ type: "http"
1888
+ },
1889
+ {
1890
+ scheme: "basic",
1891
+ type: "http"
1892
+ }
1893
+ ],
1375
1894
  url: "/cluster-variables/global/{name}",
1376
1895
  ...options,
1377
1896
  headers: {
@@ -1384,6 +1903,16 @@ var searchClusterVariables = (options) => {
1384
1903
  return (options?.client ?? client).post({
1385
1904
  requestValidator: void 0,
1386
1905
  responseValidator: void 0,
1906
+ security: [
1907
+ {
1908
+ scheme: "bearer",
1909
+ type: "http"
1910
+ },
1911
+ {
1912
+ scheme: "basic",
1913
+ type: "http"
1914
+ }
1915
+ ],
1387
1916
  url: "/cluster-variables/search",
1388
1917
  ...options,
1389
1918
  headers: {
@@ -1396,6 +1925,16 @@ var createTenantClusterVariable = (options) => {
1396
1925
  return (options.client ?? client).post({
1397
1926
  requestValidator: void 0,
1398
1927
  responseValidator: void 0,
1928
+ security: [
1929
+ {
1930
+ scheme: "bearer",
1931
+ type: "http"
1932
+ },
1933
+ {
1934
+ scheme: "basic",
1935
+ type: "http"
1936
+ }
1937
+ ],
1399
1938
  url: "/cluster-variables/tenants/{tenantId}",
1400
1939
  ...options,
1401
1940
  headers: {
@@ -1408,6 +1947,16 @@ var deleteTenantClusterVariable = (options) => {
1408
1947
  return (options.client ?? client).delete({
1409
1948
  requestValidator: void 0,
1410
1949
  responseValidator: void 0,
1950
+ security: [
1951
+ {
1952
+ scheme: "bearer",
1953
+ type: "http"
1954
+ },
1955
+ {
1956
+ scheme: "basic",
1957
+ type: "http"
1958
+ }
1959
+ ],
1411
1960
  url: "/cluster-variables/tenants/{tenantId}/{name}",
1412
1961
  ...options
1413
1962
  });
@@ -1416,6 +1965,16 @@ var getTenantClusterVariable = (options) => {
1416
1965
  return (options.client ?? client).get({
1417
1966
  requestValidator: void 0,
1418
1967
  responseValidator: void 0,
1968
+ security: [
1969
+ {
1970
+ scheme: "bearer",
1971
+ type: "http"
1972
+ },
1973
+ {
1974
+ scheme: "basic",
1975
+ type: "http"
1976
+ }
1977
+ ],
1419
1978
  url: "/cluster-variables/tenants/{tenantId}/{name}",
1420
1979
  ...options
1421
1980
  });
@@ -1424,6 +1983,16 @@ var updateTenantClusterVariable = (options) => {
1424
1983
  return (options.client ?? client).put({
1425
1984
  requestValidator: void 0,
1426
1985
  responseValidator: void 0,
1986
+ security: [
1987
+ {
1988
+ scheme: "bearer",
1989
+ type: "http"
1990
+ },
1991
+ {
1992
+ scheme: "basic",
1993
+ type: "http"
1994
+ }
1995
+ ],
1427
1996
  url: "/cluster-variables/tenants/{tenantId}/{name}",
1428
1997
  ...options,
1429
1998
  headers: {
@@ -1436,6 +2005,16 @@ var evaluateConditionals = (options) => {
1436
2005
  return (options.client ?? client).post({
1437
2006
  requestValidator: void 0,
1438
2007
  responseValidator: void 0,
2008
+ security: [
2009
+ {
2010
+ scheme: "bearer",
2011
+ type: "http"
2012
+ },
2013
+ {
2014
+ scheme: "basic",
2015
+ type: "http"
2016
+ }
2017
+ ],
1439
2018
  url: "/conditionals/evaluation",
1440
2019
  ...options,
1441
2020
  headers: {
@@ -1448,6 +2027,16 @@ var searchCorrelatedMessageSubscriptions = (options) => {
1448
2027
  return (options?.client ?? client).post({
1449
2028
  requestValidator: void 0,
1450
2029
  responseValidator: void 0,
2030
+ security: [
2031
+ {
2032
+ scheme: "bearer",
2033
+ type: "http"
2034
+ },
2035
+ {
2036
+ scheme: "basic",
2037
+ type: "http"
2038
+ }
2039
+ ],
1451
2040
  url: "/correlated-message-subscriptions/search",
1452
2041
  ...options,
1453
2042
  headers: {
@@ -1460,6 +2049,16 @@ var evaluateDecision = (options) => {
1460
2049
  return (options.client ?? client).post({
1461
2050
  requestValidator: void 0,
1462
2051
  responseValidator: void 0,
2052
+ security: [
2053
+ {
2054
+ scheme: "bearer",
2055
+ type: "http"
2056
+ },
2057
+ {
2058
+ scheme: "basic",
2059
+ type: "http"
2060
+ }
2061
+ ],
1463
2062
  url: "/decision-definitions/evaluation",
1464
2063
  ...options,
1465
2064
  headers: {
@@ -1472,6 +2071,16 @@ var searchDecisionDefinitions = (options) => {
1472
2071
  return (options?.client ?? client).post({
1473
2072
  requestValidator: void 0,
1474
2073
  responseValidator: void 0,
2074
+ security: [
2075
+ {
2076
+ scheme: "bearer",
2077
+ type: "http"
2078
+ },
2079
+ {
2080
+ scheme: "basic",
2081
+ type: "http"
2082
+ }
2083
+ ],
1475
2084
  url: "/decision-definitions/search",
1476
2085
  ...options,
1477
2086
  headers: {
@@ -1484,6 +2093,16 @@ var getDecisionDefinition = (options) => {
1484
2093
  return (options.client ?? client).get({
1485
2094
  requestValidator: void 0,
1486
2095
  responseValidator: void 0,
2096
+ security: [
2097
+ {
2098
+ scheme: "bearer",
2099
+ type: "http"
2100
+ },
2101
+ {
2102
+ scheme: "basic",
2103
+ type: "http"
2104
+ }
2105
+ ],
1487
2106
  url: "/decision-definitions/{decisionDefinitionKey}",
1488
2107
  ...options
1489
2108
  });
@@ -1492,6 +2111,16 @@ var getDecisionDefinitionXml = (options) => {
1492
2111
  return (options.client ?? client).get({
1493
2112
  requestValidator: void 0,
1494
2113
  responseValidator: void 0,
2114
+ security: [
2115
+ {
2116
+ scheme: "bearer",
2117
+ type: "http"
2118
+ },
2119
+ {
2120
+ scheme: "basic",
2121
+ type: "http"
2122
+ }
2123
+ ],
1495
2124
  url: "/decision-definitions/{decisionDefinitionKey}/xml",
1496
2125
  ...options
1497
2126
  });
@@ -1500,6 +2129,16 @@ var searchDecisionInstances = (options) => {
1500
2129
  return (options?.client ?? client).post({
1501
2130
  requestValidator: void 0,
1502
2131
  responseValidator: void 0,
2132
+ security: [
2133
+ {
2134
+ scheme: "bearer",
2135
+ type: "http"
2136
+ },
2137
+ {
2138
+ scheme: "basic",
2139
+ type: "http"
2140
+ }
2141
+ ],
1503
2142
  url: "/decision-instances/search",
1504
2143
  ...options,
1505
2144
  headers: {
@@ -1512,6 +2151,16 @@ var getDecisionInstance = (options) => {
1512
2151
  return (options.client ?? client).get({
1513
2152
  requestValidator: void 0,
1514
2153
  responseValidator: void 0,
2154
+ security: [
2155
+ {
2156
+ scheme: "bearer",
2157
+ type: "http"
2158
+ },
2159
+ {
2160
+ scheme: "basic",
2161
+ type: "http"
2162
+ }
2163
+ ],
1515
2164
  url: "/decision-instances/{decisionEvaluationInstanceKey}",
1516
2165
  ...options
1517
2166
  });
@@ -1520,6 +2169,16 @@ var deleteDecisionInstance = (options) => {
1520
2169
  return (options.client ?? client).post({
1521
2170
  requestValidator: void 0,
1522
2171
  responseValidator: void 0,
2172
+ security: [
2173
+ {
2174
+ scheme: "bearer",
2175
+ type: "http"
2176
+ },
2177
+ {
2178
+ scheme: "basic",
2179
+ type: "http"
2180
+ }
2181
+ ],
1523
2182
  url: "/decision-instances/{decisionEvaluationKey}/deletion",
1524
2183
  ...options,
1525
2184
  headers: {
@@ -1532,6 +2191,16 @@ var deleteDecisionInstancesBatchOperation = (options) => {
1532
2191
  return (options.client ?? client).post({
1533
2192
  requestValidator: void 0,
1534
2193
  responseValidator: void 0,
2194
+ security: [
2195
+ {
2196
+ scheme: "bearer",
2197
+ type: "http"
2198
+ },
2199
+ {
2200
+ scheme: "basic",
2201
+ type: "http"
2202
+ }
2203
+ ],
1535
2204
  url: "/decision-instances/deletion",
1536
2205
  ...options,
1537
2206
  headers: {
@@ -1544,6 +2213,16 @@ var searchDecisionRequirements = (options) => {
1544
2213
  return (options?.client ?? client).post({
1545
2214
  requestValidator: void 0,
1546
2215
  responseValidator: void 0,
2216
+ security: [
2217
+ {
2218
+ scheme: "bearer",
2219
+ type: "http"
2220
+ },
2221
+ {
2222
+ scheme: "basic",
2223
+ type: "http"
2224
+ }
2225
+ ],
1547
2226
  url: "/decision-requirements/search",
1548
2227
  ...options,
1549
2228
  headers: {
@@ -1556,6 +2235,16 @@ var getDecisionRequirements = (options) => {
1556
2235
  return (options.client ?? client).get({
1557
2236
  requestValidator: void 0,
1558
2237
  responseValidator: void 0,
2238
+ security: [
2239
+ {
2240
+ scheme: "bearer",
2241
+ type: "http"
2242
+ },
2243
+ {
2244
+ scheme: "basic",
2245
+ type: "http"
2246
+ }
2247
+ ],
1559
2248
  url: "/decision-requirements/{decisionRequirementsKey}",
1560
2249
  ...options
1561
2250
  });
@@ -1564,6 +2253,16 @@ var getDecisionRequirementsXml = (options) => {
1564
2253
  return (options.client ?? client).get({
1565
2254
  requestValidator: void 0,
1566
2255
  responseValidator: void 0,
2256
+ security: [
2257
+ {
2258
+ scheme: "bearer",
2259
+ type: "http"
2260
+ },
2261
+ {
2262
+ scheme: "basic",
2263
+ type: "http"
2264
+ }
2265
+ ],
1567
2266
  url: "/decision-requirements/{decisionRequirementsKey}/xml",
1568
2267
  ...options
1569
2268
  });
@@ -1573,6 +2272,16 @@ var createDeployment = (options) => {
1573
2272
  ...formDataBodySerializer,
1574
2273
  requestValidator: void 0,
1575
2274
  responseValidator: void 0,
2275
+ security: [
2276
+ {
2277
+ scheme: "bearer",
2278
+ type: "http"
2279
+ },
2280
+ {
2281
+ scheme: "basic",
2282
+ type: "http"
2283
+ }
2284
+ ],
1576
2285
  url: "/deployments",
1577
2286
  ...options,
1578
2287
  headers: {
@@ -1586,10 +2295,20 @@ var createDocument = (options) => {
1586
2295
  ...formDataBodySerializer,
1587
2296
  requestValidator: void 0,
1588
2297
  responseValidator: void 0,
1589
- url: "/documents",
1590
- ...options,
1591
- headers: {
1592
- "Content-Type": null,
2298
+ security: [
2299
+ {
2300
+ scheme: "bearer",
2301
+ type: "http"
2302
+ },
2303
+ {
2304
+ scheme: "basic",
2305
+ type: "http"
2306
+ }
2307
+ ],
2308
+ url: "/documents",
2309
+ ...options,
2310
+ headers: {
2311
+ "Content-Type": null,
1593
2312
  ...options.headers
1594
2313
  }
1595
2314
  });
@@ -1599,6 +2318,16 @@ var createDocuments = (options) => {
1599
2318
  ...formDataBodySerializer,
1600
2319
  requestValidator: void 0,
1601
2320
  responseValidator: void 0,
2321
+ security: [
2322
+ {
2323
+ scheme: "bearer",
2324
+ type: "http"
2325
+ },
2326
+ {
2327
+ scheme: "basic",
2328
+ type: "http"
2329
+ }
2330
+ ],
1602
2331
  url: "/documents/batch",
1603
2332
  ...options,
1604
2333
  headers: {
@@ -1611,6 +2340,16 @@ var deleteDocument = (options) => {
1611
2340
  return (options.client ?? client).delete({
1612
2341
  requestValidator: void 0,
1613
2342
  responseValidator: void 0,
2343
+ security: [
2344
+ {
2345
+ scheme: "bearer",
2346
+ type: "http"
2347
+ },
2348
+ {
2349
+ scheme: "basic",
2350
+ type: "http"
2351
+ }
2352
+ ],
1614
2353
  url: "/documents/{documentId}",
1615
2354
  ...options
1616
2355
  });
@@ -1619,6 +2358,16 @@ var getDocument = (options) => {
1619
2358
  return (options.client ?? client).get({
1620
2359
  requestValidator: void 0,
1621
2360
  responseValidator: void 0,
2361
+ security: [
2362
+ {
2363
+ scheme: "bearer",
2364
+ type: "http"
2365
+ },
2366
+ {
2367
+ scheme: "basic",
2368
+ type: "http"
2369
+ }
2370
+ ],
1622
2371
  url: "/documents/{documentId}",
1623
2372
  ...options
1624
2373
  });
@@ -1627,6 +2376,16 @@ var createDocumentLink = (options) => {
1627
2376
  return (options.client ?? client).post({
1628
2377
  requestValidator: void 0,
1629
2378
  responseValidator: void 0,
2379
+ security: [
2380
+ {
2381
+ scheme: "bearer",
2382
+ type: "http"
2383
+ },
2384
+ {
2385
+ scheme: "basic",
2386
+ type: "http"
2387
+ }
2388
+ ],
1630
2389
  url: "/documents/{documentId}/links",
1631
2390
  ...options,
1632
2391
  headers: {
@@ -1639,6 +2398,16 @@ var activateAdHocSubProcessActivities = (options) => {
1639
2398
  return (options.client ?? client).post({
1640
2399
  requestValidator: void 0,
1641
2400
  responseValidator: void 0,
2401
+ security: [
2402
+ {
2403
+ scheme: "bearer",
2404
+ type: "http"
2405
+ },
2406
+ {
2407
+ scheme: "basic",
2408
+ type: "http"
2409
+ }
2410
+ ],
1642
2411
  url: "/element-instances/ad-hoc-activities/{adHocSubProcessInstanceKey}/activation",
1643
2412
  ...options,
1644
2413
  headers: {
@@ -1647,10 +2416,42 @@ var activateAdHocSubProcessActivities = (options) => {
1647
2416
  }
1648
2417
  });
1649
2418
  };
2419
+ var searchElementInstanceWaitStates = (options) => {
2420
+ return (options?.client ?? client).post({
2421
+ requestValidator: void 0,
2422
+ responseValidator: void 0,
2423
+ security: [
2424
+ {
2425
+ scheme: "bearer",
2426
+ type: "http"
2427
+ },
2428
+ {
2429
+ scheme: "basic",
2430
+ type: "http"
2431
+ }
2432
+ ],
2433
+ url: "/element-instances/wait-states/search",
2434
+ ...options,
2435
+ headers: {
2436
+ "Content-Type": "application/json",
2437
+ ...options?.headers
2438
+ }
2439
+ });
2440
+ };
1650
2441
  var searchElementInstances = (options) => {
1651
2442
  return (options?.client ?? client).post({
1652
2443
  requestValidator: void 0,
1653
2444
  responseValidator: void 0,
2445
+ security: [
2446
+ {
2447
+ scheme: "bearer",
2448
+ type: "http"
2449
+ },
2450
+ {
2451
+ scheme: "basic",
2452
+ type: "http"
2453
+ }
2454
+ ],
1654
2455
  url: "/element-instances/search",
1655
2456
  ...options,
1656
2457
  headers: {
@@ -1663,6 +2464,16 @@ var getElementInstance = (options) => {
1663
2464
  return (options.client ?? client).get({
1664
2465
  requestValidator: void 0,
1665
2466
  responseValidator: void 0,
2467
+ security: [
2468
+ {
2469
+ scheme: "bearer",
2470
+ type: "http"
2471
+ },
2472
+ {
2473
+ scheme: "basic",
2474
+ type: "http"
2475
+ }
2476
+ ],
1666
2477
  url: "/element-instances/{elementInstanceKey}",
1667
2478
  ...options
1668
2479
  });
@@ -1671,6 +2482,16 @@ var searchElementInstanceIncidents = (options) => {
1671
2482
  return (options.client ?? client).post({
1672
2483
  requestValidator: void 0,
1673
2484
  responseValidator: void 0,
2485
+ security: [
2486
+ {
2487
+ scheme: "bearer",
2488
+ type: "http"
2489
+ },
2490
+ {
2491
+ scheme: "basic",
2492
+ type: "http"
2493
+ }
2494
+ ],
1674
2495
  url: "/element-instances/{elementInstanceKey}/incidents/search",
1675
2496
  ...options,
1676
2497
  headers: {
@@ -1683,6 +2504,16 @@ var createElementInstanceVariables = (options) => {
1683
2504
  return (options.client ?? client).put({
1684
2505
  requestValidator: void 0,
1685
2506
  responseValidator: void 0,
2507
+ security: [
2508
+ {
2509
+ scheme: "bearer",
2510
+ type: "http"
2511
+ },
2512
+ {
2513
+ scheme: "basic",
2514
+ type: "http"
2515
+ }
2516
+ ],
1686
2517
  url: "/element-instances/{elementInstanceKey}/variables",
1687
2518
  ...options,
1688
2519
  headers: {
@@ -1695,6 +2526,16 @@ var evaluateExpression = (options) => {
1695
2526
  return (options.client ?? client).post({
1696
2527
  requestValidator: void 0,
1697
2528
  responseValidator: void 0,
2529
+ security: [
2530
+ {
2531
+ scheme: "bearer",
2532
+ type: "http"
2533
+ },
2534
+ {
2535
+ scheme: "basic",
2536
+ type: "http"
2537
+ }
2538
+ ],
1698
2539
  url: "/expression/evaluation",
1699
2540
  ...options,
1700
2541
  headers: {
@@ -1703,10 +2544,38 @@ var evaluateExpression = (options) => {
1703
2544
  }
1704
2545
  });
1705
2546
  };
2547
+ var getFormByKey = (options) => {
2548
+ return (options.client ?? client).get({
2549
+ requestValidator: void 0,
2550
+ responseValidator: void 0,
2551
+ security: [
2552
+ {
2553
+ scheme: "bearer",
2554
+ type: "http"
2555
+ },
2556
+ {
2557
+ scheme: "basic",
2558
+ type: "http"
2559
+ }
2560
+ ],
2561
+ url: "/forms/{formKey}",
2562
+ ...options
2563
+ });
2564
+ };
1706
2565
  var createGlobalTaskListener = (options) => {
1707
2566
  return (options.client ?? client).post({
1708
2567
  requestValidator: void 0,
1709
2568
  responseValidator: void 0,
2569
+ security: [
2570
+ {
2571
+ scheme: "bearer",
2572
+ type: "http"
2573
+ },
2574
+ {
2575
+ scheme: "basic",
2576
+ type: "http"
2577
+ }
2578
+ ],
1710
2579
  url: "/global-task-listeners",
1711
2580
  ...options,
1712
2581
  headers: {
@@ -1719,6 +2588,16 @@ var deleteGlobalTaskListener = (options) => {
1719
2588
  return (options.client ?? client).delete({
1720
2589
  requestValidator: void 0,
1721
2590
  responseValidator: void 0,
2591
+ security: [
2592
+ {
2593
+ scheme: "bearer",
2594
+ type: "http"
2595
+ },
2596
+ {
2597
+ scheme: "basic",
2598
+ type: "http"
2599
+ }
2600
+ ],
1722
2601
  url: "/global-task-listeners/{id}",
1723
2602
  ...options
1724
2603
  });
@@ -1727,6 +2606,16 @@ var getGlobalTaskListener = (options) => {
1727
2606
  return (options.client ?? client).get({
1728
2607
  requestValidator: void 0,
1729
2608
  responseValidator: void 0,
2609
+ security: [
2610
+ {
2611
+ scheme: "bearer",
2612
+ type: "http"
2613
+ },
2614
+ {
2615
+ scheme: "basic",
2616
+ type: "http"
2617
+ }
2618
+ ],
1730
2619
  url: "/global-task-listeners/{id}",
1731
2620
  ...options
1732
2621
  });
@@ -1735,6 +2624,16 @@ var updateGlobalTaskListener = (options) => {
1735
2624
  return (options.client ?? client).put({
1736
2625
  requestValidator: void 0,
1737
2626
  responseValidator: void 0,
2627
+ security: [
2628
+ {
2629
+ scheme: "bearer",
2630
+ type: "http"
2631
+ },
2632
+ {
2633
+ scheme: "basic",
2634
+ type: "http"
2635
+ }
2636
+ ],
1738
2637
  url: "/global-task-listeners/{id}",
1739
2638
  ...options,
1740
2639
  headers: {
@@ -1747,6 +2646,16 @@ var searchGlobalTaskListeners = (options) => {
1747
2646
  return (options?.client ?? client).post({
1748
2647
  requestValidator: void 0,
1749
2648
  responseValidator: void 0,
2649
+ security: [
2650
+ {
2651
+ scheme: "bearer",
2652
+ type: "http"
2653
+ },
2654
+ {
2655
+ scheme: "basic",
2656
+ type: "http"
2657
+ }
2658
+ ],
1750
2659
  url: "/global-task-listeners/search",
1751
2660
  ...options,
1752
2661
  headers: {
@@ -1759,6 +2668,16 @@ var createGroup = (options) => {
1759
2668
  return (options?.client ?? client).post({
1760
2669
  requestValidator: void 0,
1761
2670
  responseValidator: void 0,
2671
+ security: [
2672
+ {
2673
+ scheme: "bearer",
2674
+ type: "http"
2675
+ },
2676
+ {
2677
+ scheme: "basic",
2678
+ type: "http"
2679
+ }
2680
+ ],
1762
2681
  url: "/groups",
1763
2682
  ...options,
1764
2683
  headers: {
@@ -1771,6 +2690,16 @@ var searchGroups = (options) => {
1771
2690
  return (options?.client ?? client).post({
1772
2691
  requestValidator: void 0,
1773
2692
  responseValidator: void 0,
2693
+ security: [
2694
+ {
2695
+ scheme: "bearer",
2696
+ type: "http"
2697
+ },
2698
+ {
2699
+ scheme: "basic",
2700
+ type: "http"
2701
+ }
2702
+ ],
1774
2703
  url: "/groups/search",
1775
2704
  ...options,
1776
2705
  headers: {
@@ -1783,6 +2712,16 @@ var deleteGroup = (options) => {
1783
2712
  return (options.client ?? client).delete({
1784
2713
  requestValidator: void 0,
1785
2714
  responseValidator: void 0,
2715
+ security: [
2716
+ {
2717
+ scheme: "bearer",
2718
+ type: "http"
2719
+ },
2720
+ {
2721
+ scheme: "basic",
2722
+ type: "http"
2723
+ }
2724
+ ],
1786
2725
  url: "/groups/{groupId}",
1787
2726
  ...options
1788
2727
  });
@@ -1791,6 +2730,16 @@ var getGroup = (options) => {
1791
2730
  return (options.client ?? client).get({
1792
2731
  requestValidator: void 0,
1793
2732
  responseValidator: void 0,
2733
+ security: [
2734
+ {
2735
+ scheme: "bearer",
2736
+ type: "http"
2737
+ },
2738
+ {
2739
+ scheme: "basic",
2740
+ type: "http"
2741
+ }
2742
+ ],
1794
2743
  url: "/groups/{groupId}",
1795
2744
  ...options
1796
2745
  });
@@ -1799,6 +2748,16 @@ var updateGroup = (options) => {
1799
2748
  return (options.client ?? client).put({
1800
2749
  requestValidator: void 0,
1801
2750
  responseValidator: void 0,
2751
+ security: [
2752
+ {
2753
+ scheme: "bearer",
2754
+ type: "http"
2755
+ },
2756
+ {
2757
+ scheme: "basic",
2758
+ type: "http"
2759
+ }
2760
+ ],
1802
2761
  url: "/groups/{groupId}",
1803
2762
  ...options,
1804
2763
  headers: {
@@ -1811,6 +2770,16 @@ var searchClientsForGroup = (options) => {
1811
2770
  return (options.client ?? client).post({
1812
2771
  requestValidator: void 0,
1813
2772
  responseValidator: void 0,
2773
+ security: [
2774
+ {
2775
+ scheme: "bearer",
2776
+ type: "http"
2777
+ },
2778
+ {
2779
+ scheme: "basic",
2780
+ type: "http"
2781
+ }
2782
+ ],
1814
2783
  url: "/groups/{groupId}/clients/search",
1815
2784
  ...options,
1816
2785
  headers: {
@@ -1823,6 +2792,16 @@ var unassignClientFromGroup = (options) => {
1823
2792
  return (options.client ?? client).delete({
1824
2793
  requestValidator: void 0,
1825
2794
  responseValidator: void 0,
2795
+ security: [
2796
+ {
2797
+ scheme: "bearer",
2798
+ type: "http"
2799
+ },
2800
+ {
2801
+ scheme: "basic",
2802
+ type: "http"
2803
+ }
2804
+ ],
1826
2805
  url: "/groups/{groupId}/clients/{clientId}",
1827
2806
  ...options
1828
2807
  });
@@ -1831,6 +2810,16 @@ var assignClientToGroup = (options) => {
1831
2810
  return (options.client ?? client).put({
1832
2811
  requestValidator: void 0,
1833
2812
  responseValidator: void 0,
2813
+ security: [
2814
+ {
2815
+ scheme: "bearer",
2816
+ type: "http"
2817
+ },
2818
+ {
2819
+ scheme: "basic",
2820
+ type: "http"
2821
+ }
2822
+ ],
1834
2823
  url: "/groups/{groupId}/clients/{clientId}",
1835
2824
  ...options
1836
2825
  });
@@ -1839,6 +2828,16 @@ var searchMappingRulesForGroup = (options) => {
1839
2828
  return (options.client ?? client).post({
1840
2829
  requestValidator: void 0,
1841
2830
  responseValidator: void 0,
2831
+ security: [
2832
+ {
2833
+ scheme: "bearer",
2834
+ type: "http"
2835
+ },
2836
+ {
2837
+ scheme: "basic",
2838
+ type: "http"
2839
+ }
2840
+ ],
1842
2841
  url: "/groups/{groupId}/mapping-rules/search",
1843
2842
  ...options,
1844
2843
  headers: {
@@ -1851,6 +2850,16 @@ var unassignMappingRuleFromGroup = (options) => {
1851
2850
  return (options.client ?? client).delete({
1852
2851
  requestValidator: void 0,
1853
2852
  responseValidator: void 0,
2853
+ security: [
2854
+ {
2855
+ scheme: "bearer",
2856
+ type: "http"
2857
+ },
2858
+ {
2859
+ scheme: "basic",
2860
+ type: "http"
2861
+ }
2862
+ ],
1854
2863
  url: "/groups/{groupId}/mapping-rules/{mappingRuleId}",
1855
2864
  ...options
1856
2865
  });
@@ -1859,6 +2868,16 @@ var assignMappingRuleToGroup = (options) => {
1859
2868
  return (options.client ?? client).put({
1860
2869
  requestValidator: void 0,
1861
2870
  responseValidator: void 0,
2871
+ security: [
2872
+ {
2873
+ scheme: "bearer",
2874
+ type: "http"
2875
+ },
2876
+ {
2877
+ scheme: "basic",
2878
+ type: "http"
2879
+ }
2880
+ ],
1862
2881
  url: "/groups/{groupId}/mapping-rules/{mappingRuleId}",
1863
2882
  ...options
1864
2883
  });
@@ -1867,6 +2886,16 @@ var searchRolesForGroup = (options) => {
1867
2886
  return (options.client ?? client).post({
1868
2887
  requestValidator: void 0,
1869
2888
  responseValidator: void 0,
2889
+ security: [
2890
+ {
2891
+ scheme: "bearer",
2892
+ type: "http"
2893
+ },
2894
+ {
2895
+ scheme: "basic",
2896
+ type: "http"
2897
+ }
2898
+ ],
1870
2899
  url: "/groups/{groupId}/roles/search",
1871
2900
  ...options,
1872
2901
  headers: {
@@ -1879,6 +2908,16 @@ var searchUsersForGroup = (options) => {
1879
2908
  return (options.client ?? client).post({
1880
2909
  requestValidator: void 0,
1881
2910
  responseValidator: void 0,
2911
+ security: [
2912
+ {
2913
+ scheme: "bearer",
2914
+ type: "http"
2915
+ },
2916
+ {
2917
+ scheme: "basic",
2918
+ type: "http"
2919
+ }
2920
+ ],
1882
2921
  url: "/groups/{groupId}/users/search",
1883
2922
  ...options,
1884
2923
  headers: {
@@ -1891,6 +2930,16 @@ var unassignUserFromGroup = (options) => {
1891
2930
  return (options.client ?? client).delete({
1892
2931
  requestValidator: void 0,
1893
2932
  responseValidator: void 0,
2933
+ security: [
2934
+ {
2935
+ scheme: "bearer",
2936
+ type: "http"
2937
+ },
2938
+ {
2939
+ scheme: "basic",
2940
+ type: "http"
2941
+ }
2942
+ ],
1894
2943
  url: "/groups/{groupId}/users/{username}",
1895
2944
  ...options
1896
2945
  });
@@ -1899,6 +2948,16 @@ var assignUserToGroup = (options) => {
1899
2948
  return (options.client ?? client).put({
1900
2949
  requestValidator: void 0,
1901
2950
  responseValidator: void 0,
2951
+ security: [
2952
+ {
2953
+ scheme: "bearer",
2954
+ type: "http"
2955
+ },
2956
+ {
2957
+ scheme: "basic",
2958
+ type: "http"
2959
+ }
2960
+ ],
1902
2961
  url: "/groups/{groupId}/users/{username}",
1903
2962
  ...options
1904
2963
  });
@@ -1907,6 +2966,16 @@ var searchIncidents = (options) => {
1907
2966
  return (options?.client ?? client).post({
1908
2967
  requestValidator: void 0,
1909
2968
  responseValidator: void 0,
2969
+ security: [
2970
+ {
2971
+ scheme: "bearer",
2972
+ type: "http"
2973
+ },
2974
+ {
2975
+ scheme: "basic",
2976
+ type: "http"
2977
+ }
2978
+ ],
1910
2979
  url: "/incidents/search",
1911
2980
  ...options,
1912
2981
  headers: {
@@ -1919,6 +2988,16 @@ var getIncident = (options) => {
1919
2988
  return (options.client ?? client).get({
1920
2989
  requestValidator: void 0,
1921
2990
  responseValidator: void 0,
2991
+ security: [
2992
+ {
2993
+ scheme: "bearer",
2994
+ type: "http"
2995
+ },
2996
+ {
2997
+ scheme: "basic",
2998
+ type: "http"
2999
+ }
3000
+ ],
1922
3001
  url: "/incidents/{incidentKey}",
1923
3002
  ...options
1924
3003
  });
@@ -1927,6 +3006,16 @@ var resolveIncident = (options) => {
1927
3006
  return (options.client ?? client).post({
1928
3007
  requestValidator: void 0,
1929
3008
  responseValidator: void 0,
3009
+ security: [
3010
+ {
3011
+ scheme: "bearer",
3012
+ type: "http"
3013
+ },
3014
+ {
3015
+ scheme: "basic",
3016
+ type: "http"
3017
+ }
3018
+ ],
1930
3019
  url: "/incidents/{incidentKey}/resolution",
1931
3020
  ...options,
1932
3021
  headers: {
@@ -1939,6 +3028,16 @@ var getProcessInstanceStatisticsByDefinition = (options) => {
1939
3028
  return (options.client ?? client).post({
1940
3029
  requestValidator: void 0,
1941
3030
  responseValidator: void 0,
3031
+ security: [
3032
+ {
3033
+ scheme: "bearer",
3034
+ type: "http"
3035
+ },
3036
+ {
3037
+ scheme: "basic",
3038
+ type: "http"
3039
+ }
3040
+ ],
1942
3041
  url: "/incidents/statistics/process-instances-by-definition",
1943
3042
  ...options,
1944
3043
  headers: {
@@ -1951,6 +3050,16 @@ var getProcessInstanceStatisticsByError = (options) => {
1951
3050
  return (options?.client ?? client).post({
1952
3051
  requestValidator: void 0,
1953
3052
  responseValidator: void 0,
3053
+ security: [
3054
+ {
3055
+ scheme: "bearer",
3056
+ type: "http"
3057
+ },
3058
+ {
3059
+ scheme: "basic",
3060
+ type: "http"
3061
+ }
3062
+ ],
1954
3063
  url: "/incidents/statistics/process-instances-by-error",
1955
3064
  ...options,
1956
3065
  headers: {
@@ -1963,6 +3072,16 @@ var activateJobs = (options) => {
1963
3072
  return (options.client ?? client).post({
1964
3073
  requestValidator: void 0,
1965
3074
  responseValidator: void 0,
3075
+ security: [
3076
+ {
3077
+ scheme: "bearer",
3078
+ type: "http"
3079
+ },
3080
+ {
3081
+ scheme: "basic",
3082
+ type: "http"
3083
+ }
3084
+ ],
1966
3085
  url: "/jobs/activation",
1967
3086
  ...options,
1968
3087
  headers: {
@@ -1975,6 +3094,16 @@ var searchJobs = (options) => {
1975
3094
  return (options?.client ?? client).post({
1976
3095
  requestValidator: void 0,
1977
3096
  responseValidator: void 0,
3097
+ security: [
3098
+ {
3099
+ scheme: "bearer",
3100
+ type: "http"
3101
+ },
3102
+ {
3103
+ scheme: "basic",
3104
+ type: "http"
3105
+ }
3106
+ ],
1978
3107
  url: "/jobs/search",
1979
3108
  ...options,
1980
3109
  headers: {
@@ -1987,6 +3116,16 @@ var updateJob = (options) => {
1987
3116
  return (options.client ?? client).patch({
1988
3117
  requestValidator: void 0,
1989
3118
  responseValidator: void 0,
3119
+ security: [
3120
+ {
3121
+ scheme: "bearer",
3122
+ type: "http"
3123
+ },
3124
+ {
3125
+ scheme: "basic",
3126
+ type: "http"
3127
+ }
3128
+ ],
1990
3129
  url: "/jobs/{jobKey}",
1991
3130
  ...options,
1992
3131
  headers: {
@@ -1999,6 +3138,16 @@ var completeJob = (options) => {
1999
3138
  return (options.client ?? client).post({
2000
3139
  requestValidator: void 0,
2001
3140
  responseValidator: void 0,
3141
+ security: [
3142
+ {
3143
+ scheme: "bearer",
3144
+ type: "http"
3145
+ },
3146
+ {
3147
+ scheme: "basic",
3148
+ type: "http"
3149
+ }
3150
+ ],
2002
3151
  url: "/jobs/{jobKey}/completion",
2003
3152
  ...options,
2004
3153
  headers: {
@@ -2011,6 +3160,16 @@ var throwJobError = (options) => {
2011
3160
  return (options.client ?? client).post({
2012
3161
  requestValidator: void 0,
2013
3162
  responseValidator: void 0,
3163
+ security: [
3164
+ {
3165
+ scheme: "bearer",
3166
+ type: "http"
3167
+ },
3168
+ {
3169
+ scheme: "basic",
3170
+ type: "http"
3171
+ }
3172
+ ],
2014
3173
  url: "/jobs/{jobKey}/error",
2015
3174
  ...options,
2016
3175
  headers: {
@@ -2023,6 +3182,16 @@ var failJob = (options) => {
2023
3182
  return (options.client ?? client).post({
2024
3183
  requestValidator: void 0,
2025
3184
  responseValidator: void 0,
3185
+ security: [
3186
+ {
3187
+ scheme: "bearer",
3188
+ type: "http"
3189
+ },
3190
+ {
3191
+ scheme: "basic",
3192
+ type: "http"
3193
+ }
3194
+ ],
2026
3195
  url: "/jobs/{jobKey}/failure",
2027
3196
  ...options,
2028
3197
  headers: {
@@ -2035,6 +3204,16 @@ var getGlobalJobStatistics = (options) => {
2035
3204
  return (options.client ?? client).get({
2036
3205
  requestValidator: void 0,
2037
3206
  responseValidator: void 0,
3207
+ security: [
3208
+ {
3209
+ scheme: "bearer",
3210
+ type: "http"
3211
+ },
3212
+ {
3213
+ scheme: "basic",
3214
+ type: "http"
3215
+ }
3216
+ ],
2038
3217
  url: "/jobs/statistics/global",
2039
3218
  ...options
2040
3219
  });
@@ -2043,6 +3222,16 @@ var getJobTypeStatistics = (options) => {
2043
3222
  return (options.client ?? client).post({
2044
3223
  requestValidator: void 0,
2045
3224
  responseValidator: void 0,
3225
+ security: [
3226
+ {
3227
+ scheme: "bearer",
3228
+ type: "http"
3229
+ },
3230
+ {
3231
+ scheme: "basic",
3232
+ type: "http"
3233
+ }
3234
+ ],
2046
3235
  url: "/jobs/statistics/by-types",
2047
3236
  ...options,
2048
3237
  headers: {
@@ -2055,6 +3244,16 @@ var getJobWorkerStatistics = (options) => {
2055
3244
  return (options.client ?? client).post({
2056
3245
  requestValidator: void 0,
2057
3246
  responseValidator: void 0,
3247
+ security: [
3248
+ {
3249
+ scheme: "bearer",
3250
+ type: "http"
3251
+ },
3252
+ {
3253
+ scheme: "basic",
3254
+ type: "http"
3255
+ }
3256
+ ],
2058
3257
  url: "/jobs/statistics/by-workers",
2059
3258
  ...options,
2060
3259
  headers: {
@@ -2067,6 +3266,16 @@ var getJobTimeSeriesStatistics = (options) => {
2067
3266
  return (options.client ?? client).post({
2068
3267
  requestValidator: void 0,
2069
3268
  responseValidator: void 0,
3269
+ security: [
3270
+ {
3271
+ scheme: "bearer",
3272
+ type: "http"
3273
+ },
3274
+ {
3275
+ scheme: "basic",
3276
+ type: "http"
3277
+ }
3278
+ ],
2070
3279
  url: "/jobs/statistics/time-series",
2071
3280
  ...options,
2072
3281
  headers: {
@@ -2079,6 +3288,16 @@ var getJobErrorStatistics = (options) => {
2079
3288
  return (options.client ?? client).post({
2080
3289
  requestValidator: void 0,
2081
3290
  responseValidator: void 0,
3291
+ security: [
3292
+ {
3293
+ scheme: "bearer",
3294
+ type: "http"
3295
+ },
3296
+ {
3297
+ scheme: "basic",
3298
+ type: "http"
3299
+ }
3300
+ ],
2082
3301
  url: "/jobs/statistics/errors",
2083
3302
  ...options,
2084
3303
  headers: {
@@ -2099,6 +3318,16 @@ var createMappingRule = (options) => {
2099
3318
  return (options?.client ?? client).post({
2100
3319
  requestValidator: void 0,
2101
3320
  responseValidator: void 0,
3321
+ security: [
3322
+ {
3323
+ scheme: "bearer",
3324
+ type: "http"
3325
+ },
3326
+ {
3327
+ scheme: "basic",
3328
+ type: "http"
3329
+ }
3330
+ ],
2102
3331
  url: "/mapping-rules",
2103
3332
  ...options,
2104
3333
  headers: {
@@ -2111,6 +3340,16 @@ var searchMappingRule = (options) => {
2111
3340
  return (options?.client ?? client).post({
2112
3341
  requestValidator: void 0,
2113
3342
  responseValidator: void 0,
3343
+ security: [
3344
+ {
3345
+ scheme: "bearer",
3346
+ type: "http"
3347
+ },
3348
+ {
3349
+ scheme: "basic",
3350
+ type: "http"
3351
+ }
3352
+ ],
2114
3353
  url: "/mapping-rules/search",
2115
3354
  ...options,
2116
3355
  headers: {
@@ -2123,6 +3362,16 @@ var deleteMappingRule = (options) => {
2123
3362
  return (options.client ?? client).delete({
2124
3363
  requestValidator: void 0,
2125
3364
  responseValidator: void 0,
3365
+ security: [
3366
+ {
3367
+ scheme: "bearer",
3368
+ type: "http"
3369
+ },
3370
+ {
3371
+ scheme: "basic",
3372
+ type: "http"
3373
+ }
3374
+ ],
2126
3375
  url: "/mapping-rules/{mappingRuleId}",
2127
3376
  ...options
2128
3377
  });
@@ -2131,6 +3380,16 @@ var getMappingRule = (options) => {
2131
3380
  return (options.client ?? client).get({
2132
3381
  requestValidator: void 0,
2133
3382
  responseValidator: void 0,
3383
+ security: [
3384
+ {
3385
+ scheme: "bearer",
3386
+ type: "http"
3387
+ },
3388
+ {
3389
+ scheme: "basic",
3390
+ type: "http"
3391
+ }
3392
+ ],
2134
3393
  url: "/mapping-rules/{mappingRuleId}",
2135
3394
  ...options
2136
3395
  });
@@ -2139,6 +3398,16 @@ var updateMappingRule = (options) => {
2139
3398
  return (options.client ?? client).put({
2140
3399
  requestValidator: void 0,
2141
3400
  responseValidator: void 0,
3401
+ security: [
3402
+ {
3403
+ scheme: "bearer",
3404
+ type: "http"
3405
+ },
3406
+ {
3407
+ scheme: "basic",
3408
+ type: "http"
3409
+ }
3410
+ ],
2142
3411
  url: "/mapping-rules/{mappingRuleId}",
2143
3412
  ...options,
2144
3413
  headers: {
@@ -2151,6 +3420,16 @@ var searchMessageSubscriptions = (options) => {
2151
3420
  return (options?.client ?? client).post({
2152
3421
  requestValidator: void 0,
2153
3422
  responseValidator: void 0,
3423
+ security: [
3424
+ {
3425
+ scheme: "bearer",
3426
+ type: "http"
3427
+ },
3428
+ {
3429
+ scheme: "basic",
3430
+ type: "http"
3431
+ }
3432
+ ],
2154
3433
  url: "/message-subscriptions/search",
2155
3434
  ...options,
2156
3435
  headers: {
@@ -2163,6 +3442,16 @@ var correlateMessage = (options) => {
2163
3442
  return (options.client ?? client).post({
2164
3443
  requestValidator: void 0,
2165
3444
  responseValidator: void 0,
3445
+ security: [
3446
+ {
3447
+ scheme: "bearer",
3448
+ type: "http"
3449
+ },
3450
+ {
3451
+ scheme: "basic",
3452
+ type: "http"
3453
+ }
3454
+ ],
2166
3455
  url: "/messages/correlation",
2167
3456
  ...options,
2168
3457
  headers: {
@@ -2175,6 +3464,16 @@ var publishMessage = (options) => {
2175
3464
  return (options.client ?? client).post({
2176
3465
  requestValidator: void 0,
2177
3466
  responseValidator: void 0,
3467
+ security: [
3468
+ {
3469
+ scheme: "bearer",
3470
+ type: "http"
3471
+ },
3472
+ {
3473
+ scheme: "basic",
3474
+ type: "http"
3475
+ }
3476
+ ],
2178
3477
  url: "/messages/publication",
2179
3478
  ...options,
2180
3479
  headers: {
@@ -2187,6 +3486,16 @@ var searchProcessDefinitions = (options) => {
2187
3486
  return (options?.client ?? client).post({
2188
3487
  requestValidator: void 0,
2189
3488
  responseValidator: void 0,
3489
+ security: [
3490
+ {
3491
+ scheme: "bearer",
3492
+ type: "http"
3493
+ },
3494
+ {
3495
+ scheme: "basic",
3496
+ type: "http"
3497
+ }
3498
+ ],
2190
3499
  url: "/process-definitions/search",
2191
3500
  ...options,
2192
3501
  headers: {
@@ -2199,6 +3508,16 @@ var getProcessDefinitionMessageSubscriptionStatistics = (options) => {
2199
3508
  return (options?.client ?? client).post({
2200
3509
  requestValidator: void 0,
2201
3510
  responseValidator: void 0,
3511
+ security: [
3512
+ {
3513
+ scheme: "bearer",
3514
+ type: "http"
3515
+ },
3516
+ {
3517
+ scheme: "basic",
3518
+ type: "http"
3519
+ }
3520
+ ],
2202
3521
  url: "/process-definitions/statistics/message-subscriptions",
2203
3522
  ...options,
2204
3523
  headers: {
@@ -2211,6 +3530,16 @@ var getProcessDefinitionInstanceStatistics = (options) => {
2211
3530
  return (options?.client ?? client).post({
2212
3531
  requestValidator: void 0,
2213
3532
  responseValidator: void 0,
3533
+ security: [
3534
+ {
3535
+ scheme: "bearer",
3536
+ type: "http"
3537
+ },
3538
+ {
3539
+ scheme: "basic",
3540
+ type: "http"
3541
+ }
3542
+ ],
2214
3543
  url: "/process-definitions/statistics/process-instances",
2215
3544
  ...options,
2216
3545
  headers: {
@@ -2223,6 +3552,16 @@ var getProcessDefinition = (options) => {
2223
3552
  return (options.client ?? client).get({
2224
3553
  requestValidator: void 0,
2225
3554
  responseValidator: void 0,
3555
+ security: [
3556
+ {
3557
+ scheme: "bearer",
3558
+ type: "http"
3559
+ },
3560
+ {
3561
+ scheme: "basic",
3562
+ type: "http"
3563
+ }
3564
+ ],
2226
3565
  url: "/process-definitions/{processDefinitionKey}",
2227
3566
  ...options
2228
3567
  });
@@ -2231,6 +3570,16 @@ var getStartProcessForm = (options) => {
2231
3570
  return (options.client ?? client).get({
2232
3571
  requestValidator: void 0,
2233
3572
  responseValidator: void 0,
3573
+ security: [
3574
+ {
3575
+ scheme: "bearer",
3576
+ type: "http"
3577
+ },
3578
+ {
3579
+ scheme: "basic",
3580
+ type: "http"
3581
+ }
3582
+ ],
2234
3583
  url: "/process-definitions/{processDefinitionKey}/form",
2235
3584
  ...options
2236
3585
  });
@@ -2239,6 +3588,16 @@ var getProcessDefinitionStatistics = (options) => {
2239
3588
  return (options.client ?? client).post({
2240
3589
  requestValidator: void 0,
2241
3590
  responseValidator: void 0,
3591
+ security: [
3592
+ {
3593
+ scheme: "bearer",
3594
+ type: "http"
3595
+ },
3596
+ {
3597
+ scheme: "basic",
3598
+ type: "http"
3599
+ }
3600
+ ],
2242
3601
  url: "/process-definitions/{processDefinitionKey}/statistics/element-instances",
2243
3602
  ...options,
2244
3603
  headers: {
@@ -2251,6 +3610,16 @@ var getProcessDefinitionXml = (options) => {
2251
3610
  return (options.client ?? client).get({
2252
3611
  requestValidator: void 0,
2253
3612
  responseValidator: void 0,
3613
+ security: [
3614
+ {
3615
+ scheme: "bearer",
3616
+ type: "http"
3617
+ },
3618
+ {
3619
+ scheme: "basic",
3620
+ type: "http"
3621
+ }
3622
+ ],
2254
3623
  url: "/process-definitions/{processDefinitionKey}/xml",
2255
3624
  ...options
2256
3625
  });
@@ -2259,6 +3628,16 @@ var getProcessDefinitionInstanceVersionStatistics = (options) => {
2259
3628
  return (options.client ?? client).post({
2260
3629
  requestValidator: void 0,
2261
3630
  responseValidator: void 0,
3631
+ security: [
3632
+ {
3633
+ scheme: "bearer",
3634
+ type: "http"
3635
+ },
3636
+ {
3637
+ scheme: "basic",
3638
+ type: "http"
3639
+ }
3640
+ ],
2262
3641
  url: "/process-definitions/statistics/process-instances-by-version",
2263
3642
  ...options,
2264
3643
  headers: {
@@ -2271,6 +3650,16 @@ var createProcessInstance = (options) => {
2271
3650
  return (options.client ?? client).post({
2272
3651
  requestValidator: void 0,
2273
3652
  responseValidator: void 0,
3653
+ security: [
3654
+ {
3655
+ scheme: "bearer",
3656
+ type: "http"
3657
+ },
3658
+ {
3659
+ scheme: "basic",
3660
+ type: "http"
3661
+ }
3662
+ ],
2274
3663
  url: "/process-instances",
2275
3664
  ...options,
2276
3665
  headers: {
@@ -2283,6 +3672,16 @@ var cancelProcessInstancesBatchOperation = (options) => {
2283
3672
  return (options.client ?? client).post({
2284
3673
  requestValidator: void 0,
2285
3674
  responseValidator: void 0,
3675
+ security: [
3676
+ {
3677
+ scheme: "bearer",
3678
+ type: "http"
3679
+ },
3680
+ {
3681
+ scheme: "basic",
3682
+ type: "http"
3683
+ }
3684
+ ],
2286
3685
  url: "/process-instances/cancellation",
2287
3686
  ...options,
2288
3687
  headers: {
@@ -2295,6 +3694,16 @@ var deleteProcessInstancesBatchOperation = (options) => {
2295
3694
  return (options.client ?? client).post({
2296
3695
  requestValidator: void 0,
2297
3696
  responseValidator: void 0,
3697
+ security: [
3698
+ {
3699
+ scheme: "bearer",
3700
+ type: "http"
3701
+ },
3702
+ {
3703
+ scheme: "basic",
3704
+ type: "http"
3705
+ }
3706
+ ],
2298
3707
  url: "/process-instances/deletion",
2299
3708
  ...options,
2300
3709
  headers: {
@@ -2307,6 +3716,16 @@ var resolveIncidentsBatchOperation = (options) => {
2307
3716
  return (options?.client ?? client).post({
2308
3717
  requestValidator: void 0,
2309
3718
  responseValidator: void 0,
3719
+ security: [
3720
+ {
3721
+ scheme: "bearer",
3722
+ type: "http"
3723
+ },
3724
+ {
3725
+ scheme: "basic",
3726
+ type: "http"
3727
+ }
3728
+ ],
2310
3729
  url: "/process-instances/incident-resolution",
2311
3730
  ...options,
2312
3731
  headers: {
@@ -2319,6 +3738,16 @@ var migrateProcessInstancesBatchOperation = (options) => {
2319
3738
  return (options.client ?? client).post({
2320
3739
  requestValidator: void 0,
2321
3740
  responseValidator: void 0,
3741
+ security: [
3742
+ {
3743
+ scheme: "bearer",
3744
+ type: "http"
3745
+ },
3746
+ {
3747
+ scheme: "basic",
3748
+ type: "http"
3749
+ }
3750
+ ],
2322
3751
  url: "/process-instances/migration",
2323
3752
  ...options,
2324
3753
  headers: {
@@ -2331,6 +3760,16 @@ var modifyProcessInstancesBatchOperation = (options) => {
2331
3760
  return (options.client ?? client).post({
2332
3761
  requestValidator: void 0,
2333
3762
  responseValidator: void 0,
3763
+ security: [
3764
+ {
3765
+ scheme: "bearer",
3766
+ type: "http"
3767
+ },
3768
+ {
3769
+ scheme: "basic",
3770
+ type: "http"
3771
+ }
3772
+ ],
2334
3773
  url: "/process-instances/modification",
2335
3774
  ...options,
2336
3775
  headers: {
@@ -2343,6 +3782,16 @@ var searchProcessInstances = (options) => {
2343
3782
  return (options?.client ?? client).post({
2344
3783
  requestValidator: void 0,
2345
3784
  responseValidator: void 0,
3785
+ security: [
3786
+ {
3787
+ scheme: "bearer",
3788
+ type: "http"
3789
+ },
3790
+ {
3791
+ scheme: "basic",
3792
+ type: "http"
3793
+ }
3794
+ ],
2346
3795
  url: "/process-instances/search",
2347
3796
  ...options,
2348
3797
  headers: {
@@ -2355,6 +3804,16 @@ var getProcessInstance = (options) => {
2355
3804
  return (options.client ?? client).get({
2356
3805
  requestValidator: void 0,
2357
3806
  responseValidator: void 0,
3807
+ security: [
3808
+ {
3809
+ scheme: "bearer",
3810
+ type: "http"
3811
+ },
3812
+ {
3813
+ scheme: "basic",
3814
+ type: "http"
3815
+ }
3816
+ ],
2358
3817
  url: "/process-instances/{processInstanceKey}",
2359
3818
  ...options
2360
3819
  });
@@ -2363,6 +3822,16 @@ var getProcessInstanceCallHierarchy = (options) => {
2363
3822
  return (options.client ?? client).get({
2364
3823
  requestValidator: void 0,
2365
3824
  responseValidator: void 0,
3825
+ security: [
3826
+ {
3827
+ scheme: "bearer",
3828
+ type: "http"
3829
+ },
3830
+ {
3831
+ scheme: "basic",
3832
+ type: "http"
3833
+ }
3834
+ ],
2366
3835
  url: "/process-instances/{processInstanceKey}/call-hierarchy",
2367
3836
  ...options
2368
3837
  });
@@ -2371,6 +3840,16 @@ var cancelProcessInstance = (options) => {
2371
3840
  return (options.client ?? client).post({
2372
3841
  requestValidator: void 0,
2373
3842
  responseValidator: void 0,
3843
+ security: [
3844
+ {
3845
+ scheme: "bearer",
3846
+ type: "http"
3847
+ },
3848
+ {
3849
+ scheme: "basic",
3850
+ type: "http"
3851
+ }
3852
+ ],
2374
3853
  url: "/process-instances/{processInstanceKey}/cancellation",
2375
3854
  ...options,
2376
3855
  headers: {
@@ -2383,6 +3862,16 @@ var deleteProcessInstance = (options) => {
2383
3862
  return (options.client ?? client).post({
2384
3863
  requestValidator: void 0,
2385
3864
  responseValidator: void 0,
3865
+ security: [
3866
+ {
3867
+ scheme: "bearer",
3868
+ type: "http"
3869
+ },
3870
+ {
3871
+ scheme: "basic",
3872
+ type: "http"
3873
+ }
3874
+ ],
2386
3875
  url: "/process-instances/{processInstanceKey}/deletion",
2387
3876
  ...options,
2388
3877
  headers: {
@@ -2395,6 +3884,16 @@ var resolveProcessInstanceIncidents = (options) => {
2395
3884
  return (options.client ?? client).post({
2396
3885
  requestValidator: void 0,
2397
3886
  responseValidator: void 0,
3887
+ security: [
3888
+ {
3889
+ scheme: "bearer",
3890
+ type: "http"
3891
+ },
3892
+ {
3893
+ scheme: "basic",
3894
+ type: "http"
3895
+ }
3896
+ ],
2398
3897
  url: "/process-instances/{processInstanceKey}/incident-resolution",
2399
3898
  ...options
2400
3899
  });
@@ -2403,6 +3902,16 @@ var searchProcessInstanceIncidents = (options) => {
2403
3902
  return (options.client ?? client).post({
2404
3903
  requestValidator: void 0,
2405
3904
  responseValidator: void 0,
3905
+ security: [
3906
+ {
3907
+ scheme: "bearer",
3908
+ type: "http"
3909
+ },
3910
+ {
3911
+ scheme: "basic",
3912
+ type: "http"
3913
+ }
3914
+ ],
2406
3915
  url: "/process-instances/{processInstanceKey}/incidents/search",
2407
3916
  ...options,
2408
3917
  headers: {
@@ -2415,6 +3924,16 @@ var migrateProcessInstance = (options) => {
2415
3924
  return (options.client ?? client).post({
2416
3925
  requestValidator: void 0,
2417
3926
  responseValidator: void 0,
3927
+ security: [
3928
+ {
3929
+ scheme: "bearer",
3930
+ type: "http"
3931
+ },
3932
+ {
3933
+ scheme: "basic",
3934
+ type: "http"
3935
+ }
3936
+ ],
2418
3937
  url: "/process-instances/{processInstanceKey}/migration",
2419
3938
  ...options,
2420
3939
  headers: {
@@ -2427,6 +3946,16 @@ var modifyProcessInstance = (options) => {
2427
3946
  return (options.client ?? client).post({
2428
3947
  requestValidator: void 0,
2429
3948
  responseValidator: void 0,
3949
+ security: [
3950
+ {
3951
+ scheme: "bearer",
3952
+ type: "http"
3953
+ },
3954
+ {
3955
+ scheme: "basic",
3956
+ type: "http"
3957
+ }
3958
+ ],
2430
3959
  url: "/process-instances/{processInstanceKey}/modification",
2431
3960
  ...options,
2432
3961
  headers: {
@@ -2439,6 +3968,16 @@ var getProcessInstanceSequenceFlows = (options) => {
2439
3968
  return (options.client ?? client).get({
2440
3969
  requestValidator: void 0,
2441
3970
  responseValidator: void 0,
3971
+ security: [
3972
+ {
3973
+ scheme: "bearer",
3974
+ type: "http"
3975
+ },
3976
+ {
3977
+ scheme: "basic",
3978
+ type: "http"
3979
+ }
3980
+ ],
2442
3981
  url: "/process-instances/{processInstanceKey}/sequence-flows",
2443
3982
  ...options
2444
3983
  });
@@ -2447,14 +3986,56 @@ var getProcessInstanceStatistics = (options) => {
2447
3986
  return (options.client ?? client).get({
2448
3987
  requestValidator: void 0,
2449
3988
  responseValidator: void 0,
3989
+ security: [
3990
+ {
3991
+ scheme: "bearer",
3992
+ type: "http"
3993
+ },
3994
+ {
3995
+ scheme: "basic",
3996
+ type: "http"
3997
+ }
3998
+ ],
2450
3999
  url: "/process-instances/{processInstanceKey}/statistics/element-instances",
2451
4000
  ...options
2452
4001
  });
2453
4002
  };
4003
+ var searchResources = (options) => {
4004
+ return (options?.client ?? client).post({
4005
+ requestValidator: void 0,
4006
+ responseValidator: void 0,
4007
+ security: [
4008
+ {
4009
+ scheme: "bearer",
4010
+ type: "http"
4011
+ },
4012
+ {
4013
+ scheme: "basic",
4014
+ type: "http"
4015
+ }
4016
+ ],
4017
+ url: "/resources/search",
4018
+ ...options,
4019
+ headers: {
4020
+ "Content-Type": "application/json",
4021
+ ...options?.headers
4022
+ }
4023
+ });
4024
+ };
2454
4025
  var getResource = (options) => {
2455
4026
  return (options.client ?? client).get({
2456
4027
  requestValidator: void 0,
2457
4028
  responseValidator: void 0,
4029
+ security: [
4030
+ {
4031
+ scheme: "bearer",
4032
+ type: "http"
4033
+ },
4034
+ {
4035
+ scheme: "basic",
4036
+ type: "http"
4037
+ }
4038
+ ],
2458
4039
  url: "/resources/{resourceKey}",
2459
4040
  ...options
2460
4041
  });
@@ -2463,14 +4044,52 @@ var getResourceContent = (options) => {
2463
4044
  return (options.client ?? client).get({
2464
4045
  requestValidator: void 0,
2465
4046
  responseValidator: void 0,
4047
+ security: [
4048
+ {
4049
+ scheme: "bearer",
4050
+ type: "http"
4051
+ },
4052
+ {
4053
+ scheme: "basic",
4054
+ type: "http"
4055
+ }
4056
+ ],
2466
4057
  url: "/resources/{resourceKey}/content",
2467
4058
  ...options
2468
4059
  });
2469
4060
  };
4061
+ var getResourceContentBinary = (options) => {
4062
+ return (options.client ?? client).get({
4063
+ requestValidator: void 0,
4064
+ responseValidator: void 0,
4065
+ security: [
4066
+ {
4067
+ scheme: "bearer",
4068
+ type: "http"
4069
+ },
4070
+ {
4071
+ scheme: "basic",
4072
+ type: "http"
4073
+ }
4074
+ ],
4075
+ url: "/resources/{resourceKey}/content/binary",
4076
+ ...options
4077
+ });
4078
+ };
2470
4079
  var deleteResource = (options) => {
2471
4080
  return (options.client ?? client).post({
2472
4081
  requestValidator: void 0,
2473
4082
  responseValidator: void 0,
4083
+ security: [
4084
+ {
4085
+ scheme: "bearer",
4086
+ type: "http"
4087
+ },
4088
+ {
4089
+ scheme: "basic",
4090
+ type: "http"
4091
+ }
4092
+ ],
2474
4093
  url: "/resources/{resourceKey}/deletion",
2475
4094
  ...options,
2476
4095
  headers: {
@@ -2483,6 +4102,16 @@ var createRole = (options) => {
2483
4102
  return (options?.client ?? client).post({
2484
4103
  requestValidator: void 0,
2485
4104
  responseValidator: void 0,
4105
+ security: [
4106
+ {
4107
+ scheme: "bearer",
4108
+ type: "http"
4109
+ },
4110
+ {
4111
+ scheme: "basic",
4112
+ type: "http"
4113
+ }
4114
+ ],
2486
4115
  url: "/roles",
2487
4116
  ...options,
2488
4117
  headers: {
@@ -2495,6 +4124,16 @@ var searchRoles = (options) => {
2495
4124
  return (options?.client ?? client).post({
2496
4125
  requestValidator: void 0,
2497
4126
  responseValidator: void 0,
4127
+ security: [
4128
+ {
4129
+ scheme: "bearer",
4130
+ type: "http"
4131
+ },
4132
+ {
4133
+ scheme: "basic",
4134
+ type: "http"
4135
+ }
4136
+ ],
2498
4137
  url: "/roles/search",
2499
4138
  ...options,
2500
4139
  headers: {
@@ -2507,6 +4146,16 @@ var deleteRole = (options) => {
2507
4146
  return (options.client ?? client).delete({
2508
4147
  requestValidator: void 0,
2509
4148
  responseValidator: void 0,
4149
+ security: [
4150
+ {
4151
+ scheme: "bearer",
4152
+ type: "http"
4153
+ },
4154
+ {
4155
+ scheme: "basic",
4156
+ type: "http"
4157
+ }
4158
+ ],
2510
4159
  url: "/roles/{roleId}",
2511
4160
  ...options
2512
4161
  });
@@ -2515,6 +4164,16 @@ var getRole = (options) => {
2515
4164
  return (options.client ?? client).get({
2516
4165
  requestValidator: void 0,
2517
4166
  responseValidator: void 0,
4167
+ security: [
4168
+ {
4169
+ scheme: "bearer",
4170
+ type: "http"
4171
+ },
4172
+ {
4173
+ scheme: "basic",
4174
+ type: "http"
4175
+ }
4176
+ ],
2518
4177
  url: "/roles/{roleId}",
2519
4178
  ...options
2520
4179
  });
@@ -2523,6 +4182,16 @@ var updateRole = (options) => {
2523
4182
  return (options.client ?? client).put({
2524
4183
  requestValidator: void 0,
2525
4184
  responseValidator: void 0,
4185
+ security: [
4186
+ {
4187
+ scheme: "bearer",
4188
+ type: "http"
4189
+ },
4190
+ {
4191
+ scheme: "basic",
4192
+ type: "http"
4193
+ }
4194
+ ],
2526
4195
  url: "/roles/{roleId}",
2527
4196
  ...options,
2528
4197
  headers: {
@@ -2535,6 +4204,16 @@ var searchClientsForRole = (options) => {
2535
4204
  return (options.client ?? client).post({
2536
4205
  requestValidator: void 0,
2537
4206
  responseValidator: void 0,
4207
+ security: [
4208
+ {
4209
+ scheme: "bearer",
4210
+ type: "http"
4211
+ },
4212
+ {
4213
+ scheme: "basic",
4214
+ type: "http"
4215
+ }
4216
+ ],
2538
4217
  url: "/roles/{roleId}/clients/search",
2539
4218
  ...options,
2540
4219
  headers: {
@@ -2547,6 +4226,16 @@ var unassignRoleFromClient = (options) => {
2547
4226
  return (options.client ?? client).delete({
2548
4227
  requestValidator: void 0,
2549
4228
  responseValidator: void 0,
4229
+ security: [
4230
+ {
4231
+ scheme: "bearer",
4232
+ type: "http"
4233
+ },
4234
+ {
4235
+ scheme: "basic",
4236
+ type: "http"
4237
+ }
4238
+ ],
2550
4239
  url: "/roles/{roleId}/clients/{clientId}",
2551
4240
  ...options
2552
4241
  });
@@ -2555,6 +4244,16 @@ var assignRoleToClient = (options) => {
2555
4244
  return (options.client ?? client).put({
2556
4245
  requestValidator: void 0,
2557
4246
  responseValidator: void 0,
4247
+ security: [
4248
+ {
4249
+ scheme: "bearer",
4250
+ type: "http"
4251
+ },
4252
+ {
4253
+ scheme: "basic",
4254
+ type: "http"
4255
+ }
4256
+ ],
2558
4257
  url: "/roles/{roleId}/clients/{clientId}",
2559
4258
  ...options
2560
4259
  });
@@ -2563,6 +4262,16 @@ var searchGroupsForRole = (options) => {
2563
4262
  return (options.client ?? client).post({
2564
4263
  requestValidator: void 0,
2565
4264
  responseValidator: void 0,
4265
+ security: [
4266
+ {
4267
+ scheme: "bearer",
4268
+ type: "http"
4269
+ },
4270
+ {
4271
+ scheme: "basic",
4272
+ type: "http"
4273
+ }
4274
+ ],
2566
4275
  url: "/roles/{roleId}/groups/search",
2567
4276
  ...options,
2568
4277
  headers: {
@@ -2575,6 +4284,16 @@ var unassignRoleFromGroup = (options) => {
2575
4284
  return (options.client ?? client).delete({
2576
4285
  requestValidator: void 0,
2577
4286
  responseValidator: void 0,
4287
+ security: [
4288
+ {
4289
+ scheme: "bearer",
4290
+ type: "http"
4291
+ },
4292
+ {
4293
+ scheme: "basic",
4294
+ type: "http"
4295
+ }
4296
+ ],
2578
4297
  url: "/roles/{roleId}/groups/{groupId}",
2579
4298
  ...options
2580
4299
  });
@@ -2583,6 +4302,16 @@ var assignRoleToGroup = (options) => {
2583
4302
  return (options.client ?? client).put({
2584
4303
  requestValidator: void 0,
2585
4304
  responseValidator: void 0,
4305
+ security: [
4306
+ {
4307
+ scheme: "bearer",
4308
+ type: "http"
4309
+ },
4310
+ {
4311
+ scheme: "basic",
4312
+ type: "http"
4313
+ }
4314
+ ],
2586
4315
  url: "/roles/{roleId}/groups/{groupId}",
2587
4316
  ...options
2588
4317
  });
@@ -2591,6 +4320,16 @@ var searchMappingRulesForRole = (options) => {
2591
4320
  return (options.client ?? client).post({
2592
4321
  requestValidator: void 0,
2593
4322
  responseValidator: void 0,
4323
+ security: [
4324
+ {
4325
+ scheme: "bearer",
4326
+ type: "http"
4327
+ },
4328
+ {
4329
+ scheme: "basic",
4330
+ type: "http"
4331
+ }
4332
+ ],
2594
4333
  url: "/roles/{roleId}/mapping-rules/search",
2595
4334
  ...options,
2596
4335
  headers: {
@@ -2603,6 +4342,16 @@ var unassignRoleFromMappingRule = (options) => {
2603
4342
  return (options.client ?? client).delete({
2604
4343
  requestValidator: void 0,
2605
4344
  responseValidator: void 0,
4345
+ security: [
4346
+ {
4347
+ scheme: "bearer",
4348
+ type: "http"
4349
+ },
4350
+ {
4351
+ scheme: "basic",
4352
+ type: "http"
4353
+ }
4354
+ ],
2606
4355
  url: "/roles/{roleId}/mapping-rules/{mappingRuleId}",
2607
4356
  ...options
2608
4357
  });
@@ -2611,6 +4360,16 @@ var assignRoleToMappingRule = (options) => {
2611
4360
  return (options.client ?? client).put({
2612
4361
  requestValidator: void 0,
2613
4362
  responseValidator: void 0,
4363
+ security: [
4364
+ {
4365
+ scheme: "bearer",
4366
+ type: "http"
4367
+ },
4368
+ {
4369
+ scheme: "basic",
4370
+ type: "http"
4371
+ }
4372
+ ],
2614
4373
  url: "/roles/{roleId}/mapping-rules/{mappingRuleId}",
2615
4374
  ...options
2616
4375
  });
@@ -2619,6 +4378,16 @@ var searchUsersForRole = (options) => {
2619
4378
  return (options.client ?? client).post({
2620
4379
  requestValidator: void 0,
2621
4380
  responseValidator: void 0,
4381
+ security: [
4382
+ {
4383
+ scheme: "bearer",
4384
+ type: "http"
4385
+ },
4386
+ {
4387
+ scheme: "basic",
4388
+ type: "http"
4389
+ }
4390
+ ],
2622
4391
  url: "/roles/{roleId}/users/search",
2623
4392
  ...options,
2624
4393
  headers: {
@@ -2631,6 +4400,16 @@ var unassignRoleFromUser = (options) => {
2631
4400
  return (options.client ?? client).delete({
2632
4401
  requestValidator: void 0,
2633
4402
  responseValidator: void 0,
4403
+ security: [
4404
+ {
4405
+ scheme: "bearer",
4406
+ type: "http"
4407
+ },
4408
+ {
4409
+ scheme: "basic",
4410
+ type: "http"
4411
+ }
4412
+ ],
2634
4413
  url: "/roles/{roleId}/users/{username}",
2635
4414
  ...options
2636
4415
  });
@@ -2639,6 +4418,16 @@ var assignRoleToUser = (options) => {
2639
4418
  return (options.client ?? client).put({
2640
4419
  requestValidator: void 0,
2641
4420
  responseValidator: void 0,
4421
+ security: [
4422
+ {
4423
+ scheme: "bearer",
4424
+ type: "http"
4425
+ },
4426
+ {
4427
+ scheme: "basic",
4428
+ type: "http"
4429
+ }
4430
+ ],
2642
4431
  url: "/roles/{roleId}/users/{username}",
2643
4432
  ...options
2644
4433
  });
@@ -2659,6 +4448,16 @@ var broadcastSignal = (options) => {
2659
4448
  return (options.client ?? client).post({
2660
4449
  requestValidator: void 0,
2661
4450
  responseValidator: void 0,
4451
+ security: [
4452
+ {
4453
+ scheme: "bearer",
4454
+ type: "http"
4455
+ },
4456
+ {
4457
+ scheme: "basic",
4458
+ type: "http"
4459
+ }
4460
+ ],
2662
4461
  url: "/signals/broadcast",
2663
4462
  ...options,
2664
4463
  headers: {
@@ -2679,6 +4478,16 @@ var getUsageMetrics = (options) => {
2679
4478
  return (options.client ?? client).get({
2680
4479
  requestValidator: void 0,
2681
4480
  responseValidator: void 0,
4481
+ security: [
4482
+ {
4483
+ scheme: "bearer",
4484
+ type: "http"
4485
+ },
4486
+ {
4487
+ scheme: "basic",
4488
+ type: "http"
4489
+ }
4490
+ ],
2682
4491
  url: "/system/usage-metrics",
2683
4492
  ...options
2684
4493
  });
@@ -2687,6 +4496,16 @@ var getSystemConfiguration = (options) => {
2687
4496
  return (options?.client ?? client).get({
2688
4497
  requestValidator: void 0,
2689
4498
  responseValidator: void 0,
4499
+ security: [
4500
+ {
4501
+ scheme: "bearer",
4502
+ type: "http"
4503
+ },
4504
+ {
4505
+ scheme: "basic",
4506
+ type: "http"
4507
+ }
4508
+ ],
2690
4509
  url: "/system/configuration",
2691
4510
  ...options
2692
4511
  });
@@ -2695,6 +4514,16 @@ var createTenant = (options) => {
2695
4514
  return (options.client ?? client).post({
2696
4515
  requestValidator: void 0,
2697
4516
  responseValidator: void 0,
4517
+ security: [
4518
+ {
4519
+ scheme: "bearer",
4520
+ type: "http"
4521
+ },
4522
+ {
4523
+ scheme: "basic",
4524
+ type: "http"
4525
+ }
4526
+ ],
2698
4527
  url: "/tenants",
2699
4528
  ...options,
2700
4529
  headers: {
@@ -2707,6 +4536,16 @@ var searchTenants = (options) => {
2707
4536
  return (options?.client ?? client).post({
2708
4537
  requestValidator: void 0,
2709
4538
  responseValidator: void 0,
4539
+ security: [
4540
+ {
4541
+ scheme: "bearer",
4542
+ type: "http"
4543
+ },
4544
+ {
4545
+ scheme: "basic",
4546
+ type: "http"
4547
+ }
4548
+ ],
2710
4549
  url: "/tenants/search",
2711
4550
  ...options,
2712
4551
  headers: {
@@ -2719,6 +4558,16 @@ var deleteTenant = (options) => {
2719
4558
  return (options.client ?? client).delete({
2720
4559
  requestValidator: void 0,
2721
4560
  responseValidator: void 0,
4561
+ security: [
4562
+ {
4563
+ scheme: "bearer",
4564
+ type: "http"
4565
+ },
4566
+ {
4567
+ scheme: "basic",
4568
+ type: "http"
4569
+ }
4570
+ ],
2722
4571
  url: "/tenants/{tenantId}",
2723
4572
  ...options
2724
4573
  });
@@ -2727,6 +4576,16 @@ var getTenant = (options) => {
2727
4576
  return (options.client ?? client).get({
2728
4577
  requestValidator: void 0,
2729
4578
  responseValidator: void 0,
4579
+ security: [
4580
+ {
4581
+ scheme: "bearer",
4582
+ type: "http"
4583
+ },
4584
+ {
4585
+ scheme: "basic",
4586
+ type: "http"
4587
+ }
4588
+ ],
2730
4589
  url: "/tenants/{tenantId}",
2731
4590
  ...options
2732
4591
  });
@@ -2735,6 +4594,16 @@ var updateTenant = (options) => {
2735
4594
  return (options.client ?? client).put({
2736
4595
  requestValidator: void 0,
2737
4596
  responseValidator: void 0,
4597
+ security: [
4598
+ {
4599
+ scheme: "bearer",
4600
+ type: "http"
4601
+ },
4602
+ {
4603
+ scheme: "basic",
4604
+ type: "http"
4605
+ }
4606
+ ],
2738
4607
  url: "/tenants/{tenantId}",
2739
4608
  ...options,
2740
4609
  headers: {
@@ -2747,6 +4616,16 @@ var searchClientsForTenant = (options) => {
2747
4616
  return (options.client ?? client).post({
2748
4617
  requestValidator: void 0,
2749
4618
  responseValidator: void 0,
4619
+ security: [
4620
+ {
4621
+ scheme: "bearer",
4622
+ type: "http"
4623
+ },
4624
+ {
4625
+ scheme: "basic",
4626
+ type: "http"
4627
+ }
4628
+ ],
2750
4629
  url: "/tenants/{tenantId}/clients/search",
2751
4630
  ...options,
2752
4631
  headers: {
@@ -2759,6 +4638,16 @@ var unassignClientFromTenant = (options) => {
2759
4638
  return (options.client ?? client).delete({
2760
4639
  requestValidator: void 0,
2761
4640
  responseValidator: void 0,
4641
+ security: [
4642
+ {
4643
+ scheme: "bearer",
4644
+ type: "http"
4645
+ },
4646
+ {
4647
+ scheme: "basic",
4648
+ type: "http"
4649
+ }
4650
+ ],
2762
4651
  url: "/tenants/{tenantId}/clients/{clientId}",
2763
4652
  ...options
2764
4653
  });
@@ -2767,6 +4656,16 @@ var assignClientToTenant = (options) => {
2767
4656
  return (options.client ?? client).put({
2768
4657
  requestValidator: void 0,
2769
4658
  responseValidator: void 0,
4659
+ security: [
4660
+ {
4661
+ scheme: "bearer",
4662
+ type: "http"
4663
+ },
4664
+ {
4665
+ scheme: "basic",
4666
+ type: "http"
4667
+ }
4668
+ ],
2770
4669
  url: "/tenants/{tenantId}/clients/{clientId}",
2771
4670
  ...options
2772
4671
  });
@@ -2775,6 +4674,16 @@ var searchGroupIdsForTenant = (options) => {
2775
4674
  return (options.client ?? client).post({
2776
4675
  requestValidator: void 0,
2777
4676
  responseValidator: void 0,
4677
+ security: [
4678
+ {
4679
+ scheme: "bearer",
4680
+ type: "http"
4681
+ },
4682
+ {
4683
+ scheme: "basic",
4684
+ type: "http"
4685
+ }
4686
+ ],
2778
4687
  url: "/tenants/{tenantId}/groups/search",
2779
4688
  ...options,
2780
4689
  headers: {
@@ -2787,6 +4696,16 @@ var unassignGroupFromTenant = (options) => {
2787
4696
  return (options.client ?? client).delete({
2788
4697
  requestValidator: void 0,
2789
4698
  responseValidator: void 0,
4699
+ security: [
4700
+ {
4701
+ scheme: "bearer",
4702
+ type: "http"
4703
+ },
4704
+ {
4705
+ scheme: "basic",
4706
+ type: "http"
4707
+ }
4708
+ ],
2790
4709
  url: "/tenants/{tenantId}/groups/{groupId}",
2791
4710
  ...options
2792
4711
  });
@@ -2795,6 +4714,16 @@ var assignGroupToTenant = (options) => {
2795
4714
  return (options.client ?? client).put({
2796
4715
  requestValidator: void 0,
2797
4716
  responseValidator: void 0,
4717
+ security: [
4718
+ {
4719
+ scheme: "bearer",
4720
+ type: "http"
4721
+ },
4722
+ {
4723
+ scheme: "basic",
4724
+ type: "http"
4725
+ }
4726
+ ],
2798
4727
  url: "/tenants/{tenantId}/groups/{groupId}",
2799
4728
  ...options
2800
4729
  });
@@ -2803,6 +4732,16 @@ var searchMappingRulesForTenant = (options) => {
2803
4732
  return (options.client ?? client).post({
2804
4733
  requestValidator: void 0,
2805
4734
  responseValidator: void 0,
4735
+ security: [
4736
+ {
4737
+ scheme: "bearer",
4738
+ type: "http"
4739
+ },
4740
+ {
4741
+ scheme: "basic",
4742
+ type: "http"
4743
+ }
4744
+ ],
2806
4745
  url: "/tenants/{tenantId}/mapping-rules/search",
2807
4746
  ...options,
2808
4747
  headers: {
@@ -2815,6 +4754,16 @@ var unassignMappingRuleFromTenant = (options) => {
2815
4754
  return (options.client ?? client).delete({
2816
4755
  requestValidator: void 0,
2817
4756
  responseValidator: void 0,
4757
+ security: [
4758
+ {
4759
+ scheme: "bearer",
4760
+ type: "http"
4761
+ },
4762
+ {
4763
+ scheme: "basic",
4764
+ type: "http"
4765
+ }
4766
+ ],
2818
4767
  url: "/tenants/{tenantId}/mapping-rules/{mappingRuleId}",
2819
4768
  ...options
2820
4769
  });
@@ -2823,6 +4772,16 @@ var assignMappingRuleToTenant = (options) => {
2823
4772
  return (options.client ?? client).put({
2824
4773
  requestValidator: void 0,
2825
4774
  responseValidator: void 0,
4775
+ security: [
4776
+ {
4777
+ scheme: "bearer",
4778
+ type: "http"
4779
+ },
4780
+ {
4781
+ scheme: "basic",
4782
+ type: "http"
4783
+ }
4784
+ ],
2826
4785
  url: "/tenants/{tenantId}/mapping-rules/{mappingRuleId}",
2827
4786
  ...options
2828
4787
  });
@@ -2831,6 +4790,16 @@ var searchRolesForTenant = (options) => {
2831
4790
  return (options.client ?? client).post({
2832
4791
  requestValidator: void 0,
2833
4792
  responseValidator: void 0,
4793
+ security: [
4794
+ {
4795
+ scheme: "bearer",
4796
+ type: "http"
4797
+ },
4798
+ {
4799
+ scheme: "basic",
4800
+ type: "http"
4801
+ }
4802
+ ],
2834
4803
  url: "/tenants/{tenantId}/roles/search",
2835
4804
  ...options,
2836
4805
  headers: {
@@ -2843,6 +4812,16 @@ var unassignRoleFromTenant = (options) => {
2843
4812
  return (options.client ?? client).delete({
2844
4813
  requestValidator: void 0,
2845
4814
  responseValidator: void 0,
4815
+ security: [
4816
+ {
4817
+ scheme: "bearer",
4818
+ type: "http"
4819
+ },
4820
+ {
4821
+ scheme: "basic",
4822
+ type: "http"
4823
+ }
4824
+ ],
2846
4825
  url: "/tenants/{tenantId}/roles/{roleId}",
2847
4826
  ...options
2848
4827
  });
@@ -2851,6 +4830,16 @@ var assignRoleToTenant = (options) => {
2851
4830
  return (options.client ?? client).put({
2852
4831
  requestValidator: void 0,
2853
4832
  responseValidator: void 0,
4833
+ security: [
4834
+ {
4835
+ scheme: "bearer",
4836
+ type: "http"
4837
+ },
4838
+ {
4839
+ scheme: "basic",
4840
+ type: "http"
4841
+ }
4842
+ ],
2854
4843
  url: "/tenants/{tenantId}/roles/{roleId}",
2855
4844
  ...options
2856
4845
  });
@@ -2859,6 +4848,16 @@ var searchUsersForTenant = (options) => {
2859
4848
  return (options.client ?? client).post({
2860
4849
  requestValidator: void 0,
2861
4850
  responseValidator: void 0,
4851
+ security: [
4852
+ {
4853
+ scheme: "bearer",
4854
+ type: "http"
4855
+ },
4856
+ {
4857
+ scheme: "basic",
4858
+ type: "http"
4859
+ }
4860
+ ],
2862
4861
  url: "/tenants/{tenantId}/users/search",
2863
4862
  ...options,
2864
4863
  headers: {
@@ -2871,6 +4870,16 @@ var unassignUserFromTenant = (options) => {
2871
4870
  return (options.client ?? client).delete({
2872
4871
  requestValidator: void 0,
2873
4872
  responseValidator: void 0,
4873
+ security: [
4874
+ {
4875
+ scheme: "bearer",
4876
+ type: "http"
4877
+ },
4878
+ {
4879
+ scheme: "basic",
4880
+ type: "http"
4881
+ }
4882
+ ],
2874
4883
  url: "/tenants/{tenantId}/users/{username}",
2875
4884
  ...options
2876
4885
  });
@@ -2879,6 +4888,16 @@ var assignUserToTenant = (options) => {
2879
4888
  return (options.client ?? client).put({
2880
4889
  requestValidator: void 0,
2881
4890
  responseValidator: void 0,
4891
+ security: [
4892
+ {
4893
+ scheme: "bearer",
4894
+ type: "http"
4895
+ },
4896
+ {
4897
+ scheme: "basic",
4898
+ type: "http"
4899
+ }
4900
+ ],
2882
4901
  url: "/tenants/{tenantId}/users/{username}",
2883
4902
  ...options
2884
4903
  });
@@ -2887,6 +4906,16 @@ var getTopology = (options) => {
2887
4906
  return (options?.client ?? client).get({
2888
4907
  requestValidator: void 0,
2889
4908
  responseValidator: void 0,
4909
+ security: [
4910
+ {
4911
+ scheme: "bearer",
4912
+ type: "http"
4913
+ },
4914
+ {
4915
+ scheme: "basic",
4916
+ type: "http"
4917
+ }
4918
+ ],
2890
4919
  url: "/topology",
2891
4920
  ...options
2892
4921
  });
@@ -2895,6 +4924,16 @@ var createUser = (options) => {
2895
4924
  return (options.client ?? client).post({
2896
4925
  requestValidator: void 0,
2897
4926
  responseValidator: void 0,
4927
+ security: [
4928
+ {
4929
+ scheme: "bearer",
4930
+ type: "http"
4931
+ },
4932
+ {
4933
+ scheme: "basic",
4934
+ type: "http"
4935
+ }
4936
+ ],
2898
4937
  url: "/users",
2899
4938
  ...options,
2900
4939
  headers: {
@@ -2907,6 +4946,16 @@ var searchUsers = (options) => {
2907
4946
  return (options?.client ?? client).post({
2908
4947
  requestValidator: void 0,
2909
4948
  responseValidator: void 0,
4949
+ security: [
4950
+ {
4951
+ scheme: "bearer",
4952
+ type: "http"
4953
+ },
4954
+ {
4955
+ scheme: "basic",
4956
+ type: "http"
4957
+ }
4958
+ ],
2910
4959
  url: "/users/search",
2911
4960
  ...options,
2912
4961
  headers: {
@@ -2919,6 +4968,16 @@ var deleteUser = (options) => {
2919
4968
  return (options.client ?? client).delete({
2920
4969
  requestValidator: void 0,
2921
4970
  responseValidator: void 0,
4971
+ security: [
4972
+ {
4973
+ scheme: "bearer",
4974
+ type: "http"
4975
+ },
4976
+ {
4977
+ scheme: "basic",
4978
+ type: "http"
4979
+ }
4980
+ ],
2922
4981
  url: "/users/{username}",
2923
4982
  ...options
2924
4983
  });
@@ -2927,6 +4986,16 @@ var getUser = (options) => {
2927
4986
  return (options.client ?? client).get({
2928
4987
  requestValidator: void 0,
2929
4988
  responseValidator: void 0,
4989
+ security: [
4990
+ {
4991
+ scheme: "bearer",
4992
+ type: "http"
4993
+ },
4994
+ {
4995
+ scheme: "basic",
4996
+ type: "http"
4997
+ }
4998
+ ],
2930
4999
  url: "/users/{username}",
2931
5000
  ...options
2932
5001
  });
@@ -2935,6 +5004,16 @@ var updateUser = (options) => {
2935
5004
  return (options.client ?? client).put({
2936
5005
  requestValidator: void 0,
2937
5006
  responseValidator: void 0,
5007
+ security: [
5008
+ {
5009
+ scheme: "bearer",
5010
+ type: "http"
5011
+ },
5012
+ {
5013
+ scheme: "basic",
5014
+ type: "http"
5015
+ }
5016
+ ],
2938
5017
  url: "/users/{username}",
2939
5018
  ...options,
2940
5019
  headers: {
@@ -2947,6 +5026,16 @@ var searchUserTasks = (options) => {
2947
5026
  return (options?.client ?? client).post({
2948
5027
  requestValidator: void 0,
2949
5028
  responseValidator: void 0,
5029
+ security: [
5030
+ {
5031
+ scheme: "bearer",
5032
+ type: "http"
5033
+ },
5034
+ {
5035
+ scheme: "basic",
5036
+ type: "http"
5037
+ }
5038
+ ],
2950
5039
  url: "/user-tasks/search",
2951
5040
  ...options,
2952
5041
  headers: {
@@ -2959,6 +5048,16 @@ var getUserTask = (options) => {
2959
5048
  return (options.client ?? client).get({
2960
5049
  requestValidator: void 0,
2961
5050
  responseValidator: void 0,
5051
+ security: [
5052
+ {
5053
+ scheme: "bearer",
5054
+ type: "http"
5055
+ },
5056
+ {
5057
+ scheme: "basic",
5058
+ type: "http"
5059
+ }
5060
+ ],
2962
5061
  url: "/user-tasks/{userTaskKey}",
2963
5062
  ...options
2964
5063
  });
@@ -2967,6 +5066,16 @@ var updateUserTask = (options) => {
2967
5066
  return (options.client ?? client).patch({
2968
5067
  requestValidator: void 0,
2969
5068
  responseValidator: void 0,
5069
+ security: [
5070
+ {
5071
+ scheme: "bearer",
5072
+ type: "http"
5073
+ },
5074
+ {
5075
+ scheme: "basic",
5076
+ type: "http"
5077
+ }
5078
+ ],
2970
5079
  url: "/user-tasks/{userTaskKey}",
2971
5080
  ...options,
2972
5081
  headers: {
@@ -2979,6 +5088,16 @@ var unassignUserTask = (options) => {
2979
5088
  return (options.client ?? client).delete({
2980
5089
  requestValidator: void 0,
2981
5090
  responseValidator: void 0,
5091
+ security: [
5092
+ {
5093
+ scheme: "bearer",
5094
+ type: "http"
5095
+ },
5096
+ {
5097
+ scheme: "basic",
5098
+ type: "http"
5099
+ }
5100
+ ],
2982
5101
  url: "/user-tasks/{userTaskKey}/assignee",
2983
5102
  ...options
2984
5103
  });
@@ -2987,6 +5106,16 @@ var assignUserTask = (options) => {
2987
5106
  return (options.client ?? client).post({
2988
5107
  requestValidator: void 0,
2989
5108
  responseValidator: void 0,
5109
+ security: [
5110
+ {
5111
+ scheme: "bearer",
5112
+ type: "http"
5113
+ },
5114
+ {
5115
+ scheme: "basic",
5116
+ type: "http"
5117
+ }
5118
+ ],
2990
5119
  url: "/user-tasks/{userTaskKey}/assignment",
2991
5120
  ...options,
2992
5121
  headers: {
@@ -2999,6 +5128,16 @@ var searchUserTaskAuditLogs = (options) => {
2999
5128
  return (options.client ?? client).post({
3000
5129
  requestValidator: void 0,
3001
5130
  responseValidator: void 0,
5131
+ security: [
5132
+ {
5133
+ scheme: "bearer",
5134
+ type: "http"
5135
+ },
5136
+ {
5137
+ scheme: "basic",
5138
+ type: "http"
5139
+ }
5140
+ ],
3002
5141
  url: "/user-tasks/{userTaskKey}/audit-logs/search",
3003
5142
  ...options,
3004
5143
  headers: {
@@ -3011,6 +5150,16 @@ var completeUserTask = (options) => {
3011
5150
  return (options.client ?? client).post({
3012
5151
  requestValidator: void 0,
3013
5152
  responseValidator: void 0,
5153
+ security: [
5154
+ {
5155
+ scheme: "bearer",
5156
+ type: "http"
5157
+ },
5158
+ {
5159
+ scheme: "basic",
5160
+ type: "http"
5161
+ }
5162
+ ],
3014
5163
  url: "/user-tasks/{userTaskKey}/completion",
3015
5164
  ...options,
3016
5165
  headers: {
@@ -3023,6 +5172,16 @@ var searchUserTaskEffectiveVariables = (options) => {
3023
5172
  return (options.client ?? client).post({
3024
5173
  requestValidator: void 0,
3025
5174
  responseValidator: void 0,
5175
+ security: [
5176
+ {
5177
+ scheme: "bearer",
5178
+ type: "http"
5179
+ },
5180
+ {
5181
+ scheme: "basic",
5182
+ type: "http"
5183
+ }
5184
+ ],
3026
5185
  url: "/user-tasks/{userTaskKey}/effective-variables/search",
3027
5186
  ...options,
3028
5187
  headers: {
@@ -3035,6 +5194,16 @@ var getUserTaskForm = (options) => {
3035
5194
  return (options.client ?? client).get({
3036
5195
  requestValidator: void 0,
3037
5196
  responseValidator: void 0,
5197
+ security: [
5198
+ {
5199
+ scheme: "bearer",
5200
+ type: "http"
5201
+ },
5202
+ {
5203
+ scheme: "basic",
5204
+ type: "http"
5205
+ }
5206
+ ],
3038
5207
  url: "/user-tasks/{userTaskKey}/form",
3039
5208
  ...options
3040
5209
  });
@@ -3043,6 +5212,16 @@ var searchUserTaskVariables = (options) => {
3043
5212
  return (options.client ?? client).post({
3044
5213
  requestValidator: void 0,
3045
5214
  responseValidator: void 0,
5215
+ security: [
5216
+ {
5217
+ scheme: "bearer",
5218
+ type: "http"
5219
+ },
5220
+ {
5221
+ scheme: "basic",
5222
+ type: "http"
5223
+ }
5224
+ ],
3046
5225
  url: "/user-tasks/{userTaskKey}/variables/search",
3047
5226
  ...options,
3048
5227
  headers: {
@@ -3055,6 +5234,16 @@ var searchVariables = (options) => {
3055
5234
  return (options?.client ?? client).post({
3056
5235
  requestValidator: void 0,
3057
5236
  responseValidator: void 0,
5237
+ security: [
5238
+ {
5239
+ scheme: "bearer",
5240
+ type: "http"
5241
+ },
5242
+ {
5243
+ scheme: "basic",
5244
+ type: "http"
5245
+ }
5246
+ ],
3058
5247
  url: "/variables/search",
3059
5248
  ...options,
3060
5249
  headers: {
@@ -3067,6 +5256,16 @@ var getVariable = (options) => {
3067
5256
  return (options.client ?? client).get({
3068
5257
  requestValidator: void 0,
3069
5258
  responseValidator: void 0,
5259
+ security: [
5260
+ {
5261
+ scheme: "bearer",
5262
+ type: "http"
5263
+ },
5264
+ {
5265
+ scheme: "basic",
5266
+ type: "http"
5267
+ }
5268
+ ],
3070
5269
  url: "/variables/{variableKey}",
3071
5270
  ...options
3072
5271
  });
@@ -4409,7 +6608,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4409
6608
  }
4410
6609
 
4411
6610
  // src/runtime/version.ts
4412
- var packageVersion = "9.1.2";
6611
+ var packageVersion = "10.0.0-alpha.10";
4413
6612
 
4414
6613
  // src/runtime/supportLogger.ts
4415
6614
  var NoopSupportLogger = class {
@@ -6082,7 +8281,7 @@ function deepFreeze2(obj) {
6082
8281
  }
6083
8282
  return obj;
6084
8283
  }
6085
- var VOID_RESPONSES = /* @__PURE__ */ new Set(["zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
8284
+ var VOID_RESPONSES = /* @__PURE__ */ new Set(["zUpdateAgentInstanceResponse", "zDeleteAuthorizationResponse", "zUpdateAuthorizationResponse", "zCancelBatchOperationResponse", "zResumeBatchOperationResponse", "zSuspendBatchOperationResponse", "zPinClockResponse", "zResetClockResponse", "zDeleteGlobalClusterVariableResponse", "zDeleteTenantClusterVariableResponse", "zDeleteDecisionInstanceResponse", "zDeleteDocumentResponse", "zActivateAdHocSubProcessActivitiesResponse", "zCreateElementInstanceVariablesResponse", "zDeleteGlobalTaskListenerResponse", "zDeleteGroupResponse", "zUnassignClientFromGroupResponse", "zAssignClientToGroupResponse", "zUnassignMappingRuleFromGroupResponse", "zAssignMappingRuleToGroupResponse", "zUnassignUserFromGroupResponse", "zAssignUserToGroupResponse", "zResolveIncidentResponse", "zUpdateJobResponse", "zCompleteJobResponse", "zThrowJobErrorResponse", "zFailJobResponse", "zDeleteMappingRuleResponse", "zCancelProcessInstanceResponse", "zDeleteProcessInstanceResponse", "zMigrateProcessInstanceResponse", "zModifyProcessInstanceResponse", "zDeleteRoleResponse", "zUnassignRoleFromClientResponse", "zAssignRoleToClientResponse", "zUnassignRoleFromGroupResponse", "zAssignRoleToGroupResponse", "zUnassignRoleFromMappingRuleResponse", "zAssignRoleToMappingRuleResponse", "zUnassignRoleFromUserResponse", "zAssignRoleToUserResponse", "zGetStatusResponse", "zDeleteTenantResponse", "zUnassignClientFromTenantResponse", "zAssignClientToTenantResponse", "zUnassignGroupFromTenantResponse", "zAssignGroupToTenantResponse", "zUnassignMappingRuleFromTenantResponse", "zAssignMappingRuleToTenantResponse", "zUnassignRoleFromTenantResponse", "zAssignRoleToTenantResponse", "zUnassignUserFromTenantResponse", "zAssignUserToTenantResponse", "zDeleteUserResponse", "zUpdateUserTaskResponse", "zUnassignUserTaskResponse", "zAssignUserTaskResponse", "zCompleteUserTaskResponse"]);
6086
8285
  var CancelError = class extends Error {
6087
8286
  constructor() {
6088
8287
  super("Cancelled");
@@ -6386,7 +8585,7 @@ var CamundaClient = class {
6386
8585
  _schemasPromise = null;
6387
8586
  _loadSchemas() {
6388
8587
  if (!this._schemasPromise) {
6389
- this._schemasPromise = import("./zod.gen-BU5BWYUA.js");
8588
+ this._schemasPromise = import("./zod.gen-LWXJEF77.js");
6390
8589
  }
6391
8590
  return this._schemasPromise;
6392
8591
  }
@@ -7687,6 +9886,112 @@ var CamundaClient = class {
7687
9886
  return this._invokeWithRetry(() => call(), { opId: "createAdminUser", exempt: false, retryOverride: options?.retry });
7688
9887
  });
7689
9888
  }
9889
+ createAgentInstance(arg, options) {
9890
+ return toCancelable2(async (signal) => {
9891
+ const _body = arg;
9892
+ let envelope = {};
9893
+ envelope.body = _body;
9894
+ if (this._validation.settings.req !== "none") {
9895
+ const _schemas = await this._loadSchemas();
9896
+ const maybe = await this._validation.gateRequest("createAgentInstance", _schemas.zCreateAgentInstanceData, envelope);
9897
+ if (this._validation.settings.req === "strict") envelope = maybe;
9898
+ }
9899
+ const opts = { client: this._client, signal, throwOnError: false };
9900
+ if (envelope.body !== void 0) opts.body = envelope.body;
9901
+ const call = async () => {
9902
+ try {
9903
+ const _raw = await createAgentInstance(opts);
9904
+ let data = this._evaluateResponse(_raw, "createAgentInstance", (resp) => {
9905
+ const st = resp.status ?? resp.response?.status;
9906
+ if (!st) return void 0;
9907
+ const candidate = st === 429 || st === 503 || st === 500;
9908
+ if (!candidate) return void 0;
9909
+ let prob = void 0;
9910
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
9911
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
9912
+ err.status = st;
9913
+ err.name = "HttpSdkError";
9914
+ if (prob) {
9915
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
9916
+ }
9917
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
9918
+ if (!isBp) err.nonRetryable = true;
9919
+ return err;
9920
+ });
9921
+ const _respSchemaName = "zCreateAgentInstanceResponse";
9922
+ if (this._isVoidResponse(_respSchemaName)) {
9923
+ data = void 0;
9924
+ }
9925
+ if (this._validation.settings.res !== "none") {
9926
+ const _schemas = await this._loadSchemas();
9927
+ const _schema = _schemas.zCreateAgentInstanceResponse;
9928
+ if (_schema) {
9929
+ const maybeR = await this._validation.gateResponse("createAgentInstance", _schema, data);
9930
+ if (this._validation.settings.res === "strict") data = maybeR;
9931
+ }
9932
+ }
9933
+ return data;
9934
+ } catch (e) {
9935
+ throw e;
9936
+ }
9937
+ };
9938
+ return this._invokeWithRetry(() => call(), { opId: "createAgentInstance", exempt: false, retryOverride: options?.retry });
9939
+ });
9940
+ }
9941
+ createAgentInstanceHistoryItem(arg, options) {
9942
+ return toCancelable2(async (signal) => {
9943
+ const { agentInstanceKey, ..._body } = arg || {};
9944
+ let envelope = {};
9945
+ envelope.path = { agentInstanceKey };
9946
+ envelope.body = _body;
9947
+ if (this._validation.settings.req !== "none") {
9948
+ const _schemas = await this._loadSchemas();
9949
+ const maybe = await this._validation.gateRequest("createAgentInstanceHistoryItem", _schemas.zCreateAgentInstanceHistoryItemData, envelope);
9950
+ if (this._validation.settings.req === "strict") envelope = maybe;
9951
+ }
9952
+ const opts = { client: this._client, signal, throwOnError: false };
9953
+ if (envelope.path) opts.path = envelope.path;
9954
+ if (envelope.body !== void 0) opts.body = envelope.body;
9955
+ const call = async () => {
9956
+ try {
9957
+ const _raw = await createAgentInstanceHistoryItem(opts);
9958
+ let data = this._evaluateResponse(_raw, "createAgentInstanceHistoryItem", (resp) => {
9959
+ const st = resp.status ?? resp.response?.status;
9960
+ if (!st) return void 0;
9961
+ const candidate = st === 429 || st === 503 || st === 500;
9962
+ if (!candidate) return void 0;
9963
+ let prob = void 0;
9964
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
9965
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
9966
+ err.status = st;
9967
+ err.name = "HttpSdkError";
9968
+ if (prob) {
9969
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
9970
+ }
9971
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
9972
+ if (!isBp) err.nonRetryable = true;
9973
+ return err;
9974
+ });
9975
+ const _respSchemaName = "zCreateAgentInstanceHistoryItemResponse";
9976
+ if (this._isVoidResponse(_respSchemaName)) {
9977
+ data = void 0;
9978
+ }
9979
+ if (this._validation.settings.res !== "none") {
9980
+ const _schemas = await this._loadSchemas();
9981
+ const _schema = _schemas.zCreateAgentInstanceHistoryItemResponse;
9982
+ if (_schema) {
9983
+ const maybeR = await this._validation.gateResponse("createAgentInstanceHistoryItem", _schema, data);
9984
+ if (this._validation.settings.res === "strict") data = maybeR;
9985
+ }
9986
+ }
9987
+ return data;
9988
+ } catch (e) {
9989
+ throw e;
9990
+ }
9991
+ };
9992
+ return this._invokeWithRetry(() => call(), { opId: "createAgentInstanceHistoryItem", exempt: false, retryOverride: options?.retry });
9993
+ });
9994
+ }
7690
9995
  createAuthorization(arg, options) {
7691
9996
  return toCancelable2(async (signal) => {
7692
9997
  const _body = arg;
@@ -9511,6 +11816,62 @@ var CamundaClient = class {
9511
11816
  return this._invokeWithRetry(() => call(), { opId: "failJob", exempt: true, retryOverride: options?.retry });
9512
11817
  });
9513
11818
  }
11819
+ getAgentInstance(arg, consistencyManagement, options) {
11820
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
11821
+ const useConsistency = consistencyManagement.consistency;
11822
+ return toCancelable2(async (signal) => {
11823
+ const { agentInstanceKey } = arg || {};
11824
+ let envelope = {};
11825
+ envelope.path = { agentInstanceKey };
11826
+ if (this._validation.settings.req !== "none") {
11827
+ const _schemas = await this._loadSchemas();
11828
+ const maybe = await this._validation.gateRequest("getAgentInstance", _schemas.zGetAgentInstanceData, envelope);
11829
+ if (this._validation.settings.req === "strict") envelope = maybe;
11830
+ }
11831
+ const opts = { client: this._client, signal, throwOnError: false };
11832
+ if (envelope.path) opts.path = envelope.path;
11833
+ const call = async () => {
11834
+ try {
11835
+ const _raw = await getAgentInstance(opts);
11836
+ let data = this._evaluateResponse(_raw, "getAgentInstance", (resp) => {
11837
+ const st = resp.status ?? resp.response?.status;
11838
+ if (!st) return void 0;
11839
+ const candidate = st === 429 || st === 503 || st === 500;
11840
+ if (!candidate) return void 0;
11841
+ let prob = void 0;
11842
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
11843
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
11844
+ err.status = st;
11845
+ err.name = "HttpSdkError";
11846
+ if (prob) {
11847
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
11848
+ }
11849
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
11850
+ if (!isBp) err.nonRetryable = true;
11851
+ return err;
11852
+ });
11853
+ const _respSchemaName = "zGetAgentInstanceResponse";
11854
+ if (this._isVoidResponse(_respSchemaName)) {
11855
+ data = void 0;
11856
+ }
11857
+ if (this._validation.settings.res !== "none") {
11858
+ const _schemas = await this._loadSchemas();
11859
+ const _schema = _schemas.zGetAgentInstanceResponse;
11860
+ if (_schema) {
11861
+ const maybeR = await this._validation.gateResponse("getAgentInstance", _schema, data);
11862
+ if (this._validation.settings.res === "strict") data = maybeR;
11863
+ }
11864
+ }
11865
+ return data;
11866
+ } catch (e) {
11867
+ throw e;
11868
+ }
11869
+ };
11870
+ const invoke = () => toCancelable2(() => call());
11871
+ if (useConsistency) return eventualPoll("getAgentInstance", true, invoke, { ...useConsistency, logger: this._log });
11872
+ return invoke();
11873
+ });
11874
+ }
9514
11875
  getAuditLog(arg, consistencyManagement, options) {
9515
11876
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
9516
11877
  const useConsistency = consistencyManagement.consistency;
@@ -10112,6 +12473,62 @@ var CamundaClient = class {
10112
12473
  return invoke();
10113
12474
  });
10114
12475
  }
12476
+ getFormByKey(arg, consistencyManagement, options) {
12477
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12478
+ const useConsistency = consistencyManagement.consistency;
12479
+ return toCancelable2(async (signal) => {
12480
+ const { formKey } = arg || {};
12481
+ let envelope = {};
12482
+ envelope.path = { formKey };
12483
+ if (this._validation.settings.req !== "none") {
12484
+ const _schemas = await this._loadSchemas();
12485
+ const maybe = await this._validation.gateRequest("getFormByKey", _schemas.zGetFormByKeyData, envelope);
12486
+ if (this._validation.settings.req === "strict") envelope = maybe;
12487
+ }
12488
+ const opts = { client: this._client, signal, throwOnError: false };
12489
+ if (envelope.path) opts.path = envelope.path;
12490
+ const call = async () => {
12491
+ try {
12492
+ const _raw = await getFormByKey(opts);
12493
+ let data = this._evaluateResponse(_raw, "getFormByKey", (resp) => {
12494
+ const st = resp.status ?? resp.response?.status;
12495
+ if (!st) return void 0;
12496
+ const candidate = st === 429 || st === 503 || st === 500;
12497
+ if (!candidate) return void 0;
12498
+ let prob = void 0;
12499
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
12500
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
12501
+ err.status = st;
12502
+ err.name = "HttpSdkError";
12503
+ if (prob) {
12504
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
12505
+ }
12506
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
12507
+ if (!isBp) err.nonRetryable = true;
12508
+ return err;
12509
+ });
12510
+ const _respSchemaName = "zGetFormByKeyResponse";
12511
+ if (this._isVoidResponse(_respSchemaName)) {
12512
+ data = void 0;
12513
+ }
12514
+ if (this._validation.settings.res !== "none") {
12515
+ const _schemas = await this._loadSchemas();
12516
+ const _schema = _schemas.zGetFormByKeyResponse;
12517
+ if (_schema) {
12518
+ const maybeR = await this._validation.gateResponse("getFormByKey", _schema, data);
12519
+ if (this._validation.settings.res === "strict") data = maybeR;
12520
+ }
12521
+ }
12522
+ return data;
12523
+ } catch (e) {
12524
+ throw e;
12525
+ }
12526
+ };
12527
+ const invoke = () => toCancelable2(() => call());
12528
+ if (useConsistency) return eventualPoll("getFormByKey", true, invoke, { ...useConsistency, logger: this._log });
12529
+ return invoke();
12530
+ });
12531
+ }
10115
12532
  getGlobalClusterVariable(arg, consistencyManagement, options) {
10116
12533
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
10117
12534
  const useConsistency = consistencyManagement.consistency;
@@ -11389,7 +13806,9 @@ var CamundaClient = class {
11389
13806
  return invoke();
11390
13807
  });
11391
13808
  }
11392
- getResource(arg, options) {
13809
+ getResource(arg, consistencyManagement, options) {
13810
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13811
+ const useConsistency = consistencyManagement.consistency;
11393
13812
  return toCancelable2(async (signal) => {
11394
13813
  const { resourceKey } = arg || {};
11395
13814
  let envelope = {};
@@ -11438,10 +13857,14 @@ var CamundaClient = class {
11438
13857
  throw e;
11439
13858
  }
11440
13859
  };
11441
- return this._invokeWithRetry(() => call(), { opId: "getResource", exempt: false, retryOverride: options?.retry });
13860
+ const invoke = () => toCancelable2(() => call());
13861
+ if (useConsistency) return eventualPoll("getResource", true, invoke, { ...useConsistency, logger: this._log });
13862
+ return invoke();
11442
13863
  });
11443
13864
  }
11444
- getResourceContent(arg, options) {
13865
+ getResourceContent(arg, consistencyManagement, options) {
13866
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13867
+ const useConsistency = consistencyManagement.consistency;
11445
13868
  return toCancelable2(async (signal) => {
11446
13869
  const { resourceKey } = arg || {};
11447
13870
  let envelope = {};
@@ -11473,15 +13896,71 @@ var CamundaClient = class {
11473
13896
  if (!isBp) err.nonRetryable = true;
11474
13897
  return err;
11475
13898
  });
11476
- const _respSchemaName = "zGetResourceContentResponse";
13899
+ const _respSchemaName = "zGetResourceContentResponse";
13900
+ if (this._isVoidResponse(_respSchemaName)) {
13901
+ data = void 0;
13902
+ }
13903
+ if (this._validation.settings.res !== "none") {
13904
+ const _schemas = await this._loadSchemas();
13905
+ const _schema = _schemas.zGetResourceContentResponse;
13906
+ if (_schema) {
13907
+ const maybeR = await this._validation.gateResponse("getResourceContent", _schema, data);
13908
+ if (this._validation.settings.res === "strict") data = maybeR;
13909
+ }
13910
+ }
13911
+ return data;
13912
+ } catch (e) {
13913
+ throw e;
13914
+ }
13915
+ };
13916
+ const invoke = () => toCancelable2(() => call());
13917
+ if (useConsistency) return eventualPoll("getResourceContent", true, invoke, { ...useConsistency, logger: this._log });
13918
+ return invoke();
13919
+ });
13920
+ }
13921
+ getResourceContentBinary(arg, consistencyManagement, options) {
13922
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13923
+ const useConsistency = consistencyManagement.consistency;
13924
+ return toCancelable2(async (signal) => {
13925
+ const { resourceKey } = arg || {};
13926
+ let envelope = {};
13927
+ envelope.path = { resourceKey };
13928
+ if (this._validation.settings.req !== "none") {
13929
+ const _schemas = await this._loadSchemas();
13930
+ const maybe = await this._validation.gateRequest("getResourceContentBinary", _schemas.zGetResourceContentBinaryData, envelope);
13931
+ if (this._validation.settings.req === "strict") envelope = maybe;
13932
+ }
13933
+ const opts = { client: this._client, signal, throwOnError: false };
13934
+ if (envelope.path) opts.path = envelope.path;
13935
+ const call = async () => {
13936
+ try {
13937
+ const _raw = await getResourceContentBinary(opts);
13938
+ let data = this._evaluateResponse(_raw, "getResourceContentBinary", (resp) => {
13939
+ const st = resp.status ?? resp.response?.status;
13940
+ if (!st) return void 0;
13941
+ const candidate = st === 429 || st === 503 || st === 500;
13942
+ if (!candidate) return void 0;
13943
+ let prob = void 0;
13944
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
13945
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
13946
+ err.status = st;
13947
+ err.name = "HttpSdkError";
13948
+ if (prob) {
13949
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
13950
+ }
13951
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
13952
+ if (!isBp) err.nonRetryable = true;
13953
+ return err;
13954
+ });
13955
+ const _respSchemaName = "zGetResourceContentBinaryResponse";
11477
13956
  if (this._isVoidResponse(_respSchemaName)) {
11478
13957
  data = void 0;
11479
13958
  }
11480
13959
  if (this._validation.settings.res !== "none") {
11481
13960
  const _schemas = await this._loadSchemas();
11482
- const _schema = _schemas.zGetResourceContentResponse;
13961
+ const _schema = _schemas.zGetResourceContentBinaryResponse;
11483
13962
  if (_schema) {
11484
- const maybeR = await this._validation.gateResponse("getResourceContent", _schema, data);
13963
+ const maybeR = await this._validation.gateResponse("getResourceContentBinary", _schema, data);
11485
13964
  if (this._validation.settings.res === "strict") data = maybeR;
11486
13965
  }
11487
13966
  }
@@ -11490,7 +13969,9 @@ var CamundaClient = class {
11490
13969
  throw e;
11491
13970
  }
11492
13971
  };
11493
- return this._invokeWithRetry(() => call(), { opId: "getResourceContent", exempt: false, retryOverride: options?.retry });
13972
+ const invoke = () => toCancelable2(() => call());
13973
+ if (useConsistency) return eventualPoll("getResourceContentBinary", true, invoke, { ...useConsistency, logger: this._log });
13974
+ return invoke();
11494
13975
  });
11495
13976
  }
11496
13977
  getRole(arg, consistencyManagement, options) {
@@ -12701,6 +15182,120 @@ var CamundaClient = class {
12701
15182
  return this._invokeWithRetry(() => call(), { opId: "resumeBatchOperation", exempt: false, retryOverride: options?.retry });
12702
15183
  });
12703
15184
  }
15185
+ searchAgentInstanceHistory(arg, consistencyManagement, options) {
15186
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15187
+ const useConsistency = consistencyManagement.consistency;
15188
+ return toCancelable2(async (signal) => {
15189
+ const { agentInstanceKey, ..._body } = arg || {};
15190
+ let envelope = {};
15191
+ envelope.path = { agentInstanceKey };
15192
+ envelope.body = _body;
15193
+ if (this._validation.settings.req !== "none") {
15194
+ const _schemas = await this._loadSchemas();
15195
+ const maybe = await this._validation.gateRequest("searchAgentInstanceHistory", _schemas.zSearchAgentInstanceHistoryData, envelope);
15196
+ if (this._validation.settings.req === "strict") envelope = maybe;
15197
+ }
15198
+ const opts = { client: this._client, signal, throwOnError: false };
15199
+ if (envelope.path) opts.path = envelope.path;
15200
+ if (envelope.body !== void 0) opts.body = envelope.body;
15201
+ const call = async () => {
15202
+ try {
15203
+ const _raw = await searchAgentInstanceHistory(opts);
15204
+ let data = this._evaluateResponse(_raw, "searchAgentInstanceHistory", (resp) => {
15205
+ const st = resp.status ?? resp.response?.status;
15206
+ if (!st) return void 0;
15207
+ const candidate = st === 429 || st === 503 || st === 500;
15208
+ if (!candidate) return void 0;
15209
+ let prob = void 0;
15210
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
15211
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
15212
+ err.status = st;
15213
+ err.name = "HttpSdkError";
15214
+ if (prob) {
15215
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
15216
+ }
15217
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
15218
+ if (!isBp) err.nonRetryable = true;
15219
+ return err;
15220
+ });
15221
+ const _respSchemaName = "zSearchAgentInstanceHistoryResponse";
15222
+ if (this._isVoidResponse(_respSchemaName)) {
15223
+ data = void 0;
15224
+ }
15225
+ if (this._validation.settings.res !== "none") {
15226
+ const _schemas = await this._loadSchemas();
15227
+ const _schema = _schemas.zSearchAgentInstanceHistoryResponse;
15228
+ if (_schema) {
15229
+ const maybeR = await this._validation.gateResponse("searchAgentInstanceHistory", _schema, data);
15230
+ if (this._validation.settings.res === "strict") data = maybeR;
15231
+ }
15232
+ }
15233
+ return data;
15234
+ } catch (e) {
15235
+ throw e;
15236
+ }
15237
+ };
15238
+ const invoke = () => toCancelable2(() => call());
15239
+ if (useConsistency) return eventualPoll("searchAgentInstanceHistory", false, invoke, { ...useConsistency, logger: this._log });
15240
+ return invoke();
15241
+ });
15242
+ }
15243
+ searchAgentInstances(arg, consistencyManagement, options) {
15244
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
15245
+ const useConsistency = consistencyManagement.consistency;
15246
+ return toCancelable2(async (signal) => {
15247
+ const _body = arg;
15248
+ let envelope = {};
15249
+ envelope.body = _body;
15250
+ if (this._validation.settings.req !== "none") {
15251
+ const _schemas = await this._loadSchemas();
15252
+ const maybe = await this._validation.gateRequest("searchAgentInstances", _schemas.zSearchAgentInstancesData, envelope);
15253
+ if (this._validation.settings.req === "strict") envelope = maybe;
15254
+ }
15255
+ const opts = { client: this._client, signal, throwOnError: false };
15256
+ if (envelope.body !== void 0) opts.body = envelope.body;
15257
+ const call = async () => {
15258
+ try {
15259
+ const _raw = await searchAgentInstances(opts);
15260
+ let data = this._evaluateResponse(_raw, "searchAgentInstances", (resp) => {
15261
+ const st = resp.status ?? resp.response?.status;
15262
+ if (!st) return void 0;
15263
+ const candidate = st === 429 || st === 503 || st === 500;
15264
+ if (!candidate) return void 0;
15265
+ let prob = void 0;
15266
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
15267
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
15268
+ err.status = st;
15269
+ err.name = "HttpSdkError";
15270
+ if (prob) {
15271
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
15272
+ }
15273
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
15274
+ if (!isBp) err.nonRetryable = true;
15275
+ return err;
15276
+ });
15277
+ const _respSchemaName = "zSearchAgentInstancesResponse";
15278
+ if (this._isVoidResponse(_respSchemaName)) {
15279
+ data = void 0;
15280
+ }
15281
+ if (this._validation.settings.res !== "none") {
15282
+ const _schemas = await this._loadSchemas();
15283
+ const _schema = _schemas.zSearchAgentInstancesResponse;
15284
+ if (_schema) {
15285
+ const maybeR = await this._validation.gateResponse("searchAgentInstances", _schema, data);
15286
+ if (this._validation.settings.res === "strict") data = maybeR;
15287
+ }
15288
+ }
15289
+ return data;
15290
+ } catch (e) {
15291
+ throw e;
15292
+ }
15293
+ };
15294
+ const invoke = () => toCancelable2(() => call());
15295
+ if (useConsistency) return eventualPoll("searchAgentInstances", false, invoke, { ...useConsistency, logger: this._log });
15296
+ return invoke();
15297
+ });
15298
+ }
12704
15299
  searchAuditLogs(arg, consistencyManagement, options) {
12705
15300
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
12706
15301
  const useConsistency = consistencyManagement.consistency;
@@ -13495,6 +16090,62 @@ var CamundaClient = class {
13495
16090
  return invoke();
13496
16091
  });
13497
16092
  }
16093
+ searchElementInstanceWaitStates(arg, consistencyManagement, options) {
16094
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
16095
+ const useConsistency = consistencyManagement.consistency;
16096
+ return toCancelable2(async (signal) => {
16097
+ const _body = arg;
16098
+ let envelope = {};
16099
+ envelope.body = _body;
16100
+ if (this._validation.settings.req !== "none") {
16101
+ const _schemas = await this._loadSchemas();
16102
+ const maybe = await this._validation.gateRequest("searchElementInstanceWaitStates", _schemas.zSearchElementInstanceWaitStatesData, envelope);
16103
+ if (this._validation.settings.req === "strict") envelope = maybe;
16104
+ }
16105
+ const opts = { client: this._client, signal, throwOnError: false };
16106
+ if (envelope.body !== void 0) opts.body = envelope.body;
16107
+ const call = async () => {
16108
+ try {
16109
+ const _raw = await searchElementInstanceWaitStates(opts);
16110
+ let data = this._evaluateResponse(_raw, "searchElementInstanceWaitStates", (resp) => {
16111
+ const st = resp.status ?? resp.response?.status;
16112
+ if (!st) return void 0;
16113
+ const candidate = st === 429 || st === 503 || st === 500;
16114
+ if (!candidate) return void 0;
16115
+ let prob = void 0;
16116
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
16117
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
16118
+ err.status = st;
16119
+ err.name = "HttpSdkError";
16120
+ if (prob) {
16121
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
16122
+ }
16123
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
16124
+ if (!isBp) err.nonRetryable = true;
16125
+ return err;
16126
+ });
16127
+ const _respSchemaName = "zSearchElementInstanceWaitStatesResponse";
16128
+ if (this._isVoidResponse(_respSchemaName)) {
16129
+ data = void 0;
16130
+ }
16131
+ if (this._validation.settings.res !== "none") {
16132
+ const _schemas = await this._loadSchemas();
16133
+ const _schema = _schemas.zSearchElementInstanceWaitStatesResponse;
16134
+ if (_schema) {
16135
+ const maybeR = await this._validation.gateResponse("searchElementInstanceWaitStates", _schema, data);
16136
+ if (this._validation.settings.res === "strict") data = maybeR;
16137
+ }
16138
+ }
16139
+ return data;
16140
+ } catch (e) {
16141
+ throw e;
16142
+ }
16143
+ };
16144
+ const invoke = () => toCancelable2(() => call());
16145
+ if (useConsistency) return eventualPoll("searchElementInstanceWaitStates", false, invoke, { ...useConsistency, logger: this._log });
16146
+ return invoke();
16147
+ });
16148
+ }
13498
16149
  searchGlobalTaskListeners(arg, consistencyManagement, options) {
13499
16150
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
13500
16151
  const useConsistency = consistencyManagement.consistency;
@@ -14291,6 +16942,62 @@ var CamundaClient = class {
14291
16942
  return invoke();
14292
16943
  });
14293
16944
  }
16945
+ searchResources(arg, consistencyManagement, options) {
16946
+ if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
16947
+ const useConsistency = consistencyManagement.consistency;
16948
+ return toCancelable2(async (signal) => {
16949
+ const _body = arg;
16950
+ let envelope = {};
16951
+ envelope.body = _body;
16952
+ if (this._validation.settings.req !== "none") {
16953
+ const _schemas = await this._loadSchemas();
16954
+ const maybe = await this._validation.gateRequest("searchResources", _schemas.zSearchResourcesData, envelope);
16955
+ if (this._validation.settings.req === "strict") envelope = maybe;
16956
+ }
16957
+ const opts = { client: this._client, signal, throwOnError: false };
16958
+ if (envelope.body !== void 0) opts.body = envelope.body;
16959
+ const call = async () => {
16960
+ try {
16961
+ const _raw = await searchResources(opts);
16962
+ let data = this._evaluateResponse(_raw, "searchResources", (resp) => {
16963
+ const st = resp.status ?? resp.response?.status;
16964
+ if (!st) return void 0;
16965
+ const candidate = st === 429 || st === 503 || st === 500;
16966
+ if (!candidate) return void 0;
16967
+ let prob = void 0;
16968
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
16969
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
16970
+ err.status = st;
16971
+ err.name = "HttpSdkError";
16972
+ if (prob) {
16973
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
16974
+ }
16975
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
16976
+ if (!isBp) err.nonRetryable = true;
16977
+ return err;
16978
+ });
16979
+ const _respSchemaName = "zSearchResourcesResponse";
16980
+ if (this._isVoidResponse(_respSchemaName)) {
16981
+ data = void 0;
16982
+ }
16983
+ if (this._validation.settings.res !== "none") {
16984
+ const _schemas = await this._loadSchemas();
16985
+ const _schema = _schemas.zSearchResourcesResponse;
16986
+ if (_schema) {
16987
+ const maybeR = await this._validation.gateResponse("searchResources", _schema, data);
16988
+ if (this._validation.settings.res === "strict") data = maybeR;
16989
+ }
16990
+ }
16991
+ return data;
16992
+ } catch (e) {
16993
+ throw e;
16994
+ }
16995
+ };
16996
+ const invoke = () => toCancelable2(() => call());
16997
+ if (useConsistency) return eventualPoll("searchResources", false, invoke, { ...useConsistency, logger: this._log });
16998
+ return invoke();
16999
+ });
17000
+ }
14294
17001
  searchRoles(arg, consistencyManagement, options) {
14295
17002
  if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
14296
17003
  const useConsistency = consistencyManagement.consistency;
@@ -15825,6 +18532,60 @@ var CamundaClient = class {
15825
18532
  return this._invokeWithRetry(() => call(), { opId: "unassignUserTask", exempt: false, retryOverride: options?.retry });
15826
18533
  });
15827
18534
  }
18535
+ updateAgentInstance(arg, options) {
18536
+ return toCancelable2(async (signal) => {
18537
+ const { agentInstanceKey, ..._body } = arg || {};
18538
+ let envelope = {};
18539
+ envelope.path = { agentInstanceKey };
18540
+ envelope.body = _body;
18541
+ if (this._validation.settings.req !== "none") {
18542
+ const _schemas = await this._loadSchemas();
18543
+ const maybe = await this._validation.gateRequest("updateAgentInstance", _schemas.zUpdateAgentInstanceData, envelope);
18544
+ if (this._validation.settings.req === "strict") envelope = maybe;
18545
+ }
18546
+ const opts = { client: this._client, signal, throwOnError: false };
18547
+ if (envelope.path) opts.path = envelope.path;
18548
+ if (envelope.body !== void 0) opts.body = envelope.body;
18549
+ const call = async () => {
18550
+ try {
18551
+ const _raw = await updateAgentInstance(opts);
18552
+ let data = this._evaluateResponse(_raw, "updateAgentInstance", (resp) => {
18553
+ const st = resp.status ?? resp.response?.status;
18554
+ if (!st) return void 0;
18555
+ const candidate = st === 429 || st === 503 || st === 500;
18556
+ if (!candidate) return void 0;
18557
+ let prob = void 0;
18558
+ if (resp.error && typeof resp.error === "object") prob = resp.error;
18559
+ const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
18560
+ err.status = st;
18561
+ err.name = "HttpSdkError";
18562
+ if (prob) {
18563
+ for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
18564
+ }
18565
+ const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
18566
+ if (!isBp) err.nonRetryable = true;
18567
+ return err;
18568
+ });
18569
+ const _respSchemaName = "zUpdateAgentInstanceResponse";
18570
+ if (this._isVoidResponse(_respSchemaName)) {
18571
+ data = void 0;
18572
+ }
18573
+ if (this._validation.settings.res !== "none") {
18574
+ const _schemas = await this._loadSchemas();
18575
+ const _schema = _schemas.zUpdateAgentInstanceResponse;
18576
+ if (_schema) {
18577
+ const maybeR = await this._validation.gateResponse("updateAgentInstance", _schema, data);
18578
+ if (this._validation.settings.res === "strict") data = maybeR;
18579
+ }
18580
+ }
18581
+ return data;
18582
+ } catch (e) {
18583
+ throw e;
18584
+ }
18585
+ };
18586
+ return this._invokeWithRetry(() => call(), { opId: "updateAgentInstance", exempt: false, retryOverride: options?.retry });
18587
+ });
18588
+ }
15828
18589
  updateAuthorization(arg, options) {
15829
18590
  return toCancelable2(async (signal) => {
15830
18591
  const { authorizationKey, ..._body } = arg || {};
@@ -16578,6 +19339,71 @@ var CamundaClient = class {
16578
19339
  return this.createDeployment(payload);
16579
19340
  });
16580
19341
  }
19342
+ /**
19343
+ * Search for process variables and bind them to a Zod schema (the DTO).
19344
+ *
19345
+ * The schema's keys are the exact variable names to fetch; its shape drives validation. Only
19346
+ * those declared variables are queried (via a `name $in [...]` filter), so memory stays bound
19347
+ * by the DTO shape rather than the total number of variables on the instance. Results are
19348
+ * paged internally until every declared variable is found or the result set is exhausted.
19349
+ *
19350
+ * Returns a {@link VariableMap} offering lenient access (`has` / `get`) and a strict
19351
+ * `validate()` that parses the collected values against the schema — returning a fully-typed
19352
+ * object or throwing a `ZodError` when a required variable is missing or malformed.
19353
+ *
19354
+ * @param schema A Zod object schema declaring the variables to fetch.
19355
+ * @param options Query scope. `processInstanceKey` is required; `scopeKey` narrows to a single
19356
+ * element-instance scope, `tenantId` filters by tenant, and `pageSize` tunes the page limit.
19357
+ * `consistency` controls eventual-consistency tolerance for the underlying `searchVariables`
19358
+ * calls: it defaults to `{ waitUpToMs: 0 }` (no waiting), but a non-zero `waitUpToMs` makes the
19359
+ * paging calls poll until the data is consistent, avoiding intermittent missing variables /
19360
+ * `ZodError` on a freshly-updated instance.
19361
+ * @throws {VariableScopeCollisionError} when a declared variable is found at more than one
19362
+ * scope and no `scopeKey` was provided to disambiguate.
19363
+ * @throws {VariableDeserializationError} when a variable's value is not valid JSON.
19364
+ *
19365
+ * @example
19366
+ * ```ts
19367
+ * import { z } from 'zod';
19368
+ * const OrderVariables = z.object({ orderId: z.string(), amount: z.number().optional() });
19369
+ * const map = await client.searchVariablesAsDto(OrderVariables, { processInstanceKey });
19370
+ * if (map.has('amount')) console.log(map.get('amount'));
19371
+ * const order = map.validate(); // { orderId: string; amount?: number }
19372
+ * ```
19373
+ */
19374
+ searchVariablesAsDto(schema, options) {
19375
+ return toCancelable2(async (signal) => {
19376
+ if (!options?.processInstanceKey) {
19377
+ throw new Error("searchVariablesAsDto requires options.processInstanceKey");
19378
+ }
19379
+ const names = variableNamesFromSchema(schema);
19380
+ const limit = options.pageSize && options.pageSize > 0 ? options.pageSize : 100;
19381
+ const filter = {
19382
+ name: { $in: names },
19383
+ processInstanceKey: options.processInstanceKey
19384
+ };
19385
+ if (options.scopeKey) filter.scopeKey = options.scopeKey;
19386
+ if (options.tenantId) filter.tenantId = options.tenantId;
19387
+ return collectTypedVariables({
19388
+ schema,
19389
+ // A single scopeKey restricts results to one scope, so each declared name appears at most
19390
+ // once and paging can stop as soon as all are found. Otherwise we page to exhaustion so a
19391
+ // same-name/different-scope collision on a later page surfaces as a VariableScopeCollisionError.
19392
+ singleScope: Boolean(options.scopeKey),
19393
+ // Eventual-consistency waiting happens at the collection level: re-read until every declared
19394
+ // variable is visible or the budget expires. The per-page search never waits — a paging read
19395
+ // that legitimately returns 0 items must not block, and waiting on the first search alone
19396
+ // settles on a partial result (its success condition is merely "any matching variable").
19397
+ consistency: options.consistency,
19398
+ fetchPage: createVariableSearchFetchPage({
19399
+ filter,
19400
+ limit,
19401
+ signal,
19402
+ search: (input) => this.searchVariables(input, { consistency: { waitUpToMs: 0 } })
19403
+ })
19404
+ });
19405
+ });
19406
+ }
16581
19407
  };
16582
19408
 
16583
19409
  // src/fp-ts.ts
@@ -16706,6 +19532,13 @@ export {
16706
19532
  isSdkError,
16707
19533
  CamundaValidationError,
16708
19534
  EventualConsistencyTimeoutError,
19535
+ TypedVariablesError,
19536
+ VariableScopeCollisionError,
19537
+ VariableDeserializationError,
19538
+ variableNamesFromSchema,
19539
+ VariableMap,
19540
+ VariableCollector,
19541
+ collectTypedVariables,
16709
19542
  JobActionReceipt,
16710
19543
  CancelError,
16711
19544
  createCamundaClient,
@@ -16719,4 +19552,4 @@ export {
16719
19552
  withTimeoutTE,
16720
19553
  eventuallyTE
16721
19554
  };
16722
- //# sourceMappingURL=chunk-WSCXETVI.js.map
19555
+ //# sourceMappingURL=chunk-35C35RRO.js.map