/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export const Condition = { Exists: "EXISTS", Visible: "VISIBLE", Enabled: "ENABLED", Editable: "EDITABLE", } as const; export type Condition = ClosedEnum; export type ElementExistenceAssertion = { type?: "ELEMENT_EXISTENCE" | undefined; negated?: boolean | undefined; condition: Condition; }; /** @internal */ export const Condition$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Condition); /** @internal */ export const Condition$outboundSchema: z.ZodNativeEnum = Condition$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Condition$ { /** @deprecated use `Condition$inboundSchema` instead. */ export const inboundSchema = Condition$inboundSchema; /** @deprecated use `Condition$outboundSchema` instead. */ export const outboundSchema = Condition$outboundSchema; } /** @internal */ export const ElementExistenceAssertion$inboundSchema: z.ZodType< ElementExistenceAssertion, z.ZodTypeDef, unknown > = z.object({ type: z.literal("ELEMENT_EXISTENCE").optional(), negated: z.boolean().optional(), condition: Condition$inboundSchema, }); /** @internal */ export type ElementExistenceAssertion$Outbound = { type: "ELEMENT_EXISTENCE"; negated?: boolean | undefined; condition: string; }; /** @internal */ export const ElementExistenceAssertion$outboundSchema: z.ZodType< ElementExistenceAssertion$Outbound, z.ZodTypeDef, ElementExistenceAssertion > = z.object({ type: z.literal("ELEMENT_EXISTENCE").default("ELEMENT_EXISTENCE" as const), negated: z.boolean().optional(), condition: Condition$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ElementExistenceAssertion$ { /** @deprecated use `ElementExistenceAssertion$inboundSchema` instead. */ export const inboundSchema = ElementExistenceAssertion$inboundSchema; /** @deprecated use `ElementExistenceAssertion$outboundSchema` instead. */ export const outboundSchema = ElementExistenceAssertion$outboundSchema; /** @deprecated use `ElementExistenceAssertion$Outbound` instead. */ export type Outbound = ElementExistenceAssertion$Outbound; }