/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: bf86a4b170a2 */ import * as z from "zod/v3"; export type EditCollectionItemRequest = { /** * The optional name of the Collection item. */ name?: string | undefined; /** * A helpful description of why this CollectionItem is in the Collection that it's in. */ description?: string | undefined; /** * The emoji icon for this CollectionItem. Only used for Text type items. */ icon?: string | undefined; /** * The ID of the Collection to edit CollectionItems in. */ collectionId: number; /** * The ID of the CollectionItem to edit. */ itemId: string; }; /** @internal */ export type EditCollectionItemRequest$Outbound = { name?: string | undefined; description?: string | undefined; icon?: string | undefined; collectionId: number; itemId: string; }; /** @internal */ export const EditCollectionItemRequest$outboundSchema: z.ZodType< EditCollectionItemRequest$Outbound, z.ZodTypeDef, EditCollectionItemRequest > = z.object({ name: z.string().optional(), description: z.string().optional(), icon: z.string().optional(), collectionId: z.number().int(), itemId: z.string(), }); export function editCollectionItemRequestToJSON( editCollectionItemRequest: EditCollectionItemRequest, ): string { return JSON.stringify( EditCollectionItemRequest$outboundSchema.parse(editCollectionItemRequest), ); }