API ReferenceEvent Referencecomms.notification.created.v1

comms.notification.created.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.COMMS_NOTIFICATION_CREATED_V1;

Publishers

Subscribers

Payload schema

z.object({
  id: z.string(),
  brand_id: z.string(),
  person_id: z.string(),
  channel: z.string(),
  category: z.string(),
  title: z.string(),
  body: z.string().nullable(),
  action_url: z.string().nullable(),
  read_at: z.string().nullable(),
  created_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.