2024-12-10 22:35:23 +02:00
|
|
|
import { Session } from "express-session";
|
|
|
|
|
|
|
|
export declare module "express-serve-static-core" {
|
|
|
|
interface Request {
|
|
|
|
session: Session & {
|
|
|
|
loggedIn: boolean;
|
2025-03-26 00:04:55 +01:00
|
|
|
lastAuthState: {
|
|
|
|
totpEnabled: boolean;
|
|
|
|
ssoEnabled: boolean;
|
|
|
|
};
|
2025-01-09 18:07:02 +02:00
|
|
|
};
|
2024-12-10 22:35:23 +02:00
|
|
|
headers: {
|
|
|
|
"x-local-date"?: string;
|
|
|
|
"x-labels"?: string;
|
2024-12-22 15:45:54 +02:00
|
|
|
|
2025-01-09 18:07:02 +02:00
|
|
|
authorization?: string;
|
2024-12-10 22:35:23 +02:00
|
|
|
"trilium-cred"?: string;
|
|
|
|
"x-csrf-token"?: string;
|
|
|
|
|
|
|
|
"trilium-component-id"?: string;
|
|
|
|
"trilium-local-now-datetime"?: string;
|
|
|
|
"trilium-hoisted-note-id"?: string;
|
2025-04-10 10:35:24 +03:00
|
|
|
|
|
|
|
"user-agent"?: string;
|
2025-01-09 18:07:02 +02:00
|
|
|
};
|
2024-12-10 22:35:23 +02:00
|
|
|
}
|
2024-12-22 15:45:54 +02:00
|
|
|
}
|