import { z } from 'zod'; import type { Release } from '../types'; /** * OCI manifest object */ export declare const ManifestObject: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType?: string | null | undefined; }, { schemaVersion: 2; mediaType?: string | null | undefined; }>; /** * Oci descriptor * https://github.com/opencontainers/image-spec/blob/main/descriptor.md */ export declare const Descriptor: z.ZodObject<{ mediaType: z.ZodString; digest: z.ZodString; size: z.ZodOptional>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: string; size?: number | null | undefined; }, { digest: string; mediaType: string; size?: number | null | undefined; }>; /** * OCI Image Configuration. * * Compatible with old docker configiguration. * https://github.com/opencontainers/image-spec/blob/main/config.md */ export declare const OciImageConfig: z.ZodObject<{ architecture: z.ZodOptional>; config: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { Labels?: Record | null | undefined; }, { Labels?: Record | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; config?: { Labels?: Record | null | undefined; } | null | undefined; }, { architecture?: string | null | undefined; config?: { Labels?: Record | null | undefined; } | null | undefined; }>; export type OciImageConfig = z.infer; /** * OCI Helm Configuration * https://helm.sh/docs/topics/charts/#the-chartyaml-file */ export declare const OciHelmConfig: z.ZodObject<{ name: z.ZodString; version: z.ZodString; home: z.ZodOptional>; sources: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; version: string; home?: string | null | undefined; sources?: string[] | null | undefined; }, { name: string; version: string; home?: string | null | undefined; sources?: string[] | null | undefined; }>; export type OciHelmConfig = z.infer; /** * OCI Image Manifest * The same structure as docker image manifest, but mediaType is not required and is not present in the wild. * https://github.com/opencontainers/image-spec/blob/main/manifest.md */ export declare const OciImageManifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.manifest.v1+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.config.v1+json", "application/vnd.cncf.helm.config.v1+json"]>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }>; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }>; export type OciImageManifest = z.infer; /** * OCI Image List * mediaType is not required. * https://github.com/opencontainers/image-spec/blob/main/image-index.md */ export declare const OciImageIndexManifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.index.v1+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.manifest.v1+json", "application/vnd.oci.image.index.v1+json"]>; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }>; /** * Image Manifest * https://docs.docker.com/registry/spec/manifest-v2-2/#image-manifest */ export declare const DistributionManifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.container.image.v1+json">; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }>; export type DistributionManifest = z.infer; /** * Manifest List * https://docs.docker.com/registry/spec/manifest-v2-2/#manifest-list */ export declare const DistributionListManifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.list.v2+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }>; export declare const Manifest: z.ZodPipeline; mediaType: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, z.ZodDiscriminatedUnion<"mediaType", [z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.container.image.v1+json">; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.list.v2+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.manifest.v1+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.config.v1+json", "application/vnd.cncf.helm.config.v1+json"]>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }>; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.index.v1+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.manifest.v1+json", "application/vnd.oci.image.index.v1+json"]>; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }>]>>; export type Manifest = z.infer; export declare const ManifestJson: z.ZodPipeline, z.ZodPipeline; mediaType: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, z.ZodDiscriminatedUnion<"mediaType", [z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.container.image.v1+json">; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }, { config: { digest: string; mediaType: "application/vnd.docker.container.image.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.list.v2+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodLiteral<"application/vnd.docker.distribution.manifest.v2+json">; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }, { schemaVersion: 2; mediaType: "application/vnd.docker.distribution.manifest.list.v2+json"; manifests: { digest: string; mediaType: "application/vnd.docker.distribution.manifest.v2+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.manifest.v1+json">; config: z.ZodObject<{ size: z.ZodOptional>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.config.v1+json", "application/vnd.cncf.helm.config.v1+json"]>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }>; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }, { config: { digest: string; mediaType: "application/vnd.oci.image.config.v1+json" | "application/vnd.cncf.helm.config.v1+json"; size?: number | null | undefined; }; schemaVersion: 2; mediaType: "application/vnd.oci.image.manifest.v1+json"; annotations?: Record | null | undefined; }>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; mediaType: z.ZodLiteral<"application/vnd.oci.image.index.v1+json">; manifests: z.ZodArray>; digest: z.ZodString; mediaType: z.ZodEnum<["application/vnd.oci.image.manifest.v1+json", "application/vnd.oci.image.index.v1+json"]>; platform: z.ZodOptional>; }, "strip", z.ZodTypeAny, { architecture?: string | null | undefined; }, { architecture?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }, { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }>, "many">; annotations: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }, { schemaVersion: 2; mediaType: "application/vnd.oci.image.index.v1+json"; manifests: { digest: string; mediaType: "application/vnd.oci.image.manifest.v1+json" | "application/vnd.oci.image.index.v1+json"; size?: number | null | undefined; platform?: { architecture?: string | null | undefined; } | null | undefined; }[]; annotations?: Record | null | undefined; }>]>>>; export declare const DockerHubTag: z.ZodEffects>; digest: z.ZodCatch>; }, "strip", z.ZodTypeAny, { name: string; digest: string | null; tag_last_pushed: string | null; }, { name: string; tag_last_pushed?: unknown; digest?: unknown; }>, Release, { name: string; tag_last_pushed?: unknown; digest?: unknown; }>; export declare const DockerHubTagsPage: z.ZodEffects>; results: z.ZodEffects, Release[], any[]>; }, "strip", z.ZodTypeAny, { next: string | null; results: Release[]; }, { results: any[]; next?: unknown; }>, { nextPage: string | null; items: Release[]; }, { results: any[]; next?: unknown; }>;