UNPKG

@allmaps/iiif-parser

Version:

Allmaps IIIF parser

186 lines (185 loc) 7.81 kB
import { z } from 'zod'; export declare const ImageServiceSchema: z.ZodUnion<[z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodOptional<z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>>; profile: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>]>, z.ZodUnknown]>, string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; } | undefined, unknown>, "many">]>, string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]], string | unknown[]>, z.ZodEnum<["level0", "level1", "level2"]>]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; '@context': z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"http://library.stanford.edu/iiif/image-api/1.1/context.json">, z.ZodLiteral<"http://iiif.io/api/image/1/context.json">, z.ZodUnion<[z.ZodLiteral<"http://iiif.io/api/image/2/context.json">, z.ZodLiteral<"https://iiif.io/api/image/2/context.json">, z.ZodString]>]>>; }, "strip", z.ZodTypeAny, { profile: string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]]; '@id': string; '@type'?: "ImageService2" | "ImageService1" | "ImageService3" | undefined; width?: number | undefined; height?: number | undefined; '@context'?: string | undefined; }, { profile: string | unknown[]; '@id': string; '@type'?: "ImageService2" | "ImageService1" | "ImageService3" | undefined; width?: number | undefined; height?: number | undefined; '@context'?: string | undefined; }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"ImageService2">; profile: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>]>, z.ZodUnknown]>, string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; } | undefined, unknown>, "many">]>, string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]], string | unknown[]>; }, "strip", z.ZodTypeAny, { type: "ImageService2"; id: string; profile: string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]]; }, { type: "ImageService2"; id: string; profile: string | unknown[]; }>, z.ZodObject<{ '@id': z.ZodString; '@type': z.ZodLiteral<"ImageService2">; profile: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; maxArea: z.ZodOptional<z.ZodNumber>; maxHeight: z.ZodOptional<z.ZodNumber>; maxWidth: z.ZodOptional<z.ZodNumber>; qualities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; supports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }, { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; }>]>, z.ZodUnknown]>, string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; } | undefined, unknown>, "many">]>, string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]], string | unknown[]>; }, "strip", z.ZodTypeAny, { profile: string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]]; '@id': string; '@type': "ImageService2"; }, { profile: string | unknown[]; '@id': string; '@type': "ImageService2"; }>]>, z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["ImageService1", "ImageService2", "ImageService3"]>; profile: z.ZodCatch<z.ZodEnum<["level0", "level1", "level2"]>>; }, "strip", z.ZodTypeAny, { type: "ImageService2" | "ImageService1" | "ImageService3"; id: string; profile: "level0" | "level1" | "level2"; }, { type: "ImageService2" | "ImageService1" | "ImageService3"; id: string; profile?: unknown; }>]>]>;