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

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

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

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

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

export function deleteDatasetRecordsRequestToJSON(
  deleteDatasetRecordsRequest: DeleteDatasetRecordsRequest,
): string {
  return JSON.stringify(
    DeleteDatasetRecordsRequest$outboundSchema.parse(
      deleteDatasetRecordsRequest,
    ),
  );
}
