/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: ab150e0dac40 */ import * as z from "zod/v3"; export type DeleteCollectionItemRequest = { /** * The ID of the Collection to remove an item in. */ collectionId: number; /** * The item ID of the CollectionItem to remove from this Collection. */ itemId: string; /** * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. */ documentId?: string | undefined; }; /** @internal */ export type DeleteCollectionItemRequest$Outbound = { collectionId: number; itemId: string; documentId?: string | undefined; }; /** @internal */ export const DeleteCollectionItemRequest$outboundSchema: z.ZodType< DeleteCollectionItemRequest$Outbound, z.ZodTypeDef, DeleteCollectionItemRequest > = z.object({ collectionId: z.number(), itemId: z.string(), documentId: z.string().optional(), }); export function deleteCollectionItemRequestToJSON( deleteCollectionItemRequest: DeleteCollectionItemRequest, ): string { return JSON.stringify( DeleteCollectionItemRequest$outboundSchema.parse( deleteCollectionItemRequest, ), ); }