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>

40 lines 1.97 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"; /** * The current state of the endpoint. - `creating`: the endpoint is being created. - `pending-acceptance`: waiting for the endpoint service owner to accept the connection. Only occurs for services that require manual acceptance. - `provisioning`: the connection was accepted and AWS is finishing setup. - `available`: the endpoint is fully provisioned and ready to use. - `rejected`: the endpoint service owner rejected the connection. - `failed`: the endpoint could not be provisioned. - `deleting`: the endpoint is being deleted. */ export const PrivateLinkEndpointStatus = { Available: "available", Creating: "creating", Deleting: "deleting", Failed: "failed", PendingAcceptance: "pending-acceptance", Provisioning: "provisioning", Rejected: "rejected", }; /** @internal */ export const PrivateLinkEndpointStatus$inboundSchema = z.nativeEnum(PrivateLinkEndpointStatus); /** @internal */ export const PrivateLinkEndpoint$inboundSchema = z.object({ endpointId: types.string(), name: types.string(), teamId: types.string(), projectId: types.string(), vercelRegion: types.string(), awsServiceName: types.string(), vpcEndpointId: types.optional(types.string()), awsDnsEntries: types.optional(z.array(types.string())), privateDnsNames: types.optional(z.array(types.string())), status: PrivateLinkEndpointStatus$inboundSchema, statusMessage: types.optional(types.string()), createdAt: types.number(), updatedAt: types.number(), }); export function privateLinkEndpointFromJSON(jsonString) { return safeParse(jsonString, (x) => PrivateLinkEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateLinkEndpoint' from JSON`); } //# sourceMappingURL=privatelinkendpoint.js.map