@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>
47 lines • 1.96 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { Pagination } from "./pagination.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { Team } from "./team.js";
import { TeamLimited } from "./teamlimited.js";
export type GetTeamsRequest = {
/**
* Maximum number of Teams which may be returned.
*/
limit?: number | undefined;
/**
* Timestamp (in milliseconds) to only include Teams created since then.
*/
since?: number | undefined;
/**
* Timestamp (in milliseconds) to only include Teams created until then.
*/
until?: number | undefined;
};
export type GetTeamsTeams = Team | TeamLimited;
/**
* A paginated list of teams.
*/
export type GetTeamsResponseBody = {
teams: Array<Team | TeamLimited>;
/**
* 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;
};
/** @internal */
export type GetTeamsRequest$Outbound = {
limit?: number | undefined;
since?: number | undefined;
until?: number | undefined;
};
/** @internal */
export declare const GetTeamsRequest$outboundSchema: z.ZodType<GetTeamsRequest$Outbound, z.ZodTypeDef, GetTeamsRequest>;
export declare function getTeamsRequestToJSON(getTeamsRequest: GetTeamsRequest): string;
/** @internal */
export declare const GetTeamsTeams$inboundSchema: z.ZodType<GetTeamsTeams, z.ZodTypeDef, unknown>;
export declare function getTeamsTeamsFromJSON(jsonString: string): SafeParseResult<GetTeamsTeams, SDKValidationError>;
/** @internal */
export declare const GetTeamsResponseBody$inboundSchema: z.ZodType<GetTeamsResponseBody, z.ZodTypeDef, unknown>;
export declare function getTeamsResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTeamsResponseBody, SDKValidationError>;
//# sourceMappingURL=getteamsop.d.ts.map