/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 748f2d397bc3 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type DeletecollectionRequest = { /** * 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; /** * DeleteCollection request */ deleteCollectionRequest: components.DeleteCollectionRequest; }; /** @internal */ export type DeletecollectionRequest$Outbound = { locale?: string | undefined; DeleteCollectionRequest: components.DeleteCollectionRequest$Outbound; }; /** @internal */ export const DeletecollectionRequest$outboundSchema: z.ZodType< DeletecollectionRequest$Outbound, z.ZodTypeDef, DeletecollectionRequest > = z.object({ locale: z.string().optional(), deleteCollectionRequest: components.DeleteCollectionRequest$outboundSchema, }).transform((v) => { return remap$(v, { deleteCollectionRequest: "DeleteCollectionRequest", }); }); export function deletecollectionRequestToJSON( deletecollectionRequest: DeletecollectionRequest, ): string { return JSON.stringify( DeletecollectionRequest$outboundSchema.parse(deletecollectionRequest), ); }