/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 54328beb0071 */ import * as z from "zod/v3"; import { CollectionItemDescriptor, CollectionItemDescriptor$Outbound, CollectionItemDescriptor$outboundSchema, } from "./collectionitemdescriptor.js"; export type AddCollectionItemsRequest = { /** * The ID of the Collection to add items to. */ collectionId: number; /** * The CollectionItemDescriptors of the items being added. */ addedCollectionItemDescriptors?: Array | undefined; }; /** @internal */ export type AddCollectionItemsRequest$Outbound = { collectionId: number; addedCollectionItemDescriptors?: | Array | undefined; }; /** @internal */ export const AddCollectionItemsRequest$outboundSchema: z.ZodType< AddCollectionItemsRequest$Outbound, z.ZodTypeDef, AddCollectionItemsRequest > = z.object({ collectionId: z.number(), addedCollectionItemDescriptors: z.array( CollectionItemDescriptor$outboundSchema, ).optional(), }); export function addCollectionItemsRequestToJSON( addCollectionItemsRequest: AddCollectionItemsRequest, ): string { return JSON.stringify( AddCollectionItemsRequest$outboundSchema.parse(addCollectionItemsRequest), ); }