Retrieves all media items, optionally bypassing the cache.
Optional
skipCache: booleanIf true, bypasses the in-memory cache and fetches fresh data.
A promise that resolves to an array of extended media items.
Retrieves a media item by its ID. Optionally skips the cache.
The unique identifier of the media item to retrieve.
Optional
skipCache: booleanWhether to bypass the cache and fetch directly from the source.
A promise that resolves to the retrieved media item.
Fetches a media file (binary) for specified media ID.
Identifier of the media.
Name of the file to fetch from the media bin.
Optional
data: MediaGetBinBodyOptional additional parameters for the request.
A promise that resolves to the binary data (Buffer) of the requested media file.
Resolves the full path of a media item by traversing its parent hierarchy.
The media item for which to resolve the path.
An array of all media items, used to locate parent items.
The resolved full path of the media item.
Constructs a URI for accessing a media binary with optional data.
The identifier for the media resource.
The name of the file to be accessed.
Optional
data: MediaGetBinBodyOptional data to be included in the query string.
The constructed URI.
Handles media-related operations such as fetching media items, resolving media paths, and managing cache.