UNPKG

@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

86 lines • 3.29 kB
import { MediaConsoleCommand } from '../src/commands/console_command.js'; import type { DashboardService } from '../src/dashboard/service.js'; /** `node ace media:objects:list` — one page of a disk under a prefix, folders first. */ export declare class MediaObjectsList extends MediaConsoleCommand { static commandName: string; static description: string; disk?: string; prefix?: string; after?: string; first?: number; sort?: string; protected handle(service: DashboardService): Promise<void>; } /** `node ace media:objects:show <key>` — one object's metadata and what the app knows about it. */ export declare class MediaObjectsShow extends MediaConsoleCommand { static commandName: string; static description: string; key: string; disk?: string; url: boolean; protected handle(service: DashboardService): Promise<void>; } /** `node ace media:objects:upload <file>` — the console's upload: one file onto a disk. */ export declare class MediaObjectsUpload extends MediaConsoleCommand { static commandName: string; static description: string; file: string; disk?: string; key?: string; prefix?: string; type?: string; protected handle(service: DashboardService): Promise<void>; } /** Shared flags and body of copy / move. */ declare abstract class TransferCommand extends MediaConsoleCommand { protected abstract readonly op: 'copy' | 'move'; from: string; to: string; disk?: string; toDisk?: string; folder: boolean; protected handle(service: DashboardService): Promise<void>; } /** `node ace media:objects:copy <from> <to>` — copy an object (or a folder), same or cross disk. */ export declare class MediaObjectsCopy extends TransferCommand { static commandName: string; static description: string; protected readonly op: 'copy'; } /** `node ace media:objects:move <from> <to>` — move an object (or a folder), same or cross disk. */ export declare class MediaObjectsMove extends TransferCommand { static commandName: string; static description: string; protected readonly op: 'move'; } /** `node ace media:objects:rename <key> <name>` — rename in place (a same-disk move). */ export declare class MediaObjectsRename extends MediaConsoleCommand { static commandName: string; static description: string; key: string; name: string; disk?: string; folder: boolean; protected handle(service: DashboardService): Promise<void>; } /** `node ace media:objects:delete <keys...>` — delete objects (or a folder) from a disk. */ export declare class MediaObjectsDelete extends MediaConsoleCommand { static commandName: string; static description: string; keys: string[]; disk?: string; folder: boolean; force: boolean; dryRun: boolean; protected handle(service: DashboardService): Promise<void>; } /** `node ace media:folders:create <prefix>` — create a folder (a zero-byte marker object). */ export declare class MediaFoldersCreate extends MediaConsoleCommand { static commandName: string; static description: string; prefix: string; disk?: string; protected handle(service: DashboardService): Promise<void>; } export {}; //# sourceMappingURL=console_objects.d.ts.map