/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1c2a0e6a3400 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type DeletecollectionitemRequest = { /** * 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 delete operation. */ deleteCollectionItemRequest: components.DeleteCollectionItemRequest; }; /** @internal */ export type DeletecollectionitemRequest$Outbound = { locale?: string | undefined; DeleteCollectionItemRequest: components.DeleteCollectionItemRequest$Outbound; }; /** @internal */ export const DeletecollectionitemRequest$outboundSchema: z.ZodType< DeletecollectionitemRequest$Outbound, z.ZodTypeDef, DeletecollectionitemRequest > = z.object({ locale: z.string().optional(), deleteCollectionItemRequest: components.DeleteCollectionItemRequest$outboundSchema, }).transform((v) => { return remap$(v, { deleteCollectionItemRequest: "DeleteCollectionItemRequest", }); }); export function deletecollectionitemRequestToJSON( deletecollectionitemRequest: DeletecollectionitemRequest, ): string { return JSON.stringify( DeletecollectionitemRequest$outboundSchema.parse( deletecollectionitemRequest, ), ); }