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

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

export type DeleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest = {
  datasetId: string;
};

/** @internal */
export type DeleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest$Outbound =
  {
    dataset_id: string;
  };

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

export function deleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequestToJSON(
  deleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest:
    DeleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest,
): string {
  return JSON.stringify(
    DeleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest$outboundSchema
      .parse(deleteDatasetV1ObservabilityDatasetsDatasetIdDeleteRequest),
  );
}
