@cohesivesystems/processes 0.1.0-alpha.63 → 0.1.0-alpha.66
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/generated/processes.shapes.generated.d.ts +366 -7
- package/dist/generated/processes.shapes.generated.d.ts.map +1 -1
- package/dist/generated/processes.shapes.generated.js +230 -0
- package/dist/generated/processes.shapes.generated.js.map +1 -1
- package/package.json +2 -2
- package/src/generated/processes.shapes.generated.ts +545 -8
|
@@ -1,8 +1,72 @@
|
|
|
1
1
|
/* <auto-generated/> */
|
|
2
2
|
|
|
3
|
-
import type { AggregateExpr, AggregateOperator, AnnotationKey, AnnotationValue, ArrayTypeRef, BinaryExpr, BinaryOperator, BindingExpr, CallExpr, ConditionalExpr, ConstantExpr, CurrentItemExpr, DiagnosticSeverity, DocumentDiagnosticEvidence, DocumentOrigin, DocumentValidationDiagnostic, EntityReferenceTypeRef, EntityTypeName, EnumTypeRef, Expr, FieldCardinality, FieldExpr, FieldNullability, FieldPath, FieldPathSegment, FieldPresence, FieldRefExpr, GraphId, JsonTypeKind, JsonTypeRef, LiteralExpr, NamedTypeRef, ObjectFieldTypeDef, ObjectTypeRef, OpaqueRuntimeTypeRef, ParameterExpr, PrimitiveFormat, QualifiedShapeId, QuantityTypeRef, ScalarTypeKind, ScalarTypeRef, SegmentKind, ShapeId, TypeId, TypeInferenceDiagnostic, TypeRef, UnaryExpr, UnaryOperator, ValueBindingId, ValueContract } from '@cohesivesystems/relations';
|
|
3
|
+
import type { AggregateExpr, AggregateOperator, AnnotationKey, AnnotationValue, ArrayTypeRef, BinaryExpr, BinaryOperator, BindingExpr, CallExpr, CapabilityRealizationKind, ConditionalExpr, ConstantExpr, CurrentItemExpr, DiagnosticSeverity, DocumentDiagnosticEvidence, DocumentOrigin, DocumentValidationDiagnostic, EntityReferenceTypeRef, EntityTypeName, EnumTypeRef, Expr, FieldCardinality, FieldExpr, FieldNullability, FieldPath, FieldPathSegment, FieldPresence, FieldRefExpr, GraphId, JsonTypeKind, JsonTypeRef, LiteralExpr, NamedTypeRef, ObjectFieldTypeDef, ObjectTypeRef, OpaqueRuntimeTypeRef, ParameterExpr, PrimitiveFormat, QualifiedShapeId, QuantityTypeRef, ScalarTypeKind, ScalarTypeRef, SegmentKind, ShapeId, TypeId, TypeInferenceDiagnostic, TypeRef, UnaryExpr, UnaryOperator, ValueBindingId, ValueContract } from '@cohesivesystems/relations';
|
|
4
4
|
|
|
5
|
-
export type { AggregateExpr, AggregateOperator, AnnotationKey, AnnotationValue, ArrayTypeRef, BinaryExpr, BinaryOperator, BindingExpr, CallExpr, ConditionalExpr, ConstantExpr, CurrentItemExpr, DiagnosticSeverity, DocumentDiagnosticEvidence, DocumentOrigin, DocumentValidationDiagnostic, EntityReferenceTypeRef, EntityTypeName, EnumTypeRef, Expr, FieldCardinality, FieldExpr, FieldNullability, FieldPath, FieldPathSegment, FieldPresence, FieldRefExpr, GraphId, JsonTypeKind, JsonTypeRef, LiteralExpr, NamedTypeRef, ObjectFieldTypeDef, ObjectTypeRef, OpaqueRuntimeTypeRef, ParameterExpr, PrimitiveFormat, QualifiedShapeId, QuantityTypeRef, ScalarTypeKind, ScalarTypeRef, SegmentKind, ShapeId, TypeId, TypeInferenceDiagnostic, TypeRef, UnaryExpr, UnaryOperator, ValueBindingId, ValueContract };
|
|
5
|
+
export type { AggregateExpr, AggregateOperator, AnnotationKey, AnnotationValue, ArrayTypeRef, BinaryExpr, BinaryOperator, BindingExpr, CallExpr, CapabilityRealizationKind, ConditionalExpr, ConstantExpr, CurrentItemExpr, DiagnosticSeverity, DocumentDiagnosticEvidence, DocumentOrigin, DocumentValidationDiagnostic, EntityReferenceTypeRef, EntityTypeName, EnumTypeRef, Expr, FieldCardinality, FieldExpr, FieldNullability, FieldPath, FieldPathSegment, FieldPresence, FieldRefExpr, GraphId, JsonTypeKind, JsonTypeRef, LiteralExpr, NamedTypeRef, ObjectFieldTypeDef, ObjectTypeRef, OpaqueRuntimeTypeRef, ParameterExpr, PrimitiveFormat, QualifiedShapeId, QuantityTypeRef, ScalarTypeKind, ScalarTypeRef, SegmentKind, ShapeId, TypeId, TypeInferenceDiagnostic, TypeRef, UnaryExpr, UnaryOperator, ValueBindingId, ValueContract };
|
|
6
|
+
|
|
7
|
+
export type ProcessControlDecisionDisposition = 'Unspecified' | 'Inspected' | 'Applied' | 'DeferredToSafePoint' | 'Replayed' | 'AlreadySatisfied' | 'AlreadyRequested' | 'SignalAccepted' | 'SignalBuffered' | 'SignalDuplicate' | 'ActivationStarted' | 'SafePointReached' | 'AffinityBound' | 'Unauthorized' | 'TargetMismatch' | 'StaleAttempt' | 'StaleRevision' | 'IdentityConflict' | 'IdempotencyConflict' | 'SignalConflict' | 'AffinityConflict' | 'InvalidState' | 'InvalidCommand' | 'CancellationFinalized';
|
|
8
|
+
|
|
9
|
+
export const processControlDecisionDispositions = {
|
|
10
|
+
unspecified: 'Unspecified',
|
|
11
|
+
inspected: 'Inspected',
|
|
12
|
+
applied: 'Applied',
|
|
13
|
+
deferredToSafePoint: 'DeferredToSafePoint',
|
|
14
|
+
replayed: 'Replayed',
|
|
15
|
+
alreadySatisfied: 'AlreadySatisfied',
|
|
16
|
+
alreadyRequested: 'AlreadyRequested',
|
|
17
|
+
signalAccepted: 'SignalAccepted',
|
|
18
|
+
signalBuffered: 'SignalBuffered',
|
|
19
|
+
signalDuplicate: 'SignalDuplicate',
|
|
20
|
+
activationStarted: 'ActivationStarted',
|
|
21
|
+
safePointReached: 'SafePointReached',
|
|
22
|
+
affinityBound: 'AffinityBound',
|
|
23
|
+
unauthorized: 'Unauthorized',
|
|
24
|
+
targetMismatch: 'TargetMismatch',
|
|
25
|
+
staleAttempt: 'StaleAttempt',
|
|
26
|
+
staleRevision: 'StaleRevision',
|
|
27
|
+
identityConflict: 'IdentityConflict',
|
|
28
|
+
idempotencyConflict: 'IdempotencyConflict',
|
|
29
|
+
signalConflict: 'SignalConflict',
|
|
30
|
+
affinityConflict: 'AffinityConflict',
|
|
31
|
+
invalidState: 'InvalidState',
|
|
32
|
+
invalidCommand: 'InvalidCommand',
|
|
33
|
+
cancellationFinalized: 'CancellationFinalized',
|
|
34
|
+
} as const satisfies Record<string, ProcessControlDecisionDisposition>;
|
|
35
|
+
|
|
36
|
+
export const processControlDecisionDispositionLabels: Record<ProcessControlDecisionDisposition, string> = {
|
|
37
|
+
Unspecified: 'Unspecified',
|
|
38
|
+
Inspected: 'Inspected',
|
|
39
|
+
Applied: 'Applied',
|
|
40
|
+
DeferredToSafePoint: 'DeferredToSafePoint',
|
|
41
|
+
Replayed: 'Replayed',
|
|
42
|
+
AlreadySatisfied: 'AlreadySatisfied',
|
|
43
|
+
AlreadyRequested: 'AlreadyRequested',
|
|
44
|
+
SignalAccepted: 'SignalAccepted',
|
|
45
|
+
SignalBuffered: 'SignalBuffered',
|
|
46
|
+
SignalDuplicate: 'SignalDuplicate',
|
|
47
|
+
ActivationStarted: 'ActivationStarted',
|
|
48
|
+
SafePointReached: 'SafePointReached',
|
|
49
|
+
AffinityBound: 'AffinityBound',
|
|
50
|
+
Unauthorized: 'Unauthorized',
|
|
51
|
+
TargetMismatch: 'TargetMismatch',
|
|
52
|
+
StaleAttempt: 'StaleAttempt',
|
|
53
|
+
StaleRevision: 'StaleRevision',
|
|
54
|
+
IdentityConflict: 'IdentityConflict',
|
|
55
|
+
IdempotencyConflict: 'IdempotencyConflict',
|
|
56
|
+
SignalConflict: 'SignalConflict',
|
|
57
|
+
AffinityConflict: 'AffinityConflict',
|
|
58
|
+
InvalidState: 'InvalidState',
|
|
59
|
+
InvalidCommand: 'InvalidCommand',
|
|
60
|
+
CancellationFinalized: 'CancellationFinalized',
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export interface ExecutionControlReceiptSummary {
|
|
64
|
+
commandId: ProcessControlCommandId;
|
|
65
|
+
disposition: ProcessControlReceiptDisposition;
|
|
66
|
+
beforeRevision: ProcessControlRevision;
|
|
67
|
+
afterRevision: ProcessControlRevision;
|
|
68
|
+
recordedAtUtc: string;
|
|
69
|
+
}
|
|
6
70
|
|
|
7
71
|
export type ExecutionDefinitionKind = string;
|
|
8
72
|
|
|
@@ -24,6 +88,127 @@ export interface ExecutionDefinitionExtension {
|
|
|
24
88
|
value: PortableValue;
|
|
25
89
|
}
|
|
26
90
|
|
|
91
|
+
export type ExecutionIrSchemaVersion = string;
|
|
92
|
+
|
|
93
|
+
export interface ExecutionExplainDefinitionReference {
|
|
94
|
+
kind: ExecutionDefinitionKind;
|
|
95
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
96
|
+
definition: ExecutionDefinitionReference;
|
|
97
|
+
provenance: ExecutionProvenance;
|
|
98
|
+
sourceMap: ExecutionSourceMap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface ExecutionInterpreterProfileReference {
|
|
102
|
+
id: string;
|
|
103
|
+
version: string;
|
|
104
|
+
schemaCompatibility: ExecutionIrSchemaCompatibilityDeclaration;
|
|
105
|
+
definitionKinds: ExecutionDefinitionKind[];
|
|
106
|
+
provenance: ExecutionProvenance;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface ExecutionExplainEvidence {
|
|
110
|
+
stage: string;
|
|
111
|
+
kind: string;
|
|
112
|
+
subject: string;
|
|
113
|
+
authority: ExecutionExplainEvidenceAuthority;
|
|
114
|
+
status: string;
|
|
115
|
+
realization?: CapabilityRealizationKind | null;
|
|
116
|
+
relatedSubjects: string[];
|
|
117
|
+
sourceReferences: string[];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface ExecutionExplainTraceReference {
|
|
121
|
+
definition: ExecutionDefinitionReference;
|
|
122
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
123
|
+
activation: ActivationId;
|
|
124
|
+
fingerprint: ExecutionTraceFingerprint;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface ExecutionExplainFingerprint {
|
|
128
|
+
algorithm: string;
|
|
129
|
+
canonicalization: string;
|
|
130
|
+
value: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface ExecutionDefinitionReference {
|
|
134
|
+
definitionId: ExecutionDefinitionId;
|
|
135
|
+
revisionId: ExecutionRevisionId;
|
|
136
|
+
fingerprint: ExecutionDefinitionFingerprint;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type ProcessInstanceId = string;
|
|
140
|
+
|
|
141
|
+
export type ProcessControlRevision = string;
|
|
142
|
+
|
|
143
|
+
export type ProcessControlMode = 'Unspecified' | 'Running' | 'PauseRequested' | 'Paused' | 'RestartRequested' | 'CancellationRequested' | 'Cancelled' | 'Terminated' | 'Cancelling' | 'CancellationFailed';
|
|
144
|
+
|
|
145
|
+
export const processControlModes = {
|
|
146
|
+
unspecified: 'Unspecified',
|
|
147
|
+
running: 'Running',
|
|
148
|
+
pauseRequested: 'PauseRequested',
|
|
149
|
+
paused: 'Paused',
|
|
150
|
+
restartRequested: 'RestartRequested',
|
|
151
|
+
cancellationRequested: 'CancellationRequested',
|
|
152
|
+
cancelled: 'Cancelled',
|
|
153
|
+
terminated: 'Terminated',
|
|
154
|
+
cancelling: 'Cancelling',
|
|
155
|
+
cancellationFailed: 'CancellationFailed',
|
|
156
|
+
} as const satisfies Record<string, ProcessControlMode>;
|
|
157
|
+
|
|
158
|
+
export const processControlModeLabels: Record<ProcessControlMode, string> = {
|
|
159
|
+
Unspecified: 'Unspecified',
|
|
160
|
+
Running: 'Running',
|
|
161
|
+
PauseRequested: 'PauseRequested',
|
|
162
|
+
Paused: 'Paused',
|
|
163
|
+
RestartRequested: 'RestartRequested',
|
|
164
|
+
CancellationRequested: 'CancellationRequested',
|
|
165
|
+
Cancelled: 'Cancelled',
|
|
166
|
+
Terminated: 'Terminated',
|
|
167
|
+
Cancelling: 'Cancelling',
|
|
168
|
+
CancellationFailed: 'CancellationFailed',
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export interface ExecutionAttemptStatus {
|
|
172
|
+
attemptId: ProcessAttemptId;
|
|
173
|
+
startedAtUtc: string;
|
|
174
|
+
endedAtUtc?: string | null;
|
|
175
|
+
disposition: ExecutionAttemptDisposition;
|
|
176
|
+
phase: ProcessControlExecutionPhase;
|
|
177
|
+
completedActivationCount: string;
|
|
178
|
+
lastSafePointId?: ProcessSafePointId | null;
|
|
179
|
+
lastSafePointNode?: ExecutionNodeId | null;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type ProcessAttemptId = string;
|
|
183
|
+
|
|
184
|
+
export interface ExecutionActivationStatus {
|
|
185
|
+
activationId: ActivationId;
|
|
186
|
+
attemptId: ProcessAttemptId;
|
|
187
|
+
startedUnderRevision: ProcessControlRevision;
|
|
188
|
+
startedAtUtc: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface ExecutionRuntimeStatusDetails {
|
|
192
|
+
tokensDisclosure: ExecutionStatusDisclosure;
|
|
193
|
+
tokens: ExecutionTokenStatus[];
|
|
194
|
+
waitsDisclosure: ExecutionStatusDisclosure;
|
|
195
|
+
waits: ExecutionWaitStatus[];
|
|
196
|
+
progressDisclosure: ExecutionStatusDisclosure;
|
|
197
|
+
progress?: ExecutionProgressStatus | null;
|
|
198
|
+
demandDisclosure: ExecutionStatusDisclosure;
|
|
199
|
+
demand?: ExecutionDemandStatus | null;
|
|
200
|
+
capacityDisclosure: ExecutionStatusDisclosure;
|
|
201
|
+
capacity?: ExecutionCapacityStatus | null;
|
|
202
|
+
health: ExecutionHealthStatus;
|
|
203
|
+
extensions: ExecutionRuntimeStatusExtension[];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface ExecutionTerminalOutcome {
|
|
207
|
+
kind: ExecutionTerminalOutcomeKind;
|
|
208
|
+
occurredAtUtc?: string | null;
|
|
209
|
+
detail?: ExecutionStatusValue | null;
|
|
210
|
+
}
|
|
211
|
+
|
|
27
212
|
export type ExecutionNodeId = string;
|
|
28
213
|
|
|
29
214
|
export type ProcessNode = {
|
|
@@ -265,12 +450,48 @@ export const processRecoveryPolicyLabels: Record<ProcessRecoveryPolicy, string>
|
|
|
265
450
|
RestartAttempt: 'RestartAttempt',
|
|
266
451
|
};
|
|
267
452
|
|
|
453
|
+
export interface NormalizedExecutionTrace {
|
|
454
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
455
|
+
kind: ExecutionDefinitionKind;
|
|
456
|
+
definition: ExecutionDefinitionReference;
|
|
457
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
458
|
+
activation: ActivationId;
|
|
459
|
+
disposition: string;
|
|
460
|
+
safePointNode?: ExecutionNodeId | null;
|
|
461
|
+
durableCommitSequence?: string | null;
|
|
462
|
+
events: NormalizedExecutionTraceEvent[];
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export type ProcessControlCommandId = string;
|
|
466
|
+
|
|
467
|
+
export type ProcessControlReceiptDisposition = 'Unspecified' | 'Applied' | 'DeferredToSafePoint' | 'AlreadySatisfied' | 'AlreadyRequested' | 'SignalAccepted' | 'SignalBuffered' | 'SignalDuplicate';
|
|
468
|
+
|
|
469
|
+
export const processControlReceiptDispositions = {
|
|
470
|
+
unspecified: 'Unspecified',
|
|
471
|
+
applied: 'Applied',
|
|
472
|
+
deferredToSafePoint: 'DeferredToSafePoint',
|
|
473
|
+
alreadySatisfied: 'AlreadySatisfied',
|
|
474
|
+
alreadyRequested: 'AlreadyRequested',
|
|
475
|
+
signalAccepted: 'SignalAccepted',
|
|
476
|
+
signalBuffered: 'SignalBuffered',
|
|
477
|
+
signalDuplicate: 'SignalDuplicate',
|
|
478
|
+
} as const satisfies Record<string, ProcessControlReceiptDisposition>;
|
|
479
|
+
|
|
480
|
+
export const processControlReceiptDispositionLabels: Record<ProcessControlReceiptDisposition, string> = {
|
|
481
|
+
Unspecified: 'Unspecified',
|
|
482
|
+
Applied: 'Applied',
|
|
483
|
+
DeferredToSafePoint: 'DeferredToSafePoint',
|
|
484
|
+
AlreadySatisfied: 'AlreadySatisfied',
|
|
485
|
+
AlreadyRequested: 'AlreadyRequested',
|
|
486
|
+
SignalAccepted: 'SignalAccepted',
|
|
487
|
+
SignalBuffered: 'SignalBuffered',
|
|
488
|
+
SignalDuplicate: 'SignalDuplicate',
|
|
489
|
+
};
|
|
490
|
+
|
|
268
491
|
export type ExecutionDefinitionId = string;
|
|
269
492
|
|
|
270
493
|
export type ExecutionRevisionId = string;
|
|
271
494
|
|
|
272
|
-
export type ExecutionIrSchemaVersion = string;
|
|
273
|
-
|
|
274
495
|
export interface ExecutionDefinitionFingerprint {
|
|
275
496
|
algorithm: string;
|
|
276
497
|
canonicalization: string;
|
|
@@ -298,10 +519,177 @@ export interface PortableValue {
|
|
|
298
519
|
failure?: DocumentValidationDiagnostic | null;
|
|
299
520
|
}
|
|
300
521
|
|
|
301
|
-
export interface
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
522
|
+
export interface ExecutionIrSchemaCompatibilityDeclaration {
|
|
523
|
+
supportedSchemaVersions: ExecutionIrSchemaVersion[];
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export type ExecutionExplainEvidenceAuthority = 'Declared' | 'Derived' | 'ConventionDerived' | 'AdapterSupplied' | 'Interpreted' | 'Measured' | 'Recommended' | 'Applied';
|
|
527
|
+
|
|
528
|
+
export const executionExplainEvidenceAuthorities = {
|
|
529
|
+
declared: 'Declared',
|
|
530
|
+
derived: 'Derived',
|
|
531
|
+
conventionDerived: 'ConventionDerived',
|
|
532
|
+
adapterSupplied: 'AdapterSupplied',
|
|
533
|
+
interpreted: 'Interpreted',
|
|
534
|
+
measured: 'Measured',
|
|
535
|
+
recommended: 'Recommended',
|
|
536
|
+
applied: 'Applied',
|
|
537
|
+
} as const satisfies Record<string, ExecutionExplainEvidenceAuthority>;
|
|
538
|
+
|
|
539
|
+
export const executionExplainEvidenceAuthorityLabels: Record<ExecutionExplainEvidenceAuthority, string> = {
|
|
540
|
+
Declared: 'Declared',
|
|
541
|
+
Derived: 'Derived',
|
|
542
|
+
ConventionDerived: 'ConventionDerived',
|
|
543
|
+
AdapterSupplied: 'AdapterSupplied',
|
|
544
|
+
Interpreted: 'Interpreted',
|
|
545
|
+
Measured: 'Measured',
|
|
546
|
+
Recommended: 'Recommended',
|
|
547
|
+
Applied: 'Applied',
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
export interface ProcessContinuationIdentity {
|
|
551
|
+
processInstanceId: ProcessInstanceId;
|
|
552
|
+
processAttemptId: ProcessAttemptId;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export type ActivationId = string;
|
|
556
|
+
|
|
557
|
+
export interface ExecutionTraceFingerprint {
|
|
558
|
+
algorithm: string;
|
|
559
|
+
canonicalization: string;
|
|
560
|
+
value: string;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export type ExecutionAttemptDisposition = 'Unspecified' | 'Current' | 'Abandoned' | 'Completed' | 'Failed' | 'Cancelled' | 'Terminated';
|
|
564
|
+
|
|
565
|
+
export const executionAttemptDispositions = {
|
|
566
|
+
unspecified: 'Unspecified',
|
|
567
|
+
current: 'Current',
|
|
568
|
+
abandoned: 'Abandoned',
|
|
569
|
+
completed: 'Completed',
|
|
570
|
+
failed: 'Failed',
|
|
571
|
+
cancelled: 'Cancelled',
|
|
572
|
+
terminated: 'Terminated',
|
|
573
|
+
} as const satisfies Record<string, ExecutionAttemptDisposition>;
|
|
574
|
+
|
|
575
|
+
export const executionAttemptDispositionLabels: Record<ExecutionAttemptDisposition, string> = {
|
|
576
|
+
Unspecified: 'Unspecified',
|
|
577
|
+
Current: 'Current',
|
|
578
|
+
Abandoned: 'Abandoned',
|
|
579
|
+
Completed: 'Completed',
|
|
580
|
+
Failed: 'Failed',
|
|
581
|
+
Cancelled: 'Cancelled',
|
|
582
|
+
Terminated: 'Terminated',
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
export type ProcessControlExecutionPhase = 'Unspecified' | 'Ready' | 'InActivation' | 'AtSafePoint' | 'Stopped';
|
|
586
|
+
|
|
587
|
+
export const processControlExecutionPhases = {
|
|
588
|
+
unspecified: 'Unspecified',
|
|
589
|
+
ready: 'Ready',
|
|
590
|
+
inActivation: 'InActivation',
|
|
591
|
+
atSafePoint: 'AtSafePoint',
|
|
592
|
+
stopped: 'Stopped',
|
|
593
|
+
} as const satisfies Record<string, ProcessControlExecutionPhase>;
|
|
594
|
+
|
|
595
|
+
export const processControlExecutionPhaseLabels: Record<ProcessControlExecutionPhase, string> = {
|
|
596
|
+
Unspecified: 'Unspecified',
|
|
597
|
+
Ready: 'Ready',
|
|
598
|
+
InActivation: 'InActivation',
|
|
599
|
+
AtSafePoint: 'AtSafePoint',
|
|
600
|
+
Stopped: 'Stopped',
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
export type ProcessSafePointId = string;
|
|
604
|
+
|
|
605
|
+
export type ExecutionStatusDisclosure = 'Unknown' | 'Disclosed' | 'Redacted';
|
|
606
|
+
|
|
607
|
+
export const executionStatusDisclosures = {
|
|
608
|
+
unknown: 'Unknown',
|
|
609
|
+
disclosed: 'Disclosed',
|
|
610
|
+
redacted: 'Redacted',
|
|
611
|
+
} as const satisfies Record<string, ExecutionStatusDisclosure>;
|
|
612
|
+
|
|
613
|
+
export const executionStatusDisclosureLabels: Record<ExecutionStatusDisclosure, string> = {
|
|
614
|
+
Unknown: 'Unknown',
|
|
615
|
+
Disclosed: 'Disclosed',
|
|
616
|
+
Redacted: 'Redacted',
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
export interface ExecutionTokenStatus {
|
|
620
|
+
tokenId: TokenId;
|
|
621
|
+
node: ExecutionNodeId;
|
|
622
|
+
disposition: ExecutionTokenDisposition;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export interface ExecutionWaitStatus {
|
|
626
|
+
tokenId: TokenId;
|
|
627
|
+
node: ExecutionNodeId;
|
|
628
|
+
waitingSinceUtc: string;
|
|
629
|
+
deadlineUtc?: string | null;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export interface ExecutionProgressStatus {
|
|
633
|
+
completed: string;
|
|
634
|
+
total?: string | null;
|
|
635
|
+
unit: string;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export interface ExecutionDemandStatus {
|
|
639
|
+
ready: string;
|
|
640
|
+
delayed: string;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export interface ExecutionCapacityStatus {
|
|
644
|
+
active: string;
|
|
645
|
+
limit: string;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export type ExecutionHealthStatus = 'Unknown' | 'Healthy' | 'Degraded' | 'Unhealthy';
|
|
649
|
+
|
|
650
|
+
export const executionHealthStatuses = {
|
|
651
|
+
unknown: 'Unknown',
|
|
652
|
+
healthy: 'Healthy',
|
|
653
|
+
degraded: 'Degraded',
|
|
654
|
+
unhealthy: 'Unhealthy',
|
|
655
|
+
} as const satisfies Record<string, ExecutionHealthStatus>;
|
|
656
|
+
|
|
657
|
+
export const executionHealthStatusLabels: Record<ExecutionHealthStatus, string> = {
|
|
658
|
+
Unknown: 'Unknown',
|
|
659
|
+
Healthy: 'Healthy',
|
|
660
|
+
Degraded: 'Degraded',
|
|
661
|
+
Unhealthy: 'Unhealthy',
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
export interface ExecutionRuntimeStatusExtension {
|
|
665
|
+
id: ExecutionExtensionId;
|
|
666
|
+
schemaVersion: ExecutionExtensionSchemaVersion;
|
|
667
|
+
value: ExecutionStatusValue;
|
|
668
|
+
provenance: ExecutionProvenance;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export type ExecutionTerminalOutcomeKind = 'None' | 'Completed' | 'Failed' | 'Cancelled' | 'Terminated';
|
|
672
|
+
|
|
673
|
+
export const executionTerminalOutcomeKinds = {
|
|
674
|
+
none: 'None',
|
|
675
|
+
completed: 'Completed',
|
|
676
|
+
failed: 'Failed',
|
|
677
|
+
cancelled: 'Cancelled',
|
|
678
|
+
terminated: 'Terminated',
|
|
679
|
+
} as const satisfies Record<string, ExecutionTerminalOutcomeKind>;
|
|
680
|
+
|
|
681
|
+
export const executionTerminalOutcomeKindLabels: Record<ExecutionTerminalOutcomeKind, string> = {
|
|
682
|
+
None: 'None',
|
|
683
|
+
Completed: 'Completed',
|
|
684
|
+
Failed: 'Failed',
|
|
685
|
+
Cancelled: 'Cancelled',
|
|
686
|
+
Terminated: 'Terminated',
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
export interface ExecutionStatusValue {
|
|
690
|
+
contract: ValueContract;
|
|
691
|
+
disclosure: ExecutionStatusDisclosure;
|
|
692
|
+
value?: PortableValue | null;
|
|
305
693
|
}
|
|
306
694
|
|
|
307
695
|
export interface ProcessContinuation {
|
|
@@ -565,6 +953,31 @@ export interface ProcessRecurrencePolicy {
|
|
|
565
953
|
maximumUnchangedProgressOccurrences: number;
|
|
566
954
|
}
|
|
567
955
|
|
|
956
|
+
export interface NormalizedExecutionTraceEvent {
|
|
957
|
+
sequence: number;
|
|
958
|
+
kind: string;
|
|
959
|
+
node: ExecutionNodeId;
|
|
960
|
+
token?: TokenId | null;
|
|
961
|
+
branchOrClause?: ExecutionNodeId | null;
|
|
962
|
+
emission?: EmissionId | null;
|
|
963
|
+
correlation?: InteractionCorrelationId | null;
|
|
964
|
+
causation?: EmissionId | null;
|
|
965
|
+
idempotencyKey?: InteractionIdempotencyKey | null;
|
|
966
|
+
emissionFingerprint?: InteractionEnvelopeContentFingerprint | null;
|
|
967
|
+
relatedDefinition?: ExecutionDefinitionReference | null;
|
|
968
|
+
relatedNode?: ExecutionNodeId | null;
|
|
969
|
+
semanticPath?: FieldPath | null;
|
|
970
|
+
changed?: boolean | null;
|
|
971
|
+
operationOccurrence?: string | null;
|
|
972
|
+
inputDisposition?: string | null;
|
|
973
|
+
inputReason?: string | null;
|
|
974
|
+
waitRegistrationId?: ProcessWaitRegistrationId | null;
|
|
975
|
+
processOccurrence?: ProcessTraceOccurrenceEvidence | null;
|
|
976
|
+
requestOutcome?: RequestTerminalOutcomeId | null;
|
|
977
|
+
detail?: string | null;
|
|
978
|
+
sourceReferences: string[];
|
|
979
|
+
}
|
|
980
|
+
|
|
568
981
|
export interface ExecutionProducerProvenance {
|
|
569
982
|
producer: string;
|
|
570
983
|
version?: string | null;
|
|
@@ -596,6 +1009,32 @@ export const portableValueStateLabels: Record<PortableValueState, string> = {
|
|
|
596
1009
|
Concrete: 'Concrete',
|
|
597
1010
|
};
|
|
598
1011
|
|
|
1012
|
+
export type TokenId = string;
|
|
1013
|
+
|
|
1014
|
+
export type ExecutionTokenDisposition = 'Unspecified' | 'Ready' | 'Active' | 'Waiting' | 'Completed' | 'Failed' | 'Cancelled' | 'Pending';
|
|
1015
|
+
|
|
1016
|
+
export const executionTokenDispositions = {
|
|
1017
|
+
unspecified: 'Unspecified',
|
|
1018
|
+
ready: 'Ready',
|
|
1019
|
+
active: 'Active',
|
|
1020
|
+
waiting: 'Waiting',
|
|
1021
|
+
completed: 'Completed',
|
|
1022
|
+
failed: 'Failed',
|
|
1023
|
+
cancelled: 'Cancelled',
|
|
1024
|
+
pending: 'Pending',
|
|
1025
|
+
} as const satisfies Record<string, ExecutionTokenDisposition>;
|
|
1026
|
+
|
|
1027
|
+
export const executionTokenDispositionLabels: Record<ExecutionTokenDisposition, string> = {
|
|
1028
|
+
Unspecified: 'Unspecified',
|
|
1029
|
+
Ready: 'Ready',
|
|
1030
|
+
Active: 'Active',
|
|
1031
|
+
Waiting: 'Waiting',
|
|
1032
|
+
Completed: 'Completed',
|
|
1033
|
+
Failed: 'Failed',
|
|
1034
|
+
Cancelled: 'Cancelled',
|
|
1035
|
+
Pending: 'Pending',
|
|
1036
|
+
};
|
|
1037
|
+
|
|
599
1038
|
export type RequestTerminalOutcomeId = string;
|
|
600
1039
|
|
|
601
1040
|
export type ProcessEdgeId = string;
|
|
@@ -695,10 +1134,74 @@ export interface ProcessRequestObligationBinding {
|
|
|
695
1134
|
binding: RequestObligationBindingId;
|
|
696
1135
|
}
|
|
697
1136
|
|
|
1137
|
+
export type EmissionId = string;
|
|
1138
|
+
|
|
1139
|
+
export type InteractionCorrelationId = string;
|
|
1140
|
+
|
|
1141
|
+
export type InteractionIdempotencyKey = string;
|
|
1142
|
+
|
|
1143
|
+
export type InteractionEnvelopeContentFingerprint = string;
|
|
1144
|
+
|
|
1145
|
+
export type ProcessWaitRegistrationId = string;
|
|
1146
|
+
|
|
1147
|
+
export interface ProcessTraceOccurrenceEvidence {
|
|
1148
|
+
disclosure: ExecutionTraceEvidenceDisclosure;
|
|
1149
|
+
kind: ProcessTraceOccurrenceKind;
|
|
1150
|
+
registrationId?: string | null;
|
|
1151
|
+
ownerToken?: TokenId | null;
|
|
1152
|
+
occurrence?: string | null;
|
|
1153
|
+
progressIdentity?: string | null;
|
|
1154
|
+
definition?: ExecutionDefinitionReference | null;
|
|
1155
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
1156
|
+
repeatCount?: number | null;
|
|
1157
|
+
unchangedProgressCount?: number | null;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
698
1160
|
export interface ExecutionSemanticPath {
|
|
699
1161
|
segments: string[];
|
|
700
1162
|
}
|
|
701
1163
|
|
|
1164
|
+
export type ExecutionTraceEvidenceDisclosure = 'Unknown' | 'Disclosed' | 'Redacted' | 'Unavailable' | 'Unsupported';
|
|
1165
|
+
|
|
1166
|
+
export const executionTraceEvidenceDisclosures = {
|
|
1167
|
+
unknown: 'Unknown',
|
|
1168
|
+
disclosed: 'Disclosed',
|
|
1169
|
+
redacted: 'Redacted',
|
|
1170
|
+
unavailable: 'Unavailable',
|
|
1171
|
+
unsupported: 'Unsupported',
|
|
1172
|
+
} as const satisfies Record<string, ExecutionTraceEvidenceDisclosure>;
|
|
1173
|
+
|
|
1174
|
+
export const executionTraceEvidenceDisclosureLabels: Record<ExecutionTraceEvidenceDisclosure, string> = {
|
|
1175
|
+
Unknown: 'Unknown',
|
|
1176
|
+
Disclosed: 'Disclosed',
|
|
1177
|
+
Redacted: 'Redacted',
|
|
1178
|
+
Unavailable: 'Unavailable',
|
|
1179
|
+
Unsupported: 'Unsupported',
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
export type ProcessTraceOccurrenceKind = 'Unspecified' | 'Child' | 'Partition' | 'Recurrence';
|
|
1183
|
+
|
|
1184
|
+
export const processTraceOccurrenceKinds = {
|
|
1185
|
+
unspecified: 'Unspecified',
|
|
1186
|
+
child: 'Child',
|
|
1187
|
+
partition: 'Partition',
|
|
1188
|
+
recurrence: 'Recurrence',
|
|
1189
|
+
} as const satisfies Record<string, ProcessTraceOccurrenceKind>;
|
|
1190
|
+
|
|
1191
|
+
export const processTraceOccurrenceKindLabels: Record<ProcessTraceOccurrenceKind, string> = {
|
|
1192
|
+
Unspecified: 'Unspecified',
|
|
1193
|
+
Child: 'Child',
|
|
1194
|
+
Partition: 'Partition',
|
|
1195
|
+
Recurrence: 'Recurrence',
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
export interface ExecutionControlResult {
|
|
1199
|
+
disposition: ProcessControlDecisionDisposition;
|
|
1200
|
+
status: ExecutionStatus;
|
|
1201
|
+
receipt?: ExecutionControlReceiptSummary | null;
|
|
1202
|
+
diagnosticCodes: string[];
|
|
1203
|
+
}
|
|
1204
|
+
|
|
702
1205
|
export interface ExecutionDefinitionDocument {
|
|
703
1206
|
kind: ExecutionDefinitionKind;
|
|
704
1207
|
metadata: ExecutionDefinitionMetadata;
|
|
@@ -706,6 +1209,32 @@ export interface ExecutionDefinitionDocument {
|
|
|
706
1209
|
extensions: ExecutionDefinitionExtension[];
|
|
707
1210
|
}
|
|
708
1211
|
|
|
1212
|
+
export interface ExecutionExplainArtifact {
|
|
1213
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
1214
|
+
definition: ExecutionExplainDefinitionReference;
|
|
1215
|
+
interpreter: ExecutionInterpreterProfileReference;
|
|
1216
|
+
evidence: ExecutionExplainEvidence[];
|
|
1217
|
+
trace?: ExecutionExplainTraceReference | null;
|
|
1218
|
+
runtimeStatus?: ExecutionStatus | null;
|
|
1219
|
+
diagnostics: DocumentValidationDiagnostic[];
|
|
1220
|
+
fingerprint: ExecutionExplainFingerprint;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export interface ExecutionStatus {
|
|
1224
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
1225
|
+
definition: ExecutionDefinitionReference;
|
|
1226
|
+
processInstanceId: ProcessInstanceId;
|
|
1227
|
+
controlRevision: ProcessControlRevision;
|
|
1228
|
+
controlMode: ProcessControlMode;
|
|
1229
|
+
attempts: ExecutionAttemptStatus[];
|
|
1230
|
+
currentAttemptId: ProcessAttemptId;
|
|
1231
|
+
activeActivation?: ExecutionActivationStatus | null;
|
|
1232
|
+
runtime: ExecutionRuntimeStatusDetails;
|
|
1233
|
+
terminalOutcome: ExecutionTerminalOutcome;
|
|
1234
|
+
createdAtUtc: string;
|
|
1235
|
+
updatedAtUtc: string;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
709
1238
|
export interface ProcessDefinition {
|
|
710
1239
|
input: ValueContract;
|
|
711
1240
|
result: ValueContract;
|
|
@@ -713,3 +1242,11 @@ export interface ProcessDefinition {
|
|
|
713
1242
|
nodes: ProcessNode[];
|
|
714
1243
|
recoveryPolicy: ProcessRecoveryPolicy;
|
|
715
1244
|
}
|
|
1245
|
+
|
|
1246
|
+
export interface ProcessExecutionTraceArtifact {
|
|
1247
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
1248
|
+
definition: ExecutionDefinitionReference;
|
|
1249
|
+
processInstanceId: ProcessInstanceId;
|
|
1250
|
+
missingTracePrefixCount: number;
|
|
1251
|
+
traces: NormalizedExecutionTrace[];
|
|
1252
|
+
}
|