/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vellum from "../../../index"; export declare namespace FolderEntities { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey: core.Supplier; /** Override the X-API-Version header */ apiVersion?: core.Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the X-API-Version header */ apiVersion?: Vellum.ApiVersionEnum | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class FolderEntities { protected readonly _options: FolderEntities.Options; constructor(_options: FolderEntities.Options); /** * List all folder entities within a specified folder. * * @param {Vellum.FolderEntitiesListRequest} request * @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.folderEntities.list({ * parentFolderId: "parent_folder_id" * }) */ list(request: Vellum.FolderEntitiesListRequest, requestOptions?: FolderEntities.RequestOptions): core.HttpResponsePromise; private __list; /** * Add an entity to a specific folder or root directory. * * Adding an entity to a folder will remove it from any other folders it might have been a member of. * * @param {string} folderId - The ID of the folder to which the entity should be added. This can be a UUID of a folder, or the name of a root * directory. Supported root directories include: * - PROMPT_SANDBOX * - WORKFLOW_SANDBOX * - DOCUMENT_INDEX * - TEST_SUITE * @param {Vellum.AddEntityToFolderRequest} request * @param {FolderEntities.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.folderEntities.addEntityToFolder("folder_id", { * entityId: "entity_id" * }) */ addEntityToFolder(folderId: string, request: Vellum.AddEntityToFolderRequest, requestOptions?: FolderEntities.RequestOptions): core.HttpResponsePromise; private __addEntityToFolder; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }