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"; /** * The intended purpose of the file */ export declare const Purpose: { readonly Assistants: "assistants"; readonly Batch: "batch"; readonly FineTune: "fine-tune"; readonly Vision: "vision"; readonly UserData: "user_data"; readonly Evals: "evals"; }; /** * The intended purpose of the file */ export type Purpose = ClosedEnum; /** * DEPRECATED: File processing status */ export declare const FileStatus: { readonly Uploaded: "uploaded"; readonly Processed: "processed"; readonly Error: "error"; }; /** * DEPRECATED: File processing status */ export type FileStatus = ClosedEnum; export type FileT = { /** * The file identifier */ id: string; object?: "file" | undefined; /** * The size of the file in bytes */ bytes: number; /** * Unix timestamp when the file was created */ createdAt: number; /** * Unix timestamp when the file expires */ expiresAt?: number | null | undefined; /** * The name of the file */ filename: string; /** * The intended purpose of the file */ purpose: Purpose; /** * DEPRECATED: File processing status */ status?: FileStatus | undefined; /** * DEPRECATED: Details about file status */ statusDetails?: string | undefined; }; /** @internal */ export declare const Purpose$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Purpose$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FileStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FileStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FileT$inboundSchema: z.ZodType; /** @internal */ export type FileT$Outbound = { id: string; object: "file"; bytes: number; created_at: number; expires_at?: number | null | undefined; filename: string; purpose: string; status?: string | undefined; status_details?: string | undefined; }; /** @internal */ export declare const FileT$outboundSchema: z.ZodType; export declare function fileToJSON(fileT: FileT): string; export declare function fileFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=file.d.ts.map