@camunda8/orchestration-cluster-api 8.9.0-alpha.2 → 8.9.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-FME2NOSH.js → chunk-WTQY23BB.js} +952 -333
- package/dist/chunk-WTQY23BB.js.map +1 -0
- package/dist/fp/index.cjs +951 -332
- 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-DMLBPJ8A.d.cts → index-Cgy-WL94.d.cts} +1278 -380
- package/dist/{index--_MHI263.d.ts → index-D7fgCwa4.d.ts} +1278 -380
- package/dist/index.cjs +1009 -331
- 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 +65 -7
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
- package/dist/chunk-FME2NOSH.js.map +0 -1
|
@@ -1349,6 +1349,18 @@ var getGlobalClusterVariable = (options) => {
|
|
|
1349
1349
|
...options
|
|
1350
1350
|
});
|
|
1351
1351
|
};
|
|
1352
|
+
var updateGlobalClusterVariable = (options) => {
|
|
1353
|
+
return (options.client ?? client).put({
|
|
1354
|
+
requestValidator: void 0,
|
|
1355
|
+
responseValidator: void 0,
|
|
1356
|
+
url: "/cluster-variables/global/{name}",
|
|
1357
|
+
...options,
|
|
1358
|
+
headers: {
|
|
1359
|
+
"Content-Type": "application/json",
|
|
1360
|
+
...options.headers
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
};
|
|
1352
1364
|
var searchClusterVariables = (options) => {
|
|
1353
1365
|
return (options?.client ?? client).post({
|
|
1354
1366
|
requestValidator: void 0,
|
|
@@ -1389,6 +1401,18 @@ var getTenantClusterVariable = (options) => {
|
|
|
1389
1401
|
...options
|
|
1390
1402
|
});
|
|
1391
1403
|
};
|
|
1404
|
+
var updateTenantClusterVariable = (options) => {
|
|
1405
|
+
return (options.client ?? client).put({
|
|
1406
|
+
requestValidator: void 0,
|
|
1407
|
+
responseValidator: void 0,
|
|
1408
|
+
url: "/cluster-variables/tenants/{tenantId}/{name}",
|
|
1409
|
+
...options,
|
|
1410
|
+
headers: {
|
|
1411
|
+
"Content-Type": "application/json",
|
|
1412
|
+
...options.headers
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
};
|
|
1392
1416
|
var evaluateConditionals = (options) => {
|
|
1393
1417
|
return (options.client ?? client).post({
|
|
1394
1418
|
requestValidator: void 0,
|
|
@@ -1473,6 +1497,30 @@ var getDecisionInstance = (options) => {
|
|
|
1473
1497
|
...options
|
|
1474
1498
|
});
|
|
1475
1499
|
};
|
|
1500
|
+
var deleteDecisionInstance = (options) => {
|
|
1501
|
+
return (options.client ?? client).post({
|
|
1502
|
+
requestValidator: void 0,
|
|
1503
|
+
responseValidator: void 0,
|
|
1504
|
+
url: "/decision-instances/{decisionInstanceKey}/deletion",
|
|
1505
|
+
...options,
|
|
1506
|
+
headers: {
|
|
1507
|
+
"Content-Type": "application/json",
|
|
1508
|
+
...options.headers
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
};
|
|
1512
|
+
var deleteDecisionInstancesBatchOperation = (options) => {
|
|
1513
|
+
return (options.client ?? client).post({
|
|
1514
|
+
requestValidator: void 0,
|
|
1515
|
+
responseValidator: void 0,
|
|
1516
|
+
url: "/decision-instances/deletion",
|
|
1517
|
+
...options,
|
|
1518
|
+
headers: {
|
|
1519
|
+
"Content-Type": "application/json",
|
|
1520
|
+
...options.headers
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
};
|
|
1476
1524
|
var searchDecisionRequirements = (options) => {
|
|
1477
1525
|
return (options?.client ?? client).post({
|
|
1478
1526
|
requestValidator: void 0,
|
|
@@ -1913,15 +1961,11 @@ var failJob = (options) => {
|
|
|
1913
1961
|
});
|
|
1914
1962
|
};
|
|
1915
1963
|
var getGlobalJobStatistics = (options) => {
|
|
1916
|
-
return (options.client ?? client).
|
|
1964
|
+
return (options.client ?? client).get({
|
|
1917
1965
|
requestValidator: void 0,
|
|
1918
1966
|
responseValidator: void 0,
|
|
1919
1967
|
url: "/jobs/statistics/global",
|
|
1920
|
-
...options
|
|
1921
|
-
headers: {
|
|
1922
|
-
"Content-Type": "application/json",
|
|
1923
|
-
...options.headers
|
|
1924
|
-
}
|
|
1968
|
+
...options
|
|
1925
1969
|
});
|
|
1926
1970
|
};
|
|
1927
1971
|
var getLicense = (options) => {
|
|
@@ -2096,7 +2140,7 @@ var getProcessDefinitionInstanceVersionStatistics = (options) => {
|
|
|
2096
2140
|
return (options.client ?? client).post({
|
|
2097
2141
|
requestValidator: void 0,
|
|
2098
2142
|
responseValidator: void 0,
|
|
2099
|
-
url: "/process-definitions/
|
|
2143
|
+
url: "/process-definitions/statistics/process-instances-by-version",
|
|
2100
2144
|
...options,
|
|
2101
2145
|
headers: {
|
|
2102
2146
|
"Content-Type": "application/json",
|
|
@@ -3097,6 +3141,7 @@ __export(zod_gen_exports, {
|
|
|
3097
3141
|
zDecisionEvaluationInstruction: () => zDecisionEvaluationInstruction,
|
|
3098
3142
|
zDecisionEvaluationKey: () => zDecisionEvaluationKey,
|
|
3099
3143
|
zDecisionEvaluationKeyFilterProperty: () => zDecisionEvaluationKeyFilterProperty,
|
|
3144
|
+
zDecisionInstanceDeletionBatchOperationRequest: () => zDecisionInstanceDeletionBatchOperationRequest,
|
|
3100
3145
|
zDecisionInstanceFilter: () => zDecisionInstanceFilter,
|
|
3101
3146
|
zDecisionInstanceGetQueryResult: () => zDecisionInstanceGetQueryResult,
|
|
3102
3147
|
zDecisionInstanceKey: () => zDecisionInstanceKey,
|
|
@@ -3115,6 +3160,11 @@ __export(zod_gen_exports, {
|
|
|
3115
3160
|
zDecisionRequirementsSearchQuerySortRequest: () => zDecisionRequirementsSearchQuerySortRequest,
|
|
3116
3161
|
zDeleteAuthorizationData: () => zDeleteAuthorizationData,
|
|
3117
3162
|
zDeleteAuthorizationResponse: () => zDeleteAuthorizationResponse,
|
|
3163
|
+
zDeleteDecisionInstanceData: () => zDeleteDecisionInstanceData,
|
|
3164
|
+
zDeleteDecisionInstanceRequest: () => zDeleteDecisionInstanceRequest,
|
|
3165
|
+
zDeleteDecisionInstanceResponse: () => zDeleteDecisionInstanceResponse,
|
|
3166
|
+
zDeleteDecisionInstancesBatchOperationData: () => zDeleteDecisionInstancesBatchOperationData,
|
|
3167
|
+
zDeleteDecisionInstancesBatchOperationResponse: () => zDeleteDecisionInstancesBatchOperationResponse,
|
|
3118
3168
|
zDeleteDocumentData: () => zDeleteDocumentData,
|
|
3119
3169
|
zDeleteDocumentResponse: () => zDeleteDocumentResponse,
|
|
3120
3170
|
zDeleteGlobalClusterVariableData: () => zDeleteGlobalClusterVariableData,
|
|
@@ -3272,9 +3322,6 @@ __export(zod_gen_exports, {
|
|
|
3272
3322
|
zGetUserTaskResponse: () => zGetUserTaskResponse,
|
|
3273
3323
|
zGetVariableData: () => zGetVariableData,
|
|
3274
3324
|
zGetVariableResponse: () => zGetVariableResponse,
|
|
3275
|
-
zGlobalJobStatisticsFilter: () => zGlobalJobStatisticsFilter,
|
|
3276
|
-
zGlobalJobStatisticsItem: () => zGlobalJobStatisticsItem,
|
|
3277
|
-
zGlobalJobStatisticsQuery: () => zGlobalJobStatisticsQuery,
|
|
3278
3325
|
zGlobalJobStatisticsQueryResult: () => zGlobalJobStatisticsQueryResult,
|
|
3279
3326
|
zGroupClientResult: () => zGroupClientResult,
|
|
3280
3327
|
zGroupClientSearchQueryRequest: () => zGroupClientSearchQueryRequest,
|
|
@@ -3485,6 +3532,7 @@ __export(zod_gen_exports, {
|
|
|
3485
3532
|
zRoleUserSearchQueryRequest: () => zRoleUserSearchQueryRequest,
|
|
3486
3533
|
zRoleUserSearchQuerySortRequest: () => zRoleUserSearchQuerySortRequest,
|
|
3487
3534
|
zRoleUserSearchResult: () => zRoleUserSearchResult,
|
|
3535
|
+
zRootProcessInstanceKey: () => zRootProcessInstanceKey,
|
|
3488
3536
|
zScopeKey: () => zScopeKey,
|
|
3489
3537
|
zScopeKeyFilterProperty: () => zScopeKeyFilterProperty,
|
|
3490
3538
|
zSearchAuditLogsData: () => zSearchAuditLogsData,
|
|
@@ -3591,6 +3639,7 @@ __export(zod_gen_exports, {
|
|
|
3591
3639
|
zTenantCreateRequest: () => zTenantCreateRequest,
|
|
3592
3640
|
zTenantCreateResult: () => zTenantCreateResult,
|
|
3593
3641
|
zTenantFilter: () => zTenantFilter,
|
|
3642
|
+
zTenantFilterEnum: () => zTenantFilterEnum,
|
|
3594
3643
|
zTenantGroupResult: () => zTenantGroupResult,
|
|
3595
3644
|
zTenantGroupSearchQueryRequest: () => zTenantGroupSearchQueryRequest,
|
|
3596
3645
|
zTenantGroupSearchQuerySortRequest: () => zTenantGroupSearchQuerySortRequest,
|
|
@@ -3637,6 +3686,9 @@ __export(zod_gen_exports, {
|
|
|
3637
3686
|
zUnassignUserTaskResponse: () => zUnassignUserTaskResponse,
|
|
3638
3687
|
zUpdateAuthorizationData: () => zUpdateAuthorizationData,
|
|
3639
3688
|
zUpdateAuthorizationResponse: () => zUpdateAuthorizationResponse,
|
|
3689
|
+
zUpdateClusterVariableRequest: () => zUpdateClusterVariableRequest,
|
|
3690
|
+
zUpdateGlobalClusterVariableData: () => zUpdateGlobalClusterVariableData,
|
|
3691
|
+
zUpdateGlobalClusterVariableResponse: () => zUpdateGlobalClusterVariableResponse,
|
|
3640
3692
|
zUpdateGroupData: () => zUpdateGroupData,
|
|
3641
3693
|
zUpdateGroupResponse: () => zUpdateGroupResponse,
|
|
3642
3694
|
zUpdateJobData: () => zUpdateJobData,
|
|
@@ -3645,6 +3697,8 @@ __export(zod_gen_exports, {
|
|
|
3645
3697
|
zUpdateMappingRuleResponse: () => zUpdateMappingRuleResponse,
|
|
3646
3698
|
zUpdateRoleData: () => zUpdateRoleData,
|
|
3647
3699
|
zUpdateRoleResponse: () => zUpdateRoleResponse,
|
|
3700
|
+
zUpdateTenantClusterVariableData: () => zUpdateTenantClusterVariableData,
|
|
3701
|
+
zUpdateTenantClusterVariableResponse: () => zUpdateTenantClusterVariableResponse,
|
|
3648
3702
|
zUpdateTenantData: () => zUpdateTenantData,
|
|
3649
3703
|
zUpdateTenantResponse: () => zUpdateTenantResponse,
|
|
3650
3704
|
zUpdateUserData: () => zUpdateUserData,
|
|
@@ -3709,7 +3763,8 @@ var zAuditLogEntityTypeEnum = z.enum([
|
|
|
3709
3763
|
"TENANT",
|
|
3710
3764
|
"USER",
|
|
3711
3765
|
"USER_TASK",
|
|
3712
|
-
"VARIABLE"
|
|
3766
|
+
"VARIABLE",
|
|
3767
|
+
"CLIENT"
|
|
3713
3768
|
]).register(z.globalRegistry, {
|
|
3714
3769
|
description: "The type of entity affected by the operation."
|
|
3715
3770
|
});
|
|
@@ -3930,6 +3985,7 @@ var zBatchOperationTypeEnum = z.enum([
|
|
|
3930
3985
|
"ADD_VARIABLE",
|
|
3931
3986
|
"CANCEL_PROCESS_INSTANCE",
|
|
3932
3987
|
"DELETE_DECISION_DEFINITION",
|
|
3988
|
+
"DELETE_DECISION_INSTANCE",
|
|
3933
3989
|
"DELETE_PROCESS_DEFINITION",
|
|
3934
3990
|
"DELETE_PROCESS_INSTANCE",
|
|
3935
3991
|
"MIGRATE_PROCESS_INSTANCE",
|
|
@@ -3958,6 +4014,11 @@ var zCreateClusterVariableRequest = z.object({
|
|
|
3958
4014
|
description: "The value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses."
|
|
3959
4015
|
})
|
|
3960
4016
|
});
|
|
4017
|
+
var zUpdateClusterVariableRequest = z.object({
|
|
4018
|
+
value: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
|
|
4019
|
+
description: "The new value of the cluster variable. Can be any JSON object or primitive value. Will be serialized as a JSON string in responses."
|
|
4020
|
+
})
|
|
4021
|
+
});
|
|
3961
4022
|
var zClusterVariableResultBase = z.object({
|
|
3962
4023
|
name: z.string().register(z.globalRegistry, {
|
|
3963
4024
|
description: "The name of the cluster variable. Unique within its scope (global or tenant-specific)."
|
|
@@ -4496,9 +4557,9 @@ var zGroupUpdateRequest = z.object({
|
|
|
4496
4557
|
name: z.string().register(z.globalRegistry, {
|
|
4497
4558
|
description: "The new name of the group."
|
|
4498
4559
|
}),
|
|
4499
|
-
description: z.string().register(z.globalRegistry, {
|
|
4560
|
+
description: z.optional(z.string().register(z.globalRegistry, {
|
|
4500
4561
|
description: "The new description of the group."
|
|
4501
|
-
})
|
|
4562
|
+
}))
|
|
4502
4563
|
});
|
|
4503
4564
|
var zGroupUpdateResult = z.object({
|
|
4504
4565
|
groupId: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -4677,22 +4738,6 @@ var zIncidentProcessInstanceStatisticsByDefinitionFilter = z.object({
|
|
|
4677
4738
|
}).register(z.globalRegistry, {
|
|
4678
4739
|
description: "Filter for the incident process instance statistics by definition query."
|
|
4679
4740
|
});
|
|
4680
|
-
var zGlobalJobStatisticsFilter = z.object({
|
|
4681
|
-
from: z.iso.datetime().register(z.globalRegistry, {
|
|
4682
|
-
description: "Start of the time window to filter metrics. ISO 8601 date-time format.\n"
|
|
4683
|
-
}),
|
|
4684
|
-
to: z.iso.datetime().register(z.globalRegistry, {
|
|
4685
|
-
description: "End of the time window to filter metrics. ISO 8601 date-time format.\n"
|
|
4686
|
-
}),
|
|
4687
|
-
jobType: z.optional(z.string().register(z.globalRegistry, {
|
|
4688
|
-
description: "Optional job type to limit the aggregation to a single job type."
|
|
4689
|
-
}))
|
|
4690
|
-
}).register(z.globalRegistry, {
|
|
4691
|
-
description: "Filters for global job statistics query."
|
|
4692
|
-
});
|
|
4693
|
-
var zGlobalJobStatisticsQuery = z.object({
|
|
4694
|
-
filter: zGlobalJobStatisticsFilter
|
|
4695
|
-
});
|
|
4696
4741
|
var zStatusMetric = z.object({
|
|
4697
4742
|
count: z.coerce.bigint().register(z.globalRegistry, {
|
|
4698
4743
|
description: "Number of jobs in this status."
|
|
@@ -4703,43 +4748,16 @@ var zStatusMetric = z.object({
|
|
|
4703
4748
|
}).register(z.globalRegistry, {
|
|
4704
4749
|
description: "Metric for a single job status."
|
|
4705
4750
|
});
|
|
4706
|
-
var
|
|
4751
|
+
var zGlobalJobStatisticsQueryResult = z.object({
|
|
4707
4752
|
created: zStatusMetric,
|
|
4708
4753
|
completed: zStatusMetric,
|
|
4709
|
-
failed: zStatusMetric
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
});
|
|
4713
|
-
var zGlobalJobStatisticsQueryResult = z.object({
|
|
4714
|
-
items: z.array(zGlobalJobStatisticsItem).register(z.globalRegistry, {
|
|
4715
|
-
description: "List of aggregated job statistics."
|
|
4754
|
+
failed: zStatusMetric,
|
|
4755
|
+
isIncomplete: z.boolean().register(z.globalRegistry, {
|
|
4756
|
+
description: "True if some data is missing because internal limits were reached and some metrics were not recorded."
|
|
4716
4757
|
})
|
|
4717
4758
|
}).register(z.globalRegistry, {
|
|
4718
4759
|
description: "Global job statistics query result."
|
|
4719
4760
|
});
|
|
4720
|
-
var zJobActivationRequest = z.object({
|
|
4721
|
-
type: z.string().register(z.globalRegistry, {
|
|
4722
|
-
description: 'The job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition type="payment-service" />)'
|
|
4723
|
-
}),
|
|
4724
|
-
worker: z.optional(z.string().register(z.globalRegistry, {
|
|
4725
|
-
description: "The name of the worker activating the jobs, mostly used for logging purposes."
|
|
4726
|
-
})),
|
|
4727
|
-
timeout: z.coerce.bigint().register(z.globalRegistry, {
|
|
4728
|
-
description: "A job returned after this call will not be activated by another call until the timeout (in ms) has been reached.\n"
|
|
4729
|
-
}),
|
|
4730
|
-
maxJobsToActivate: z.int().register(z.globalRegistry, {
|
|
4731
|
-
description: "The maximum jobs to activate by this request."
|
|
4732
|
-
}),
|
|
4733
|
-
fetchVariable: z.optional(z.array(z.string()).register(z.globalRegistry, {
|
|
4734
|
-
description: "A list of variables to fetch as the job variables; if empty, all visible variables at the time of activation for the scope of the job will be returned."
|
|
4735
|
-
})),
|
|
4736
|
-
requestTimeout: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
4737
|
-
description: "The request will be completed when at least one job is activated or after the requestTimeout (in ms). If the requestTimeout = 0, a default timeout is used. If the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.\n"
|
|
4738
|
-
})),
|
|
4739
|
-
tenantIds: z.optional(z.array(zTenantId).register(z.globalRegistry, {
|
|
4740
|
-
description: "A list of IDs of tenants for which to activate jobs."
|
|
4741
|
-
}))
|
|
4742
|
-
});
|
|
4743
4761
|
var zJobFailRequest = z.object({
|
|
4744
4762
|
retries: z.optional(z.int().register(z.globalRegistry, {
|
|
4745
4763
|
description: "The amount of retries the job should have left"
|
|
@@ -4865,6 +4883,36 @@ var zJobChangeset = z.object({
|
|
|
4865
4883
|
}).register(z.globalRegistry, {
|
|
4866
4884
|
description: "JSON object with changed job attribute values. The job cannot be completed or failed with this endpoint, use the complete job or fail job endpoints instead."
|
|
4867
4885
|
});
|
|
4886
|
+
var zTenantFilterEnum = z.enum([
|
|
4887
|
+
"PROVIDED",
|
|
4888
|
+
"ASSIGNED"
|
|
4889
|
+
]).register(z.globalRegistry, {
|
|
4890
|
+
description: "The tenant filtering strategy for job activation. Determines whether to use tenant IDs provided in the request or tenant IDs assigned to the authenticated principal.\n"
|
|
4891
|
+
});
|
|
4892
|
+
var zJobActivationRequest = z.object({
|
|
4893
|
+
type: z.string().register(z.globalRegistry, {
|
|
4894
|
+
description: 'The job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition type="payment-service" />)'
|
|
4895
|
+
}),
|
|
4896
|
+
worker: z.optional(z.string().register(z.globalRegistry, {
|
|
4897
|
+
description: "The name of the worker activating the jobs, mostly used for logging purposes."
|
|
4898
|
+
})),
|
|
4899
|
+
timeout: z.coerce.bigint().register(z.globalRegistry, {
|
|
4900
|
+
description: "A job returned after this call will not be activated by another call until the timeout (in ms) has been reached.\n"
|
|
4901
|
+
}),
|
|
4902
|
+
maxJobsToActivate: z.int().register(z.globalRegistry, {
|
|
4903
|
+
description: "The maximum jobs to activate by this request."
|
|
4904
|
+
}),
|
|
4905
|
+
fetchVariable: z.optional(z.array(z.string()).register(z.globalRegistry, {
|
|
4906
|
+
description: "A list of variables to fetch as the job variables; if empty, all visible variables at the time of activation for the scope of the job will be returned."
|
|
4907
|
+
})),
|
|
4908
|
+
requestTimeout: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
4909
|
+
description: "The request will be completed when at least one job is activated or after the requestTimeout (in ms). If the requestTimeout = 0, a default timeout is used. If the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.\n"
|
|
4910
|
+
})),
|
|
4911
|
+
tenantIds: z.optional(z.array(zTenantId).register(z.globalRegistry, {
|
|
4912
|
+
description: "A list of IDs of tenants for which to activate jobs."
|
|
4913
|
+
})),
|
|
4914
|
+
tenantFilter: z.optional(zTenantFilterEnum)
|
|
4915
|
+
});
|
|
4868
4916
|
var zJobStateEnum = z.enum([
|
|
4869
4917
|
"CANCELED",
|
|
4870
4918
|
"COMPLETED",
|
|
@@ -5038,6 +5086,7 @@ var zDocumentCreationBatchResponse = z.object({
|
|
|
5038
5086
|
description: "Documents that failed creation."
|
|
5039
5087
|
}))
|
|
5040
5088
|
});
|
|
5089
|
+
var zRootProcessInstanceKey = zLongKey;
|
|
5041
5090
|
var zProcessDefinitionKey = zLongKey;
|
|
5042
5091
|
var zConditionalEvaluationInstruction = z.object({
|
|
5043
5092
|
tenantId: z.optional(zTenantId),
|
|
@@ -5252,6 +5301,7 @@ var zElementInstanceResult = z.object({
|
|
|
5252
5301
|
tenantId: zTenantId,
|
|
5253
5302
|
elementInstanceKey: zElementInstanceKey,
|
|
5254
5303
|
processInstanceKey: zProcessInstanceKey,
|
|
5304
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5255
5305
|
processDefinitionKey: zProcessDefinitionKey,
|
|
5256
5306
|
incidentKey: z.optional(zIncidentKey)
|
|
5257
5307
|
});
|
|
@@ -5269,6 +5319,7 @@ var zIncidentResult = z.object({
|
|
|
5269
5319
|
incidentKey: z.optional(zIncidentKey),
|
|
5270
5320
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
5271
5321
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
5322
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5272
5323
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
5273
5324
|
jobKey: z.optional(zJobKey)
|
|
5274
5325
|
});
|
|
@@ -5351,6 +5402,7 @@ var zJobSearchResult = z.object({
|
|
|
5351
5402
|
processDefinitionId: zProcessDefinitionId,
|
|
5352
5403
|
processDefinitionKey: zProcessDefinitionKey,
|
|
5353
5404
|
processInstanceKey: zProcessInstanceKey,
|
|
5405
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5354
5406
|
retries: z.int().register(z.globalRegistry, {
|
|
5355
5407
|
description: "The amount of retries left to this job."
|
|
5356
5408
|
}),
|
|
@@ -5433,6 +5485,7 @@ var zDecisionInstanceResult = z.object({
|
|
|
5433
5485
|
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
5434
5486
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
5435
5487
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
5488
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5436
5489
|
decisionDefinitionKey: z.optional(zDecisionDefinitionKey),
|
|
5437
5490
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
5438
5491
|
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKey)
|
|
@@ -5689,6 +5742,7 @@ var zBatchOperationItemResponse = z.object({
|
|
|
5689
5742
|
description: "Key of the item, e.g. a process instance key."
|
|
5690
5743
|
})),
|
|
5691
5744
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
5745
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5692
5746
|
state: z.optional(z.enum([
|
|
5693
5747
|
"ACTIVE",
|
|
5694
5748
|
"COMPLETED",
|
|
@@ -5712,6 +5766,12 @@ var zDeleteResourceResponse = z.object({
|
|
|
5712
5766
|
var zOperationReference = z.coerce.bigint().gte(BigInt(1)).register(z.globalRegistry, {
|
|
5713
5767
|
description: "A reference key chosen by the user that will be part of all records resulting from this operation.\nMust be > 0 if provided.\n"
|
|
5714
5768
|
});
|
|
5769
|
+
var zDeleteDecisionInstanceRequest = z.union([
|
|
5770
|
+
z.object({
|
|
5771
|
+
operationReference: z.optional(zOperationReference)
|
|
5772
|
+
}),
|
|
5773
|
+
z.null()
|
|
5774
|
+
]);
|
|
5715
5775
|
var zDeleteResourceRequest = z.union([
|
|
5716
5776
|
z.object({
|
|
5717
5777
|
operationReference: z.optional(zOperationReference),
|
|
@@ -5752,6 +5812,7 @@ var zAuditLogResult = z.object({
|
|
|
5752
5812
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
5753
5813
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
5754
5814
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
5815
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
5755
5816
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
5756
5817
|
jobKey: z.optional(zJobKey),
|
|
5757
5818
|
userTaskKey: z.optional(zUserTaskKey),
|
|
@@ -5764,7 +5825,12 @@ var zAuditLogResult = z.object({
|
|
|
5764
5825
|
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
5765
5826
|
deploymentKey: z.optional(zDeploymentKey),
|
|
5766
5827
|
formKey: z.optional(zFormKey),
|
|
5767
|
-
resourceKey: z.optional(zResourceKey)
|
|
5828
|
+
resourceKey: z.optional(zResourceKey),
|
|
5829
|
+
relatedEntityKey: z.optional(zAuditLogEntityKey),
|
|
5830
|
+
relatedEntityType: z.optional(zAuditLogEntityTypeEnum),
|
|
5831
|
+
entityDescription: z.optional(z.string().register(z.globalRegistry, {
|
|
5832
|
+
description: "Additional description of the entity affected by the operation.\nFor example, for variable operations, this will contain the variable name.\n"
|
|
5833
|
+
}))
|
|
5768
5834
|
}).register(z.globalRegistry, {
|
|
5769
5835
|
description: "Audit log item."
|
|
5770
5836
|
});
|
|
@@ -5979,31 +6045,6 @@ var zDecisionEvaluationInstanceKeyFilterProperty = z.union([
|
|
|
5979
6045
|
zDecisionEvaluationInstanceKey,
|
|
5980
6046
|
zAdvancedDecisionEvaluationInstanceKeyFilter
|
|
5981
6047
|
]);
|
|
5982
|
-
var zDecisionInstanceFilter = z.object({
|
|
5983
|
-
decisionEvaluationInstanceKey: z.optional(zDecisionEvaluationInstanceKeyFilterProperty),
|
|
5984
|
-
state: z.optional(zDecisionInstanceStateFilterProperty),
|
|
5985
|
-
evaluationFailure: z.optional(z.string().register(z.globalRegistry, {
|
|
5986
|
-
description: "The evaluation failure of the decision instance."
|
|
5987
|
-
})),
|
|
5988
|
-
evaluationDate: z.optional(zDateTimeFilterProperty),
|
|
5989
|
-
decisionDefinitionId: z.optional(zDecisionDefinitionId),
|
|
5990
|
-
decisionDefinitionName: z.optional(z.string().register(z.globalRegistry, {
|
|
5991
|
-
description: "The name of the DMN decision."
|
|
5992
|
-
})),
|
|
5993
|
-
decisionDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
5994
|
-
description: "The version of the decision."
|
|
5995
|
-
})),
|
|
5996
|
-
decisionDefinitionType: z.optional(zDecisionDefinitionTypeEnum),
|
|
5997
|
-
tenantId: z.optional(zTenantId),
|
|
5998
|
-
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
5999
|
-
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
6000
|
-
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
6001
|
-
decisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
6002
|
-
elementInstanceKey: z.optional(zElementInstanceKeyFilterProperty),
|
|
6003
|
-
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty)
|
|
6004
|
-
}).register(z.globalRegistry, {
|
|
6005
|
-
description: "Decision instance search filter."
|
|
6006
|
-
});
|
|
6007
6048
|
var zAdvancedAuditLogKeyFilter = z.object({
|
|
6008
6049
|
"$eq": z.optional(zAuditLogKey),
|
|
6009
6050
|
"$neq": z.optional(zAuditLogKey),
|
|
@@ -6105,10 +6146,45 @@ var zAuditLogFilter = z.object({
|
|
|
6105
6146
|
decisionRequirementsKey: z.optional(zDecisionRequirementsKeyFilterProperty),
|
|
6106
6147
|
decisionDefinitionId: z.optional(zStringFilterProperty),
|
|
6107
6148
|
decisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
6108
|
-
decisionEvaluationKey: z.optional(zDecisionEvaluationKeyFilterProperty)
|
|
6149
|
+
decisionEvaluationKey: z.optional(zDecisionEvaluationKeyFilterProperty),
|
|
6150
|
+
relatedEntityKey: z.optional(zAuditLogEntityKeyFilterProperty),
|
|
6151
|
+
relatedEntityType: z.optional(zEntityTypeFilterProperty),
|
|
6152
|
+
entityDescription: z.optional(zStringFilterProperty)
|
|
6109
6153
|
}).register(z.globalRegistry, {
|
|
6110
6154
|
description: "Audit log filter request"
|
|
6111
6155
|
});
|
|
6156
|
+
var zDecisionInstanceFilter = z.object({
|
|
6157
|
+
decisionEvaluationInstanceKey: z.optional(zDecisionEvaluationInstanceKeyFilterProperty),
|
|
6158
|
+
state: z.optional(zDecisionInstanceStateFilterProperty),
|
|
6159
|
+
evaluationFailure: z.optional(z.string().register(z.globalRegistry, {
|
|
6160
|
+
description: "The evaluation failure of the decision instance."
|
|
6161
|
+
})),
|
|
6162
|
+
evaluationDate: z.optional(zDateTimeFilterProperty),
|
|
6163
|
+
decisionDefinitionId: z.optional(zDecisionDefinitionId),
|
|
6164
|
+
decisionDefinitionName: z.optional(z.string().register(z.globalRegistry, {
|
|
6165
|
+
description: "The name of the DMN decision."
|
|
6166
|
+
})),
|
|
6167
|
+
decisionDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
6168
|
+
description: "The version of the decision."
|
|
6169
|
+
})),
|
|
6170
|
+
decisionDefinitionType: z.optional(zDecisionDefinitionTypeEnum),
|
|
6171
|
+
tenantId: z.optional(zTenantId),
|
|
6172
|
+
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
6173
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
6174
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
6175
|
+
decisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
6176
|
+
elementInstanceKey: z.optional(zElementInstanceKeyFilterProperty),
|
|
6177
|
+
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
6178
|
+
decisionRequirementsKey: z.optional(zDecisionRequirementsKeyFilterProperty)
|
|
6179
|
+
}).register(z.globalRegistry, {
|
|
6180
|
+
description: "Decision instance search filter."
|
|
6181
|
+
});
|
|
6182
|
+
var zDecisionInstanceDeletionBatchOperationRequest = z.object({
|
|
6183
|
+
filter: zDecisionInstanceFilter,
|
|
6184
|
+
operationReference: z.optional(zOperationReference)
|
|
6185
|
+
}).register(z.globalRegistry, {
|
|
6186
|
+
description: "The decision instance filter that defines which decision instances should be deleted."
|
|
6187
|
+
});
|
|
6112
6188
|
var zLicenseResponse = z.object({
|
|
6113
6189
|
validLicense: z.boolean().register(z.globalRegistry, {
|
|
6114
6190
|
description: "True if the Camunda license is valid, false if otherwise"
|
|
@@ -6250,6 +6326,7 @@ var zMessageSubscriptionResult = z.object({
|
|
|
6250
6326
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
6251
6327
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
6252
6328
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
6329
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
6253
6330
|
elementId: z.optional(zElementId),
|
|
6254
6331
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
6255
6332
|
messageSubscriptionState: z.optional(zMessageSubscriptionStateEnum),
|
|
@@ -6349,6 +6426,7 @@ var zCorrelatedMessageSubscriptionResult = z.object({
|
|
|
6349
6426
|
processDefinitionId: zProcessDefinitionId,
|
|
6350
6427
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
6351
6428
|
processInstanceKey: zProcessInstanceKey,
|
|
6429
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
6352
6430
|
subscriptionKey: zMessageSubscriptionKey,
|
|
6353
6431
|
tenantId: zTenantId
|
|
6354
6432
|
});
|
|
@@ -6468,6 +6546,7 @@ var zProcessDefinitionInstanceStatisticsResult = z.object({
|
|
|
6468
6546
|
description: "Process definition instance statistics response."
|
|
6469
6547
|
});
|
|
6470
6548
|
var zProcessDefinitionInstanceVersionStatisticsFilter = z.object({
|
|
6549
|
+
processDefinitionId: zProcessDefinitionId,
|
|
6471
6550
|
tenantId: z.optional(zTenantId)
|
|
6472
6551
|
}).register(z.globalRegistry, {
|
|
6473
6552
|
description: "Process definition instance version statistics search filter."
|
|
@@ -6534,6 +6613,9 @@ var zProcessInstanceCreationInstructionById = z.object({
|
|
|
6534
6613
|
});
|
|
6535
6614
|
var zProcessInstanceCreationInstructionByKey = z.object({
|
|
6536
6615
|
processDefinitionKey: zProcessDefinitionKey,
|
|
6616
|
+
processDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
6617
|
+
description: "As the version is already identified by the `processDefinitionKey`, the value of this field is ignored.\nIt's here for backwards-compatibility only as previous releases accepted it in request bodies.\n"
|
|
6618
|
+
})).default(-1),
|
|
6537
6619
|
variables: z.optional(z.record(z.string(), z.unknown()).register(z.globalRegistry, {
|
|
6538
6620
|
description: "JSON object that will instantiate the variables for the root variable scope\nof the process instance.\n"
|
|
6539
6621
|
})),
|
|
@@ -6597,6 +6679,7 @@ var zProcessInstanceSequenceFlowResult = z.object({
|
|
|
6597
6679
|
description: "The sequence flow id."
|
|
6598
6680
|
})),
|
|
6599
6681
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
6682
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
6600
6683
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
6601
6684
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
6602
6685
|
elementId: z.optional(zElementId),
|
|
@@ -6786,6 +6869,7 @@ var zProcessInstanceResult = z.object({
|
|
|
6786
6869
|
processDefinitionKey: zProcessDefinitionKey,
|
|
6787
6870
|
parentProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
6788
6871
|
parentElementInstanceKey: z.optional(zElementInstanceKey),
|
|
6872
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
6789
6873
|
tags: z.optional(zTagSet)
|
|
6790
6874
|
}).register(z.globalRegistry, {
|
|
6791
6875
|
description: "Process instance search response item."
|
|
@@ -6833,9 +6917,9 @@ var zRoleUpdateRequest = z.object({
|
|
|
6833
6917
|
name: z.string().register(z.globalRegistry, {
|
|
6834
6918
|
description: "The display name of the new role."
|
|
6835
6919
|
}),
|
|
6836
|
-
description: z.string().register(z.globalRegistry, {
|
|
6920
|
+
description: z.optional(z.string().register(z.globalRegistry, {
|
|
6837
6921
|
description: "The description of the new role."
|
|
6838
|
-
})
|
|
6922
|
+
}))
|
|
6839
6923
|
});
|
|
6840
6924
|
var zRoleUpdateResult = z.object({
|
|
6841
6925
|
name: z.optional(z.string().register(z.globalRegistry, {
|
|
@@ -7395,7 +7479,7 @@ var zProcessDefinitionInstanceVersionStatisticsQuery = z.object({
|
|
|
7395
7479
|
sort: z.optional(z.array(zProcessDefinitionInstanceVersionStatisticsQuerySortRequest).register(z.globalRegistry, {
|
|
7396
7480
|
description: "Sort field criteria."
|
|
7397
7481
|
})),
|
|
7398
|
-
filter:
|
|
7482
|
+
filter: zProcessDefinitionInstanceVersionStatisticsFilter
|
|
7399
7483
|
});
|
|
7400
7484
|
var zProcessInstanceSearchQuerySortRequest = z.object({
|
|
7401
7485
|
field: z.enum([
|
|
@@ -7699,9 +7783,9 @@ var zTenantUpdateRequest = z.object({
|
|
|
7699
7783
|
name: z.string().register(z.globalRegistry, {
|
|
7700
7784
|
description: "The new name of the tenant."
|
|
7701
7785
|
}),
|
|
7702
|
-
description: z.string().register(z.globalRegistry, {
|
|
7786
|
+
description: z.optional(z.string().register(z.globalRegistry, {
|
|
7703
7787
|
description: "The new description of the tenant."
|
|
7704
|
-
})
|
|
7788
|
+
}))
|
|
7705
7789
|
});
|
|
7706
7790
|
var zTenantUpdateResult = z.object({
|
|
7707
7791
|
tenantId: z.optional(zTenantId),
|
|
@@ -8000,6 +8084,7 @@ var zUserTaskResult = z.object({
|
|
|
8000
8084
|
})),
|
|
8001
8085
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
8002
8086
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8087
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey),
|
|
8003
8088
|
formKey: z.optional(zFormKey),
|
|
8004
8089
|
tags: z.optional(zTagSet)
|
|
8005
8090
|
});
|
|
@@ -8178,7 +8263,8 @@ var zVariableResultBase = z.object({
|
|
|
8178
8263
|
tenantId: z.optional(zTenantId),
|
|
8179
8264
|
variableKey: z.optional(zVariableKey),
|
|
8180
8265
|
scopeKey: z.optional(zScopeKey),
|
|
8181
|
-
processInstanceKey: z.optional(zProcessInstanceKey)
|
|
8266
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8267
|
+
rootProcessInstanceKey: z.optional(zRootProcessInstanceKey)
|
|
8182
8268
|
}).register(z.globalRegistry, {
|
|
8183
8269
|
description: "Variable response item."
|
|
8184
8270
|
});
|
|
@@ -8310,9 +8396,7 @@ var zUserTaskFilter = z.object({
|
|
|
8310
8396
|
assignee: z.optional(zStringFilterProperty),
|
|
8311
8397
|
priority: z.optional(zIntegerFilterProperty),
|
|
8312
8398
|
elementId: z.optional(zElementId),
|
|
8313
|
-
name: z.optional(
|
|
8314
|
-
description: "The task name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found.\n"
|
|
8315
|
-
})),
|
|
8399
|
+
name: z.optional(zStringFilterProperty),
|
|
8316
8400
|
candidateGroup: z.optional(zStringFilterProperty),
|
|
8317
8401
|
candidateUser: z.optional(zStringFilterProperty),
|
|
8318
8402
|
tenantId: z.optional(zStringFilterProperty),
|
|
@@ -8388,6 +8472,7 @@ var zSearchAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
8388
8472
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
8389
8473
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
8390
8474
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8475
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
8391
8476
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
8392
8477
|
jobKey: z.optional(zJobKey),
|
|
8393
8478
|
userTaskKey: z.optional(zUserTaskKey),
|
|
@@ -8400,7 +8485,12 @@ var zSearchAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
8400
8485
|
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
8401
8486
|
deploymentKey: z.optional(zDeploymentKey),
|
|
8402
8487
|
formKey: z.optional(zFormKey),
|
|
8403
|
-
resourceKey: z.optional(zResourceKey)
|
|
8488
|
+
resourceKey: z.optional(zResourceKey),
|
|
8489
|
+
relatedEntityKey: z.optional(zAuditLogEntityKey),
|
|
8490
|
+
relatedEntityType: z.optional(zAuditLogEntityTypeEnum),
|
|
8491
|
+
entityDescription: z.optional(z.string().register(z.globalRegistry, {
|
|
8492
|
+
description: "Additional description of the entity affected by the operation.\nFor example, for variable operations, this will contain the variable name.\n"
|
|
8493
|
+
}))
|
|
8404
8494
|
}).register(z.globalRegistry, {
|
|
8405
8495
|
description: "Audit log item."
|
|
8406
8496
|
})).register(z.globalRegistry, {
|
|
@@ -8439,6 +8529,7 @@ var zGetAuditLogResponse = z.object({
|
|
|
8439
8529
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
8440
8530
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
8441
8531
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8532
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
8442
8533
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
8443
8534
|
jobKey: z.optional(zJobKey),
|
|
8444
8535
|
userTaskKey: z.optional(zUserTaskKey),
|
|
@@ -8451,7 +8542,12 @@ var zGetAuditLogResponse = z.object({
|
|
|
8451
8542
|
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
8452
8543
|
deploymentKey: z.optional(zDeploymentKey),
|
|
8453
8544
|
formKey: z.optional(zFormKey),
|
|
8454
|
-
resourceKey: z.optional(zResourceKey)
|
|
8545
|
+
resourceKey: z.optional(zResourceKey),
|
|
8546
|
+
relatedEntityKey: z.optional(zAuditLogEntityKey),
|
|
8547
|
+
relatedEntityType: z.optional(zAuditLogEntityTypeEnum),
|
|
8548
|
+
entityDescription: z.optional(z.string().register(z.globalRegistry, {
|
|
8549
|
+
description: "Additional description of the entity affected by the operation.\nFor example, for variable operations, this will contain the variable name.\n"
|
|
8550
|
+
}))
|
|
8455
8551
|
}).register(z.globalRegistry, {
|
|
8456
8552
|
description: "Audit log item."
|
|
8457
8553
|
});
|
|
@@ -8521,7 +8617,36 @@ var zSearchBatchOperationItemsData = z.object({
|
|
|
8521
8617
|
path: z.optional(z.never()),
|
|
8522
8618
|
query: z.optional(z.never())
|
|
8523
8619
|
});
|
|
8524
|
-
var zSearchBatchOperationItemsResponse =
|
|
8620
|
+
var zSearchBatchOperationItemsResponse = zSearchQueryResponse.and(z.object({
|
|
8621
|
+
items: z.optional(z.array(z.object({
|
|
8622
|
+
operationType: z.optional(zBatchOperationTypeEnum),
|
|
8623
|
+
batchOperationKey: z.optional(zBatchOperationKey),
|
|
8624
|
+
itemKey: z.optional(z.string().register(z.globalRegistry, {
|
|
8625
|
+
description: "Key of the item, e.g. a process instance key."
|
|
8626
|
+
})),
|
|
8627
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8628
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
8629
|
+
state: z.optional(z.enum([
|
|
8630
|
+
"ACTIVE",
|
|
8631
|
+
"COMPLETED",
|
|
8632
|
+
"SKIPPED",
|
|
8633
|
+
"CANCELED",
|
|
8634
|
+
"FAILED"
|
|
8635
|
+
]).register(z.globalRegistry, {
|
|
8636
|
+
description: "State of the item."
|
|
8637
|
+
})),
|
|
8638
|
+
processedDate: z.optional(z.iso.datetime().register(z.globalRegistry, {
|
|
8639
|
+
description: "the date this item was processed."
|
|
8640
|
+
})),
|
|
8641
|
+
errorMessage: z.optional(z.string().register(z.globalRegistry, {
|
|
8642
|
+
description: "the error message from the engine in case of a failed operation."
|
|
8643
|
+
}))
|
|
8644
|
+
})).register(z.globalRegistry, {
|
|
8645
|
+
description: "The matching batch operation items."
|
|
8646
|
+
}))
|
|
8647
|
+
}).register(z.globalRegistry, {
|
|
8648
|
+
description: "The batch operation search result."
|
|
8649
|
+
}));
|
|
8525
8650
|
var zSearchBatchOperationsData = z.object({
|
|
8526
8651
|
body: z.optional(zSearchQueryRequest.and(z.object({
|
|
8527
8652
|
sort: z.optional(z.array(zBatchOperationSearchQuerySortRequest).register(z.globalRegistry, {
|
|
@@ -8625,6 +8750,16 @@ var zGetGlobalClusterVariableData = z.object({
|
|
|
8625
8750
|
query: z.optional(z.never())
|
|
8626
8751
|
});
|
|
8627
8752
|
var zGetGlobalClusterVariableResponse = zClusterVariableResult;
|
|
8753
|
+
var zUpdateGlobalClusterVariableData = z.object({
|
|
8754
|
+
body: zUpdateClusterVariableRequest,
|
|
8755
|
+
path: z.object({
|
|
8756
|
+
name: z.string().register(z.globalRegistry, {
|
|
8757
|
+
description: "The name of the cluster variable"
|
|
8758
|
+
})
|
|
8759
|
+
}),
|
|
8760
|
+
query: z.optional(z.never())
|
|
8761
|
+
});
|
|
8762
|
+
var zUpdateGlobalClusterVariableResponse = zClusterVariableResult;
|
|
8628
8763
|
var zSearchClusterVariablesData = z.object({
|
|
8629
8764
|
body: z.optional(zSearchQueryRequest.and(z.object({
|
|
8630
8765
|
sort: z.optional(z.array(zClusterVariableSearchQuerySortRequest).register(z.globalRegistry, {
|
|
@@ -8714,6 +8849,17 @@ var zGetTenantClusterVariableData = z.object({
|
|
|
8714
8849
|
query: z.optional(z.never())
|
|
8715
8850
|
});
|
|
8716
8851
|
var zGetTenantClusterVariableResponse = zClusterVariableResult;
|
|
8852
|
+
var zUpdateTenantClusterVariableData = z.object({
|
|
8853
|
+
body: zUpdateClusterVariableRequest,
|
|
8854
|
+
path: z.object({
|
|
8855
|
+
tenantId: zTenantId,
|
|
8856
|
+
name: z.string().register(z.globalRegistry, {
|
|
8857
|
+
description: "The name of the cluster variable"
|
|
8858
|
+
})
|
|
8859
|
+
}),
|
|
8860
|
+
query: z.optional(z.never())
|
|
8861
|
+
});
|
|
8862
|
+
var zUpdateTenantClusterVariableResponse = zClusterVariableResult;
|
|
8717
8863
|
var zEvaluateConditionalsData = z.object({
|
|
8718
8864
|
body: zConditionalEvaluationInstruction,
|
|
8719
8865
|
path: z.optional(z.never()),
|
|
@@ -8725,7 +8871,37 @@ var zSearchCorrelatedMessageSubscriptionsData = z.object({
|
|
|
8725
8871
|
path: z.optional(z.never()),
|
|
8726
8872
|
query: z.optional(z.never())
|
|
8727
8873
|
});
|
|
8728
|
-
var zSearchCorrelatedMessageSubscriptionsResponse =
|
|
8874
|
+
var zSearchCorrelatedMessageSubscriptionsResponse = zSearchQueryResponse.and(z.object({
|
|
8875
|
+
items: z.optional(z.array(z.object({
|
|
8876
|
+
correlationKey: z.string().register(z.globalRegistry, {
|
|
8877
|
+
description: "The correlation key of the message."
|
|
8878
|
+
}),
|
|
8879
|
+
correlationTime: z.iso.datetime().register(z.globalRegistry, {
|
|
8880
|
+
description: "The time when the message was correlated."
|
|
8881
|
+
}),
|
|
8882
|
+
elementId: z.string().register(z.globalRegistry, {
|
|
8883
|
+
description: "The element ID that received the message."
|
|
8884
|
+
}),
|
|
8885
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
8886
|
+
messageKey: zMessageKey,
|
|
8887
|
+
messageName: z.string().register(z.globalRegistry, {
|
|
8888
|
+
description: "The name of the message."
|
|
8889
|
+
}),
|
|
8890
|
+
partitionId: z.int().register(z.globalRegistry, {
|
|
8891
|
+
description: "The partition ID that correlated the message."
|
|
8892
|
+
}),
|
|
8893
|
+
processDefinitionId: zProcessDefinitionId,
|
|
8894
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
8895
|
+
processInstanceKey: zProcessInstanceKey,
|
|
8896
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
8897
|
+
subscriptionKey: zMessageSubscriptionKey,
|
|
8898
|
+
tenantId: zTenantId
|
|
8899
|
+
})).register(z.globalRegistry, {
|
|
8900
|
+
description: "The matching correlated message subscriptions."
|
|
8901
|
+
}))
|
|
8902
|
+
}).register(z.globalRegistry, {
|
|
8903
|
+
description: "The correlated message subscriptions search result."
|
|
8904
|
+
}));
|
|
8729
8905
|
var zEvaluateDecisionData = z.object({
|
|
8730
8906
|
body: zDecisionEvaluationInstruction,
|
|
8731
8907
|
path: z.optional(z.never()),
|
|
@@ -8782,7 +8958,8 @@ var zSearchDecisionInstancesData = z.object({
|
|
|
8782
8958
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8783
8959
|
decisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
8784
8960
|
elementInstanceKey: z.optional(zElementInstanceKeyFilterProperty),
|
|
8785
|
-
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty)
|
|
8961
|
+
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
8962
|
+
decisionRequirementsKey: z.optional(zDecisionRequirementsKeyFilterProperty)
|
|
8786
8963
|
}).register(z.globalRegistry, {
|
|
8787
8964
|
description: "Decision instance search filter."
|
|
8788
8965
|
}))
|
|
@@ -8790,7 +8967,41 @@ var zSearchDecisionInstancesData = z.object({
|
|
|
8790
8967
|
path: z.optional(z.never()),
|
|
8791
8968
|
query: z.optional(z.never())
|
|
8792
8969
|
});
|
|
8793
|
-
var zSearchDecisionInstancesResponse =
|
|
8970
|
+
var zSearchDecisionInstancesResponse = zSearchQueryResponse.and(z.object({
|
|
8971
|
+
items: z.optional(z.array(z.object({
|
|
8972
|
+
decisionEvaluationInstanceKey: z.optional(zDecisionEvaluationInstanceKey),
|
|
8973
|
+
state: z.optional(zDecisionInstanceStateEnum),
|
|
8974
|
+
evaluationDate: z.optional(z.iso.datetime().register(z.globalRegistry, {
|
|
8975
|
+
description: "The evaluation date of the decision instance."
|
|
8976
|
+
})),
|
|
8977
|
+
evaluationFailure: z.optional(z.string().register(z.globalRegistry, {
|
|
8978
|
+
description: "The evaluation failure of the decision instance."
|
|
8979
|
+
})),
|
|
8980
|
+
decisionDefinitionId: z.optional(zDecisionDefinitionId),
|
|
8981
|
+
decisionDefinitionName: z.optional(z.string().register(z.globalRegistry, {
|
|
8982
|
+
description: "The name of the DMN decision."
|
|
8983
|
+
})),
|
|
8984
|
+
decisionDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
8985
|
+
description: "The version of the decision."
|
|
8986
|
+
})),
|
|
8987
|
+
decisionDefinitionType: z.optional(zDecisionDefinitionTypeEnum),
|
|
8988
|
+
result: z.optional(z.string().register(z.globalRegistry, {
|
|
8989
|
+
description: "The result of the decision instance."
|
|
8990
|
+
})),
|
|
8991
|
+
tenantId: z.optional(zTenantId),
|
|
8992
|
+
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
8993
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
8994
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
8995
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
8996
|
+
decisionDefinitionKey: z.optional(zDecisionDefinitionKey),
|
|
8997
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
8998
|
+
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKey)
|
|
8999
|
+
})).register(z.globalRegistry, {
|
|
9000
|
+
description: "The matching decision instances."
|
|
9001
|
+
}))
|
|
9002
|
+
}).register(z.globalRegistry, {
|
|
9003
|
+
description: "The decision instance search result."
|
|
9004
|
+
}));
|
|
8794
9005
|
var zGetDecisionInstanceData = z.object({
|
|
8795
9006
|
body: z.optional(z.never()),
|
|
8796
9007
|
path: z.object({
|
|
@@ -8798,12 +9009,93 @@ var zGetDecisionInstanceData = z.object({
|
|
|
8798
9009
|
}),
|
|
8799
9010
|
query: z.optional(z.never())
|
|
8800
9011
|
});
|
|
8801
|
-
var zGetDecisionInstanceResponse =
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
})
|
|
9012
|
+
var zGetDecisionInstanceResponse = z.object({
|
|
9013
|
+
decisionEvaluationInstanceKey: z.optional(zDecisionEvaluationInstanceKey),
|
|
9014
|
+
state: z.optional(zDecisionInstanceStateEnum),
|
|
9015
|
+
evaluationDate: z.optional(z.iso.datetime().register(z.globalRegistry, {
|
|
9016
|
+
description: "The evaluation date of the decision instance."
|
|
9017
|
+
})),
|
|
9018
|
+
evaluationFailure: z.optional(z.string().register(z.globalRegistry, {
|
|
9019
|
+
description: "The evaluation failure of the decision instance."
|
|
9020
|
+
})),
|
|
9021
|
+
decisionDefinitionId: z.optional(zDecisionDefinitionId),
|
|
9022
|
+
decisionDefinitionName: z.optional(z.string().register(z.globalRegistry, {
|
|
9023
|
+
description: "The name of the DMN decision."
|
|
9024
|
+
})),
|
|
9025
|
+
decisionDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
9026
|
+
description: "The version of the decision."
|
|
9027
|
+
})),
|
|
9028
|
+
decisionDefinitionType: z.optional(zDecisionDefinitionTypeEnum),
|
|
9029
|
+
result: z.optional(z.string().register(z.globalRegistry, {
|
|
9030
|
+
description: "The result of the decision instance."
|
|
9031
|
+
})),
|
|
9032
|
+
tenantId: z.optional(zTenantId),
|
|
9033
|
+
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
9034
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9035
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9036
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9037
|
+
decisionDefinitionKey: z.optional(zDecisionDefinitionKey),
|
|
9038
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
9039
|
+
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKey)
|
|
9040
|
+
}).and(z.object({
|
|
9041
|
+
evaluatedInputs: z.optional(z.array(zEvaluatedDecisionInputItem).register(z.globalRegistry, {
|
|
9042
|
+
description: "The evaluated inputs of the decision instance.\n"
|
|
9043
|
+
})),
|
|
9044
|
+
matchedRules: z.optional(z.array(zMatchedDecisionRuleItem).register(z.globalRegistry, {
|
|
9045
|
+
description: "The matched rules of the decision instance.\n"
|
|
9046
|
+
}))
|
|
9047
|
+
}));
|
|
9048
|
+
var zDeleteDecisionInstanceData = z.object({
|
|
9049
|
+
body: z.optional(zDeleteProcessInstanceRequest),
|
|
9050
|
+
path: z.object({
|
|
9051
|
+
decisionInstanceKey: zDecisionInstanceKey
|
|
9052
|
+
}),
|
|
9053
|
+
query: z.optional(z.never())
|
|
9054
|
+
});
|
|
9055
|
+
var zDeleteDecisionInstanceResponse = z.void().register(z.globalRegistry, {
|
|
9056
|
+
description: "The decision instance is marked for deletion."
|
|
9057
|
+
});
|
|
9058
|
+
var zDeleteDecisionInstancesBatchOperationData = z.object({
|
|
9059
|
+
body: z.object({
|
|
9060
|
+
filter: z.object({
|
|
9061
|
+
decisionEvaluationInstanceKey: z.optional(zDecisionEvaluationInstanceKeyFilterProperty),
|
|
9062
|
+
state: z.optional(zDecisionInstanceStateFilterProperty),
|
|
9063
|
+
evaluationFailure: z.optional(z.string().register(z.globalRegistry, {
|
|
9064
|
+
description: "The evaluation failure of the decision instance."
|
|
9065
|
+
})),
|
|
9066
|
+
evaluationDate: z.optional(zDateTimeFilterProperty),
|
|
9067
|
+
decisionDefinitionId: z.optional(zDecisionDefinitionId),
|
|
9068
|
+
decisionDefinitionName: z.optional(z.string().register(z.globalRegistry, {
|
|
9069
|
+
description: "The name of the DMN decision."
|
|
9070
|
+
})),
|
|
9071
|
+
decisionDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
9072
|
+
description: "The version of the decision."
|
|
9073
|
+
})),
|
|
9074
|
+
decisionDefinitionType: z.optional(zDecisionDefinitionTypeEnum),
|
|
9075
|
+
tenantId: z.optional(zTenantId),
|
|
9076
|
+
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
9077
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9078
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9079
|
+
decisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
9080
|
+
elementInstanceKey: z.optional(zElementInstanceKeyFilterProperty),
|
|
9081
|
+
rootDecisionDefinitionKey: z.optional(zDecisionDefinitionKeyFilterProperty),
|
|
9082
|
+
decisionRequirementsKey: z.optional(zDecisionRequirementsKeyFilterProperty)
|
|
9083
|
+
}).register(z.globalRegistry, {
|
|
9084
|
+
description: "Decision instance search filter."
|
|
9085
|
+
}),
|
|
9086
|
+
operationReference: z.optional(zOperationReference)
|
|
9087
|
+
}).register(z.globalRegistry, {
|
|
9088
|
+
description: "The decision instance filter that defines which decision instances should be deleted."
|
|
9089
|
+
}),
|
|
9090
|
+
path: z.optional(z.never()),
|
|
9091
|
+
query: z.optional(z.never())
|
|
9092
|
+
});
|
|
9093
|
+
var zDeleteDecisionInstancesBatchOperationResponse = zBatchOperationCreatedResult;
|
|
9094
|
+
var zSearchDecisionRequirementsData = z.object({
|
|
9095
|
+
body: z.optional(zDecisionRequirementsSearchQuery),
|
|
9096
|
+
path: z.optional(z.never()),
|
|
9097
|
+
query: z.optional(z.never())
|
|
9098
|
+
});
|
|
8807
9099
|
var zSearchDecisionRequirementsResponse = zDecisionRequirementsSearchQueryResult;
|
|
8808
9100
|
var zGetDecisionRequirementsData = z.object({
|
|
8809
9101
|
body: z.optional(z.never()),
|
|
@@ -8951,7 +9243,66 @@ var zSearchElementInstancesData = z.object({
|
|
|
8951
9243
|
path: z.optional(z.never()),
|
|
8952
9244
|
query: z.optional(z.never())
|
|
8953
9245
|
});
|
|
8954
|
-
var zSearchElementInstancesResponse =
|
|
9246
|
+
var zSearchElementInstancesResponse = zSearchQueryResponse.and(z.object({
|
|
9247
|
+
items: z.optional(z.array(z.object({
|
|
9248
|
+
processDefinitionId: zProcessDefinitionId,
|
|
9249
|
+
startDate: z.iso.datetime().register(z.globalRegistry, {
|
|
9250
|
+
description: "Date when element instance started."
|
|
9251
|
+
}),
|
|
9252
|
+
endDate: z.optional(z.iso.datetime().register(z.globalRegistry, {
|
|
9253
|
+
description: "Date when element instance finished."
|
|
9254
|
+
})),
|
|
9255
|
+
elementId: zElementId,
|
|
9256
|
+
elementName: z.string().register(z.globalRegistry, {
|
|
9257
|
+
description: "The element name for this element instance."
|
|
9258
|
+
}),
|
|
9259
|
+
type: z.enum([
|
|
9260
|
+
"UNSPECIFIED",
|
|
9261
|
+
"PROCESS",
|
|
9262
|
+
"SUB_PROCESS",
|
|
9263
|
+
"EVENT_SUB_PROCESS",
|
|
9264
|
+
"AD_HOC_SUB_PROCESS",
|
|
9265
|
+
"AD_HOC_SUB_PROCESS_INNER_INSTANCE",
|
|
9266
|
+
"START_EVENT",
|
|
9267
|
+
"INTERMEDIATE_CATCH_EVENT",
|
|
9268
|
+
"INTERMEDIATE_THROW_EVENT",
|
|
9269
|
+
"BOUNDARY_EVENT",
|
|
9270
|
+
"END_EVENT",
|
|
9271
|
+
"SERVICE_TASK",
|
|
9272
|
+
"RECEIVE_TASK",
|
|
9273
|
+
"USER_TASK",
|
|
9274
|
+
"MANUAL_TASK",
|
|
9275
|
+
"TASK",
|
|
9276
|
+
"EXCLUSIVE_GATEWAY",
|
|
9277
|
+
"INCLUSIVE_GATEWAY",
|
|
9278
|
+
"PARALLEL_GATEWAY",
|
|
9279
|
+
"EVENT_BASED_GATEWAY",
|
|
9280
|
+
"SEQUENCE_FLOW",
|
|
9281
|
+
"MULTI_INSTANCE_BODY",
|
|
9282
|
+
"CALL_ACTIVITY",
|
|
9283
|
+
"BUSINESS_RULE_TASK",
|
|
9284
|
+
"SCRIPT_TASK",
|
|
9285
|
+
"SEND_TASK",
|
|
9286
|
+
"UNKNOWN"
|
|
9287
|
+
]).register(z.globalRegistry, {
|
|
9288
|
+
description: "Type of element as defined set of values."
|
|
9289
|
+
}),
|
|
9290
|
+
state: zElementInstanceStateEnum,
|
|
9291
|
+
hasIncident: z.boolean().register(z.globalRegistry, {
|
|
9292
|
+
description: "Shows whether this element instance has an incident. If true also an incidentKey is provided."
|
|
9293
|
+
}),
|
|
9294
|
+
tenantId: zTenantId,
|
|
9295
|
+
elementInstanceKey: zElementInstanceKey,
|
|
9296
|
+
processInstanceKey: zProcessInstanceKey,
|
|
9297
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9298
|
+
processDefinitionKey: zProcessDefinitionKey,
|
|
9299
|
+
incidentKey: z.optional(zIncidentKey)
|
|
9300
|
+
})).register(z.globalRegistry, {
|
|
9301
|
+
description: "The matching element instances."
|
|
9302
|
+
}))
|
|
9303
|
+
}).register(z.globalRegistry, {
|
|
9304
|
+
description: "The element instance search result."
|
|
9305
|
+
}));
|
|
8955
9306
|
var zGetElementInstanceData = z.object({
|
|
8956
9307
|
body: z.optional(z.never()),
|
|
8957
9308
|
path: z.object({
|
|
@@ -8959,7 +9310,62 @@ var zGetElementInstanceData = z.object({
|
|
|
8959
9310
|
}),
|
|
8960
9311
|
query: z.optional(z.never())
|
|
8961
9312
|
});
|
|
8962
|
-
var zGetElementInstanceResponse =
|
|
9313
|
+
var zGetElementInstanceResponse = z.object({
|
|
9314
|
+
processDefinitionId: zProcessDefinitionId,
|
|
9315
|
+
startDate: z.iso.datetime().register(z.globalRegistry, {
|
|
9316
|
+
description: "Date when element instance started."
|
|
9317
|
+
}),
|
|
9318
|
+
endDate: z.optional(z.iso.datetime().register(z.globalRegistry, {
|
|
9319
|
+
description: "Date when element instance finished."
|
|
9320
|
+
})),
|
|
9321
|
+
elementId: zElementId,
|
|
9322
|
+
elementName: z.string().register(z.globalRegistry, {
|
|
9323
|
+
description: "The element name for this element instance."
|
|
9324
|
+
}),
|
|
9325
|
+
type: z.enum([
|
|
9326
|
+
"UNSPECIFIED",
|
|
9327
|
+
"PROCESS",
|
|
9328
|
+
"SUB_PROCESS",
|
|
9329
|
+
"EVENT_SUB_PROCESS",
|
|
9330
|
+
"AD_HOC_SUB_PROCESS",
|
|
9331
|
+
"AD_HOC_SUB_PROCESS_INNER_INSTANCE",
|
|
9332
|
+
"START_EVENT",
|
|
9333
|
+
"INTERMEDIATE_CATCH_EVENT",
|
|
9334
|
+
"INTERMEDIATE_THROW_EVENT",
|
|
9335
|
+
"BOUNDARY_EVENT",
|
|
9336
|
+
"END_EVENT",
|
|
9337
|
+
"SERVICE_TASK",
|
|
9338
|
+
"RECEIVE_TASK",
|
|
9339
|
+
"USER_TASK",
|
|
9340
|
+
"MANUAL_TASK",
|
|
9341
|
+
"TASK",
|
|
9342
|
+
"EXCLUSIVE_GATEWAY",
|
|
9343
|
+
"INCLUSIVE_GATEWAY",
|
|
9344
|
+
"PARALLEL_GATEWAY",
|
|
9345
|
+
"EVENT_BASED_GATEWAY",
|
|
9346
|
+
"SEQUENCE_FLOW",
|
|
9347
|
+
"MULTI_INSTANCE_BODY",
|
|
9348
|
+
"CALL_ACTIVITY",
|
|
9349
|
+
"BUSINESS_RULE_TASK",
|
|
9350
|
+
"SCRIPT_TASK",
|
|
9351
|
+
"SEND_TASK",
|
|
9352
|
+
"UNKNOWN"
|
|
9353
|
+
]).register(z.globalRegistry, {
|
|
9354
|
+
description: "Type of element as defined set of values."
|
|
9355
|
+
}),
|
|
9356
|
+
state: zElementInstanceStateEnum,
|
|
9357
|
+
hasIncident: z.boolean().register(z.globalRegistry, {
|
|
9358
|
+
description: "Shows whether this element instance has an incident. If true also an incidentKey is provided."
|
|
9359
|
+
}),
|
|
9360
|
+
tenantId: zTenantId,
|
|
9361
|
+
elementInstanceKey: zElementInstanceKey,
|
|
9362
|
+
processInstanceKey: zProcessInstanceKey,
|
|
9363
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9364
|
+
processDefinitionKey: zProcessDefinitionKey,
|
|
9365
|
+
incidentKey: z.optional(zIncidentKey)
|
|
9366
|
+
}).register(z.globalRegistry, {
|
|
9367
|
+
description: "The element instance is successfully returned."
|
|
9368
|
+
});
|
|
8963
9369
|
var zSearchElementInstanceIncidentsData = z.object({
|
|
8964
9370
|
body: zIncidentSearchQuery,
|
|
8965
9371
|
path: z.object({
|
|
@@ -8967,7 +9373,27 @@ var zSearchElementInstanceIncidentsData = z.object({
|
|
|
8967
9373
|
}),
|
|
8968
9374
|
query: z.optional(z.never())
|
|
8969
9375
|
});
|
|
8970
|
-
var zSearchElementInstanceIncidentsResponse =
|
|
9376
|
+
var zSearchElementInstanceIncidentsResponse = zSearchQueryResponse.and(z.object({
|
|
9377
|
+
items: z.optional(z.array(z.object({
|
|
9378
|
+
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
9379
|
+
errorType: z.optional(zIncidentErrorTypeEnum),
|
|
9380
|
+
errorMessage: z.optional(z.string().register(z.globalRegistry, {
|
|
9381
|
+
description: "Error message which describes the error in more detail."
|
|
9382
|
+
})),
|
|
9383
|
+
elementId: z.optional(zElementId),
|
|
9384
|
+
creationTime: z.optional(z.iso.datetime()),
|
|
9385
|
+
state: z.optional(zIncidentStateEnum),
|
|
9386
|
+
tenantId: z.optional(zTenantId),
|
|
9387
|
+
incidentKey: z.optional(zIncidentKey),
|
|
9388
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9389
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9390
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9391
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
9392
|
+
jobKey: z.optional(zJobKey)
|
|
9393
|
+
})).register(z.globalRegistry, {
|
|
9394
|
+
description: "The matching incidents."
|
|
9395
|
+
}))
|
|
9396
|
+
}));
|
|
8971
9397
|
var zCreateElementInstanceVariablesData = z.object({
|
|
8972
9398
|
body: zSetVariableRequest,
|
|
8973
9399
|
path: z.object({
|
|
@@ -9179,7 +9605,29 @@ var zSearchIncidentsData = z.object({
|
|
|
9179
9605
|
path: z.optional(z.never()),
|
|
9180
9606
|
query: z.optional(z.never())
|
|
9181
9607
|
});
|
|
9182
|
-
var zSearchIncidentsResponse =
|
|
9608
|
+
var zSearchIncidentsResponse = zSearchQueryResponse.and(z.object({
|
|
9609
|
+
items: z.optional(z.array(z.object({
|
|
9610
|
+
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
9611
|
+
errorType: z.optional(zIncidentErrorTypeEnum),
|
|
9612
|
+
errorMessage: z.optional(z.string().register(z.globalRegistry, {
|
|
9613
|
+
description: "Error message which describes the error in more detail."
|
|
9614
|
+
})),
|
|
9615
|
+
elementId: z.optional(zElementId),
|
|
9616
|
+
creationTime: z.optional(z.iso.datetime()),
|
|
9617
|
+
state: z.optional(zIncidentStateEnum),
|
|
9618
|
+
tenantId: z.optional(zTenantId),
|
|
9619
|
+
incidentKey: z.optional(zIncidentKey),
|
|
9620
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9621
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9622
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9623
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
9624
|
+
jobKey: z.optional(zJobKey)
|
|
9625
|
+
})).register(z.globalRegistry, {
|
|
9626
|
+
description: "The matching incidents."
|
|
9627
|
+
}))
|
|
9628
|
+
}).register(z.globalRegistry, {
|
|
9629
|
+
description: "The incident search result."
|
|
9630
|
+
}));
|
|
9183
9631
|
var zGetIncidentData = z.object({
|
|
9184
9632
|
body: z.optional(z.never()),
|
|
9185
9633
|
path: z.object({
|
|
@@ -9187,7 +9635,25 @@ var zGetIncidentData = z.object({
|
|
|
9187
9635
|
}),
|
|
9188
9636
|
query: z.optional(z.never())
|
|
9189
9637
|
});
|
|
9190
|
-
var zGetIncidentResponse =
|
|
9638
|
+
var zGetIncidentResponse = z.object({
|
|
9639
|
+
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
9640
|
+
errorType: z.optional(zIncidentErrorTypeEnum),
|
|
9641
|
+
errorMessage: z.optional(z.string().register(z.globalRegistry, {
|
|
9642
|
+
description: "Error message which describes the error in more detail."
|
|
9643
|
+
})),
|
|
9644
|
+
elementId: z.optional(zElementId),
|
|
9645
|
+
creationTime: z.optional(z.iso.datetime()),
|
|
9646
|
+
state: z.optional(zIncidentStateEnum),
|
|
9647
|
+
tenantId: z.optional(zTenantId),
|
|
9648
|
+
incidentKey: z.optional(zIncidentKey),
|
|
9649
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9650
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9651
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9652
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
9653
|
+
jobKey: z.optional(zJobKey)
|
|
9654
|
+
}).register(z.globalRegistry, {
|
|
9655
|
+
description: "The incident is successfully returned."
|
|
9656
|
+
});
|
|
9191
9657
|
var zResolveIncidentData = z.object({
|
|
9192
9658
|
body: z.optional(zIncidentResolutionRequest),
|
|
9193
9659
|
path: z.object({
|
|
@@ -9335,6 +9801,7 @@ var zSearchJobsResponse = zSearchQueryResponse.and(z.object({
|
|
|
9335
9801
|
processDefinitionId: zProcessDefinitionId,
|
|
9336
9802
|
processDefinitionKey: zProcessDefinitionKey,
|
|
9337
9803
|
processInstanceKey: zProcessInstanceKey,
|
|
9804
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9338
9805
|
retries: z.int().register(z.globalRegistry, {
|
|
9339
9806
|
description: "The amount of retries left to this job."
|
|
9340
9807
|
}),
|
|
@@ -9369,39 +9836,7 @@ var zUpdateJobResponse = z.void().register(z.globalRegistry, {
|
|
|
9369
9836
|
description: "The job was updated successfully."
|
|
9370
9837
|
});
|
|
9371
9838
|
var zCompleteJobData = z.object({
|
|
9372
|
-
body: z.optional(
|
|
9373
|
-
variables: z.optional(z.union([
|
|
9374
|
-
z.record(z.string(), z.unknown()),
|
|
9375
|
-
z.null()
|
|
9376
|
-
])),
|
|
9377
|
-
result: z.optional(z.union([
|
|
9378
|
-
z.object({
|
|
9379
|
-
type: z.literal("userTask")
|
|
9380
|
-
}).and(zJobResultUserTask),
|
|
9381
|
-
z.object({
|
|
9382
|
-
activateElements: z.optional(z.array(z.object({
|
|
9383
|
-
elementId: z.optional(zElementId),
|
|
9384
|
-
variables: z.optional(z.record(z.string(), z.unknown()).register(z.globalRegistry, {
|
|
9385
|
-
description: "Variables for the element."
|
|
9386
|
-
}))
|
|
9387
|
-
}).register(z.globalRegistry, {
|
|
9388
|
-
description: "Instruction to activate a single BPMN element within an ad\u2011hoc sub\u2011process, optionally providing variables scoped to that element."
|
|
9389
|
-
})).register(z.globalRegistry, {
|
|
9390
|
-
description: "Indicates which elements need to be activated in the ad-hoc subprocess."
|
|
9391
|
-
})),
|
|
9392
|
-
isCompletionConditionFulfilled: z.optional(z.boolean().register(z.globalRegistry, {
|
|
9393
|
-
description: "Indicates whether the completion condition of the ad-hoc subprocess is fulfilled."
|
|
9394
|
-
})).default(false),
|
|
9395
|
-
isCancelRemainingInstances: z.optional(z.boolean().register(z.globalRegistry, {
|
|
9396
|
-
description: "Indicates whether the remaining instances of the ad-hoc subprocess should be canceled."
|
|
9397
|
-
})).default(false),
|
|
9398
|
-
type: z.optional(z.string().register(z.globalRegistry, {
|
|
9399
|
-
description: "Used to distinguish between different types of job results."
|
|
9400
|
-
}))
|
|
9401
|
-
}),
|
|
9402
|
-
z.null()
|
|
9403
|
-
]))
|
|
9404
|
-
})),
|
|
9839
|
+
body: z.optional(zJobCompletionRequest),
|
|
9405
9840
|
path: z.object({
|
|
9406
9841
|
jobKey: zJobKey
|
|
9407
9842
|
}),
|
|
@@ -9431,9 +9866,19 @@ var zFailJobResponse = z.void().register(z.globalRegistry, {
|
|
|
9431
9866
|
description: "The job is failed."
|
|
9432
9867
|
});
|
|
9433
9868
|
var zGetGlobalJobStatisticsData = z.object({
|
|
9434
|
-
body:
|
|
9869
|
+
body: z.optional(z.never()),
|
|
9435
9870
|
path: z.optional(z.never()),
|
|
9436
|
-
query: z.
|
|
9871
|
+
query: z.object({
|
|
9872
|
+
from: z.iso.datetime().register(z.globalRegistry, {
|
|
9873
|
+
description: "Start of the time window to filter metrics. ISO 8601 date-time format.\n"
|
|
9874
|
+
}),
|
|
9875
|
+
to: z.iso.datetime().register(z.globalRegistry, {
|
|
9876
|
+
description: "End of the time window to filter metrics. ISO 8601 date-time format.\n"
|
|
9877
|
+
}),
|
|
9878
|
+
jobType: z.optional(z.string().register(z.globalRegistry, {
|
|
9879
|
+
description: "Optional job type to limit the aggregation to a single job type."
|
|
9880
|
+
}))
|
|
9881
|
+
})
|
|
9437
9882
|
});
|
|
9438
9883
|
var zGetGlobalJobStatisticsResponse = zGlobalJobStatisticsQueryResult;
|
|
9439
9884
|
var zGetLicenseData = z.object({
|
|
@@ -9532,6 +9977,7 @@ var zSearchMessageSubscriptionsResponse = zSearchQueryResponse.and(z.object({
|
|
|
9532
9977
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
9533
9978
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
9534
9979
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
9980
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9535
9981
|
elementId: z.optional(zElementId),
|
|
9536
9982
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
9537
9983
|
messageSubscriptionState: z.optional(zMessageSubscriptionStateEnum),
|
|
@@ -9711,29 +10157,7 @@ var zGetProcessDefinitionStatisticsData = z.object({
|
|
|
9711
10157
|
}),
|
|
9712
10158
|
query: z.optional(z.never())
|
|
9713
10159
|
});
|
|
9714
|
-
var zGetProcessDefinitionStatisticsResponse =
|
|
9715
|
-
items: z.optional(z.array(z.object({
|
|
9716
|
-
elementId: z.optional(zElementId),
|
|
9717
|
-
active: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
9718
|
-
description: "The total number of active instances of the element."
|
|
9719
|
-
})),
|
|
9720
|
-
canceled: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
9721
|
-
description: "The total number of canceled instances of the element."
|
|
9722
|
-
})),
|
|
9723
|
-
incidents: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
9724
|
-
description: "The total number of incidents for the element."
|
|
9725
|
-
})),
|
|
9726
|
-
completed: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
9727
|
-
description: "The total number of completed instances of the element."
|
|
9728
|
-
}))
|
|
9729
|
-
}).register(z.globalRegistry, {
|
|
9730
|
-
description: "Process element statistics response."
|
|
9731
|
-
})).register(z.globalRegistry, {
|
|
9732
|
-
description: "The element statistics."
|
|
9733
|
-
}))
|
|
9734
|
-
}).register(z.globalRegistry, {
|
|
9735
|
-
description: "Process definition element statistics query response."
|
|
9736
|
-
});
|
|
10160
|
+
var zGetProcessDefinitionStatisticsResponse = zProcessDefinitionElementStatisticsQueryResult;
|
|
9737
10161
|
var zGetProcessDefinitionXmlData = z.object({
|
|
9738
10162
|
body: z.optional(z.never()),
|
|
9739
10163
|
path: z.object({
|
|
@@ -9745,7 +10169,7 @@ var zGetProcessDefinitionXmlResponse = z.string().register(z.globalRegistry, {
|
|
|
9745
10169
|
description: "The XML of the process definition is successfully returned."
|
|
9746
10170
|
});
|
|
9747
10171
|
var zGetProcessDefinitionInstanceVersionStatisticsData = z.object({
|
|
9748
|
-
body: z.
|
|
10172
|
+
body: z.object({
|
|
9749
10173
|
page: z.optional(zOffsetPagination),
|
|
9750
10174
|
sort: z.optional(z.array(z.object({
|
|
9751
10175
|
field: z.enum([
|
|
@@ -9762,11 +10186,9 @@ var zGetProcessDefinitionInstanceVersionStatisticsData = z.object({
|
|
|
9762
10186
|
})).register(z.globalRegistry, {
|
|
9763
10187
|
description: "Sort field criteria."
|
|
9764
10188
|
})),
|
|
9765
|
-
filter:
|
|
9766
|
-
})),
|
|
9767
|
-
path: z.object({
|
|
9768
|
-
processDefinitionId: zProcessDefinitionId
|
|
10189
|
+
filter: zProcessDefinitionInstanceVersionStatisticsFilter
|
|
9769
10190
|
}),
|
|
10191
|
+
path: z.optional(z.never()),
|
|
9770
10192
|
query: z.optional(z.never())
|
|
9771
10193
|
});
|
|
9772
10194
|
var zGetProcessDefinitionInstanceVersionStatisticsResponse = zProcessDefinitionInstanceVersionStatisticsQueryResult;
|
|
@@ -9782,19 +10204,10 @@ var zCreateProcessInstanceData = z.object({
|
|
|
9782
10204
|
})),
|
|
9783
10205
|
tenantId: z.optional(zTenantId),
|
|
9784
10206
|
operationReference: z.optional(zOperationReference),
|
|
9785
|
-
startInstructions: z.optional(z.array(z.
|
|
9786
|
-
elementId: zElementId
|
|
9787
|
-
})).register(z.globalRegistry, {
|
|
10207
|
+
startInstructions: z.optional(z.array(zProcessInstanceCreationStartInstruction).register(z.globalRegistry, {
|
|
9788
10208
|
description: "List of start instructions. By default, the process instance will start at\nthe start event. If provided, the process instance will apply start instructions\nafter it has been created.\n"
|
|
9789
10209
|
})),
|
|
9790
|
-
runtimeInstructions: z.optional(z.array(z.
|
|
9791
|
-
type: z.optional(z.string().register(z.globalRegistry, {
|
|
9792
|
-
description: "The type of the runtime instruction"
|
|
9793
|
-
})),
|
|
9794
|
-
afterElementId: zElementId
|
|
9795
|
-
}).register(z.globalRegistry, {
|
|
9796
|
-
description: "Terminates the process instance after a specific BPMN element is completed or terminated.\n"
|
|
9797
|
-
})).register(z.globalRegistry, {
|
|
10210
|
+
runtimeInstructions: z.optional(z.array(zProcessInstanceCreationRuntimeInstruction).register(z.globalRegistry, {
|
|
9798
10211
|
description: "Runtime instructions (alpha). List of instructions that affect the runtime behavior of\nthe process instance. Refer to specific instruction types for more details.\n\nThis parameter is an alpha feature and may be subject to change\nin future releases.\n"
|
|
9799
10212
|
})),
|
|
9800
10213
|
awaitCompletion: z.optional(z.boolean().register(z.globalRegistry, {
|
|
@@ -9810,22 +10223,16 @@ var zCreateProcessInstanceData = z.object({
|
|
|
9810
10223
|
}),
|
|
9811
10224
|
z.object({
|
|
9812
10225
|
processDefinitionKey: zProcessDefinitionKey,
|
|
10226
|
+
processDefinitionVersion: z.optional(z.int().register(z.globalRegistry, {
|
|
10227
|
+
description: "As the version is already identified by the `processDefinitionKey`, the value of this field is ignored.\nIt's here for backwards-compatibility only as previous releases accepted it in request bodies.\n"
|
|
10228
|
+
})).default(-1),
|
|
9813
10229
|
variables: z.optional(z.record(z.string(), z.unknown()).register(z.globalRegistry, {
|
|
9814
10230
|
description: "JSON object that will instantiate the variables for the root variable scope\nof the process instance.\n"
|
|
9815
10231
|
})),
|
|
9816
|
-
startInstructions: z.optional(z.array(z.
|
|
9817
|
-
elementId: zElementId
|
|
9818
|
-
})).register(z.globalRegistry, {
|
|
10232
|
+
startInstructions: z.optional(z.array(zProcessInstanceCreationStartInstruction).register(z.globalRegistry, {
|
|
9819
10233
|
description: "List of start instructions. By default, the process instance will start at\nthe start event. If provided, the process instance will apply start instructions\nafter it has been created.\n"
|
|
9820
10234
|
})),
|
|
9821
|
-
runtimeInstructions: z.optional(z.array(z.
|
|
9822
|
-
type: z.optional(z.string().register(z.globalRegistry, {
|
|
9823
|
-
description: "The type of the runtime instruction"
|
|
9824
|
-
})),
|
|
9825
|
-
afterElementId: zElementId
|
|
9826
|
-
}).register(z.globalRegistry, {
|
|
9827
|
-
description: "Terminates the process instance after a specific BPMN element is completed or terminated.\n"
|
|
9828
|
-
})).register(z.globalRegistry, {
|
|
10235
|
+
runtimeInstructions: z.optional(z.array(zProcessInstanceCreationRuntimeInstruction).register(z.globalRegistry, {
|
|
9829
10236
|
description: "Runtime instructions (alpha). List of instructions that affect the runtime behavior of\nthe process instance. Refer to specific instruction types for more details.\n\nThis parameter is an alpha feature and may be subject to change\nin future releases.\n"
|
|
9830
10237
|
})),
|
|
9831
10238
|
tenantId: z.optional(zTenantId),
|
|
@@ -9882,19 +10289,7 @@ var zResolveIncidentsBatchOperationResponse = zBatchOperationCreatedResult;
|
|
|
9882
10289
|
var zMigrateProcessInstancesBatchOperationData = z.object({
|
|
9883
10290
|
body: z.object({
|
|
9884
10291
|
filter: zProcessInstanceFilter,
|
|
9885
|
-
migrationPlan:
|
|
9886
|
-
targetProcessDefinitionKey: zProcessDefinitionKey,
|
|
9887
|
-
mappingInstructions: z.array(z.object({
|
|
9888
|
-
sourceElementId: zElementId,
|
|
9889
|
-
targetElementId: zElementId
|
|
9890
|
-
}).register(z.globalRegistry, {
|
|
9891
|
-
description: "The mapping instructions describe how to map elements from the source process definition to the target process definition.\n"
|
|
9892
|
-
})).register(z.globalRegistry, {
|
|
9893
|
-
description: "The mapping instructions."
|
|
9894
|
-
})
|
|
9895
|
-
}).register(z.globalRegistry, {
|
|
9896
|
-
description: "The migration instructions describe how to migrate a process instance from one process definition to another.\n"
|
|
9897
|
-
}),
|
|
10292
|
+
migrationPlan: zProcessInstanceMigrationBatchOperationPlan,
|
|
9898
10293
|
operationReference: z.optional(zOperationReference)
|
|
9899
10294
|
}),
|
|
9900
10295
|
path: z.optional(z.never()),
|
|
@@ -9904,12 +10299,7 @@ var zMigrateProcessInstancesBatchOperationResponse = zBatchOperationCreatedResul
|
|
|
9904
10299
|
var zModifyProcessInstancesBatchOperationData = z.object({
|
|
9905
10300
|
body: z.object({
|
|
9906
10301
|
filter: zProcessInstanceFilter,
|
|
9907
|
-
moveInstructions: z.array(z.
|
|
9908
|
-
sourceElementId: zElementId,
|
|
9909
|
-
targetElementId: zElementId
|
|
9910
|
-
}).register(z.globalRegistry, {
|
|
9911
|
-
description: "Instructions describing a move operation. This instruction will terminate all active\nelement instances at `sourceElementId` and activate a new element instance for each\nterminated one at `targetElementId`. The new element instances are created in the parent\nscope of the source element instances.\n"
|
|
9912
|
-
})).register(z.globalRegistry, {
|
|
10302
|
+
moveInstructions: z.array(zProcessInstanceModificationMoveBatchOperationInstruction).register(z.globalRegistry, {
|
|
9913
10303
|
description: "Instructions for moving tokens between elements."
|
|
9914
10304
|
}),
|
|
9915
10305
|
operationReference: z.optional(zOperationReference)
|
|
@@ -9992,6 +10382,7 @@ var zSearchProcessInstancesResponse = zSearchQueryResponse.and(z.object({
|
|
|
9992
10382
|
processDefinitionKey: zProcessDefinitionKey,
|
|
9993
10383
|
parentProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9994
10384
|
parentElementInstanceKey: z.optional(zElementInstanceKey),
|
|
10385
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
9995
10386
|
tags: z.optional(zTagSet)
|
|
9996
10387
|
}).register(z.globalRegistry, {
|
|
9997
10388
|
description: "Process instance search response item."
|
|
@@ -10028,6 +10419,7 @@ var zGetProcessInstanceResponse = z.object({
|
|
|
10028
10419
|
processDefinitionKey: zProcessDefinitionKey,
|
|
10029
10420
|
parentProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
10030
10421
|
parentElementInstanceKey: z.optional(zElementInstanceKey),
|
|
10422
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
10031
10423
|
tags: z.optional(zTagSet)
|
|
10032
10424
|
}).register(z.globalRegistry, {
|
|
10033
10425
|
description: "Process instance search response item."
|
|
@@ -10069,7 +10461,9 @@ var zDeleteProcessInstanceData = z.object({
|
|
|
10069
10461
|
}),
|
|
10070
10462
|
query: z.optional(z.never())
|
|
10071
10463
|
});
|
|
10072
|
-
var zDeleteProcessInstanceResponse =
|
|
10464
|
+
var zDeleteProcessInstanceResponse = z.void().register(z.globalRegistry, {
|
|
10465
|
+
description: "The process instance is marked for deletion."
|
|
10466
|
+
});
|
|
10073
10467
|
var zResolveProcessInstanceIncidentsData = z.object({
|
|
10074
10468
|
body: z.optional(z.never()),
|
|
10075
10469
|
path: z.object({
|
|
@@ -10085,16 +10479,31 @@ var zSearchProcessInstanceIncidentsData = z.object({
|
|
|
10085
10479
|
}),
|
|
10086
10480
|
query: z.optional(z.never())
|
|
10087
10481
|
});
|
|
10088
|
-
var zSearchProcessInstanceIncidentsResponse =
|
|
10482
|
+
var zSearchProcessInstanceIncidentsResponse = zSearchQueryResponse.and(z.object({
|
|
10483
|
+
items: z.optional(z.array(z.object({
|
|
10484
|
+
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
10485
|
+
errorType: z.optional(zIncidentErrorTypeEnum),
|
|
10486
|
+
errorMessage: z.optional(z.string().register(z.globalRegistry, {
|
|
10487
|
+
description: "Error message which describes the error in more detail."
|
|
10488
|
+
})),
|
|
10489
|
+
elementId: z.optional(zElementId),
|
|
10490
|
+
creationTime: z.optional(z.iso.datetime()),
|
|
10491
|
+
state: z.optional(zIncidentStateEnum),
|
|
10492
|
+
tenantId: z.optional(zTenantId),
|
|
10493
|
+
incidentKey: z.optional(zIncidentKey),
|
|
10494
|
+
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
10495
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
10496
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
10497
|
+
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
10498
|
+
jobKey: z.optional(zJobKey)
|
|
10499
|
+
})).register(z.globalRegistry, {
|
|
10500
|
+
description: "The matching incidents."
|
|
10501
|
+
}))
|
|
10502
|
+
}));
|
|
10089
10503
|
var zMigrateProcessInstanceData = z.object({
|
|
10090
10504
|
body: z.object({
|
|
10091
10505
|
targetProcessDefinitionKey: zProcessDefinitionKey,
|
|
10092
|
-
mappingInstructions: z.array(z.
|
|
10093
|
-
sourceElementId: zElementId,
|
|
10094
|
-
targetElementId: zElementId
|
|
10095
|
-
}).register(z.globalRegistry, {
|
|
10096
|
-
description: "The mapping instructions describe how to map elements from the source process definition to the target process definition.\n"
|
|
10097
|
-
})).register(z.globalRegistry, {
|
|
10506
|
+
mappingInstructions: z.array(zMigrateProcessInstanceMappingInstruction).register(z.globalRegistry, {
|
|
10098
10507
|
description: "Element mappings from the source process instance to the target process instance."
|
|
10099
10508
|
}),
|
|
10100
10509
|
operationReference: z.optional(zOperationReference)
|
|
@@ -10112,53 +10521,14 @@ var zMigrateProcessInstanceResponse = z.void().register(z.globalRegistry, {
|
|
|
10112
10521
|
var zModifyProcessInstanceData = z.object({
|
|
10113
10522
|
body: z.object({
|
|
10114
10523
|
operationReference: z.optional(zOperationReference),
|
|
10115
|
-
activateInstructions: z.optional(z.array(z.
|
|
10116
|
-
elementId: zElementId,
|
|
10117
|
-
variableInstructions: z.optional(z.array(zModifyProcessInstanceVariableInstruction).register(z.globalRegistry, {
|
|
10118
|
-
description: "Instructions describing which variables to create or update."
|
|
10119
|
-
})),
|
|
10120
|
-
ancestorElementInstanceKey: z.optional(z.union([
|
|
10121
|
-
z.string().default("-1"),
|
|
10122
|
-
zElementInstanceKey
|
|
10123
|
-
]))
|
|
10124
|
-
}).register(z.globalRegistry, {
|
|
10125
|
-
description: "Instruction describing an element to activate."
|
|
10126
|
-
})).register(z.globalRegistry, {
|
|
10524
|
+
activateInstructions: z.optional(z.array(zProcessInstanceModificationActivateInstruction).register(z.globalRegistry, {
|
|
10127
10525
|
description: "Instructions describing which elements to activate in which scopes and which variables to create or update."
|
|
10128
10526
|
})),
|
|
10129
|
-
moveInstructions: z.optional(z.array(z.
|
|
10130
|
-
sourceElementInstruction: z.union([
|
|
10131
|
-
z.object({
|
|
10132
|
-
sourceType: z.string().register(z.globalRegistry, {
|
|
10133
|
-
description: "The type of source element instruction."
|
|
10134
|
-
}),
|
|
10135
|
-
sourceElementId: zElementId
|
|
10136
|
-
}).register(z.globalRegistry, {
|
|
10137
|
-
description: "Defines an instruction with a sourceElementId. The move instruction with this sourceType will terminate all active element\ninstances with the sourceElementId and activate a new element instance for each terminated\none at targetElementId.\n"
|
|
10138
|
-
}),
|
|
10139
|
-
z.object({
|
|
10140
|
-
sourceType: z.literal("byKey")
|
|
10141
|
-
}).and(zSourceElementInstanceKeyInstruction)
|
|
10142
|
-
]),
|
|
10143
|
-
targetElementId: zElementId,
|
|
10144
|
-
ancestorScopeInstruction: z.optional(zAncestorScopeInstruction),
|
|
10145
|
-
variableInstructions: z.optional(z.array(zModifyProcessInstanceVariableInstruction).register(z.globalRegistry, {
|
|
10146
|
-
description: "Instructions describing which variables to create or update."
|
|
10147
|
-
}))
|
|
10148
|
-
}).register(z.globalRegistry, {
|
|
10149
|
-
description: "Instruction describing a move operation. This instruction will terminate active element\ninstances based on the sourceElementInstruction and activate a new element instance for each terminated\none at targetElementId. Note that, for multi-instance activities, only the multi-instance\nbody instances will activate new element instances at the target id.\n"
|
|
10150
|
-
})).register(z.globalRegistry, {
|
|
10527
|
+
moveInstructions: z.optional(z.array(zProcessInstanceModificationMoveInstruction).register(z.globalRegistry, {
|
|
10151
10528
|
description: "Instructions describing which elements to move from one scope to another."
|
|
10152
10529
|
})),
|
|
10153
|
-
terminateInstructions: z.optional(z.array(z.
|
|
10154
|
-
|
|
10155
|
-
elementId: zElementId
|
|
10156
|
-
}).register(z.globalRegistry, {
|
|
10157
|
-
description: "Instruction describing which elements to terminate. The element instances are determined\nat runtime by the given id.\n"
|
|
10158
|
-
}),
|
|
10159
|
-
zProcessInstanceModificationTerminateByKeyInstruction
|
|
10160
|
-
])).register(z.globalRegistry, {
|
|
10161
|
-
description: "Instruction describing which elements to terminate."
|
|
10530
|
+
terminateInstructions: z.optional(z.array(zProcessInstanceModificationTerminateInstruction).register(z.globalRegistry, {
|
|
10531
|
+
description: "Instructions describing which elements to terminate."
|
|
10162
10532
|
}))
|
|
10163
10533
|
}),
|
|
10164
10534
|
path: z.object({
|
|
@@ -10182,6 +10552,7 @@ var zGetProcessInstanceSequenceFlowsResponse = z.object({
|
|
|
10182
10552
|
description: "The sequence flow id."
|
|
10183
10553
|
})),
|
|
10184
10554
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
10555
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
10185
10556
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
10186
10557
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
10187
10558
|
elementId: z.optional(zElementId),
|
|
@@ -10192,38 +10563,16 @@ var zGetProcessInstanceSequenceFlowsResponse = z.object({
|
|
|
10192
10563
|
description: "The sequence flows."
|
|
10193
10564
|
}))
|
|
10194
10565
|
}).register(z.globalRegistry, {
|
|
10195
|
-
description: "Process instance sequence flows query response."
|
|
10196
|
-
});
|
|
10197
|
-
var zGetProcessInstanceStatisticsData = z.object({
|
|
10198
|
-
body: z.optional(z.never()),
|
|
10199
|
-
path: z.object({
|
|
10200
|
-
processInstanceKey: zProcessInstanceKey
|
|
10201
|
-
}),
|
|
10202
|
-
query: z.optional(z.never())
|
|
10203
|
-
});
|
|
10204
|
-
var zGetProcessInstanceStatisticsResponse = z.object({
|
|
10205
|
-
items: z.optional(z.array(z.object({
|
|
10206
|
-
elementId: z.optional(zElementId),
|
|
10207
|
-
active: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
10208
|
-
description: "The total number of active instances of the element."
|
|
10209
|
-
})),
|
|
10210
|
-
canceled: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
10211
|
-
description: "The total number of canceled instances of the element."
|
|
10212
|
-
})),
|
|
10213
|
-
incidents: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
10214
|
-
description: "The total number of incidents for the element."
|
|
10215
|
-
})),
|
|
10216
|
-
completed: z.optional(z.coerce.bigint().register(z.globalRegistry, {
|
|
10217
|
-
description: "The total number of completed instances of the element."
|
|
10218
|
-
}))
|
|
10219
|
-
}).register(z.globalRegistry, {
|
|
10220
|
-
description: "Process element statistics response."
|
|
10221
|
-
})).register(z.globalRegistry, {
|
|
10222
|
-
description: "The element statistics."
|
|
10223
|
-
}))
|
|
10224
|
-
}).register(z.globalRegistry, {
|
|
10225
|
-
description: "Process instance element statistics query response."
|
|
10566
|
+
description: "Process instance sequence flows query response."
|
|
10567
|
+
});
|
|
10568
|
+
var zGetProcessInstanceStatisticsData = z.object({
|
|
10569
|
+
body: z.optional(z.never()),
|
|
10570
|
+
path: z.object({
|
|
10571
|
+
processInstanceKey: zProcessInstanceKey
|
|
10572
|
+
}),
|
|
10573
|
+
query: z.optional(z.never())
|
|
10226
10574
|
});
|
|
10575
|
+
var zGetProcessInstanceStatisticsResponse = zProcessInstanceElementStatisticsQueryResult;
|
|
10227
10576
|
var zGetResourceData = z.object({
|
|
10228
10577
|
body: z.optional(z.never()),
|
|
10229
10578
|
path: z.object({
|
|
@@ -10860,9 +11209,7 @@ var zSearchUserTasksData = z.object({
|
|
|
10860
11209
|
assignee: z.optional(zStringFilterProperty),
|
|
10861
11210
|
priority: z.optional(zIntegerFilterProperty),
|
|
10862
11211
|
elementId: z.optional(zElementId),
|
|
10863
|
-
name: z.optional(
|
|
10864
|
-
description: "The task name. This only works for data created with 8.8 and onwards. Instances from prior versions don't contain this data and cannot be found.\n"
|
|
10865
|
-
})),
|
|
11212
|
+
name: z.optional(zStringFilterProperty),
|
|
10866
11213
|
candidateGroup: z.optional(zStringFilterProperty),
|
|
10867
11214
|
candidateUser: z.optional(zStringFilterProperty),
|
|
10868
11215
|
tenantId: z.optional(zStringFilterProperty),
|
|
@@ -10936,6 +11283,7 @@ var zSearchUserTasksResponse = zSearchQueryResponse.and(z.object({
|
|
|
10936
11283
|
})),
|
|
10937
11284
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
10938
11285
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11286
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
10939
11287
|
formKey: z.optional(zFormKey),
|
|
10940
11288
|
tags: z.optional(zTagSet)
|
|
10941
11289
|
})).register(z.globalRegistry, {
|
|
@@ -10999,6 +11347,7 @@ var zGetUserTaskResponse = z.object({
|
|
|
10999
11347
|
})),
|
|
11000
11348
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
11001
11349
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11350
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
11002
11351
|
formKey: z.optional(zFormKey),
|
|
11003
11352
|
tags: z.optional(zTagSet)
|
|
11004
11353
|
}).register(z.globalRegistry, {
|
|
@@ -11072,6 +11421,7 @@ var zSearchUserTaskAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
11072
11421
|
processDefinitionId: z.optional(zProcessDefinitionId),
|
|
11073
11422
|
processDefinitionKey: z.optional(zProcessDefinitionKey),
|
|
11074
11423
|
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11424
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey),
|
|
11075
11425
|
elementInstanceKey: z.optional(zElementInstanceKey),
|
|
11076
11426
|
jobKey: z.optional(zJobKey),
|
|
11077
11427
|
userTaskKey: z.optional(zUserTaskKey),
|
|
@@ -11084,7 +11434,12 @@ var zSearchUserTaskAuditLogsResponse = zSearchQueryResponse.and(z.object({
|
|
|
11084
11434
|
decisionEvaluationKey: z.optional(zDecisionEvaluationKey),
|
|
11085
11435
|
deploymentKey: z.optional(zDeploymentKey),
|
|
11086
11436
|
formKey: z.optional(zFormKey),
|
|
11087
|
-
resourceKey: z.optional(zResourceKey)
|
|
11437
|
+
resourceKey: z.optional(zResourceKey),
|
|
11438
|
+
relatedEntityKey: z.optional(zAuditLogEntityKey),
|
|
11439
|
+
relatedEntityType: z.optional(zAuditLogEntityTypeEnum),
|
|
11440
|
+
entityDescription: z.optional(z.string().register(z.globalRegistry, {
|
|
11441
|
+
description: "Additional description of the entity affected by the operation.\nFor example, for variable operations, this will contain the variable name.\n"
|
|
11442
|
+
}))
|
|
11088
11443
|
}).register(z.globalRegistry, {
|
|
11089
11444
|
description: "Audit log item."
|
|
11090
11445
|
})).register(z.globalRegistry, {
|
|
@@ -11162,7 +11517,33 @@ var zSearchUserTaskVariablesData = z.object({
|
|
|
11162
11517
|
}))
|
|
11163
11518
|
}))
|
|
11164
11519
|
});
|
|
11165
|
-
var zSearchUserTaskVariablesResponse =
|
|
11520
|
+
var zSearchUserTaskVariablesResponse = zSearchQueryResponse.and(z.object({
|
|
11521
|
+
items: z.optional(z.array(z.object({
|
|
11522
|
+
name: z.optional(z.string().register(z.globalRegistry, {
|
|
11523
|
+
description: "Name of this variable."
|
|
11524
|
+
})),
|
|
11525
|
+
tenantId: z.optional(zTenantId),
|
|
11526
|
+
variableKey: z.optional(zVariableKey),
|
|
11527
|
+
scopeKey: z.optional(zScopeKey),
|
|
11528
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11529
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey)
|
|
11530
|
+
}).register(z.globalRegistry, {
|
|
11531
|
+
description: "Variable response item."
|
|
11532
|
+
}).and(z.object({
|
|
11533
|
+
value: z.optional(z.string().register(z.globalRegistry, {
|
|
11534
|
+
description: "Value of this variable. Can be truncated."
|
|
11535
|
+
})),
|
|
11536
|
+
isTruncated: z.optional(z.boolean().register(z.globalRegistry, {
|
|
11537
|
+
description: "Whether the value is truncated or not."
|
|
11538
|
+
}))
|
|
11539
|
+
}).register(z.globalRegistry, {
|
|
11540
|
+
description: "Variable search response item."
|
|
11541
|
+
}))).register(z.globalRegistry, {
|
|
11542
|
+
description: "The matching variables."
|
|
11543
|
+
}))
|
|
11544
|
+
}).register(z.globalRegistry, {
|
|
11545
|
+
description: "Variable search query response."
|
|
11546
|
+
}));
|
|
11166
11547
|
var zSearchVariablesData = z.object({
|
|
11167
11548
|
body: z.optional(zSearchQueryRequest.and(z.object({
|
|
11168
11549
|
sort: z.optional(z.array(z.object({
|
|
@@ -11188,24 +11569,7 @@ var zSearchVariablesData = z.object({
|
|
|
11188
11569
|
description: "Whether the value is truncated or not."
|
|
11189
11570
|
})),
|
|
11190
11571
|
variableKey: z.optional(zVariableKeyFilterProperty),
|
|
11191
|
-
scopeKey: z.optional(
|
|
11192
|
-
zScopeKey,
|
|
11193
|
-
z.object({
|
|
11194
|
-
"$eq": z.optional(zScopeKey),
|
|
11195
|
-
"$neq": z.optional(zScopeKey),
|
|
11196
|
-
"$exists": z.optional(z.boolean().register(z.globalRegistry, {
|
|
11197
|
-
description: "Checks if the current property exists."
|
|
11198
|
-
})),
|
|
11199
|
-
"$in": z.optional(z.array(zScopeKey).register(z.globalRegistry, {
|
|
11200
|
-
description: "Checks if the property matches any of the provided values."
|
|
11201
|
-
})),
|
|
11202
|
-
"$notIn": z.optional(z.array(zScopeKey).register(z.globalRegistry, {
|
|
11203
|
-
description: "Checks if the property matches none of the provided values."
|
|
11204
|
-
}))
|
|
11205
|
-
}).register(z.globalRegistry, {
|
|
11206
|
-
description: "Advanced ScopeKey filter."
|
|
11207
|
-
})
|
|
11208
|
-
])),
|
|
11572
|
+
scopeKey: z.optional(zScopeKeyFilterProperty),
|
|
11209
11573
|
processInstanceKey: z.optional(zProcessInstanceKeyFilterProperty)
|
|
11210
11574
|
}).register(z.globalRegistry, {
|
|
11211
11575
|
description: "Variable filter request."
|
|
@@ -11220,7 +11584,33 @@ var zSearchVariablesData = z.object({
|
|
|
11220
11584
|
}))
|
|
11221
11585
|
}))
|
|
11222
11586
|
});
|
|
11223
|
-
var zSearchVariablesResponse =
|
|
11587
|
+
var zSearchVariablesResponse = zSearchQueryResponse.and(z.object({
|
|
11588
|
+
items: z.optional(z.array(z.object({
|
|
11589
|
+
name: z.optional(z.string().register(z.globalRegistry, {
|
|
11590
|
+
description: "Name of this variable."
|
|
11591
|
+
})),
|
|
11592
|
+
tenantId: z.optional(zTenantId),
|
|
11593
|
+
variableKey: z.optional(zVariableKey),
|
|
11594
|
+
scopeKey: z.optional(zScopeKey),
|
|
11595
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11596
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey)
|
|
11597
|
+
}).register(z.globalRegistry, {
|
|
11598
|
+
description: "Variable response item."
|
|
11599
|
+
}).and(z.object({
|
|
11600
|
+
value: z.optional(z.string().register(z.globalRegistry, {
|
|
11601
|
+
description: "Value of this variable. Can be truncated."
|
|
11602
|
+
})),
|
|
11603
|
+
isTruncated: z.optional(z.boolean().register(z.globalRegistry, {
|
|
11604
|
+
description: "Whether the value is truncated or not."
|
|
11605
|
+
}))
|
|
11606
|
+
}).register(z.globalRegistry, {
|
|
11607
|
+
description: "Variable search response item."
|
|
11608
|
+
}))).register(z.globalRegistry, {
|
|
11609
|
+
description: "The matching variables."
|
|
11610
|
+
}))
|
|
11611
|
+
}).register(z.globalRegistry, {
|
|
11612
|
+
description: "Variable search query response."
|
|
11613
|
+
}));
|
|
11224
11614
|
var zGetVariableData = z.object({
|
|
11225
11615
|
body: z.optional(z.never()),
|
|
11226
11616
|
path: z.object({
|
|
@@ -11228,7 +11618,24 @@ var zGetVariableData = z.object({
|
|
|
11228
11618
|
}),
|
|
11229
11619
|
query: z.optional(z.never())
|
|
11230
11620
|
});
|
|
11231
|
-
var zGetVariableResponse =
|
|
11621
|
+
var zGetVariableResponse = z.object({
|
|
11622
|
+
name: z.optional(z.string().register(z.globalRegistry, {
|
|
11623
|
+
description: "Name of this variable."
|
|
11624
|
+
})),
|
|
11625
|
+
tenantId: z.optional(zTenantId),
|
|
11626
|
+
variableKey: z.optional(zVariableKey),
|
|
11627
|
+
scopeKey: z.optional(zScopeKey),
|
|
11628
|
+
processInstanceKey: z.optional(zProcessInstanceKey),
|
|
11629
|
+
rootProcessInstanceKey: z.optional(zProcessInstanceKey)
|
|
11630
|
+
}).register(z.globalRegistry, {
|
|
11631
|
+
description: "Variable response item."
|
|
11632
|
+
}).and(z.object({
|
|
11633
|
+
value: z.optional(z.string().register(z.globalRegistry, {
|
|
11634
|
+
description: "Full value of this variable."
|
|
11635
|
+
}))
|
|
11636
|
+
}).register(z.globalRegistry, {
|
|
11637
|
+
description: "Variable search response item."
|
|
11638
|
+
}));
|
|
11232
11639
|
|
|
11233
11640
|
// src/runtime/auth.ts
|
|
11234
11641
|
var CamundaAuthError = class extends Error {
|
|
@@ -12467,7 +12874,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
|
|
|
12467
12874
|
}
|
|
12468
12875
|
|
|
12469
12876
|
// src/runtime/version.ts
|
|
12470
|
-
var packageVersion = "8.9.0-alpha.
|
|
12877
|
+
var packageVersion = "8.9.0-alpha.4";
|
|
12471
12878
|
|
|
12472
12879
|
// src/runtime/supportLogger.ts
|
|
12473
12880
|
var NoopSupportLogger = class {
|
|
@@ -15828,6 +16235,116 @@ var CamundaClient = class {
|
|
|
15828
16235
|
return this._invokeWithRetry(() => call(), { opId: "deleteAuthorization", exempt: false });
|
|
15829
16236
|
});
|
|
15830
16237
|
}
|
|
16238
|
+
deleteDecisionInstance(arg, consistencyManagement) {
|
|
16239
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
16240
|
+
const useConsistency = consistencyManagement.consistency;
|
|
16241
|
+
return toCancelable2(async (signal) => {
|
|
16242
|
+
const { decisionInstanceKey, ..._body } = arg || {};
|
|
16243
|
+
let envelope = {};
|
|
16244
|
+
envelope.path = { decisionInstanceKey };
|
|
16245
|
+
envelope.body = _body;
|
|
16246
|
+
if (this._validation.settings.req !== "none") {
|
|
16247
|
+
const maybe = await this._validation.gateRequest("deleteDecisionInstance", zDeleteDecisionInstanceData, envelope);
|
|
16248
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
16249
|
+
}
|
|
16250
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
16251
|
+
if (envelope.path) opts.path = envelope.path;
|
|
16252
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
16253
|
+
const call = async () => {
|
|
16254
|
+
try {
|
|
16255
|
+
const _raw = await deleteDecisionInstance(opts);
|
|
16256
|
+
let data = this._evaluateResponse(_raw, "deleteDecisionInstance", (resp) => {
|
|
16257
|
+
const st = resp.status ?? resp.response?.status;
|
|
16258
|
+
if (!st) return void 0;
|
|
16259
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
16260
|
+
if (!candidate) return void 0;
|
|
16261
|
+
let prob = void 0;
|
|
16262
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
16263
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
16264
|
+
err.status = st;
|
|
16265
|
+
err.name = "HttpSdkError";
|
|
16266
|
+
if (prob) {
|
|
16267
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
16268
|
+
}
|
|
16269
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
16270
|
+
if (!isBp) err.nonRetryable = true;
|
|
16271
|
+
return err;
|
|
16272
|
+
});
|
|
16273
|
+
const _respSchemaName = "zDeleteDecisionInstanceResponse";
|
|
16274
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
16275
|
+
data = void 0;
|
|
16276
|
+
}
|
|
16277
|
+
if (this._validation.settings.res !== "none") {
|
|
16278
|
+
const _schema = zDeleteDecisionInstanceResponse;
|
|
16279
|
+
if (_schema) {
|
|
16280
|
+
const maybeR = await this._validation.gateResponse("deleteDecisionInstance", _schema, data);
|
|
16281
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
16282
|
+
}
|
|
16283
|
+
}
|
|
16284
|
+
return data;
|
|
16285
|
+
} catch (e) {
|
|
16286
|
+
throw e;
|
|
16287
|
+
}
|
|
16288
|
+
};
|
|
16289
|
+
const invoke = () => toCancelable2(() => call());
|
|
16290
|
+
if (useConsistency) return eventualPoll("deleteDecisionInstance", false, invoke, { ...useConsistency, logger: this._log });
|
|
16291
|
+
return invoke();
|
|
16292
|
+
});
|
|
16293
|
+
}
|
|
16294
|
+
deleteDecisionInstancesBatchOperation(arg, consistencyManagement) {
|
|
16295
|
+
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
16296
|
+
const useConsistency = consistencyManagement.consistency;
|
|
16297
|
+
return toCancelable2(async (signal) => {
|
|
16298
|
+
const _body = arg;
|
|
16299
|
+
let envelope = {};
|
|
16300
|
+
envelope.body = _body;
|
|
16301
|
+
if (this._validation.settings.req !== "none") {
|
|
16302
|
+
const maybe = await this._validation.gateRequest("deleteDecisionInstancesBatchOperation", zDeleteDecisionInstancesBatchOperationData, envelope);
|
|
16303
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
16304
|
+
}
|
|
16305
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
16306
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
16307
|
+
const call = async () => {
|
|
16308
|
+
try {
|
|
16309
|
+
const _raw = await deleteDecisionInstancesBatchOperation(opts);
|
|
16310
|
+
let data = this._evaluateResponse(_raw, "deleteDecisionInstancesBatchOperation", (resp) => {
|
|
16311
|
+
const st = resp.status ?? resp.response?.status;
|
|
16312
|
+
if (!st) return void 0;
|
|
16313
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
16314
|
+
if (!candidate) return void 0;
|
|
16315
|
+
let prob = void 0;
|
|
16316
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
16317
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
16318
|
+
err.status = st;
|
|
16319
|
+
err.name = "HttpSdkError";
|
|
16320
|
+
if (prob) {
|
|
16321
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
16322
|
+
}
|
|
16323
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
16324
|
+
if (!isBp) err.nonRetryable = true;
|
|
16325
|
+
return err;
|
|
16326
|
+
});
|
|
16327
|
+
const _respSchemaName = "zDeleteDecisionInstancesBatchOperationResponse";
|
|
16328
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
16329
|
+
data = void 0;
|
|
16330
|
+
}
|
|
16331
|
+
if (this._validation.settings.res !== "none") {
|
|
16332
|
+
const _schema = zDeleteDecisionInstancesBatchOperationResponse;
|
|
16333
|
+
if (_schema) {
|
|
16334
|
+
const maybeR = await this._validation.gateResponse("deleteDecisionInstancesBatchOperation", _schema, data);
|
|
16335
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
16336
|
+
}
|
|
16337
|
+
}
|
|
16338
|
+
return data;
|
|
16339
|
+
} catch (e) {
|
|
16340
|
+
throw e;
|
|
16341
|
+
}
|
|
16342
|
+
};
|
|
16343
|
+
const invoke = () => toCancelable2(() => call());
|
|
16344
|
+
if (useConsistency) return eventualPoll("deleteDecisionInstancesBatchOperation", false, invoke, { ...useConsistency, logger: this._log });
|
|
16345
|
+
return invoke();
|
|
16346
|
+
});
|
|
16347
|
+
}
|
|
15831
16348
|
deleteDocument(arg) {
|
|
15832
16349
|
return toCancelable2(async (signal) => {
|
|
15833
16350
|
const { documentId, storeId } = arg || {};
|
|
@@ -17248,15 +17765,15 @@ var CamundaClient = class {
|
|
|
17248
17765
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17249
17766
|
const useConsistency = consistencyManagement.consistency;
|
|
17250
17767
|
return toCancelable2(async (signal) => {
|
|
17251
|
-
const
|
|
17768
|
+
const { from, to, jobType } = arg || {};
|
|
17252
17769
|
let envelope = {};
|
|
17253
|
-
envelope.
|
|
17770
|
+
envelope.query = { from, to, jobType };
|
|
17254
17771
|
if (this._validation.settings.req !== "none") {
|
|
17255
17772
|
const maybe = await this._validation.gateRequest("getGlobalJobStatistics", zGetGlobalJobStatisticsData, envelope);
|
|
17256
17773
|
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
17257
17774
|
}
|
|
17258
17775
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
17259
|
-
if (envelope.
|
|
17776
|
+
if (envelope.query) opts.query = envelope.query;
|
|
17260
17777
|
const call = async () => {
|
|
17261
17778
|
try {
|
|
17262
17779
|
const _raw = await getGlobalJobStatistics(opts);
|
|
@@ -17294,7 +17811,7 @@ var CamundaClient = class {
|
|
|
17294
17811
|
}
|
|
17295
17812
|
};
|
|
17296
17813
|
const invoke = () => toCancelable2(() => call());
|
|
17297
|
-
if (useConsistency) return eventualPoll("getGlobalJobStatistics",
|
|
17814
|
+
if (useConsistency) return eventualPoll("getGlobalJobStatistics", true, invoke, { ...useConsistency, logger: this._log });
|
|
17298
17815
|
return invoke();
|
|
17299
17816
|
});
|
|
17300
17817
|
}
|
|
@@ -17614,16 +18131,14 @@ var CamundaClient = class {
|
|
|
17614
18131
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
17615
18132
|
const useConsistency = consistencyManagement.consistency;
|
|
17616
18133
|
return toCancelable2(async (signal) => {
|
|
17617
|
-
const
|
|
18134
|
+
const _body = arg;
|
|
17618
18135
|
let envelope = {};
|
|
17619
|
-
envelope.path = { processDefinitionId };
|
|
17620
18136
|
envelope.body = _body;
|
|
17621
18137
|
if (this._validation.settings.req !== "none") {
|
|
17622
18138
|
const maybe = await this._validation.gateRequest("getProcessDefinitionInstanceVersionStatistics", zGetProcessDefinitionInstanceVersionStatisticsData, envelope);
|
|
17623
18139
|
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
17624
18140
|
}
|
|
17625
18141
|
const opts = { client: this._client, signal, throwOnError: false };
|
|
17626
|
-
if (envelope.path) opts.path = envelope.path;
|
|
17627
18142
|
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
17628
18143
|
const call = async () => {
|
|
17629
18144
|
try {
|
|
@@ -22354,6 +22869,58 @@ var CamundaClient = class {
|
|
|
22354
22869
|
return this._invokeWithRetry(() => call(), { opId: "updateAuthorization", exempt: false });
|
|
22355
22870
|
});
|
|
22356
22871
|
}
|
|
22872
|
+
updateGlobalClusterVariable(arg) {
|
|
22873
|
+
return toCancelable2(async (signal) => {
|
|
22874
|
+
const { name, ..._body } = arg || {};
|
|
22875
|
+
let envelope = {};
|
|
22876
|
+
envelope.path = { name };
|
|
22877
|
+
envelope.body = _body;
|
|
22878
|
+
if (this._validation.settings.req !== "none") {
|
|
22879
|
+
const maybe = await this._validation.gateRequest("updateGlobalClusterVariable", zUpdateGlobalClusterVariableData, envelope);
|
|
22880
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
22881
|
+
}
|
|
22882
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
22883
|
+
if (envelope.path) opts.path = envelope.path;
|
|
22884
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
22885
|
+
const call = async () => {
|
|
22886
|
+
try {
|
|
22887
|
+
const _raw = await updateGlobalClusterVariable(opts);
|
|
22888
|
+
let data = this._evaluateResponse(_raw, "updateGlobalClusterVariable", (resp) => {
|
|
22889
|
+
const st = resp.status ?? resp.response?.status;
|
|
22890
|
+
if (!st) return void 0;
|
|
22891
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
22892
|
+
if (!candidate) return void 0;
|
|
22893
|
+
let prob = void 0;
|
|
22894
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
22895
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
22896
|
+
err.status = st;
|
|
22897
|
+
err.name = "HttpSdkError";
|
|
22898
|
+
if (prob) {
|
|
22899
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
22900
|
+
}
|
|
22901
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
22902
|
+
if (!isBp) err.nonRetryable = true;
|
|
22903
|
+
return err;
|
|
22904
|
+
});
|
|
22905
|
+
const _respSchemaName = "zUpdateGlobalClusterVariableResponse";
|
|
22906
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
22907
|
+
data = void 0;
|
|
22908
|
+
}
|
|
22909
|
+
if (this._validation.settings.res !== "none") {
|
|
22910
|
+
const _schema = zUpdateGlobalClusterVariableResponse;
|
|
22911
|
+
if (_schema) {
|
|
22912
|
+
const maybeR = await this._validation.gateResponse("updateGlobalClusterVariable", _schema, data);
|
|
22913
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
22914
|
+
}
|
|
22915
|
+
}
|
|
22916
|
+
return data;
|
|
22917
|
+
} catch (e) {
|
|
22918
|
+
throw e;
|
|
22919
|
+
}
|
|
22920
|
+
};
|
|
22921
|
+
return this._invokeWithRetry(() => call(), { opId: "updateGlobalClusterVariable", exempt: false });
|
|
22922
|
+
});
|
|
22923
|
+
}
|
|
22357
22924
|
updateGroup(arg) {
|
|
22358
22925
|
return toCancelable2(async (signal) => {
|
|
22359
22926
|
const { groupId, ..._body } = arg || {};
|
|
@@ -22614,6 +23181,58 @@ var CamundaClient = class {
|
|
|
22614
23181
|
return this._invokeWithRetry(() => call(), { opId: "updateTenant", exempt: false });
|
|
22615
23182
|
});
|
|
22616
23183
|
}
|
|
23184
|
+
updateTenantClusterVariable(arg) {
|
|
23185
|
+
return toCancelable2(async (signal) => {
|
|
23186
|
+
const { tenantId, name, ..._body } = arg || {};
|
|
23187
|
+
let envelope = {};
|
|
23188
|
+
envelope.path = { tenantId, name };
|
|
23189
|
+
envelope.body = _body;
|
|
23190
|
+
if (this._validation.settings.req !== "none") {
|
|
23191
|
+
const maybe = await this._validation.gateRequest("updateTenantClusterVariable", zUpdateTenantClusterVariableData, envelope);
|
|
23192
|
+
if (this._validation.settings.req === "strict") envelope = maybe;
|
|
23193
|
+
}
|
|
23194
|
+
const opts = { client: this._client, signal, throwOnError: false };
|
|
23195
|
+
if (envelope.path) opts.path = envelope.path;
|
|
23196
|
+
if (envelope.body !== void 0) opts.body = envelope.body;
|
|
23197
|
+
const call = async () => {
|
|
23198
|
+
try {
|
|
23199
|
+
const _raw = await updateTenantClusterVariable(opts);
|
|
23200
|
+
let data = this._evaluateResponse(_raw, "updateTenantClusterVariable", (resp) => {
|
|
23201
|
+
const st = resp.status ?? resp.response?.status;
|
|
23202
|
+
if (!st) return void 0;
|
|
23203
|
+
const candidate = st === 429 || st === 503 || st === 500;
|
|
23204
|
+
if (!candidate) return void 0;
|
|
23205
|
+
let prob = void 0;
|
|
23206
|
+
if (resp.error && typeof resp.error === "object") prob = resp.error;
|
|
23207
|
+
const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
|
|
23208
|
+
err.status = st;
|
|
23209
|
+
err.name = "HttpSdkError";
|
|
23210
|
+
if (prob) {
|
|
23211
|
+
for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
|
|
23212
|
+
}
|
|
23213
|
+
const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
|
|
23214
|
+
if (!isBp) err.nonRetryable = true;
|
|
23215
|
+
return err;
|
|
23216
|
+
});
|
|
23217
|
+
const _respSchemaName = "zUpdateTenantClusterVariableResponse";
|
|
23218
|
+
if (this._isVoidResponse(_respSchemaName)) {
|
|
23219
|
+
data = void 0;
|
|
23220
|
+
}
|
|
23221
|
+
if (this._validation.settings.res !== "none") {
|
|
23222
|
+
const _schema = zUpdateTenantClusterVariableResponse;
|
|
23223
|
+
if (_schema) {
|
|
23224
|
+
const maybeR = await this._validation.gateResponse("updateTenantClusterVariable", _schema, data);
|
|
23225
|
+
if (this._validation.settings.res === "strict") data = maybeR;
|
|
23226
|
+
}
|
|
23227
|
+
}
|
|
23228
|
+
return data;
|
|
23229
|
+
} catch (e) {
|
|
23230
|
+
throw e;
|
|
23231
|
+
}
|
|
23232
|
+
};
|
|
23233
|
+
return this._invokeWithRetry(() => call(), { opId: "updateTenantClusterVariable", exempt: false });
|
|
23234
|
+
});
|
|
23235
|
+
}
|
|
22617
23236
|
updateUser(arg, consistencyManagement) {
|
|
22618
23237
|
if (!consistencyManagement) throw new Error("Missing consistencyManagement parameter for eventually consistent endpoint");
|
|
22619
23238
|
const useConsistency = consistencyManagement.consistency;
|
|
@@ -22922,4 +23541,4 @@ export {
|
|
|
22922
23541
|
withTimeoutTE,
|
|
22923
23542
|
eventuallyTE
|
|
22924
23543
|
};
|
|
22925
|
-
//# sourceMappingURL=chunk-
|
|
23544
|
+
//# sourceMappingURL=chunk-WTQY23BB.js.map
|