import type { PathDto } from '../models/PathDto'; import type { ReadUrlDto } from '../models/ReadUrlDto'; import type { StorageItemDto } from '../models/StorageItemDto'; import type { WriteUrlDto } from '../models/WriteUrlDto'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class Storage { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Read file * This endpoint will return a url for reading a file in the organization's secure storage. It will be valid for 15 minutes. ADMIN ONLY. * @returns ReadUrlDto Read url was successfully created * @throws ApiError */ getReadUrl({ orgname, requestBody, }: { orgname: string; requestBody: PathDto; }): CancelablePromise; /** * Write file * This endpoint will return a url for writing to a file location in the organization's secure storage. You must write your file to the url returned by this endpoint. If you use is isDir param, it will create a directory instead of a file and you do not need to write to the url. ADMIN ONLY. * @returns WriteUrlDto Write urls was successfully created * @throws ApiError */ getWriteUrl({ orgname, requestBody, }: { orgname: string; requestBody: PathDto; }): CancelablePromise; /** * Show directory * This endpoint will return a list of files and directories in the organization's secure storage at the specified path. ADMIN ONLY. * @returns StorageItemDto Path was successfully retrieved * @throws ApiError */ listDirectory({ orgname, path, }: { orgname: string; path: string; }): CancelablePromise>; /** * Delete file or directory * This endpoint will delete a file or directory in the organization's secure storage at the specified path. ADMIN ONLY. * @returns any Path was successfully deleted * @throws ApiError */ delete({ orgname, path, }: { orgname: string; path: string; }): CancelablePromise; }