/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 6f43e09fe927 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type CreateanswerRequest = { /** * 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; /** * CreateAnswer request */ createAnswerRequest: components.CreateAnswerRequest; }; /** @internal */ export type CreateanswerRequest$Outbound = { locale?: string | undefined; CreateAnswerRequest: components.CreateAnswerRequest$Outbound; }; /** @internal */ export const CreateanswerRequest$outboundSchema: z.ZodType< CreateanswerRequest$Outbound, z.ZodTypeDef, CreateanswerRequest > = z.object({ locale: z.string().optional(), createAnswerRequest: components.CreateAnswerRequest$outboundSchema, }).transform((v) => { return remap$(v, { createAnswerRequest: "CreateAnswerRequest", }); }); export function createanswerRequestToJSON( createanswerRequest: CreateanswerRequest, ): string { return JSON.stringify( CreateanswerRequest$outboundSchema.parse(createanswerRequest), ); }