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