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