chat.ts 625 B

12345678910111213141516171819202122232425
  1. // GET /api/chat/rooms/{roomKey}/messages 응답 (SSR 초기 로드용 — 익명 허용)
  2. export interface ChatRoomHistory {
  3. roomKey: string;
  4. notice: string|null;
  5. slowModeSeconds: number;
  6. messages: ChatMessage[];
  7. }
  8. export interface ChatMessage {
  9. memberID: number;
  10. memberSID: string;
  11. memberName: string;
  12. content: string;
  13. sentAt: string;
  14. source?: string;
  15. youTubeChannelId?: string|null;
  16. // 뱃지 (우선순위: 칭호 > 등급 > 아이콘)
  17. titleIconUrl?: string|null;
  18. titleName?: string|null;
  19. titleColor?: string|null;
  20. gradeImageUrl?: string|null;
  21. gradeTextColor?: string|null;
  22. memberIcon?: string|null;
  23. }