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>

33 lines 1.43 kB
/* * 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"; /** @internal */ export const VerifyProjectDomainRequest$outboundSchema = z.object({ idOrName: z.string(), domain: z.string(), teamId: z.string().optional(), slug: z.string().optional(), }); export function verifyProjectDomainRequestToJSON(verifyProjectDomainRequest) { return JSON.stringify(VerifyProjectDomainRequest$outboundSchema.parse(verifyProjectDomainRequest)); } /** @internal */ export const VerifyProjectDomainResponseBody$inboundSchema = z.object({ name: types.string(), apexName: types.string(), projectId: types.string(), redirect: z.nullable(types.string()).optional(), redirectStatusCode: z.nullable(types.number()).optional(), gitBranch: z.nullable(types.string()).optional(), customEnvironmentId: z.nullable(types.string()).optional(), updatedAt: types.optional(types.number()), createdAt: types.optional(types.number()), verified: types.boolean(), }); export function verifyProjectDomainResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => VerifyProjectDomainResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyProjectDomainResponseBody' from JSON`); } //# sourceMappingURL=verifyprojectdomainop.js.map