Skip to content

SapaOperation

A public SAPA boundary that decodes unknown input and requires a composed Sapa service.

type SapaOperation<Success, Failure> = (input) => Effect.Effect<Success, Failure, SapaService>;

Success

Value returned after the command or query succeeds.

Failure

Sanitized expected failure returned in the Effect error channel.

unknown

Untrusted boundary input decoded by the operation’s public Schema.

Effect.Effect<Success, Failure, SapaService>

An Effect requiring the request-scoped SapaService.