@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>
60 lines • 2.48 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { SessionCommand } from "./sessioncommand.js";
export type KillSessionCommandRequestBody = {
/**
* The POSIX signal number to send to the process. Common values: 15 (SIGTERM) for graceful termination, 9 (SIGKILL) for forced termination.
*/
signal: number;
};
export type KillSessionCommandRequest = {
/**
* The unique identifier of the command to terminate.
*/
cmdId: string;
/**
* The unique identifier of the session containing the command.
*/
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;
requestBody?: KillSessionCommandRequestBody | undefined;
};
/**
* The command was terminated successfully.
*/
export type KillSessionCommandResponseBody = {
/**
* This object represents a command run in a Vercel Sandbox session (v2 API).
*/
command: SessionCommand;
};
/** @internal */
export type KillSessionCommandRequestBody$Outbound = {
signal: number;
};
/** @internal */
export declare const KillSessionCommandRequestBody$outboundSchema: z.ZodType<KillSessionCommandRequestBody$Outbound, z.ZodTypeDef, KillSessionCommandRequestBody>;
export declare function killSessionCommandRequestBodyToJSON(killSessionCommandRequestBody: KillSessionCommandRequestBody): string;
/** @internal */
export type KillSessionCommandRequest$Outbound = {
cmdId: string;
sessionId: string;
teamId?: string | undefined;
slug?: string | undefined;
RequestBody?: KillSessionCommandRequestBody$Outbound | undefined;
};
/** @internal */
export declare const KillSessionCommandRequest$outboundSchema: z.ZodType<KillSessionCommandRequest$Outbound, z.ZodTypeDef, KillSessionCommandRequest>;
export declare function killSessionCommandRequestToJSON(killSessionCommandRequest: KillSessionCommandRequest): string;
/** @internal */
export declare const KillSessionCommandResponseBody$inboundSchema: z.ZodType<KillSessionCommandResponseBody, z.ZodTypeDef, unknown>;
export declare function killSessionCommandResponseBodyFromJSON(jsonString: string): SafeParseResult<KillSessionCommandResponseBody, SDKValidationError>;
//# sourceMappingURL=killsessioncommandop.d.ts.map