/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";

export type FilesApiRoutesDownloadFileRequest = {
  fileId: string;
};

/** @internal */
export type FilesApiRoutesDownloadFileRequest$Outbound = {
  file_id: string;
};

/** @internal */
export const FilesApiRoutesDownloadFileRequest$outboundSchema: z.ZodType<
  FilesApiRoutesDownloadFileRequest$Outbound,
  z.ZodTypeDef,
  FilesApiRoutesDownloadFileRequest
> = z.object({
  fileId: z.string(),
}).transform((v) => {
  return remap$(v, {
    fileId: "file_id",
  });
});

export function filesApiRoutesDownloadFileRequestToJSON(
  filesApiRoutesDownloadFileRequest: FilesApiRoutesDownloadFileRequest,
): string {
  return JSON.stringify(
    FilesApiRoutesDownloadFileRequest$outboundSchema.parse(
      filesApiRoutesDownloadFileRequest,
    ),
  );
}
