@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>
42 lines • 1.63 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SandboxPublicRoute } from "./sandboxpublicroute.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { Session } from "./session.js";
export type GetSessionRequest = {
/**
* The unique identifier of the session to retrieve.
*/
sessionId: string;
/**
* The Team identifier to perform the request on behalf of.
*/
teamId?: string | undefined;
/**
* The Team slug to perform the request on behalf of.
*/
slug?: string | undefined;
};
/**
* The session was retrieved successfully.
*/
export type GetSessionResponseBody = {
/**
* This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key.
*/
session: Session;
routes: Array<SandboxPublicRoute>;
};
/** @internal */
export type GetSessionRequest$Outbound = {
sessionId: string;
teamId?: string | undefined;
slug?: string | undefined;
};
/** @internal */
export declare const GetSessionRequest$outboundSchema: z.ZodType<GetSessionRequest$Outbound, z.ZodTypeDef, GetSessionRequest>;
export declare function getSessionRequestToJSON(getSessionRequest: GetSessionRequest): string;
/** @internal */
export declare const GetSessionResponseBody$inboundSchema: z.ZodType<GetSessionResponseBody, z.ZodTypeDef, unknown>;
export declare function getSessionResponseBodyFromJSON(jsonString: string): SafeParseResult<GetSessionResponseBody, SDKValidationError>;
//# sourceMappingURL=getsessionop.d.ts.map