/* * 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/sdkvalidationerror.js"; import { DownloadableRead, DownloadableRead$inboundSchema, } from "./downloadableread.js"; import { Pagination, Pagination$inboundSchema } from "./pagination.js"; export type ListResourceDownloadableRead = { items: Array; pagination: Pagination; }; /** @internal */ export const ListResourceDownloadableRead$inboundSchema: z.ZodMiniType< ListResourceDownloadableRead, unknown > = z.object({ items: z.array(DownloadableRead$inboundSchema), pagination: Pagination$inboundSchema, }); export function listResourceDownloadableReadFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListResourceDownloadableRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceDownloadableRead' from JSON`, ); }