#pragma once // Who am I: the API key behind XAI_API_KEY (GET /v1/api-key) and the // authenticated caller (GET /v1/me). Read-only. #include "xai/platform/platform_service.h" namespace molo::xai::platform { class AccountService : public PlatformService { public: explicit AccountService(std::shared_ptr api) : PlatformService(std::move(api), Host::kApi) {} // Name, ACLs, blocked/disabled flags, ids. Never the key itself. Json api_key_info() { return invoke(Call::kApiKeyInfo, {}); } // user_id, team_id, zdr_status, team_blocked, api_key or oauth block. Json me() { return invoke(Call::kMe, {}); } }; } // namespace molo::xai::platform