Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Variable lookupApplySchemaConst

    lookupApplySchema: ZodEffects<
        ZodObject<
            {
                candidate: 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;
                    },
                >;
                fields: ZodObject<
                    {
                        author: ZodOptional<ZodBoolean>;
                        cover: ZodOptional<ZodBoolean>;
                        series: ZodOptional<ZodBoolean>;
                        seriesIndex: ZodOptional<ZodBoolean>;
                        title: ZodOptional<ZodBoolean>;
                    },
                    "strict",
                    ZodTypeAny,
                    {
                        author?: boolean;
                        cover?: boolean;
                        series?: boolean;
                        seriesIndex?: boolean;
                        title?: boolean;
                    },
                    {
                        author?: boolean;
                        cover?: boolean;
                        series?: boolean;
                        seriesIndex?: boolean;
                        title?: boolean;
                    },
                >;
            },
            "strip",
            ZodTypeAny,
            {
                candidate: {
                    author: string
                    | null;
                    coverRef: string | null;
                    series: string | null;
                    seriesIndex: number | null;
                    source: "musicbrainz" | "openlibrary";
                    sourceId: string;
                    title: string;
                    year: number | null;
                };
                fields: {
                    author?: boolean;
                    cover?: boolean;
                    series?: boolean;
                    seriesIndex?: boolean;
                    title?: boolean;
                };
            },
            {
                candidate: {
                    author: string
                    | null;
                    coverRef: string | null;
                    series: string | null;
                    seriesIndex: number | null;
                    source: "musicbrainz" | "openlibrary";
                    sourceId: string;
                    title: string;
                    year: number | null;
                };
                fields: {
                    author?: boolean;
                    cover?: boolean;
                    series?: boolean;
                    seriesIndex?: boolean;
                    title?: boolean;
                };
            },
        >,
        {
            candidate: {
                author: string
                | null;
                coverRef: string | null;
                series: string | null;
                seriesIndex: number | null;
                source: "musicbrainz" | "openlibrary";
                sourceId: string;
                title: string;
                year: number | null;
            };
            fields: {
                author?: boolean;
                cover?: boolean;
                series?: boolean;
                seriesIndex?: boolean;
                title?: boolean;
            };
        },
        {
            candidate: {
                author: string
                | null;
                coverRef: string | null;
                series: string | null;
                seriesIndex: number | null;
                source: "musicbrainz" | "openlibrary";
                sourceId: string;
                title: string;
                year: number | null;
            };
            fields: {
                author?: boolean;
                cover?: boolean;
                series?: boolean;
                seriesIndex?: boolean;
                title?: boolean;
            };
        },
    > = ...

    POST /library/:id/lookup body: the chosen candidate and the fields the user kept ticked. An unticked (or absent) field stays as it was. A ticked field must have a value on the candidate — a lookup sets fields, it never clears one the file had.