import type * as Whop from "../index.js"; export interface User { /** The user's balance: personal cash + other holdings + deposits still in flight, plus account balances for accounts they own. Computed only on the self view (retrieved with the reserved id `me`) for callers with balance-read scope; `null` otherwise, or when `include_balance=false`. */ balance: Whop.UserBalance | null; /** The user's cumulative wallet balance over time (USD `{ t, v }` points plus last/min/max), for the balance chart. Opt in with `include_balance_history=true` when retrieving yourself with the reserved id `me`; populated only for callers with balance-read scope and `null` otherwise. A user with no wallet activity returns an empty series. */ balance_history: Whop.UserBalanceHistory | null; balances: Whop.AccountBalanceToken[]; /** The user's profile banner wrapper. `null` when the user has no banner. */ banner: Whop.UserBanner | null; /** The user's biography */ bio: string | null; /** Where the user's personal card application stands. Populated only on the self view (retrieved with the reserved id `me`) for callers with balance-read scope; `null` otherwise, or when the user has never applied for a card. */ cards: Whop.AccountCards | null; /** When the user was created, as an ISO 8601 timestamp */ created_at: string; /** The user's gross USD income over time, including a Partner commission breakdown. Populated only on single-user self reads for callers with balance-read scope; `null` otherwise. */ earnings_usd: Whop.UserEarnings | null; /** The user's email address. Populated only on the self view (retrieved with the reserved id `me`) for callers with email-read scope; `null` otherwise, or while the account has no confirmed email yet. */ email: string | null; /** User ID, prefixed `user_`. */ id: string; /** The user's Whop Levels progress, counted across every account they own. Populated only on the self view (retrieved with the reserved id `me`) for callers with balance-read scope; `null` otherwise, and when none of their accounts are in Whop Levels. */ level: Whop.OwnerLevel | null; /** The user's display name */ name: string | null; /** Avatar wrapper; its `url` is always present, using a generated placeholder when the user set no picture. */ profile_picture: Whop.UserProfilePicture; social_links: Whop.UserSocialLink[]; /** Total USD value of the user's personal holdings in `balances`, across those with known exchange rates. Computed only on the self view (retrieved with the reserved id `me`) for callers with balance-read scope; `null` otherwise, when `include_balance=false`, or when the balance source is unavailable. */ total_usd: string | null; /** The trading account address and its WebSocket subscriptions. Opt in with `include_trading=true` when retrieving `me`. `null` otherwise, without trading permission, or without an Ethereum wallet. */ trading: Whop.TradingAccount | null; /** The user's unique username */ username: string; /** Identity verification status for the user's `individual` (KYC) and `business` (KYB) profiles. Each is `null` until created, otherwise a `status` of `not_started`, `pending`, `approved`, or `rejected`. */ verification: Record; /** When the user became an enrolled Whop Partner, as an ISO 8601 timestamp. `null` if never enrolled. */ whop_partner_enabled_at: string | null; /** Number of accounts the user referred to Whop as a Whop Partner that have processed more than $1 in volume attributed to the user. Populated only when retrieving a single user who is a Verified Whop Partner; `null` otherwise. */ whop_partner_onboarded_accounts_count: number | null; /** When the user became a Verified Whop Partner, as an ISO 8601 timestamp. `null` for users who are not Verified Whop Partners, including partners who left the program and suspended users. */ whop_partner_verified_at: string | null; }