import { AxiosInstance } from "axios"; import Base, { MaybeRaw, Options } from "../../../../Base"; import { CreateWatchFolder, PatchWatchFolder, WatchFolder, WatchFolderFile, WatchFolderFileReset, WatchFolderScanConfig, WatchFolderScanReport } from "../../../../interfaces/high5/space/watchfolder"; export declare class High5WatchFolder extends Base { constructor(options: Options, axios: AxiosInstance); /** * Retrieves all watch folders the current user is assigned to as target, directly or * through a pool. Used mostly by idp to compute NATS permissions and by the agent to join * the watch folders it is already assigned to on startup/reconnect * @returns Array of watch folders */ getWatchFolders(raw?: { raw: R; }): Promise>; /** * Retrieves a watch folder by its ID * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder * @returns Requested watch folder */ getWatchFolder(orgName: string, spaceName: string, watchFolderId: string, raw?: { raw: R; }): Promise>; /** * Creates a new watch folder in the specified space * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolder Watch folder creation data * @returns Created watch folder */ createWatchFolder(orgName: string, spaceName: string, watchFolder: CreateWatchFolder, raw?: { raw: R; }): Promise>; /** * Updates an existing watch folder * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder * @param patch Fields to update * @returns Updated watch folder */ updateWatchFolder(orgName: string, spaceName: string, watchFolderId: string, patchWatchFolder: PatchWatchFolder, raw?: { raw: R; }): Promise>; /** * Permanently deletes a watch folder * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder */ deleteWatchFolder(orgName: string, spaceName: string, watchFolderId: string, raw?: { raw: R; }): Promise>; /** * Retrieves the scan configuration (including decrypted credentials) for the agent that * received this watch folder's scan dispatch * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder * @param scanSecret One-time secret handed out with the scan's NATS dispatch * @returns Scan configuration */ getWatchFolderScanConfig(orgName: string, spaceName: string, watchFolderId: string, scanSecret: string, raw?: { raw: R; }): Promise>; /** * Submits a scan report with the list of files discovered by the agent * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder * @param scanSecret One-time secret handed out with the scan's NATS dispatch * @param report Scan report containing the list of discovered files */ submitScanReport(orgName: string, spaceName: string, watchFolderId: string, scanSecret: string, report: WatchFolderScanReport, raw?: { raw: R; }): Promise>; /** * Retrieves the list of files currently tracked by a watch folder * @param orgName Name of the organization * @param spaceName Name of the space * @param watchFolderId Database ID of the watch folder * @returns Array of tracked file entries */ getWatchFolderFiles(orgName: string, spaceName: string, watchFolderId: string, raw?: { raw: R; }): Promise>; /** * Signals that the watch folder file behind the current stream execution is not actually complete yet and * should not be marked as processed - it becomes eligible again on a later watch folder scan. Callable from * within the stream execution itself (e.g. by a node that performed a vendor-specific completeness check), * authenticated purely via the execution's secret, same as High5SpaceExecute.high5ExecutionStatusAndLogResponse. * @param orgName the organizations's name * @param spaceName the spaces's name * @param secret the secret of the stream execution object * @param reset optional reason describing why the file is considered incomplete * @returns the reset watch folder file */ resetWatchFolderFile(orgName: string, spaceName: string, secret: string, reset?: WatchFolderFileReset, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }