---
title: "adonia-activity-log API"
image: "https://adonia.pages.dev/og.png"
version: "next"
---

> Documentation Index
> Fetch the complete documentation index at: https://adonia.pages.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# adonia-activity-log API

<!-- Generated by docs/site/scripts/generate_api.ts. Do not edit. -->

Canonical inventory of every public subpath and TypeScript export in `adonia-activity-log`.

## `adonia-activity-log`

| Export | Kind | Source | Summary |
| --- | --- | --- | --- |
| `ACTIVITY_LOG_MIGRATION` | constant | `packages/activity-log/src/doctor.ts:7` | Published migration that creates the persisted activity event table. |
| `ACTIVITY_LOG_MIGRATIONS` | constant | `packages/activity-log/src/index.ts:20` | Absolute directory containing the package's publishable Lucid migrations. |
| `ACTIVITY_LOG_VERSION` | constant | `packages/activity-log/src/version.ts:2` | Package version generated from package.json; do not edit directly. |
| `ActivityEvent` | class | `packages/activity-log/src/activity_event.ts:95` | Read model for `adonia_action_events`. |
| `ActivityEventChanges` | type-only interface | `packages/activity-log/src/activity_event.ts:11` | Before/after data persisted after core has scrubbed sensitive fields. |
| `ActivityEventStatus` | type-only type | `packages/activity-log/src/activity_event.ts:8` | Terminal and in-progress states persisted by the core action event store. |
| `ActivityLogAuthorization` | type-only type | `packages/activity-log/src/resource.ts:89` | Decides whether the current actor may list activity or view one event. |
| `activityLogDoctorCheck` | constant | `packages/activity-log/src/doctor.ts:12` | Verifies that Lucid has applied the activity-log package migration. |
| `activityLogManifest` | constant | `packages/activity-log/src/index.ts:28` | Unconfigured package manifest used by installers and client registries. Use `activityLogPlugin` when attaching the server half to a panel. |
| `activityLogPlugin` | function | `packages/activity-log/src/index.ts:67` | Build the installable server manifest for one panel's activity log. |
| `ActivityLogResourceOptions` | type-only interface | `packages/activity-log/src/resource.ts:95` | Required installation options for an activity-log resource. |
| `activityRetentionCutoff` | function | `packages/activity-log/src/activity_event.ts:34` | Resolves an absolute ISO timestamp or a relative age such as `24h`, `30d`, or `12w` into the UTC cutoff used by retention queries. |
| `ActivityRetentionCutoff` | type-only type | `packages/activity-log/src/activity_event.ts:17` | Cutoff accepted by the retention helper and Ace command. |
| `createActivityLogResource` | function | `packages/activity-log/src/resource.ts:216` | Creates a panel-scoped, read-only activity resource. |
| `purgeActivityEvents` | function | `packages/activity-log/src/activity_event.ts:164` | Permanently deletes activity events created before `olderThan`. |
| `PurgeActivityEventsOptions` | type-only interface | `packages/activity-log/src/activity_event.ts:20` | Optional constraints for an activity retention purge. |
| `recordHookActivity` | function | `packages/activity-log/src/index.ts:39` | Persists one generic core-hook activity through the shared event table. |
| `registerActivityLogResource` | function | `packages/activity-log/src/index.ts:56` | Add a configured activity-log resource through the manifest server registry. |

## `adonia-activity-log/client`

| Export | Kind | Source | Summary |
| --- | --- | --- | --- |
| `ActivityChangesCell` | function | `packages/activity-log/src/client.ts:73` | Lazy table-cell renderer for semantic before/after activity changes. |
| `ActivityChangesDetail` | function | `packages/activity-log/src/client.ts:54` | Lazy detail renderer for semantic before/after activity changes. |
| `activityLogUiPlugin` | constant | `packages/activity-log/src/client.ts:109` | Named UI plugin installed with `registry.use(activityLogUiPlugin)`. It uses the generated package version and targets protocol v1. |
| `ActivityStatusCell` | function | `packages/activity-log/src/client.ts:38` | Renders a compact, accessible terminal-state badge for activity rows. |
| `ActivityTextFilter` | function | `packages/activity-log/src/client.ts:88` | Lazy exact-value filter used by activity identity columns. |

## `adonia-activity-log/commands/activity_prune`

| Export | Kind | Source | Summary |
| --- | --- | --- | --- |
| `default` | class | `packages/activity-log/src/commands/activity_prune.ts:15` | Deletes persisted activity events older than an ISO cutoff or relative age. |

Source: https://adonia.pages.dev/reference/api/activity-log/index.mdx
