@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>
233 lines • 7.83 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";
/**
* Docker/OCI build instruction associated with an image layer.
*/
export declare const VcrImageLayer4Operation: {
readonly Add: "ADD";
readonly Arg: "ARG";
readonly Cmd: "CMD";
readonly Copy: "COPY";
readonly Entrypoint: "ENTRYPOINT";
readonly Env: "ENV";
readonly Expose: "EXPOSE";
readonly From: "FROM";
readonly Healthcheck: "HEALTHCHECK";
readonly Label: "LABEL";
readonly Onbuild: "ONBUILD";
readonly Run: "RUN";
readonly Shell: "SHELL";
readonly Stopsignal: "STOPSIGNAL";
readonly Unknown: "UNKNOWN";
readonly User: "USER";
readonly Volume: "VOLUME";
readonly Workdir: "WORKDIR";
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export type VcrImageLayer4Operation = ClosedEnum<typeof VcrImageLayer4Operation>;
export declare const VcrImageLayer4Type: {
readonly Add: "ADD";
readonly Arg: "ARG";
readonly Cmd: "CMD";
readonly Copy: "COPY";
readonly Entrypoint: "ENTRYPOINT";
readonly Expose: "EXPOSE";
readonly Healthcheck: "HEALTHCHECK";
readonly Label: "LABEL";
readonly Onbuild: "ONBUILD";
readonly Shell: "SHELL";
readonly Stopsignal: "STOPSIGNAL";
readonly Unknown: "UNKNOWN";
readonly User: "USER";
readonly Volume: "VOLUME";
readonly Workdir: "WORKDIR";
};
export type VcrImageLayer4Type = ClosedEnum<typeof VcrImageLayer4Type>;
export type VcrImageLayer4 = {
createdBy: string | null;
digest: string | null;
/**
* Docker/OCI build instruction associated with an image layer.
*/
operation: VcrImageLayer4Operation;
sizeBytes: number | null;
type: VcrImageLayer4Type;
value: string | null;
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export declare const VcrImageLayer3Operation: {
readonly Add: "ADD";
readonly Arg: "ARG";
readonly Cmd: "CMD";
readonly Copy: "COPY";
readonly Entrypoint: "ENTRYPOINT";
readonly Env: "ENV";
readonly Expose: "EXPOSE";
readonly From: "FROM";
readonly Healthcheck: "HEALTHCHECK";
readonly Label: "LABEL";
readonly Onbuild: "ONBUILD";
readonly Run: "RUN";
readonly Shell: "SHELL";
readonly Stopsignal: "STOPSIGNAL";
readonly Unknown: "UNKNOWN";
readonly User: "USER";
readonly Volume: "VOLUME";
readonly Workdir: "WORKDIR";
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export type VcrImageLayer3Operation = ClosedEnum<typeof VcrImageLayer3Operation>;
export type VcrImageLayer3 = {
createdBy: string | null;
digest: string | null;
/**
* Docker/OCI build instruction associated with an image layer.
*/
operation: VcrImageLayer3Operation;
sizeBytes: number | null;
type: "ENV";
env: string | null;
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export declare const VcrImageLayerOperation: {
readonly Add: "ADD";
readonly Arg: "ARG";
readonly Cmd: "CMD";
readonly Copy: "COPY";
readonly Entrypoint: "ENTRYPOINT";
readonly Env: "ENV";
readonly Expose: "EXPOSE";
readonly From: "FROM";
readonly Healthcheck: "HEALTHCHECK";
readonly Label: "LABEL";
readonly Onbuild: "ONBUILD";
readonly Run: "RUN";
readonly Shell: "SHELL";
readonly Stopsignal: "STOPSIGNAL";
readonly Unknown: "UNKNOWN";
readonly User: "USER";
readonly Volume: "VOLUME";
readonly Workdir: "WORKDIR";
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export type VcrImageLayerOperation = ClosedEnum<typeof VcrImageLayerOperation>;
export type VcrImageLayer2 = {
createdBy: string | null;
digest: string | null;
/**
* Docker/OCI build instruction associated with an image layer.
*/
operation: VcrImageLayerOperation;
sizeBytes: number | null;
type: "RUN";
command: string | null;
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export declare const Operation: {
readonly Add: "ADD";
readonly Arg: "ARG";
readonly Cmd: "CMD";
readonly Copy: "COPY";
readonly Entrypoint: "ENTRYPOINT";
readonly Env: "ENV";
readonly Expose: "EXPOSE";
readonly From: "FROM";
readonly Healthcheck: "HEALTHCHECK";
readonly Label: "LABEL";
readonly Onbuild: "ONBUILD";
readonly Run: "RUN";
readonly Shell: "SHELL";
readonly Stopsignal: "STOPSIGNAL";
readonly Unknown: "UNKNOWN";
readonly User: "USER";
readonly Volume: "VOLUME";
readonly Workdir: "WORKDIR";
};
/**
* Docker/OCI build instruction associated with an image layer.
*/
export type Operation = ClosedEnum<typeof Operation>;
export type VcrImageLayer1 = {
createdBy: string | null;
digest: string | null;
/**
* Docker/OCI build instruction associated with an image layer.
*/
operation: Operation;
sizeBytes: number | null;
type: "FROM";
baseImage: string | null;
collapsedDigests: Array<string>;
collapsedLayerCount: number;
};
export type VcrImageLayer = VcrImageLayer1 | VcrImageLayer2 | VcrImageLayer3 | (VcrImageLayer4 & {
type: "ADD";
}) | (VcrImageLayer4 & {
type: "ARG";
}) | (VcrImageLayer4 & {
type: "CMD";
}) | (VcrImageLayer4 & {
type: "COPY";
}) | (VcrImageLayer4 & {
type: "ENTRYPOINT";
}) | (VcrImageLayer4 & {
type: "EXPOSE";
}) | (VcrImageLayer4 & {
type: "HEALTHCHECK";
}) | (VcrImageLayer4 & {
type: "LABEL";
}) | (VcrImageLayer4 & {
type: "ONBUILD";
}) | (VcrImageLayer4 & {
type: "SHELL";
}) | (VcrImageLayer4 & {
type: "STOPSIGNAL";
}) | (VcrImageLayer4 & {
type: "UNKNOWN";
}) | (VcrImageLayer4 & {
type: "USER";
}) | (VcrImageLayer4 & {
type: "VOLUME";
}) | (VcrImageLayer4 & {
type: "WORKDIR";
});
/** @internal */
export declare const VcrImageLayer4Operation$inboundSchema: z.ZodNativeEnum<typeof VcrImageLayer4Operation>;
/** @internal */
export declare const VcrImageLayer4Type$inboundSchema: z.ZodNativeEnum<typeof VcrImageLayer4Type>;
/** @internal */
export declare const VcrImageLayer4$inboundSchema: z.ZodType<VcrImageLayer4, z.ZodTypeDef, unknown>;
export declare function vcrImageLayer4FromJSON(jsonString: string): SafeParseResult<VcrImageLayer4, SDKValidationError>;
/** @internal */
export declare const VcrImageLayer3Operation$inboundSchema: z.ZodNativeEnum<typeof VcrImageLayer3Operation>;
/** @internal */
export declare const VcrImageLayer3$inboundSchema: z.ZodType<VcrImageLayer3, z.ZodTypeDef, unknown>;
export declare function vcrImageLayer3FromJSON(jsonString: string): SafeParseResult<VcrImageLayer3, SDKValidationError>;
/** @internal */
export declare const VcrImageLayerOperation$inboundSchema: z.ZodNativeEnum<typeof VcrImageLayerOperation>;
/** @internal */
export declare const VcrImageLayer2$inboundSchema: z.ZodType<VcrImageLayer2, z.ZodTypeDef, unknown>;
export declare function vcrImageLayer2FromJSON(jsonString: string): SafeParseResult<VcrImageLayer2, SDKValidationError>;
/** @internal */
export declare const Operation$inboundSchema: z.ZodNativeEnum<typeof Operation>;
/** @internal */
export declare const VcrImageLayer1$inboundSchema: z.ZodType<VcrImageLayer1, z.ZodTypeDef, unknown>;
export declare function vcrImageLayer1FromJSON(jsonString: string): SafeParseResult<VcrImageLayer1, SDKValidationError>;
/** @internal */
export declare const VcrImageLayer$inboundSchema: z.ZodType<VcrImageLayer, z.ZodTypeDef, unknown>;
export declare function vcrImageLayerFromJSON(jsonString: string): SafeParseResult<VcrImageLayer, SDKValidationError>;
//# sourceMappingURL=vcrimagelayer.d.ts.map