/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 12bbf14f66d9 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type AddcollectionitemsRequest = { /** * 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; /** * Data describing the add operation. */ addCollectionItemsRequest: components.AddCollectionItemsRequest; }; /** @internal */ export type AddcollectionitemsRequest$Outbound = { locale?: string | undefined; AddCollectionItemsRequest: components.AddCollectionItemsRequest$Outbound; }; /** @internal */ export const AddcollectionitemsRequest$outboundSchema: z.ZodType< AddcollectionitemsRequest$Outbound, z.ZodTypeDef, AddcollectionitemsRequest > = z.object({ locale: z.string().optional(), addCollectionItemsRequest: components.AddCollectionItemsRequest$outboundSchema, }).transform((v) => { return remap$(v, { addCollectionItemsRequest: "AddCollectionItemsRequest", }); }); export function addcollectionitemsRequestToJSON( addcollectionitemsRequest: AddcollectionitemsRequest, ): string { return JSON.stringify( AddcollectionitemsRequest$outboundSchema.parse(addcollectionitemsRequest), ); }