/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; export type RerankResponse = { results: Array<{ [k: string]: any }>; }; /** @internal */ export const RerankResponse$inboundSchema: z.ZodMiniType< RerankResponse, unknown > = z.object({ results: z.array(z.record(z.string(), z.any())), }); export function rerankResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RerankResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RerankResponse' from JSON`, ); }