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

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

export type UpdateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest =
  {
    datasetRecordId: string;
    updateDatasetRecordPayloadRequest:
      components.UpdateDatasetRecordPayloadRequest;
  };

/** @internal */
export type UpdateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest$Outbound =
  {
    dataset_record_id: string;
    UpdateDatasetRecordPayloadRequest:
      components.UpdateDatasetRecordPayloadRequest$Outbound;
  };

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

export function updateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequestToJSON(
  updateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest:
    UpdateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest,
): string {
  return JSON.stringify(
    UpdateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest$outboundSchema
      .parse(
        updateDatasetRecordPayloadV1ObservabilityDatasetRecordsDatasetRecordIdPayloadPutRequest,
      ),
  );
}
