@adonis-agora/media 1.0.0-rc.2 → 1.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +129 -0
- package/dist/assets/spa/assets/index-9RRFpgj5.js +53 -0
- package/dist/assets/spa/assets/index-9RRFpgj5.js.map +1 -0
- package/dist/assets/spa/assets/index-CifHlKO6.css +1 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-BfsvjouI.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-400-normal-CRt88UEn.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-400-normal-OW7qkl5a.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-500-normal-01eiPEn0.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-500-normal-w58xtEt9.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-600-normal-1_7fyUAY.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-600-normal-Cdg4DaK0.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-700-normal-9waGdLWo.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-700-normal-BKPfQAnC.woff +0 -0
- package/dist/assets/spa/index.html +7 -7
- package/dist/commands/agora_doctor.d.ts +23 -0
- package/dist/commands/agora_doctor.d.ts.map +1 -0
- package/dist/commands/agora_doctor.js +110 -0
- package/dist/commands/agora_doctor.js.map +1 -0
- package/dist/commands/console_disks.d.ts +9 -0
- package/dist/commands/console_disks.d.ts.map +1 -0
- package/dist/commands/console_disks.js +23 -0
- package/dist/commands/console_disks.js.map +1 -0
- package/dist/commands/console_objects.d.ts +86 -0
- package/dist/commands/console_objects.d.ts.map +1 -0
- package/dist/commands/console_objects.js +304 -0
- package/dist/commands/console_objects.js.map +1 -0
- package/dist/commands/console_records.d.ts +37 -0
- package/dist/commands/console_records.d.ts.map +1 -0
- package/dist/commands/console_records.js +130 -0
- package/dist/commands/console_records.js.map +1 -0
- package/dist/commands/console_uploads.d.ts +27 -0
- package/dist/commands/console_uploads.d.ts.map +1 -0
- package/dist/commands/console_uploads.js +88 -0
- package/dist/commands/console_uploads.js.map +1 -0
- package/dist/commands/main.d.ts +10 -0
- package/dist/commands/main.d.ts.map +1 -0
- package/dist/commands/main.js +41 -0
- package/dist/commands/main.js.map +1 -0
- package/dist/commands/media_doctor.d.ts +8 -0
- package/dist/commands/media_doctor.d.ts.map +1 -0
- package/dist/commands/media_doctor.js +8 -0
- package/dist/commands/media_doctor.js.map +1 -0
- package/dist/commands/publish_migration.d.ts +15 -0
- package/dist/commands/publish_migration.d.ts.map +1 -0
- package/dist/commands/publish_migration.js +37 -0
- package/dist/commands/publish_migration.js.map +1 -0
- package/dist/commands/tenancy_backfill.d.ts +18 -0
- package/dist/commands/tenancy_backfill.d.ts.map +1 -0
- package/dist/commands/tenancy_backfill.js +50 -0
- package/dist/commands/tenancy_backfill.js.map +1 -0
- package/dist/configure.d.ts +2 -1
- package/dist/configure.d.ts.map +1 -1
- package/dist/configure.js +6 -1
- package/dist/configure.js.map +1 -1
- package/dist/providers/dashboard_provider.d.ts +1 -0
- package/dist/providers/dashboard_provider.d.ts.map +1 -1
- package/dist/providers/dashboard_provider.js +346 -91
- package/dist/providers/dashboard_provider.js.map +1 -1
- package/dist/providers/media_provider.d.ts +7 -0
- package/dist/providers/media_provider.d.ts.map +1 -1
- package/dist/providers/media_provider.js +173 -3
- package/dist/providers/media_provider.js.map +1 -1
- package/dist/src/access.d.ts +7 -0
- package/dist/src/access.d.ts.map +1 -1
- package/dist/src/access.js +13 -0
- package/dist/src/access.js.map +1 -1
- package/dist/src/account_console/contract.d.ts +170 -0
- package/dist/src/account_console/contract.d.ts.map +1 -0
- package/dist/src/account_console/contract.js +10 -0
- package/dist/src/account_console/contract.js.map +1 -0
- package/dist/src/account_console/extension.d.ts +96 -0
- package/dist/src/account_console/extension.d.ts.map +1 -0
- package/dist/src/account_console/extension.js +337 -0
- package/dist/src/account_console/extension.js.map +1 -0
- package/dist/src/account_console/messages.d.ts +58 -0
- package/dist/src/account_console/messages.d.ts.map +1 -0
- package/dist/src/account_console/messages.js +65 -0
- package/dist/src/account_console/messages.js.map +1 -0
- package/dist/src/account_console/upload_endpoint.d.ts +48 -0
- package/dist/src/account_console/upload_endpoint.d.ts.map +1 -0
- package/dist/src/account_console/upload_endpoint.js +82 -0
- package/dist/src/account_console/upload_endpoint.js.map +1 -0
- package/dist/src/account_console/upload_script.d.ts +9 -0
- package/dist/src/account_console/upload_script.d.ts.map +1 -0
- package/dist/src/account_console/upload_script.js +89 -0
- package/dist/src/account_console/upload_script.js.map +1 -0
- package/dist/src/account_console/upload_ticket.d.ts +17 -0
- package/dist/src/account_console/upload_ticket.d.ts.map +1 -0
- package/dist/src/account_console/upload_ticket.js +51 -0
- package/dist/src/account_console/upload_ticket.js.map +1 -0
- package/dist/src/agora/tenancy.d.ts +94 -0
- package/dist/src/agora/tenancy.d.ts.map +1 -0
- package/dist/src/agora/tenancy.js +148 -0
- package/dist/src/agora/tenancy.js.map +1 -0
- package/dist/src/commands/console_command.d.ts +58 -0
- package/dist/src/commands/console_command.d.ts.map +1 -0
- package/dist/src/commands/console_command.js +174 -0
- package/dist/src/commands/console_command.js.map +1 -0
- package/dist/src/commands/tenancy_backfill.d.ts +19 -0
- package/dist/src/commands/tenancy_backfill.d.ts.map +1 -0
- package/dist/src/commands/tenancy_backfill.js +19 -0
- package/dist/src/commands/tenancy_backfill.js.map +1 -0
- package/dist/src/dashboard/access_denied_page.d.ts +1 -1
- package/dist/src/dashboard/access_denied_page.js +1 -1
- package/dist/src/dashboard/console_authorize.d.ts +12 -0
- package/dist/src/dashboard/console_authorize.d.ts.map +1 -1
- package/dist/src/dashboard/console_authorize.js +28 -4
- package/dist/src/dashboard/console_authorize.js.map +1 -1
- package/dist/src/dashboard/console_service.d.ts +47 -0
- package/dist/src/dashboard/console_service.d.ts.map +1 -0
- package/dist/src/dashboard/console_service.js +59 -0
- package/dist/src/dashboard/console_service.js.map +1 -0
- package/dist/src/dashboard/console_shell.d.ts +49 -0
- package/dist/src/dashboard/console_shell.d.ts.map +1 -0
- package/dist/src/dashboard/console_shell.js +183 -0
- package/dist/src/dashboard/console_shell.js.map +1 -0
- package/dist/src/dashboard/console_switcher.d.ts +134 -0
- package/dist/src/dashboard/console_switcher.d.ts.map +1 -0
- package/dist/src/dashboard/console_switcher.js +220 -0
- package/dist/src/dashboard/console_switcher.js.map +1 -0
- package/dist/src/dashboard/define_config.d.ts +42 -0
- package/dist/src/dashboard/define_config.d.ts.map +1 -1
- package/dist/src/dashboard/define_config.js.map +1 -1
- package/dist/src/dashboard/dev_tools.d.ts.map +1 -1
- package/dist/src/dashboard/dev_tools.js +5 -11
- package/dist/src/dashboard/dev_tools.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +10 -1
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/index.js +7 -0
- package/dist/src/dashboard/index.js.map +1 -1
- package/dist/src/dashboard/list_api.d.ts +58 -0
- package/dist/src/dashboard/list_api.d.ts.map +1 -0
- package/dist/src/dashboard/list_api.js +155 -0
- package/dist/src/dashboard/list_api.js.map +1 -0
- package/dist/src/dashboard/service.d.ts +36 -18
- package/dist/src/dashboard/service.d.ts.map +1 -1
- package/dist/src/dashboard/service.js +100 -38
- package/dist/src/dashboard/service.js.map +1 -1
- package/dist/src/dashboard/spa.d.ts +18 -0
- package/dist/src/dashboard/spa.d.ts.map +1 -1
- package/dist/src/dashboard/spa.js +9 -1
- package/dist/src/dashboard/spa.js.map +1 -1
- package/dist/src/dashboard/tenant_scope.d.ts +49 -0
- package/dist/src/dashboard/tenant_scope.d.ts.map +1 -0
- package/dist/src/dashboard/tenant_scope.js +82 -0
- package/dist/src/dashboard/tenant_scope.js.map +1 -0
- package/dist/src/dashboard/types.d.ts +75 -58
- package/dist/src/dashboard/types.d.ts.map +1 -1
- package/dist/src/define_config.d.ts +44 -0
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js.map +1 -1
- package/dist/src/delivery.d.ts.map +1 -1
- package/dist/src/delivery.js +13 -2
- package/dist/src/delivery.js.map +1 -1
- package/dist/src/doctor/agora_doctor.d.ts +116 -0
- package/dist/src/doctor/agora_doctor.d.ts.map +1 -0
- package/dist/src/doctor/agora_doctor.js +685 -0
- package/dist/src/doctor/agora_doctor.js.map +1 -0
- package/dist/src/doctor/checks.d.ts +51 -0
- package/dist/src/doctor/checks.d.ts.map +1 -0
- package/dist/src/doctor/checks.js +282 -0
- package/dist/src/doctor/checks.js.map +1 -0
- package/dist/src/doctor/index.d.ts +7 -0
- package/dist/src/doctor/index.d.ts.map +1 -0
- package/dist/src/doctor/index.js +6 -0
- package/dist/src/doctor/index.js.map +1 -0
- package/dist/src/federation/console.d.ts +189 -0
- package/dist/src/federation/console.d.ts.map +1 -0
- package/dist/src/federation/console.js +369 -0
- package/dist/src/federation/console.js.map +1 -0
- package/dist/src/federation/redis_channel.d.ts +93 -0
- package/dist/src/federation/redis_channel.d.ts.map +1 -0
- package/dist/src/federation/redis_channel.js +206 -0
- package/dist/src/federation/redis_channel.js.map +1 -0
- package/dist/src/index.d.ts +6 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/integrations/authkit.d.ts +8 -2
- package/dist/src/integrations/authkit.d.ts.map +1 -1
- package/dist/src/integrations/authkit.js +4 -3
- package/dist/src/integrations/authkit.js.map +1 -1
- package/dist/src/internal_symbols.d.ts +2 -0
- package/dist/src/internal_symbols.d.ts.map +1 -1
- package/dist/src/internal_symbols.js +2 -0
- package/dist/src/internal_symbols.js.map +1 -1
- package/dist/src/media_access.d.ts.map +1 -1
- package/dist/src/media_access.js +33 -11
- package/dist/src/media_access.js.map +1 -1
- package/dist/src/media_library.d.ts +32 -2
- package/dist/src/media_library.d.ts.map +1 -1
- package/dist/src/media_library.js +75 -6
- package/dist/src/media_library.js.map +1 -1
- package/dist/src/media_manager.d.ts +5 -0
- package/dist/src/media_manager.d.ts.map +1 -1
- package/dist/src/media_manager.js +18 -2
- package/dist/src/media_manager.js.map +1 -1
- package/dist/src/media_record.d.ts +5 -0
- package/dist/src/media_record.d.ts.map +1 -1
- package/dist/src/media_store.d.ts +36 -1
- package/dist/src/media_store.d.ts.map +1 -1
- package/dist/src/media_store.js +4 -0
- package/dist/src/media_store.js.map +1 -1
- package/dist/src/mime_type.d.ts +2 -0
- package/dist/src/mime_type.d.ts.map +1 -1
- package/dist/src/mime_type.js +8 -0
- package/dist/src/mime_type.js.map +1 -1
- package/dist/src/resumable_upload.d.ts +4 -0
- package/dist/src/resumable_upload.d.ts.map +1 -1
- package/dist/src/resumable_upload.js.map +1 -1
- package/dist/src/stores/factory.d.ts +13 -0
- package/dist/src/stores/factory.d.ts.map +1 -1
- package/dist/src/stores/factory.js +12 -4
- package/dist/src/stores/factory.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts +71 -7
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +223 -22
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +44 -3
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +125 -11
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/tenant_scoped_store.d.ts +33 -0
- package/dist/src/tenant_scoped_store.d.ts.map +1 -0
- package/dist/src/tenant_scoped_store.js +123 -0
- package/dist/src/tenant_scoped_store.js.map +1 -0
- package/dist/src/testing/in_memory_media_store.d.ts +5 -2
- package/dist/src/testing/in_memory_media_store.d.ts.map +1 -1
- package/dist/src/testing/in_memory_media_store.js +40 -3
- package/dist/src/testing/in_memory_media_store.js.map +1 -1
- package/dist/src/testing/in_memory_upload_session_store.d.ts.map +1 -1
- package/dist/src/testing/in_memory_upload_session_store.js +2 -1
- package/dist/src/testing/in_memory_upload_session_store.js.map +1 -1
- package/dist/src/testing/media_fake.d.ts +1 -1
- package/dist/src/testing/media_fake.d.ts.map +1 -1
- package/dist/src/testing/media_fake.js +2 -0
- package/dist/src/testing/media_fake.js.map +1 -1
- package/dist/src/upload_sessions/factory.d.ts +7 -0
- package/dist/src/upload_sessions/factory.d.ts.map +1 -1
- package/dist/src/upload_sessions/factory.js +7 -1
- package/dist/src/upload_sessions/factory.js.map +1 -1
- package/dist/src/upload_sessions/lucid.d.ts +23 -0
- package/dist/src/upload_sessions/lucid.d.ts.map +1 -1
- package/dist/src/upload_sessions/lucid.js +66 -5
- package/dist/src/upload_sessions/lucid.js.map +1 -1
- package/dist/stubs/database/migrations/add_media_tenant_id.stub +80 -0
- package/dist/stubs/database/migrations/create_media_table.stub +17 -2
- package/dist/stubs/database/migrations/create_media_upload_sessions_table.stub +19 -4
- package/package.json +23 -6
- package/skills/media-setup/SKILL.md +19 -2
- package/skills/media-stores-delivery/SKILL.md +22 -0
- package/dist/assets/spa/assets/index-DOnygWEb.js +0 -12
- package/dist/assets/spa/assets/index-DOnygWEb.js.map +0 -1
- package/dist/assets/spa/assets/index-XkvYeRIj.css +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,134 @@
|
|
|
1
1
|
# @adonis-agora/media
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.20
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#336](https://github.com/DavideCarvalho/adonis-agora-media/pull/336) [`53d7ddd`](https://github.com/DavideCarvalho/adonis-agora-media/commit/53d7dddc463993f1509e37d1bdaac872c6d78d36) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Federated console: the media console can also show other apps' media, with an **App** selector (`?app=` in the URL). Each app keeps its own tables, disks and credentials. `config/media_dashboard.ts` gains `apps` (`label`, `store`, `uploadSessions`, `controlPlane: { connection, prefix }`, `origin`, `timeoutMs`) and `appLabel`; records, collections and upload sessions are read from the other app's tables (read-only, never created or altered), and disks, object URLs and the actions are asked of that app over Redis, which answers with `consoleCommands: { connection, prefix, actions }` in its `config/media.ts` (one instance runs each command, claimed with `SET NX`). New `GET <api>/apps`; `authorize` may grant `apps`. An unknown app answers 404, an app that does not answer 503, an app error 502, a command it does not run 501. Uploading from the console stays the console app's own.
|
|
8
|
+
|
|
9
|
+
## 1.0.0-rc.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#335](https://github.com/DavideCarvalho/adonis-agora-media/pull/335) [`fede0d9`](https://github.com/DavideCarvalho/adonis-agora-media/commit/fede0d95a7ceda70d8737026cb6efc3641a4c5e5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Ships the console with its filters in the URL (copy the link to share a filtered view). The console is bundled into this package at build time, so it needs its own release to reach apps.
|
|
14
|
+
|
|
15
|
+
## 1.0.0-rc.18
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#322](https://github.com/DavideCarvalho/adonis-agora-media/pull/322) [`d38b22c`](https://github.com/DavideCarvalho/adonis-agora-media/commit/d38b22caaccb7ff347f879ebefc9705b37ef6a95) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Ships the current console: chart tooltips (TanStack Charts) and ⌘K navigation to pages and consoles. The console is bundled into this package, so the dashboard-only release did not reach apps.
|
|
20
|
+
|
|
21
|
+
## 1.0.0-rc.17
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#315](https://github.com/DavideCarvalho/adonis-agora-media/pull/315) [`14a9a6d`](https://github.com/DavideCarvalho/adonis-agora-media/commit/14a9a6ddea1540a7b662137f58fa047158ef3f60) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `authkitIdentity()` on the authkit-client side sets `realId` from the identity's actor (the token's `act` claim), falling back to `sub`. Under impersonation through a remote authkit, permission checks are made for the impersonating human, as they already were on the authkit-server side.
|
|
26
|
+
|
|
27
|
+
## 1.0.0-rc.16
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#312](https://github.com/DavideCarvalho/adonis-agora-media/pull/312) [`922a1b0`](https://github.com/DavideCarvalho/adonis-agora-media/commit/922a1b065c2d2188aa6ddc855e74b5d2d0d4aff7) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console sidebar matches the old authkit admin console exactly (Agora console kit): nav rows are 32px with no gap between them, section labels and the brand/switcher header use authkit's spacing, the footer role shows as sent (no forced uppercase), and the theme toggle sits left-aligned with a 13px icon next to a 26px sign-out button.
|
|
32
|
+
|
|
33
|
+
## 1.0.0-rc.15
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#309](https://github.com/DavideCarvalho/adonis-agora-media/pull/309) [`3950127`](https://github.com/DavideCarvalho/adonis-agora-media/commit/39501275ffbe5e1ce1d8e0e86361ba9b325c438d) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Server: the `agora.consoles` registry accepts the `flags` and `cms` icon keys, so those consoles show their own tile instead of `generic`. Console: the console switcher shows the CMS console with its own orange tile and glyph, and the kit gains a 16px `DocumentIcon`; the collapsible nav section toggle has a test pinning its focus ring (Agora console kit round 3).
|
|
38
|
+
|
|
39
|
+
## 1.0.0-rc.14
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#308](https://github.com/DavideCarvalho/adonis-agora-media/pull/308) [`ac3a139`](https://github.com/DavideCarvalho/adonis-agora-media/commit/ac3a139fa656bc925d3d728e1e6517cebcce0232) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console ⌘K shows its loading state: a spinner in the search box while a request is in flight, skeleton rows until the first answer, earlier hits kept but dimmed during a re-search, "Nothing found" only after an empty answer, and a quiet "didn't answer" line with Retry when the search fails. Synced with the shared console kit (DataTable `rowClassName`/`subRow`, ⌘K console-local `commands`, collapsible nav sections).
|
|
44
|
+
|
|
45
|
+
## 1.0.0-rc.13
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#307](https://github.com/DavideCarvalho/adonis-agora-media/pull/307) [`9b9c638`](https://github.com/DavideCarvalho/adonis-agora-media/commit/9b9c63829e644925f24014c24ee633be175e5e2d) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console footer: the signed-in user's role now shows when no `viewer` hook is set. The structural read of `ctx.auth.user` takes `role`, `roles` (strings, `{ name }` or authz `{ role }` rows) and `globalRoles`, plus the global roles of authkit's per-request identity on `ctx.authkit` (read structurally, 250 ms cap). One role is shown: an admin-like one first, else the first.
|
|
50
|
+
|
|
51
|
+
Console: inline SVG favicon in the console accent, so the browser no longer probes `/favicon.ico` and logs a 404 in the host app.
|
|
52
|
+
|
|
53
|
+
## 1.0.0-rc.12
|
|
54
|
+
|
|
55
|
+
### Minor Changes
|
|
56
|
+
|
|
57
|
+
- [#306](https://github.com/DavideCarvalho/adonis-agora-media/pull/306) [`71900c9`](https://github.com/DavideCarvalho/adonis-agora-media/commit/71900c94effc0bc6dc180f5397bc4b70ad94edb3) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Every media console action is now a `node ace` command: `media:disks:list`, `media:objects:list`, `media:objects:show`, `media:objects:upload`, `media:objects:copy`, `media:objects:move`, `media:objects:rename`, `media:objects:delete`, `media:folders:create`, `media:collections:list`, `media:records:list`, `media:records:show`, `media:records:delete`, `media:uploads:list`, `media:uploads:show` and `media:uploads:abort`. They use the console's settings from `config/media_dashboard.ts` (its disks, its `actions` switch, its object URLs), print `--json` in the console API's `{ data, meta }` shape, take `--tenant=<id>` with tenancy on, ask before a destructive change unless `--force`, and exit with code `1` on failure. See the new CLI page in the docs.
|
|
58
|
+
|
|
59
|
+
## 1.0.0-rc.11
|
|
60
|
+
|
|
61
|
+
### Minor Changes
|
|
62
|
+
|
|
63
|
+
- [#304](https://github.com/DavideCarvalho/adonis-agora-media/pull/304) [`a1a5ab4`](https://github.com/DavideCarvalho/adonis-agora-media/commit/a1a5ab4315225caa605e44f37ba034b761d5481b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console shell: the media console is rebuilt on the Agora console kit, the shell every `@adonis-agora` console now shares. Its accent is amber (the access-denied page follows).
|
|
64
|
+
|
|
65
|
+
- Left sidebar with the brand (the console switcher), nav grouped as LIBRARY (Library, Collections) and TRANSFERS (Uploads, Upload), and a footer with the signed-in user, a theme toggle and sign-out. Below 768px the sidebar becomes a drawer.
|
|
66
|
+
- Topbar with the page title, the organization picker, the disk / uploads / actions pills, the live dot and ⌘K search across consoles.
|
|
67
|
+
- Each page opens with metric cards (disks and folder contents, record totals, sessions in progress). Library rows keep Preview inline and move copy key / copy / move / rename / delete into a row menu. Lists page with "Load more" on the cursor envelope.
|
|
68
|
+
- Light mode. The theme is remembered per console in localStorage.
|
|
69
|
+
- Fonts are bundled (Sora, JetBrains Mono); the page no longer loads Google Fonts.
|
|
70
|
+
- Every page and region has its own error boundary with a retry button, shaped skeletons and empty states.
|
|
71
|
+
|
|
72
|
+
Server: the page's data block gains `search`, `viewer` and `signOut`. The new `viewer(ctx)` config option sets the user row; without it the console reads `ctx.auth.user` when the request is already authenticated. The new `signOut` option takes a POST action path, `{ href }` or `false`; without it the console uses the sign-out an account console announces on the `agora.consoles` registry (`account.signOut`). A POST sign-out carries the request's CSRF token.
|
|
73
|
+
|
|
74
|
+
## 1.0.0-rc.10
|
|
75
|
+
|
|
76
|
+
### Major Changes
|
|
77
|
+
|
|
78
|
+
- [#301](https://github.com/DavideCarvalho/adonis-agora-media/pull/301) [`4fdd451`](https://github.com/DavideCarvalho/adonis-agora-media/commit/4fdd4513f77c5d640bafee365ef7bf22afb557cc) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The console's list routes use the `@adonis-agora/filter` list format.
|
|
79
|
+
|
|
80
|
+
- `GET /objects`: `?disk=&prefix=` → `?filter[disk]=&filter[prefix]=` (`filter[disk]` required). Paging stays `after` / `first` (default and max 1000). The response is `{ data, meta: { nextCursor, prevCursor, hasNext, hasPrev } }`; `data` holds folders, then files, each tagged `type: 'folder' | 'file'` (was `{ folders, files, nextCursor, prevCursor, hasNext, hasPrev }`). `sort` accepts only `key`.
|
|
81
|
+
- `GET /collections`: `?collection=&ownerType=&ownerId=&prefix=` → `?filter[collection]=&filter[ownerType]=&filter[ownerId]=&filter[prefix]=`. Paging stays `after` / `first` (default 50, max 200). The response is `{ data, meta }` (was `{ items, nextCursor, prevCursor, hasNext, hasPrev }`). `sort` accepts only `-createdAt`.
|
|
82
|
+
- `GET /uploads`: `?disk=&prefix=` → `?filter[disk]=&filter[prefix]=`; `sort=createdAt|-createdAt` (default newest first). Response `{ data }` (was `{ uploads }`).
|
|
83
|
+
- `GET /disks` answers `{ data }` (was `{ disks }`); `GET /collections/summary` answers `{ data }` (was `{ collections }`).
|
|
84
|
+
- An unknown filter field, an operator other than equality, a sort outside the route's list, or `before` / `last` is a `400`.
|
|
85
|
+
- `DashboardService`: `objects()` and `collections()` return `CursorPageResponse<T>` (`{ data, meta }`); `disks()`, `uploads()` and `collectionsSummary()` return `{ data }`; `uploads()` takes `order: 'asc' | 'desc'`.
|
|
86
|
+
- Types: `CursorPage` and `CursorPageInfo` are removed; new `CursorPageResponse<T>`, `CursorPageMeta`, `ListResponse<T>`, `ObjectListItem`, `UploadFilter`. `ObjectListResponse`, `CollectionListResponse`, `DiskListResponse`, `UploadListResponse` and `CollectionsSummaryResponse` change shape as above.
|
|
87
|
+
- New `readObjectsQuery`, `readCollectionsQuery` and `readUploadsQuery` in `@adonis-agora/media/dashboard` read these routes' query strings for your own routes.
|
|
88
|
+
- `@adonis-agora/media` now depends on `@adonis-agora/filter`.
|
|
89
|
+
|
|
90
|
+
## 1.0.0-rc.9
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- [#296](https://github.com/DavideCarvalho/adonis-agora-media/pull/296) [`25916df`](https://github.com/DavideCarvalho/adonis-agora-media/commit/25916df1627ddbea46244e89982c759fdd3565ed) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Tenancy on MySQL: the `media_tenant_owner_idx` index (tenant, owner type, owner id, collection) was over InnoDB's 3072-byte key limit under utf8mb4, so the tenancy migration and the auto-added tenant column failed there. On MySQL the index now covers the first 191 characters of each column; Postgres and SQLite are unchanged. Re-running the tenancy migration after a failed MySQL attempt (column added, index missing) now completes it.
|
|
95
|
+
|
|
96
|
+
## 1.0.0-rc.8
|
|
97
|
+
|
|
98
|
+
### Minor Changes
|
|
99
|
+
|
|
100
|
+
- [#295](https://github.com/DavideCarvalho/adonis-agora-media/pull/295) [`b29ec2c`](https://github.com/DavideCarvalho/adonis-agora-media/commit/b29ec2cc8b8feaa9107267a81fb524ed48b46567) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `stores.lucid({ schema })` and `uploadSessions.lucid({ schema })` put media's tables in a database schema other than the connection's (a Postgres schema, a MySQL database). Every statement names the schema, so it works on any connection without `searchPath`. Auto-create makes the schema when missing, the published migrations take the same `schema`, `createMediaTables` / `dropMediaTables` and `media:tenancy:backfill --schema` accept it, SQLite fails at boot when it is set, and `agora:doctor --deep` checks it (`media.db-schema`, registered only when a schema is set). The auto-created table now also works on MySQL (identifiers are quoted per dialect). Without `schema` nothing changes.
|
|
101
|
+
|
|
102
|
+
## 1.0.0-rc.7
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- [#294](https://github.com/DavideCarvalho/adonis-agora-media/pull/294) [`46cfbec`](https://github.com/DavideCarvalho/adonis-agora-media/commit/46cfbec707862231789e78aa0e5eb0397c737b06) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `stores.lucid({ connection })`: auto-creating the `media` table (and the tenant column) now runs on the configured connection. It used to run on the default connection, so the table was created in the wrong database and the store's first query failed.
|
|
107
|
+
|
|
108
|
+
## 1.0.0-rc.6
|
|
109
|
+
|
|
110
|
+
### Minor Changes
|
|
111
|
+
|
|
112
|
+
- [#290](https://github.com/DavideCarvalho/adonis-agora-media/pull/290) [`cd949a0`](https://github.com/DavideCarvalho/adonis-agora-media/commit/cd949a034a7632bba2ba9246a798d611c486409b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `node ace agora:doctor` (and `media:doctor`): one health check for every installed `@adonis-agora` lib, the same command every lib ships (canonical revision 1.1). Media adds `media.disks` (every disk it writes to exists), `media.console-gate` (console `authorize`, an error in production), `media.account-console` (listed collections exist and have rules) and `media.tenancy-schema` (deep: the `tenant_id` column with tenancy on). New subpath `./doctor`; the commands are in the `@adonis-agora/media/commands` barrel `configure` registers.
|
|
113
|
+
|
|
114
|
+
## 1.0.0-rc.5
|
|
115
|
+
|
|
116
|
+
### Minor Changes
|
|
117
|
+
|
|
118
|
+
- [#289](https://github.com/DavideCarvalho/adonis-agora-media/pull/289) [`d13f522`](https://github.com/DavideCarvalho/adonis-agora-media/commit/d13f5227c318bf84df2bc2bf0896208c1988e6cb) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - A "My files" page in the authkit account console (`/account/files`), registered automatically when authkit's `'authkit.accountExtensions'` registry is in the app (authkit-server, or authkit-client with remote pages). Nothing is exposed until `accountConsole.collections` in `config/media.ts` lists a collection; each listed collection gets browse, upload, rename, delete (confirmed, sudo) and download (short-lived signed URLs), each allowed by that collection's own `access` rules and switchable per collection. Owner defaults to authkit's mapped subject (`owner` hook to override); with tenancy on, the page follows the active organization. Uploads use a same-origin script (`<path>/upload.js`) and a ticket-authorized endpoint (`POST <path>/uploads`, default `/media/account`); `publicUrl` serves remote IdPs. New `media.library.page(ownerType, ownerId, { collections, cursor, limit })`, `media.library.rename(id, name)`, and the optional store method `MediaStore.listByOwnerPaged` (both bundled stores implement it). No runtime dependency on authkit.
|
|
119
|
+
|
|
120
|
+
## 1.0.0-rc.4
|
|
121
|
+
|
|
122
|
+
### Minor Changes
|
|
123
|
+
|
|
124
|
+
- [#288](https://github.com/DavideCarvalho/adonis-agora-media/pull/288) [`a2d73fd`](https://github.com/DavideCarvalho/adonis-agora-media/commit/a2d73fded8a53f62c60a60d4029a8e2234fafa4a) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Organizations as tenants. When tenancy is on in `config/context.ts` (new `tenancy` option in `config/media.ts`: `'inherit'` by default, `false` opts out, plus `kinds`, `nullRows` and `pathPrefix`), new files and upload sessions are stamped with the active tenant and stored under `t/<tenantId>/`, and every app-facing read (`find`, `list`, `url`, `image`, `deliver`, the delivery and stream routes, upload sessions) only sees the active tenant's files; another tenant's file is not found. Public collections and signed delivery URLs stay readable from every tenant. New nullable `tenant_id` column via `node ace media:publish-migration tenancy` (also published by `configure`, and added automatically with `autoCreateSchema`); without it and with tenancy on, queries fail with `E_MEDIA_TENANCY_SCHEMA`. New `node ace media:tenancy:backfill --owner-type=Organization`, `authorizers.sameTenant()`, `tenantId` on `attach`/`attachExisting`, `MediaStore.listTenants`, `tenantIds` on `MediaStore.list`/`collectionTotals`. New `@adonis-agora/media/commands` barrel (`configure` registers it; add it to `adonisrc.ts` `commands` on an existing app). Console: `authorize` may return `{ allowed: true, tenants: '*' | string[] }`; an Organization picker in the header (`?tenant=`, out-of-scope picks see nothing and are logged), an Organization column, and tenant-prefixed disk browsing for confined viewers; `GET <apiBase>/tenants`. Nothing changes while tenancy is off.
|
|
125
|
+
|
|
126
|
+
## 1.0.0-rc.3
|
|
127
|
+
|
|
128
|
+
### Minor Changes
|
|
129
|
+
|
|
130
|
+
- [#287](https://github.com/DavideCarvalho/adonis-agora-media/pull/287) [`bbca45d`](https://github.com/DavideCarvalho/adonis-agora-media/commit/bbca45d5ef0f0090291cdaf5b0617d6ad198009c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The media console joins the Agora console switcher. It registers itself in the app's `'agora.consoles'` registry (created by whichever console boots first), and its brand becomes a menu to the other Agora consoles the viewer may open, each checked with that console's own `authorize` (300 ms each, in parallel; `ctx.agoraProbe` is `true` while they run). Ctrl/Cmd-K searches every console the viewer may open; media answers record ids, collection names and disk names. New routes: `GET <apiBase>/consoles` and `GET <apiBase>/consoles/search?q=`, behind the console's `authorize`. `registerAgoraConsole` is exported from `@adonis-agora/media/dashboard` for consoles an app mounts itself. The Collections view opens filtered from `#/collections?collection=<name>`. Nothing changes for an app with a single console.
|
|
131
|
+
|
|
3
132
|
## 1.0.0-rc.2
|
|
4
133
|
|
|
5
134
|
### Minor Changes
|