corvix.config.notifications =========================== .. py:module:: corvix.config.notifications .. autoapi-nested-parse:: Notifications configuration model and YAML parsing. Classes ------- .. autoapisummary:: corvix.config.notifications.BrowserTabTargetConfig corvix.config.notifications.WebPushTargetConfig corvix.config.notifications.NotificationsDetectConfig corvix.config.notifications.NotificationsConfig Functions --------- .. autoapisummary:: corvix.config.notifications._parse_browser_tab corvix.config.notifications._parse_notifications Module Contents --------------- .. py:class:: BrowserTabTargetConfig Config for in-tab browser notification delivery. .. py:attribute:: enabled :type: bool :value: True .. py:attribute:: max_per_cycle :type: int :value: 5 .. py:attribute:: cooldown_seconds :type: int :value: 10 .. py:class:: WebPushTargetConfig Config for background Web Push notification delivery (phase 2). .. py:attribute:: enabled :type: bool :value: False .. py:attribute:: vapid_public_key_env :type: str :value: 'CORVIX_VAPID_PUBLIC_KEY' .. py:attribute:: vapid_private_key_env :type: str :value: 'CORVIX_VAPID_PRIVATE_KEY' .. py:attribute:: subject :type: str :value: '' .. py:class:: NotificationsDetectConfig Controls which records qualify for notification events. .. py:attribute:: include_read :type: bool :value: False .. py:attribute:: min_score :type: float :value: 0.0 .. py:class:: NotificationsConfig Top-level notifications configuration. .. py:attribute:: enabled :type: bool :value: True .. py:attribute:: detect :type: NotificationsDetectConfig .. py:attribute:: browser_tab :type: BrowserTabTargetConfig .. py:attribute:: web_push :type: WebPushTargetConfig .. py:function:: _parse_browser_tab(browser_raw: dict[str, object]) -> BrowserTabTargetConfig Parse and validate browser_tab config section. .. py:function:: _parse_notifications(value: object) -> NotificationsConfig