The document returned by the Media Library upload endpoint
(POST /media-libraries/:id/upload).
This is not the same shape as SanityAssetDocument /
SanityImageAssetDocument: a Media Library asset is a sanity.asset
document that tracks one or more uploaded versions, each pointing at its
own underlying Content Lake asset document via currentVersion/versions.
Modelled directly on an observed API response. Fields whose full shape has
not been confirmed (parent, rootDirectory, aspects) are typed loosely
on purpose - widen them once their shape is confirmed.
The document returned by the Media Library upload endpoint (
POST /media-libraries/:id/upload).This is not the same shape as SanityAssetDocument / SanityImageAssetDocument: a Media Library asset is a
sanity.assetdocument that tracks one or more uploaded versions, each pointing at its own underlying Content Lake asset document viacurrentVersion/versions.Modelled directly on an observed API response. Fields whose full shape has not been confirmed (
parent,rootDirectory,aspects) are typed loosely on purpose - widen them once their shape is confirmed.