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

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

export type FilesApiRoutesDeleteFileRequest = {
  fileId: string;
};

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

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

export function filesApiRoutesDeleteFileRequestToJSON(
  filesApiRoutesDeleteFileRequest: FilesApiRoutesDeleteFileRequest,
): string {
  return JSON.stringify(
    FilesApiRoutesDeleteFileRequest$outboundSchema.parse(
      filesApiRoutesDeleteFileRequest,
    ),
  );
}
