import type * as Whop from "../index.mjs"; export interface ExternalAccount { /** Why this external account currently can't be used for advertising — a failed share or a Meta-side restriction. Null when the account is healthy. */ error: string | null; /** The platform-specific ID for this external account. */ external_id: string | null; /** Unique identifier for the external account. */ id: string; /** The display name of the external account on the platform. */ name: string | null; /** The external account this one belongs to on the platform, such as the Facebook page that owns an Instagram account. Null when the external account stands on its own, or when it is a partner. */ parent_external_account: Whop.ExternalAccountParent | null; /** Where a partner creator's permission to run partnership ads stands. `pending` until the creator approves it in the Instagram app, `approved` once they have, and `revoked` once it no longer holds. Null when the external account isn't a partner. */ partnership_status: ExternalAccount.PartnershipStatus | null; /** The platform the external account exists on. */ platform: ExternalAccount.Platform; /** The URL where the profile picture of the external account can be accessed. */ profile_picture_url: string | null; scopes: string[]; /** The URL where the external account can be accessed on the platform. Null while a Whop-owned account is still being provisioned. */ url: string | null; /** The username of the external account on the platform. Null while a Whop-owned account is still being provisioned, and on platforms without usernames, such as Klaviyo. */ username: string | null; /** Whether the external account is verified on the platform. */ verified: boolean; } export declare namespace ExternalAccount { /** Where a partner creator's permission to run partnership ads stands. `pending` until the creator approves it in the Instagram app, `approved` once they have, and `revoked` once it no longer holds. Null when the external account isn't a partner. */ const PartnershipStatus: { readonly Pending: "pending"; readonly Approved: "approved"; readonly Revoked: "revoked"; }; type PartnershipStatus = (typeof PartnershipStatus)[keyof typeof PartnershipStatus]; /** The platform the external account exists on. */ const Platform: { readonly X: "x"; readonly Instagram: "instagram"; readonly Youtube: "youtube"; readonly Tiktok: "tiktok"; readonly Facebook: "facebook"; readonly Linkedin: "linkedin"; readonly Snapchat: "snapchat"; readonly Klaviyo: "klaviyo"; readonly Quickbooks: "quickbooks"; }; type Platform = (typeof Platform)[keyof typeof Platform]; }