Add the experience service with sites through analytics/AI hooks, migrations through 0011, and phase docs/manifests marking the track complete. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
793 B
Python
20 lines
793 B
Python
"""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)
|