SapaOperation
A public SAPA boundary that decodes unknown input and requires a composed Sapa service.
Declaration
Section titled “Declaration”type SapaOperation<Success, Failure> = (input) => Effect.Effect<Success, Failure, SapaService>;Type Parameters
Section titled “Type Parameters”Success
Section titled “Success”Success
Value returned after the command or query succeeds.
Failure
Section titled “Failure”Failure
Sanitized expected failure returned in the Effect error channel.
Parameters
Section titled “Parameters”unknown
Untrusted boundary input decoded by the operation’s public Schema.
Returns
Section titled “Returns”Effect.Effect<Success, Failure, SapaService>
An Effect requiring the request-scoped SapaService.