/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 2b10a2765805
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
/** @internal */
export const Option$inboundSchema = smartUnion([
    z.string(),
    z.boolean(),
]);
export function optionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Option$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Option' from JSON`);
}
/** @internal */
export const FetchChatCompletionFieldOptionsResponse$inboundSchema = z.object({
    options: z.nullable(z.array(z.nullable(smartUnion([z.string(), z.boolean()])))).optional(),
});
export function fetchChatCompletionFieldOptionsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FetchChatCompletionFieldOptionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchChatCompletionFieldOptionsResponse' from JSON`);
}
//# sourceMappingURL=fetchchatcompletionfieldoptionsresponse.js.map