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