@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>
35 lines • 2.13 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { AuthToken } from "./authtoken.js";
import { Pagination } from "./pagination.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type ListAuthTokensResponseBody2 = {
tokens: Array<AuthToken>;
/**
* This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data.
*/
pagination: Pagination;
};
export type ListAuthTokensResponseBodyPagination = {
count: number;
next: string | null;
prev: string | null;
};
export type ListAuthTokensResponseBody1 = {
tokens: Array<AuthToken>;
pagination: ListAuthTokensResponseBodyPagination;
};
export type ListAuthTokensResponseBody = ListAuthTokensResponseBody1 | ListAuthTokensResponseBody2;
/** @internal */
export declare const ListAuthTokensResponseBody2$inboundSchema: z.ZodType<ListAuthTokensResponseBody2, z.ZodTypeDef, unknown>;
export declare function listAuthTokensResponseBody2FromJSON(jsonString: string): SafeParseResult<ListAuthTokensResponseBody2, SDKValidationError>;
/** @internal */
export declare const ListAuthTokensResponseBodyPagination$inboundSchema: z.ZodType<ListAuthTokensResponseBodyPagination, z.ZodTypeDef, unknown>;
export declare function listAuthTokensResponseBodyPaginationFromJSON(jsonString: string): SafeParseResult<ListAuthTokensResponseBodyPagination, SDKValidationError>;
/** @internal */
export declare const ListAuthTokensResponseBody1$inboundSchema: z.ZodType<ListAuthTokensResponseBody1, z.ZodTypeDef, unknown>;
export declare function listAuthTokensResponseBody1FromJSON(jsonString: string): SafeParseResult<ListAuthTokensResponseBody1, SDKValidationError>;
/** @internal */
export declare const ListAuthTokensResponseBody$inboundSchema: z.ZodType<ListAuthTokensResponseBody, z.ZodTypeDef, unknown>;
export declare function listAuthTokensResponseBodyFromJSON(jsonString: string): SafeParseResult<ListAuthTokensResponseBody, SDKValidationError>;
//# sourceMappingURL=listauthtokensop.d.ts.map