corvix.web.actions ================== .. py:module:: corvix.web.actions .. autoapi-nested-parse:: Notification action helpers: dismiss and mark-read against GitHub + storage. These plain (non-decorated) functions carry the business logic behind the ``/api/v1/notifications/{account_id}/{thread_id}/dismiss`` and ``.../mark-read`` route handlers. ``_require_account`` and ``_build_github_client`` are shared with the rule-snippet builder. Attributes ---------- .. autoapisummary:: corvix.web.actions.logger Functions --------- .. autoapisummary:: corvix.web.actions._require_account corvix.web.actions._build_github_client corvix.web.actions._dismiss_notification_impl corvix.web.actions._mark_notification_read_impl Module Contents --------------- .. py:data:: logger .. py:function:: _require_account(config: corvix.config.AppConfig, account_id: str) -> corvix.config.GitHubAccountConfig .. py:function:: _build_github_client(config: corvix.config.AppConfig, account: corvix.config.GitHubAccountConfig, token: str) -> corvix.ingestion.GitHubNotificationsClient .. py:function:: _dismiss_notification_impl(account_id: str, thread_id: str) -> litestar.Response[None] .. py:function:: _mark_notification_read_impl(account_id: str, thread_id: str) -> litestar.Response[None]