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 VerificationsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Verification represents a legal identity for a person or business. Accounts and users complete verification when Whop needs to confirm who they are before enabling payouts or compliance-sensitive workflows. * * Use the Verifications API to start or resume a hosted verification session, check review status, and submit requested details or documents. If `requested_information` contains items, submit answers with [Update Verification](/api-reference/beta/verifications/update-verification). */ export declare class VerificationsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: VerificationsClient.Options); /** * Lists the verifications for an account or user, including their status and any required actions. Platforms list their own and every subaccount's verifications at once with `include_subaccounts`; each one's `account_ids` names its account, and a verification shared by several accounts appears once for each. * * @param {Whop.ListVerificationsRequest} request * @param {VerificationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.verifications.list() */ list(request?: Whop.ListVerificationsRequest, requestOptions?: VerificationsClient.RequestOptions): Promise>; /** * Starts a hosted verification session for an account or user, or returns the active session when one already exists; any fields you send prefill it. To skip the hosted session, send `documents` to verify the person from files in this request, `share_token` to reuse a verification another Sumsub account completed, or `verification_id` to reuse one the signed-in user completed on Whop. For a business, `documents` and `owners` add company formation documents and owners to the verification, and once everything is in this call sends the business for review — call it again after Update Verification to send it. Until then it stays `pending` and the hosted session collects anything left out. Once the account has an `approved` verification, every mode except `verification_id` is rejected — unlink it first to start a new one. * * @param {Whop.CreateVerificationsRequest} request * @param {VerificationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.verifications.create({ * body: { * kind: "individual" * } * }) */ create(request: Whop.CreateVerificationsRequest, requestOptions?: VerificationsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a verification by ID, including its status and any information or documents still required. * * @param {Whop.RetrieveVerificationsRequest} request * @param {VerificationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.verifications.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveVerificationsRequest, requestOptions?: VerificationsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Updates editable profile details or submits answers for items returned in `requested_information`. On a business verification still collecting details, company details, `documents`, and `owners` also go to the verification provider; call Create Verification again to send the business for review once everything is in. Under review, `registration_number`, `incorporation_date`, `place_of_incorporation`, and `documents` are refused. While the review waits on owners, owners can still be added, changed, or removed with `remove`; otherwise only an owner's missing documents can still be sent. Once a verification is `approved` its profile details are locked and can no longer be edited. * * @param {Whop.UpdateVerificationsRequest} request * @param {VerificationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.verifications.update({ * id: "id", * body: {} * }) */ update(request: Whop.UpdateVerificationsRequest, requestOptions?: VerificationsClient.RequestOptions): core.HttpResponsePromise; private __update; }