/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5f328385dcca */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetanswerRequest = { /** * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. */ locale?: string | undefined; /** * GetAnswer request */ getAnswerRequest: components.GetAnswerRequest; }; /** @internal */ export type GetanswerRequest$Outbound = { locale?: string | undefined; GetAnswerRequest: components.GetAnswerRequest$Outbound; }; /** @internal */ export const GetanswerRequest$outboundSchema: z.ZodType< GetanswerRequest$Outbound, z.ZodTypeDef, GetanswerRequest > = z.object({ locale: z.string().optional(), getAnswerRequest: components.GetAnswerRequest$outboundSchema, }).transform((v) => { return remap$(v, { getAnswerRequest: "GetAnswerRequest", }); }); export function getanswerRequestToJSON( getanswerRequest: GetanswerRequest, ): string { return JSON.stringify( GetanswerRequest$outboundSchema.parse(getanswerRequest), ); }