/* * 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 * as types from "../../types/primitives.js"; import { SDKValidationError } from "./sdk-validation-error.js"; export type PaginationResponse = { limit?: number | undefined; offset?: number | undefined; total?: number | undefined; }; /** @internal */ export const PaginationResponse$inboundSchema: z.ZodMiniType< PaginationResponse, unknown > = z.object({ limit: types.optional(types.number()), offset: types.optional(types.number()), total: types.optional(types.number()), }); export function paginationResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PaginationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaginationResponse' from JSON`, ); }