fix: 오류 수정

This commit is contained in:
DongHyeonka
2026-08-22 14:40:49 +09:00
parent 1801414592
commit c03b0c77b8
23 changed files with 644 additions and 112 deletions
@@ -36,6 +36,23 @@ type PublicRecordBase = {
relations: ReadonlyArray<PublicRelation>;
};
/**
* 본문이 `:::evidence key="..."` 로 가리키는 Asset.
*
* <p>본문에는 key 만 있고 `/media/{assetId}` 는 UUID 로만 서빙하므로 — 주소가 추측 불가능한 것이
* 의도된 성질이다 — 공개 화면이 key 를 주소로 바꾸려면 이 대응이 함께 와야 한다.
*/
export type PublicBodyAsset = {
assetKey: string;
assetId: string;
url: string;
contentType: string;
altText: string;
width: number | null;
height: number | null;
decorative: boolean;
};
export type CaseRecord = PublicRecordBase & {
kind: "CASE";
problem: string;
@@ -43,6 +60,14 @@ export type CaseRecord = PublicRecordBase & {
environment: string;
verification: string;
lastVerifiedLabel: string;
/**
* 본문 Markdown 원문.
*
* <p>`sections` 는 이것을 제목·문단·불릿으로만 줄인 것이라 표·코드·callout·evidence 가 사라진다.
* 문서 화면은 원문을 직접 파싱한다.
*/
content: string;
bodyAssets: ReadonlyArray<PublicBodyAsset>;
sections: ReadonlyArray<RecordSection>;
};