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