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

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

/** @internal */
export const FilesApiRoutesDeleteFileRequest$outboundSchema: z.ZodType<
  FilesApiRoutesDeleteFileRequest$Outbound,
  z.ZodTypeDef,
  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,
    ),
  );
}
