Library-owned impersonation orchestration over real Sigra sessions.
Summary
Types
@type restore_decision() :: {:admin_session, binary()} | :login_required
Functions
@spec evaluate_timeout(Sigra.Config.t(), struct(), Sigra.Session.t(), keyword()) :: {:ok, map()}
@spec start( Sigra.Config.t(), Sigra.Admin.Scope.t(), Sigra.Session.t(), struct() | map(), keyword() ) :: {:ok, map()} | {:error, :already_impersonating | :not_allowed | term()}
@spec stop(Sigra.Config.t(), struct(), Sigra.Session.t(), keyword()) :: {:ok, map()}