import type * as Whop from "../index.mjs"; /** * A member represents a user's relationship with a company on Whop, including their access level, status, and spending history. */ export interface MemberLegacy { /** The member's content access level. `admin` means their team role grants administrative content access, `customer` means they hold a valid product membership, and `no_access` means they cannot access company content. */ access_level: Whop.AccessLevel; /** The company for the member. */ company: MemberLegacy.Company; /** The member's token balance for this company. Computed live from the ledger, not from a cache. */ company_token_balance: number; /** The datetime the company member was created. */ created_at: string; /** The unique identifier for the company member. */ id: string; /** When the member joined the company */ joined_at: string; /** The most recent action the member has taken. */ most_recent_action: Whop.MemberMostRecentActions | null; /** The time for the most recent action, if applicable. */ most_recent_action_at: string | null; /** The phone number for the member, if available. */ phone: string | null; /** The status of the member */ status: Whop.MemberStatuses; /** The datetime the company member was last updated. */ updated_at: string; /** How much money this customer has spent on the company's products and plans */ usd_total_spent: number; /** The user for this member, if any. */ user: MemberLegacy.User | null; } export declare namespace MemberLegacy { /** * The company for the member. */ interface Company { /** The unique identifier for the company. */ id: string; /** The slug/route of the company on the Whop site. */ route: string; /** The written name of the company. */ title: string; } /** * The user for this member, if any. */ interface User { /** The digital mailing address of the user. */ email: string | null; /** The unique identifier for the company member user. */ id: string; /** The user's full name. */ name: string | null; /** The whop username. */ username: string; } }