/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 0c78c0611c6e */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type EditpinRequest = { /** * 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; /** * Edit pins request */ editPinRequest: components.EditPinRequest; }; /** @internal */ export type EditpinRequest$Outbound = { locale?: string | undefined; EditPinRequest: components.EditPinRequest$Outbound; }; /** @internal */ export const EditpinRequest$outboundSchema: z.ZodType< EditpinRequest$Outbound, z.ZodTypeDef, EditpinRequest > = z.object({ locale: z.string().optional(), editPinRequest: components.EditPinRequest$outboundSchema, }).transform((v) => { return remap$(v, { editPinRequest: "EditPinRequest", }); }); export function editpinRequestToJSON(editpinRequest: EditpinRequest): string { return JSON.stringify(EditpinRequest$outboundSchema.parse(editpinRequest)); }