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