Skip to content

Type Alias: NormalizedEvent ​

ts
type NormalizedEvent = 
  | {
  chat: ChatMessage;
  type: "chat";
}
  | {
  donation: Donation;
  type: "donation";
}
  | {
  subscription: SubscriptionEvent;
  type: "subscription";
}
  | {
  system: SystemEvent;
  type: "system";
}
  | {
  body: string;
  eventName: string;
  type: "unknown";
};

Defined in: src/types/events.ts:136

Normalize 계층의 출력. 소비자는 항상 이 타입만 본다. 알 수 없는 이벤트/스키마 불일치는 unknown으로 전달되어 죽지 않는다.

공식 OPEN API만 지원 — 비공식 엔드포인트 0건