UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

87 lines 3.02 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; import { VcrImageLayer } from "./vcrimagelayer.js"; /** * Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */ export declare const VcrImageDetailKind: { readonly Attestation: "attestation"; readonly Index: "index"; readonly Manifest: "manifest"; }; /** * Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */ export type VcrImageDetailKind = ClosedEnum<typeof VcrImageDetailKind>; /** * VHS-readiness status, or `null` for a multi-platform index. */ export declare const VcrImageDetailStatus: { readonly Preparing: "preparing"; readonly Ready: "ready"; readonly Unoptimized: "unoptimized"; }; /** * VHS-readiness status, or `null` for a multi-platform index. */ export type VcrImageDetailStatus = ClosedEnum<typeof VcrImageDetailStatus>; /** * A single image with its tags, status and resolved Dockerfile layer history. */ export type VcrImageDetail = { layers: Array<VcrImageLayer>; /** * Tags pointing at this image's manifest. */ tags: Array<string>; /** * Internal identifier of the image. */ id: string; /** * Identifier of the repository the image belongs to. */ repositoryId: string; /** * SHA-256 digest of the image manifest. */ manifestDigest: string; /** * Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */ kind: VcrImageDetailKind; /** * Operating system the manifest targets. Only present for single-platform manifests. */ platform?: string | undefined; /** * CPU architecture the manifest targets. Only present for single-platform manifests. */ arch?: string | undefined; /** * Identifier of the actor that pushed the image. */ pushedBy?: string | undefined; /** * Total size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry. */ sizeInBytes: number; /** * VHS-readiness status, or `null` for a multi-platform index. */ status: VcrImageDetailStatus | null; /** * ISO 8601 timestamp of when the image was created. */ createdAt: string; }; /** @internal */ export declare const VcrImageDetailKind$inboundSchema: z.ZodNativeEnum<typeof VcrImageDetailKind>; /** @internal */ export declare const VcrImageDetailStatus$inboundSchema: z.ZodNativeEnum<typeof VcrImageDetailStatus>; /** @internal */ export declare const VcrImageDetail$inboundSchema: z.ZodType<VcrImageDetail, z.ZodTypeDef, unknown>; export declare function vcrImageDetailFromJSON(jsonString: string): SafeParseResult<VcrImageDetail, SDKValidationError>; //# sourceMappingURL=vcrimagedetail.d.ts.map