@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>
37 lines • 1.54 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { Snapshot } from "./snapshot.js";
export type GetSessionSnapshotRequest = {
/**
* The unique identifier of the snapshot to retrieve.
*/
snapshotId: 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;
};
export type GetSessionSnapshotResponseBody = {
/**
* This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API).
*/
snapshot: Snapshot;
};
/** @internal */
export type GetSessionSnapshotRequest$Outbound = {
snapshotId: string;
teamId?: string | undefined;
slug?: string | undefined;
};
/** @internal */
export declare const GetSessionSnapshotRequest$outboundSchema: z.ZodType<GetSessionSnapshotRequest$Outbound, z.ZodTypeDef, GetSessionSnapshotRequest>;
export declare function getSessionSnapshotRequestToJSON(getSessionSnapshotRequest: GetSessionSnapshotRequest): string;
/** @internal */
export declare const GetSessionSnapshotResponseBody$inboundSchema: z.ZodType<GetSessionSnapshotResponseBody, z.ZodTypeDef, unknown>;
export declare function getSessionSnapshotResponseBodyFromJSON(jsonString: string): SafeParseResult<GetSessionSnapshotResponseBody, SDKValidationError>;
//# sourceMappingURL=getsessionsnapshotop.d.ts.map