/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 4864df35eb0a */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type UnpinRequest = { /** * 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; /** * Details about the pin being unpinned. */ unpin: components.Unpin; }; /** @internal */ export type UnpinRequest$Outbound = { locale?: string | undefined; Unpin: components.Unpin$Outbound; }; /** @internal */ export const UnpinRequest$outboundSchema: z.ZodType< UnpinRequest$Outbound, z.ZodTypeDef, UnpinRequest > = z.object({ locale: z.string().optional(), unpin: components.Unpin$outboundSchema, }).transform((v) => { return remap$(v, { unpin: "Unpin", }); }); export function unpinRequestToJSON(unpinRequest: UnpinRequest): string { return JSON.stringify(UnpinRequest$outboundSchema.parse(unpinRequest)); }