/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 534b6e128a79 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PromptVersion, PromptVersion$inboundSchema } from "./promptversion.js"; export type ListPromptVersionsResponse = { data?: Array | undefined; }; /** @internal */ export const ListPromptVersionsResponse$inboundSchema: z.ZodType< ListPromptVersionsResponse, unknown > = z.object({ data: z.array(PromptVersion$inboundSchema).optional(), }); export function listPromptVersionsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListPromptVersionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponse' from JSON`, ); }