@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>
54 lines • 1.69 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
* String indicating the type of file tree entry.
*/
export declare const FileTreeType: {
readonly Directory: "directory";
readonly File: "file";
readonly Invalid: "invalid";
readonly Lambda: "lambda";
readonly Middleware: "middleware";
readonly Symlink: "symlink";
};
/**
* String indicating the type of file tree entry.
*/
export type FileTreeType = ClosedEnum<typeof FileTreeType>;
/**
* A deployment file tree entry
*/
export type FileTree = {
/**
* The name of the file tree entry
*/
name: string;
/**
* String indicating the type of file tree entry.
*/
type: FileTreeType;
/**
* The unique identifier of the file (only valid for the `file` type)
*/
uid?: string | undefined;
/**
* The list of children files of the directory (only valid for the `directory` type)
*/
children?: Array<FileTree> | undefined;
/**
* The content-type of the file (only valid for the `file` type)
*/
contentType?: string | undefined;
/**
* The file "mode" indicating file type and permissions.
*/
mode: number;
};
/** @internal */
export declare const FileTreeType$inboundSchema: z.ZodNativeEnum<typeof FileTreeType>;
/** @internal */
export declare const FileTree$inboundSchema: z.ZodType<FileTree, z.ZodTypeDef, unknown>;
export declare function fileTreeFromJSON(jsonString: string): SafeParseResult<FileTree, SDKValidationError>;
//# sourceMappingURL=filetree.d.ts.map