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>

31 lines 1.26 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; /** @internal */ export const CreatePrivateLinkEndpointRequestBody$outboundSchema = z.object({ projectId: z.string(), name: z.string(), vercelRegion: z.string(), awsServiceName: z.string(), enablePrivateDns: z.boolean().optional(), }); export function createPrivateLinkEndpointRequestBodyToJSON(createPrivateLinkEndpointRequestBody) { return JSON.stringify(CreatePrivateLinkEndpointRequestBody$outboundSchema.parse(createPrivateLinkEndpointRequestBody)); } /** @internal */ export const CreatePrivateLinkEndpointRequest$outboundSchema = z.object({ teamId: z.string().optional(), slug: z.string().optional(), requestBody: z.lazy(() => CreatePrivateLinkEndpointRequestBody$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function createPrivateLinkEndpointRequestToJSON(createPrivateLinkEndpointRequest) { return JSON.stringify(CreatePrivateLinkEndpointRequest$outboundSchema.parse(createPrivateLinkEndpointRequest)); } //# sourceMappingURL=createprivatelinkendpointop.js.map