"""
PowerBI MCP Server Constants

Single source of truth for all configuration values, timeouts, and limits.
"""

# API Configuration
API_BASE_URL = "https://api.powerbi.com/v1.0/myorg"
AUTH_URL_TEMPLATE = "https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token"
AUTH_SCOPE = "https://analysis.windows.net/powerbi/api/.default"

# Timeouts (seconds)
AUTH_TIMEOUT = 30.0
API_TIMEOUT = 60.0
TOKEN_REFRESH_BUFFER = 60

# Response Limits
CHARACTER_LIMIT = 25000
MAX_ROWS_DISPLAY = 100
MAX_WORKSPACES_TOP = 5000
MIN_WORKSPACES_TOP = 1

# Refresh History Limits
REFRESH_HISTORY_MIN = 1
REFRESH_HISTORY_MAX = 60
REFRESH_HISTORY_DEFAULT = 5
