import * as z from "zod/v4"; import { ClosedEnum, OpenEnum } from "../types/enums.js"; import { BatchInputReference, BatchInputReference$Outbound } from "./batchinputreference.js"; import { BatchProviderPreferences, BatchProviderPreferences$Outbound } from "./batchproviderpreferences.js"; export declare const BatchSubmitBodyCompletionWindow: { readonly TwentyFourh: "24h"; }; export type BatchSubmitBodyCompletionWindow = ClosedEnum; export declare const Endpoint: { readonly RootV1ChatCompletions: "/v1/chat/completions"; readonly RootV1Responses: "/v1/responses"; readonly RootV1Messages: "/v1/messages"; readonly RootV1Embeddings: "/v1/embeddings"; readonly RootV1AudioSpeech: "/v1/audio/speech"; }; export type Endpoint = OpenEnum; export type RequestT = { /** * Request payload for the batch `endpoint`. */ body: { [k: string]: any; }; customId: string; }; /** * Batch submit request body. */ export type BatchSubmitBody = { /** * HTTPS URL that receives a `batch.completed`, `batch.failed`, `batch.cancelled` or `batch.expired` webhook event when the batch reaches a terminal status. Must appear before `requests` in the request body. */ callbackUrl?: string | undefined; completionWindow?: BatchSubmitBodyCompletionWindow | undefined; endpoint: Endpoint; /** * A batch input file or table in your own storage, named in place of `requests`. Available to allowlisted callers on Google Vertex BYOK endpoints only. */ input?: BatchInputReference | undefined; model: string; /** * Batch provider routing preferences. Only `provider.only` and `provider.allow_fallbacks` are supported. */ provider?: BatchProviderPreferences | null | undefined; /** * The batch requests. Send exactly one of `requests` or `input`; `requests` must be the last field in the request body. */ requests?: Array | undefined; }; /** @internal */ export declare const BatchSubmitBodyCompletionWindow$outboundSchema: z.ZodEnum; /** @internal */ export declare const Endpoint$outboundSchema: z.ZodType; /** @internal */ export type RequestT$Outbound = { body: { [k: string]: any; }; custom_id: string; }; /** @internal */ export declare const RequestT$outboundSchema: z.ZodType; export declare function requestToJSON(requestT: RequestT): string; /** @internal */ export type BatchSubmitBody$Outbound = { callback_url?: string | undefined; completion_window: string; endpoint: string; input?: BatchInputReference$Outbound | undefined; model: string; provider?: BatchProviderPreferences$Outbound | null | undefined; requests?: Array | undefined; }; /** @internal */ export declare const BatchSubmitBody$outboundSchema: z.ZodType; export declare function batchSubmitBodyToJSON(batchSubmitBody: BatchSubmitBody): string; //# sourceMappingURL=batchsubmitbody.d.ts.map