@readerseye2/cr_type 1.0.161 → 1.0.162
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.
|
@@ -2,7 +2,7 @@ import { MessageReadResponse, MessageResponse, NoticeMessageResult } from "./soc
|
|
|
2
2
|
import { ViewerSnapshot } from "./reading-section.types";
|
|
3
3
|
import { ViewerEvent } from "./viewer-events.types";
|
|
4
4
|
import { ConnectedUser, ConnectedUsersGrouped } from "./connected-user.types";
|
|
5
|
-
import { UnifiedSessionInfo, SessionSegmentChangedPayload, UnifiedChunkFile, GazeDataPayload, SessionHistoryListResult, SessionHistoryGetResult, UnifiedChunksResult, UnifiedSegmentResult, SessionHistoryDeleteResult } from "./unified-session.types";
|
|
5
|
+
import { UnifiedSessionInfo, SessionSegmentChangedPayload, SessionSubscribedPayload, UnifiedChunkFile, GazeDataPayload, SessionHistoryListResult, SessionHistoryGetResult, UnifiedChunksResult, UnifiedSegmentResult, SessionHistoryDeleteResult } from "./unified-session.types";
|
|
6
6
|
import { LiveReadingState } from "../book/child-reading-progress.type";
|
|
7
7
|
export interface ServerToClientEvents {
|
|
8
8
|
connect: () => void;
|
|
@@ -26,10 +26,7 @@ export interface ServerToClientEvents {
|
|
|
26
26
|
durationMs?: number;
|
|
27
27
|
}) => void;
|
|
28
28
|
/** 구독 성공 (Parent가 자녀 세션 구독 시) */
|
|
29
|
-
'session:subscribed': (payload:
|
|
30
|
-
readingSessionId: string;
|
|
31
|
-
snapshot: ViewerSnapshot | null;
|
|
32
|
-
}) => void;
|
|
29
|
+
'session:subscribed': (payload: SessionSubscribedPayload) => void;
|
|
33
30
|
/** 구독 중인 세션의 진행 상황 */
|
|
34
31
|
'session:progress': (payload: {
|
|
35
32
|
readingSessionId: string;
|
|
@@ -83,10 +80,7 @@ export interface SessionServerToClientEvents {
|
|
|
83
80
|
durationMs?: number;
|
|
84
81
|
}) => void;
|
|
85
82
|
/** 구독 성공 */
|
|
86
|
-
'session:subscribed': (payload:
|
|
87
|
-
readingSessionId: string;
|
|
88
|
-
snapshot: ViewerSnapshot | null;
|
|
89
|
-
}) => void;
|
|
83
|
+
'session:subscribed': (payload: SessionSubscribedPayload) => void;
|
|
90
84
|
/** 구독 중인 세션 진행 상황 */
|
|
91
85
|
'session:progress': (payload: {
|
|
92
86
|
readingSessionId: string;
|
|
@@ -8,6 +8,13 @@ export interface ChunkRef {
|
|
|
8
8
|
key: string;
|
|
9
9
|
eventCount: number;
|
|
10
10
|
}
|
|
11
|
+
/** session:subscribed 응답 페이로드 */
|
|
12
|
+
export interface SessionSubscribedPayload {
|
|
13
|
+
readingSessionId: string;
|
|
14
|
+
snapshot: ViewerSnapshot | null;
|
|
15
|
+
/** 과거 chunk 참조 목록 (seek용 — 시간범위 + S3 키) */
|
|
16
|
+
chunkRefs?: ChunkRef[];
|
|
17
|
+
}
|
|
11
18
|
/** 통합 세션 상태 */
|
|
12
19
|
export type UnifiedSessionStatus = 'active' | 'ended';
|
|
13
20
|
/** 통합 세그먼트 상태 */
|