/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 366f878c33cd */ import * as z from "zod/v3"; export type DeleteAnswerRequest = { /** * The opaque ID of the Answer. */ id: number; /** * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. */ docId?: string | undefined; }; /** @internal */ export type DeleteAnswerRequest$Outbound = { id: number; docId?: string | undefined; }; /** @internal */ export const DeleteAnswerRequest$outboundSchema: z.ZodType< DeleteAnswerRequest$Outbound, z.ZodTypeDef, DeleteAnswerRequest > = z.object({ id: z.number().int(), docId: z.string().optional(), }); export function deleteAnswerRequestToJSON( deleteAnswerRequest: DeleteAnswerRequest, ): string { return JSON.stringify( DeleteAnswerRequest$outboundSchema.parse(deleteAnswerRequest), ); }