"""Platform-wide action registry.

The catalogue of declarative business operations. Re-exports the
registry the AI layer owns so non-AI callers don't appear to depend on
``simorgh.apps.ai`` for the platform's core action surface.

Modules SHOULD import from here:

    from simorgh.core.actions import ActionSpec, ActionParam, register_action
"""

from __future__ import annotations

from simorgh.apps.ai.actions import (
    ActionError,
    ActionParam,
    ActionSpec,
    get_action,
    list_actions,
    register_action,
    reset_for_tests,
    serialize_action,
    validate_payload,
)

__all__ = (
    "ActionError",
    "ActionParam",
    "ActionSpec",
    "get_action",
    "list_actions",
    "register_action",
    "reset_for_tests",
    "serialize_action",
    "validate_payload",
)
