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 AppBuildsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * An App Build is a versioned artifact uploaded for an app — a hosted web archive, or an iOS/Android bundle. Builds start as drafts, go through review, and one approved build per platform is served to users as the production build. * * Use the App Builds API to upload a build for an app, list an app's builds with platform and status filters, retrieve a build, and promote a draft or approved build to production. */ export declare class AppBuildsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AppBuildsClient.Options); /** * Returns a paginated list of build artifacts for an app, newest first, with optional platform, status, and creation-date filters. * * @param {Whop.ListAppBuildsRequest} request * @param {AppBuildsClient.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.appBuilds.list({ * app_id: "app_id" * }) */ list(request: Whop.ListAppBuildsRequest, requestOptions?: AppBuildsClient.RequestOptions): Promise>; /** * Uploads a new build artifact for an app. Upload the file first with `POST /files` or a direct upload, then reference it in `attachment`. * * @param {Whop.CreateAppBuildsRequest} request * @param {AppBuildsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.appBuilds.create({ * attachment: {}, * checksum: "xxxxxxxxxxxxxxx", * platform: "ios" * }) */ create(request: Whop.CreateAppBuildsRequest, requestOptions?: AppBuildsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing app build. * * @param {Whop.RetrieveAppBuildsRequest} request * @param {AppBuildsClient.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.appBuilds.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveAppBuildsRequest, requestOptions?: AppBuildsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Promotes a draft or approved app build to production so it becomes the active version served to users. Draft builds enter review first. * * @param {Whop.PromoteAppBuildsRequest} request * @param {AppBuildsClient.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.appBuilds.promote({ * id: "id" * }) */ promote(request: Whop.PromoteAppBuildsRequest, requestOptions?: AppBuildsClient.RequestOptions): core.HttpResponsePromise; private __promote; }