/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { SortDirection, SortDirection$outboundSchema, } from "./sort-direction.js"; export type SortCondition = { direction?: SortDirection | undefined; field?: string | undefined; }; /** @internal */ export type SortCondition$Outbound = { direction?: string | undefined; field?: string | undefined; }; /** @internal */ export const SortCondition$outboundSchema: z.ZodMiniType< SortCondition$Outbound, SortCondition > = z.object({ direction: z.optional(SortDirection$outboundSchema), field: z.optional(z.string()), }); export function sortConditionToJSON(sortCondition: SortCondition): string { return JSON.stringify(SortCondition$outboundSchema.parse(sortCondition)); }