/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3f905ce55490 */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const OrderBy = { Asc: "ASC", Desc: "DESC", } as const; export type OrderBy = ClosedEnum; export type SortOptions = { orderBy?: OrderBy | undefined; sortBy?: string | undefined; }; /** @internal */ export const OrderBy$outboundSchema: z.ZodNativeEnum = z .nativeEnum(OrderBy); /** @internal */ export type SortOptions$Outbound = { orderBy?: string | undefined; sortBy?: string | undefined; }; /** @internal */ export const SortOptions$outboundSchema: z.ZodType< SortOptions$Outbound, z.ZodTypeDef, SortOptions > = z.object({ orderBy: OrderBy$outboundSchema.optional(), sortBy: z.string().optional(), }); export function sortOptionsToJSON(sortOptions: SortOptions): string { return JSON.stringify(SortOptions$outboundSchema.parse(sortOptions)); }