UNPKG

@allmaps/iiif-parser

Version:

Allmaps IIIF parser

66 lines (65 loc) 3.04 kB
import { z } from 'zod'; export declare const ImageService2Schema: 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, { '@id': string; profile: string | [string, ...(string | { formats?: string[] | undefined; maxArea?: number | undefined; maxHeight?: number | undefined; maxWidth?: number | undefined; qualities?: string[] | undefined; supports?: string[] | undefined; })[]]; '@context'?: string | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }, { '@id': string; profile: string | unknown[]; '@context'?: string | undefined; width?: number | undefined; height?: number | undefined; '@type'?: "ImageService1" | "ImageService2" | "ImageService3" | undefined; }>;