/** * A prospective customer who has expressed interest in a company or product but has not yet purchased. */ export interface Lead { /** The datetime the lead was created. */ created_at: string; /** The unique identifier for the lead. */ id: string; /** The company member record if this lead has converted into a paying customer. Null if the lead has not converted. */ member: Lead.Member | null; /** Custom key-value pairs attached to this lead. Null if no metadata was provided. */ metadata: Record | null; /** The product the lead expressed interest in. Null if the lead is not associated with a specific product. */ product: Lead.Product | null; /** The URL of the page that referred this lead to the company. Null if no referrer was captured. */ referrer: string | null; /** The datetime the lead was last updated. */ updated_at: string; /** The user account associated with this lead. */ user: Lead.User; } export declare namespace Lead { /** * The company member record if this lead has converted into a paying customer. Null if the lead has not converted. */ interface Member { /** The unique identifier for the company member. */ id: string; } /** * The product the lead expressed interest in. Null if the lead is not associated with a specific product. */ interface Product { /** The unique identifier for the product. */ id: string; /** The display name of the product shown to customers on the product page and in search results. */ title: string; } /** * The user account associated with this lead. */ interface User { /** The user's email address. Requires the member:email:read permission to access. Null if not authorized. */ email: string | null; /** The unique identifier for the user. */ id: string; /** The user's display name shown on their public profile. */ name: string | null; /** The user's unique username shown on their public profile. */ username: string; } }