@cohesivesystems/processes 0.1.0-alpha.129
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/LICENSE +55 -0
- package/dist/generated/processes.shapes.generated.d.ts +869 -0
- package/dist/generated/processes.shapes.generated.d.ts.map +1 -0
- package/dist/generated/processes.shapes.generated.js +421 -0
- package/dist/generated/processes.shapes.generated.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/wire-contract.typecheck.d.ts +12 -0
- package/dist/wire-contract.typecheck.d.ts.map +1 -0
- package/dist/wire-contract.typecheck.js +7 -0
- package/dist/wire-contract.typecheck.js.map +1 -0
- package/package.json +53 -0
- package/src/generated/processes.shapes.generated.ts +1253 -0
- package/src/index.ts +1 -0
- package/src/wire-contract.typecheck.ts +29 -0
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
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';
|
|
2
|
+
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 };
|
|
3
|
+
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';
|
|
4
|
+
export declare const processControlDecisionDispositions: {
|
|
5
|
+
readonly unspecified: "Unspecified";
|
|
6
|
+
readonly inspected: "Inspected";
|
|
7
|
+
readonly applied: "Applied";
|
|
8
|
+
readonly deferredToSafePoint: "DeferredToSafePoint";
|
|
9
|
+
readonly replayed: "Replayed";
|
|
10
|
+
readonly alreadySatisfied: "AlreadySatisfied";
|
|
11
|
+
readonly alreadyRequested: "AlreadyRequested";
|
|
12
|
+
readonly signalAccepted: "SignalAccepted";
|
|
13
|
+
readonly signalBuffered: "SignalBuffered";
|
|
14
|
+
readonly signalDuplicate: "SignalDuplicate";
|
|
15
|
+
readonly activationStarted: "ActivationStarted";
|
|
16
|
+
readonly safePointReached: "SafePointReached";
|
|
17
|
+
readonly affinityBound: "AffinityBound";
|
|
18
|
+
readonly unauthorized: "Unauthorized";
|
|
19
|
+
readonly targetMismatch: "TargetMismatch";
|
|
20
|
+
readonly staleAttempt: "StaleAttempt";
|
|
21
|
+
readonly staleRevision: "StaleRevision";
|
|
22
|
+
readonly identityConflict: "IdentityConflict";
|
|
23
|
+
readonly idempotencyConflict: "IdempotencyConflict";
|
|
24
|
+
readonly signalConflict: "SignalConflict";
|
|
25
|
+
readonly affinityConflict: "AffinityConflict";
|
|
26
|
+
readonly invalidState: "InvalidState";
|
|
27
|
+
readonly invalidCommand: "InvalidCommand";
|
|
28
|
+
readonly cancellationFinalized: "CancellationFinalized";
|
|
29
|
+
};
|
|
30
|
+
export declare const processControlDecisionDispositionLabels: Record<ProcessControlDecisionDisposition, string>;
|
|
31
|
+
export interface ExecutionControlReceiptSummary {
|
|
32
|
+
commandId: ProcessControlCommandId;
|
|
33
|
+
disposition: ProcessControlReceiptDisposition;
|
|
34
|
+
beforeRevision: ProcessControlRevision;
|
|
35
|
+
afterRevision: ProcessControlRevision;
|
|
36
|
+
recordedAtUtc: string;
|
|
37
|
+
}
|
|
38
|
+
export type ExecutionDefinitionKind = string;
|
|
39
|
+
export interface ExecutionDefinitionMetadata {
|
|
40
|
+
definitionId: ExecutionDefinitionId;
|
|
41
|
+
revisionId: ExecutionRevisionId;
|
|
42
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
43
|
+
fingerprint: ExecutionDefinitionFingerprint;
|
|
44
|
+
provenance: ExecutionProvenance;
|
|
45
|
+
displayName?: string | null;
|
|
46
|
+
description?: string | null;
|
|
47
|
+
sourceMap: ExecutionSourceMap;
|
|
48
|
+
diagnostics: DocumentValidationDiagnostic[];
|
|
49
|
+
}
|
|
50
|
+
export interface ExecutionDefinitionExtension {
|
|
51
|
+
id: ExecutionExtensionId;
|
|
52
|
+
schemaVersion: ExecutionExtensionSchemaVersion;
|
|
53
|
+
value: PortableValue;
|
|
54
|
+
}
|
|
55
|
+
export type ExecutionIrSchemaVersion = string;
|
|
56
|
+
export interface ExecutionExplainDefinitionReference {
|
|
57
|
+
kind: ExecutionDefinitionKind;
|
|
58
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
59
|
+
definition: ExecutionDefinitionReference;
|
|
60
|
+
provenance: ExecutionProvenance;
|
|
61
|
+
sourceMap: ExecutionSourceMap;
|
|
62
|
+
}
|
|
63
|
+
export interface ExecutionInterpreterProfileReference {
|
|
64
|
+
id: string;
|
|
65
|
+
version: string;
|
|
66
|
+
schemaCompatibility: ExecutionIrSchemaCompatibilityDeclaration;
|
|
67
|
+
definitionKinds: ExecutionDefinitionKind[];
|
|
68
|
+
provenance: ExecutionProvenance;
|
|
69
|
+
}
|
|
70
|
+
export interface ExecutionExplainEvidence {
|
|
71
|
+
stage: string;
|
|
72
|
+
kind: string;
|
|
73
|
+
subject: string;
|
|
74
|
+
authority: ExecutionExplainEvidenceAuthority;
|
|
75
|
+
status: string;
|
|
76
|
+
realization?: CapabilityRealizationKind | null;
|
|
77
|
+
relatedSubjects: string[];
|
|
78
|
+
sourceReferences: string[];
|
|
79
|
+
}
|
|
80
|
+
export interface ExecutionExplainTraceReference {
|
|
81
|
+
definition: ExecutionDefinitionReference;
|
|
82
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
83
|
+
activation: ActivationId;
|
|
84
|
+
fingerprint: ExecutionTraceFingerprint;
|
|
85
|
+
}
|
|
86
|
+
export interface ExecutionExplainFingerprint {
|
|
87
|
+
algorithm: string;
|
|
88
|
+
canonicalization: string;
|
|
89
|
+
value: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ExecutionDefinitionReference {
|
|
92
|
+
definitionId: ExecutionDefinitionId;
|
|
93
|
+
revisionId: ExecutionRevisionId;
|
|
94
|
+
fingerprint: ExecutionDefinitionFingerprint;
|
|
95
|
+
}
|
|
96
|
+
export type ProcessInstanceId = string;
|
|
97
|
+
export type ProcessControlRevision = string;
|
|
98
|
+
export type ProcessControlMode = 'Unspecified' | 'Running' | 'PauseRequested' | 'Paused' | 'RestartRequested' | 'CancellationRequested' | 'Cancelled' | 'Terminated' | 'Cancelling' | 'CancellationFailed';
|
|
99
|
+
export declare const processControlModes: {
|
|
100
|
+
readonly unspecified: "Unspecified";
|
|
101
|
+
readonly running: "Running";
|
|
102
|
+
readonly pauseRequested: "PauseRequested";
|
|
103
|
+
readonly paused: "Paused";
|
|
104
|
+
readonly restartRequested: "RestartRequested";
|
|
105
|
+
readonly cancellationRequested: "CancellationRequested";
|
|
106
|
+
readonly cancelled: "Cancelled";
|
|
107
|
+
readonly terminated: "Terminated";
|
|
108
|
+
readonly cancelling: "Cancelling";
|
|
109
|
+
readonly cancellationFailed: "CancellationFailed";
|
|
110
|
+
};
|
|
111
|
+
export declare const processControlModeLabels: Record<ProcessControlMode, string>;
|
|
112
|
+
export interface ExecutionAttemptStatus {
|
|
113
|
+
attemptId: ProcessAttemptId;
|
|
114
|
+
startedAtUtc: string;
|
|
115
|
+
endedAtUtc?: string | null;
|
|
116
|
+
disposition: ExecutionAttemptDisposition;
|
|
117
|
+
phase: ProcessControlExecutionPhase;
|
|
118
|
+
completedActivationCount: string;
|
|
119
|
+
lastSafePointId?: ProcessSafePointId | null;
|
|
120
|
+
lastSafePointNode?: ExecutionNodeId | null;
|
|
121
|
+
}
|
|
122
|
+
export type ProcessAttemptId = string;
|
|
123
|
+
export interface ExecutionActivationStatus {
|
|
124
|
+
activationId: ActivationId;
|
|
125
|
+
attemptId: ProcessAttemptId;
|
|
126
|
+
startedUnderRevision: ProcessControlRevision;
|
|
127
|
+
startedAtUtc: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ExecutionRuntimeStatusDetails {
|
|
130
|
+
tokensDisclosure: ExecutionStatusDisclosure;
|
|
131
|
+
tokens: ExecutionTokenStatus[];
|
|
132
|
+
waitsDisclosure: ExecutionStatusDisclosure;
|
|
133
|
+
waits: ExecutionWaitStatus[];
|
|
134
|
+
progressDisclosure: ExecutionStatusDisclosure;
|
|
135
|
+
progress?: ExecutionProgressStatus | null;
|
|
136
|
+
demandDisclosure: ExecutionStatusDisclosure;
|
|
137
|
+
demand?: ExecutionDemandStatus | null;
|
|
138
|
+
capacityDisclosure: ExecutionStatusDisclosure;
|
|
139
|
+
capacity?: ExecutionCapacityStatus | null;
|
|
140
|
+
health: ExecutionHealthStatus;
|
|
141
|
+
extensions: ExecutionRuntimeStatusExtension[];
|
|
142
|
+
}
|
|
143
|
+
export interface ExecutionTerminalOutcome {
|
|
144
|
+
kind: ExecutionTerminalOutcomeKind;
|
|
145
|
+
occurredAtUtc?: string | null;
|
|
146
|
+
detail?: ExecutionStatusValue | null;
|
|
147
|
+
}
|
|
148
|
+
export type ExecutionNodeId = string;
|
|
149
|
+
export type ProcessNode = {
|
|
150
|
+
readonly $node: 'invokeTransition';
|
|
151
|
+
} & InvokeTransitionProcessNode | {
|
|
152
|
+
readonly $node: 'evaluateRelation';
|
|
153
|
+
} & EvaluateRelationProcessNode | {
|
|
154
|
+
readonly $node: 'request';
|
|
155
|
+
} & RequestProcessNode | {
|
|
156
|
+
readonly $node: 'emitEvent';
|
|
157
|
+
} & EmitEventProcessNode | {
|
|
158
|
+
readonly $node: 'sendSignal';
|
|
159
|
+
} & SendSignalProcessNode | {
|
|
160
|
+
readonly $node: 'choice';
|
|
161
|
+
} & ChoiceProcessNode | {
|
|
162
|
+
readonly $node: 'match';
|
|
163
|
+
} & MatchProcessNode | {
|
|
164
|
+
readonly $node: 'fork';
|
|
165
|
+
} & ForkProcessNode | {
|
|
166
|
+
readonly $node: 'join';
|
|
167
|
+
} & JoinProcessNode | {
|
|
168
|
+
readonly $node: 'awaitMatch';
|
|
169
|
+
} & AwaitMatchProcessNode | {
|
|
170
|
+
readonly $node: 'timer';
|
|
171
|
+
} & TimerProcessNode | {
|
|
172
|
+
readonly $node: 'reply';
|
|
173
|
+
} & ReplyProcessNode | {
|
|
174
|
+
readonly $node: 'durableCut';
|
|
175
|
+
} & DurableCutProcessNode | {
|
|
176
|
+
readonly $node: 'invokeProcess';
|
|
177
|
+
} & InvokeProcessProcessNode | {
|
|
178
|
+
readonly $node: 'forEachPartition';
|
|
179
|
+
} & ForEachPartitionProcessNode | {
|
|
180
|
+
readonly $node: 'repeatAcrossActivation';
|
|
181
|
+
} & RepeatAcrossActivationProcessNode | {
|
|
182
|
+
readonly $node: 'cancellationFinalizer';
|
|
183
|
+
} & CancellationFinalizerProcessNode | {
|
|
184
|
+
readonly $node: 'return';
|
|
185
|
+
} & ReturnProcessNode | {
|
|
186
|
+
readonly $node: 'fail';
|
|
187
|
+
} & FailProcessNode;
|
|
188
|
+
export declare const canonicalProcessNodeKinds: readonly ["awaitMatch", "cancellationFinalizer", "choice", "durableCut", "emitEvent", "evaluateRelation", "fail", "forEachPartition", "fork", "invokeProcess", "invokeTransition", "join", "match", "repeatAcrossActivation", "reply", "request", "return", "sendSignal", "timer"];
|
|
189
|
+
export interface InvokeTransitionProcessNode {
|
|
190
|
+
transition: ExecutionDefinitionReference;
|
|
191
|
+
subject: Expr;
|
|
192
|
+
input: Expr;
|
|
193
|
+
continuation: ProcessContinuation;
|
|
194
|
+
receipt?: ProcessOutputBinding | null;
|
|
195
|
+
id: ExecutionNodeId;
|
|
196
|
+
}
|
|
197
|
+
export interface EvaluateRelationProcessNode {
|
|
198
|
+
relation: ExecutionDefinitionReference;
|
|
199
|
+
input: Expr;
|
|
200
|
+
continuation: ProcessContinuation;
|
|
201
|
+
id: ExecutionNodeId;
|
|
202
|
+
}
|
|
203
|
+
export interface RequestProcessNode {
|
|
204
|
+
id: ExecutionNodeId;
|
|
205
|
+
contract: RequestContractReference;
|
|
206
|
+
payload: Expr;
|
|
207
|
+
outcomes: ProcessRequestOutcomeBranch[];
|
|
208
|
+
}
|
|
209
|
+
export interface EmitEventProcessNode {
|
|
210
|
+
contract: DomainEventContractReference;
|
|
211
|
+
payload: Expr;
|
|
212
|
+
next: ProcessEdge;
|
|
213
|
+
id: ExecutionNodeId;
|
|
214
|
+
}
|
|
215
|
+
export interface SendSignalProcessNode {
|
|
216
|
+
id: ExecutionNodeId;
|
|
217
|
+
contract: SignalContractReference;
|
|
218
|
+
target: Expr;
|
|
219
|
+
payload: Expr;
|
|
220
|
+
next: ProcessEdge;
|
|
221
|
+
}
|
|
222
|
+
export interface ChoiceProcessNode {
|
|
223
|
+
selection: CaseSelection;
|
|
224
|
+
completeness: BranchCompleteness;
|
|
225
|
+
cases: ProcessChoiceCase[];
|
|
226
|
+
fallback?: ProcessFallback | null;
|
|
227
|
+
id: ExecutionNodeId;
|
|
228
|
+
}
|
|
229
|
+
export interface MatchProcessNode {
|
|
230
|
+
selection: CaseSelection;
|
|
231
|
+
completeness: BranchCompleteness;
|
|
232
|
+
value: Expr;
|
|
233
|
+
contract: ValueContract;
|
|
234
|
+
cases: ProcessMatchCase[];
|
|
235
|
+
fallback?: ProcessFallback | null;
|
|
236
|
+
id: ExecutionNodeId;
|
|
237
|
+
}
|
|
238
|
+
export interface ForkProcessNode {
|
|
239
|
+
branches: ProcessForkBranch[];
|
|
240
|
+
join: ExecutionNodeId;
|
|
241
|
+
limits: ProcessWorkLimits;
|
|
242
|
+
capacityDomains: ProcessCapacityDomainLimit[];
|
|
243
|
+
id: ExecutionNodeId;
|
|
244
|
+
}
|
|
245
|
+
export interface JoinProcessNode {
|
|
246
|
+
fork: ExecutionNodeId;
|
|
247
|
+
policy: ProcessJoinPolicy;
|
|
248
|
+
next: ProcessEdge;
|
|
249
|
+
result?: ProcessJoinResultProjection | null;
|
|
250
|
+
id: ExecutionNodeId;
|
|
251
|
+
}
|
|
252
|
+
export interface AwaitMatchProcessNode {
|
|
253
|
+
arbitration: ProcessAwaitArbitration;
|
|
254
|
+
clauses: ProcessAwaitClause[];
|
|
255
|
+
lateInput: ProcessAwaitInputDisposition;
|
|
256
|
+
staleInput: ProcessAwaitInputDisposition;
|
|
257
|
+
duplicateInput: ProcessAwaitInputDisposition;
|
|
258
|
+
missingTarget: ProcessAwaitMissingTargetDisposition;
|
|
259
|
+
retentionHorizon: TimeSpan;
|
|
260
|
+
id: ExecutionNodeId;
|
|
261
|
+
}
|
|
262
|
+
export interface TimerProcessNode {
|
|
263
|
+
id: ExecutionNodeId;
|
|
264
|
+
dueAt: Expr;
|
|
265
|
+
next: ProcessEdge;
|
|
266
|
+
}
|
|
267
|
+
export interface ReplyProcessNode {
|
|
268
|
+
id: ExecutionNodeId;
|
|
269
|
+
contract: ReplyContractReference;
|
|
270
|
+
request: RequestObligationBindingId;
|
|
271
|
+
payload: Expr;
|
|
272
|
+
next: ProcessEdge;
|
|
273
|
+
}
|
|
274
|
+
export interface DurableCutProcessNode {
|
|
275
|
+
resume: ProcessEdge;
|
|
276
|
+
id: ExecutionNodeId;
|
|
277
|
+
}
|
|
278
|
+
export interface InvokeProcessProcessNode {
|
|
279
|
+
process: ExecutionDefinitionReference;
|
|
280
|
+
contract: RequestContractReference;
|
|
281
|
+
outcomeMapping: ProcessChildOutcomeMapping;
|
|
282
|
+
input: Expr;
|
|
283
|
+
purpose: ProcessChildPurpose;
|
|
284
|
+
cancellation: ProcessChildCancellationPolicy;
|
|
285
|
+
outcomes: ProcessRequestOutcomeBranch[];
|
|
286
|
+
id: ExecutionNodeId;
|
|
287
|
+
}
|
|
288
|
+
export interface ForEachPartitionProcessNode {
|
|
289
|
+
partitions: Expr;
|
|
290
|
+
partition: ProcessOutputBinding;
|
|
291
|
+
progressIdentity: Expr;
|
|
292
|
+
process: ExecutionDefinitionReference;
|
|
293
|
+
contract: RequestContractReference;
|
|
294
|
+
outcomeMapping: ProcessChildOutcomeMapping;
|
|
295
|
+
childInput: Expr;
|
|
296
|
+
limits: ProcessWorkLimits;
|
|
297
|
+
failure: ProcessPartitionFailurePolicy;
|
|
298
|
+
capacityIdentity?: Expr | null;
|
|
299
|
+
capacityDomains: ProcessCapacityDomainLimit[];
|
|
300
|
+
cancellation: ProcessChildCancellationPolicy;
|
|
301
|
+
completed: ProcessEdge;
|
|
302
|
+
failed: ProcessEdge;
|
|
303
|
+
id: ExecutionNodeId;
|
|
304
|
+
}
|
|
305
|
+
export interface RepeatAcrossActivationProcessNode {
|
|
306
|
+
id: ExecutionNodeId;
|
|
307
|
+
continueWhen: Expr;
|
|
308
|
+
progress: Expr;
|
|
309
|
+
progressContract: ValueContract;
|
|
310
|
+
policy: ProcessRecurrencePolicy;
|
|
311
|
+
repeat: ProcessEdge;
|
|
312
|
+
completed: ProcessEdge;
|
|
313
|
+
exhausted: ProcessEdge;
|
|
314
|
+
stalled: ProcessEdge;
|
|
315
|
+
initialState?: Expr | null;
|
|
316
|
+
nextState?: Expr | null;
|
|
317
|
+
stateContract?: ValueContract | null;
|
|
318
|
+
stateOutput?: ProcessOutputBinding | null;
|
|
319
|
+
}
|
|
320
|
+
export interface CancellationFinalizerProcessNode {
|
|
321
|
+
process: ExecutionDefinitionReference;
|
|
322
|
+
contract: RequestContractReference;
|
|
323
|
+
outcomeMapping: ProcessChildOutcomeMapping;
|
|
324
|
+
id: ExecutionNodeId;
|
|
325
|
+
}
|
|
326
|
+
export interface ReturnProcessNode {
|
|
327
|
+
id: ExecutionNodeId;
|
|
328
|
+
result: Expr;
|
|
329
|
+
}
|
|
330
|
+
export interface FailProcessNode {
|
|
331
|
+
result: Expr;
|
|
332
|
+
id: ExecutionNodeId;
|
|
333
|
+
}
|
|
334
|
+
export type ProcessRecoveryPolicy = 'Unspecified' | 'ContinueAttempt' | 'RestartAttempt';
|
|
335
|
+
export declare const processRecoveryPolicies: {
|
|
336
|
+
readonly unspecified: "Unspecified";
|
|
337
|
+
readonly continueAttempt: "ContinueAttempt";
|
|
338
|
+
readonly restartAttempt: "RestartAttempt";
|
|
339
|
+
};
|
|
340
|
+
export declare const processRecoveryPolicyLabels: Record<ProcessRecoveryPolicy, string>;
|
|
341
|
+
export interface NormalizedExecutionTrace {
|
|
342
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
343
|
+
kind: ExecutionDefinitionKind;
|
|
344
|
+
definition: ExecutionDefinitionReference;
|
|
345
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
346
|
+
activation: ActivationId;
|
|
347
|
+
disposition: string;
|
|
348
|
+
safePointNode?: ExecutionNodeId | null;
|
|
349
|
+
durableCommitSequence?: string | null;
|
|
350
|
+
events: NormalizedExecutionTraceEvent[];
|
|
351
|
+
}
|
|
352
|
+
export type ProcessControlCommandId = string;
|
|
353
|
+
export type ProcessControlReceiptDisposition = 'Unspecified' | 'Applied' | 'DeferredToSafePoint' | 'AlreadySatisfied' | 'AlreadyRequested' | 'SignalAccepted' | 'SignalBuffered' | 'SignalDuplicate';
|
|
354
|
+
export declare const processControlReceiptDispositions: {
|
|
355
|
+
readonly unspecified: "Unspecified";
|
|
356
|
+
readonly applied: "Applied";
|
|
357
|
+
readonly deferredToSafePoint: "DeferredToSafePoint";
|
|
358
|
+
readonly alreadySatisfied: "AlreadySatisfied";
|
|
359
|
+
readonly alreadyRequested: "AlreadyRequested";
|
|
360
|
+
readonly signalAccepted: "SignalAccepted";
|
|
361
|
+
readonly signalBuffered: "SignalBuffered";
|
|
362
|
+
readonly signalDuplicate: "SignalDuplicate";
|
|
363
|
+
};
|
|
364
|
+
export declare const processControlReceiptDispositionLabels: Record<ProcessControlReceiptDisposition, string>;
|
|
365
|
+
export type ExecutionDefinitionId = string;
|
|
366
|
+
export type ExecutionRevisionId = string;
|
|
367
|
+
export interface ExecutionDefinitionFingerprint {
|
|
368
|
+
algorithm: string;
|
|
369
|
+
canonicalization: string;
|
|
370
|
+
value: string;
|
|
371
|
+
}
|
|
372
|
+
export interface ExecutionProvenance {
|
|
373
|
+
producer: ExecutionProducerProvenance;
|
|
374
|
+
source: ExecutionSourceProvenance;
|
|
375
|
+
origin: DocumentOrigin;
|
|
376
|
+
}
|
|
377
|
+
export interface ExecutionSourceMap {
|
|
378
|
+
entries: ExecutionSourceProvenance[];
|
|
379
|
+
}
|
|
380
|
+
export type ExecutionExtensionId = string;
|
|
381
|
+
export type ExecutionExtensionSchemaVersion = string;
|
|
382
|
+
export interface PortableValue {
|
|
383
|
+
contract: ValueContract;
|
|
384
|
+
state: PortableValueState;
|
|
385
|
+
value?: unknown | null;
|
|
386
|
+
failure?: DocumentValidationDiagnostic | null;
|
|
387
|
+
}
|
|
388
|
+
export interface ExecutionIrSchemaCompatibilityDeclaration {
|
|
389
|
+
supportedSchemaVersions: ExecutionIrSchemaVersion[];
|
|
390
|
+
}
|
|
391
|
+
export type ExecutionExplainEvidenceAuthority = 'Declared' | 'Derived' | 'ConventionDerived' | 'AdapterSupplied' | 'Interpreted' | 'Measured' | 'Recommended' | 'Applied';
|
|
392
|
+
export declare const executionExplainEvidenceAuthorities: {
|
|
393
|
+
readonly declared: "Declared";
|
|
394
|
+
readonly derived: "Derived";
|
|
395
|
+
readonly conventionDerived: "ConventionDerived";
|
|
396
|
+
readonly adapterSupplied: "AdapterSupplied";
|
|
397
|
+
readonly interpreted: "Interpreted";
|
|
398
|
+
readonly measured: "Measured";
|
|
399
|
+
readonly recommended: "Recommended";
|
|
400
|
+
readonly applied: "Applied";
|
|
401
|
+
};
|
|
402
|
+
export declare const executionExplainEvidenceAuthorityLabels: Record<ExecutionExplainEvidenceAuthority, string>;
|
|
403
|
+
export interface ProcessContinuationIdentity {
|
|
404
|
+
processInstanceId: ProcessInstanceId;
|
|
405
|
+
processAttemptId: ProcessAttemptId;
|
|
406
|
+
}
|
|
407
|
+
export type ActivationId = string;
|
|
408
|
+
export interface ExecutionTraceFingerprint {
|
|
409
|
+
algorithm: string;
|
|
410
|
+
canonicalization: string;
|
|
411
|
+
value: string;
|
|
412
|
+
}
|
|
413
|
+
export type ExecutionAttemptDisposition = 'Unspecified' | 'Current' | 'Abandoned' | 'Completed' | 'Failed' | 'Cancelled' | 'Terminated';
|
|
414
|
+
export declare const executionAttemptDispositions: {
|
|
415
|
+
readonly unspecified: "Unspecified";
|
|
416
|
+
readonly current: "Current";
|
|
417
|
+
readonly abandoned: "Abandoned";
|
|
418
|
+
readonly completed: "Completed";
|
|
419
|
+
readonly failed: "Failed";
|
|
420
|
+
readonly cancelled: "Cancelled";
|
|
421
|
+
readonly terminated: "Terminated";
|
|
422
|
+
};
|
|
423
|
+
export declare const executionAttemptDispositionLabels: Record<ExecutionAttemptDisposition, string>;
|
|
424
|
+
export type ProcessControlExecutionPhase = 'Unspecified' | 'Ready' | 'InActivation' | 'AtSafePoint' | 'Stopped';
|
|
425
|
+
export declare const processControlExecutionPhases: {
|
|
426
|
+
readonly unspecified: "Unspecified";
|
|
427
|
+
readonly ready: "Ready";
|
|
428
|
+
readonly inActivation: "InActivation";
|
|
429
|
+
readonly atSafePoint: "AtSafePoint";
|
|
430
|
+
readonly stopped: "Stopped";
|
|
431
|
+
};
|
|
432
|
+
export declare const processControlExecutionPhaseLabels: Record<ProcessControlExecutionPhase, string>;
|
|
433
|
+
export type ProcessSafePointId = string;
|
|
434
|
+
export type ExecutionStatusDisclosure = 'Unknown' | 'Disclosed' | 'Redacted';
|
|
435
|
+
export declare const executionStatusDisclosures: {
|
|
436
|
+
readonly unknown: "Unknown";
|
|
437
|
+
readonly disclosed: "Disclosed";
|
|
438
|
+
readonly redacted: "Redacted";
|
|
439
|
+
};
|
|
440
|
+
export declare const executionStatusDisclosureLabels: Record<ExecutionStatusDisclosure, string>;
|
|
441
|
+
export interface ExecutionTokenStatus {
|
|
442
|
+
tokenId: TokenId;
|
|
443
|
+
node: ExecutionNodeId;
|
|
444
|
+
disposition: ExecutionTokenDisposition;
|
|
445
|
+
}
|
|
446
|
+
export interface ExecutionWaitStatus {
|
|
447
|
+
tokenId: TokenId;
|
|
448
|
+
node: ExecutionNodeId;
|
|
449
|
+
waitingSinceUtc: string;
|
|
450
|
+
deadlineUtc?: string | null;
|
|
451
|
+
}
|
|
452
|
+
export interface ExecutionProgressStatus {
|
|
453
|
+
completed: string;
|
|
454
|
+
total?: string | null;
|
|
455
|
+
unit: string;
|
|
456
|
+
}
|
|
457
|
+
export interface ExecutionDemandStatus {
|
|
458
|
+
ready: string;
|
|
459
|
+
delayed: string;
|
|
460
|
+
}
|
|
461
|
+
export interface ExecutionCapacityStatus {
|
|
462
|
+
active: string;
|
|
463
|
+
limit: string;
|
|
464
|
+
}
|
|
465
|
+
export type ExecutionHealthStatus = 'Unknown' | 'Healthy' | 'Degraded' | 'Unhealthy';
|
|
466
|
+
export declare const executionHealthStatuses: {
|
|
467
|
+
readonly unknown: "Unknown";
|
|
468
|
+
readonly healthy: "Healthy";
|
|
469
|
+
readonly degraded: "Degraded";
|
|
470
|
+
readonly unhealthy: "Unhealthy";
|
|
471
|
+
};
|
|
472
|
+
export declare const executionHealthStatusLabels: Record<ExecutionHealthStatus, string>;
|
|
473
|
+
export interface ExecutionRuntimeStatusExtension {
|
|
474
|
+
id: ExecutionExtensionId;
|
|
475
|
+
schemaVersion: ExecutionExtensionSchemaVersion;
|
|
476
|
+
value: ExecutionStatusValue;
|
|
477
|
+
provenance: ExecutionProvenance;
|
|
478
|
+
}
|
|
479
|
+
export type ExecutionTerminalOutcomeKind = 'None' | 'Completed' | 'Failed' | 'Cancelled' | 'Terminated';
|
|
480
|
+
export declare const executionTerminalOutcomeKinds: {
|
|
481
|
+
readonly none: "None";
|
|
482
|
+
readonly completed: "Completed";
|
|
483
|
+
readonly failed: "Failed";
|
|
484
|
+
readonly cancelled: "Cancelled";
|
|
485
|
+
readonly terminated: "Terminated";
|
|
486
|
+
};
|
|
487
|
+
export declare const executionTerminalOutcomeKindLabels: Record<ExecutionTerminalOutcomeKind, string>;
|
|
488
|
+
export interface ExecutionStatusValue {
|
|
489
|
+
contract: ValueContract;
|
|
490
|
+
disclosure: ExecutionStatusDisclosure;
|
|
491
|
+
value?: PortableValue | null;
|
|
492
|
+
}
|
|
493
|
+
export interface ProcessContinuation {
|
|
494
|
+
edge: ProcessEdge;
|
|
495
|
+
output?: ProcessOutputBinding | null;
|
|
496
|
+
}
|
|
497
|
+
export interface ProcessOutputBinding {
|
|
498
|
+
binding: ValueBindingId;
|
|
499
|
+
contract: ValueContract;
|
|
500
|
+
}
|
|
501
|
+
export interface RequestContractReference {
|
|
502
|
+
definition: ExecutionDefinitionReference;
|
|
503
|
+
}
|
|
504
|
+
export interface ProcessRequestOutcomeBranch {
|
|
505
|
+
id: ExecutionNodeId;
|
|
506
|
+
outcome: RequestTerminalOutcomeId;
|
|
507
|
+
continuation: ProcessContinuation;
|
|
508
|
+
}
|
|
509
|
+
export interface DomainEventContractReference {
|
|
510
|
+
definition: ExecutionDefinitionReference;
|
|
511
|
+
}
|
|
512
|
+
export interface ProcessEdge {
|
|
513
|
+
id: ProcessEdgeId;
|
|
514
|
+
target: ExecutionNodeId;
|
|
515
|
+
}
|
|
516
|
+
export interface SignalContractReference {
|
|
517
|
+
definition: ExecutionDefinitionReference;
|
|
518
|
+
}
|
|
519
|
+
export type CaseSelection = 'Unspecified' | 'OrderedFirstMatch';
|
|
520
|
+
export declare const caseSelections: {
|
|
521
|
+
readonly unspecified: "Unspecified";
|
|
522
|
+
readonly orderedFirstMatch: "OrderedFirstMatch";
|
|
523
|
+
};
|
|
524
|
+
export declare const caseSelectionLabels: Record<CaseSelection, string>;
|
|
525
|
+
export type BranchCompleteness = 'Unspecified' | 'Exhaustive' | 'Fallback';
|
|
526
|
+
export declare const branchCompletenesses: {
|
|
527
|
+
readonly unspecified: "Unspecified";
|
|
528
|
+
readonly exhaustive: "Exhaustive";
|
|
529
|
+
readonly fallback: "Fallback";
|
|
530
|
+
};
|
|
531
|
+
export declare const branchCompletenessLabels: Record<BranchCompleteness, string>;
|
|
532
|
+
export interface ProcessChoiceCase {
|
|
533
|
+
id: ExecutionNodeId;
|
|
534
|
+
predicate: Expr;
|
|
535
|
+
next: ProcessEdge;
|
|
536
|
+
}
|
|
537
|
+
export interface ProcessFallback {
|
|
538
|
+
id: ExecutionNodeId;
|
|
539
|
+
next: ProcessEdge;
|
|
540
|
+
}
|
|
541
|
+
export interface ProcessMatchCase {
|
|
542
|
+
id: ExecutionNodeId;
|
|
543
|
+
pattern: PortableValue;
|
|
544
|
+
next: ProcessEdge;
|
|
545
|
+
}
|
|
546
|
+
export interface ProcessForkBranch {
|
|
547
|
+
id: ExecutionNodeId;
|
|
548
|
+
start: ProcessEdge;
|
|
549
|
+
capacityDomain?: string | null;
|
|
550
|
+
}
|
|
551
|
+
export interface ProcessWorkLimits {
|
|
552
|
+
maximumItems: number;
|
|
553
|
+
maximumStartsPerActivation: number;
|
|
554
|
+
maximumParallelism: number;
|
|
555
|
+
minimumParallelism: number;
|
|
556
|
+
}
|
|
557
|
+
export interface ProcessCapacityDomainLimit {
|
|
558
|
+
identity: string;
|
|
559
|
+
maximumParallelism: number;
|
|
560
|
+
}
|
|
561
|
+
export interface ProcessJoinPolicy {
|
|
562
|
+
mode: ProcessJoinMode;
|
|
563
|
+
requiredCount: number;
|
|
564
|
+
failure: ProcessJoinFailurePolicy;
|
|
565
|
+
cancellation: ProcessJoinCancellationPolicy;
|
|
566
|
+
completionOrder: ProcessJoinCompletionOrder;
|
|
567
|
+
tieBreak: ProcessJoinTieBreak;
|
|
568
|
+
}
|
|
569
|
+
export interface ProcessJoinResultProjection {
|
|
570
|
+
output: ProcessOutputBinding;
|
|
571
|
+
resultContract: ValueContract;
|
|
572
|
+
branches: ProcessJoinBranchResult[];
|
|
573
|
+
}
|
|
574
|
+
export type ProcessAwaitArbitration = 'Unspecified' | 'ExclusivePriorityThenClauseId';
|
|
575
|
+
export declare const processAwaitArbitrations: {
|
|
576
|
+
readonly unspecified: "Unspecified";
|
|
577
|
+
readonly exclusivePriorityThenClauseId: "ExclusivePriorityThenClauseId";
|
|
578
|
+
};
|
|
579
|
+
export declare const processAwaitArbitrationLabels: Record<ProcessAwaitArbitration, string>;
|
|
580
|
+
export type ProcessAwaitClause = {
|
|
581
|
+
readonly $clause: 'interaction';
|
|
582
|
+
} & ProcessAwaitInteractionClause | {
|
|
583
|
+
readonly $clause: 'timer';
|
|
584
|
+
} & ProcessAwaitTimerClause;
|
|
585
|
+
export declare const canonicalProcessAwaitClauseKinds: readonly ["interaction", "timer"];
|
|
586
|
+
export interface ProcessAwaitInteractionClause {
|
|
587
|
+
id: ExecutionNodeId;
|
|
588
|
+
priority: number;
|
|
589
|
+
continuation: ProcessContinuation;
|
|
590
|
+
contract: InteractionContractReference;
|
|
591
|
+
input: ProcessOutputBinding;
|
|
592
|
+
requestObligation?: ProcessRequestObligationBinding | null;
|
|
593
|
+
guard?: Expr | null;
|
|
594
|
+
}
|
|
595
|
+
export interface ProcessAwaitTimerClause {
|
|
596
|
+
id: ExecutionNodeId;
|
|
597
|
+
priority: number;
|
|
598
|
+
continuation: ProcessContinuation;
|
|
599
|
+
dueAt: Expr;
|
|
600
|
+
}
|
|
601
|
+
export type ProcessAwaitInputDisposition = 'Unspecified' | 'Reject' | 'Observe' | 'ReusePriorDisposition';
|
|
602
|
+
export declare const processAwaitInputDispositions: {
|
|
603
|
+
readonly unspecified: "Unspecified";
|
|
604
|
+
readonly reject: "Reject";
|
|
605
|
+
readonly observe: "Observe";
|
|
606
|
+
readonly reusePriorDisposition: "ReusePriorDisposition";
|
|
607
|
+
};
|
|
608
|
+
export declare const processAwaitInputDispositionLabels: Record<ProcessAwaitInputDisposition, string>;
|
|
609
|
+
export type ProcessAwaitMissingTargetDisposition = 'Unspecified' | 'Reject' | 'Observe' | 'DeadLetter';
|
|
610
|
+
export declare const processAwaitMissingTargetDispositions: {
|
|
611
|
+
readonly unspecified: "Unspecified";
|
|
612
|
+
readonly reject: "Reject";
|
|
613
|
+
readonly observe: "Observe";
|
|
614
|
+
readonly deadLetter: "DeadLetter";
|
|
615
|
+
};
|
|
616
|
+
export declare const processAwaitMissingTargetDispositionLabels: Record<ProcessAwaitMissingTargetDisposition, string>;
|
|
617
|
+
export interface TimeSpan {
|
|
618
|
+
ticks: number;
|
|
619
|
+
days: number;
|
|
620
|
+
hours: number;
|
|
621
|
+
milliseconds: number;
|
|
622
|
+
microseconds: number;
|
|
623
|
+
nanoseconds: number;
|
|
624
|
+
minutes: number;
|
|
625
|
+
seconds: number;
|
|
626
|
+
totalDays: number;
|
|
627
|
+
totalHours: number;
|
|
628
|
+
totalMilliseconds: number;
|
|
629
|
+
totalMicroseconds: number;
|
|
630
|
+
totalNanoseconds: number;
|
|
631
|
+
totalMinutes: number;
|
|
632
|
+
totalSeconds: number;
|
|
633
|
+
}
|
|
634
|
+
export interface ReplyContractReference {
|
|
635
|
+
definition: ExecutionDefinitionReference;
|
|
636
|
+
}
|
|
637
|
+
export type RequestObligationBindingId = string;
|
|
638
|
+
export interface ProcessChildOutcomeMapping {
|
|
639
|
+
completed: RequestTerminalOutcomeId;
|
|
640
|
+
failed: RequestTerminalOutcomeId;
|
|
641
|
+
cancelled: RequestTerminalOutcomeId;
|
|
642
|
+
terminated: RequestTerminalOutcomeId;
|
|
643
|
+
}
|
|
644
|
+
export type ProcessChildPurpose = 'Unspecified' | 'Work' | 'Compensation' | 'Reconciliation';
|
|
645
|
+
export declare const processChildPurposes: {
|
|
646
|
+
readonly unspecified: "Unspecified";
|
|
647
|
+
readonly work: "Work";
|
|
648
|
+
readonly compensation: "Compensation";
|
|
649
|
+
readonly reconciliation: "Reconciliation";
|
|
650
|
+
};
|
|
651
|
+
export declare const processChildPurposeLabels: Record<ProcessChildPurpose, string>;
|
|
652
|
+
export type ProcessChildCancellationPolicy = 'Unspecified' | 'Propagate' | 'Detach';
|
|
653
|
+
export declare const processChildCancellationPolicies: {
|
|
654
|
+
readonly unspecified: "Unspecified";
|
|
655
|
+
readonly propagate: "Propagate";
|
|
656
|
+
readonly detach: "Detach";
|
|
657
|
+
};
|
|
658
|
+
export declare const processChildCancellationPolicyLabels: Record<ProcessChildCancellationPolicy, string>;
|
|
659
|
+
export type ProcessPartitionFailurePolicy = 'Unspecified' | 'FailFast' | 'AwaitAll';
|
|
660
|
+
export declare const processPartitionFailurePolicies: {
|
|
661
|
+
readonly unspecified: "Unspecified";
|
|
662
|
+
readonly failFast: "FailFast";
|
|
663
|
+
readonly awaitAll: "AwaitAll";
|
|
664
|
+
};
|
|
665
|
+
export declare const processPartitionFailurePolicyLabels: Record<ProcessPartitionFailurePolicy, string>;
|
|
666
|
+
export interface ProcessRecurrencePolicy {
|
|
667
|
+
maximumOccurrences: number;
|
|
668
|
+
maximumUnchangedProgressOccurrences: number;
|
|
669
|
+
}
|
|
670
|
+
export interface NormalizedExecutionTraceEvent {
|
|
671
|
+
sequence: number;
|
|
672
|
+
kind: string;
|
|
673
|
+
node: ExecutionNodeId;
|
|
674
|
+
token?: TokenId | null;
|
|
675
|
+
branchOrClause?: ExecutionNodeId | null;
|
|
676
|
+
emission?: EmissionId | null;
|
|
677
|
+
correlation?: InteractionCorrelationId | null;
|
|
678
|
+
causation?: EmissionId | null;
|
|
679
|
+
idempotencyKey?: InteractionIdempotencyKey | null;
|
|
680
|
+
emissionFingerprint?: InteractionEnvelopeContentFingerprint | null;
|
|
681
|
+
relatedDefinition?: ExecutionDefinitionReference | null;
|
|
682
|
+
relatedNode?: ExecutionNodeId | null;
|
|
683
|
+
semanticPath?: FieldPath | null;
|
|
684
|
+
changed?: boolean | null;
|
|
685
|
+
operationOccurrence?: string | null;
|
|
686
|
+
inputDisposition?: string | null;
|
|
687
|
+
inputReason?: string | null;
|
|
688
|
+
waitRegistrationId?: ProcessWaitRegistrationId | null;
|
|
689
|
+
processOccurrence?: ProcessTraceOccurrenceEvidence | null;
|
|
690
|
+
requestOutcome?: RequestTerminalOutcomeId | null;
|
|
691
|
+
detail?: string | null;
|
|
692
|
+
sourceReferences: string[];
|
|
693
|
+
}
|
|
694
|
+
export interface ExecutionProducerProvenance {
|
|
695
|
+
producer: string;
|
|
696
|
+
version?: string | null;
|
|
697
|
+
}
|
|
698
|
+
export interface ExecutionSourceProvenance {
|
|
699
|
+
reference: string;
|
|
700
|
+
semanticPath?: ExecutionSemanticPath | null;
|
|
701
|
+
description?: string | null;
|
|
702
|
+
}
|
|
703
|
+
export type PortableValueState = 'Missing' | 'Absent' | 'Null' | 'Unknown' | 'Failed' | 'Concrete';
|
|
704
|
+
export declare const portableValueStates: {
|
|
705
|
+
readonly missing: "Missing";
|
|
706
|
+
readonly absent: "Absent";
|
|
707
|
+
readonly null: "Null";
|
|
708
|
+
readonly unknown: "Unknown";
|
|
709
|
+
readonly failed: "Failed";
|
|
710
|
+
readonly concrete: "Concrete";
|
|
711
|
+
};
|
|
712
|
+
export declare const portableValueStateLabels: Record<PortableValueState, string>;
|
|
713
|
+
export type TokenId = string;
|
|
714
|
+
export type ExecutionTokenDisposition = 'Unspecified' | 'Ready' | 'Active' | 'Waiting' | 'Completed' | 'Failed' | 'Cancelled' | 'Pending';
|
|
715
|
+
export declare const executionTokenDispositions: {
|
|
716
|
+
readonly unspecified: "Unspecified";
|
|
717
|
+
readonly ready: "Ready";
|
|
718
|
+
readonly active: "Active";
|
|
719
|
+
readonly waiting: "Waiting";
|
|
720
|
+
readonly completed: "Completed";
|
|
721
|
+
readonly failed: "Failed";
|
|
722
|
+
readonly cancelled: "Cancelled";
|
|
723
|
+
readonly pending: "Pending";
|
|
724
|
+
};
|
|
725
|
+
export declare const executionTokenDispositionLabels: Record<ExecutionTokenDisposition, string>;
|
|
726
|
+
export type RequestTerminalOutcomeId = string;
|
|
727
|
+
export type ProcessEdgeId = string;
|
|
728
|
+
export type ProcessJoinMode = 'Unspecified' | 'All' | 'Any' | 'RequiredCount';
|
|
729
|
+
export declare const processJoinModes: {
|
|
730
|
+
readonly unspecified: "Unspecified";
|
|
731
|
+
readonly all: "All";
|
|
732
|
+
readonly any: "Any";
|
|
733
|
+
readonly requiredCount: "RequiredCount";
|
|
734
|
+
};
|
|
735
|
+
export declare const processJoinModeLabels: Record<ProcessJoinMode, string>;
|
|
736
|
+
export type ProcessJoinFailurePolicy = 'Unspecified' | 'FailFast' | 'WaitForRequired' | 'ExcludeFailed';
|
|
737
|
+
export declare const processJoinFailurePolicies: {
|
|
738
|
+
readonly unspecified: "Unspecified";
|
|
739
|
+
readonly failFast: "FailFast";
|
|
740
|
+
readonly waitForRequired: "WaitForRequired";
|
|
741
|
+
readonly excludeFailed: "ExcludeFailed";
|
|
742
|
+
};
|
|
743
|
+
export declare const processJoinFailurePolicyLabels: Record<ProcessJoinFailurePolicy, string>;
|
|
744
|
+
export type ProcessJoinCancellationPolicy = 'Unspecified' | 'CancelRemaining' | 'AwaitRemaining' | 'ContinueRemaining';
|
|
745
|
+
export declare const processJoinCancellationPolicies: {
|
|
746
|
+
readonly unspecified: "Unspecified";
|
|
747
|
+
readonly cancelRemaining: "CancelRemaining";
|
|
748
|
+
readonly awaitRemaining: "AwaitRemaining";
|
|
749
|
+
readonly continueRemaining: "ContinueRemaining";
|
|
750
|
+
};
|
|
751
|
+
export declare const processJoinCancellationPolicyLabels: Record<ProcessJoinCancellationPolicy, string>;
|
|
752
|
+
export type ProcessJoinCompletionOrder = 'Unspecified' | 'Unobservable' | 'Observable';
|
|
753
|
+
export declare const processJoinCompletionOrders: {
|
|
754
|
+
readonly unspecified: "Unspecified";
|
|
755
|
+
readonly unobservable: "Unobservable";
|
|
756
|
+
readonly observable: "Observable";
|
|
757
|
+
};
|
|
758
|
+
export declare const processJoinCompletionOrderLabels: Record<ProcessJoinCompletionOrder, string>;
|
|
759
|
+
export type ProcessJoinTieBreak = 'Unspecified' | 'BranchIdentity' | 'CompletionThenBranchIdentity';
|
|
760
|
+
export declare const processJoinTieBreaks: {
|
|
761
|
+
readonly unspecified: "Unspecified";
|
|
762
|
+
readonly branchIdentity: "BranchIdentity";
|
|
763
|
+
readonly completionThenBranchIdentity: "CompletionThenBranchIdentity";
|
|
764
|
+
};
|
|
765
|
+
export declare const processJoinTieBreakLabels: Record<ProcessJoinTieBreak, string>;
|
|
766
|
+
export interface ProcessJoinBranchResult {
|
|
767
|
+
branch: ExecutionNodeId;
|
|
768
|
+
result: Expr;
|
|
769
|
+
}
|
|
770
|
+
export type InteractionContractReference = {
|
|
771
|
+
readonly $contract: 'domainEvent';
|
|
772
|
+
} & DomainEventContractReference | {
|
|
773
|
+
readonly $contract: 'request';
|
|
774
|
+
} & RequestContractReference | {
|
|
775
|
+
readonly $contract: 'signal';
|
|
776
|
+
} & SignalContractReference | {
|
|
777
|
+
readonly $contract: 'reply';
|
|
778
|
+
} & ReplyContractReference;
|
|
779
|
+
export interface ProcessRequestObligationBinding {
|
|
780
|
+
binding: RequestObligationBindingId;
|
|
781
|
+
}
|
|
782
|
+
export type EmissionId = string;
|
|
783
|
+
export type InteractionCorrelationId = string;
|
|
784
|
+
export type InteractionIdempotencyKey = string;
|
|
785
|
+
export type InteractionEnvelopeContentFingerprint = string;
|
|
786
|
+
export type ProcessWaitRegistrationId = string;
|
|
787
|
+
export interface ProcessTraceOccurrenceEvidence {
|
|
788
|
+
disclosure: ExecutionTraceEvidenceDisclosure;
|
|
789
|
+
kind: ProcessTraceOccurrenceKind;
|
|
790
|
+
registrationId?: string | null;
|
|
791
|
+
ownerToken?: TokenId | null;
|
|
792
|
+
occurrence?: string | null;
|
|
793
|
+
progressIdentity?: string | null;
|
|
794
|
+
definition?: ExecutionDefinitionReference | null;
|
|
795
|
+
continuation?: ProcessContinuationIdentity | null;
|
|
796
|
+
repeatCount?: number | null;
|
|
797
|
+
unchangedProgressCount?: number | null;
|
|
798
|
+
}
|
|
799
|
+
export interface ExecutionSemanticPath {
|
|
800
|
+
segments: string[];
|
|
801
|
+
}
|
|
802
|
+
export type ExecutionTraceEvidenceDisclosure = 'Unknown' | 'Disclosed' | 'Redacted' | 'Unavailable' | 'Unsupported';
|
|
803
|
+
export declare const executionTraceEvidenceDisclosures: {
|
|
804
|
+
readonly unknown: "Unknown";
|
|
805
|
+
readonly disclosed: "Disclosed";
|
|
806
|
+
readonly redacted: "Redacted";
|
|
807
|
+
readonly unavailable: "Unavailable";
|
|
808
|
+
readonly unsupported: "Unsupported";
|
|
809
|
+
};
|
|
810
|
+
export declare const executionTraceEvidenceDisclosureLabels: Record<ExecutionTraceEvidenceDisclosure, string>;
|
|
811
|
+
export type ProcessTraceOccurrenceKind = 'Unspecified' | 'Child' | 'Partition' | 'Recurrence';
|
|
812
|
+
export declare const processTraceOccurrenceKinds: {
|
|
813
|
+
readonly unspecified: "Unspecified";
|
|
814
|
+
readonly child: "Child";
|
|
815
|
+
readonly partition: "Partition";
|
|
816
|
+
readonly recurrence: "Recurrence";
|
|
817
|
+
};
|
|
818
|
+
export declare const processTraceOccurrenceKindLabels: Record<ProcessTraceOccurrenceKind, string>;
|
|
819
|
+
export interface ExecutionControlResult {
|
|
820
|
+
disposition: ProcessControlDecisionDisposition;
|
|
821
|
+
status: ExecutionStatus;
|
|
822
|
+
receipt?: ExecutionControlReceiptSummary | null;
|
|
823
|
+
diagnosticCodes: string[];
|
|
824
|
+
}
|
|
825
|
+
export interface ExecutionDefinitionDocument {
|
|
826
|
+
kind: ExecutionDefinitionKind;
|
|
827
|
+
metadata: ExecutionDefinitionMetadata;
|
|
828
|
+
definition: unknown;
|
|
829
|
+
extensions: ExecutionDefinitionExtension[];
|
|
830
|
+
}
|
|
831
|
+
export interface ExecutionExplainArtifact {
|
|
832
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
833
|
+
definition: ExecutionExplainDefinitionReference;
|
|
834
|
+
interpreter: ExecutionInterpreterProfileReference;
|
|
835
|
+
evidence: ExecutionExplainEvidence[];
|
|
836
|
+
trace?: ExecutionExplainTraceReference | null;
|
|
837
|
+
runtimeStatus?: ExecutionStatus | null;
|
|
838
|
+
diagnostics: DocumentValidationDiagnostic[];
|
|
839
|
+
fingerprint: ExecutionExplainFingerprint;
|
|
840
|
+
}
|
|
841
|
+
export interface ExecutionStatus {
|
|
842
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
843
|
+
definition: ExecutionDefinitionReference;
|
|
844
|
+
processInstanceId: ProcessInstanceId;
|
|
845
|
+
controlRevision: ProcessControlRevision;
|
|
846
|
+
controlMode: ProcessControlMode;
|
|
847
|
+
attempts: ExecutionAttemptStatus[];
|
|
848
|
+
currentAttemptId: ProcessAttemptId;
|
|
849
|
+
activeActivation?: ExecutionActivationStatus | null;
|
|
850
|
+
runtime: ExecutionRuntimeStatusDetails;
|
|
851
|
+
terminalOutcome: ExecutionTerminalOutcome;
|
|
852
|
+
createdAtUtc: string;
|
|
853
|
+
updatedAtUtc: string;
|
|
854
|
+
}
|
|
855
|
+
export interface ProcessDefinition {
|
|
856
|
+
input: ValueContract;
|
|
857
|
+
result: ValueContract;
|
|
858
|
+
entry: ExecutionNodeId;
|
|
859
|
+
nodes: ProcessNode[];
|
|
860
|
+
recoveryPolicy: ProcessRecoveryPolicy;
|
|
861
|
+
}
|
|
862
|
+
export interface ProcessExecutionTraceArtifact {
|
|
863
|
+
schemaVersion: ExecutionIrSchemaVersion;
|
|
864
|
+
definition: ExecutionDefinitionReference;
|
|
865
|
+
processInstanceId: ProcessInstanceId;
|
|
866
|
+
missingTracePrefixCount: number;
|
|
867
|
+
traces: NormalizedExecutionTrace[];
|
|
868
|
+
}
|
|
869
|
+
//# sourceMappingURL=processes.shapes.generated.d.ts.map
|