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

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

export type GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest =
  {
    datasetId: string;
    pageSize?: number | undefined;
    page?: number | undefined;
  };

/** @internal */
export type GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest$Outbound =
  {
    dataset_id: string;
    page_size: number;
    page: number;
  };

/** @internal */
export const GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest$outboundSchema:
  z.ZodType<
    GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest$Outbound,
    GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest
  > = z.object({
    datasetId: z.string(),
    pageSize: z.int().default(50),
    page: z.int().default(1),
  }).transform((v) => {
    return remap$(v, {
      datasetId: "dataset_id",
      pageSize: "page_size",
    });
  });

export function getDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequestToJSON(
  getDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest:
    GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest,
): string {
  return JSON.stringify(
    GetDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest$outboundSchema
      .parse(
        getDatasetImportTasksV1ObservabilityDatasetsDatasetIdTasksGetRequest,
      ),
  );
}
