"""Google Photos provider constants."""

from typing import Final

# Google Photos Library API
API_BASE_URL: Final = "https://photoslibrary.googleapis.com/v1"
TOKEN_URL: Final = "https://oauth2.googleapis.com/token"

# OAuth scopes
SCOPE_READONLY: Final = "https://www.googleapis.com/auth/photoslibrary.readonly"
SCOPE_SHARING: Final = "https://www.googleapis.com/auth/photoslibrary.sharing"

# API limits
MAX_PAGE_SIZE: Final = 100  # max items per page
MAX_BATCH_GET: Final = 50  # max items per batchGet call

# Asset URL suffixes (appended to baseUrl)
PHOTO_DOWNLOAD_SUFFIX: Final = "=w2048-h2048"  # max resolution photo
PHOTO_THUMBNAIL_SUFFIX: Final = "=w512-h512"
VIDEO_DOWNLOAD_SUFFIX: Final = "=dv"  # video download

# Cache key prefix for Telegram file_id cache
CACHE_HOST: Final = "photos.googleapis.com"

# Defaults
DEFAULT_SCAN_INTERVAL: Final = 120  # seconds (Google API quota is tighter than Immich)
