import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type CodeInterpreterFileOutput = { /** * Provider-issued download URL for the generated file. Typically signed and time-limited (see `expires_at`); fetch promptly rather than persisting the URL. */ downloadUrl?: string | undefined; /** * Provider error code when generating or persisting the file failed; null or absent on success. */ errorCode?: string | null | undefined; /** * When the `download_url` stops working, as an ISO 8601 timestamp. After this time the file must be regenerated. */ expiresAt?: string | undefined; filename?: string | undefined; id?: string | undefined; mediaType?: string | undefined; sha256?: string | undefined; sizeBytes?: number | undefined; /** * Provider-reported readiness of the generated file (e.g. `ready`). Values other than `ready` indicate the artifact may not be downloadable. */ status?: string | undefined; type: "file"; }; /** @internal */ export declare const CodeInterpreterFileOutput$inboundSchema: z.ZodType; /** @internal */ export type CodeInterpreterFileOutput$Outbound = { download_url?: string | undefined; error_code?: string | null | undefined; expires_at?: string | undefined; filename?: string | undefined; id?: string | undefined; media_type?: string | undefined; sha256?: string | undefined; size_bytes?: number | undefined; status?: string | undefined; type: "file"; }; /** @internal */ export declare const CodeInterpreterFileOutput$outboundSchema: z.ZodType; export declare function codeInterpreterFileOutputToJSON(codeInterpreterFileOutput: CodeInterpreterFileOutput): string; export declare function codeInterpreterFileOutputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=codeinterpreterfileoutput.d.ts.map