import type * as Whop from "../index.js"; export interface Domain { /** ID of the account the domain belongs to, prefixed `biz_`. */ account_id: string | null; /** Offering Apple Pay at checkouts served from the domain. `null` when not enrolled or not visible to you. */ apple_pay: Whop.DomainApplePay | null; /** Whether you can register the hostname and what it costs. Set only when no domain on Whop has it. */ availability: Whop.DomainAvailability | null; /** When the domain was created, as an ISO 8601 timestamp. */ created_at: string | null; /** Normalized hostname, such as checkout.example.com. */ domain: string; /** Sending and receiving email on the domain through Whop. `null` when not wanted, or when the domain belongs to an account you can't read. */ email: Whop.DomainEmail | null; /** Domain ID, prefixed `dom_`. `null` when no domain on Whop has this hostname. */ id: string | null; issues: Whop.DomainIssue[]; /** Custom string keys and values attached to this domain. Empty when the domain isn't yours. */ metadata: Record; /** The account that has proven it owns this hostname on Whop, which can be your own. `null` when no account has. */ owned_by: Whop.DomainOwner | null; /** Tracking page views on the domain with the Whop pixel. `null` when not tracked or not visible to you. */ pixel: Whop.DomainPixel | null; /** An address on a zone Whop runs, such as example.whop.site, that follows its app's route. `null` for other domains or when not visible to you. */ platform: Whop.DomainPlatform | null; /** The domain's public registration record (RDAP), read when you retrieve it by hostname. `null` for domains on Whop, available domains, or a record that couldn't be read. */ public_record: Whop.DomainPublicRecord | null; /** Buying the domain through Whop, renewing it, and running its DNS. `null` when not wanted or not visible to you. */ registration: Whop.DomainRegistration | null; /** Traffic on the domain. `null` when the domain isn't on Whop or isn't visible to you. */ stats: Whop.DomainStats | null; /** The most pressing state of the domain's capabilities: `releasing`, then `action_required`, then `pending`, then `ready`. `idle` when it wants nothing. */ status: Domain.Status | null; /** Moving the domain to another Whop account. `null` when not turned on or not visible to you. */ transfer: Whop.DomainTransfer | null; /** When the domain was last updated, as an ISO 8601 timestamp. */ updated_at: string | null; /** Proving you control the domain's DNS with a TXT record. `null` when not wanted or not visible to you. */ verification: Whop.DomainVerification | null; /** Serving a Whop website on the domain. `null` when not wanted. */ website: Whop.DomainWebsite | null; } export declare namespace Domain { /** The most pressing state of the domain's capabilities: `releasing`, then `action_required`, then `pending`, then `ready`. `idle` when it wants nothing. */ const Status: { readonly Idle: "idle"; readonly Pending: "pending"; readonly Ready: "ready"; readonly ActionRequired: "action_required"; readonly Releasing: "releasing"; }; type Status = (typeof Status)[keyof typeof Status]; }