@quantumbpm/sdk 1.0.1 → 1.2.0

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.
Files changed (99) hide show
  1. package/README.md +6 -6
  2. package/dist/bpmn.d.ts +4 -4
  3. package/dist/bpmn.js +4 -4
  4. package/dist/dmn.d.ts +1 -1
  5. package/dist/dmn.js +2 -2
  6. package/dist/generated/RawClient.js +2 -2
  7. package/dist/generated/core/OpenAPI.js +2 -2
  8. package/dist/generated/index.d.ts +2 -0
  9. package/dist/generated/index.js +4 -2
  10. package/dist/generated/models/ActiveScope.d.ts +2 -2
  11. package/dist/generated/models/ActiveScope.js +1 -1
  12. package/dist/generated/models/BatchEvaluateDesignRequest.d.ts +2 -0
  13. package/dist/generated/models/BatchEvaluateDesignRequest.js +1 -1
  14. package/dist/generated/models/BpmnIncident.d.ts +43 -20
  15. package/dist/generated/models/BpmnIncident.js +21 -11
  16. package/dist/generated/models/BpmnIncidentRecord.d.ts +20 -3
  17. package/dist/generated/models/BpmnIncidentRecord.js +7 -2
  18. package/dist/generated/models/BpmnInstance.d.ts +23 -4
  19. package/dist/generated/models/BpmnInstance.js +1 -1
  20. package/dist/generated/models/BpmnInstanceState.d.ts +1 -1
  21. package/dist/generated/models/BpmnInstanceState.js +1 -1
  22. package/dist/generated/models/BpmnProcessDefinition.d.ts +8 -0
  23. package/dist/generated/models/BpmnProcessDefinition.js +1 -1
  24. package/dist/generated/models/BpmnProcessSummary.d.ts +8 -0
  25. package/dist/generated/models/BpmnProcessSummary.js +1 -1
  26. package/dist/generated/models/BpmnResource.d.ts +7 -0
  27. package/dist/generated/models/BpmnResource.js +1 -1
  28. package/dist/generated/models/BpmnResourceSummary.d.ts +7 -0
  29. package/dist/generated/models/BpmnResourceSummary.js +1 -1
  30. package/dist/generated/models/CorrelationKeys.d.ts +1 -1
  31. package/dist/generated/models/CorrelationKeys.js +1 -1
  32. package/dist/generated/models/Error.d.ts +10 -10
  33. package/dist/generated/models/Error.js +6 -6
  34. package/dist/generated/models/ErrorMode.d.ts +15 -0
  35. package/dist/generated/models/ErrorMode.js +24 -0
  36. package/dist/generated/models/EvaluateStoredRequest.d.ts +2 -0
  37. package/dist/generated/models/EvaluateStoredRequest.js +1 -1
  38. package/dist/generated/models/EvaluationResult.d.ts +13 -8
  39. package/dist/generated/models/EvaluationResult.js +5 -5
  40. package/dist/generated/models/ExternalJobBatchResponse.d.ts +4 -4
  41. package/dist/generated/models/ExternalJobBatchResponse.js +1 -1
  42. package/dist/generated/models/FeelNumber.d.ts +1 -1
  43. package/dist/generated/models/FeelNumber.js +1 -1
  44. package/dist/generated/models/FeelWarning.d.ts +17 -0
  45. package/dist/generated/models/FeelWarning.js +3 -0
  46. package/dist/generated/models/ModificationInstruction.d.ts +5 -5
  47. package/dist/generated/models/ModificationInstruction.js +3 -3
  48. package/dist/generated/models/SuspensionEntry.d.ts +1 -1
  49. package/dist/generated/models/SuspensionEntry.js +1 -1
  50. package/dist/generated/models/UpdateDefinitionRequest.d.ts +3 -3
  51. package/dist/generated/models/UpdateDefinitionRequest.js +1 -1
  52. package/dist/generated/models/UpdateUserTaskAssignmentRequest.d.ts +1 -1
  53. package/dist/generated/models/UpdateUserTaskAssignmentRequest.js +1 -1
  54. package/dist/generated/models/UserTask.d.ts +1 -1
  55. package/dist/generated/models/UserTask.js +1 -1
  56. package/dist/generated/services/BpmnService.d.ts +26 -11
  57. package/dist/generated/services/BpmnService.js +35 -14
  58. package/dist/generated/services/DefaultService.d.ts +18 -14
  59. package/dist/generated/services/DefaultService.js +18 -15
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.js +2 -2
  62. package/dist/variables.d.ts +1 -1
  63. package/dist/variables.js +2 -2
  64. package/dist/workers.d.ts +3 -3
  65. package/dist/workers.js +2 -2
  66. package/package.json +3 -3
  67. package/src/bpmn.ts +5 -5
  68. package/src/dmn.ts +1 -1
  69. package/src/generated/RawClient.ts +1 -1
  70. package/src/generated/core/OpenAPI.ts +1 -1
  71. package/src/generated/index.ts +2 -0
  72. package/src/generated/models/ActiveScope.ts +2 -2
  73. package/src/generated/models/BatchEvaluateDesignRequest.ts +2 -0
  74. package/src/generated/models/BpmnIncident.ts +43 -20
  75. package/src/generated/models/BpmnIncidentRecord.ts +20 -3
  76. package/src/generated/models/BpmnInstance.ts +23 -4
  77. package/src/generated/models/BpmnInstanceState.ts +1 -1
  78. package/src/generated/models/BpmnProcessDefinition.ts +8 -0
  79. package/src/generated/models/BpmnProcessSummary.ts +8 -0
  80. package/src/generated/models/BpmnResource.ts +7 -0
  81. package/src/generated/models/BpmnResourceSummary.ts +7 -0
  82. package/src/generated/models/CorrelationKeys.ts +1 -1
  83. package/src/generated/models/Error.ts +10 -10
  84. package/src/generated/models/ErrorMode.ts +19 -0
  85. package/src/generated/models/EvaluateStoredRequest.ts +2 -0
  86. package/src/generated/models/EvaluationResult.ts +13 -8
  87. package/src/generated/models/ExternalJobBatchResponse.ts +4 -4
  88. package/src/generated/models/FeelNumber.ts +1 -1
  89. package/src/generated/models/FeelWarning.ts +22 -0
  90. package/src/generated/models/ModificationInstruction.ts +5 -5
  91. package/src/generated/models/SuspensionEntry.ts +1 -1
  92. package/src/generated/models/UpdateDefinitionRequest.ts +3 -3
  93. package/src/generated/models/UpdateUserTaskAssignmentRequest.ts +1 -1
  94. package/src/generated/models/UserTask.ts +1 -1
  95. package/src/generated/services/BpmnService.ts +37 -14
  96. package/src/generated/services/DefaultService.ts +19 -13
  97. package/src/index.ts +2 -2
  98. package/src/variables.ts +1 -1
  99. package/src/workers.ts +3 -3
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * How the evaluation reacts to FEEL errors and failing decisions (DMN 1.5, section 7.3.8):
7
+ * * `strict` - the evaluation stops at the first error and the call reports it, with the
8
+ * line and column where the failing part of the expression starts.
9
+ * * `lenient` - a FEEL runtime error such as `string length(null)` makes only that part of
10
+ * the expression `null` and is listed in the `warnings` of the decision's result. A
11
+ * decision that still fails evaluates to `null` and carries its message in the `error`
12
+ * field of its own result, while the decisions around it keep evaluating.
13
+ * Omit it to use the mode the server is configured with.
14
+ *
15
+ */
16
+ export enum ErrorMode {
17
+ STRICT = 'strict',
18
+ LENIENT = 'lenient',
19
+ }
@@ -2,6 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { ErrorMode } from './ErrorMode';
5
6
  import type { FeelContext } from './FeelContext';
6
7
  /**
7
8
  * Payload for evaluating a stored DMN definition.
@@ -12,6 +13,7 @@ export type EvaluateStoredRequest = {
12
13
  */
13
14
  version?: number;
14
15
  context: FeelContext;
16
+ errorMode?: ErrorMode;
15
17
  /**
16
18
  * Names of decision services to evaluate. If empty, no decision services are evaluated.
17
19
  */
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { FeelValue } from './FeelValue';
6
+ import type { FeelWarning } from './FeelWarning';
6
7
  import type { HitRule } from './HitRule';
7
8
  /**
8
9
  * Result of evaluating a single decision (or decision service / BKM / input data) within a DMN evaluation.
@@ -20,12 +21,16 @@ export type EvaluationResult = {
20
21
  * Error message if the decision failed to evaluate. Null on success.
21
22
  */
22
23
  error?: string | null;
24
+ /**
25
+ * FEEL runtime errors that lenient mode replaced with `null` while this decision was evaluated. Absent when there were none.
26
+ */
27
+ warnings?: Array<FeelWarning>;
23
28
  /**
24
29
  * Kind of DMN element that produced this result:
25
- * * `DECISION` — a decision node, the typical case.
26
- * * `DECISION_SERVICE` — a decision service that aggregates multiple decisions.
27
- * * `BKM` — a business knowledge model (reusable invocable logic).
28
- * * `INPUT_DATA` — an input variable, included for context, not evaluated.
30
+ * * `DECISION` - a decision node, the typical case.
31
+ * * `DECISION_SERVICE` - a decision service that aggregates multiple decisions.
32
+ * * `BKM` - a business knowledge model (reusable invocable logic).
33
+ * * `INPUT_DATA` - an input variable, included for context, not evaluated.
29
34
  *
30
35
  */
31
36
  type?: EvaluationResult.type;
@@ -42,10 +47,10 @@ export type EvaluationResult = {
42
47
  export namespace EvaluationResult {
43
48
  /**
44
49
  * Kind of DMN element that produced this result:
45
- * * `DECISION` — a decision node, the typical case.
46
- * * `DECISION_SERVICE` — a decision service that aggregates multiple decisions.
47
- * * `BKM` — a business knowledge model (reusable invocable logic).
48
- * * `INPUT_DATA` — an input variable, included for context, not evaluated.
50
+ * * `DECISION` - a decision node, the typical case.
51
+ * * `DECISION_SERVICE` - a decision service that aggregates multiple decisions.
52
+ * * `BKM` - a business knowledge model (reusable invocable logic).
53
+ * * `INPUT_DATA` - an input variable, included for context, not evaluated.
49
54
  *
50
55
  */
51
56
  export enum type {
@@ -13,10 +13,10 @@ export type ExternalJobBatchResponse = {
13
13
  executionKey: string;
14
14
  /**
15
15
  * Outcome for this item:
16
- * * `completed` — the job was completed successfully.
17
- * * `failed` — the job exhausted its retries and surfaced as an incident.
18
- * * `requeued` — a retry budget remained, the job is back in PENDING.
19
- * * `error` — the per-item operation itself failed; the job's state is unchanged.
16
+ * * `completed` - the job was completed successfully.
17
+ * * `failed` - the job exhausted its retries and surfaced as an incident.
18
+ * * `requeued` - a retry budget remained, the job is back in PENDING.
19
+ * * `error` - the per-item operation itself failed; the job's state is unchanged.
20
20
  *
21
21
  */
22
22
  status: 'completed' | 'failed' | 'requeued' | 'error';
@@ -3,6 +3,6 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  /**
6
- * FEEL number. Maps to a decimal value at runtime. Exact decimal semantics end-to-end — the Go types use json.Number so values are never narrowed through float64.
6
+ * FEEL number. Maps to a decimal value at runtime. Exact decimal semantics end-to-end - the Go types use json.Number so values are never narrowed through float64.
7
7
  */
8
8
  export type FeelNumber = number;
@@ -0,0 +1,22 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * A FEEL runtime error that lenient mode replaced with `null`.
7
+ */
8
+ export type FeelWarning = {
9
+ /**
10
+ * What failed, for example `string length: argument cannot be null`.
11
+ */
12
+ message: string;
13
+ /**
14
+ * Line in the expression where the failing part starts. Absent when unknown.
15
+ */
16
+ line?: number;
17
+ /**
18
+ * Column in the expression where the failing part starts. Absent when unknown.
19
+ */
20
+ column?: number;
21
+ };
22
+
@@ -8,8 +8,8 @@
8
8
  export type ModificationInstruction = {
9
9
  /**
10
10
  * Kind of operation:
11
- * * `START_BEFORE_NODE` — activate `nodeID` in the given scope, optionally seeding `variables` first.
12
- * * `CANCEL_TOKEN` — cancel the active token at `nodeID` in the given scope.
11
+ * * `START_BEFORE_NODE` - activate `nodeID` in the given scope, optionally seeding `variables` first.
12
+ * * `CANCEL_TOKEN` - cancel the active token at `nodeID` in the given scope.
13
13
  *
14
14
  */
15
15
  type: ModificationInstruction.type;
@@ -18,7 +18,7 @@ export type ModificationInstruction = {
18
18
  */
19
19
  nodeID: string;
20
20
  /**
21
- * Scope to apply the instruction in. Empty applies to the root process scope.
21
+ * Scope to apply the instruction in, as reported by the instance's active scopes. Empty applies to the root process scope, for both instruction types. A scope that is not live on the instance is rejected with a 400.
22
22
  */
23
23
  scopeID?: string;
24
24
  /**
@@ -29,8 +29,8 @@ export type ModificationInstruction = {
29
29
  export namespace ModificationInstruction {
30
30
  /**
31
31
  * Kind of operation:
32
- * * `START_BEFORE_NODE` — activate `nodeID` in the given scope, optionally seeding `variables` first.
33
- * * `CANCEL_TOKEN` — cancel the active token at `nodeID` in the given scope.
32
+ * * `START_BEFORE_NODE` - activate `nodeID` in the given scope, optionally seeding `variables` first.
33
+ * * `CANCEL_TOKEN` - cancel the active token at `nodeID` in the given scope.
34
34
  *
35
35
  */
36
36
  export enum type {
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  /**
6
6
  * Audit-shaped record of an active suspension at one scope (instance or
7
- * definition). Returned inline on `BpmnInstanceState` — `null` when not
7
+ * definition). Returned inline on `BpmnInstanceState` - `null` when not
8
8
  * suspended at that scope. An instance is "effectively suspended" if either
9
9
  * scope's entry is present; the dispatcher pauses forward token dispatch
10
10
  * while either flag is set.
@@ -3,15 +3,15 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  /**
6
- * Payload for updating metadata on an existing definition version.
6
+ * Payload for updating an existing definition version.
7
7
  */
8
8
  export type UpdateDefinitionRequest = {
9
9
  /**
10
- * Replacement XML. The `definitionsID` and `version` from the original are preserved.
10
+ * Replacement XML. The `definitionsID` is read from its `<definitions id>`, falling back to the original.
11
11
  */
12
12
  xml?: string;
13
13
  /**
14
- * Optional explicit version override. Generally not used during update.
14
+ * Omit to overwrite the version in place. 0 stores the change as the next version instead.
15
15
  */
16
16
  version?: number;
17
17
  /**
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  /**
6
6
  * Reassign a CREATED user task. All fields are optional but at least one
7
- * must be present. Fields are REPLACED atomically — pass the full set of
7
+ * must be present. Fields are REPLACED atomically - pass the full set of
8
8
  * candidateUsers / candidateGroups you want stored, not a delta.
9
9
  *
10
10
  */
@@ -27,7 +27,7 @@ export type UserTask = {
27
27
  */
28
28
  nodeID: string;
29
29
  /**
30
- * BPMN element type — typically `UserTask` or `ManualTask`.
30
+ * BPMN element type - typically `UserTask` or `ManualTask`.
31
31
  */
32
32
  taskType?: string;
33
33
  /**
@@ -126,7 +126,7 @@ export class BpmnService {
126
126
  body: requestBody,
127
127
  mediaType: 'application/json',
128
128
  errors: {
129
- 409: `Conflict — resource is already deployed`,
129
+ 409: `Conflict - resource is already deployed`,
130
130
  },
131
131
  });
132
132
  }
@@ -153,7 +153,7 @@ export class BpmnService {
153
153
  'resourceID': resourceId,
154
154
  },
155
155
  errors: {
156
- 409: `Conflict — resource has running instances`,
156
+ 409: `Conflict - resource has running instances`,
157
157
  },
158
158
  });
159
159
  }
@@ -395,7 +395,7 @@ export class BpmnService {
395
395
  /**
396
396
  * Resolve an incident and retry the failed activity
397
397
  * Marks an incident as resolved and re-runs the activity that produced it.
398
- * Optional `variables` are merged into the activity's scope before retry —
398
+ * Optional `variables` are merged into the activity's scope before retry -
399
399
  * use this to fix the input that caused the failure (e.g. correct a value
400
400
  * that triggered a FEEL evaluation error).
401
401
  *
@@ -439,7 +439,7 @@ export class BpmnService {
439
439
  *
440
440
  * @param projectId
441
441
  * @param definitionId Restrict to incidents on instances of a single process definition.
442
- * @param workflowId Restrict to incidents on a single instance — useful for an instance-detail "all incidents ever raised here" view that includes resolved rows.
442
+ * @param workflowId Restrict to incidents on a single instance - useful for an instance-detail "all incidents ever raised here" view that includes resolved rows.
443
443
  * @param status Filter by lifecycle status. `open` returns unresolved incidents;
444
444
  * `resolved` returns only resolved ones. Omit to return both.
445
445
  *
@@ -456,7 +456,7 @@ export class BpmnService {
456
456
  definitionId?: string,
457
457
  workflowId?: string,
458
458
  status?: 'open' | 'resolved',
459
- errorType?: 'BpmnError' | 'EscalationError' | 'CompensationError' | 'FeelError' | 'NoHandler' | 'GatewayNoMatch' | 'TimerResolution' | 'LinkNotFound' | 'MigrationError' | 'Unknown',
459
+ errorType?: 'BpmnError' | 'EscalationError' | 'CompensationError' | 'FeelError' | 'NoHandler' | 'GatewayNoMatch' | 'TimerResolution' | 'LinkNotFound' | 'MigrationError' | 'SubscriptionError' | 'RotationLimitError' | 'SnapshotSizeExceeded' | 'CallActivityCanceled' | 'ExternalRowRefreshError' | 'Unknown',
460
460
  since?: string,
461
461
  until?: string,
462
462
  page?: number,
@@ -545,6 +545,13 @@ export class BpmnService {
545
545
  * running instance. Useful for unblocking instances that have ended up
546
546
  * in unintended states. Restricted to project administrators.
547
547
  *
548
+ * The instructions are validated against the live instance before
549
+ * anything is applied, and the whole batch is refused with a 400 if any
550
+ * of them cannot be: an unknown scope, a `START_BEFORE_NODE` naming a
551
+ * node the instance's process version does not contain, or a
552
+ * `CANCEL_TOKEN` with no live token, scope or incident at its target.
553
+ * A batch is applied whole or not at all.
554
+ *
548
555
  * @param projectId
549
556
  * @param workflowId
550
557
  * @param requestBody
@@ -565,6 +572,10 @@ export class BpmnService {
565
572
  },
566
573
  body: requestBody,
567
574
  mediaType: 'application/json',
575
+ errors: {
576
+ 400: `Bad Request`,
577
+ 404: `Not Found`,
578
+ },
568
579
  });
569
580
  }
570
581
  /**
@@ -637,7 +648,7 @@ export class BpmnService {
637
648
  * Suspend a BPMN instance
638
649
  * Pauses forward token dispatch on a single running instance. The
639
650
  * instance's lifecycle status stays RUNNING; an orthogonal `suspendedAt`
640
- * flag layers on top. Idempotent — a second call against an already-
651
+ * flag layers on top. Idempotent - a second call against an already-
641
652
  * suspended instance is a no-op.
642
653
  *
643
654
  * While suspended: cancel / terminate / migrate / force-rotate / resolve-
@@ -705,7 +716,7 @@ export class BpmnService {
705
716
  * It then iterates over every running instance (`status='RUNNING'`) and
706
717
  * sends each one a definition-scope suspend signal via the engine API.
707
718
  * Instances that were also explicitly instance-suspended stay paused
708
- * after a definition-scope resume — the operator must clear that scope
719
+ * after a definition-scope resume - the operator must clear that scope
709
720
  * too.
710
721
  *
711
722
  * Idempotent. The reason cascades to every affected instance's history
@@ -872,7 +883,7 @@ export class BpmnService {
872
883
  requestBody: {
873
884
  /**
874
885
  * Optional worker identity (the same `clientID` used to poll)
875
- * applied to every item in the batch — a batch is one worker's
886
+ * applied to every item in the batch - a batch is one worker's
876
887
  * report. When supplied, an item is completed only if this
877
888
  * worker still holds its lock; items re-acquired by a peer drop
878
889
  * out silently. Omit for the legacy unchecked behavior.
@@ -917,7 +928,7 @@ export class BpmnService {
917
928
  requestBody: {
918
929
  /**
919
930
  * Optional worker identity (the same `clientID` used to poll)
920
- * applied to every item in the batch — a batch is one worker's
931
+ * applied to every item in the batch - a batch is one worker's
921
932
  * report. When supplied, an item is requeued/failed only if this
922
933
  * worker still holds its lock; items held by a peer are reported
923
934
  * as an error and left untouched. Omit for the legacy unchecked
@@ -1033,7 +1044,7 @@ export class BpmnService {
1033
1044
  * Fetch a single user task by execution key. Allowed for callers with
1034
1045
  * Executor (or higher) role on the project, OR for callers who are the
1035
1046
  * task's assignee, listed in candidateUsers, or whose identity groups
1036
- * overlap candidateGroups — same access semantics as Complete and Error.
1047
+ * overlap candidateGroups - same access semantics as Complete and Error.
1037
1048
  *
1038
1049
  * @param projectId
1039
1050
  * @param executionKey
@@ -1052,7 +1063,7 @@ export class BpmnService {
1052
1063
  'executionKey': executionKey,
1053
1064
  },
1054
1065
  errors: {
1055
- 403: `Forbidden — caller is not Executor and not assigned to the task`,
1066
+ 403: `Forbidden - caller is not Executor and not assigned to the task`,
1056
1067
  404: `Not Found`,
1057
1068
  },
1058
1069
  });
@@ -1118,7 +1129,7 @@ export class BpmnService {
1118
1129
  body: requestBody,
1119
1130
  mediaType: 'application/json',
1120
1131
  errors: {
1121
- 403: `Forbidden — caller is not Executor and not assigned to the task`,
1132
+ 403: `Forbidden - caller is not Executor and not assigned to the task`,
1122
1133
  404: `User task not found`,
1123
1134
  },
1124
1135
  });
@@ -1153,7 +1164,7 @@ export class BpmnService {
1153
1164
  body: requestBody,
1154
1165
  mediaType: 'application/json',
1155
1166
  errors: {
1156
- 403: `Forbidden — caller is not Executor and not assigned to the task`,
1167
+ 403: `Forbidden - caller is not Executor and not assigned to the task`,
1157
1168
  404: `User task not found`,
1158
1169
  },
1159
1170
  });
@@ -1260,11 +1271,16 @@ export class BpmnService {
1260
1271
  * @param pageSize
1261
1272
  * @param q Optional case-insensitive substring match against process id or process name.
1262
1273
  * @param createdAfter Bounds the totalCount aggregate to instances created at or after this
1263
- * timestamp. Strongly recommended for monitoring views — instance
1274
+ * timestamp. Strongly recommended for monitoring views - instance
1264
1275
  * history accumulates indefinitely and unfiltered totals scan the full
1265
1276
  * table per definition. runningCount ignores this filter (it is always
1266
1277
  * point-in-time).
1267
1278
  *
1279
+ * @param suspended Filter by paused versions. `true` → only processes with at least one
1280
+ * paused version; `false` → only processes with none. Omit for no
1281
+ * filter. This is the cross-process answer to "which definitions are
1282
+ * paused?"; `suspendedVersionCount` on each row says how many.
1283
+ *
1268
1284
  * @returns BpmnProcessSummaryPaginatedResponse OK
1269
1285
  * @throws ApiError
1270
1286
  */
@@ -1274,6 +1290,7 @@ export class BpmnService {
1274
1290
  pageSize: number = 20,
1275
1291
  q?: string,
1276
1292
  createdAfter?: string,
1293
+ suspended?: boolean,
1277
1294
  ): CancelablePromise<BpmnProcessSummaryPaginatedResponse> {
1278
1295
  return this.httpRequest.request({
1279
1296
  method: 'GET',
@@ -1286,6 +1303,7 @@ export class BpmnService {
1286
1303
  'pageSize': pageSize,
1287
1304
  'q': q,
1288
1305
  'createdAfter': createdAfter,
1306
+ 'suspended': suspended,
1289
1307
  },
1290
1308
  errors: {
1291
1309
  401: `Unauthorized`,
@@ -1307,6 +1325,9 @@ export class BpmnService {
1307
1325
  * timestamp. See ListBpmnProcesses for rationale. runningCount ignores
1308
1326
  * this filter.
1309
1327
  *
1328
+ * @param suspended Filter by definition-scope suspension. `true` → only paused versions;
1329
+ * `false` → only active ones. Omit for no filter.
1330
+ *
1310
1331
  * @returns BpmnProcessVersionPaginatedResponse OK
1311
1332
  * @throws ApiError
1312
1333
  */
@@ -1316,6 +1337,7 @@ export class BpmnService {
1316
1337
  page: number = 1,
1317
1338
  pageSize: number = 20,
1318
1339
  createdAfter?: string,
1340
+ suspended?: boolean,
1319
1341
  ): CancelablePromise<BpmnProcessVersionPaginatedResponse> {
1320
1342
  return this.httpRequest.request({
1321
1343
  method: 'GET',
@@ -1328,6 +1350,7 @@ export class BpmnService {
1328
1350
  'page': page,
1329
1351
  'pageSize': pageSize,
1330
1352
  'createdAfter': createdAfter,
1353
+ 'suspended': suspended,
1331
1354
  },
1332
1355
  errors: {
1333
1356
  401: `Unauthorized`,
@@ -10,6 +10,7 @@ import type { BpmnInstanceState } from '../models/BpmnInstanceState';
10
10
  import type { CreateDefinitionRequest } from '../models/CreateDefinitionRequest';
11
11
  import type { CreateProjectRequest } from '../models/CreateProjectRequest';
12
12
  import type { Definition } from '../models/Definition';
13
+ import type { ErrorMode } from '../models/ErrorMode';
13
14
  import type { EvaluateStoredRequest } from '../models/EvaluateStoredRequest';
14
15
  import type { EvaluationResult } from '../models/EvaluationResult';
15
16
  import type { Execution } from '../models/Execution';
@@ -71,6 +72,7 @@ export class DefaultService {
71
72
  * Names of decisions or decision services to evaluate. If empty, all decisions in the document are evaluated.
72
73
  */
73
74
  decisions?: Array<string>;
75
+ errorMode?: ErrorMode;
74
76
  },
75
77
  ): CancelablePromise<Record<string, EvaluationResult>> {
76
78
  return this.httpRequest.request({
@@ -423,8 +425,8 @@ export class DefaultService {
423
425
  });
424
426
  }
425
427
  /**
426
- * Update a DMN definition's metadata
427
- * Modifies metadata (name) of a stored definition. The DMN XML and version are immutable; post a new definition with the same XML `id` to publish a new version.
428
+ * Update a DMN definition version
429
+ * Replaces the name and XML of a stored definition version in place. Send `version` 0 to store the change as the next version of the same definition instead.
428
430
  * @param projectId
429
431
  * @param definitionId
430
432
  * @param requestBody
@@ -595,6 +597,7 @@ export class DefaultService {
595
597
  * @param projectId
596
598
  * @param definitionsId Filter by DMN `<definitions id>` (XML id).
597
599
  * @param businessId Exact-match filter on the caller-supplied correlation key.
600
+ * @param startDate Only return executions at or after this instant (ISO 8601). Bounds the scan and the reported total; omit for the full unbounded history.
598
601
  * @param page Page number (1-indexed)
599
602
  * @param pageSize Number of items per page (max 100)
600
603
  * @returns PaginatedExecutionsResponse OK
@@ -604,6 +607,7 @@ export class DefaultService {
604
607
  projectId: string,
605
608
  definitionsId?: string,
606
609
  businessId?: string,
610
+ startDate?: string,
607
611
  page: number = 1,
608
612
  pageSize: number = 20,
609
613
  ): CancelablePromise<PaginatedExecutionsResponse> {
@@ -616,6 +620,7 @@ export class DefaultService {
616
620
  query: {
617
621
  'definitionsID': definitionsId,
618
622
  'businessId': businessId,
623
+ 'startDate': startDate,
619
624
  'page': page,
620
625
  'pageSize': pageSize,
621
626
  },
@@ -663,14 +668,15 @@ export class DefaultService {
663
668
  * `true` to show only instances that need operator attention; pass
664
669
  * `false` to exclude blocked instances.
665
670
  *
666
- * @param suspended Filter by instance-scope suspension. `true` → only instances with
667
- * `suspendedAt` set; `false` → only running-and-not-paused. Omit for
668
- * no filter. Does not consider definition-scope suspension; for a
669
- * full "is this instance making progress?" view, callers should
670
- * additionally join against the parent definition.
671
+ * @param suspended Filter by effective suspension - either scope counts. `true` → only
672
+ * instances paused at instance scope (`suspendedAt` set) or whose
673
+ * definition is paused (`definitionSuspended`); `false` → only
674
+ * instances paused at neither scope. Omit for no filter. Read those
675
+ * two row fields to tell the scopes apart; resume acts on one scope
676
+ * at a time.
671
677
  *
672
678
  * @param createdAfter Only return instances created at or after this timestamp. Strongly
673
- * recommended for monitoring views — terminal-state instance rows
679
+ * recommended for monitoring views - terminal-state instance rows
674
680
  * accumulate indefinitely, and unfiltered queries grow linearly with
675
681
  * that history.
676
682
  *
@@ -712,7 +718,7 @@ export class DefaultService {
712
718
  /**
713
719
  * Start a BPMN process instance
714
720
  * Starts a new instance of a deployed BPMN process. The returned
715
- * `workflowID` is the stable execution identifier — use it to fetch
721
+ * `workflowID` is the stable execution identifier - use it to fetch
716
722
  * state, send signals/messages, complete user tasks, etc.
717
723
  *
718
724
  * @param projectId
@@ -746,7 +752,7 @@ export class DefaultService {
746
752
  }
747
753
  /**
748
754
  * Get BPMN instance state
749
- * Returns the full runtime state of a process instance — current variables,
755
+ * Returns the full runtime state of a process instance - current variables,
750
756
  * activity history, active scopes, and any unresolved incidents. Use this
751
757
  * to render dashboards or to drive operational decisions on a single
752
758
  * instance.
@@ -772,7 +778,7 @@ export class DefaultService {
772
778
  /**
773
779
  * Cancel a BPMN instance
774
780
  * Cancels a running instance and all of its active activities, jobs, and
775
- * child instances. Cancellation is best-effort — handlers in flight may
781
+ * child instances. Cancellation is best-effort - handlers in flight may
776
782
  * still complete before the cancel propagates. Cancelled instances move
777
783
  * to status `CANCELED` and stop consuming further work.
778
784
  *
@@ -807,7 +813,7 @@ export class DefaultService {
807
813
  * @param workflowId Filter jobs by workflow ID
808
814
  * @param businessId Exact-match filter on the caller-supplied correlation key.
809
815
  * @param createdAfter Only return jobs created at or after this timestamp. Strongly
810
- * recommended for monitoring views — completed-job records accumulate
816
+ * recommended for monitoring views - completed-job records accumulate
811
817
  * indefinitely, and unfiltered queries grow linearly with that history.
812
818
  *
813
819
  * @param page
@@ -847,7 +853,7 @@ export class DefaultService {
847
853
  * Long-polls for PENDING jobs of a given `taskType`. Returns a batch of
848
854
  * jobs (up to `maxJobs`) as soon as any are available, or `204 No Content`
849
855
  * when the timeout elapses with no work. Each returned job is exclusively
850
- * leased to the caller for `lockDuration` — call `Heartbeat` to extend
856
+ * leased to the caller for `lockDuration` - call `Heartbeat` to extend
851
857
  * the lock, then `Complete` or `ThrowError` to finalize.
852
858
  *
853
859
  * @param projectId
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * QuantumBPM SDK — top-level entry point.
2
+ * QuantumBPM SDK - top-level entry point.
3
3
  *
4
4
  * @example
5
5
  * ```typescript
@@ -52,7 +52,7 @@ export class QuantumBPM {
52
52
  readonly raw: RawClient;
53
53
  /** DMN evaluation surface. */
54
54
  readonly dmn: DmnClient;
55
- /** BPMN runtime surface — resources, instances, messaging, user tasks. */
55
+ /** BPMN runtime surface - resources, instances, messaging, user tasks. */
56
56
  readonly bpmn: BpmnClient;
57
57
  /** Project the client is bound to. */
58
58
  readonly projectId: string;
package/src/variables.ts CHANGED
@@ -38,7 +38,7 @@ export class Vars {
38
38
  /**
39
39
  * Return the value at name typed as T. Throws when the variable is not
40
40
  * set. Use this for opt-in typed access in worker handlers and DMN
41
- * results — TypeScript treats the cast as a hint, not a runtime check.
41
+ * results - TypeScript treats the cast as a hint, not a runtime check.
42
42
  */
43
43
  get<T>(name: string): T {
44
44
  if (!(name in this.data)) {
package/src/workers.ts CHANGED
@@ -17,7 +17,7 @@ import { Vars } from './variables';
17
17
  /**
18
18
  * Throw this from a handler to fail the job with a BPMN error code.
19
19
  * The runtime translates it into a ThrowError call against the originating
20
- * service task — matching boundary error events on the task can then route
20
+ * service task - matching boundary error events on the task can then route
21
21
  * the exception in the BPMN model.
22
22
  */
23
23
  export class BpmnError extends Error {
@@ -33,7 +33,7 @@ export interface Job<TVars = Record<string, unknown>> {
33
33
  executionKey: string;
34
34
  /** Workflow ID of the originating instance. */
35
35
  workflowId: string;
36
- /** Worker selector — the task type the handler was registered for. */
36
+ /** Worker selector - the task type the handler was registered for. */
37
37
  taskType: string;
38
38
  /** Input variables resolved by the service task at activity entry. */
39
39
  vars: Vars;
@@ -70,7 +70,7 @@ export type Handler<TVars = Record<string, unknown>> = (
70
70
  export interface HandleOptions {
71
71
  /** Maximum jobs in flight for this task type. Default 1. */
72
72
  maxJobs?: number;
73
- /** Long-poll wait — duration string like "30s", "2m". Default "30s". */
73
+ /** Long-poll wait - duration string like "30s", "2m". Default "30s". */
74
74
  pollTimeout?: string;
75
75
  /** Exclusive lock duration on each acquired job. Default "30s". */
76
76
  lockDuration?: string;