notification.ts 380 B

123456789101112131415
  1. export type NotificationPayload = {
  2. title: string;
  3. content: string;
  4. };
  5. /**
  6. * Owner notification stub — logs to console in production.
  7. * Replace with email/Slack/webhook integration as needed.
  8. */
  9. export async function notifyOwner(
  10. payload: NotificationPayload
  11. ): Promise<boolean> {
  12. console.log(`[Notification] ${payload.title}: ${payload.content}`);
  13. return true;
  14. }