/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e5cca0809041 */ import * as z from "zod/v3"; /** * Describes the request body of the /deleteuser API call */ export type DeleteUserRequest = { /** * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. */ version?: number | undefined; /** * The datasource for which the user is removed */ datasource: string; /** * The email of the user to be deleted */ email: string; }; /** @internal */ export type DeleteUserRequest$Outbound = { version?: number | undefined; datasource: string; email: string; }; /** @internal */ export const DeleteUserRequest$outboundSchema: z.ZodType< DeleteUserRequest$Outbound, z.ZodTypeDef, DeleteUserRequest > = z.object({ version: z.number().int().optional(), datasource: z.string(), email: z.string(), }); export function deleteUserRequestToJSON( deleteUserRequest: DeleteUserRequest, ): string { return JSON.stringify( DeleteUserRequest$outboundSchema.parse(deleteUserRequest), ); }