@readerseye2/cr_type 1.0.173 → 1.0.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,3 +67,13 @@ export interface SessionProgressPayload {
67
67
  export interface SessionEventPayload {
68
68
  events: ViewerEvent[];
69
69
  }
70
+ /** 5초 통합 데이터 페이로드 (session:data) — events + gaze + snapshot 한번에 전송 */
71
+ export interface SessionDataPayload {
72
+ events: ViewerEvent[];
73
+ gaze?: {
74
+ samples: number[];
75
+ startTs: number;
76
+ endTs: number;
77
+ };
78
+ snapshot: ViewerSnapshot;
79
+ }
@@ -1,6 +1,6 @@
1
1
  import { ChatMessageReadRequest, ChatMessageRefreshRequest, MessageRequest } from "./socket-message.types";
2
- import { SessionProgressPayload, SessionEventPayload } from "./reading-section.types";
3
- import { ViewerOpenPayload, ViewerClosePayload, GazeDataPayload, SessionHistoryListPayload, SessionHistoryGetPayload, SessionHistoryDeletePayload, UnifiedChunksGetPayload, UnifiedSegmentGetPayload } from "./unified-session.types";
2
+ import { SessionDataPayload } from "./reading-section.types";
3
+ import { ViewerOpenPayload, ViewerClosePayload, SessionHistoryListPayload, SessionHistoryGetPayload, SessionHistoryDeletePayload, UnifiedChunksGetPayload, UnifiedSegmentGetPayload } from "./unified-session.types";
4
4
  import { ReadingProgressReport } from "../book/child-reading-progress.type";
5
5
  export interface ClientToServerEvents {
6
6
  'chat-message:send': (msg: MessageRequest) => void;
@@ -10,12 +10,8 @@ export interface ClientToServerEvents {
10
10
  'session:open': (payload: ViewerOpenPayload) => void;
11
11
  /** 뷰어 닫힘 (세션 종료) */
12
12
  'session:close': (payload: ViewerClosePayload) => void;
13
- /** 진행 상황 (스냅샷 업데이트) */
14
- 'session:progress': (payload: SessionProgressPayload) => void;
15
- /** 이벤트 배치 전송 */
16
- 'session:event': (payload: SessionEventPayload) => void;
17
- /** 시선 데이터 전송 (~1초 간격) */
18
- 'session:gaze': (payload: GazeDataPayload) => void;
13
+ /** 5초 통합 데이터 (events + gaze + snapshot) */
14
+ 'session:data': (payload: SessionDataPayload) => void;
19
15
  /** 자녀 세션 live 구독 (부모) */
20
16
  'live:subscribe': (payload: {
21
17
  readingSessionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.173",
3
+ "version": "1.0.174",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",