/*
 * 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 FilesApiRoutesRetrieveFileRequest = {
  fileId: string;
};

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

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

export function filesApiRoutesRetrieveFileRequestToJSON(
  filesApiRoutesRetrieveFileRequest: FilesApiRoutesRetrieveFileRequest,
): string {
  return JSON.stringify(
    FilesApiRoutesRetrieveFileRequest$outboundSchema.parse(
      filesApiRoutesRetrieveFileRequest,
    ),
  );
}
