/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { A11yTargetWithCache, A11yTargetWithCache$inboundSchema, A11yTargetWithCache$Outbound, A11yTargetWithCache$outboundSchema, } from "./a11ytargetwithcache.js"; export type DescriptionTarget = { type?: "description" | undefined; elementDescriptor: string; a11yData?: A11yTargetWithCache | undefined; }; /** @internal */ export const DescriptionTarget$inboundSchema: z.ZodType< DescriptionTarget, z.ZodTypeDef, unknown > = z.object({ type: z.literal("description").optional(), elementDescriptor: z.string(), a11yData: A11yTargetWithCache$inboundSchema.optional(), }); /** @internal */ export type DescriptionTarget$Outbound = { type: "description"; elementDescriptor: string; a11yData?: A11yTargetWithCache$Outbound | undefined; }; /** @internal */ export const DescriptionTarget$outboundSchema: z.ZodType< DescriptionTarget$Outbound, z.ZodTypeDef, DescriptionTarget > = z.object({ type: z.literal("description").default("description" as const), elementDescriptor: z.string(), a11yData: A11yTargetWithCache$outboundSchema.optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace DescriptionTarget$ { /** @deprecated use `DescriptionTarget$inboundSchema` instead. */ export const inboundSchema = DescriptionTarget$inboundSchema; /** @deprecated use `DescriptionTarget$outboundSchema` instead. */ export const outboundSchema = DescriptionTarget$outboundSchema; /** @deprecated use `DescriptionTarget$Outbound` instead. */ export type Outbound = DescriptionTarget$Outbound; }