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

26 lines • 2.95 kB
// Config idiom — author `config/media_dashboard.ts` against these. export { ACTION_VERBS, ACTOR_HEADER, buildFederatedMediaApp, CONSOLE_READ_CAPABILITY, CONSOLE_WRITE_CAPABILITY, FederatedApp, FederatedAppError, FederatedConsoleService, federatedActionRequest, federatedAppActions, joinApiPath, mediaConsoleCommandHandler, READ_VERBS, RELAYED_ACTION_STATUSES, sanitizeActor, } from '../federation/console.js'; // The federated console's authentication: the boot error, and the automatic modes' pieces. export { CONSOLE_AUTH_DOCS, ConsoleAuthConfigError, checkTenantConsoleKey, classifyConsoleKeyError, consoleKeyNote, watchTenantConsoleKey, } from '../federation/console_auth.js'; export { CONSOLE_CRYPTO_KEY, consoleCommandKeys, RedisConsoleChannel, UNAUTHORIZED_CONSOLE, UNSIGNED_CHANNEL, } from '../federation/redis_channel.js'; // The built-in "access denied" page (what a browser sees on a refused page navigation). export { CONSOLE as ACCESS_DENIED_CONSOLE, escapeHtml, renderAccessDeniedPage, resolveAccessDeniedPage, } from './access_denied_page.js'; // Media's additions on top of the shared contract: capabilities and other apps calling this console. export { appCallerOf, authorizeAgoraCaller, authorizeAppCaller, capabilitiesAllow, capabilityAllows, identifyAgoraCaller, identifySharedSecret, MEDIA_ACTION_ROUTES, MEDIA_CONSOLE_CAPABILITIES, MEDIA_OBJECTS_READ, MEDIA_OBJECTS_WRITE, mediaCallerCsrfExceptions, permitAll, permitTokenCapabilities, viewerConsoleCapabilities, } from './console_apps.js'; export { anyAuthorize, authorizeByToken, normalizeConsoleAuthorizeResult, resolveConsoleAuthorize, } from './console_authorize.js'; export { CONSOLE_ALL, CONSOLE_READ, CONSOLE_WRITE, consoleCapabilityAllows, consoleCapabilityKind, } from './console_capabilities.js'; export { resolveSignOut, resolveViewer, viewerFromUser } from './console_shell.js'; // The Agora console switcher: join it from a console the app mounts itself. export { AGORA_CONSOLES_BINDING, registerAgoraConsole } from './console_switcher.js'; export { defineConfig } from './define_config.js'; // Developer tools for the app's dev MCP endpoint (`@adonis-agora/agent`), when it has one. export { DEV_TOOLS_BINDING, MAX_DELETE_KEYS, mediaDevTools, registerMediaDevTools, } from './dev_tools.js'; // The list routes' request readers (`filter[...]`, `sort`, `after`/`first`) for your own routes. export { CollectionListFilter, ObjectListFilter, readCollectionsQuery, readObjectsQuery, readUploadsQuery, UploadListFilter, } from './list_api.js'; // Host-supplied object annotations. export { sanitizeInsight } from './object_insights.js'; // Where the reported object `url` points (store-signed vs. this console's proxy). export { objectProxyUrl } from './object_urls.js'; // Dashboard read/action logic (framework-free — the provider is a thin HTTP shell around this). export { DashboardError, DashboardService } from './service.js'; //# sourceMappingURL=index.js.map