@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>
44 lines • 1.85 kB
JavaScript
/*
* 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 GetProjectDomainRequest$outboundSchema = z.object({
idOrName: z.string(),
domain: z.string(),
teamId: z.string().optional(),
slug: z.string().optional(),
});
export function getProjectDomainRequestToJSON(getProjectDomainRequest) {
return JSON.stringify(GetProjectDomainRequest$outboundSchema.parse(getProjectDomainRequest));
}
/** @internal */
export const Verification$inboundSchema = z.object({
type: types.string(),
domain: types.string(),
value: types.string(),
reason: types.string(),
});
export function verificationFromJSON(jsonString) {
return safeParse(jsonString, (x) => Verification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Verification' from JSON`);
}
/** @internal */
export const GetProjectDomainResponseBody$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(),
verification: types.optional(z.array(z.lazy(() => Verification$inboundSchema))),
});
export function getProjectDomainResponseBodyFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetProjectDomainResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDomainResponseBody' from JSON`);
}
//# sourceMappingURL=getprojectdomainop.js.map