@nestarc/tenancy
API reference for @nestarc/tenancy 0.16.1. PostgreSQL TEXT/UUID RLS, Prisma tenancy, live audits, and validated RPC tenant context.
Start here
Install the documented release with npm install @nestarc/tenancy@0.16.1. Follow Installation for peer dependencies and application setup, then read Agent guide for usage decisions and examples.
Choose an import path below to find its exported signatures and types. The root package contains the main application APIs; named subpaths group the additional integrations and utilities. The reference is generated from the published release, with source links pinned to its commit.
Modules
@nestarc/tenancy/cache— Configure TenantCacheInterceptor and SharedTenantCache for cache behavior that accounts for tenant context. Read the caching guide before sharing entries across tenants.@nestarc/tenancy— Configure tenant extraction, context, guards, Prisma isolation, and tenant propagation. This root reference includes the runtime services and types used to carry tenant identity through application work.@nestarc/tenancy/testing— Use TestTenancyModule, withTenant, and expectTenantIsolation to supply tenant context and verify isolation in application tests.