@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>
85 lines • 2.86 kB
TypeScript
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";
/**
* Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation.
*/
export declare const VcrTagKind: {
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 VcrTagKind = ClosedEnum<typeof VcrTagKind>;
/**
* VHS-readiness status, or `null` for a multi-platform index.
*/
export declare const VcrTagStatus: {
readonly Preparing: "preparing";
readonly Ready: "ready";
readonly Unoptimized: "unoptimized";
};
/**
* VHS-readiness status, or `null` for a multi-platform index.
*/
export type VcrTagStatus = ClosedEnum<typeof VcrTagStatus>;
/**
* A tag pointing at an image in a Vercel Container Registry repository, enriched with the backing image's metadata and VHS-readiness status.
*/
export type VcrTag = {
/**
* The tag name.
*/
tag: string;
/**
* SHA-256 digest of the image manifest the tag points at.
*/
manifestDigest: string;
/**
* Internal identifier of the image the tag points at.
*/
imageId: string;
/**
* Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation.
*/
kind: VcrTagKind;
/**
* 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;
/**
* VHS-readiness status, or `null` for a multi-platform index.
*/
status: VcrTagStatus | null;
/**
* Total size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry.
*/
sizeInBytes: number;
/**
* ISO 8601 timestamp of when the tag was created.
*/
createdAt: string;
/**
* ISO 8601 timestamp of when the tag was last updated.
*/
updatedAt: string;
};
/** @internal */
export declare const VcrTagKind$inboundSchema: z.ZodNativeEnum<typeof VcrTagKind>;
/** @internal */
export declare const VcrTagStatus$inboundSchema: z.ZodNativeEnum<typeof VcrTagStatus>;
/** @internal */
export declare const VcrTag$inboundSchema: z.ZodType<VcrTag, z.ZodTypeDef, unknown>;
export declare function vcrTagFromJSON(jsonString: string): SafeParseResult<VcrTag, SDKValidationError>;
//# sourceMappingURL=vcrtag.d.ts.map