@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>
33 lines • 1.26 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import * as types from "../types/primitives.js";
/**
* A constant with the final state of the deployment.
*/
export const DeleteDeploymentState = {
Deleted: "DELETED",
};
/** @internal */
export const DeleteDeploymentRequest$outboundSchema = z.object({
id: z.string(),
url: z.string().optional(),
teamId: z.string().optional(),
slug: z.string().optional(),
});
export function deleteDeploymentRequestToJSON(deleteDeploymentRequest) {
return JSON.stringify(DeleteDeploymentRequest$outboundSchema.parse(deleteDeploymentRequest));
}
/** @internal */
export const DeleteDeploymentState$inboundSchema = z.nativeEnum(DeleteDeploymentState);
/** @internal */
export const DeleteDeploymentResponseBody$inboundSchema = z.object({
uid: types.string(),
state: DeleteDeploymentState$inboundSchema,
});
export function deleteDeploymentResponseBodyFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeleteDeploymentResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteDeploymentResponseBody' from JSON`);
}
//# sourceMappingURL=deletedeploymentop.js.map