import Response from "../util/Response"; import { AxiosPromise } from "axios"; /** * Site-administrator user management. * * These endpoints back the admin dashboard user directory. They require a * site-admin auth token (Super Administrator or Administrator), and * impersonation additionally requires a Super Administrator token. */ declare class AdminUsers { /** * List and search all users in the system. * * Supported params include `search` (matches name, username, email, or id), * `is_site_admin`, `is_verified`, `sort_by`, `sort_order`, `per_page`, and * `page`. * * @param params Optional query parameters. * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Retrieve aggregated user analytics for the admin directory. * * Supported params include `search`, `is_site_admin`, `is_verified`, * `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and * `sort_order`. * * @param params Optional query parameters. * @returns promise */ static analytics(params?: Record): AxiosPromise>; /** * Retrieve a comprehensive profile for a single user, including communities, * administered titles, games played, roles, billing status, social presence, * and activity counts. * * @param user_id The id of the user to view. * @param params Optional query parameters. * @returns promise */ static view(user_id: string, params?: Record): AxiosPromise>; /** * Impersonate a user. Issues a JWT for the target account so a Super * Administrator can operate as that user. Administrator accounts cannot be * impersonated, and every call is written to the impersonation audit log. * * @param user_id The id of the user to impersonate. * @returns promise resolving to an access token and the impersonated user summary. */ static impersonate(user_id: string): AxiosPromise>; } export default AdminUsers;