Skip to content

@lelantos-org/sdk / advanced / NotePage

Interface: NotePage ​

Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:15

One page of a note feed, with two cursors because a feed can be filled out of order.

nextAfter drives paging within a single sync and advances past every row just returned. resumeAfter is the cursor safe to persist for a later session; on the matches feed it lags while a backfill is still inserting older rows, which persisting nextAfter would skip. On a strictly append-only feed (the full note firehose) both cursors are equal.

Properties ​

inputs ​

ts
inputs: ScanInput[];

Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:16


nextAfter ​

ts
nextAfter: number;

Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:18

Cursor for the next request in this sync. Highest row id in the page.


resumeAfter ​

ts
resumeAfter: number;

Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:20

Highest cursor safe to persist. Never greater than nextAfter.