/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 401acc6d994b */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** * The verification action requested. */ export const VerifyRequestAction = { Verify: "VERIFY", Deprecate: "DEPRECATE", Unverify: "UNVERIFY", } as const; /** * The verification action requested. */ export type VerifyRequestAction = ClosedEnum; export type VerifyRequest = { /** * The document which is verified. */ documentId: string; /** * The verification action requested. */ action?: VerifyRequestAction | undefined; }; /** @internal */ export const VerifyRequestAction$outboundSchema: z.ZodNativeEnum< typeof VerifyRequestAction > = z.nativeEnum(VerifyRequestAction); /** @internal */ export type VerifyRequest$Outbound = { documentId: string; action?: string | undefined; }; /** @internal */ export const VerifyRequest$outboundSchema: z.ZodType< VerifyRequest$Outbound, z.ZodTypeDef, VerifyRequest > = z.object({ documentId: z.string(), action: VerifyRequestAction$outboundSchema.optional(), }); export function verifyRequestToJSON(verifyRequest: VerifyRequest): string { return JSON.stringify(VerifyRequest$outboundSchema.parse(verifyRequest)); }