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>

30 lines 974 B
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { VercelError } from "./vercelerror.js"; export declare const Code: { readonly Unauthorized: "unauthorized"; }; export type Code = ClosedEnum<typeof Code>; export type UnauthorizedData = { status: number; code: Code; message: string; reason?: string | undefined; }; export declare class Unauthorized extends VercelError { status: number; code: Code; reason?: string | undefined; /** The original data that was passed to this error instance. */ data$: UnauthorizedData; constructor(err: UnauthorizedData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Code$inboundSchema: z.ZodNativeEnum<typeof Code>; /** @internal */ export declare const Unauthorized$inboundSchema: z.ZodType<Unauthorized, z.ZodTypeDef, unknown>; //# sourceMappingURL=unauthorized.d.ts.map