Variable lookupSearchResponseSchemaConst
lookupSearchResponseSchema: ZodObject<
{
candidates: ZodArray<
ZodEffects<
ZodObject<
{
author: ZodNullable<ZodString>;
coverRef: ZodNullable<ZodString>;
series: ZodNullable<ZodString>;
seriesIndex: ZodNullable<ZodNumber>;
source: ZodEnum<["musicbrainz", "openlibrary"]>;
sourceId: ZodString;
title: ZodString;
year: ZodNullable<ZodNumber>;
},
"strip",
ZodTypeAny,
{
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
},
{
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
},
>,
{
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
},
{
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
},
>,
"many",
>;
source: ZodEnum<["musicbrainz", "openlibrary"]>;
},
"strip",
ZodTypeAny,
{
candidates: {
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
}[];
source: "musicbrainz"
| "openlibrary";
},
{
candidates: {
author: string
| null;
coverRef: string | null;
series: string | null;
seriesIndex: number | null;
source: "musicbrainz" | "openlibrary";
sourceId: string;
title: string;
year: number | null;
}[];
source: "musicbrainz"
| "openlibrary";
},
> = ...
GET /library/:id/lookupresponse. An empty list is "no results", not an error.