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

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

export type ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequest =
  {
    datasetId: string;
  };

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

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

export function exportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequestToJSON(
  exportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequest:
    ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequest,
): string {
  return JSON.stringify(
    ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequest$outboundSchema
      .parse(
        exportDatasetToJsonlV1ObservabilityDatasetsDatasetIdExportsToJsonlGetRequest,
      ),
  );
}
