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

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

export type JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest =
  {
    eventId: string;
    judgeChatCompletionEventRequest: components.JudgeChatCompletionEventRequest;
  };

/** @internal */
export type JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest$Outbound =
  {
    event_id: string;
    JudgeChatCompletionEventRequest:
      components.JudgeChatCompletionEventRequest$Outbound;
  };

/** @internal */
export const JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest$outboundSchema:
  z.ZodType<
    JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest$Outbound,
    JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest
  > = z.object({
    eventId: z.string(),
    judgeChatCompletionEventRequest:
      components.JudgeChatCompletionEventRequest$outboundSchema,
  }).transform((v) => {
    return remap$(v, {
      eventId: "event_id",
      judgeChatCompletionEventRequest: "JudgeChatCompletionEventRequest",
    });
  });

export function judgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequestToJSON(
  judgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest:
    JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest,
): string {
  return JSON.stringify(
    JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest$outboundSchema
      .parse(
        judgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest,
      ),
  );
}
