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

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

export type GetJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest = {
  judgeId: string;
};

/** @internal */
export type GetJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest$Outbound = {
  judge_id: string;
};

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

export function getJudgeByIdV1ObservabilityJudgesJudgeIdGetRequestToJSON(
  getJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest:
    GetJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest,
): string {
  return JSON.stringify(
    GetJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest$outboundSchema.parse(
      getJudgeByIdV1ObservabilityJudgesJudgeIdGetRequest,
    ),
  );
}
