Public Source Viewer

비나래아카이브 개발자 포털

실제 서비스 구조를 살펴볼 수 있는 공개용 코드 뷰어입니다. 인증, 세션, 외부 연동, 토큰, 관리자 식별 등 보안상 민감한 구현은 파일 단위 또는 줄 단위로 검열됩니다.

Redacted View
src/types/express.d.ts
공개 가능
1 import 'express-session';
2
3 declare module 'express-session' {
4 interface SessionData {
5 username?: string;
6 theme?: string;
7 hinanaHistory?: Array<{ role: string; content: string }>;
8 normalHistory?: Array<{ role: string; content: string }>;
9 aiNotes?: Array<{
10 id: string;
11 question: string;
12 excerpt: string;
13 createdAt: string;
14 }>;
15 useHinanaMode?: boolean;
16 hinanaMode?: boolean;
17 chatHistory?: Array<any>;
18 [key: string]: any;
19 }
20 }
21
22 declare global {
23 namespace Express {
24 interface Request {
25 session: import('express-session').SessionData;
26 }
27 }
28 }
29
30 export {};
31