dashboard-nanobot/backend/services/platform_service.py

41 lines
1.2 KiB
Python

from services.platform_activity_service import (
get_bot_activity_stats,
list_activity_events,
prune_expired_activity_events,
record_activity_event,
)
from services.platform_login_log_service import list_login_logs
from services.platform_overview_service import build_platform_overview
from services.platform_settings_service import (
ACTIVITY_EVENT_RETENTION_SETTING_KEY,
DEFAULT_ACTIVITY_EVENT_RETENTION_DAYS,
DEFAULT_ALLOWED_ATTACHMENT_EXTENSIONS,
SETTING_KEYS,
SYSTEM_SETTING_DEFINITIONS,
create_or_update_system_setting,
default_platform_settings,
delete_system_setting,
ensure_default_system_settings,
get_activity_event_retention_days,
get_auth_token_max_active,
get_auth_token_ttl_hours,
get_allowed_attachment_extensions,
get_chat_pull_page_size,
get_page_size,
get_platform_settings,
get_platform_settings_snapshot,
get_speech_runtime_settings,
get_upload_max_mb,
get_workspace_download_extensions,
list_system_settings,
save_platform_settings,
)
from services.platform_usage_service import (
bind_usage_message,
create_usage_request,
estimate_tokens,
fail_latest_usage,
finalize_usage_from_packet,
list_usage,
)