@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>
45 lines • 2.42 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { DomainNotRegistered } from "./domainnotregistered.js";
import { Forbidden } from "./forbidden.js";
import { HttpApiDecodeError } from "./httpapidecodeerror.js";
import { NotAuthorizedForScope } from "./notauthorizedforscope.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetDomainAuthCodeRequest = {
domain: string;
teamId?: string | undefined;
};
/**
* NotAuthorizedForScope
*/
export type GetDomainAuthCodeDomainsRegistrarResponseResponseBody = (NotAuthorizedForScope & {
code: "not_authorized_for_scope";
}) | Forbidden;
/**
* There was something wrong with the request
*/
export type GetDomainAuthCodeDomainsRegistrarResponseBody = DomainNotRegistered | HttpApiDecodeError;
/**
* Success
*/
export type GetDomainAuthCodeResponseBody = {
authCode: string;
};
/** @internal */
export type GetDomainAuthCodeRequest$Outbound = {
domain: string;
teamId?: string | undefined;
};
/** @internal */
export declare const GetDomainAuthCodeRequest$outboundSchema: z.ZodType<GetDomainAuthCodeRequest$Outbound, z.ZodTypeDef, GetDomainAuthCodeRequest>;
export declare function getDomainAuthCodeRequestToJSON(getDomainAuthCodeRequest: GetDomainAuthCodeRequest): string;
/** @internal */
export declare const GetDomainAuthCodeDomainsRegistrarResponseResponseBody$inboundSchema: z.ZodType<GetDomainAuthCodeDomainsRegistrarResponseResponseBody, z.ZodTypeDef, unknown>;
export declare function getDomainAuthCodeDomainsRegistrarResponseResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDomainAuthCodeDomainsRegistrarResponseResponseBody, SDKValidationError>;
/** @internal */
export declare const GetDomainAuthCodeDomainsRegistrarResponseBody$inboundSchema: z.ZodType<GetDomainAuthCodeDomainsRegistrarResponseBody, z.ZodTypeDef, unknown>;
export declare function getDomainAuthCodeDomainsRegistrarResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDomainAuthCodeDomainsRegistrarResponseBody, SDKValidationError>;
/** @internal */
export declare const GetDomainAuthCodeResponseBody$inboundSchema: z.ZodType<GetDomainAuthCodeResponseBody, z.ZodTypeDef, unknown>;
export declare function getDomainAuthCodeResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDomainAuthCodeResponseBody, SDKValidationError>;
//# sourceMappingURL=getdomainauthcodeop.d.ts.map