import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UploadSession = { /** * A unique identifier for an object. */ id?: string | undefined; /** * Indicates if the upload session was completed successfully. */ success?: boolean | undefined; /** * Size in bytes of each part of the file that you will upload. Uploaded parts need to be this size for the upload to be successful. */ partSize?: number | undefined; /** * Indicates if parts of the file can uploaded in parallel. */ parallelUploadSupported?: boolean | undefined; /** * The range of bytes that was successfully uploaded. */ uploadedByteRange?: string | undefined; expiresAt?: Date | null | undefined; }; /** @internal */ export declare const UploadSession$inboundSchema: z.ZodType; /** @internal */ export type UploadSession$Outbound = { id?: string | undefined; success?: boolean | undefined; part_size?: number | undefined; parallel_upload_supported?: boolean | undefined; uploaded_byte_range?: string | undefined; expires_at?: string | null | undefined; }; /** @internal */ export declare const UploadSession$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UploadSession$ { /** @deprecated use `UploadSession$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UploadSession$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UploadSession$Outbound` instead. */ type Outbound = UploadSession$Outbound; } export declare function uploadSessionToJSON(uploadSession: UploadSession): string; export declare function uploadSessionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=uploadsession.d.ts.map