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

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

export type ImportDatasetFromDatasetRequest = {
  datasetRecordIds: Array<string>;
};

/** @internal */
export type ImportDatasetFromDatasetRequest$Outbound = {
  dataset_record_ids: Array<string>;
};

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

export function importDatasetFromDatasetRequestToJSON(
  importDatasetFromDatasetRequest: ImportDatasetFromDatasetRequest,
): string {
  return JSON.stringify(
    ImportDatasetFromDatasetRequest$outboundSchema.parse(
      importDatasetFromDatasetRequest,
    ),
  );
}
