import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace SocialAccountsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Social Accounts is the former public name for External Accounts. Existing integrations can keep calling these deprecated endpoints while they migrate; every response points to the matching External Accounts endpoint. * * Use the External Accounts API for all new integrations. External account IDs keep their `sacc_` prefix, and the underlying resource is unchanged. */ export declare class SocialAccountsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: SocialAccountsClient.Options); /** * @deprecated * * Deprecated compatibility endpoint. List external accounts with `GET /external_accounts` instead. * * @param {Whop.ListSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.list() */ list(request?: Whop.ListSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): Promise>; /** * @deprecated * * Deprecated compatibility endpoint. Create external accounts with `POST /external_accounts` instead. * * @param {Whop.CreateSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.create({ * platform: "facebook" * }) */ create(request: Whop.CreateSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * @deprecated * * Deprecated compatibility endpoint. Connect external accounts with `POST /external_accounts/connect` instead. * * @param {Whop.ConnectSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.connect({ * platform: "meta_business", * redirect_url: "https://whop.com/dashboard/biz_xxxxxxxxxxxxxx/ads/settings" * }) */ connect(request: Whop.ConnectSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __connect; /** * @deprecated * * Deprecated compatibility endpoint. Disconnect external accounts with `DELETE /external_accounts/{id}` instead. * * @param {Whop.DeleteSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.delete({ * id: "id" * }) */ delete(request: Whop.DeleteSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * @deprecated * * Deprecated compatibility endpoint. List lead forms with `GET /external_accounts/{id}/lead_forms` instead. * * @param {Whop.LeadFormsSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.leadForms({ * id: "id", * account_id: "account_id" * }) */ leadForms(request: Whop.LeadFormsSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __leadForms; /** * @deprecated * * Deprecated compatibility endpoint. List partners with `GET /external_accounts/{external_account_id}/partners` instead. * * @param {Whop.PartnersSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.partners({ * id: "id" * }) */ partners(request: Whop.PartnersSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): Promise>; /** * @deprecated * * Deprecated compatibility endpoint. Add partners with `POST /external_accounts/{external_account_id}/partners` instead. * * @param {Whop.AddPartnerSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.addPartner({ * id: "id", * username: "@luverahealth" * }) */ addPartner(request: Whop.AddPartnerSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __addPartner; /** * @deprecated * * Deprecated compatibility endpoint. Remove partners with `DELETE /external_accounts/{external_account_id}/partners/{id}` instead. * * @param {Whop.RemovePartnerSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.removePartner({ * id: "id", * partner_id: "partner_id" * }) */ removePartner(request: Whop.RemovePartnerSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __removePartner; /** * @deprecated * * Deprecated compatibility endpoint. List posts with `GET /external_accounts/{id}/posts` instead. * * @param {Whop.PostsSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.posts({ * id: "id", * account_id: "account_id" * }) */ posts(request: Whop.PostsSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): Promise>; /** * @deprecated * * Deprecated compatibility endpoint. Refresh external accounts with `POST /external_accounts/{id}/refresh` instead. * * @param {Whop.RefreshSocialAccountsRequest} request * @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.socialAccounts.refresh({ * id: "id" * }) */ refresh(request: Whop.RefreshSocialAccountsRequest, requestOptions?: SocialAccountsClient.RequestOptions): core.HttpResponsePromise; private __refresh; }