Skip to content

js-bao-wss-client


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? ​

optional cursor?: string | null

Pagination cursor, as returned by a previous page (raw JSON, NOT base64url).


forward? ​

optional forward?: boolean

If true, sorts results in chronological order (oldest first).


includeRoot? ​

optional includeRoot?: boolean

Include the app's root document in results (excluded by default).


limit? ​

optional limit?: number

Maximum number of documents to return per page.


localOnly? ​

optional localOnly?: boolean

If true, returns only documents that have local data on this device, ignoring the server entirely.


refreshFromServer? ​

optional refreshFromServer?: boolean

If false, skips fetching from the server and returns only cached metadata (defaults to true).


returnPage? ​

optional returnPage?: boolean

If true, returns a DocumentListPage with a cursor instead of a flat array.


serverTimeoutMs? ​

optional serverTimeoutMs?: number

Maximum time in milliseconds to wait for the server response (defaults to 10000).


tag? ​

optional tag?: string | null

Filter results to only documents that have this tag.


waitForLoad? ​

optional waitForLoad?: "local" | "network" | "localIfAvailableElseNetwork"

Cache-read strategy.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30