@smthrs/flow 0.0.0-stage → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +160 -0
- package/LICENSE +21 -0
- package/README.md +210 -2
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/cjs/Action/Action.d.ts +250 -0
- package/dist/cjs/Action/Action.d.ts.map +1 -0
- package/dist/cjs/Action/Action.js +42 -0
- package/dist/cjs/Action/Action.js.map +7 -0
- package/dist/cjs/Action/AttemptTimedOut.d.ts +33 -0
- package/dist/cjs/Action/AttemptTimedOut.d.ts.map +1 -0
- package/dist/cjs/Action/AttemptTimedOut.js +51 -0
- package/dist/cjs/Action/AttemptTimedOut.js.map +7 -0
- package/dist/cjs/Action/BoundaryMode.d.ts +29 -0
- package/dist/cjs/Action/BoundaryMode.d.ts.map +1 -0
- package/dist/cjs/Action/BoundaryMode.js +36 -0
- package/dist/cjs/Action/BoundaryMode.js.map +7 -0
- package/dist/cjs/Action/CacheEnvironment.d.ts +158 -0
- package/dist/cjs/Action/CacheEnvironment.d.ts.map +1 -0
- package/dist/cjs/Action/CacheEnvironment.js +57 -0
- package/dist/cjs/Action/CacheEnvironment.js.map +7 -0
- package/dist/cjs/Action/ConcurrentKeylessDispatch.d.ts +34 -0
- package/dist/cjs/Action/ConcurrentKeylessDispatch.d.ts.map +1 -0
- package/dist/cjs/Action/ConcurrentKeylessDispatch.js +46 -0
- package/dist/cjs/Action/ConcurrentKeylessDispatch.js.map +7 -0
- package/dist/cjs/Action/Context.d.ts +131 -0
- package/dist/cjs/Action/Context.d.ts.map +1 -0
- package/dist/cjs/Action/Context.js +68 -0
- package/dist/cjs/Action/Context.js.map +7 -0
- package/dist/cjs/Action/DuplicateImplementation.d.ts +20 -0
- package/dist/cjs/Action/DuplicateImplementation.d.ts.map +1 -0
- package/dist/cjs/Action/DuplicateImplementation.js +46 -0
- package/dist/cjs/Action/DuplicateImplementation.js.map +7 -0
- package/dist/cjs/Action/FileBoundary.d.ts +59 -0
- package/dist/cjs/Action/FileBoundary.d.ts.map +1 -0
- package/dist/cjs/Action/FileBoundary.js +81 -0
- package/dist/cjs/Action/FileBoundary.js.map +7 -0
- package/dist/cjs/Action/FileInput.d.ts +28 -0
- package/dist/cjs/Action/FileInput.d.ts.map +1 -0
- package/dist/cjs/Action/FileInput.js +42 -0
- package/dist/cjs/Action/FileInput.js.map +7 -0
- package/dist/cjs/Action/Filegroup.d.ts +16 -0
- package/dist/cjs/Action/Filegroup.d.ts.map +1 -0
- package/dist/cjs/Action/Filegroup.js +27 -0
- package/dist/cjs/Action/Filegroup.js.map +7 -0
- package/dist/cjs/Action/Glob.d.ts +8 -0
- package/dist/cjs/Action/Glob.d.ts.map +1 -0
- package/dist/cjs/Action/Glob.js +28 -0
- package/dist/cjs/Action/Glob.js.map +7 -0
- package/dist/cjs/Action/ImplementationVersionMismatch.d.ts +26 -0
- package/dist/cjs/Action/ImplementationVersionMismatch.d.ts.map +1 -0
- package/dist/cjs/Action/ImplementationVersionMismatch.js +45 -0
- package/dist/cjs/Action/ImplementationVersionMismatch.js.map +7 -0
- package/dist/cjs/Action/Implementations.d.ts +114 -0
- package/dist/cjs/Action/Implementations.d.ts.map +1 -0
- package/dist/cjs/Action/Implementations.js +65 -0
- package/dist/cjs/Action/Implementations.js.map +7 -0
- package/dist/cjs/Action/InfraInterrupt.d.ts +26 -0
- package/dist/cjs/Action/InfraInterrupt.d.ts.map +1 -0
- package/dist/cjs/Action/InfraInterrupt.js +46 -0
- package/dist/cjs/Action/InfraInterrupt.js.map +7 -0
- package/dist/cjs/Action/InfraInterruptRetriesExhausted.d.ts +33 -0
- package/dist/cjs/Action/InfraInterruptRetriesExhausted.d.ts.map +1 -0
- package/dist/cjs/Action/InfraInterruptRetriesExhausted.js +54 -0
- package/dist/cjs/Action/InfraInterruptRetriesExhausted.js.map +7 -0
- package/dist/cjs/Action/IrreversibleRetryRequiresIdempotencyKey.d.ts +26 -0
- package/dist/cjs/Action/IrreversibleRetryRequiresIdempotencyKey.d.ts.map +1 -0
- package/dist/cjs/Action/IrreversibleRetryRequiresIdempotencyKey.js +47 -0
- package/dist/cjs/Action/IrreversibleRetryRequiresIdempotencyKey.js.map +7 -0
- package/dist/cjs/Action/StepIdentity.d.ts +153 -0
- package/dist/cjs/Action/StepIdentity.d.ts.map +1 -0
- package/dist/cjs/Action/StepIdentity.js +75 -0
- package/dist/cjs/Action/StepIdentity.js.map +7 -0
- package/dist/cjs/Action/TreeArtifact.d.ts +8 -0
- package/dist/cjs/Action/TreeArtifact.d.ts.map +1 -0
- package/dist/cjs/Action/TreeArtifact.js +25 -0
- package/dist/cjs/Action/TreeArtifact.js.map +7 -0
- package/dist/cjs/Action/TypeId.d.ts +8 -0
- package/dist/cjs/Action/TypeId.d.ts.map +1 -0
- package/dist/cjs/Action/TypeId.js +25 -0
- package/dist/cjs/Action/TypeId.js.map +7 -0
- package/dist/cjs/Action/UncanonicalIdempotencyKey.d.ts +32 -0
- package/dist/cjs/Action/UncanonicalIdempotencyKey.d.ts.map +1 -0
- package/dist/cjs/Action/UncanonicalIdempotencyKey.js +51 -0
- package/dist/cjs/Action/UncanonicalIdempotencyKey.js.map +7 -0
- package/dist/cjs/Action/idempotencyKey.d.ts +21 -0
- package/dist/cjs/Action/idempotencyKey.d.ts.map +1 -0
- package/dist/cjs/Action/idempotencyKey.js +59 -0
- package/dist/cjs/Action/idempotencyKey.js.map +7 -0
- package/dist/cjs/Action/index.d.ts +29 -0
- package/dist/cjs/Action/index.d.ts.map +1 -0
- package/dist/cjs/Action/index.js +60 -0
- package/dist/cjs/Action/index.js.map +7 -0
- package/dist/cjs/Action/make.d.ts +128 -0
- package/dist/cjs/Action/make.d.ts.map +1 -0
- package/dist/cjs/Action/make.js +373 -0
- package/dist/cjs/Action/make.js.map +7 -0
- package/dist/cjs/Action/raceAll.d.ts +21 -0
- package/dist/cjs/Action/raceAll.d.ts.map +1 -0
- package/dist/cjs/Action/raceAll.js +46 -0
- package/dist/cjs/Action/raceAll.js.map +7 -0
- package/dist/cjs/Action/retry.d.ts +19 -0
- package/dist/cjs/Action/retry.d.ts.map +1 -0
- package/dist/cjs/Action/retry.js +75 -0
- package/dist/cjs/Action/retry.js.map +7 -0
- package/dist/cjs/Deadline.d.ts +105 -0
- package/dist/cjs/Deadline.d.ts.map +1 -0
- package/dist/cjs/Deadline.js +104 -0
- package/dist/cjs/Deadline.js.map +7 -0
- package/dist/cjs/DurableClock.d.ts +61 -0
- package/dist/cjs/DurableClock.d.ts.map +1 -0
- package/dist/cjs/DurableClock.js +90 -0
- package/dist/cjs/DurableClock.js.map +7 -0
- package/dist/cjs/DurableDeferred.d.ts +311 -0
- package/dist/cjs/DurableDeferred.d.ts.map +1 -0
- package/dist/cjs/DurableDeferred.js +322 -0
- package/dist/cjs/DurableDeferred.js.map +7 -0
- package/dist/cjs/DurableQueue.d.ts +160 -0
- package/dist/cjs/DurableQueue.d.ts.map +1 -0
- package/dist/cjs/DurableQueue.js +229 -0
- package/dist/cjs/DurableQueue.js.map +7 -0
- package/dist/cjs/ExternalJob.d.ts +179 -0
- package/dist/cjs/ExternalJob.d.ts.map +1 -0
- package/dist/cjs/ExternalJob.js +338 -0
- package/dist/cjs/ExternalJob.js.map +7 -0
- package/dist/cjs/Fault.d.ts +131 -0
- package/dist/cjs/Fault.d.ts.map +1 -0
- package/dist/cjs/Fault.js +157 -0
- package/dist/cjs/Fault.js.map +7 -0
- package/dist/cjs/Flow/Annotations.d.ts +245 -0
- package/dist/cjs/Flow/Annotations.d.ts.map +1 -0
- package/dist/cjs/Flow/Annotations.js +72 -0
- package/dist/cjs/Flow/Annotations.js.map +7 -0
- package/dist/cjs/Flow/CapabilityCeiling.d.ts +21 -0
- package/dist/cjs/Flow/CapabilityCeiling.d.ts.map +1 -0
- package/dist/cjs/Flow/CapabilityCeiling.js +49 -0
- package/dist/cjs/Flow/CapabilityCeiling.js.map +7 -0
- package/dist/cjs/Flow/DeadlineExceeded.d.ts +33 -0
- package/dist/cjs/Flow/DeadlineExceeded.d.ts.map +1 -0
- package/dist/cjs/Flow/DeadlineExceeded.js +52 -0
- package/dist/cjs/Flow/DeadlineExceeded.js.map +7 -0
- package/dist/cjs/Flow/ExecutionIdRequired.d.ts +25 -0
- package/dist/cjs/Flow/ExecutionIdRequired.d.ts.map +1 -0
- package/dist/cjs/Flow/ExecutionIdRequired.js +46 -0
- package/dist/cjs/Flow/ExecutionIdRequired.js.map +7 -0
- package/dist/cjs/Flow/ExecutionIds.d.ts +80 -0
- package/dist/cjs/Flow/ExecutionIds.d.ts.map +1 -0
- package/dist/cjs/Flow/ExecutionIds.js +66 -0
- package/dist/cjs/Flow/ExecutionIds.js.map +7 -0
- package/dist/cjs/Flow/Flow.d.ts +422 -0
- package/dist/cjs/Flow/Flow.d.ts.map +1 -0
- package/dist/cjs/Flow/Flow.js +17 -0
- package/dist/cjs/Flow/Flow.js.map +7 -0
- package/dist/cjs/Flow/MaxRoundsExceeded.d.ts +35 -0
- package/dist/cjs/Flow/MaxRoundsExceeded.d.ts.map +1 -0
- package/dist/cjs/Flow/MaxRoundsExceeded.js +50 -0
- package/dist/cjs/Flow/MaxRoundsExceeded.js.map +7 -0
- package/dist/cjs/Flow/Outcome.d.ts +162 -0
- package/dist/cjs/Flow/Outcome.d.ts.map +1 -0
- package/dist/cjs/Flow/Outcome.js +80 -0
- package/dist/cjs/Flow/Outcome.js.map +7 -0
- package/dist/cjs/Flow/Result.d.ts +186 -0
- package/dist/cjs/Flow/Result.d.ts.map +1 -0
- package/dist/cjs/Flow/Result.js +159 -0
- package/dist/cjs/Flow/Result.js.map +7 -0
- package/dist/cjs/Flow/Runtime.d.ts +98 -0
- package/dist/cjs/Flow/Runtime.d.ts.map +1 -0
- package/dist/cjs/Flow/Runtime.js +160 -0
- package/dist/cjs/Flow/Runtime.js.map +7 -0
- package/dist/cjs/Flow/TypeId.d.ts +8 -0
- package/dist/cjs/Flow/TypeId.d.ts.map +1 -0
- package/dist/cjs/Flow/TypeId.js +25 -0
- package/dist/cjs/Flow/TypeId.js.map +7 -0
- package/dist/cjs/Flow/index.d.ts +17 -0
- package/dist/cjs/Flow/index.d.ts.map +1 -0
- package/dist/cjs/Flow/index.js +29 -0
- package/dist/cjs/Flow/index.js.map +7 -0
- package/dist/cjs/Flow/internal.d.ts +34 -0
- package/dist/cjs/Flow/internal.d.ts.map +1 -0
- package/dist/cjs/Flow/internal.js +187 -0
- package/dist/cjs/Flow/internal.js.map +7 -0
- package/dist/cjs/Flow/make.d.ts +134 -0
- package/dist/cjs/Flow/make.d.ts.map +1 -0
- package/dist/cjs/Flow/make.js +104 -0
- package/dist/cjs/Flow/make.js.map +7 -0
- package/dist/cjs/FlowRuntime/CancelRequestFailed.d.ts +55 -0
- package/dist/cjs/FlowRuntime/CancelRequestFailed.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/CancelRequestFailed.js +51 -0
- package/dist/cjs/FlowRuntime/CancelRequestFailed.js.map +7 -0
- package/dist/cjs/FlowRuntime/ExecutionIdentityConflict.d.ts +23 -0
- package/dist/cjs/FlowRuntime/ExecutionIdentityConflict.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/ExecutionIdentityConflict.js +55 -0
- package/dist/cjs/FlowRuntime/ExecutionIdentityConflict.js.map +7 -0
- package/dist/cjs/FlowRuntime/FlowCycleDetected.d.ts +28 -0
- package/dist/cjs/FlowRuntime/FlowCycleDetected.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/FlowCycleDetected.js +49 -0
- package/dist/cjs/FlowRuntime/FlowCycleDetected.js.map +7 -0
- package/dist/cjs/FlowRuntime/FlowExecutionNotFound.d.ts +38 -0
- package/dist/cjs/FlowRuntime/FlowExecutionNotFound.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/FlowExecutionNotFound.js +53 -0
- package/dist/cjs/FlowRuntime/FlowExecutionNotFound.js.map +7 -0
- package/dist/cjs/FlowRuntime/FlowInstance.d.ts +115 -0
- package/dist/cjs/FlowRuntime/FlowInstance.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/FlowInstance.js +37 -0
- package/dist/cjs/FlowRuntime/FlowInstance.js.map +7 -0
- package/dist/cjs/FlowRuntime/FlowRuntime.d.ts +198 -0
- package/dist/cjs/FlowRuntime/FlowRuntime.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/FlowRuntime.js +37 -0
- package/dist/cjs/FlowRuntime/FlowRuntime.js.map +7 -0
- package/dist/cjs/FlowRuntime/NodeRecord.d.ts +175 -0
- package/dist/cjs/FlowRuntime/NodeRecord.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/NodeRecord.js +17 -0
- package/dist/cjs/FlowRuntime/NodeRecord.js.map +7 -0
- package/dist/cjs/FlowRuntime/WaitingAnnotation.d.ts +69 -0
- package/dist/cjs/FlowRuntime/WaitingAnnotation.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/WaitingAnnotation.js +53 -0
- package/dist/cjs/FlowRuntime/WaitingAnnotation.js.map +7 -0
- package/dist/cjs/FlowRuntime/index.d.ts +14 -0
- package/dist/cjs/FlowRuntime/index.d.ts.map +1 -0
- package/dist/cjs/FlowRuntime/index.js +26 -0
- package/dist/cjs/FlowRuntime/index.js.map +7 -0
- package/dist/cjs/Graph.d.ts +325 -0
- package/dist/cjs/Graph.d.ts.map +1 -0
- package/dist/cjs/Graph.js +1021 -0
- package/dist/cjs/Graph.js.map +7 -0
- package/dist/cjs/HumanTask.d.ts +440 -0
- package/dist/cjs/HumanTask.d.ts.map +1 -0
- package/dist/cjs/HumanTask.js +413 -0
- package/dist/cjs/HumanTask.js.map +7 -0
- package/dist/cjs/Interpreter.d.ts +222 -0
- package/dist/cjs/Interpreter.d.ts.map +1 -0
- package/dist/cjs/Interpreter.js +888 -0
- package/dist/cjs/Interpreter.js.map +7 -0
- package/dist/cjs/Poll.d.ts +238 -0
- package/dist/cjs/Poll.d.ts.map +1 -0
- package/dist/cjs/Poll.js +150 -0
- package/dist/cjs/Poll.js.map +7 -0
- package/dist/cjs/RetryPolicy.d.ts +273 -0
- package/dist/cjs/RetryPolicy.d.ts.map +1 -0
- package/dist/cjs/RetryPolicy.js +251 -0
- package/dist/cjs/RetryPolicy.js.map +7 -0
- package/dist/cjs/Sleep.d.ts +98 -0
- package/dist/cjs/Sleep.d.ts.map +1 -0
- package/dist/cjs/Sleep.js +133 -0
- package/dist/cjs/Sleep.js.map +7 -0
- package/dist/cjs/Stall.d.ts +173 -0
- package/dist/cjs/Stall.d.ts.map +1 -0
- package/dist/cjs/Stall.js +92 -0
- package/dist/cjs/Stall.js.map +7 -0
- package/dist/cjs/WaitFor.d.ts +109 -0
- package/dist/cjs/WaitFor.d.ts.map +1 -0
- package/dist/cjs/WaitFor.js +117 -0
- package/dist/cjs/WaitFor.js.map +7 -0
- package/dist/cjs/index.d.ts +107 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +69 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/internal/BoundedJson.d.ts +48 -0
- package/dist/cjs/internal/BoundedJson.d.ts.map +1 -0
- package/dist/cjs/internal/BoundedJson.js +96 -0
- package/dist/cjs/internal/BoundedJson.js.map +7 -0
- package/dist/cjs/internal/DeclarationSite.d.ts +135 -0
- package/dist/cjs/internal/DeclarationSite.d.ts.map +1 -0
- package/dist/cjs/internal/DeclarationSite.js +89 -0
- package/dist/cjs/internal/DeclarationSite.js.map +7 -0
- package/dist/cjs/internal/Declarations.d.ts +35 -0
- package/dist/cjs/internal/Declarations.d.ts.map +1 -0
- package/dist/cjs/internal/Declarations.js +50 -0
- package/dist/cjs/internal/Declarations.js.map +7 -0
- package/dist/cjs/internal/ExecutionMiddleware.d.ts +21 -0
- package/dist/cjs/internal/ExecutionMiddleware.d.ts.map +1 -0
- package/dist/cjs/internal/ExecutionMiddleware.js +39 -0
- package/dist/cjs/internal/ExecutionMiddleware.js.map +7 -0
- package/dist/cjs/internal/JsonSchemaSubset.d.ts +133 -0
- package/dist/cjs/internal/JsonSchemaSubset.d.ts.map +1 -0
- package/dist/cjs/internal/JsonSchemaSubset.js +229 -0
- package/dist/cjs/internal/JsonSchemaSubset.js.map +7 -0
- package/dist/cjs/internal/OutcomeMarker.d.ts +18 -0
- package/dist/cjs/internal/OutcomeMarker.d.ts.map +1 -0
- package/dist/cjs/internal/OutcomeMarker.js +27 -0
- package/dist/cjs/internal/OutcomeMarker.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/Action/Action.d.ts +250 -0
- package/dist/esm/Action/Action.d.ts.map +1 -0
- package/dist/esm/Action/Action.js +30 -0
- package/dist/esm/Action/Action.js.map +1 -0
- package/dist/esm/Action/AttemptTimedOut.d.ts +33 -0
- package/dist/esm/Action/AttemptTimedOut.d.ts.map +1 -0
- package/dist/esm/Action/AttemptTimedOut.js +32 -0
- package/dist/esm/Action/AttemptTimedOut.js.map +1 -0
- package/dist/esm/Action/BoundaryMode.d.ts +29 -0
- package/dist/esm/Action/BoundaryMode.d.ts.map +1 -0
- package/dist/esm/Action/BoundaryMode.js +23 -0
- package/dist/esm/Action/BoundaryMode.js.map +1 -0
- package/dist/esm/Action/CacheEnvironment.d.ts +158 -0
- package/dist/esm/Action/CacheEnvironment.d.ts.map +1 -0
- package/dist/esm/Action/CacheEnvironment.js +130 -0
- package/dist/esm/Action/CacheEnvironment.js.map +1 -0
- package/dist/esm/Action/ConcurrentKeylessDispatch.d.ts +34 -0
- package/dist/esm/Action/ConcurrentKeylessDispatch.d.ts.map +1 -0
- package/dist/esm/Action/ConcurrentKeylessDispatch.js +33 -0
- package/dist/esm/Action/ConcurrentKeylessDispatch.js.map +1 -0
- package/dist/esm/Action/Context.d.ts +131 -0
- package/dist/esm/Action/Context.d.ts.map +1 -0
- package/dist/esm/Action/Context.js +99 -0
- package/dist/esm/Action/Context.js.map +1 -0
- package/dist/esm/Action/DuplicateImplementation.d.ts +20 -0
- package/dist/esm/Action/DuplicateImplementation.d.ts.map +1 -0
- package/dist/esm/Action/DuplicateImplementation.js +20 -0
- package/dist/esm/Action/DuplicateImplementation.js.map +1 -0
- package/dist/esm/Action/FileBoundary.d.ts +59 -0
- package/dist/esm/Action/FileBoundary.d.ts.map +1 -0
- package/dist/esm/Action/FileBoundary.js +60 -0
- package/dist/esm/Action/FileBoundary.js.map +1 -0
- package/dist/esm/Action/FileInput.d.ts +28 -0
- package/dist/esm/Action/FileInput.d.ts.map +1 -0
- package/dist/esm/Action/FileInput.js +32 -0
- package/dist/esm/Action/FileInput.js.map +1 -0
- package/dist/esm/Action/Filegroup.d.ts +16 -0
- package/dist/esm/Action/Filegroup.d.ts.map +1 -0
- package/dist/esm/Action/Filegroup.js +15 -0
- package/dist/esm/Action/Filegroup.js.map +1 -0
- package/dist/esm/Action/Glob.d.ts +8 -0
- package/dist/esm/Action/Glob.d.ts.map +1 -0
- package/dist/esm/Action/Glob.js +7 -0
- package/dist/esm/Action/Glob.js.map +1 -0
- package/dist/esm/Action/ImplementationVersionMismatch.d.ts +26 -0
- package/dist/esm/Action/ImplementationVersionMismatch.d.ts.map +1 -0
- package/dist/esm/Action/ImplementationVersionMismatch.js +24 -0
- package/dist/esm/Action/ImplementationVersionMismatch.js.map +1 -0
- package/dist/esm/Action/Implementations.d.ts +114 -0
- package/dist/esm/Action/Implementations.d.ts.map +1 -0
- package/dist/esm/Action/Implementations.js +94 -0
- package/dist/esm/Action/Implementations.js.map +1 -0
- package/dist/esm/Action/InfraInterrupt.d.ts +26 -0
- package/dist/esm/Action/InfraInterrupt.d.ts.map +1 -0
- package/dist/esm/Action/InfraInterrupt.js +25 -0
- package/dist/esm/Action/InfraInterrupt.js.map +1 -0
- package/dist/esm/Action/InfraInterruptRetriesExhausted.d.ts +33 -0
- package/dist/esm/Action/InfraInterruptRetriesExhausted.d.ts.map +1 -0
- package/dist/esm/Action/InfraInterruptRetriesExhausted.js +32 -0
- package/dist/esm/Action/InfraInterruptRetriesExhausted.js.map +1 -0
- package/dist/esm/Action/IrreversibleRetryRequiresIdempotencyKey.d.ts +26 -0
- package/dist/esm/Action/IrreversibleRetryRequiresIdempotencyKey.d.ts.map +1 -0
- package/dist/esm/Action/IrreversibleRetryRequiresIdempotencyKey.js +25 -0
- package/dist/esm/Action/IrreversibleRetryRequiresIdempotencyKey.js.map +1 -0
- package/dist/esm/Action/StepIdentity.d.ts +153 -0
- package/dist/esm/Action/StepIdentity.d.ts.map +1 -0
- package/dist/esm/Action/StepIdentity.js +139 -0
- package/dist/esm/Action/StepIdentity.js.map +1 -0
- package/dist/esm/Action/TreeArtifact.d.ts +8 -0
- package/dist/esm/Action/TreeArtifact.d.ts.map +1 -0
- package/dist/esm/Action/TreeArtifact.js +7 -0
- package/dist/esm/Action/TreeArtifact.js.map +1 -0
- package/dist/esm/Action/TypeId.d.ts +8 -0
- package/dist/esm/Action/TypeId.d.ts.map +1 -0
- package/dist/esm/Action/TypeId.js +9 -0
- package/dist/esm/Action/TypeId.js.map +1 -0
- package/dist/esm/Action/UncanonicalIdempotencyKey.d.ts +32 -0
- package/dist/esm/Action/UncanonicalIdempotencyKey.d.ts.map +1 -0
- package/dist/esm/Action/UncanonicalIdempotencyKey.js +31 -0
- package/dist/esm/Action/UncanonicalIdempotencyKey.js.map +1 -0
- package/dist/esm/Action/idempotencyKey.d.ts +21 -0
- package/dist/esm/Action/idempotencyKey.d.ts.map +1 -0
- package/dist/esm/Action/idempotencyKey.js +50 -0
- package/dist/esm/Action/idempotencyKey.js.map +1 -0
- package/dist/esm/Action/index.d.ts +29 -0
- package/dist/esm/Action/index.d.ts.map +1 -0
- package/dist/esm/Action/index.js +30 -0
- package/dist/esm/Action/index.js.map +1 -0
- package/dist/esm/Action/make.d.ts +128 -0
- package/dist/esm/Action/make.d.ts.map +1 -0
- package/dist/esm/Action/make.js +405 -0
- package/dist/esm/Action/make.js.map +1 -0
- package/dist/esm/Action/raceAll.d.ts +21 -0
- package/dist/esm/Action/raceAll.d.ts.map +1 -0
- package/dist/esm/Action/raceAll.js +20 -0
- package/dist/esm/Action/raceAll.js.map +1 -0
- package/dist/esm/Action/retry.d.ts +19 -0
- package/dist/esm/Action/retry.d.ts.map +1 -0
- package/dist/esm/Action/retry.js +72 -0
- package/dist/esm/Action/retry.js.map +1 -0
- package/dist/esm/Deadline.d.ts +105 -0
- package/dist/esm/Deadline.d.ts.map +1 -0
- package/dist/esm/Deadline.js +152 -0
- package/dist/esm/Deadline.js.map +1 -0
- package/dist/esm/DurableClock.d.ts +61 -0
- package/dist/esm/DurableClock.d.ts.map +1 -0
- package/dist/esm/DurableClock.js +75 -0
- package/dist/esm/DurableClock.js.map +1 -0
- package/dist/esm/DurableDeferred.d.ts +311 -0
- package/dist/esm/DurableDeferred.d.ts.map +1 -0
- package/dist/esm/DurableDeferred.js +357 -0
- package/dist/esm/DurableDeferred.js.map +1 -0
- package/dist/esm/DurableQueue.d.ts +160 -0
- package/dist/esm/DurableQueue.d.ts.map +1 -0
- package/dist/esm/DurableQueue.js +303 -0
- package/dist/esm/DurableQueue.js.map +1 -0
- package/dist/esm/ExternalJob.d.ts +179 -0
- package/dist/esm/ExternalJob.d.ts.map +1 -0
- package/dist/esm/ExternalJob.js +296 -0
- package/dist/esm/ExternalJob.js.map +1 -0
- package/dist/esm/Fault.d.ts +131 -0
- package/dist/esm/Fault.d.ts.map +1 -0
- package/dist/esm/Fault.js +198 -0
- package/dist/esm/Fault.js.map +1 -0
- package/dist/esm/Flow/Annotations.d.ts +245 -0
- package/dist/esm/Flow/Annotations.d.ts.map +1 -0
- package/dist/esm/Flow/Annotations.js +110 -0
- package/dist/esm/Flow/Annotations.js.map +1 -0
- package/dist/esm/Flow/CapabilityCeiling.d.ts +21 -0
- package/dist/esm/Flow/CapabilityCeiling.d.ts.map +1 -0
- package/dist/esm/Flow/CapabilityCeiling.js +27 -0
- package/dist/esm/Flow/CapabilityCeiling.js.map +1 -0
- package/dist/esm/Flow/DeadlineExceeded.d.ts +33 -0
- package/dist/esm/Flow/DeadlineExceeded.d.ts.map +1 -0
- package/dist/esm/Flow/DeadlineExceeded.js +34 -0
- package/dist/esm/Flow/DeadlineExceeded.js.map +1 -0
- package/dist/esm/Flow/ExecutionIdRequired.d.ts +25 -0
- package/dist/esm/Flow/ExecutionIdRequired.d.ts.map +1 -0
- package/dist/esm/Flow/ExecutionIdRequired.js +30 -0
- package/dist/esm/Flow/ExecutionIdRequired.js.map +1 -0
- package/dist/esm/Flow/ExecutionIds.d.ts +80 -0
- package/dist/esm/Flow/ExecutionIds.d.ts.map +1 -0
- package/dist/esm/Flow/ExecutionIds.js +91 -0
- package/dist/esm/Flow/ExecutionIds.js.map +1 -0
- package/dist/esm/Flow/Flow.d.ts +422 -0
- package/dist/esm/Flow/Flow.d.ts.map +1 -0
- package/dist/esm/Flow/Flow.js +3 -0
- package/dist/esm/Flow/Flow.js.map +1 -0
- package/dist/esm/Flow/MaxRoundsExceeded.d.ts +35 -0
- package/dist/esm/Flow/MaxRoundsExceeded.d.ts.map +1 -0
- package/dist/esm/Flow/MaxRoundsExceeded.js +34 -0
- package/dist/esm/Flow/MaxRoundsExceeded.js.map +1 -0
- package/dist/esm/Flow/Outcome.d.ts +162 -0
- package/dist/esm/Flow/Outcome.d.ts.map +1 -0
- package/dist/esm/Flow/Outcome.js +115 -0
- package/dist/esm/Flow/Outcome.js.map +1 -0
- package/dist/esm/Flow/Result.d.ts +186 -0
- package/dist/esm/Flow/Result.d.ts.map +1 -0
- package/dist/esm/Flow/Result.js +171 -0
- package/dist/esm/Flow/Result.js.map +1 -0
- package/dist/esm/Flow/Runtime.d.ts +98 -0
- package/dist/esm/Flow/Runtime.d.ts.map +1 -0
- package/dist/esm/Flow/Runtime.js +231 -0
- package/dist/esm/Flow/Runtime.js.map +1 -0
- package/dist/esm/Flow/TypeId.d.ts +8 -0
- package/dist/esm/Flow/TypeId.d.ts.map +1 -0
- package/dist/esm/Flow/TypeId.js +9 -0
- package/dist/esm/Flow/TypeId.js.map +1 -0
- package/dist/esm/Flow/index.d.ts +17 -0
- package/dist/esm/Flow/index.d.ts.map +1 -0
- package/dist/esm/Flow/index.js +18 -0
- package/dist/esm/Flow/index.js.map +1 -0
- package/dist/esm/Flow/internal.d.ts +34 -0
- package/dist/esm/Flow/internal.d.ts.map +1 -0
- package/dist/esm/Flow/internal.js +149 -0
- package/dist/esm/Flow/internal.js.map +1 -0
- package/dist/esm/Flow/make.d.ts +134 -0
- package/dist/esm/Flow/make.d.ts.map +1 -0
- package/dist/esm/Flow/make.js +106 -0
- package/dist/esm/Flow/make.js.map +1 -0
- package/dist/esm/FlowRuntime/CancelRequestFailed.d.ts +55 -0
- package/dist/esm/FlowRuntime/CancelRequestFailed.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/CancelRequestFailed.js +53 -0
- package/dist/esm/FlowRuntime/CancelRequestFailed.js.map +1 -0
- package/dist/esm/FlowRuntime/ExecutionIdentityConflict.d.ts +23 -0
- package/dist/esm/FlowRuntime/ExecutionIdentityConflict.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/ExecutionIdentityConflict.js +24 -0
- package/dist/esm/FlowRuntime/ExecutionIdentityConflict.js.map +1 -0
- package/dist/esm/FlowRuntime/FlowCycleDetected.d.ts +28 -0
- package/dist/esm/FlowRuntime/FlowCycleDetected.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/FlowCycleDetected.js +35 -0
- package/dist/esm/FlowRuntime/FlowCycleDetected.js.map +1 -0
- package/dist/esm/FlowRuntime/FlowExecutionNotFound.d.ts +38 -0
- package/dist/esm/FlowRuntime/FlowExecutionNotFound.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/FlowExecutionNotFound.js +40 -0
- package/dist/esm/FlowRuntime/FlowExecutionNotFound.js.map +1 -0
- package/dist/esm/FlowRuntime/FlowInstance.d.ts +115 -0
- package/dist/esm/FlowRuntime/FlowInstance.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/FlowInstance.js +24 -0
- package/dist/esm/FlowRuntime/FlowInstance.js.map +1 -0
- package/dist/esm/FlowRuntime/FlowRuntime.d.ts +198 -0
- package/dist/esm/FlowRuntime/FlowRuntime.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/FlowRuntime.js +34 -0
- package/dist/esm/FlowRuntime/FlowRuntime.js.map +1 -0
- package/dist/esm/FlowRuntime/NodeRecord.d.ts +175 -0
- package/dist/esm/FlowRuntime/NodeRecord.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/NodeRecord.js +21 -0
- package/dist/esm/FlowRuntime/NodeRecord.js.map +1 -0
- package/dist/esm/FlowRuntime/WaitingAnnotation.d.ts +69 -0
- package/dist/esm/FlowRuntime/WaitingAnnotation.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/WaitingAnnotation.js +53 -0
- package/dist/esm/FlowRuntime/WaitingAnnotation.js.map +1 -0
- package/dist/esm/FlowRuntime/index.d.ts +14 -0
- package/dist/esm/FlowRuntime/index.d.ts.map +1 -0
- package/dist/esm/FlowRuntime/index.js +15 -0
- package/dist/esm/FlowRuntime/index.js.map +1 -0
- package/dist/esm/Graph.d.ts +325 -0
- package/dist/esm/Graph.d.ts.map +1 -0
- package/dist/esm/Graph.js +1483 -0
- package/dist/esm/Graph.js.map +1 -0
- package/dist/esm/HumanTask.d.ts +440 -0
- package/dist/esm/HumanTask.d.ts.map +1 -0
- package/dist/esm/HumanTask.js +794 -0
- package/dist/esm/HumanTask.js.map +1 -0
- package/dist/esm/Interpreter.d.ts +222 -0
- package/dist/esm/Interpreter.d.ts.map +1 -0
- package/dist/esm/Interpreter.js +1269 -0
- package/dist/esm/Interpreter.js.map +1 -0
- package/dist/esm/Poll.d.ts +238 -0
- package/dist/esm/Poll.d.ts.map +1 -0
- package/dist/esm/Poll.js +282 -0
- package/dist/esm/Poll.js.map +1 -0
- package/dist/esm/RetryPolicy.d.ts +273 -0
- package/dist/esm/RetryPolicy.d.ts.map +1 -0
- package/dist/esm/RetryPolicy.js +429 -0
- package/dist/esm/RetryPolicy.js.map +1 -0
- package/dist/esm/Sleep.d.ts +98 -0
- package/dist/esm/Sleep.d.ts.map +1 -0
- package/dist/esm/Sleep.js +230 -0
- package/dist/esm/Sleep.js.map +1 -0
- package/dist/esm/Stall.d.ts +173 -0
- package/dist/esm/Stall.d.ts.map +1 -0
- package/dist/esm/Stall.js +138 -0
- package/dist/esm/Stall.js.map +1 -0
- package/dist/esm/WaitFor.d.ts +109 -0
- package/dist/esm/WaitFor.d.ts.map +1 -0
- package/dist/esm/WaitFor.js +184 -0
- package/dist/esm/WaitFor.js.map +1 -0
- package/dist/esm/index.d.ts +107 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +108 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/BoundedJson.d.ts +48 -0
- package/dist/esm/internal/BoundedJson.d.ts.map +1 -0
- package/dist/esm/internal/BoundedJson.js +107 -0
- package/dist/esm/internal/BoundedJson.js.map +1 -0
- package/dist/esm/internal/DeclarationSite.d.ts +135 -0
- package/dist/esm/internal/DeclarationSite.d.ts.map +1 -0
- package/dist/esm/internal/DeclarationSite.js +196 -0
- package/dist/esm/internal/DeclarationSite.js.map +1 -0
- package/dist/esm/internal/Declarations.d.ts +35 -0
- package/dist/esm/internal/Declarations.d.ts.map +1 -0
- package/dist/esm/internal/Declarations.js +43 -0
- package/dist/esm/internal/Declarations.js.map +1 -0
- package/dist/esm/internal/ExecutionMiddleware.d.ts +21 -0
- package/dist/esm/internal/ExecutionMiddleware.d.ts.map +1 -0
- package/dist/esm/internal/ExecutionMiddleware.js +13 -0
- package/dist/esm/internal/ExecutionMiddleware.js.map +1 -0
- package/dist/esm/internal/JsonSchemaSubset.d.ts +133 -0
- package/dist/esm/internal/JsonSchemaSubset.d.ts.map +1 -0
- package/dist/esm/internal/JsonSchemaSubset.js +363 -0
- package/dist/esm/internal/JsonSchemaSubset.js.map +1 -0
- package/dist/esm/internal/OutcomeMarker.d.ts +18 -0
- package/dist/esm/internal/OutcomeMarker.d.ts.map +1 -0
- package/dist/esm/internal/OutcomeMarker.js +18 -0
- package/dist/esm/internal/OutcomeMarker.js.map +1 -0
- package/docs/README.md +150 -0
- package/docs/api.md +436 -0
- package/docs/concepts/bodies-and-plans.md +157 -0
- package/docs/concepts/execution-identity.md +142 -0
- package/docs/concepts/flows-and-actions.md +129 -0
- package/docs/concepts/suspension-and-replay.md +130 -0
- package/docs/concepts/the-runtime-port.md +110 -0
- package/docs/concepts/trampoline-rounds.md +151 -0
- package/docs/guides/ask-a-person.md +184 -0
- package/docs/guides/build-a-body.md +161 -0
- package/docs/guides/cancel-and-roll-back.md +112 -0
- package/docs/guides/implement-an-action.md +147 -0
- package/docs/guides/inspect-the-plan.md +154 -0
- package/docs/guides/poll-until-ready.md +167 -0
- package/docs/guides/queue-work-to-a-worker.md +122 -0
- package/docs/guides/retry-a-failing-action.md +243 -0
- package/docs/guides/reuse-a-recorded-result.md +122 -0
- package/docs/guides/run-a-child-flow.md +108 -0
- package/docs/guides/run-an-external-job.md +86 -0
- package/docs/guides/use-a-prompt.md +38 -0
- package/docs/guides/wait-for-a-deadline.md +141 -0
- package/docs/guides/wait-for-an-external-signal.md +151 -0
- package/docs/installation.md +82 -0
- package/docs/quickstart.md +155 -0
- package/docs/reference/flow.md +1831 -0
- package/docs/testing.md +157 -0
- package/docs/troubleshooting.md +286 -0
- package/package.json +327 -3
- package/src/Action/Action.ts +333 -0
- package/src/Action/AttemptTimedOut.ts +37 -0
- package/src/Action/BoundaryMode.ts +33 -0
- package/src/Action/CacheEnvironment.ts +170 -0
- package/src/Action/ConcurrentKeylessDispatch.ts +38 -0
- package/src/Action/Context.ts +156 -0
- package/src/Action/DuplicateImplementation.ts +24 -0
- package/src/Action/FileBoundary.ts +77 -0
- package/src/Action/FileInput.ts +42 -0
- package/src/Action/Filegroup.ts +16 -0
- package/src/Action/Glob.ts +8 -0
- package/src/Action/ImplementationVersionMismatch.ts +27 -0
- package/src/Action/Implementations.ts +149 -0
- package/src/Action/InfraInterrupt.ts +30 -0
- package/src/Action/InfraInterruptRetriesExhausted.ts +37 -0
- package/src/Action/IrreversibleRetryRequiresIdempotencyKey.ts +32 -0
- package/src/Action/StepIdentity.ts +219 -0
- package/src/Action/TreeArtifact.ts +8 -0
- package/src/Action/TypeId.ts +9 -0
- package/src/Action/UncanonicalIdempotencyKey.ts +36 -0
- package/src/Action/idempotencyKey.ts +67 -0
- package/src/Action/index.ts +31 -0
- package/src/Action/make.ts +657 -0
- package/src/Action/raceAll.ts +48 -0
- package/src/Action/retry.ts +92 -0
- package/src/Deadline.ts +185 -0
- package/src/DurableClock.ts +133 -0
- package/src/DurableDeferred.ts +753 -0
- package/src/DurableQueue.ts +519 -0
- package/src/ExternalJob.ts +432 -0
- package/src/Fault.ts +279 -0
- package/src/Flow/Annotations.ts +151 -0
- package/src/Flow/CapabilityCeiling.ts +37 -0
- package/src/Flow/DeadlineExceeded.ts +40 -0
- package/src/Flow/ExecutionIdRequired.ts +36 -0
- package/src/Flow/ExecutionIds.ts +133 -0
- package/src/Flow/Flow.ts +576 -0
- package/src/Flow/MaxRoundsExceeded.ts +39 -0
- package/src/Flow/Outcome.ts +179 -0
- package/src/Flow/Result.ts +284 -0
- package/src/Flow/Runtime.ts +309 -0
- package/src/Flow/TypeId.ts +9 -0
- package/src/Flow/index.ts +19 -0
- package/src/Flow/internal.ts +237 -0
- package/src/Flow/make.ts +279 -0
- package/src/FlowRuntime/CancelRequestFailed.ts +56 -0
- package/src/FlowRuntime/ExecutionIdentityConflict.ts +32 -0
- package/src/FlowRuntime/FlowCycleDetected.ts +41 -0
- package/src/FlowRuntime/FlowExecutionNotFound.ts +46 -0
- package/src/FlowRuntime/FlowInstance.ts +128 -0
- package/src/FlowRuntime/FlowRuntime.ts +333 -0
- package/src/FlowRuntime/NodeRecord.ts +183 -0
- package/src/FlowRuntime/WaitingAnnotation.ts +85 -0
- package/src/FlowRuntime/index.ts +17 -0
- package/src/Graph.ts +1862 -0
- package/src/HumanTask.ts +1003 -0
- package/src/Interpreter.ts +1593 -0
- package/src/Poll.ts +414 -0
- package/src/RetryPolicy.ts +550 -0
- package/src/Sleep.ts +267 -0
- package/src/Stall.ts +217 -0
- package/src/WaitFor.ts +228 -0
- package/src/index.ts +125 -0
- package/src/internal/BoundedJson.ts +109 -0
- package/src/internal/DeclarationSite.ts +214 -0
- package/src/internal/Declarations.ts +49 -0
- package/src/internal/ExecutionMiddleware.ts +29 -0
- package/src/internal/JsonSchemaSubset.ts +392 -0
- package/src/internal/OutcomeMarker.ts +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,330 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smthrs/flow",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0-rc.4",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"smthrs": {
|
|
7
|
+
"group": "engine"
|
|
8
|
+
},
|
|
9
|
+
"description": "The flow authoring model: flows, actions, durable waits, retry policy, and the runtime port they execute against",
|
|
10
|
+
"homepage": "https://github.com/smithersai/smithers",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/smithersai/smithers.git",
|
|
14
|
+
"directory": "packages/smithers/flows/flow"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/smithersai/smithers/issues"
|
|
18
|
+
},
|
|
19
|
+
"tags": [
|
|
20
|
+
"typescript",
|
|
21
|
+
"effect",
|
|
22
|
+
"flow",
|
|
23
|
+
"durability"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"typescript",
|
|
27
|
+
"effect",
|
|
28
|
+
"flow",
|
|
29
|
+
"durability"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=26.4.0"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": [],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
".": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/esm/index.d.ts",
|
|
40
|
+
"default": "./dist/esm/index.js"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/cjs/index.d.ts",
|
|
44
|
+
"default": "./dist/cjs/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./Action": {
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/esm/Action/index.d.ts",
|
|
50
|
+
"default": "./dist/esm/Action/index.js"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/cjs/Action/index.d.ts",
|
|
54
|
+
"default": "./dist/cjs/Action/index.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"./Action/*": null,
|
|
58
|
+
"./CacheEnvironment": {
|
|
59
|
+
"import": {
|
|
60
|
+
"types": "./dist/esm/Action/CacheEnvironment.d.ts",
|
|
61
|
+
"default": "./dist/esm/Action/CacheEnvironment.js"
|
|
62
|
+
},
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/cjs/Action/CacheEnvironment.d.ts",
|
|
65
|
+
"default": "./dist/cjs/Action/CacheEnvironment.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"./FileBoundary": {
|
|
69
|
+
"import": {
|
|
70
|
+
"types": "./dist/esm/Action/FileBoundary.d.ts",
|
|
71
|
+
"default": "./dist/esm/Action/FileBoundary.js"
|
|
72
|
+
},
|
|
73
|
+
"require": {
|
|
74
|
+
"types": "./dist/cjs/Action/FileBoundary.d.ts",
|
|
75
|
+
"default": "./dist/cjs/Action/FileBoundary.js"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"./FileInput": {
|
|
79
|
+
"import": {
|
|
80
|
+
"types": "./dist/esm/Action/FileInput.d.ts",
|
|
81
|
+
"default": "./dist/esm/Action/FileInput.js"
|
|
82
|
+
},
|
|
83
|
+
"require": {
|
|
84
|
+
"types": "./dist/cjs/Action/FileInput.d.ts",
|
|
85
|
+
"default": "./dist/cjs/Action/FileInput.js"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"./Flow": {
|
|
89
|
+
"import": {
|
|
90
|
+
"types": "./dist/esm/Flow/index.d.ts",
|
|
91
|
+
"default": "./dist/esm/Flow/index.js"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/cjs/Flow/index.d.ts",
|
|
95
|
+
"default": "./dist/cjs/Flow/index.js"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"./Flow/*": null,
|
|
99
|
+
"./FlowRuntime": {
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/esm/FlowRuntime/index.d.ts",
|
|
102
|
+
"default": "./dist/esm/FlowRuntime/index.js"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./dist/cjs/FlowRuntime/index.d.ts",
|
|
106
|
+
"default": "./dist/cjs/FlowRuntime/index.js"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"./FlowRuntime/*": null,
|
|
110
|
+
"./StepIdentity": {
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/esm/Action/StepIdentity.d.ts",
|
|
113
|
+
"default": "./dist/esm/Action/StepIdentity.js"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/cjs/Action/StepIdentity.d.ts",
|
|
117
|
+
"default": "./dist/cjs/Action/StepIdentity.js"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"./internal/*": null,
|
|
121
|
+
"./*/index": null,
|
|
122
|
+
"./Deadline": {
|
|
123
|
+
"import": {
|
|
124
|
+
"types": "./dist/esm/Deadline.d.ts",
|
|
125
|
+
"default": "./dist/esm/Deadline.js"
|
|
126
|
+
},
|
|
127
|
+
"require": {
|
|
128
|
+
"types": "./dist/cjs/Deadline.d.ts",
|
|
129
|
+
"default": "./dist/cjs/Deadline.js"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"./DurableClock": {
|
|
133
|
+
"import": {
|
|
134
|
+
"types": "./dist/esm/DurableClock.d.ts",
|
|
135
|
+
"default": "./dist/esm/DurableClock.js"
|
|
136
|
+
},
|
|
137
|
+
"require": {
|
|
138
|
+
"types": "./dist/cjs/DurableClock.d.ts",
|
|
139
|
+
"default": "./dist/cjs/DurableClock.js"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"./DurableDeferred": {
|
|
143
|
+
"import": {
|
|
144
|
+
"types": "./dist/esm/DurableDeferred.d.ts",
|
|
145
|
+
"default": "./dist/esm/DurableDeferred.js"
|
|
146
|
+
},
|
|
147
|
+
"require": {
|
|
148
|
+
"types": "./dist/cjs/DurableDeferred.d.ts",
|
|
149
|
+
"default": "./dist/cjs/DurableDeferred.js"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"./DurableQueue": {
|
|
153
|
+
"import": {
|
|
154
|
+
"types": "./dist/esm/DurableQueue.d.ts",
|
|
155
|
+
"default": "./dist/esm/DurableQueue.js"
|
|
156
|
+
},
|
|
157
|
+
"require": {
|
|
158
|
+
"types": "./dist/cjs/DurableQueue.d.ts",
|
|
159
|
+
"default": "./dist/cjs/DurableQueue.js"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"./ExternalJob": {
|
|
163
|
+
"import": {
|
|
164
|
+
"types": "./dist/esm/ExternalJob.d.ts",
|
|
165
|
+
"default": "./dist/esm/ExternalJob.js"
|
|
166
|
+
},
|
|
167
|
+
"require": {
|
|
168
|
+
"types": "./dist/cjs/ExternalJob.d.ts",
|
|
169
|
+
"default": "./dist/cjs/ExternalJob.js"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"./Fault": {
|
|
173
|
+
"import": {
|
|
174
|
+
"types": "./dist/esm/Fault.d.ts",
|
|
175
|
+
"default": "./dist/esm/Fault.js"
|
|
176
|
+
},
|
|
177
|
+
"require": {
|
|
178
|
+
"types": "./dist/cjs/Fault.d.ts",
|
|
179
|
+
"default": "./dist/cjs/Fault.js"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"./Graph": {
|
|
183
|
+
"import": {
|
|
184
|
+
"types": "./dist/esm/Graph.d.ts",
|
|
185
|
+
"default": "./dist/esm/Graph.js"
|
|
186
|
+
},
|
|
187
|
+
"require": {
|
|
188
|
+
"types": "./dist/cjs/Graph.d.ts",
|
|
189
|
+
"default": "./dist/cjs/Graph.js"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"./HumanTask": {
|
|
193
|
+
"import": {
|
|
194
|
+
"types": "./dist/esm/HumanTask.d.ts",
|
|
195
|
+
"default": "./dist/esm/HumanTask.js"
|
|
196
|
+
},
|
|
197
|
+
"require": {
|
|
198
|
+
"types": "./dist/cjs/HumanTask.d.ts",
|
|
199
|
+
"default": "./dist/cjs/HumanTask.js"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"./Interpreter": {
|
|
203
|
+
"import": {
|
|
204
|
+
"types": "./dist/esm/Interpreter.d.ts",
|
|
205
|
+
"default": "./dist/esm/Interpreter.js"
|
|
206
|
+
},
|
|
207
|
+
"require": {
|
|
208
|
+
"types": "./dist/cjs/Interpreter.d.ts",
|
|
209
|
+
"default": "./dist/cjs/Interpreter.js"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"./Poll": {
|
|
213
|
+
"import": {
|
|
214
|
+
"types": "./dist/esm/Poll.d.ts",
|
|
215
|
+
"default": "./dist/esm/Poll.js"
|
|
216
|
+
},
|
|
217
|
+
"require": {
|
|
218
|
+
"types": "./dist/cjs/Poll.d.ts",
|
|
219
|
+
"default": "./dist/cjs/Poll.js"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"./RetryPolicy": {
|
|
223
|
+
"import": {
|
|
224
|
+
"types": "./dist/esm/RetryPolicy.d.ts",
|
|
225
|
+
"default": "./dist/esm/RetryPolicy.js"
|
|
226
|
+
},
|
|
227
|
+
"require": {
|
|
228
|
+
"types": "./dist/cjs/RetryPolicy.d.ts",
|
|
229
|
+
"default": "./dist/cjs/RetryPolicy.js"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"./Sleep": {
|
|
233
|
+
"import": {
|
|
234
|
+
"types": "./dist/esm/Sleep.d.ts",
|
|
235
|
+
"default": "./dist/esm/Sleep.js"
|
|
236
|
+
},
|
|
237
|
+
"require": {
|
|
238
|
+
"types": "./dist/cjs/Sleep.d.ts",
|
|
239
|
+
"default": "./dist/cjs/Sleep.js"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"./Stall": {
|
|
243
|
+
"import": {
|
|
244
|
+
"types": "./dist/esm/Stall.d.ts",
|
|
245
|
+
"default": "./dist/esm/Stall.js"
|
|
246
|
+
},
|
|
247
|
+
"require": {
|
|
248
|
+
"types": "./dist/cjs/Stall.d.ts",
|
|
249
|
+
"default": "./dist/cjs/Stall.js"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"./WaitFor": {
|
|
253
|
+
"import": {
|
|
254
|
+
"types": "./dist/esm/WaitFor.d.ts",
|
|
255
|
+
"default": "./dist/esm/WaitFor.js"
|
|
256
|
+
},
|
|
257
|
+
"require": {
|
|
258
|
+
"types": "./dist/cjs/WaitFor.d.ts",
|
|
259
|
+
"default": "./dist/cjs/WaitFor.js"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"./index": {
|
|
263
|
+
"import": {
|
|
264
|
+
"types": "./dist/esm/index.d.ts",
|
|
265
|
+
"default": "./dist/esm/index.js"
|
|
266
|
+
},
|
|
267
|
+
"require": {
|
|
268
|
+
"types": "./dist/cjs/index.d.ts",
|
|
269
|
+
"default": "./dist/cjs/index.js"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"files": [
|
|
274
|
+
"src/**/*.ts",
|
|
275
|
+
"dist/**/*.js",
|
|
276
|
+
"dist/**/*.js.map",
|
|
277
|
+
"dist/**/*.d.ts",
|
|
278
|
+
"dist/**/*.d.ts.map",
|
|
279
|
+
"dist/**/package.json",
|
|
280
|
+
"LICENSE",
|
|
281
|
+
"THIRD_PARTY_NOTICES.md",
|
|
282
|
+
"README.md",
|
|
283
|
+
"CHANGELOG.md",
|
|
284
|
+
"docs/"
|
|
285
|
+
],
|
|
286
|
+
"publishConfig": {
|
|
287
|
+
"access": "public",
|
|
288
|
+
"provenance": true,
|
|
289
|
+
"tag": "next"
|
|
290
|
+
},
|
|
291
|
+
"dependencies": {
|
|
292
|
+
"@smthrs/crypto": "1.0.0-rc.4",
|
|
293
|
+
"@smthrs/keys": "1.0.0-rc.4",
|
|
294
|
+
"@smthrs/plan": "1.0.0-rc.4",
|
|
295
|
+
"@smthrs/canonical": "1.0.0-rc.4",
|
|
296
|
+
"@smthrs/capability": "1.0.0-rc.4"
|
|
297
|
+
},
|
|
298
|
+
"devDependencies": {
|
|
299
|
+
"@effect/language-service": "0.87.2",
|
|
300
|
+
"@effect/platform-node": "4.0.0-rc.115",
|
|
301
|
+
"@effect/vitest": "4.0.0-rc.115",
|
|
302
|
+
"@eslint/js": "9.39.5",
|
|
303
|
+
"@types/node": "26.4.1",
|
|
304
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
305
|
+
"dprint": "0.57.1",
|
|
306
|
+
"effect": "4.0.0-rc.115",
|
|
307
|
+
"esbuild": "0.28.2",
|
|
308
|
+
"eslint": "9.39.5",
|
|
309
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
310
|
+
"eslint-plugin-import": "2.32.0",
|
|
311
|
+
"eslint-plugin-jsdoc": "64.3.4",
|
|
312
|
+
"eslint-plugin-unicorn": "65.0.0",
|
|
313
|
+
"madge": "8.0.0",
|
|
314
|
+
"typescript": "5.9.3",
|
|
315
|
+
"typescript-eslint": "8.69.0",
|
|
316
|
+
"vitest": "5.0.0"
|
|
317
|
+
},
|
|
318
|
+
"peerDependencies": {
|
|
319
|
+
"effect": "4.0.0-rc.115"
|
|
320
|
+
},
|
|
321
|
+
"scripts": {
|
|
322
|
+
"lint": "eslint src --max-warnings=0 && dprint check",
|
|
323
|
+
"format": "dprint fmt",
|
|
324
|
+
"build": "node scripts/build.mjs",
|
|
325
|
+
"check": "tsc -b tsconfig.json && tsc -p tsconfig.test.json --noEmit",
|
|
326
|
+
"circular": "node scripts/circular.mjs",
|
|
327
|
+
"test": "vitest",
|
|
328
|
+
"coverage": "vitest --coverage --coverage.reportsDirectory=coverage"
|
|
329
|
+
}
|
|
6
330
|
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
// Deep reviewed and polished by a human on 2026-08-10.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Defines the schemas and interfaces of a durable action.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import * as Effects from "@smthrs/plan/Effects"
|
|
10
|
+
import type * as Node from "@smthrs/plan/Node"
|
|
11
|
+
import type * as Planned from "@smthrs/plan/Planned"
|
|
12
|
+
import type * as Context from "effect/Context"
|
|
13
|
+
import type * as Crypto from "effect/Crypto"
|
|
14
|
+
import type * as Effect from "effect/Effect"
|
|
15
|
+
import type * as Layer from "effect/Layer"
|
|
16
|
+
import * as Schema from "effect/Schema"
|
|
17
|
+
import type { Scope } from "effect/Scope"
|
|
18
|
+
import type { AnyStructSchema } from "../Flow/Flow.ts"
|
|
19
|
+
import type { FlowInstance, FlowRuntime } from "../FlowRuntime/index.ts"
|
|
20
|
+
import type * as RetryPolicy from "../RetryPolicy.ts"
|
|
21
|
+
import type { FileBoundary } from "./FileBoundary.ts"
|
|
22
|
+
import type { Implementation } from "./Implementations.ts"
|
|
23
|
+
import type { TypeId } from "./TypeId.ts"
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The durability and retry semantics of an action.
|
|
27
|
+
*
|
|
28
|
+
* The schema is `@smthrs/plan`'s `Effects.Tier`: an action's durability, a
|
|
29
|
+
* declared envelope's ceiling and `KeyMaterial.kind` are the same three words,
|
|
30
|
+
* and they are declared once.
|
|
31
|
+
*
|
|
32
|
+
* @category models
|
|
33
|
+
* @since 0.1.0
|
|
34
|
+
*/
|
|
35
|
+
export const Tier = Effects.Tier
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The durability and retry semantics of an action.
|
|
39
|
+
*
|
|
40
|
+
* @category models
|
|
41
|
+
* @since 0.1.0
|
|
42
|
+
*/
|
|
43
|
+
export type Tier = Effects.Tier
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Schema for caller-declared sealed action identity.
|
|
47
|
+
*
|
|
48
|
+
* @category models
|
|
49
|
+
* @since 0.1.0
|
|
50
|
+
*/
|
|
51
|
+
export const IdempotencyKey = Schema.Union([
|
|
52
|
+
Schema.String,
|
|
53
|
+
Schema.Record(Schema.String, Schema.Json)
|
|
54
|
+
])
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Caller-declared sealed action identity.
|
|
58
|
+
*
|
|
59
|
+
* A string is namespaced by the action declaration. A JSON object is
|
|
60
|
+
* caller-owned and remains stable across action renames. Runtime
|
|
61
|
+
* environment and filesystem facts are always added by the engine. An explicit
|
|
62
|
+
* implementation version is also separate engine key material; a caller-owned
|
|
63
|
+
* object cannot mask it with a field of the same name.
|
|
64
|
+
*
|
|
65
|
+
* @category models
|
|
66
|
+
* @since 0.1.0
|
|
67
|
+
*/
|
|
68
|
+
export type IdempotencyKey = typeof IdempotencyKey.Type
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Recursively permits planned references wherever a declared action payload
|
|
72
|
+
* accepts a concrete value.
|
|
73
|
+
*
|
|
74
|
+
* @category models
|
|
75
|
+
* @since 0.1.0
|
|
76
|
+
*/
|
|
77
|
+
export type PlannedPayload<T> =
|
|
78
|
+
| Planned.Planned<T>
|
|
79
|
+
| ([T] extends [ReadonlyArray<infer Value>] ? ReadonlyArray<PlannedPayload<Value>>
|
|
80
|
+
: [T] extends [object] ? { readonly [Key in keyof T]: PlannedPayload<T[Key]> }
|
|
81
|
+
: T)
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The requirement one declared action mints for itself, identified by its
|
|
85
|
+
* tag.
|
|
86
|
+
*
|
|
87
|
+
* A declaration is data that travels everywhere and carries no code, so a body
|
|
88
|
+
* that calls it names an implementation it does not hold. This type is that
|
|
89
|
+
* "does not hold", stated to the compiler: `Charge.call(...)` produces a node
|
|
90
|
+
* requiring `Requirement<"payments/Charge">`, `Charge.toLayer(...)` produces a
|
|
91
|
+
* layer providing it, and `Flow.execute` is where the two have to meet. It is
|
|
92
|
+
* phantom — nothing reads it, and nothing about planning, keying, or replay
|
|
93
|
+
* changes with it.
|
|
94
|
+
*
|
|
95
|
+
* @category models
|
|
96
|
+
* @since 0.1.0
|
|
97
|
+
*/
|
|
98
|
+
export interface Requirement<Tag extends string> {
|
|
99
|
+
readonly _: unique symbol
|
|
100
|
+
readonly _tag: Tag
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* A named action declaration whose implementation is supplied separately
|
|
105
|
+
* through a layer and whose calls only add nodes to a plan.
|
|
106
|
+
*
|
|
107
|
+
* `Requires` is what `.call()` puts in the requirement channel of the node it
|
|
108
|
+
* records. It is this action's own {@link Requirement} for an ordinary
|
|
109
|
+
* declaration, and `never` for a system declaration the engine itself
|
|
110
|
+
* implements ({@link module:make.makeSystem}).
|
|
111
|
+
*
|
|
112
|
+
* @category models
|
|
113
|
+
* @since 0.1.0
|
|
114
|
+
*/
|
|
115
|
+
export interface Declared<
|
|
116
|
+
Tag extends string,
|
|
117
|
+
Payload extends AnyStructSchema,
|
|
118
|
+
Success extends Schema.Top,
|
|
119
|
+
Error extends Schema.Top,
|
|
120
|
+
Requires = Requirement<Tag>
|
|
121
|
+
> {
|
|
122
|
+
readonly [TypeId]: typeof TypeId
|
|
123
|
+
readonly name: Tag
|
|
124
|
+
/**
|
|
125
|
+
* Semantic implementation identity. Changing it requires a newly planned
|
|
126
|
+
* execution; it is not an in-place upgrade of a persisted run. Canonical
|
|
127
|
+
* composition requires it for sealed actions with an idempotency key.
|
|
128
|
+
* Invocation-scoped actions may omit it; low-level keyed legacy callers
|
|
129
|
+
* retain their old handler-reuse contract when it is absent.
|
|
130
|
+
*/
|
|
131
|
+
readonly implementationVersion: string | undefined
|
|
132
|
+
readonly payloadSchema: Payload
|
|
133
|
+
readonly successSchema: Success
|
|
134
|
+
readonly errorSchema: Error
|
|
135
|
+
readonly tier: Tier
|
|
136
|
+
readonly idempotencyKey: IdempotencyKey | ((payload: Payload["Type"]) => IdempotencyKey) | undefined
|
|
137
|
+
/** Allows multiple legitimate sealed results to race under one cache key. */
|
|
138
|
+
readonly nondeterministic: true | undefined
|
|
139
|
+
/** Durable retry policy applied to every implementation invocation. */
|
|
140
|
+
readonly retryPolicy: RetryPolicy.RetryPolicy | undefined
|
|
141
|
+
/** Milliseconds one attempt may run before it fails with `AttemptTimedOut`. */
|
|
142
|
+
readonly attemptTimeoutMs: number | undefined
|
|
143
|
+
/** Milliseconds one attempt may go without `Action.heartbeat` before it fails. */
|
|
144
|
+
readonly heartbeatTimeoutMs: number | undefined
|
|
145
|
+
/** Filesystem declaration, optionally derived from the decoded payload. */
|
|
146
|
+
readonly fileBoundary: FileBoundary | ((payload: Payload["Type"]) => FileBoundary) | undefined
|
|
147
|
+
readonly annotations: Context.Context<never>
|
|
148
|
+
/**
|
|
149
|
+
* The context key this declaration's implementation is provided under, and
|
|
150
|
+
* the identity behind {@link Requirement}.
|
|
151
|
+
*
|
|
152
|
+
* `toLayer` provides it; a composition that would rather hand the runtime an
|
|
153
|
+
* implementation directly can provide it itself with `Layer.succeed`. Its
|
|
154
|
+
* string key is derived from the action tag, so two declarations of one tag
|
|
155
|
+
* name one slot.
|
|
156
|
+
*/
|
|
157
|
+
readonly requirement: Context.Service<Requirement<Tag>, Implementation>
|
|
158
|
+
annotate<I, S>(key: Context.Key<I, S>, value: S): Declared<Tag, Payload, Success, Error, Requires>
|
|
159
|
+
annotateMerge<I>(annotations: Context.Context<I>): Declared<Tag, Payload, Success, Error, Requires>
|
|
160
|
+
readonly call: (
|
|
161
|
+
payload: PlannedPayload<Payload["~type.make.in"]>
|
|
162
|
+
) => Node.Node<Success["Type"], Error["Type"], Requires>
|
|
163
|
+
/**
|
|
164
|
+
* Attaches the implementation and yields the layer that provides this
|
|
165
|
+
* declaration's {@link Requirement}. A versioned declaration requires the
|
|
166
|
+
* same `implementationVersion` here; a mismatch throws
|
|
167
|
+
* `ImplementationVersionMismatch` before registration. The version must cover
|
|
168
|
+
* handler semantics and semantic service/configuration changes, not merely a
|
|
169
|
+
* package publication label. Source text is never inferred as that identity.
|
|
170
|
+
*
|
|
171
|
+
* Let inference name the returned layer's requirements. The requirement
|
|
172
|
+
* channel is what a composition trusts: a layer type that under-declares it
|
|
173
|
+
* still typechecks at `Effect.provide` and dies at runtime as a missing
|
|
174
|
+
* service. A concrete hand annotation cannot lie — dropping a service from
|
|
175
|
+
* it is a compile error — but a GENERIC one can: when the annotated
|
|
176
|
+
* requirement union keeps a deferred member such as
|
|
177
|
+
* `Output["DecodingServices"]` (constrained only as `unknown` through
|
|
178
|
+
* `Schema.Top`), TypeScript lets that member absorb every concrete service
|
|
179
|
+
* the annotation dropped, and the drop compiles. A wrapper that must
|
|
180
|
+
* annotate — a public interface naming its layer's type, say — therefore
|
|
181
|
+
* pins the set at a concrete instantiation, where the check works again:
|
|
182
|
+
*
|
|
183
|
+
* ```ts
|
|
184
|
+
* // Wrapped.layer is the wrapper's hand-annotated toLayer result, held
|
|
185
|
+
* // here with every schema argument concrete.
|
|
186
|
+
* type Needed = Layer.Services<typeof Wrapped.layer>
|
|
187
|
+
* expectTypeOf<Meter extends Needed ? true : false>().toEqualTypeOf<true>()
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
readonly toLayer: <R>(
|
|
191
|
+
execute: (payload: Payload["Type"]) => Effect.Effect<Success["Type"], Error["Type"], R>,
|
|
192
|
+
options?: {
|
|
193
|
+
readonly override?: boolean
|
|
194
|
+
/** Must exactly match the declaration, including absence on legacy declarations. */
|
|
195
|
+
readonly implementationVersion?: string | undefined
|
|
196
|
+
}
|
|
197
|
+
) => Layer.Layer<
|
|
198
|
+
Requires,
|
|
199
|
+
never,
|
|
200
|
+
| FlowRuntime
|
|
201
|
+
| Exclude<R, FlowRuntime | FlowInstance | Scope>
|
|
202
|
+
| Payload["DecodingServices"]
|
|
203
|
+
| Payload["EncodingServices"]
|
|
204
|
+
| Success["DecodingServices"]
|
|
205
|
+
| Success["EncodingServices"]
|
|
206
|
+
| Error["DecodingServices"]
|
|
207
|
+
| Error["EncodingServices"]
|
|
208
|
+
>
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Durable flow action that behaves as an `Effect` and records its name,
|
|
213
|
+
* result schemas, annotations, and encoded execution form for the flow
|
|
214
|
+
* engine.
|
|
215
|
+
*
|
|
216
|
+
* @category models
|
|
217
|
+
* @since 0.1.0
|
|
218
|
+
*/
|
|
219
|
+
export interface Action<
|
|
220
|
+
Success extends Schema.Constraint = Schema.Void,
|
|
221
|
+
Error extends Schema.Constraint = Schema.Never,
|
|
222
|
+
R = never
|
|
223
|
+
> extends
|
|
224
|
+
Effect.Effect<
|
|
225
|
+
Success["Type"],
|
|
226
|
+
Error["Type"],
|
|
227
|
+
| Success["DecodingServices"]
|
|
228
|
+
| Error["DecodingServices"]
|
|
229
|
+
| R
|
|
230
|
+
| Crypto.Crypto
|
|
231
|
+
| FlowRuntime
|
|
232
|
+
| FlowInstance
|
|
233
|
+
>
|
|
234
|
+
{
|
|
235
|
+
readonly [TypeId]: typeof TypeId
|
|
236
|
+
readonly name: string
|
|
237
|
+
readonly implementationVersion?: string | undefined
|
|
238
|
+
readonly successSchema: Success
|
|
239
|
+
readonly errorSchema: Error
|
|
240
|
+
readonly exitSchema: Schema.Exit<Success, Error, Schema.Defect>
|
|
241
|
+
readonly exitSchemaPartial: Schema.Exit<Success, Error, Schema.Unknown>
|
|
242
|
+
readonly annotations: Context.Context<never>
|
|
243
|
+
readonly tier: Tier
|
|
244
|
+
readonly idempotencyKey: IdempotencyKey | undefined
|
|
245
|
+
/** Allows multiple legitimate sealed results to race under one cache key. */
|
|
246
|
+
readonly nondeterministic: true | undefined
|
|
247
|
+
readonly metadata: unknown
|
|
248
|
+
/** Typed filesystem boundary used by the durable engine. */
|
|
249
|
+
readonly fileBoundary: FileBoundary | undefined
|
|
250
|
+
readonly retryPolicy: RetryPolicy.RetryPolicy | undefined
|
|
251
|
+
/** Milliseconds one attempt may run before it fails with `AttemptTimedOut`. */
|
|
252
|
+
readonly attemptTimeoutMs: number | undefined
|
|
253
|
+
/** Milliseconds one attempt may go without `Action.heartbeat` before it fails. */
|
|
254
|
+
readonly heartbeatTimeoutMs: number | undefined
|
|
255
|
+
annotate<I, S>(
|
|
256
|
+
key: Context.Key<I, S>,
|
|
257
|
+
value: S
|
|
258
|
+
): Action<Success, Error, R>
|
|
259
|
+
annotateMerge<I>(
|
|
260
|
+
annotations: Context.Context<I>
|
|
261
|
+
): Action<Success, Error, R>
|
|
262
|
+
readonly execute: Effect.Effect<
|
|
263
|
+
Success["Type"],
|
|
264
|
+
Error["Type"],
|
|
265
|
+
| Success["DecodingServices"]
|
|
266
|
+
| Success["EncodingServices"]
|
|
267
|
+
| Error["DecodingServices"]
|
|
268
|
+
| Error["EncodingServices"]
|
|
269
|
+
| R
|
|
270
|
+
| Crypto.Crypto
|
|
271
|
+
| Scope
|
|
272
|
+
| FlowRuntime
|
|
273
|
+
| FlowInstance
|
|
274
|
+
>
|
|
275
|
+
readonly executeEncoded: Effect.Effect<
|
|
276
|
+
unknown,
|
|
277
|
+
unknown,
|
|
278
|
+
| Success["DecodingServices"]
|
|
279
|
+
| Success["EncodingServices"]
|
|
280
|
+
| Error["DecodingServices"]
|
|
281
|
+
| Error["EncodingServices"]
|
|
282
|
+
| R
|
|
283
|
+
| Crypto.Crypto
|
|
284
|
+
| Scope
|
|
285
|
+
| FlowRuntime
|
|
286
|
+
| FlowInstance
|
|
287
|
+
>
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Type-erased action shape for APIs that only need the action identity,
|
|
292
|
+
* name, annotations, and encoded execution.
|
|
293
|
+
*
|
|
294
|
+
* @category models
|
|
295
|
+
* @since 0.1.0
|
|
296
|
+
*/
|
|
297
|
+
export interface Any {
|
|
298
|
+
readonly [TypeId]: typeof TypeId
|
|
299
|
+
readonly name: string
|
|
300
|
+
readonly implementationVersion?: string | undefined
|
|
301
|
+
readonly executeEncoded: Effect.Effect<any, any, any>
|
|
302
|
+
readonly annotations: Context.Context<never>
|
|
303
|
+
readonly tier: Tier
|
|
304
|
+
readonly idempotencyKey: IdempotencyKey | undefined
|
|
305
|
+
readonly nondeterministic: true | undefined
|
|
306
|
+
readonly metadata: unknown
|
|
307
|
+
/** Typed filesystem boundary used by the durable engine. */
|
|
308
|
+
readonly fileBoundary: FileBoundary | undefined
|
|
309
|
+
readonly retryPolicy: RetryPolicy.RetryPolicy | undefined
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Type-erased action shape that also exposes success and error schemas for
|
|
314
|
+
* derived flow APIs.
|
|
315
|
+
*
|
|
316
|
+
* @category models
|
|
317
|
+
* @since 0.1.0
|
|
318
|
+
*/
|
|
319
|
+
export interface AnyWithProps {
|
|
320
|
+
readonly [TypeId]: typeof TypeId
|
|
321
|
+
readonly name: string
|
|
322
|
+
readonly implementationVersion?: string | undefined
|
|
323
|
+
readonly successSchema: Schema.Top
|
|
324
|
+
readonly errorSchema: Schema.Top
|
|
325
|
+
readonly executeEncoded: Effect.Effect<any, any, any>
|
|
326
|
+
readonly tier: Tier
|
|
327
|
+
readonly idempotencyKey: IdempotencyKey | undefined
|
|
328
|
+
readonly nondeterministic: true | undefined
|
|
329
|
+
readonly metadata: unknown
|
|
330
|
+
/** Typed filesystem boundary used by the durable engine. */
|
|
331
|
+
readonly fileBoundary: FileBoundary | undefined
|
|
332
|
+
readonly retryPolicy: RetryPolicy.RetryPolicy | undefined
|
|
333
|
+
}
|