@readerseye2/cr_type 1.0.108 → 1.0.110
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
|
-
/** 세션 동안의 모든 이벤트 (
|
|
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 {
|
|
@@ -140,3 +154,13 @@ export interface ReadingSessionGetPayload {
|
|
|
140
154
|
export interface ReadingSessionGetResultPayload {
|
|
141
155
|
session: ReadingSessionRecord;
|
|
142
156
|
}
|
|
157
|
+
/** 읽기 세션 기록 삭제 요청 (Admin → Server) */
|
|
158
|
+
export interface ReadingSessionDeletePayload {
|
|
159
|
+
sessionId: string;
|
|
160
|
+
s3Key?: string;
|
|
161
|
+
}
|
|
162
|
+
/** 읽기 세션 기록 삭제 결과 (Server → Admin) */
|
|
163
|
+
export interface ReadingSessionDeleteResultPayload {
|
|
164
|
+
sessionId: string;
|
|
165
|
+
success: boolean;
|
|
166
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatMessageReadRequest, ChatMessageRefreshRequest, MessageRequest } from "./socket-message.types";
|
|
2
|
-
import { SessionStartPayload, SessionEndPayload, SessionProgressPayload, SessionEventPayload, SessionSubscribePayload, ReadingSessionsListPayload, ReadingSessionGetPayload } from "./reading-section.types";
|
|
2
|
+
import { SessionStartPayload, SessionEndPayload, SessionProgressPayload, SessionEventPayload, SessionSubscribePayload, ReadingSessionsListPayload, ReadingSessionGetPayload, ReadingSessionDeletePayload } from "./reading-section.types";
|
|
3
3
|
import { RecordingStartPayload, RecordingStopPayload, RecordingListPayload, RecordingGetPayload, SegmentGetPayload, ChunksGetPayload } from "./recording.types";
|
|
4
4
|
export interface ClientToServerEvents {
|
|
5
5
|
'chat-message:send': (msg: MessageRequest) => void;
|
|
@@ -26,6 +26,8 @@ export interface ReadingAdminToServerEvents {
|
|
|
26
26
|
'reading-sessions:list': (payload: ReadingSessionsListPayload) => void;
|
|
27
27
|
/** S3 읽기 세션 기록 상세 조회 (이벤트 포함) */
|
|
28
28
|
'reading-sessions:get': (payload: ReadingSessionGetPayload) => void;
|
|
29
|
+
/** S3 읽기 세션 기록 삭제 */
|
|
30
|
+
'reading-sessions:delete': (payload: ReadingSessionDeletePayload) => void;
|
|
29
31
|
}
|
|
30
32
|
/** 녹화 이벤트 (Admin/Parent → Server) - P2.2 Recording System */
|
|
31
33
|
export interface RecordingAdminToServerEvents {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageReadResponse, MessageResponse, NoticeMessageResult } from "./socket-message.types";
|
|
2
|
-
import { ReadingSessionInfo, ViewerSnapshot, ReadingSessionsListResultPayload, ReadingSessionGetResultPayload } from "./reading-section.types";
|
|
2
|
+
import { ReadingSessionInfo, ViewerSnapshot, ReadingSessionsListResultPayload, ReadingSessionGetResultPayload, ReadingSessionDeleteResultPayload } from "./reading-section.types";
|
|
3
3
|
import { ViewerEvent } from "./viewer-events.types";
|
|
4
4
|
import { ConnectedUser, ConnectedUsersGrouped } from "./connected-user.types";
|
|
5
5
|
import { RecordingStartedPayload, RecordingStoppedPayload, RecordingChunkPayload, RecordingLiveEventsPayload, SegmentStartedPayload, SegmentEndedPayload, RecordingListResultPayload, RecordingManifestPayload, SegmentMetaPayload, ChunksResultPayload } from "./recording.types";
|
|
@@ -49,6 +49,8 @@ export interface ReadingServerToClientEvents {
|
|
|
49
49
|
'reading-sessions:list-result': (payload: ReadingSessionsListResultPayload) => void;
|
|
50
50
|
/** S3 읽기 세션 기록 상세 (이벤트 포함) */
|
|
51
51
|
'reading-sessions:get-result': (payload: ReadingSessionGetResultPayload) => void;
|
|
52
|
+
/** S3 읽기 세션 기록 삭제 결과 */
|
|
53
|
+
'reading-sessions:delete-result': (payload: ReadingSessionDeleteResultPayload) => void;
|
|
52
54
|
}
|
|
53
55
|
/** 연결된 사용자 모니터링 이벤트 (Admin에게 전송) */
|
|
54
56
|
export interface UserServerToClientEvents {
|