@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 • 1.27 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { AuthToken } from "./authtoken.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetAuthTokenRequest = {
/**
* The identifier of the token to retrieve. The special value "current" may be supplied, which returns the metadata for the token that the current HTTP request is authenticated with.
*/
tokenId: string;
};
/**
* Successful response.
*/
export type GetAuthTokenResponseBody = {
/**
* Authentication token metadata.
*/
token: AuthToken;
};
/** @internal */
export type GetAuthTokenRequest$Outbound = {
tokenId: string;
};
/** @internal */
export declare const GetAuthTokenRequest$outboundSchema: z.ZodType<GetAuthTokenRequest$Outbound, z.ZodTypeDef, GetAuthTokenRequest>;
export declare function getAuthTokenRequestToJSON(getAuthTokenRequest: GetAuthTokenRequest): string;
/** @internal */
export declare const GetAuthTokenResponseBody$inboundSchema: z.ZodType<GetAuthTokenResponseBody, z.ZodTypeDef, unknown>;
export declare function getAuthTokenResponseBodyFromJSON(jsonString: string): SafeParseResult<GetAuthTokenResponseBody, SDKValidationError>;
//# sourceMappingURL=getauthtokenop.d.ts.map