hunk.code_window:         return f"{base_url}?brain_subscription_invitation={self.brain_id}"
       def resend_invitation_email(self):
           resend.api_key = os.getenv("RESEND_API_KEY")
           brain_url = self.get_brain_url()
           html_body = f"""
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:         brains_settings = BrainSettings()  # pyright: ignore reportPrivateUsage=none
           resend.api_key = brains_settings.resend_api_key
  
hunk.file_path: backend/core/models/brains_subscription_invitations.py
hunk.type: replace