import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BatchErrors, BatchErrors$Outbound } from "./batcherrors.js"; import { RequestCounts, RequestCounts$Outbound } from "./requestcounts.js"; export declare const BatchObjectStatus: { readonly Validating: "validating"; readonly Failed: "failed"; readonly InProgress: "in_progress"; readonly Finalizing: "finalizing"; readonly Completed: "completed"; readonly Expired: "expired"; readonly Cancelling: "cancelling"; readonly Cancelled: "cancelled"; }; export type BatchObjectStatus = ClosedEnum; export type BatchObject = { id: string; object: "batch"; endpoint: string; errors?: BatchErrors | null | undefined; inputFileId: string; completionWindow: string; status: BatchObjectStatus; outputFileId?: string | null | undefined; errorFileId?: string | null | undefined; createdAt: number; inProgressAt?: number | null | undefined; expiresAt?: number | null | undefined; finalizingAt?: number | null | undefined; completedAt?: number | null | undefined; failedAt?: number | null | undefined; expiredAt?: number | null | undefined; cancellingAt?: number | null | undefined; cancelledAt?: number | null | undefined; requestCounts: RequestCounts; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const BatchObjectStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const BatchObjectStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const BatchObject$inboundSchema: z.ZodType; /** @internal */ export type BatchObject$Outbound = { id: string; object: "batch"; endpoint: string; errors?: BatchErrors$Outbound | null | undefined; input_file_id: string; completion_window: string; status: string; output_file_id?: string | null | undefined; error_file_id?: string | null | undefined; created_at: number; in_progress_at?: number | null | undefined; expires_at?: number | null | undefined; finalizing_at?: number | null | undefined; completed_at?: number | null | undefined; failed_at?: number | null | undefined; expired_at?: number | null | undefined; cancelling_at?: number | null | undefined; cancelled_at?: number | null | undefined; request_counts: RequestCounts$Outbound; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const BatchObject$outboundSchema: z.ZodType; export declare function batchObjectToJSON(batchObject: BatchObject): string; export declare function batchObjectFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=batchobject.d.ts.map