WIP v1.3.7: 기록 묶음(경기 · 경기 전후 대화) 관리 · zip 내보내기/받아오기
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -278,6 +278,37 @@ export interface LiveGame {
|
||||
updatedAt: number;
|
||||
}
|
||||
|
||||
/** 기록 묶음 (사이트 기록 관리, v1.3.7~): 경기 하나 또는 경기 밖 대화 한 덩어리 */
|
||||
export interface BundleInfo {
|
||||
/** match-<경기ID> 또는 talk-<첫 발화ID> */
|
||||
id: string;
|
||||
kind: 'match' | 'talk';
|
||||
/** "발로란트 · 경쟁전 · 어센트" · "경기 전 대화" · "경기 후 대화" · "게임 밖 대화" */
|
||||
label: string;
|
||||
/** 경기: "승리 13:9", 대화: "다음 경기: 발로란트 어센트" */
|
||||
sub: string | null;
|
||||
game: GameType | null;
|
||||
matchId: string | null;
|
||||
from: number;
|
||||
to: number;
|
||||
/** 보이는 발화 수 (잡음 뺌) */
|
||||
utterances: number;
|
||||
/** 음성 파일이 남은 발화 수 */
|
||||
audio: number;
|
||||
audioBytes: number;
|
||||
/** 경기 이벤트 수 (킬 · 라운드 …) */
|
||||
events: number;
|
||||
talkMs: number;
|
||||
users: string[];
|
||||
}
|
||||
|
||||
export interface BundleImportResult {
|
||||
bundles: string[];
|
||||
added: { utterances: number; audio: number; matches: number; events: number; users: number };
|
||||
/** 이미 있어서 건너뛴 발화 */
|
||||
skipped: number;
|
||||
}
|
||||
|
||||
export interface Overview {
|
||||
guild: { id: string; name: string; icon: string | null } | null;
|
||||
recording: { active: boolean; channel: string | null; since: number | null; participants: string[] };
|
||||
@@ -393,7 +424,8 @@ export type LiveEvent =
|
||||
| { type: 'match.updated'; data: MatchSummary }
|
||||
| { type: 'recording.state'; data: Overview['recording'] }
|
||||
| { type: 'users.updated'; data: User[] }
|
||||
| { type: 'games.state'; data: LiveGame[] };
|
||||
| { type: 'games.state'; data: LiveGame[] }
|
||||
| { type: 'records.changed'; data: { reason: 'deleted' | 'imported'; ids?: string[] } };
|
||||
|
||||
export interface DeviceStatus {
|
||||
registered: boolean;
|
||||
@@ -415,6 +447,8 @@ export type RelayToDevice =
|
||||
headers: Record<string, string>;
|
||||
user: { id: string; name: string; avatar: string | null } | null;
|
||||
body: string | null;
|
||||
/** 본문이 바이너리(zip 등)면 true. 본문은 이 메시지 앞에 같은 id 의 바이너리 조각으로 먼저 온다 (v1.3.7~) */
|
||||
bin?: boolean;
|
||||
}
|
||||
| { t: 'cancel'; id: string }
|
||||
| { t: 'pong'; ts: number }
|
||||
|
||||
Reference in New Issue
Block a user