/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 9c4e716e89cb
 */
import * as z from "zod/v4";
import { blobLikeSchema } from "../../types/blobs.js";
import * as components from "../components/index.js";
export const FileVisibility = {
    Workspace: "workspace",
    User: "user",
};
/** @internal */
export const FileVisibility$outboundSchema = z
    .enum(FileVisibility);
/** @internal */
export const MultiPartBodyParams$outboundSchema = z.object({
    expiry: z.nullable(z.int()).optional(),
    visibility: FileVisibility$outboundSchema.default("workspace"),
    purpose: components.FilePurpose$outboundSchema.optional(),
    file: components.FileT$outboundSchema.or(blobLikeSchema),
});
export function multiPartBodyParamsToJSON(multiPartBodyParams) {
    return JSON.stringify(MultiPartBodyParams$outboundSchema.parse(multiPartBodyParams));
}
//# sourceMappingURL=filesapiroutesuploadfile.js.map