"""Query handlers for Phase 11.10 AI content hooks."""
from app.services.ai_hooks import ExperienceAiHooksService


class AiHooksQueries:
    def __init__(self, session):
        self.service = ExperienceAiHooksService(session)

    async def get_hook_registration(self, tenant_id, entity_id):
        return await self.service.get_hook_registration(tenant_id, entity_id)

    async def list_hook_registrations(self, tenant_id, **kwargs):
        return await self.service.list_hook_registrations(tenant_id, **kwargs)

    async def get_dispatch(self, tenant_id, entity_id):
        return await self.service.get_dispatch(tenant_id, entity_id)

    async def list_dispatches(self, tenant_id, **kwargs):
        return await self.service.list_dispatches(tenant_id, **kwargs)
