/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: cfee38f1db5d */ import * as z from "zod/v3"; export type DeleteCollectionRequest = { /** * The IDs of the Collections to delete. */ ids: Array; /** * The datasource allowed in the Collection to be deleted. */ allowedDatasource?: string | undefined; }; /** @internal */ export type DeleteCollectionRequest$Outbound = { ids: Array; allowedDatasource?: string | undefined; }; /** @internal */ export const DeleteCollectionRequest$outboundSchema: z.ZodType< DeleteCollectionRequest$Outbound, z.ZodTypeDef, DeleteCollectionRequest > = z.object({ ids: z.array(z.number().int()), allowedDatasource: z.string().optional(), }); export function deleteCollectionRequestToJSON( deleteCollectionRequest: DeleteCollectionRequest, ): string { return JSON.stringify( DeleteCollectionRequest$outboundSchema.parse(deleteCollectionRequest), ); }