"""Federation app service registration."""
from __future__ import annotations


def register_domain_services() -> None:
    """Register services for the federation app.

    Federation owns: ActorProfile, APActivity, APFollower, APInboxItem,
    APAnchor, IPFSPin.
    Cross-app calls go over HTTP via call_action() / fetch_data().
    """
    from shared.services.registry import services
    from shared.services.federation_impl import SqlFederationService

    services.federation = SqlFederationService()

    from .federation_page import FederationPageService
    services.register("federation_page", FederationPageService())
