/** * @venturekit-pro/tenancy * * Multi-tenant utilities for VentureKit — context resolution, * middleware, and tenant-lifecycle operations (suspend / archive / * restore / hard-delete with auto-discovered FK-safe cascade). * * Documentation: https://venturekit.dev */ export * from './types/index.js'; export { TenantContext, createTenantContext, getCurrentTenant, resolveTenant, } from './context/index.js'; export * from './middleware/index.js'; export { listTenants, getTenantById, getTenantBySlug, getTenantByPrimaryDomain, createTenant, updateTenant, setTenantStatus, isUniqueViolation as isTenantUniqueViolation, } from './crud/index.js'; export type { TenantRecord, TenantWriteFields, TenantStatus as TenantDbStatus, } from './crud/index.js'; export * from './hierarchy/index.js'; export { suspendTenant, archiveTenant, restoreTenant, hardDeleteTenant, planCascade, executeCascade, planUserErasure, executeUserErasure, exportUserData, } from './lifecycle/index.js'; export type { TenantLifecycleStatus, LifecycleArgs, LifecycleOperationArgs, HardDeleteArgs, LifecycleAuditEvent, LifecycleAuditSink, CascadePlanEntry, CascadeOptions, CascadeResult, UserDataOptions, UserDataExport, } from './lifecycle/index.js'; //# sourceMappingURL=index.d.ts.map