/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d15682826484 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type FeedRequest = { /** * 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; /** * Includes request params, client data and more for making user's feed. */ feedRequest: components.FeedRequest; }; /** @internal */ export type FeedRequest$Outbound = { locale?: string | undefined; FeedRequest: components.FeedRequest$Outbound; }; /** @internal */ export const FeedRequest$outboundSchema: z.ZodType< FeedRequest$Outbound, z.ZodTypeDef, FeedRequest > = z.object({ locale: z.string().optional(), feedRequest: components.FeedRequest$outboundSchema, }).transform((v) => { return remap$(v, { feedRequest: "FeedRequest", }); }); export function feedRequestToJSON(feedRequest: FeedRequest): string { return JSON.stringify(FeedRequest$outboundSchema.parse(feedRequest)); }