@camunda8/orchestration-cluster-api 8.9.0-alpha.5 → 8.9.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +17 -0
- package/dist/{chunk-2VE6SLA6.js → chunk-32PKZRTH.js} +318 -4
- package/dist/chunk-32PKZRTH.js.map +1 -0
- package/dist/fp/index.cjs +317 -3
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.d.cts +1 -1
- package/dist/fp/index.d.ts +1 -1
- package/dist/fp/index.js +1 -1
- package/dist/{index-DZrGndx5.d.cts → index-Czq8V74R.d.cts} +330 -8
- package/dist/{index-B6v4_SqZ.d.ts → index-ragGAppv.d.ts} +330 -8
- package/dist/index.cjs +334 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/chunk-2VE6SLA6.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [8.9.0-alpha.6](https://github.com/camunda/orchestration-cluster-api-js/compare/v8.9.0-alpha.5...v8.9.0-alpha.6) (2026-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* regenerate from latest schema ([c2d9dff](https://github.com/camunda/orchestration-cluster-api-js/commit/c2d9dffe96f645d2043f62335ef97bdc381b37b1))
|
|
7
|
+
|
|
1
8
|
## [1.2.4-alpha.1](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.2.3...v1.2.4-alpha.1) (2026-01-22)
|
|
2
9
|
|
|
3
10
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -28,6 +28,23 @@ Runtime support:
|
|
|
28
28
|
|
|
29
29
|
For older Node versions supply a fetch ponyfill AND a `File` shim (or upgrade). For legacy browsers, add a fetch polyfill (e.g. `whatwg-fetch`).
|
|
30
30
|
|
|
31
|
+
## Versioning
|
|
32
|
+
|
|
33
|
+
This SDK does **not** follow traditional semver. The **major.minor** version tracks the Camunda server version, so you can easily match the SDK to your deployment target (e.g. SDK `8.9.x` targets Camunda `8.9`).
|
|
34
|
+
|
|
35
|
+
**Patch releases** contain fixes, features, and occasionally **breaking type changes**. A breaking type change typically means an upstream API definition fix that corrects the shape of a request or response model — your code may stop type-checking even though it worked before.
|
|
36
|
+
|
|
37
|
+
When this happens, we signal it in the [CHANGELOG](https://github.com/camunda/orchestration-cluster-api-js/releases).
|
|
38
|
+
|
|
39
|
+
**Recommended approach:**
|
|
40
|
+
|
|
41
|
+
- **Ride the latest** — accept that types may shift and update your code when it happens. This keeps you on the most accurate API surface.
|
|
42
|
+
- **Pin and review** — pin to a specific patch version in `package.json` and review the [CHANGELOG](https://github.com/camunda/orchestration-cluster-api-js/releases) before upgrading:
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
"@camunda8/orchestration-cluster-api": "8.9.3"
|
|
46
|
+
```
|
|
47
|
+
|
|
31
48
|
## Quick Start (Zero‑Config – Recommended)
|
|
32
49
|
|
|
33
50
|
Keep configuration out of application code. Let the factory read `CAMUNDA_*` variables from the environment (12‑factor style). This makes rotation, secret management, and environment promotion safer & simpler.
|
|
@@ -1684,6 +1684,38 @@ var evaluateExpression = (options) => {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
1686
1686
|
};
|
|
1687
|
+
var createGlobalTaskListener = (options) => {
|
|
1688
|
+
return (options.client ?? client).post({
|
|
1689
|
+
requestValidator: void 0,
|
|
1690
|
+
responseValidator: void 0,
|
|
1691
|
+
url: "/global-listeners/user-task",
|
|
1692
|
+
...options,
|
|
1693
|
+
headers: {
|
|
1694
|
+
"Content-Type": "application/json",
|
|
1695
|
+
...options.headers
|
|
1696
|
+
}
|
|
1697
|
+
});
|
|
1698
|
+
};
|
|
1699
|
+
var deleteGlobalTaskListener = (options) => {
|
|
1700
|
+
return (options.client ?? client).delete({
|
|
1701
|
+
requestValidator: void 0,
|
|
1702
|
+
responseValidator: void 0,
|
|
1703
|
+
url: "/global-listeners/user-task/{id}",
|
|
1704
|
+
...options
|
|
1705
|
+
});
|
|
1706
|
+
};
|
|
1707
|
+
var updateGlobalTaskListener = (options) => {
|
|
1708
|
+
return (options.client ?? client).put({
|
|
1709
|
+
requestValidator: void 0,
|
|
1710
|
+
responseValidator: void 0,
|
|
1711
|
+
url: "/global-listeners/user-task/{id}",
|
|
1712
|
+
...options,
|
|
1713
|
+
headers: {
|
|
1714
|
+
"Content-Type": "application/json",
|
|
1715
|
+
...options.headers
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
};
|
|
1687
1719
|
var createGroup = (options) => {
|
|
1688
1720
|
return (options?.client ?? client).post({
|
|
1689
1721
|
requestValidator: void 0,
|
|
@@ -2527,6 +2559,7 @@ var assignRoleToUser = (options) => {
|
|
|
2527
2559
|
var createAdminUser = (options) => {
|
|
2528
2560
|
return (options.client ?? client).post({
|
|
2529
2561
|
requestValidator: void 0,
|
|
2562
|
+
responseValidator: void 0,
|
|
2530
2563
|
url: "/setup/user",
|
|
2531
2564
|
...options,
|
|
2532
2565
|
headers: {
|
|
@@ -3101,6 +3134,7 @@ __export(zod_gen_exports, {
|
|
|
3101
3134
|
zCorrelatedMessageSubscriptionSearchQueryResult: () => zCorrelatedMessageSubscriptionSearchQueryResult,
|
|
3102
3135
|
zCorrelatedMessageSubscriptionSearchQuerySortRequest: () => zCorrelatedMessageSubscriptionSearchQuerySortRequest,
|
|
3103
3136
|
zCreateAdminUserData: () => zCreateAdminUserData,
|
|
3137
|
+
zCreateAdminUserResponse: () => zCreateAdminUserResponse,
|
|
3104
3138
|
zCreateAuthorizationData: () => zCreateAuthorizationData,
|
|
3105
3139
|
zCreateAuthorizationResponse: () => zCreateAuthorizationResponse,
|
|
3106
3140
|
zCreateClusterVariableRequest: () => zCreateClusterVariableRequest,
|
|
@@ -3116,6 +3150,9 @@ __export(zod_gen_exports, {
|
|
|
3116
3150
|
zCreateElementInstanceVariablesResponse: () => zCreateElementInstanceVariablesResponse,
|
|
3117
3151
|
zCreateGlobalClusterVariableData: () => zCreateGlobalClusterVariableData,
|
|
3118
3152
|
zCreateGlobalClusterVariableResponse: () => zCreateGlobalClusterVariableResponse,
|
|
3153
|
+
zCreateGlobalTaskListenerData: () => zCreateGlobalTaskListenerData,
|
|
3154
|
+
zCreateGlobalTaskListenerRequest: () => zCreateGlobalTaskListenerRequest,
|
|
3155
|
+
zCreateGlobalTaskListenerResponse: () => zCreateGlobalTaskListenerResponse,
|
|
3119
3156
|
zCreateGroupData: () => zCreateGroupData,
|
|
3120
3157
|
zCreateGroupResponse: () => zCreateGroupResponse,
|
|
3121
3158
|
zCreateMappingRuleData: () => zCreateMappingRuleData,
|
|
@@ -3183,6 +3220,8 @@ __export(zod_gen_exports, {
|
|
|
3183
3220
|
zDeleteDocumentResponse: () => zDeleteDocumentResponse,
|
|
3184
3221
|
zDeleteGlobalClusterVariableData: () => zDeleteGlobalClusterVariableData,
|
|
3185
3222
|
zDeleteGlobalClusterVariableResponse: () => zDeleteGlobalClusterVariableResponse,
|
|
3223
|
+
zDeleteGlobalTaskListenerData: () => zDeleteGlobalTaskListenerData,
|
|
3224
|
+
zDeleteGlobalTaskListenerResponse: () => zDeleteGlobalTaskListenerResponse,
|
|
3186
3225
|
zDeleteGroupData: () => zDeleteGroupData,
|
|
3187
3226
|
zDeleteGroupResponse: () => zDeleteGroupResponse,
|
|
3188
3227
|
zDeleteMappingRuleData: () => zDeleteMappingRuleData,
|
|
@@ -3342,6 +3381,13 @@ __export(zod_gen_exports, {
|
|
|
3342
3381
|
zGetVariableData: () => zGetVariableData,
|
|
3343
3382
|
zGetVariableResponse: () => zGetVariableResponse,
|
|
3344
3383
|
zGlobalJobStatisticsQueryResult: () => zGlobalJobStatisticsQueryResult,
|
|
3384
|
+
zGlobalListenerBase: () => zGlobalListenerBase,
|
|
3385
|
+
zGlobalListenerId: () => zGlobalListenerId,
|
|
3386
|
+
zGlobalListenerSourceEnum: () => zGlobalListenerSourceEnum,
|
|
3387
|
+
zGlobalTaskListenerBase: () => zGlobalTaskListenerBase,
|
|
3388
|
+
zGlobalTaskListenerEventTypeEnum: () => zGlobalTaskListenerEventTypeEnum,
|
|
3389
|
+
zGlobalTaskListenerEventTypes: () => zGlobalTaskListenerEventTypes,
|
|
3390
|
+
zGlobalTaskListenerResult: () => zGlobalTaskListenerResult,
|
|
3345
3391
|
zGroupClientResult: () => zGroupClientResult,
|
|
3346
3392
|
zGroupClientSearchQueryRequest: () => zGroupClientSearchQueryRequest,
|
|
3347
3393
|
zGroupClientSearchQuerySortRequest: () => zGroupClientSearchQuerySortRequest,
|
|
@@ -3722,6 +3768,9 @@ __export(zod_gen_exports, {
|
|
|
3722
3768
|
zUpdateClusterVariableRequest: () => zUpdateClusterVariableRequest,
|
|
3723
3769
|
zUpdateGlobalClusterVariableData: () => zUpdateGlobalClusterVariableData,
|
|
3724
3770
|
zUpdateGlobalClusterVariableResponse: () => zUpdateGlobalClusterVariableResponse,
|
|
3771
|
+
zUpdateGlobalTaskListenerData: () => zUpdateGlobalTaskListenerData,
|
|
3772
|
+
zUpdateGlobalTaskListenerRequest: () => zUpdateGlobalTaskListenerRequest,
|
|
3773
|
+
zUpdateGlobalTaskListenerResponse: () => zUpdateGlobalTaskListenerResponse,
|
|
3725
3774
|
zUpdateGroupData: () => zUpdateGroupData,
|
|
3726
3775
|
zUpdateGroupResponse: () => zUpdateGroupResponse,
|
|
3727
3776
|
zUpdateJobData: () => zUpdateJobData,
|
|
@@ -4240,7 +4289,7 @@ var zExpressionEvaluationResult = z.object({
|
|
|
4240
4289
|
expression: z.string().register(z.globalRegistry, {
|
|
4241
4290
|
description: "The evaluated expression"
|
|
4242
4291
|
}),
|
|
4243
|
-
result: z.
|
|
4292
|
+
result: z.unknown().register(z.globalRegistry, {
|
|
4244
4293
|
description: "The result value. Its type can vary."
|
|
4245
4294
|
}),
|
|
4246
4295
|
warnings: z.array(z.string()).register(z.globalRegistry, {
|
|
@@ -4498,6 +4547,43 @@ var zDateTimeFilterProperty = z.union([
|
|
|
4498
4547
|
}),
|
|
4499
4548
|
zAdvancedDateTimeFilter
|
|
4500
4549
|
]);
|
|
4550
|
+
var zGlobalListenerSourceEnum = z.enum([
|
|
4551
|
+
"CONFIGURATION",
|
|
4552
|
+
"API"
|
|
4553
|
+
]).register(z.globalRegistry, {
|
|
4554
|
+
description: "How the global listener was defined."
|
|
4555
|
+
});
|
|
4556
|
+
var zGlobalTaskListenerEventTypeEnum = z.enum([
|
|
4557
|
+
"all",
|
|
4558
|
+
"creating",
|
|
4559
|
+
"assigning",
|
|
4560
|
+
"updating",
|
|
4561
|
+
"completing",
|
|
4562
|
+
"canceling"
|
|
4563
|
+
]).register(z.globalRegistry, {
|
|
4564
|
+
description: "The event type that triggers the user task listener."
|
|
4565
|
+
});
|
|
4566
|
+
var zGlobalListenerBase = z.object({
|
|
4567
|
+
type: z.optional(z.string().register(z.globalRegistry, {
|
|
4568
|
+
description: "The name of the job type, used as a reference to specify which job workers request the respective listener job."
|
|
4569
|
+
})),
|
|
4570
|
+
retries: z.optional(z.int().register(z.globalRegistry, {
|
|
4571
|
+
description: "Number of retries for the listener job."
|
|
4572
|
+
})),
|
|
4573
|
+
afterNonGlobal: z.optional(z.boolean().register(z.globalRegistry, {
|
|
4574
|
+
description: "Whether the listener should run after model-level listeners."
|
|
4575
|
+
})),
|
|
4576
|
+
priority: z.optional(z.int().register(z.globalRegistry, {
|
|
4577
|
+
description: "The priority of the listener. Higher priority listeners are executed before lower priority ones."
|
|
4578
|
+
}))
|
|
4579
|
+
});
|
|
4580
|
+
var zGlobalTaskListenerEventTypes = z.array(zGlobalTaskListenerEventTypeEnum).register(z.globalRegistry, {
|
|
4581
|
+
description: "List of user task event types that trigger the listener."
|
|
4582
|
+
});
|
|
4583
|
+
var zGlobalTaskListenerBase = zGlobalListenerBase.and(z.object({
|
|
4584
|
+
eventTypes: z.optional(zGlobalTaskListenerEventTypes)
|
|
4585
|
+
}));
|
|
4586
|
+
var zUpdateGlobalTaskListenerRequest = zGlobalTaskListenerBase;
|
|
4501
4587
|
var zGroupCreateRequest = z.object({
|
|
4502
4588
|
groupId: z.string().register(z.globalRegistry, {
|
|
4503
4589
|
description: "The ID of the new group."
|
|
@@ -4597,6 +4683,17 @@ var zFormId = z.string().register(z.globalRegistry, {
|
|
|
4597
4683
|
var zDecisionDefinitionId = z.string().min(1).max(256).regex(/^[A-Za-z0-9_@.+-]+$/).register(z.globalRegistry, {
|
|
4598
4684
|
description: "Id of a decision definition, from the model. Only ids of decision definitions that are deployed are useful."
|
|
4599
4685
|
});
|
|
4686
|
+
var zGlobalListenerId = z.string().register(z.globalRegistry, {
|
|
4687
|
+
description: "The user-defined id for the global listener"
|
|
4688
|
+
});
|
|
4689
|
+
var zCreateGlobalTaskListenerRequest = zGlobalTaskListenerBase.and(z.object({
|
|
4690
|
+
id: zGlobalListenerId,
|
|
4691
|
+
eventTypes: zGlobalTaskListenerEventTypes
|
|
4692
|
+
}));
|
|
4693
|
+
var zGlobalTaskListenerResult = zGlobalTaskListenerBase.and(z.object({
|
|
4694
|
+
id: z.optional(zGlobalListenerId),
|
|
4695
|
+
source: z.optional(zGlobalListenerSourceEnum)
|
|
4696
|
+
}));
|
|
4600
4697
|
var zTenantId = z.string().min(1).max(256).regex(/^(<default>|[A-Za-z0-9_@.+-]+)$/).register(z.globalRegistry, {
|
|
4601
4698
|
description: "The unique identifier of the tenant."
|
|
4602
4699
|
});
|
|
@@ -5687,6 +5784,9 @@ var zAuditLogResult = z.object({
|
|
|
5687
5784
|
description: "The ID of the actor who performed the operation."
|
|
5688
5785
|
})),
|
|
5689
5786
|
actorType: z.optional(zAuditLogActorTypeEnum),
|
|
5787
|
+
agentElementId: z.optional(z.string().register(z.globalRegistry, {
|
|
5788
|
+
description: "The element ID of the agent that performed the operation (e.g. ad-hoc subprocess element ID)."
|
|
5789
|
+
})),
|
|
5690
5790
|
tenantId: z.optional(zTenantId),
|
|
5691
5791
|
result: z.optional(zAuditLogResultEnum),
|
|
5692
5792
|
annotation: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -6117,7 +6217,7 @@ var zProblemDetail = z.object({
|
|
|
6117
6217
|
detail: z.optional(z.string().register(z.globalRegistry, {
|
|
6118
6218
|
description: "An explanation of the problem in more detail."
|
|
6119
6219
|
})),
|
|
6120
|
-
instance: z.optional(z.
|
|
6220
|
+
instance: z.optional(z.string().register(z.globalRegistry, {
|
|
6121
6221
|
description: "A URI path identifying the origin of the problem."
|
|
6122
6222
|
}))
|
|
6123
6223
|
}).register(z.globalRegistry, {
|
|
@@ -8253,6 +8353,7 @@ var zAuditLogFilter = z.object({
|
|
|
8253
8353
|
timestamp: z.optional(zDateTimeFilterProperty),
|
|
8254
8354
|
actorId: z.optional(zStringFilterProperty),
|
|
8255
8355
|
actorType: z.optional(zAuditLogActorTypeFilterProperty),
|
|
8356
|
+
agentElementId: z.optional(zStringFilterProperty),
|
|
8256
8357
|
entityKey: z.optional(zAuditLogEntityKeyFilterProperty),
|
|
8257
8358
|
entityType: z.optional(zEntityTypeFilterProperty),
|
|
8258
8359
|
tenantId: z.optional(zStringFilterProperty),
|
|
@@ -8533,6 +8634,9 @@ var zSearchAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
8533
8634
|
description: "The ID of the actor who performed the operation."
|
|
8534
8635
|
})),
|
|
8535
8636
|
actorType: z.optional(zAuditLogActorTypeEnum),
|
|
8637
|
+
agentElementId: z.optional(z.string().register(z.globalRegistry, {
|
|
8638
|
+
description: "The element ID of the agent that performed the operation (e.g. ad-hoc subprocess element ID)."
|
|
8639
|
+
})),
|
|
8536
8640
|
tenantId: z.optional(zTenantId),
|
|
8537
8641
|
result: z.optional(zAuditLogResultEnum),
|
|
8538
8642
|
annotation: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -8590,6 +8694,9 @@ var zGetAuditLogResponse = z.object({
|
|
|
8590
8694
|
description: "The ID of the actor who performed the operation."
|
|
8591
8695
|
})),
|
|
8592
8696
|
actorType: z.optional(zAuditLogActorTypeEnum),
|
|
8697
|
+
agentElementId: z.optional(z.string().register(z.globalRegistry, {
|
|
8698
|
+
description: "The element ID of the agent that performed the operation (e.g. ad-hoc subprocess element ID)."
|
|
8699
|
+
})),
|
|
8593
8700
|
tenantId: z.optional(zTenantId),
|
|
8594
8701
|
result: z.optional(zAuditLogResultEnum),
|
|
8595
8702
|
annotation: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -9480,6 +9587,38 @@ var zEvaluateExpressionData = z.object({
|
|
|
9480
9587
|
query: z.optional(z.never())
|
|
9481
9588
|
});
|
|
9482
9589
|
var zEvaluateExpressionResponse = zExpressionEvaluationResult;
|
|
9590
|
+
var zCreateGlobalTaskListenerData = z.object({
|
|
9591
|
+
body: zCreateGlobalTaskListenerRequest,
|
|
9592
|
+
path: z.optional(z.never()),
|
|
9593
|
+
query: z.optional(z.never())
|
|
9594
|
+
});
|
|
9595
|
+
var zCreateGlobalTaskListenerResponse = zGlobalTaskListenerBase.and(z.object({
|
|
9596
|
+
id: z.optional(zGlobalListenerId),
|
|
9597
|
+
source: z.optional(zGlobalListenerSourceEnum)
|
|
9598
|
+
}).register(z.globalRegistry, {
|
|
9599
|
+
description: "The global user task listener was created successfully."
|
|
9600
|
+
}));
|
|
9601
|
+
var zDeleteGlobalTaskListenerData = z.object({
|
|
9602
|
+
body: z.optional(z.never()),
|
|
9603
|
+
path: z.object({
|
|
9604
|
+
id: zGlobalListenerId
|
|
9605
|
+
}),
|
|
9606
|
+
query: z.optional(z.never())
|
|
9607
|
+
});
|
|
9608
|
+
var zDeleteGlobalTaskListenerResponse = z.void().register(z.globalRegistry, {
|
|
9609
|
+
description: "The global listener was deleted successfully."
|
|
9610
|
+
});
|
|
9611
|
+
var zUpdateGlobalTaskListenerData = z.object({
|
|
9612
|
+
body: zGlobalTaskListenerBase,
|
|
9613
|
+
path: z.object({
|
|
9614
|
+
id: zGlobalListenerId
|
|
9615
|
+
}),
|
|
9616
|
+
query: z.optional(z.never())
|
|
9617
|
+
});
|
|
9618
|
+
var zUpdateGlobalTaskListenerResponse = zGlobalTaskListenerBase.and(z.object({
|
|
9619
|
+
id: z.optional(zGlobalListenerId),
|
|
9620
|
+
source: z.optional(zGlobalListenerSourceEnum)
|
|
9621
|
+
}));
|
|
9483
9622
|
var zCreateGroupData = z.object({
|
|
9484
9623
|
body: z.optional(zGroupCreateRequest),
|
|
9485
9624
|
path: z.optional(z.never()),
|
|
@@ -10903,6 +11042,7 @@ var zCreateAdminUserData = z.object({
|
|
|
10903
11042
|
path: z.optional(z.never()),
|
|
10904
11043
|
query: z.optional(z.never())
|
|
10905
11044
|
});
|
|
11045
|
+
var zCreateAdminUserResponse = zUserCreateResult;
|
|
10906
11046
|
var zBroadcastSignalData = z.object({
|
|
10907
11047
|
body: zSignalBroadcastRequest,
|
|
10908
11048
|
path: z.optional(z.never()),
|
|
@@ -11470,6 +11610,9 @@ var zSearchUserTaskAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
11470
11610
|
description: "The ID of the actor who performed the operation."
|
|
11471
11611
|
})),
|
|
11472
11612
|
actorType: z.optional(zAuditLogActorTypeEnum),
|
|
11613
|
+
agentElementId: z.optional(z.string().register(z.globalRegistry, {
|
|
11614
|
+
description: "The element ID of the agent that performed the operation (e.g. ad-hoc subprocess element ID)."
|
|
11615
|
+
})),
|
|
11473
11616
|
tenantId: z.optional(zTenantId),
|
|
11474
11617
|
result: z.optional(zAuditLogResultEnum),
|
|
11475
11618
|
annotation: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -12934,7 +13077,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
12934
13077
|
}
|
|
12935
13078
|
|
|
12936
13079
|
// src/runtime/version.ts
|
|
12937
|
-
var packageVersion = "8.9.0-alpha.
|
|
13080
|
+
var packageVersion = "8.9.0-alpha.6";
|
|
12938
13081
|
|
|
12939
13082
|
// src/runtime/supportLogger.ts
|
|
12940
13083
|
var NoopSupportLogger = class {
|
|
@@ -15503,6 +15646,13 @@ var CamundaClient = class {
|
|
|
15503
15646
|
if (this._isVoidResponse(_respSchemaName)) {
|
|
15504
15647
|
data = void 0;
|
|
15505
15648
|
}
|
|
15649
|
+
if (this._validation.settings.res !== "none") {
|
|
15650
|
+
const _schema = zCreateAdminUserResponse;
|
|
15651
|
+
if (_schema) {
|
|
15652
|
+
const maybeR = await this._validation.gateResponse("createAdminUser", _schema, data);
|
|
15653
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
15654
|
+
}
|
|
15655
|
+
}
|
|
15506
15656
|
return data;
|
|
15507
15657
|
} catch (e) {
|
|
15508
15658
|
throw e;
|
|
@@ -15891,6 +16041,60 @@ var CamundaClient = class {
|
|
|
15891
16041
|
return this._invokeWithRetry(() => call(), { opId: "createGlobalClusterVariable", exempt: false });
|
|
15892
16042
|
});
|
|
15893
16043
|
}
|
|
16044
|
+
createGlobalTaskListener(arg, consistencyManagement) {
|
|
16045
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
16046
|
+
const useConsistency = consistencyManagement.consistency;
|
|
16047
|
+
return toCancelable2(async (signal) => {
|
|
16048
|
+
const _body = arg;
|
|
16049
|
+
let envelope = {};
|
|
16050
|
+
envelope.body = _body;
|
|
16051
|
+
if (this._validation.settings.req !== "none") {
|
|
16052
|
+
const maybe = await this._validation.gateRequest("createGlobalTaskListener", zCreateGlobalTaskListenerData, envelope);
|
|
16053
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
16054
|
+
}
|
|
16055
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
16056
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
16057
|
+
const call = async () => {
|
|
16058
|
+
try {
|
|
16059
|
+
const _raw = await createGlobalTaskListener(opts);
|
|
16060
|
+
let data = this._evaluateResponse(_raw, "createGlobalTaskListener", (resp) => {
|
|
16061
|
+
const st = resp.status ?? resp.response?.status;
|
|
16062
|
+
if (!st) return void 0;
|
|
16063
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
16064
|
+
if (!candidate) return void 0;
|
|
16065
|
+
let prob = void 0;
|
|
16066
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
16067
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
16068
|
+
err.status = st;
|
|
16069
|
+
err.name = "HttpSdkError";
|
|
16070
|
+
if (prob) {
|
|
16071
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
16072
|
+
}
|
|
16073
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
16074
|
+
if (!isBp) err.nonRetryable = true;
|
|
16075
|
+
return err;
|
|
16076
|
+
});
|
|
16077
|
+
const _respSchemaName = "zCreateGlobalTaskListenerResponse";
|
|
16078
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
16079
|
+
data = void 0;
|
|
16080
|
+
}
|
|
16081
|
+
if (this._validation.settings.res !== "none") {
|
|
16082
|
+
const _schema = zCreateGlobalTaskListenerResponse;
|
|
16083
|
+
if (_schema) {
|
|
16084
|
+
const maybeR = await this._validation.gateResponse("createGlobalTaskListener", _schema, data);
|
|
16085
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
16086
|
+
}
|
|
16087
|
+
}
|
|
16088
|
+
return data;
|
|
16089
|
+
} catch (e) {
|
|
16090
|
+
throw e;
|
|
16091
|
+
}
|
|
16092
|
+
};
|
|
16093
|
+
const invoke = () => toCancelable2(() => call());
|
|
16094
|
+
if (useConsistency) return eventualPoll("createGlobalTaskListener", false, invoke, { ...useConsistency, logger: this._log });
|
|
16095
|
+
return invoke();
|
|
16096
|
+
});
|
|
16097
|
+
}
|
|
15894
16098
|
createGroup(arg) {
|
|
15895
16099
|
return toCancelable2(async (signal) => {
|
|
15896
16100
|
const _body = arg;
|
|
@@ -16513,6 +16717,60 @@ var CamundaClient = class {
|
|
|
16513
16717
|
return this._invokeWithRetry(() => call(), { opId: "deleteGlobalClusterVariable", exempt: false });
|
|
16514
16718
|
});
|
|
16515
16719
|
}
|
|
16720
|
+
deleteGlobalTaskListener(arg, consistencyManagement) {
|
|
16721
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
16722
|
+
const useConsistency = consistencyManagement.consistency;
|
|
16723
|
+
return toCancelable2(async (signal) => {
|
|
16724
|
+
const { id } = arg || {};
|
|
16725
|
+
let envelope = {};
|
|
16726
|
+
envelope.path = { id };
|
|
16727
|
+
if (this._validation.settings.req !== "none") {
|
|
16728
|
+
const maybe = await this._validation.gateRequest("deleteGlobalTaskListener", zDeleteGlobalTaskListenerData, envelope);
|
|
16729
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
16730
|
+
}
|
|
16731
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
16732
|
+
if (envelope.path) opts.path = envelope.path;
|
|
16733
|
+
const call = async () => {
|
|
16734
|
+
try {
|
|
16735
|
+
const _raw = await deleteGlobalTaskListener(opts);
|
|
16736
|
+
let data = this._evaluateResponse(_raw, "deleteGlobalTaskListener", (resp) => {
|
|
16737
|
+
const st = resp.status ?? resp.response?.status;
|
|
16738
|
+
if (!st) return void 0;
|
|
16739
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
16740
|
+
if (!candidate) return void 0;
|
|
16741
|
+
let prob = void 0;
|
|
16742
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
16743
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
16744
|
+
err.status = st;
|
|
16745
|
+
err.name = "HttpSdkError";
|
|
16746
|
+
if (prob) {
|
|
16747
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
16748
|
+
}
|
|
16749
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
16750
|
+
if (!isBp) err.nonRetryable = true;
|
|
16751
|
+
return err;
|
|
16752
|
+
});
|
|
16753
|
+
const _respSchemaName = "zDeleteGlobalTaskListenerResponse";
|
|
16754
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
16755
|
+
data = void 0;
|
|
16756
|
+
}
|
|
16757
|
+
if (this._validation.settings.res !== "none") {
|
|
16758
|
+
const _schema = zDeleteGlobalTaskListenerResponse;
|
|
16759
|
+
if (_schema) {
|
|
16760
|
+
const maybeR = await this._validation.gateResponse("deleteGlobalTaskListener", _schema, data);
|
|
16761
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
16762
|
+
}
|
|
16763
|
+
}
|
|
16764
|
+
return data;
|
|
16765
|
+
} catch (e) {
|
|
16766
|
+
throw e;
|
|
16767
|
+
}
|
|
16768
|
+
};
|
|
16769
|
+
const invoke = () => toCancelable2(() => call());
|
|
16770
|
+
if (useConsistency) return eventualPoll("deleteGlobalTaskListener", false, invoke, { ...useConsistency, logger: this._log });
|
|
16771
|
+
return invoke();
|
|
16772
|
+
});
|
|
16773
|
+
}
|
|
16516
16774
|
deleteGroup(arg) {
|
|
16517
16775
|
return toCancelable2(async (signal) => {
|
|
16518
16776
|
const { groupId } = arg || {};
|
|
@@ -22987,6 +23245,62 @@ var CamundaClient = class {
|
|
|
22987
23245
|
return this._invokeWithRetry(() => call(), { opId: "updateGlobalClusterVariable", exempt: false });
|
|
22988
23246
|
});
|
|
22989
23247
|
}
|
|
23248
|
+
updateGlobalTaskListener(arg, consistencyManagement) {
|
|
23249
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
23250
|
+
const useConsistency = consistencyManagement.consistency;
|
|
23251
|
+
return toCancelable2(async (signal) => {
|
|
23252
|
+
const { id, ..._body } = arg || {};
|
|
23253
|
+
let envelope = {};
|
|
23254
|
+
envelope.path = { id };
|
|
23255
|
+
envelope.body = _body;
|
|
23256
|
+
if (this._validation.settings.req !== "none") {
|
|
23257
|
+
const maybe = await this._validation.gateRequest("updateGlobalTaskListener", zUpdateGlobalTaskListenerData, envelope);
|
|
23258
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
23259
|
+
}
|
|
23260
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
23261
|
+
if (envelope.path) opts.path = envelope.path;
|
|
23262
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
23263
|
+
const call = async () => {
|
|
23264
|
+
try {
|
|
23265
|
+
const _raw = await updateGlobalTaskListener(opts);
|
|
23266
|
+
let data = this._evaluateResponse(_raw, "updateGlobalTaskListener", (resp) => {
|
|
23267
|
+
const st = resp.status ?? resp.response?.status;
|
|
23268
|
+
if (!st) return void 0;
|
|
23269
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
23270
|
+
if (!candidate) return void 0;
|
|
23271
|
+
let prob = void 0;
|
|
23272
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
23273
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
23274
|
+
err.status = st;
|
|
23275
|
+
err.name = "HttpSdkError";
|
|
23276
|
+
if (prob) {
|
|
23277
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
23278
|
+
}
|
|
23279
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
23280
|
+
if (!isBp) err.nonRetryable = true;
|
|
23281
|
+
return err;
|
|
23282
|
+
});
|
|
23283
|
+
const _respSchemaName = "zUpdateGlobalTaskListenerResponse";
|
|
23284
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
23285
|
+
data = void 0;
|
|
23286
|
+
}
|
|
23287
|
+
if (this._validation.settings.res !== "none") {
|
|
23288
|
+
const _schema = zUpdateGlobalTaskListenerResponse;
|
|
23289
|
+
if (_schema) {
|
|
23290
|
+
const maybeR = await this._validation.gateResponse("updateGlobalTaskListener", _schema, data);
|
|
23291
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
23292
|
+
}
|
|
23293
|
+
}
|
|
23294
|
+
return data;
|
|
23295
|
+
} catch (e) {
|
|
23296
|
+
throw e;
|
|
23297
|
+
}
|
|
23298
|
+
};
|
|
23299
|
+
const invoke = () => toCancelable2(() => call());
|
|
23300
|
+
if (useConsistency) return eventualPoll("updateGlobalTaskListener", false, invoke, { ...useConsistency, logger: this._log });
|
|
23301
|
+
return invoke();
|
|
23302
|
+
});
|
|
23303
|
+
}
|
|
22990
23304
|
updateGroup(arg) {
|
|
22991
23305
|
return toCancelable2(async (signal) => {
|
|
22992
23306
|
const { groupId, ..._body } = arg || {};
|
|
@@ -23612,4 +23926,4 @@ export {
|
|
|
23612
23926
|
withTimeoutTE,
|
|
23613
23927
|
eventuallyTE
|
|
23614
23928
|
};
|
|
23615
|
-
//# sourceMappingURL=chunk-
|
|
23929
|
+
//# sourceMappingURL=chunk-32PKZRTH.js.map
|