@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
56 lines • 1.94 kB
TypeScript
import * as z from "zod/v3";
import { OpenEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { V2DeployDeploymentStep } from "./v2deploydeploymentstep.js";
/**
* Current deployment status
*/
export declare const Status: {
readonly Unspecified: "UNSPECIFIED";
readonly Pending: "PENDING";
readonly Starting: "STARTING";
readonly Building: "BUILDING";
readonly Deploying: "DEPLOYING";
readonly Network: "NETWORK";
readonly Finalizing: "FINALIZING";
readonly Ready: "READY";
readonly Failed: "FAILED";
readonly Skipped: "SKIPPED";
readonly AwaitingApproval: "AWAITING_APPROVAL";
readonly Stopped: "STOPPED";
readonly Superseded: "SUPERSEDED";
readonly Cancelled: "CANCELLED";
};
/**
* Current deployment status
*/
export type Status = OpenEnum<typeof Status>;
export type V2DeployGetDeploymentResponseData = {
/**
* Unique deployment identifier
*/
id: string;
/**
* Current deployment status
*/
status: Status;
/**
* Error message if deployment failed
*/
errorMessage?: string | undefined;
/**
* Hostnames associated with this deployment
*/
hostnames?: Array<string> | undefined;
/**
* Deployment steps with status and messages
*/
steps?: Array<V2DeployDeploymentStep> | undefined;
};
/** @internal */
export declare const Status$inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown>;
/** @internal */
export declare const V2DeployGetDeploymentResponseData$inboundSchema: z.ZodType<V2DeployGetDeploymentResponseData, z.ZodTypeDef, unknown>;
export declare function v2DeployGetDeploymentResponseDataFromJSON(jsonString: string): SafeParseResult<V2DeployGetDeploymentResponseData, SDKValidationError>;
//# sourceMappingURL=v2deploygetdeploymentresponsedata.d.ts.map