@lelantos-org/sdk / advanced / FmdMatchesNoteSource
Class: FmdMatchesNoteSource
Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:43
NoteSource backed by /v1/matches, the server-side FMD-filtered subset. Trades anonymity (the server learns the false-positive set bounded by gamma) for bandwidth.
token is the capability registered with FmdClient.createSubscription and the only handle to the subscription. deriveSubscriptionToken regenerates it from ivk and the epoch; the epoch cannot be recovered from the server, so a caller using a non-default epoch must persist it.
Implements
Constructors
Constructor
ts
new FmdMatchesNoteSource(fmd, token): FmdMatchesNoteSource;Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:46
Parameters
| Parameter | Type |
|---|---|
fmd | FmdClient |
token | string |
Returns
FmdMatchesNoteSource
Methods
listNotes()
ts
listNotes(opts?): Promise<NotePage>;Defined in: @lelantos-org/sdk/dist/sync/note-source.d.ts:47
Parameters
| Parameter | Type |
|---|---|
opts? | ListNotesOpts |
Returns
Promise<NotePage>