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