OptionalaccountThe account that source was connected as, or null for a source without accounts (the
device). An entry is only listed while the same account is connected, so signing into a
second OneDrive shows that account's history instead of another person's dead links —
and the first account's entries come back when it does.
The entry as that source listed it, handed straight back to it to reopen the file.
Opaque id of this entry, the same one its preview is stored under. The viewer fills it in; never build one yourself. It is here so that storing the list tells you everything you need to prune previews — see IRecentsConfig.setRecentThumbnail.
When it was last opened (epoch ms). The list is ordered newest first.
Id of the source it was opened from: 'device', a built-in drive, or a customProviders id.
One entry in the recent-documents history.
The viewer builds these itself: every time a document is opened from a source it can read back — a cloud drive, one of your
customProviders, the device when IDeviceConfig.readPath is implemented — the entry is added, newest first. Documents with no such source (aFilehanded to the API, a drag & drop in a browser page, a blank document) are not recorded, because nothing could reopen them.All the host does is store the list and give it back on the next start (IRecentsConfig); reopening goes through the source named by
providerId. Treat the shape as opaque: persist and return it as-is rather than building entries yourself.