/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 49421ce72ca3 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetdocumentsbyfacetsRequest = { /** * 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 facet conditions for documents to be retrieved. */ getDocumentsByFacetsRequest?: | components.GetDocumentsByFacetsRequest | undefined; }; /** @internal */ export type GetdocumentsbyfacetsRequest$Outbound = { locale?: string | undefined; GetDocumentsByFacetsRequest?: | components.GetDocumentsByFacetsRequest$Outbound | undefined; }; /** @internal */ export const GetdocumentsbyfacetsRequest$outboundSchema: z.ZodType< GetdocumentsbyfacetsRequest$Outbound, z.ZodTypeDef, GetdocumentsbyfacetsRequest > = z.object({ locale: z.string().optional(), getDocumentsByFacetsRequest: components .GetDocumentsByFacetsRequest$outboundSchema.optional(), }).transform((v) => { return remap$(v, { getDocumentsByFacetsRequest: "GetDocumentsByFacetsRequest", }); }); export function getdocumentsbyfacetsRequestToJSON( getdocumentsbyfacetsRequest: GetdocumentsbyfacetsRequest, ): string { return JSON.stringify( GetdocumentsbyfacetsRequest$outboundSchema.parse( getdocumentsbyfacetsRequest, ), ); }