API ReferenceEvent Referencecommunity.post.created.v1

community.post.created.v1

Constant

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

Publishers

Subscribers

No service currently subscribes to this event.

Payload schema

z.object({
  post_id: z.string(),
  author_id: z.string(),
  brand_id: z.string(),
  content_preview: z.string(),
  moderation_status: z.string(),
  is_broadcast: z.boolean(),
  broadcast_role: z.string().nullable(),
  pinned_until: z.string().datetime().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.