/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 3fa59bfbd646
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const PaginationInfo$inboundSchema = z.object({
    total_items: z.int(),
    total_pages: z.int(),
    current_page: z.int(),
    page_size: z.int(),
    has_more: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "total_items": "totalItems",
        "total_pages": "totalPages",
        "current_page": "currentPage",
        "page_size": "pageSize",
        "has_more": "hasMore",
    });
});
export function paginationInfoFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PaginationInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaginationInfo' from JSON`);
}
//# sourceMappingURL=paginationinfo.js.map