Variable catalogSearchResponseSchemaConst
catalogSearchResponseSchema: ZodObject<
{
count: ZodNumber;
nextPage: ZodNullable<ZodNumber>;
results: ZodArray<
ZodObject<
{
authors: ZodArray<ZodString, "many">;
coverUrl: ZodNullable<ZodString>;
downloadCount: ZodNumber;
epubAvailable: ZodBoolean;
id: ZodNumber;
languages: ZodArray<ZodString, "many">;
subjects: ZodArray<ZodString, "many">;
title: ZodString;
},
"strip",
ZodTypeAny,
{
authors: string[];
coverUrl: string
| null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
},
{
authors: string[];
coverUrl: string
| null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
count: number;
nextPage: number
| null;
results: {
authors: string[];
coverUrl: string | null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
}[];
},
{
count: number;
nextPage: number
| null;
results: {
authors: string[];
coverUrl: string | null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
}[];
},
> = ...
GET /catalog/gutenbergresponse.countis the upstream total match count;nextPageis the 1-based page to request for "More" (null when the current page is the last one) — the proxy derives it from Gutendex'snextURL so the client never touches Gutendex directly.