import * as z from "zod/v4"; import * as models from "../index.js"; import { OpenRouterError } from "./openroutererror.js"; /** * Batch metadata with results withheld (results: null) plus the standard error envelope. Add credits to unlock the already-computed results; the batch is not re-run. */ export type BatchPaymentRequiredResponseErrorData = { completionWindow: models.BatchPaymentRequiredResponseCompletionWindow; createdAt: number; endpoint: string; error: models.BatchPaymentRequiredResponseError; /** * Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry. */ expiresAt: number | null; finalizedAt: number | null; id: string; model: string; object: models.BatchPaymentRequiredResponseObject; /** * The output location of a batch submitted with `input`, whose `results` are `null`. Returned only by `GET /batches/{id}`, once the batch has ended and the provider reported an output folder or table. Batch lists and responses for a batch with an unpaid charge leave it out. */ output?: models.BatchOutputReference | undefined; /** * Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses. */ provider: string | null; requestCounts: models.BatchPaymentRequiredResponseRequestCounts; /** * Always null: results are withheld until the batch charge is covered. */ results: any | null; status: models.BatchPaymentRequiredResponseStatus; usage: models.BatchPaymentRequiredResponseUsage | null; }; /** * Batch metadata with results withheld (results: null) plus the standard error envelope. Add credits to unlock the already-computed results; the batch is not re-run. */ export declare class BatchPaymentRequiredResponseError extends OpenRouterError { completionWindow: models.BatchPaymentRequiredResponseCompletionWindow; createdAt: number; endpoint: string; error: models.BatchPaymentRequiredResponseError; /** * Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry. */ expiresAt: number | null; finalizedAt: number | null; id: string; model: string; object: models.BatchPaymentRequiredResponseObject; /** * The output location of a batch submitted with `input`, whose `results` are `null`. Returned only by `GET /batches/{id}`, once the batch has ended and the provider reported an output folder or table. Batch lists and responses for a batch with an unpaid charge leave it out. */ output?: models.BatchOutputReference | undefined; /** * Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses. */ provider: string | null; requestCounts: models.BatchPaymentRequiredResponseRequestCounts; /** * Always null: results are withheld until the batch charge is covered. */ results: any | null; status: models.BatchPaymentRequiredResponseStatus; usage: models.BatchPaymentRequiredResponseUsage | null; /** The original data that was passed to this error instance. */ data$: BatchPaymentRequiredResponseErrorData; constructor(err: BatchPaymentRequiredResponseErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const BatchPaymentRequiredResponseError$inboundSchema: z.ZodType; //# sourceMappingURL=batchpaymentrequiredresponseerror.d.ts.map