/**
 * Express Request type extension for DBIS admin and SCB routes
 * sovereignBankId is set by zeroTrustAuthMiddleware or optionalAuthMiddleware
 */
declare global {
  namespace Express {
    interface Request {
      sovereignBankId?: string;
      employeeId?: string;
      email?: string;
      name?: string;
      roleName?: string;
      permissions?: string[];
      sessionType?: 'portal' | 'service';
      portalSurface?: 'admin' | 'member' | 'core';
      identityType?: string;
      apiRole?: string;
    }
  }
}

export {};
