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

import * as z from "zod/v4";
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,
  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,
    ),
  );
}
