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>

24 lines 942 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import { Drive$inboundSchema } from "./drive.js"; /** @internal */ export const DeleteDriveRequest$outboundSchema = z.object({ name: z.string(), projectId: z.string().optional(), teamId: z.string().optional(), slug: z.string().optional(), }); export function deleteDriveRequestToJSON(deleteDriveRequest) { return JSON.stringify(DeleteDriveRequest$outboundSchema.parse(deleteDriveRequest)); } /** @internal */ export const DeleteDriveResponseBody$inboundSchema = z.object({ drive: Drive$inboundSchema, }); export function deleteDriveResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => DeleteDriveResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteDriveResponseBody' from JSON`); } //# sourceMappingURL=deletedriveop.js.map