@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>
39 lines • 1.7 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { HttpApiDecodeError } from "./httpapidecodeerror.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { TldNotSupported } from "./tldnotsupported.js";
export type GetTldRequest = {
tld: string;
teamId?: string | undefined;
};
/**
* There was something wrong with the request
*/
export type GetTldDomainsRegistrarResponseBody = TldNotSupported | HttpApiDecodeError;
/**
* Success
*/
export type GetTldResponseBody = {
/**
* The language codes that are supported for the TLD. The key is the language code, and the value is the name of the language.
*/
supportedLanguageCodes: {
[k: string]: string;
};
};
/** @internal */
export type GetTldRequest$Outbound = {
tld: string;
teamId?: string | undefined;
};
/** @internal */
export declare const GetTldRequest$outboundSchema: z.ZodType<GetTldRequest$Outbound, z.ZodTypeDef, GetTldRequest>;
export declare function getTldRequestToJSON(getTldRequest: GetTldRequest): string;
/** @internal */
export declare const GetTldDomainsRegistrarResponseBody$inboundSchema: z.ZodType<GetTldDomainsRegistrarResponseBody, z.ZodTypeDef, unknown>;
export declare function getTldDomainsRegistrarResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTldDomainsRegistrarResponseBody, SDKValidationError>;
/** @internal */
export declare const GetTldResponseBody$inboundSchema: z.ZodType<GetTldResponseBody, z.ZodTypeDef, unknown>;
export declare function getTldResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTldResponseBody, SDKValidationError>;
//# sourceMappingURL=gettldop.d.ts.map