OptionalcloseGracefully close any open connections or file handles. Optional.
Purge snapshots older than the given age.
Delete records whose timestamp is older than this many days.
The number of records deleted.
Return candidate devices whose stored fingerprint is broadly similar to the incoming query. Used as a pre-filter before full scoring.
The incoming fingerprint to match against.
Minimum confidence score (0–100) for inclusion.
Optionallimit: numberMaximum number of candidates to return.
Retrieve all stored fingerprints. Useful for batch processing, clustering, or analytics. Use with caution on large datasets.
An array of all stored fingerprint records.
Retrieve historical snapshots for a device, most-recent first.
The stable device identifier.
Optionallimit: numberMaximum number of records to return (default varies by adapter).
Initialise the backend (e.g. run migrations, open connections).
Associate a stable device ID with an application user ID.
The device to update.
The user to link.
Persist a fingerprint snapshot.
The unique ID of the newly created snapshot record.
Persistence contract for fingerprint storage backends. Implement this interface to add a new storage backend (SQL, NoSQL, etc.). Built-in implementations: createInMemoryAdapter, createSqliteAdapter, createPostgresAdapter, createRedisAdapter.