@readerseye2/cr_type 1.0.180 → 1.0.183

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.
@@ -45,6 +45,16 @@ export interface ClientToServerEvents {
45
45
  'webrtc:hangup': (payload: {
46
46
  targetIdx: number;
47
47
  }) => void;
48
+ /**
49
+ * WebRTC 진단 정보 (부모→서버, 단방향)
50
+ * - iceCandidateType: 부모 측 selected candidate pair의 local candidate type
51
+ * - endReason: 비정상 종료 시에만 동봉 (정상 종료는 'webrtc:hangup' 사용)
52
+ */
53
+ 'webrtc:diag': (payload: {
54
+ targetChildIdx: number;
55
+ iceCandidateType: 'host' | 'srflx' | 'relay' | null;
56
+ endReason?: 'ice-failed' | 'connection-failed';
57
+ }) => void;
48
58
  }
49
59
  export interface NoticeToServerEvents {
50
60
  'notice-message:send': (msg: MessageRequest) => void;
@@ -0,0 +1,13 @@
1
+ /** WebRTC 얼굴보기 — 자녀 디바이스 식별용 플랫폼 라벨 */
2
+ export type ChildDevicePlatform = 'windows' | 'macos' | 'android' | 'ios' | 'linux' | 'unknown';
3
+ /**
4
+ * WebRTC 얼굴보기 디바이스 선택 모달용 자녀 디바이스 정보.
5
+ * 같은 자녀 계정으로 여러 단말에 로그인 중일 때, 부모가 어느 단말 영상을 볼지 선택.
6
+ */
7
+ export interface ChildDeviceInfo {
8
+ socketId: string;
9
+ platform: ChildDevicePlatform;
10
+ userAgent: string | null;
11
+ /** ISO 시각 — 해당 socket이 connect한 시점 */
12
+ connectedAt: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.180",
3
+ "version": "1.0.183",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",