/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export const ElementAttributeValueAssertionOperation = { Contains: "CONTAINS", StartsWith: "STARTS_WITH", Equals: "EQUALS", } as const; export type ElementAttributeValueAssertionOperation = ClosedEnum< typeof ElementAttributeValueAssertionOperation >; export type ElementAttributeValueAssertion = { type?: "ELEMENT_ATTRIBUTE" | undefined; negated?: boolean | undefined; operation: ElementAttributeValueAssertionOperation; attr: string; value: string; }; /** @internal */ export const ElementAttributeValueAssertionOperation$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ElementAttributeValueAssertionOperation); /** @internal */ export const ElementAttributeValueAssertionOperation$outboundSchema: z.ZodNativeEnum = ElementAttributeValueAssertionOperation$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ElementAttributeValueAssertionOperation$ { /** @deprecated use `ElementAttributeValueAssertionOperation$inboundSchema` instead. */ export const inboundSchema = ElementAttributeValueAssertionOperation$inboundSchema; /** @deprecated use `ElementAttributeValueAssertionOperation$outboundSchema` instead. */ export const outboundSchema = ElementAttributeValueAssertionOperation$outboundSchema; } /** @internal */ export const ElementAttributeValueAssertion$inboundSchema: z.ZodType< ElementAttributeValueAssertion, z.ZodTypeDef, unknown > = z.object({ type: z.literal("ELEMENT_ATTRIBUTE").optional(), negated: z.boolean().optional(), operation: ElementAttributeValueAssertionOperation$inboundSchema, attr: z.string(), value: z.string(), }); /** @internal */ export type ElementAttributeValueAssertion$Outbound = { type: "ELEMENT_ATTRIBUTE"; negated?: boolean | undefined; operation: string; attr: string; value: string; }; /** @internal */ export const ElementAttributeValueAssertion$outboundSchema: z.ZodType< ElementAttributeValueAssertion$Outbound, z.ZodTypeDef, ElementAttributeValueAssertion > = z.object({ type: z.literal("ELEMENT_ATTRIBUTE").default("ELEMENT_ATTRIBUTE" as const), negated: z.boolean().optional(), operation: ElementAttributeValueAssertionOperation$outboundSchema, attr: z.string(), value: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ElementAttributeValueAssertion$ { /** @deprecated use `ElementAttributeValueAssertion$inboundSchema` instead. */ export const inboundSchema = ElementAttributeValueAssertion$inboundSchema; /** @deprecated use `ElementAttributeValueAssertion$outboundSchema` instead. */ export const outboundSchema = ElementAttributeValueAssertion$outboundSchema; /** @deprecated use `ElementAttributeValueAssertion$Outbound` instead. */ export type Outbound = ElementAttributeValueAssertion$Outbound; }