@readerseye2/cr_type 1.0.109 → 1.0.111

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.
@@ -96,6 +96,14 @@ export interface SessionSubscribedResponse {
96
96
  sessionId: string;
97
97
  snapshot: ViewerSnapshot;
98
98
  }
99
+ /** S3에 저장된 읽기 세션 청크 */
100
+ export interface ReadingSessionChunk {
101
+ chunkIndex: number;
102
+ startTimestamp: number;
103
+ endTimestamp: number;
104
+ snapshot: ViewerSnapshot | null;
105
+ events: ViewerEvent[];
106
+ }
99
107
  /** S3에 저장된 읽기 세션 기록 */
100
108
  export interface ReadingSessionRecord {
101
109
  sessionId: string;
@@ -113,8 +121,14 @@ export interface ReadingSessionRecord {
113
121
  initialSnapshot?: ViewerSnapshot;
114
122
  finalSnapshot?: ViewerSnapshot;
115
123
  stats?: SessionStats;
116
- /** 세션 동안의 모든 이벤트 (재생용, get 시에만 포함) */
124
+ /** 세션 동안의 모든 이벤트 (단일파일 저장 - deprecated, 하위 호환용) */
117
125
  events?: ViewerEvent[];
126
+ /** 청크 단위 이벤트 (재생용, get 시에만 포함) */
127
+ chunks?: ReadingSessionChunk[];
128
+ /** 총 이벤트 수 */
129
+ totalEvents?: number;
130
+ /** S3 key (목록 조회 시 제공) */
131
+ s3Key?: string;
118
132
  }
119
133
  /** 읽기 세션 기록 목록 조회 요청 (Admin → Server) */
120
134
  export interface ReadingSessionsListPayload {
@@ -42,6 +42,11 @@ export interface ReadingServerToClientEvents {
42
42
  sessionId: string;
43
43
  events: ViewerEvent[];
44
44
  }) => void;
45
+ /** 섹션 변경 시 구독자에게 전송 (구독 자동 이전됨) */
46
+ 'reading-section:section-changed': (payload: {
47
+ oldSessionId: string;
48
+ newSession: ReadingSessionInfo;
49
+ }) => void;
45
50
  'reading-section:error': (payload: {
46
51
  message: string;
47
52
  }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",