2026-06-03 18:04:47 +02:00
|
|
|
"""Notification policy constants."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2026-06-17 15:06:05 +02:00
|
|
|
# Matches notifications.title VARCHAR(200).
|
|
|
|
|
TITLE_MAX_LENGTH = 200
|
|
|
|
|
|
2026-06-03 18:04:47 +02:00
|
|
|
# Notifications newer than this are live-synced; older ones load via the list endpoint.
|
|
|
|
|
SYNC_WINDOW_DAYS = 14
|
|
|
|
|
|
|
|
|
|
# Maps an inbox tab to the notification types it shows.
|
|
|
|
|
CATEGORY_TYPES: dict[str, tuple[str, ...]] = {
|
|
|
|
|
"comments": ("new_mention", "comment_reply"),
|
|
|
|
|
"status": (
|
|
|
|
|
"connector_indexing",
|
|
|
|
|
"connector_deletion",
|
|
|
|
|
"document_processing",
|
2026-06-10 16:49:03 -07:00
|
|
|
"insufficient_credits",
|
|
|
|
|
"auto_reload_failed",
|
2026-06-03 18:04:47 +02:00
|
|
|
),
|
|
|
|
|
}
|