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

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

export type JudgeChatCompletionEventV1ObservabilityChatCompletionEventsEventIdLiveJudgingPostRequest =
  {
    eventId: string;
    postChatCompletionEventJudgingInSchema:
      components.PostChatCompletionEventJudgingInSchema;
  };

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

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

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