| 17 | */ |
| 18 | declare module "next-auth" { |
| 19 | interface Session extends DefaultSession { |
| 20 | user: User | null; // null if user does not exist anymore in the database but has active jwt |
| 21 | environment: { |
| 22 | // Run-time environment variables that need to be available client-side |
| 23 | enableExperimentalFeatures: boolean; |
| 24 | // Enables features that are only available under an enterprise/commercial license when self-hosting Langfuse |
| 25 | selfHostedInstancePlan: Plan | null; |
| 26 | // V4 migration write mode. Mirrors LANGFUSE_MIGRATION_V4_WRITE_MODE so the |
| 27 | // client can tell whether the legacy traces/observations tables are still |
| 28 | // written and gate the V4 preview / legacy experiences accordingly. |
| 29 | // Optional so existing session mocks need not set it; the real session |
| 30 | // callback always populates it. |
| 31 | v4WriteMode?: "legacy" | "dual" | "events_only"; |
| 32 | }; |
| 33 | } |
| 34 | |
| 35 | interface User extends DefaultUser { |
| 36 | id: PrismaUser["id"]; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…