import Base, { MaybeRaw } from "../../../../Base"; import { PaginatedResponse, SearchFilter, Sorting } from "../../../../interfaces/global"; import { StorageConfiguration, StorageCreateDto, StorageDto, StoragePatchDto } from "../../../../interfaces/global/Storage"; export declare class IdpOrganizationStorages extends Base { /** * Creates a new Storage in the specified Organization. * @param orgName Name of the Organization * @param storageCreate Storage creation data * @returns The created Storage */ createStorage(orgName: string, storageCreate: StorageCreateDto, raw?: { raw: R; }): Promise>; /** * Updates an existing Storage. * @param orgName Name of the Organization * @param storageId ID of the Storage * @param storagePatchDto Storage patch data * @param raw (optional) If true, returns the raw Axios response instead of the data * @returns The updated Storage object */ patchStorage(orgName: string, storageId: string, storagePatchDto: StoragePatchDto, raw?: { raw: R; }): Promise>; /** * Retrieves all Storages of an Organization that match the provided search filter(s). Returns all Storages if no search filter is provided. * @param orgName Name of the organization * @param filters (optional) Array of search filters * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of Storages and the total number of results found in the database (independent of limit and page) */ searchStorages(params: { orgName: string; filters: SearchFilter[]; sorting?: Sorting; limit?: number; page?: number; }, raw?: { raw: R; }): Promise>>; /** * Retrieves the Storage configuration for the specified Storage ID or the default Storage if no ID is provided. Requires a Personal Access Token (PAT) with appropriate permissions. * * @param pat Personal Access Token * @param storageId (optional) ID of storage. If not provided or "default", retrieves the default storage configuration. * @param decrypt (optional) If true, decrypts the storage configuration * @param raw (optional) If true, returns the raw Axios response instead of the data * @returns The Storage configuration */ getStorageConfig(pat: string, storageId?: string, decrypt?: boolean, raw?: { raw: R; }): Promise>; /** * Updates the avatar of the specified storage * @param orgName Name of the organization * @param storageId ID of the storage * @param file Image as Javascript File * @returns Storage with updated avatarUrl */ updateAvatar(orgName: string, storageId: string, file: File, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }