@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>
50 lines • 2.78 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { DomainAlreadyRenewing } from "./domainalreadyrenewing.js";
import { DomainNotRegistered } from "./domainnotregistered.js";
import { DomainNotRenewable } from "./domainnotrenewable.js";
import { Forbidden } from "./forbidden.js";
import { HttpApiDecodeError } from "./httpapidecodeerror.js";
import { NotAuthorizedForScope } from "./notauthorizedforscope.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type UpdateDomainAutoRenewRequestBody = {
autoRenew: boolean;
};
export type UpdateDomainAutoRenewRequest = {
domain: string;
teamId?: string | undefined;
requestBody: UpdateDomainAutoRenewRequestBody;
};
/**
* NotAuthorizedForScope
*/
export type UpdateDomainAutoRenewDomainsRegistrarResponseBody = (NotAuthorizedForScope & {
code: "not_authorized_for_scope";
}) | Forbidden;
/**
* There was something wrong with the request
*/
export type UpdateDomainAutoRenewResponseBody = DomainAlreadyRenewing | DomainNotRenewable | DomainNotRegistered | HttpApiDecodeError;
/** @internal */
export type UpdateDomainAutoRenewRequestBody$Outbound = {
autoRenew: boolean;
};
/** @internal */
export declare const UpdateDomainAutoRenewRequestBody$outboundSchema: z.ZodType<UpdateDomainAutoRenewRequestBody$Outbound, z.ZodTypeDef, UpdateDomainAutoRenewRequestBody>;
export declare function updateDomainAutoRenewRequestBodyToJSON(updateDomainAutoRenewRequestBody: UpdateDomainAutoRenewRequestBody): string;
/** @internal */
export type UpdateDomainAutoRenewRequest$Outbound = {
domain: string;
teamId?: string | undefined;
RequestBody: UpdateDomainAutoRenewRequestBody$Outbound;
};
/** @internal */
export declare const UpdateDomainAutoRenewRequest$outboundSchema: z.ZodType<UpdateDomainAutoRenewRequest$Outbound, z.ZodTypeDef, UpdateDomainAutoRenewRequest>;
export declare function updateDomainAutoRenewRequestToJSON(updateDomainAutoRenewRequest: UpdateDomainAutoRenewRequest): string;
/** @internal */
export declare const UpdateDomainAutoRenewDomainsRegistrarResponseBody$inboundSchema: z.ZodType<UpdateDomainAutoRenewDomainsRegistrarResponseBody, z.ZodTypeDef, unknown>;
export declare function updateDomainAutoRenewDomainsRegistrarResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateDomainAutoRenewDomainsRegistrarResponseBody, SDKValidationError>;
/** @internal */
export declare const UpdateDomainAutoRenewResponseBody$inboundSchema: z.ZodType<UpdateDomainAutoRenewResponseBody, z.ZodTypeDef, unknown>;
export declare function updateDomainAutoRenewResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateDomainAutoRenewResponseBody, SDKValidationError>;
//# sourceMappingURL=updatedomainautorenewop.d.ts.map