/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type PaginationMetaResultWithTotal = { /** * If provided, pass this as the 'after' param to load the next page */ after?: string | undefined; /** * What was the maximum number of results requested */ pageSize?: number | undefined; /** * How many matching records were there in total, if known */ totalRecordCount?: number | undefined; }; /** @internal */ export const PaginationMetaResultWithTotal$inboundSchema: z.ZodType< PaginationMetaResultWithTotal, z.ZodTypeDef, unknown > = z.object({ after: z.string().optional(), page_size: z.number().int().default(25), total_record_count: z.number().int().optional(), }).transform((v) => { return remap$(v, { "page_size": "pageSize", "total_record_count": "totalRecordCount", }); }); /** @internal */ export type PaginationMetaResultWithTotal$Outbound = { after?: string | undefined; page_size: number; total_record_count?: number | undefined; }; /** @internal */ export const PaginationMetaResultWithTotal$outboundSchema: z.ZodType< PaginationMetaResultWithTotal$Outbound, z.ZodTypeDef, PaginationMetaResultWithTotal > = z.object({ after: z.string().optional(), pageSize: z.number().int().default(25), totalRecordCount: z.number().int().optional(), }).transform((v) => { return remap$(v, { pageSize: "page_size", totalRecordCount: "total_record_count", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace PaginationMetaResultWithTotal$ { /** @deprecated use `PaginationMetaResultWithTotal$inboundSchema` instead. */ export const inboundSchema = PaginationMetaResultWithTotal$inboundSchema; /** @deprecated use `PaginationMetaResultWithTotal$outboundSchema` instead. */ export const outboundSchema = PaginationMetaResultWithTotal$outboundSchema; /** @deprecated use `PaginationMetaResultWithTotal$Outbound` instead. */ export type Outbound = PaginationMetaResultWithTotal$Outbound; }