/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
export const Detail = {
    Auto: "auto",
    Low: "low",
    High: "high",
};
/** @internal */
export const Detail$inboundSchema = z
    .nativeEnum(Detail);
/** @internal */
export const Detail$outboundSchema = Detail$inboundSchema;
/** @internal */
export const OpenAIImageUrlObject$inboundSchema = z.object({
    url: z.string(),
    detail: Detail$inboundSchema.default("auto"),
});
/** @internal */
export const OpenAIImageUrlObject$outboundSchema = z.object({
    url: z.string(),
    detail: Detail$outboundSchema.default("auto"),
});
export function openAIImageUrlObjectToJSON(openAIImageUrlObject) {
    return JSON.stringify(OpenAIImageUrlObject$outboundSchema.parse(openAIImageUrlObject));
}
export function openAIImageUrlObjectFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OpenAIImageUrlObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIImageUrlObject' from JSON`);
}
//# sourceMappingURL=openaiimageurlobject.js.map