@adonis-agora/media
Version:
Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a
23 lines • 1.15 kB
TypeScript
import type { MediaConfig } from '../define_config.js';
import { MediaManager } from '../media_manager.js';
import { TenantAccounts } from './tenant_accounts.js';
import { tenantClientOf } from './tenant_client.js';
/** The disk name a tenant reports: it has none of its own. */
export declare const TENANT_DISK = "control-plane";
export { tenantClientOf };
/**
* `media.accounts` of a standalone app (`accounts` in `config/media.ts`): a person's own files on
* the control plane, while this app keeps its own media. None without `accounts`.
*/
export declare function standaloneAccountsOf(config: MediaConfig, options?: {
fetch?: typeof fetch;
}): TenantAccounts | undefined;
/**
* The {@link MediaManager} of a tenant: `media.library` runs on the control plane, `media.accounts`
* reads and writes a person's own files there. This app keeps its collection `access` rules and its
* delivery settings (route, signing); it has no disk, store or upload session of its own.
*/
export declare function buildTenantManager(config: MediaConfig, options?: {
fetch?: typeof fetch;
}): MediaManager;
//# sourceMappingURL=tenant_manager.d.ts.map