/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: ceac90c98d8e */ import * as z from "zod/v3"; export type GetAnswerRequest = { /** * The opaque ID of the Answer. */ id?: number | undefined; /** * 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 GetAnswerRequest$Outbound = { id?: number | undefined; docId?: string | undefined; }; /** @internal */ export const GetAnswerRequest$outboundSchema: z.ZodType< GetAnswerRequest$Outbound, z.ZodTypeDef, GetAnswerRequest > = z.object({ id: z.number().int().optional(), docId: z.string().optional(), }); export function getAnswerRequestToJSON( getAnswerRequest: GetAnswerRequest, ): string { return JSON.stringify( GetAnswerRequest$outboundSchema.parse(getAnswerRequest), ); }