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 BountySubmissionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Bounty Submission is one worker's attempt on a bounty. It starts as an in-progress attempt, enters the review queue when proof is submitted, and ends approved (paid from the bounty's escrowed pool) or denied. * * Use the Bounty Submissions API to submit proof of completed work to a bounty, list the submissions you authored, and review the submissions on your bounties — across every bounty or narrowed to one. */ export declare class BountySubmissionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: BountySubmissionsClient.Options); /** * Lists bounty submissions visible to the credential — for a user token, the submissions they authored plus those on bounties they posted; for an account API key, the submissions on the account's bounties. For the anonymous view of one bounty's reviewed work, use the submissions list under the bounty instead. * * @param {Whop.ListBountySubmissionsRequest} request * @param {BountySubmissionsClient.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.bountySubmissions.list() */ list(request?: Whop.ListBountySubmissionsRequest, requestOptions?: BountySubmissionsClient.RequestOptions): Promise>; /** * Creates a submission on a workforce bounty. Include a `deliverable` and the submission goes straight to review; create is the only step. For `data_capture` bounties, omit the deliverable: this starts a claimed attempt whose proof accumulates server-side, and `POST /bounty_submissions/:id/submit` sends it to review once complete. Requires a user credential — account API keys cannot author submissions. * * @param {Whop.CreateBountySubmissionsRequest} request * @param {BountySubmissionsClient.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.bountySubmissions.create({ * bounty_id: "bnty_xxxxxxxxxxxxxx" * }) */ create(request: Whop.CreateBountySubmissionsRequest, requestOptions?: BountySubmissionsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves one bounty submission the credential can see — one the caller authored, or one on a bounty they posted or their account owns. Reading another member's work on an account's bounty takes `account_id`, the same way the list does. * * @param {Whop.RetrieveBountySubmissionsRequest} request * @param {BountySubmissionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.bountySubmissions.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveBountySubmissionsRequest, requestOptions?: BountySubmissionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Cancels the caller's own active attempt on a bounty and discards any accumulated capture clips. Only the worker who started the attempt can cancel it — account API keys cannot. * * @param {Whop.DeleteBountySubmissionsRequest} request * @param {BountySubmissionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.bountySubmissions.delete({ * id: "id" * }) */ delete(request: Whop.DeleteBountySubmissionsRequest, requestOptions?: BountySubmissionsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Submits a claimed attempt for review. A livestream attempt needs an ended proof stream and can attach a `deliverable`; a data capture attempt instead needs enough validated clip time and takes no payload. Only the worker who started the attempt can submit it — account API keys cannot. * * @param {Whop.SubmitBountySubmissionsRequest} request * @param {BountySubmissionsClient.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.bountySubmissions.submit({ * id: "id" * }) */ submit(request: Whop.SubmitBountySubmissionsRequest, requestOptions?: BountySubmissionsClient.RequestOptions): core.HttpResponsePromise; private __submit; }