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.54 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"; import * as types from "../types/primitives.js"; /** @internal */ export const CreateWebInsightsToggleRequestBody$outboundSchema = z.object({ value: z.boolean(), }); export function createWebInsightsToggleRequestBodyToJSON(createWebInsightsToggleRequestBody) { return JSON.stringify(CreateWebInsightsToggleRequestBody$outboundSchema.parse(createWebInsightsToggleRequestBody)); } /** @internal */ export const CreateWebInsightsToggleRequest$outboundSchema = z.object({ projectId: z.string(), requestBody: z.lazy(() => CreateWebInsightsToggleRequestBody$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function createWebInsightsToggleRequestToJSON(createWebInsightsToggleRequest) { return JSON.stringify(CreateWebInsightsToggleRequest$outboundSchema.parse(createWebInsightsToggleRequest)); } /** @internal */ export const CreateWebInsightsToggleResponseBody$inboundSchema = z.object({ value: types.boolean(), }); export function createWebInsightsToggleResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => CreateWebInsightsToggleResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateWebInsightsToggleResponseBody' from JSON`); } //# sourceMappingURL=createwebinsightstoggleop.js.map