js-bao-wss-client / OwnedDocumentsOptions
Interface: OwnedDocumentsOptions
Options for client.me.ownedDocuments(...), the owner-only document reader. It is fully offline-first and cache-aware: the options below choose how much of the answer may come from the local cache and how much must come from the server. See MeAPI.ownedDocuments.
Properties
cursor?
optionalcursor?:string|null
Pagination cursor, as returned by a previous page (raw JSON, NOT base64url).
forward?
optionalforward?:boolean
If true, sorts results in chronological order (oldest first).
includeRoot?
optionalincludeRoot?:boolean
Include the app's root document in results (excluded by default).
limit?
optionallimit?:number
Maximum number of documents to return per page.
localOnly?
optionallocalOnly?:boolean
If true, returns only documents that have local data on this device, ignoring the server entirely.
refreshFromServer?
optionalrefreshFromServer?:boolean
If false, skips fetching from the server and returns only cached metadata (defaults to true).
returnPage?
optionalreturnPage?:boolean
If true, returns a DocumentListPage with a cursor instead of a flat array.
serverTimeoutMs?
optionalserverTimeoutMs?:number
Maximum time in milliseconds to wait for the server response (defaults to 10000).
tag?
optionaltag?:string|null
Filter results to only documents that have this tag.
waitForLoad?
optionalwaitForLoad?:"local"|"network"|"localIfAvailableElseNetwork"
Cache-read strategy.