Anchorage API reference
    Preparing search index...

    Type Alias TenantRangePurgeCounter

    TenantRangePurgeCounter:
        | "threads"
        | "messages"
        | "resources"
        | "backgroundTasks"
        | "notifications"
        | "threadState"

    The PurgeTenantResult field a range-purged table reports into. A feature adopting a new mastra_* domain (notifications, thread-state, background tasks, schedules) adds its counter HERE, its row to TENANT_RANGE_PURGE_TABLES, and its field to PurgeTenantResult — all in the same change. The union is what makes that mechanical rather than remembered: a counter with no result field fails the pin below, and a result field with no counter fails the memory initializer in purgeTenant.