@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>
44 lines • 1.26 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
* This object represents a command run in a Vercel Sandbox session (v2 API).
*/
export type SessionCommand = {
/**
* The ID of the command.
*/
id: string;
/**
* The name of the command.
*/
name: string;
/**
* The arguments of the command.
*/
args: Array<string>;
/**
* The current working directory of the command.
*/
cwd: string;
/**
* The ID of the session associated with the command.
*/
sessionId: string;
/**
* If the command did finish, the exit code.
*/
exitCode: number | null;
/**
* When the command was started, in milliseconds since the epoch.
*/
startedAt: number;
/**
* Duration of the command execution in milliseconds.
*/
durationMs?: number | undefined;
};
/** @internal */
export declare const SessionCommand$inboundSchema: z.ZodType<SessionCommand, z.ZodTypeDef, unknown>;
export declare function sessionCommandFromJSON(jsonString: string): SafeParseResult<SessionCommand, SDKValidationError>;
//# sourceMappingURL=sessioncommand.d.ts.map