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

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

export type UpdateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequest =
  {
    datasetRecordId: string;
    updateDatasetRecordPropertiesRequest:
      components.UpdateDatasetRecordPropertiesRequest;
  };

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

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

export function updateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequestToJSON(
  updateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequest:
    UpdateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequest,
): string {
  return JSON.stringify(
    UpdateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequest$outboundSchema
      .parse(
        updateDatasetRecordPropertiesV1ObservabilityDatasetRecordsDatasetRecordIdPropertiesPutRequest,
      ),
  );
}
