/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 126e09cd81fd */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; export const Direction = { Asc: "asc", Desc: "desc", } as const; export type Direction = ClosedEnum; export type OrderByClause = { field: string; direction?: Direction | undefined; }; /** @internal */ export const Direction$outboundSchema: z.ZodEnum = z.enum( Direction, ); /** @internal */ export type OrderByClause$Outbound = { field: string; direction: string; }; /** @internal */ export const OrderByClause$outboundSchema: z.ZodType< OrderByClause$Outbound, OrderByClause > = z.object({ field: z.string(), direction: Direction$outboundSchema.default("asc"), }); export function orderByClauseToJSON(orderByClause: OrderByClause): string { return JSON.stringify(OrderByClause$outboundSchema.parse(orderByClause)); }