/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import { Scale } from "../../../.."; export declare namespace Batches { interface Options { environment?: environments.ScaleEnvironment | string; token?: core.Supplier; } } export declare class Batches { private readonly options; constructor(options: Batches.Options); /** * This is a paged endpoint for all of your batches. Batches will be returned in descending order based on `created_at`. Pagination is based off `limit` and `offset` parameters, which determine the page size and how many results to skip. */ list(request?: Scale.ListBatchesRequest): Promise; /** * Create a new Batch within a project. Batches will be created with a status of `in_progress`. For users participating in our "Scale Rapid" Early Access, batches will be created with a status of `staging`. See the [Batch Overview](/reference/batch-overview) for additional details. */ create(request: Scale.CreateBatchRequest): Promise; /** * For "Scale Rapid and Studio" customers only, finalizes a batch with name `batchName` so its tasks can be worked on. Non-(Rapid/Studio) customers do not need to use this endpoint - calling this endpoint will not do anything, but still return a `200` success status code. */ finalize(batchName: string): Promise; /** * This endpoint returns the details of a batch with the name `:batchName`. */ get(batchName: string): Promise; /** * This endpoint returns the status of a batch with the name `:batchName`, as well as the counts of its tasks grouped by task status. */ getStatus(batchName: string): Promise; }