"""Model for ows-notifications.""" from typing import Any from owsrequest import request from video import config from video.constants import service def create_notification(payload: dict[str, Any]) -> Any: """Add notification. Args: payload (dict[str, Any]): notification payload data. Returns: HTTP response from the notifications service """ notifications_response = request.process( application=config.SERVICE_NAME, environment=config.ENVIRONMENT, method="POST", service_name=service.OWS_NOTIFICATIONS, path="/activity", uwsgi_cache_enabled=True, json=payload, ) return notifications_response