import type * as Whop from "../index.mjs"; export interface SocialAccount { /** Why this social 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 social account. */ external_id: string | null; /** Unique identifier for the social account. */ id: string; /** The display name of the social account on the platform. */ name: string | null; /** The social account this one belongs to on the platform, such as the Facebook page that owns an Instagram account. Null when the social account stands on its own, or when it is a partner. */ parent_social_account: Whop.SocialAccountParent | 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 social account isn't a partner. */ partnership_status: SocialAccount.PartnershipStatus | null; /** The platform the social account exists on. */ platform: SocialAccount.Platform; /** The URL where the profile picture of the social account can be accessed. */ profile_picture_url: string | null; scopes: string[]; /** The URL where the social account can be accessed on the platform. Null while a Whop-owned account is still being provisioned. */ url: string | null; /** The username of the social 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 social account is verified on the platform. */ verified: boolean; } export declare namespace SocialAccount { /** 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 social 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 social account exists on. */ const Platform: { readonly X: "x"; readonly Instagram: "instagram"; readonly Youtube: "youtube"; readonly Tiktok: "tiktok"; readonly Facebook: "facebook"; readonly Discord: "discord"; readonly Telegram: "telegram"; readonly Linkedin: "linkedin"; readonly Snapchat: "snapchat"; readonly Klaviyo: "klaviyo"; readonly Quickbooks: "quickbooks"; }; type Platform = (typeof Platform)[keyof typeof Platform]; }