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

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

export type ImportDatasetFromFileRequest = {
  fileId: string;
};

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

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

export function importDatasetFromFileRequestToJSON(
  importDatasetFromFileRequest: ImportDatasetFromFileRequest,
): string {
  return JSON.stringify(
    ImportDatasetFromFileRequest$outboundSchema.parse(
      importDatasetFromFileRequest,
    ),
  );
}
