Skip to content
scroll to zoom · drag to pan

OriginalHints

type OriginalHints = {
kind?: AssetDTO["kind"];
mime?: string;
oext?: string | null;
variants?: AssetVariant[];
};

Defined in: packages/asset-client/src/index.ts:618

What the asset itself knows about where its original lives.

optional kind?: AssetDTO["kind"];

Defined in: packages/asset-client/src/index.ts:630

What the asset IS. Optional because these builders accept a minimal { sha }, and absent means “we cannot know” — never “assume the worst”. Used to refuse hls on something that can never have a ladder; see the hls branch of getAssetUrl.


optional mime?: string;

Defined in: packages/asset-client/src/index.ts:619


optional oext?: string | null;

Defined in: packages/asset-client/src/index.ts:621

The extension the server actually stored it under. Authoritative.


optional variants?: AssetVariant[];

Defined in: packages/asset-client/src/index.ts:623

Full variant list — carries the stored URL verbatim. Authoritative.