import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Whop from "../../../index.mjs"; export declare namespace IdentityProfilesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class IdentityProfilesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: IdentityProfilesClient.Options); /** * Lists the identity profiles currently linked to an account, or to every account you can read when `account_id` is omitted. * * Required permissions: * - `identity:read` * * @param {Whop.ListIdentityProfileRequest} request * @param {IdentityProfilesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.identityProfiles.listIdentityProfile({ * first: 42, * last: 42, * account_id: "biz_xxxxxxxxxxxxxx" * }) */ listIdentityProfile(request?: Whop.ListIdentityProfileRequest, requestOptions?: IdentityProfilesClient.RequestOptions): Promise>; /** * Retrieves the details of an existing identity profile. * * Required permissions: * - `identity:read` * * @param {Whop.RetrieveIdentityProfileRequest} request * @param {IdentityProfilesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.identityProfiles.retrieveIdentityProfile({ * id: "idpf_xxxxxxxxxxxxx" * }) */ retrieveIdentityProfile(request: Whop.RetrieveIdentityProfileRequest, requestOptions?: IdentityProfilesClient.RequestOptions): core.HttpResponsePromise; private __retrieveIdentityProfile; /** * Unlinks an identity profile from the account or user that owns `ledger_account_id`. Requires `identity:write` on that account or user. * * Required permissions: * - `identity:write` * * @param {Whop.UnlinkIdentityProfileRequest} request * @param {IdentityProfilesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.identityProfiles.unlinkIdentityProfile({ * id: "idpf_xxxxxxxxxxxxx", * ledger_account_id: "ldgr_xxxxxxxxxxxxx" * }) */ unlinkIdentityProfile(request: Whop.UnlinkIdentityProfileRequest, requestOptions?: IdentityProfilesClient.RequestOptions): core.HttpResponsePromise; private __unlinkIdentityProfile; /** * Returns a list of verifications attached to an identity profile, ordered by most recent first. * * Required permissions: * - `identity:read` * * @param {Whop.ListVerificationsIdentityProfileRequest} request * @param {IdentityProfilesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.identityProfiles.listVerificationsIdentityProfile({ * id: "idpf_xxxxxxxxxxxxx", * first: 42, * last: 42 * }) */ listVerificationsIdentityProfile(request: Whop.ListVerificationsIdentityProfileRequest, requestOptions?: IdentityProfilesClient.RequestOptions): Promise>; }