AssetDTO
type AssetDTO = { blur?: string | null; bytes: number; deletedAt?: string | null; dur?: number | null; h?: number | null; id: string; kind: "image" | "video" | "document" | "audio" | "other"; mime: string; palette?: | AssetPalette | null; presets: string; sha: string; status: "processing" | "ready" | "failed"; variants?: AssetVariant[]; w?: number | null;};Defined in: packages/asset-client/src/index.ts:131
Compact wire shape — what the server actually sends. Aliases (w, h,
dur) are intentional to shave bytes per asset on dense lists.
Properties
Section titled “Properties”optional blur?: string | null;Defined in: packages/asset-client/src/index.ts:144
LQIP placeholder (data URL).
bytes: number;Defined in: packages/asset-client/src/index.ts:137
deletedAt?
Section titled “deletedAt?”optional deletedAt?: string | null;Defined in: packages/asset-client/src/index.ts:154
Soft-delete timestamp (ISO). Hidden from catalog when set.
optional dur?: number | null;Defined in: packages/asset-client/src/index.ts:142
Duration ms for videos.
optional h?: number | null;Defined in: packages/asset-client/src/index.ts:140
id: string;Defined in: packages/asset-client/src/index.ts:132
kind: "image" | "video" | "document" | "audio" | "other";Defined in: packages/asset-client/src/index.ts:135
mime: string;Defined in: packages/asset-client/src/index.ts:136
palette?
Section titled “palette?”optional palette?: | AssetPalette | null;Defined in: packages/asset-client/src/index.ts:145
presets
Section titled “presets”presets: string;Defined in: packages/asset-client/src/index.ts:151
Compact list of generated variants as their 1-char codes concatenated, e.g. “tcwh” (image) / “pv” (video without aiproxy). Ordered by ascending dimension.
sha: string;Defined in: packages/asset-client/src/index.ts:134
First 16 hex chars of sha256 — used to derive CDN URLs.
status
Section titled “status”status: "processing" | "ready" | "failed";Defined in: packages/asset-client/src/index.ts:152
variants?
Section titled “variants?”optional variants?: AssetVariant[];Defined in: packages/asset-client/src/index.ts:160
Full variant list with URLs + sizes. Present on admin responses
(GET /assets/:id); absent on the slim list shape used by the
resolver / catalog. Use presets for compact existence checks.
optional w?: number | null;Defined in: packages/asset-client/src/index.ts:139
Source dims (for aspect-ratio calc on the client). Optional for non-images.