corvix.web.actions

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

Functions

_require_account(→ corvix.config.GitHubAccountConfig)

_build_github_client(...)

_dismiss_notification_impl(→ litestar.Response[None])

_mark_notification_read_impl(→ litestar.Response[None])

Module Contents

corvix.web.actions.logger[source][source]
corvix.web.actions._require_account(config: corvix.config.AppConfig, account_id: str) corvix.config.GitHubAccountConfig[source][source]
corvix.web.actions._build_github_client(config: corvix.config.AppConfig, account: corvix.config.GitHubAccountConfig, token: str) corvix.ingestion.GitHubNotificationsClient[source][source]
corvix.web.actions._dismiss_notification_impl(account_id: str, thread_id: str) litestar.Response[None][source][source]
corvix.web.actions._mark_notification_read_impl(account_id: str, thread_id: str) litestar.Response[None][source][source]