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