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