UNPKG

@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>

59 lines 2.64 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type CreateSessionDirectoryRequestBody = { /** * The base directory for resolving relative paths. If not specified, paths are resolved from the sandbox home directory. */ cwd?: string | undefined; /** * The path of the directory to create. Can be absolute or relative to the working directory. */ path: string; /** * If true, creates parent directories as needed (like `mkdir -p`). If false, fails if parent directories do not exist. */ recursive?: boolean | undefined; }; export type CreateSessionDirectoryRequest = { /** * The unique identifier of the session to create the directory in. */ 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?: CreateSessionDirectoryRequestBody | undefined; }; /** * The directory was created successfully. */ export type CreateSessionDirectoryResponseBody = {}; /** @internal */ export type CreateSessionDirectoryRequestBody$Outbound = { cwd?: string | undefined; path: string; recursive: boolean; }; /** @internal */ export declare const CreateSessionDirectoryRequestBody$outboundSchema: z.ZodType<CreateSessionDirectoryRequestBody$Outbound, z.ZodTypeDef, CreateSessionDirectoryRequestBody>; export declare function createSessionDirectoryRequestBodyToJSON(createSessionDirectoryRequestBody: CreateSessionDirectoryRequestBody): string; /** @internal */ export type CreateSessionDirectoryRequest$Outbound = { sessionId: string; teamId?: string | undefined; slug?: string | undefined; RequestBody?: CreateSessionDirectoryRequestBody$Outbound | undefined; }; /** @internal */ export declare const CreateSessionDirectoryRequest$outboundSchema: z.ZodType<CreateSessionDirectoryRequest$Outbound, z.ZodTypeDef, CreateSessionDirectoryRequest>; export declare function createSessionDirectoryRequestToJSON(createSessionDirectoryRequest: CreateSessionDirectoryRequest): string; /** @internal */ export declare const CreateSessionDirectoryResponseBody$inboundSchema: z.ZodType<CreateSessionDirectoryResponseBody, z.ZodTypeDef, unknown>; export declare function createSessionDirectoryResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateSessionDirectoryResponseBody, SDKValidationError>; //# sourceMappingURL=createsessiondirectoryop.d.ts.map