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

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

export type DeleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest =
  {
    datasetRecordId: string;
  };

/** @internal */
export type DeleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest$Outbound =
  {
    dataset_record_id: string;
  };

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

export function deleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequestToJSON(
  deleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest:
    DeleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest,
): string {
  return JSON.stringify(
    DeleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest$outboundSchema
      .parse(
        deleteDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIdDeleteRequest,
      ),
  );
}
