/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 132bd71f8d8a */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetdocumentsRequest = { /** * 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; /** * Information about documents requested. */ getDocumentsRequest?: components.GetDocumentsRequest | undefined; }; /** @internal */ export type GetdocumentsRequest$Outbound = { locale?: string | undefined; GetDocumentsRequest?: components.GetDocumentsRequest$Outbound | undefined; }; /** @internal */ export const GetdocumentsRequest$outboundSchema: z.ZodType< GetdocumentsRequest$Outbound, z.ZodTypeDef, GetdocumentsRequest > = z.object({ locale: z.string().optional(), getDocumentsRequest: components.GetDocumentsRequest$outboundSchema.optional(), }).transform((v) => { return remap$(v, { getDocumentsRequest: "GetDocumentsRequest", }); }); export function getdocumentsRequestToJSON( getdocumentsRequest: GetdocumentsRequest, ): string { return JSON.stringify( GetdocumentsRequest$outboundSchema.parse(getdocumentsRequest), ); }