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>

35 lines 1.55 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"; import { safeParse } from "../lib/schemas.js"; /** @internal */ export const PatchEdgeConfigSchemaRequestBody$outboundSchema = z.object({ definition: z.any().optional(), }); export function patchEdgeConfigSchemaRequestBodyToJSON(patchEdgeConfigSchemaRequestBody) { return JSON.stringify(PatchEdgeConfigSchemaRequestBody$outboundSchema.parse(patchEdgeConfigSchemaRequestBody)); } /** @internal */ export const PatchEdgeConfigSchemaRequest$outboundSchema = z.object({ edgeConfigId: z.string(), dryRun: z.string().optional(), teamId: z.string().optional(), slug: z.string().optional(), requestBody: z.lazy(() => PatchEdgeConfigSchemaRequestBody$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function patchEdgeConfigSchemaRequestToJSON(patchEdgeConfigSchemaRequest) { return JSON.stringify(PatchEdgeConfigSchemaRequest$outboundSchema.parse(patchEdgeConfigSchemaRequest)); } /** @internal */ export const PatchEdgeConfigSchemaResponseBody$inboundSchema = z.object({}); export function patchEdgeConfigSchemaResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => PatchEdgeConfigSchemaResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchEdgeConfigSchemaResponseBody' from JSON`); } //# sourceMappingURL=patchedgeconfigschemaop.js.map